]> git.proxmox.com Git - grub2.git/blob - ChangeLog
fix double free in grub_net_recv_tcp_packet
[grub2.git] / ChangeLog
1 2014-12-07 Curtis Larsen <larsen@dixie.edu>
2
3 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
4 free when multiple empty segments were received (closes 42765).
5
6 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
7
8 * tests/util/grub-shell.in: Support --files also for netboot.
9 * tests/file_filter_test.in: New file with file filters tests.
10 * Makefile.util.def: Add file_filter_test.
11 * conf/Makefile.extra-dist: ... and here.
12 * tests/file_filter/file.gz: Test file for file_filter_test.
13 * tests/file_filter/file.gz.sig: Likewise.
14 * tests/file_filter/file.lzop: Likewise.
15 * tests/file_filter/file.lzop.sig: Likewise.
16 * tests/file_filter/file.xz: Likewise.
17 * tests/file_filter/file.xz.sig: Likewise.
18 * tests/file_filter/keys: Likewise.
19 * tests/file_filter/keys.pub: Likewise.
20 * tests/file_filter/test.cfg: Likewise.
21 * grub-core/commands/verify.c: Fix memory corruption doing
22 signature check for network files (closes 43601).
23
24 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
25
26 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
27 memory leak (CID 73645, 73782).
28 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
29 (CID 73635).
30
31 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
32
33 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
34 inline array (CID 73610).
35
36 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
37
38 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
39 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
40 (Coverity CID 73813, 73710)
41 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
42 and use after free (Coverity CID 73813, 73710, 73730)
43 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
44 CID 73854)
45 * util/grub-install-common.c (grub_install_get_target): Check return
46 value of grub_util_fd_read (Coverity CID 73819).
47 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
48 to hd.magic (Coverity CID 73587, 73888, bug 43690).
49
50 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
51
52 * tests/util/grub-fs-tester.in: Consistently print output
53 of grub ls if test fails.
54
55 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
56
57 * grub-core/kern/efi/init.c: check value of *path before
58 dereferencing.
59
60 2014-11-03 Michael Chang <mchang@suse.com>
61
62 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
63 of neighbor solicitation packet in grub_netbuff_pull.
64
65 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
66
67 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
68 avoid fatal warnings with older gcc (probably before 4.7).
69 * grub-core/loader/arm64/linux.c: Likewise.
70 * grub-core/loader/i386/linux.c: Likewise.
71 * grub-core/loader/i386/pc/linux.c: Likewise.
72 * grub-core/loader/ia64/efi/linux.c: Likewise.
73 * grub-core/loader/mips/linux.c: Likewise.
74 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
75 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
76
77 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
78
79 Fix in-tree --platform=none
80
81 * configure.ac: Only remove include/grub/cpu and
82 include/grub/machine in the --platform=none case, not all of
83 include/grub.
84
85 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
86
87 Add a new "none" platform that only builds utilities
88
89 * configure.ac: Add "none" platform. Default to it for unsupported
90 CPUs rather than stopping with a fatal error. Don't downgrade
91 x86_64-none to i386. Define COND_real_platform Automake conditional
92 if the platform is anything other than "none". Don't do any include
93 directory linking for "none".
94 * Makefile.am: Skip building grub-core and all bootcheck targets if
95 !COND_real_platform.
96 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
97 is defined.
98
99 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
100
101 Use grub_cpu_to_XXX_compile_time for constants.
102
103 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
104
105 The AML parser implements only a small subset of possible AML
106 opcodes. On the Fujitsu Lifebook E744 this and another bug in
107 the parser (incorrect handling of TermArg data types) would lead
108 to the laptop not turning off (_S5 not found).
109
110 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
111 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
112 aren't always simply strings!); Add function to skip TermArgs
113 * include/grub/acpi.h: Add new opcodes
114
115 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
116
117 * grub-core/normal/main.c: Don't drop to rescue console in
118 case of password-protected prompt and no menu entries.
119
120 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
121
122 * grub-core/commands/keylayouts.c: Ignore unknown keys.
123
124 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
125
126 * grub-core/gmodule.pl.in: Accept newer binutils which output
127 empty column rather than 0x0.
128
129 2014-09-21 Michael Chang <mchang@suse.com>
130
131 * grub-core/osdep/unix/config.c: Remove extraneous comma.
132
133 2014-09-21 Peter Jones <pjones@redhat.com>
134
135 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
136 we don't free a random pointer from the stack.
137 * grub-core/loader/arm64/linux.c: Likewise.
138 * grub-core/loader/i386/linux.c: Likewise.
139 * grub-core/loader/i386/pc/linux.c: Likewise.
140 * grub-core/loader/ia64/efi/linux.c: Likewise.
141 * grub-core/loader/mips/linux.c: Likewise.
142 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
143 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
144
145 2014-09-15 Khem Raj <raj.khem@gmail.com>
146
147 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
148 _BSD_SOURCE to avoid warnings under glibc 2.20+.
149
150 2014-09-08 Michael Chang <mchang@suse.com>
151
152 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
153 check; comparing &data->extent against addresses in the region it
154 points to is unpredictable.
155
156 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
157
158 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
159
160 * configure.ac: Remove -m64 from checks for -mcmodel=large and
161 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
162 already in TARGET_CFLAGS at this point, and they produce incorrect
163 results when building for x32.
164 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
165 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
166 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
167 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
168
169 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
170
171 * configure.ac: Remove several unnecessary semicolons.
172
173 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
174
175 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
176 Initialise pend to pacify GCC.
177
178 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
179
180 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
181 gettext_printf).
182
183 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
184
185 * grub-core/term/at_keyboard.c: Retry probing keyboard if
186 scancode setup failed.
187
188 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
189
190 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
191
192 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
193
194 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
195 safety to avoid triggerring VirtualBox bug.
196
197 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
198
199 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
200
201 Fixes hang on virtualbox.
202
203 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
204
205 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
206 kernels whose paths contain regex metacharacters.
207 * util/grub.d/10_kfreebsd.in: Likewise.
208 * util/grub.d/10_linux.in: Likewise.
209 * util/grub.d/20_linux_xen.in: Likewise.
210
211 Reported by: Heimo Stranner.
212
213 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
214
215 * docs/grub-dev.texi (Finding your way around): The build system no
216 longer uses AutoGen directly.
217
218 2014-06-21 Роман Пехов <roman_pekhov>
219
220 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
221
222 2014-06-21 Glenn Washburn <development@efficientek.com>
223
224 * util/grub-install.c: Fix handling of --disk-module.
225
226 2014-06-21 Stephane Rochoy <sheda>
227
228 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
229 EFI system table.
230
231 2014-06-21 Stephane Rochoy <sheda>
232
233 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
234 EFI system table physical address.
235
236 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
237
238 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
239
240 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
241
242 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
243
244 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
247 check.
248
249 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
250
251 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
252
253 Reported by: Yves Blusseau <blusseau@zetam.org>.
254
255 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
256
257 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
258 GDT in conventional memory.
259
260 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
261
262 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
263 UUID. Other parts of grub-mkconfig tolerate these, they were
264 previously allowed here up to commit
265 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
266 practice when the system has active LVM snapshots.
267 Fixes Ubuntu bug #1287436.
268
269 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
270
271 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
272 "logical_volumes" block a little more accurately.
273
274 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
275
276 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
277
278 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
279
280 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
281 pulled from libgcc.
282
283 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
284
285 Replace few instances of memcmp/memcpy in the code that should be
286 grub_memcmp/grub_memcpy.
287
288 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
289
290 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
291 device names.
292
293 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
294
295 btrfs: fix get_root key comparison failures due to endianness
296
297 * grub-core/fs/btrfs.c (get_root): Convert
298 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
299
300 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
301
302 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
303
304 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
305 no longer to be forgiving of trailing spaces on grub-probe output
306 lines, which among other things means that util/grub.d/10_linux.in
307 no longer detects LVM. To fix this, make grub-probe's output
308 delimiting more consistent. As a bonus, this improves the coverage
309 of the -0 option.
310
311 Fixes Debian bug #735935.
312
313 * grub-core/disk/cryptodisk.c
314 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
315 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
316 Likewise.
317 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
318 Update prototype.
319 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
320 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
321 probe_mods): Adjust for extra user-data arguments.
322 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
323 probe_abstraction): Use configured delimiter. Update callers.
324
325 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
326
327 * util/grub-probe,c (options): Make -0 work again (broken by
328 conversion to argp).
329 (main): Simplify logic.
330
331 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
332
333 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
334
335 2014-03-26 Fu Wei <fu.wei@linaro.org>
336
337 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
338
339 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
340
341 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
342 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
343
344 Suggested by: Markus Müller.
345
346 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
347
348 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
349 if E820 failed to return any regions.
350
351 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
352
353 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
354 tables for low memory calculations.
355
356 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
357
358 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
359 location to 640K.
360
361 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
364 region.
365
366 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
367
368 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
369 exclusively.
370
371 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
372
373 Add bootpath parser for open firmware.
374
375 It enables net boot even when there is no bootp/dhcp server.
376
377 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
378 and call it at grub_ieee1275_net_config_real.
379 * grub-core/kern/ieee1275/init.c: Add bootpath to
380 grub_ieee1275_net_config.
381 * include/grub/ieee1275/ieee1275.h: Likewise.
382
383
384 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
385
386 Add grub_env_set_net_property function.
387
388 * grub-core/net/bootp.c: Remove set_env_limn_ro.
389 * grub-core/net/net.c: Add grub_env_set_net_property.
390 * include/grub/net.h: Likewise.
391
392 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
393
394 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
395
396 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
397
398 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
399
400 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
401
402 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
403 7 seconds to recover if last poweroff was bad.
404
405 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
406
407 * grub-core/disk/ahci.c: Properly handle transactions with no
408 transferred data.
409
410 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
411
412 * grub-core/disk/ahci.c: Add safety cleanups.
413
414 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
415
416 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
417 slots to avoid pointing to uninited area.
418
419 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
420
421 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
422 enabling busmaster for the end.
423
424 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
425
426 * util/grub-mkfont.c: Downgrade warnings about unhandled features
427 to debug.
428
429 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
430
431 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
432
433 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
434
435 * .gitignore: add missing files and .exe variants.
436
437 2014-01-26 Mike Gilbert <floppym@gentoo.org>
438
439 grub-install: support for partitioned partx loop devices.
440
441 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
442 /dev/loopX as being the parent of /dev/loopXpY.
443
444 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
445
446 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
447 Ensure that pointers are inited to NULL and that pointers are not
448 accessed after free.
449
450 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
451
452 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
453 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
454 * include/grub/emu/misc.h: ... and here.
455 * include/grub/err.h: ... and here.
456 * util/import_gcry.py: ... and here (in files g10lib.h).
457
458 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
459
460 * util/grub-mkimage.c: Make prefix argument mandatory.
461
462 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
463
464 Fix several translatable strings.
465
466 Suggested by: D. Prévot.
467
468 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
469
470 * util/grub-install.c: List available targets.
471
472 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
473
474 * util/grub-install.c (write_to_disk): Add an info message.
475
476 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
477
478 * Makefile.am: Allow adding extra files to generated Windows ZIP
479 archive by setting GRUB_WINDOWS_EXTRA_DIST.
480
481 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
482
483 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
484 Show detected font path in summary.
485
486 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
487
488 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
489 interval gradually.
490 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
491 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
492 * grub-core/net/tftp.c (tftp_open): Likewise.
493 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
494
495 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
496
497 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
498 infinite loops.
499
500 In net/net.c there is a while (1) that only exits if there is a stop
501 condition and more then 10 packages or if there is no package received.
502
503 If GRUB is idle and enter in this loop, the only condition to leave is
504 if it doesn't have incoming packages. In a network with heavy traffic
505 this never happens.
506
507 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
508
509 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
510 EPERM when modifying kern.geom.debugflags. It is only a problem for
511 such things as installing GRUB to the MBR, in which case there'll be
512 an error later anyway, not for opening files during tests.
513
514 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
515
516 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
517 instead of MOD_FILES.
518 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
519 both with and without .exe.
520 * grub-core/genemuinitheader.sh: Same.
521
522 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
523
524 * util/grub-install.c: Fix a typo.
525
526 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
527
528 * grub-core/normal/main.c (read_config_file): Buffer config file.
529 Reduces boot time.
530
531 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
532
533 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
534 symbolic link to directory. It fails in Msys shell on Windows 2003.
535
536 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
537
538 * Makefile.am (default_payload.elf): Add modules
539 multiboot cbmemc linux16 gzio echo help.
540
541 2014-01-18 Mike Gilbert <floppym@gentoo.org>
542
543 * Makefile.util.def: Link grub-ofpathname with zfs libs.
544
545 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
546
547 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
548 conflicts.
549
550 Reported by: Andrey Borzenkov.
551
552 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
553
554 * include/grub/misc.h: Move macros for compiler features to ...
555 * include/grub/compiler.h: ... new file.
556 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
557 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
558 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
559 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
560 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
561 * grub-core/video/capture.c: Include <grub/misc.h>.
562 * include/grub/command.h: Include <grub/misc.h>.
563 * include/grub/dl.h: Include <grub/misc.h>.
564 * include/grub/procfs.h: Include <grub/misc.h>.
565
566 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
567
568 * configure.ac: Add support for BUILD_EXEEXT and use it ...
569 * Makefile.am: ... here.
570 * Makefile.util.def: ... and here.
571 * grub-core/Makefile.am: ... and here.
572
573 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
574
575 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
576 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
577
578 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
579
580 * grub-core/term/terminfo.c: Recognize keys F1-F12.
581
582 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
583
584 * configure.ac: Add support for BUILD_LDFLAGS.
585 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
586 * grub-core/Makefile.am: ... and here.
587 * INSTALL: Mention BUILD_LDFLAGS.
588
589 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
590
591 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
592
593 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
594
595 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
596 and has no //.
597
598 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
599
600 * NEWS: Add few missing entries.
601
602 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
603
604 * util/grub.d/00_header.in (make_timeout): Use && rather than test
605 -a.
606 * util/grub.d/10_windows.in: Likewise.
607 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
608 than test -o.
609 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
610 rather than test -o.
611
612 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
613
614 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
615 redundant preprocessor conditional.
616
617 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
618
619 * Makefile.util.def (grub-macbless): Change mansection to 8.
620
621 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
622
623 * grub-core/loader/arm64/linux.c: correctly set device path end length.
624
625 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
626
627 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
628 arm64 to comply with EFI specification. Also use grubaa64.efi for
629 consistency.
630 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
631
632 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
633
634 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
635 on MinGW-64 when compiling for 32 bits.
636
637 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
638
639 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
640
641 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
642
643 * NEWS: Add few missing entries. Correct existing ones.
644
645 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
646
647 Don't abort() on unavailable coreboot tables if not running on coreboot.
648
649 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
650
651 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
652 on mingw.
653
654 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
655
656 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
657 mention of it from 2.02.
658
659 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
660
661 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
662
663 As these functions are used on pre-ARMv6 CPUs as well we don't want
664 to make assembler assume that architecture is higher than default one.
665
666 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
667
668 * NEWS: First draft of 2.02 entry.
669
670 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
671
672 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
673 * docs/grub.texi (Getting the source code): Likewise.
674
675 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
676
677 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
678 detection.
679
680 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * configure.ac: Set version to 2.02~beta2.
683
684 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
685
686 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
687
688 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
689
690 * util/grub-probe.c: Improve help message and simplify list handling.
691
692 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
693
694 Fix buffer overflow in grub_efi_print_device_path.
695
696 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
697
698 Show SATA device path.
699
700 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
701
702 Revert grub-file usage in grub-mkconfig.
703
704 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
705
706 Make newly-created files other than grub.cfg world-readable.
707
708 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
709
710 * util/grub.d/00_header.in: Improve compatibility with old config.
711
712 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
713
714 Make rijndael.c respect aliasing rules.
715
716 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
717
718 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
719
720 Make grub_util_device_is_mapped_stat available in grub-emu core.
721
722 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
723
724 Add -Qn to TARGET_CFLAGS if it's supported.
725 Fixes compilation on cygwin.
726
727 Reported by: Andrey Borzenkov.
728 Suggested by: Andrey Borzenkov.
729
730 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
731
732 Save TARGET_CC version in modinfo.sh.
733
734 Suggested by: Andrey Borzenkov.
735
736 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
737
738 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
739 follow the same algorithm to avoid method mismatch. Don't assume
740 DMRAID- UUID to mean full disk but instead check that mapping is linear.
741
742 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
743
744 Declare GRUB_EFI_VENDOR_APPLE_GUID.
745
746 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
747
748 Dump type and vendor specific data when printing device path.
749
750 2013-12-23 Colin Watson <cjwatson@debian.org>
751
752 Update some documentation to refer to Git rather than Bazaar.
753
754 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
755 than Bazaar.
756 * po/README: Likewise. Fix spelling mistake.
757
758 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
759
760 Don't distribute config.h.
761
762 * Makefile.am (platform_HEADERS): Move to ...
763 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
764 failure when building from a distributed tarball.
765
766 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
767
768 * configure.ac: Fix spelling.
769 * grub-core/commands/parttool.c: Fix grammar.
770 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
771 Embedding Partition".
772
773 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
774
775 ARM64 support for grub-mkrescue.
776
777 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
778
779 Install modinfo.sh to keep build information around.
780
781 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
782
783 * grub-core/modinfo.sh.in: Add build config information.
784
785 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
786
787 ARM64 grub-file and grub-mkconfig support.
788
789 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
790
791 Remove leftover options defines.
792
793 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
794
795 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
796
797 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
798
799 * grub-core/loader/arm64/linux.c: Add missing bracket.
800
801 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
802
803 Add arm64-efi recognition to grub-file.
804
805 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
806
807 Fix ia64-efi recognition in grub-file.
808
809 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
810
811 Recognize raspberry pi kernel in grub-file.
812
813 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
814
815 Enable cache on ARM U-Boot port.
816
817 Without it the port is reidiculously slow.
818
819 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
820
821 Fix ARM cache maintainance.
822
823 More code was converted from ASM to C for easier handling.
824
825 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
826
827 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
828 algorithm on v5.
829
830 Suggested by: Leif Lindholm.
831
832 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
833
834 * util/grub-mkconfig.in: Fix Xen platform conditions.
835
836 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
837
838 * util/grub-mkrescue.c: Split single help message string in several
839 strings used in previous shell version.
840
841 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
842
843 Add arm64 Linux loader.
844
845 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
846
847 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
848
849 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
850
851 Add module loading and parsing boot time checkpoints.
852
853 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
854
855 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
856 platforms.
857
858 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
859
860 * util/grub-mkconfig.in: Skip non-executable files.
861
862 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
863
864 Workaround buggy timer in raspberry pie by using our own timer
865 implementation.
866
867 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
868
869 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
870 Increase to 16 MiB to allow loading the whole memdisk.
871
872 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
873
874 Fix ARM Linux Loader on non-FDT platforms.
875
876 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
877
878 * configure.ac: Choose link format based on host_os on emu.
879
880 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
881
882 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
883
884 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
885
886 * grub-core/kern/emu/main.c: Build fix for emu.
887
888 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
889
890 Build fixes for argp.h with older gcc.
891
892 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
893
894 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
895 in strings.
896
897 Suggested by: David Prévot.
898
899 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
900
901 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
902
903 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
904
905 Enable -Wformat=2 if it's supported.
906
907 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
908
909 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
910 -Wmissing-declarations if supported.
911
912 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
913
914 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
915 u32 as both HFS and HFS+ have 32-bit inodes.
916
917 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
918
919 * include/grub/misc.h (grub_strtol): Fix overflow.
920
921 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
924 as return type in both conditionals.
925
926 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
927
928 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
929 to use uint8_t for color.
930
931 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
932
933 * util/misc.c (grub_util_get_image_size): Check for overflow.
934
935 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
936
937 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
938 for size.
939
940 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
941
942 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
943 for pointer difference.
944
945 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
946
947 * util/import_gcry.py: Skip sample keys.
948
949 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
952
953 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * configure.ac: Remove duplicate warning arguments.
956
957 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
958
959 Add missing static qualifiers.
960
961 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
962
963 Add missing includes.
964
965 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
966
967 Inline printf templates when possible to enable format checking.
968
969 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
970
971 * include/grub/crypto.h: Don't discard const attribute.
972
973 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
976 was intended.
977
978 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
979
980 * grub-core/lib/crypto.c: Don't discard const attribute.
981
982 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
983
984 * grub-core/lib/disk.c: Fix potential overflow.
985
986 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
987
988 * grub-core/lib/arg.c: Don't discard const attribute.
989
990 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
991
992 * grub-core/kern/dl.c: Don't discard const attribute.
993
994 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
995
996 * grub-core/kern/disk.c: Fix potential overflow.
997
998 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 * conf/Makefile.common: Don't include non-existing directory
1001 grub-core/lib/libgcrypt-grub/include.
1002
1003 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1004
1005 Clarify several translatable messages.
1006
1007 2013-12-21 David Prévot <david@tilapin.org>
1008
1009 Correct some translatable strings.
1010
1011 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1012
1013 * util/grub-mkrescue.c: Rephrase mkrescue description.
1014
1015 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1016 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1017
1018 Clarify several translatable messages.
1019
1020 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1021
1022 Be more verbose about some configure failures.
1023
1024 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1025
1026 Fix various build problems on GNU/Hurd.
1027
1028 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1029 !defined (__GNU__).
1030 (xgetcwd): Likewise.
1031 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1032 [__GNU__]: Add prototype.
1033 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1034 long int using %ld rather than %d.
1035
1036 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1037
1038 * util/grub-install.c: Inform user about install platform.
1039
1040 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * configure.ac: Set version to 2.02~beta1.
1043
1044 2013-12-18 Allen Pais <allen.pais@oracle.com>
1045 2013-12-18 Bob Picco <bob.picco@oracle.com>
1046
1047 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1048
1049 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1050
1051 Make grub_zlib_decompress handle incomplete chunks.
1052
1053 Fixes squash4.
1054
1055 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1058 on i386-multiboot.
1059
1060 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1061
1062 * grub-core/disk/usbms.c: Retry on unknown errors.
1063 Reuse the same tag on retries.
1064
1065 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1066
1067 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1068
1069 Avoid confusing them with already completed transfers.
1070
1071 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 Remove xen VFB.
1074
1075 Due to XEN bug it prevents Linux boot. Remove it at least, until
1076 workaround is found.
1077
1078 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1079
1080 * po/exclude.pot: Add 2 missing excludes.
1081
1082 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 Add missing license section in macbless.mod and macho.mod.
1085
1086 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 Allow compilation without thumb-interwork as long as no thumb is
1089 involved or only thumb2 is used.
1090
1091 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1092
1093 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1094
1095 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1096
1097 Add __attribute__ ((sysv_abi)) only if it's really needed.
1098
1099 Some compilers don't support it.
1100
1101 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1104
1105 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 Remove -Wold-style-definition.
1108
1109 Not very useful and interaction of it with regexp depends on GCC
1110 version.
1111
1112 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1113
1114 Make grub_util_get_windows_path_real static.
1115
1116 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1117
1118 * grub-core/commands/fileXX.c: Silence cast-align.
1119 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1120
1121 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1124 rather than LL suffix.
1125
1126 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1129
1130 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 * grub-core/loader/arm/linux.c: Use common initrd functions.
1133
1134 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 Decrease number of strings to translate.
1137
1138 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1141
1142 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 Mark strings for translation and add remaining ones to exclude list.
1145
1146 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 * util/grub-file.c (main): Fix sizeof usage.
1149
1150 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1151
1152 Silence spurious warning.
1153
1154 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1155
1156 Remove check_nt_hiberfil as it's been superseeded by file command.
1157
1158 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1159
1160 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1161
1162 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1163
1164 Implement syslinux parser.
1165
1166 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1169
1170 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1171
1172 Support cpuid --pae.
1173
1174 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1175
1176 Use AT keyboard on Yeeloong 3A.
1177
1178 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1179
1180 Add Yeeloong 3A reboot and halt.
1181
1182 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 Add Radeon Yeeloong 3A support.
1185
1186 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 Add bonito 3A support.
1189
1190 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1191
1192 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1193
1194 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1195
1196 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1197
1198 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * grub-core/loader/macho.c: Fix compilation on non-i386.
1201
1202 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 Add missing format_arg attribute to check that printf with translated
1205 messages has proper arguments.
1206
1207 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 Use grub_xasprintf to format translated error messages containing
1210 64-bit quantity.
1211
1212 2013-12-17 Jon McCune <jonmccune@google.com>
1213
1214 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1215
1216 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1217
1218 Unify message for unsupported relocation.
1219
1220 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1221
1222 Mark miscompile error for translation.
1223
1224 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1225
1226 Use %I64 and not %ll when using OS printf if compiling for windows.
1227
1228 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1229
1230 Update Mac code to match new register_efi prototype.
1231
1232 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1233
1234 Implement better integration with Mac firmware.
1235
1236 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1237
1238 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1239 load_addr.
1240
1241 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1242
1243 Include serial module in default_payload.elf.
1244
1245 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1246
1247 Add explicit thumb interwork bx in asm files.
1248
1249 Shouldn't matter for armv >= 5 but let's be safe.
1250
1251 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1252
1253 Implement Truecrypt ISO loader.
1254
1255 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1258
1259 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1260
1261 Implement grub_file tool and use it to implement generating of config
1262 in separate root.
1263
1264 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 Change to v1 xen grants.
1267
1268 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1271
1272 GRUB relied on %ebx being preserved across hypercall which isn't true.
1273
1274 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1275
1276 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1277
1278 GRUB relied on %rdi being preserved across hypercall which isn't true.
1279
1280 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1281
1282 Implement XEN VFB support.
1283
1284 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1285
1286 Remove grub_bios_interrupt on coreboot.
1287
1288 It's not used currently and cannot be used safely currently.
1289
1290 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1291
1292 Update exclude.pot and mark few strings for translation.
1293
1294 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1297
1298 Reported by: Jon McCune
1299
1300 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1301
1302 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1303 Add verbose information which firmware directories were tried.
1304
1305 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1306
1307 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1308 function to optionally redirect all three standard descriptors.
1309 Redefine grub_util_exec, grub_util_exec_redirect and
1310 grub_util_exec_redirect_null to use it.
1311 * include/grub/emu/exec.h: Define it.
1312 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1313 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1314 Use grub_util_exec_redirect_all to redirect error to NULL.
1315
1316 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1317
1318 * grub-core/tests/sleep_test.c: Silence spurious warning.
1319
1320 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1321
1322 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1323 linker trying to "fixup" the code.
1324
1325 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1328
1329 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 Add support for converting PE+ to Elf64.
1332
1333 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1334
1335 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1336
1337 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 Remove practice of assigning random const pointers to device id.
1340
1341 This is not required as cache code already checks driver id as well.
1342
1343 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1344
1345 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1346 with mingw.
1347
1348 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1349
1350 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1351 mingw or cygwin as API already matches.
1352
1353 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1354
1355 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1356
1357 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1358
1359 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1360 not on long.
1361
1362 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1363
1364 Handle X86_64_PC64 relocation.
1365
1366 Those are generated by some cygwin compilers.
1367
1368 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 Determine the need for mingw-related stubs at compile time rather than
1371 using not very significant $target_os.
1372
1373 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1376 may not work with ELF.
1377
1378 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1379
1380 Use unix functions for temporary files and special files on cygwin.
1381
1382 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 Define functions explicitly rather than using --defsym in tests
1385 whenever possible. Respect locality in remaining cases.
1386
1387 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1390
1391 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1392
1393 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1394 unlikely errors when getting EFI variables and make exhaustive search
1395 for all BootNNNN variables to find matching one.
1396
1397 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1398
1399 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1400
1401 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 New functional test for sleep function.
1404
1405 This test allows to check sleep without qemu. Keep qemu version as
1406 well as functional test won't notice if all clocks are going too fast
1407 or too slow.
1408
1409 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 Add explicit sysv_abi on amd64 asm routines.
1412
1413 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1416 num_table_entries.
1417
1418 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1421 functions.
1422
1423 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1426 appropriate.
1427
1428 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1429
1430 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1431
1432 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1435 appropriate.
1436
1437 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1438
1439 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1440
1441 In case of quick removal of loopback and adding another one it may
1442 get same ID, confusing the cache system.
1443
1444 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1445
1446 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1447 appropriate.
1448
1449 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1452 than converting to long.
1453
1454 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1457
1458 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1459
1460 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1461 than almost useless pointer.
1462
1463 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 Add gcc_struct to all packed structures when compiling with mingw.
1466
1467 Just "packed" doesn't always pack the way we expect.
1468
1469 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1470
1471 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1472
1473 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * util/grub-pe2elf.c: Fix handling of .bss.
1476
1477 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 Implement windows flavour of EFI install routines.
1480
1481 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1484
1485 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1486
1487 Change grub_install_register_efi interface to pass GRUB device.
1488
1489 This allows grub_install_register_efi to request partition info
1490 directly.
1491
1492 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1495
1496 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1497
1498 Do not use TCHAR string functions as they are not available on cygwin.
1499
1500 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1501
1502 Workaround windows bug when querying EFI system partition parameters.
1503
1504 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1507 by using bitfields.
1508
1509 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1512
1513 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 Make i386-* other than i386-pc compileable under cygwin.
1516
1517 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1518
1519 Fix definition of grub_efi_hard_drive_device_path. Take care that
1520 existing code would work even if by some reason bogus definition is
1521 used by EFI implementations.
1522
1523 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1524
1525 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1526
1527 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1530 invocation.
1531
1532 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * util/config.c: Remove trailing newline from distributor in simple
1535 parsing.
1536
1537 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1538
1539 * include/grub/efi/api.h: Rename protocol and interface to avoid
1540 conflict.
1541
1542 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1543
1544 * .gitignore: add .exe variants. add missing files. remove few outdated
1545 entries.
1546
1547 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1548
1549 * grub-core/osdep/exec.c: Use unix version on cygwin.
1550
1551 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1552
1553 Implement multiboot2 EFI BS specification.
1554
1555 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1558 Crash happened only in some cases like a string starting at the
1559 half of the screen of same length.
1560
1561 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1564 with EFI counterpart.
1565
1566 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1567
1568 Propagate the EFI commits to x86-efi specific parts.
1569
1570 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1573
1574 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 Introduce grub_efi_packed_guid and use it where alignment is not
1577 guaranteed.
1578
1579 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1582 unaligned u16 rather than u8[2].
1583
1584 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1587 for relocation range.
1588
1589 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1590
1591 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1592 non-function pcrel21b relocation. It happens with .text.unlikely
1593 section.
1594
1595 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1596
1597 * make MAX_USABLE_ADDRESS platform-specific
1598 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1599
1600 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1601
1602 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1603
1604 2013-12-09 Jon McCune <jonmccune@google.com>
1605
1606 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1607 in grub-install and grub-bios-setup for x86 BIOS targets.
1608
1609 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 Add missing compile and link options for sparc64-emu.
1612
1613 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 Implement sparc64 trampolines (needed for sparc64-emu).
1616
1617 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1618
1619 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1620 range of R_SPARC_HI22.
1621 Implement R_SPARC_LM22.
1622
1623 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1626 Do not explicitly check for symbol table as it's already checked in
1627 platform-independent layer.
1628
1629 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1632 on ia64 as __clear_cache is a dummy on ia64.
1633
1634 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1637 Do not explicitly check for symbol table as it's already checked in
1638 platform-independent layer.
1639
1640 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1641
1642 * util/grub-mkconfig.in: Add missing newline to output.
1643
1644 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1647 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1648
1649 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1650
1651 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1652 compilation with GCC <= 4.2.
1653 * grub-core/kern/emu/argp_common.c: Likewise.
1654
1655 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1658 right platform rather than leaking to sparc64-emu.
1659
1660 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1663 But ensure that the variables in question are indeed unsigned.
1664
1665 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1668
1669 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1670
1671 Remove grub_memalign on emu.
1672
1673 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1676 truncate incomplete lines but instead flushes them.
1677
1678 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1681 and implement windows variant.
1682
1683 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 Fix mips-emu compilation.
1686
1687 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1688
1689 * configure.ac: Check for freetype library usability.
1690
1691 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 Make arm-emu work.
1694
1695 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1696
1697 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1698
1699 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1700
1701 * docs/grub.texi (Environment): Update color_normal and color_highlight
1702 defaults (light-gray instead of white).
1703
1704 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1705
1706 * grub-core/normal/main.c (INIT): Set default color to light-gray
1707 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1708 and apparently BIOS defaults.
1709
1710 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 Transform -C option to grub-mkstandalone to --core-compress available
1713 in all grub-install flavours.
1714
1715 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 Merge GRUBFS and GRUB_FS variables.
1718
1719 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1720
1721 Revert commit 69ca97c820, it caused failures when using OS device name
1722 in grub-install. Instead just strip off parenthesis in grub-install
1723 if (hdX) was passed.
1724
1725 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1726
1727 * util/grub-install.c (push_partmap_module): Add helper to convert
1728 partmap names to module names and use it in probe_mods(). Fixes
1729 failure to find partmap modules in diskfilter case.
1730
1731 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 * configure.ac: Make unifont mandatory on coreboot.
1734
1735 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1736
1737 * configure.ac: Skip unifont 6.3 pcf and bdf.
1738
1739 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1740
1741 * Makefile.am: Remove partial font files if generation failed.
1742
1743 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1744
1745 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1746 strings.
1747 * include/grub/util/misc.h: Define it ...
1748 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1749
1750 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1751
1752 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1753 ${grub_probe}.
1754
1755 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1756
1757 Don't add -mlong-calls when compiling with clang.
1758
1759 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1760
1761 * configure.ac: Fix a typo.
1762
1763 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1764
1765 Revamp relocation handling.
1766
1767 Move more code to common dl.c. Add missing veneers for arm and arm64.
1768 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1769
1770 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1773
1774 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1775
1776 * INSTALL: Raise minimum python version to 2.6.
1777 * gentpl.py: Use python3-style print function.
1778
1779 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1780
1781 * util/grub-install.c: Mention Boot* variable.
1782
1783 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1784
1785 * grub-core/osdep/linux/hostdisk.c
1786 (grub_util_find_partition_start_os): Initialise start to avoid
1787 spurious compiler warning.
1788
1789 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1790
1791 On Linux, read partition start offsets from sysfs if possible, to
1792 cope with block device drivers that don't implement HDIO_GETGEO.
1793 Fixes Ubuntu bug #1237519.
1794
1795 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1796 function.
1797 (sysfs_partition_start): Likewise.
1798 (grub_util_find_partition_start_os): Try sysfs_partition_start
1799 before HDIO_GETGEO.
1800
1801 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1802
1803 * grub-core/kern/fdt.c: Update struct size when adding node.
1804
1805 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1806
1807 Handle unaligned .bss on sparc64.
1808
1809 Current code improperly assumes that both __bss_start and _end are
1810 aligned to 8-bytes. Eliminating this assumption and explicitly align
1811 modules.
1812
1813 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1814
1815 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1816 so it doesn't land in the middle of loaded image.
1817
1818 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1819
1820 * configure.ac: Move all warning options that may be absent in
1821 gcc >= 3.1 to optional.
1822
1823 Note: while this allows to compile with older GCC, official requirements
1824 remain the same and no support for older GCC.
1825
1826 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1827
1828 Copying the themes directory in grub-shell isn't
1829 parallel-test-friendly and breaks on the second test when the source
1830 directory is read-only (as in "make distcheck"). Instead, add a
1831 hidden --themes-directory option to grub-mkrescue et al, and use it
1832 in grub-shell.
1833
1834 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1835
1836 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1837 as it's no longer necessarry.
1838
1839 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 * configure.ac: Allow compilation with older GCC for ARM.
1842
1843 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1844
1845 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1846 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1847 ppc.
1848
1849 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1852
1853 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1854
1855 Pass font config to config.h and not by TARGET_CFLAGS as adding
1856 arguments doesn't work if TARGET_CFLAGS is specified on command
1857 line.
1858
1859 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1860
1861 * configure.ac: Add -Wvla if compiler supports it.
1862
1863 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1864
1865 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1866 Remove variable length arrays.
1867 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1868
1869 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1870
1871 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1872
1873 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1874
1875 * include/grub/types.h: Declare all byteswaps as inline functions
1876 except compile-time ones.
1877
1878 Solves variable shadowing in constructions like
1879 cpu_to_le (le_to_cpu(x) + 1).
1880
1881 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1882
1883 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1884
1885 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1888 minutes.
1889
1890 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1891
1892 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1893 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1894
1895 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1896
1897 * grub-core/Makefile.core.def (setjmp): Distribute
1898 lib/arm64/setjmp.S.
1899
1900 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1901
1902 Add a new timeout_style environment variable and a corresponding
1903 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1904 controls hidden-timeout handling more simply than the previous
1905 arrangements, and pressing any hotkeys associated with menu entries
1906 during the hidden timeout will now boot the corresponding menu entry
1907 immediately.
1908
1909 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1910 generates a warning, and if it shows the menu it will do so as if
1911 the second timeout were not present. Other combinations are
1912 translated into reasonable equivalents.
1913
1914 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1915
1916 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1917
1918 * util/config.c: Add missing pointer adjustment.
1919 Reported by: qwertial
1920
1921 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1922
1923 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1924 directly, not via `cpu' link, to fix libgrub.pp generation.
1925
1926 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1927
1928 New port arm64-efi.
1929
1930 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1931
1932 * docs/grub.texi (sleep): Document exit codes.
1933
1934 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 Ensure that -mno-unaligned-access or some equivalent option is used.
1937
1938 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1941 -march=armv3.
1942
1943 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1944
1945 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1946
1947 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1948
1949 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1950 builds, since we don't have an EPS version of font_char_metrics.png.
1951 Add leading dot to image extension per the Texinfo documentation.
1952
1953 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1954
1955 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1956 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1957 * util/grub-gen-widthspec.c: Likewise.
1958 * util/grub-mkfont.c: Likewise.
1959
1960 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1961
1962 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1963 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1964 failed to install on (hdX).
1965 * util/grub-setup.c (get_device_name): Remove, not needed after
1966 above change.
1967
1968 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1969
1970 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1971
1972 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1973
1974 * util/grub-fstest.c: Remove variable length arrays.
1975
1976 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1977
1978 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1979
1980 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1983 computing crc32 rather than handling with md fundtions directly.
1984
1985 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1988 checking fwstart.img rather than md fundtions directly.
1989
1990 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * util/grub-mkrescue.c (main): Check that fread succeeded.
1993
1994 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 * conf/Makefile.common: Remove -mexplicit-relocs and
1997 -DUSE_ASCII_FALLBACK on yeeloong.
1998
1999 -DUSE_ASCII_FALLBACK is already added by font snippets.
2000 -mexplicit-relocs isn't needed is compiler/assemblera are
2001 configured properly.
2002 If they're not we shouldn't attempt to fix it by ourselves.
2003 Binary compare between before and after shows no difference.
2004
2005 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2006
2007 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2008 sources in dependencies directly.
2009
2010 This was the only instance of "library" in core config. A bug was
2011 reported that -fno-stack-protector wasn't passed to it. Instead of
2012 figuring out why it failed just remove this construction used
2013 needlessly.
2014
2015 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2018 fgets succeeded.
2019
2020 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2021
2022 * docs/grub.texi (ls): Fix command description in case of a device name
2023 passed as argument.
2024
2025 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 Eliminate variable length arrays in grub_vsnprintf_real.
2028
2029 A bit tricky because this function has to continue to work without
2030 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2031 but make all stack references use 32-bit offset rather than 8-bit one.
2032 So split va_args preparsing to separate function and put the prealloc
2033 into the caller.
2034
2035 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2038 Fixes build for windows.
2039
2040 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * gentpl.py: Don't generate platform-dependent conditionals for
2043 platform-independent targets.
2044
2045 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2046
2047 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2048 references to mdadm from otherwise generic code.
2049 (grub_util_exec_pipe): Likewise.
2050 (grub_util_exec_pipe_stderr): Likewise.
2051 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2052 This function calls vgs, not mdadm; adjust variable names
2053 accordingly.
2054
2055 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2056
2057 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2058 of Autogen. The Autogen definitions files remain intact as they
2059 offer a useful abstraction.
2060
2061 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2062
2063 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2064 into no-ops, and use it in programs that copy files but do not need
2065 to take special care to sync writes (grub-mknetdir, grub-rescue,
2066 grub-mkstandalone).
2067
2068 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2069
2070 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2071 than hardcoding /usr/local/bin/xorriso.
2072
2073 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 Add PCI command activation to all PCI drivers as required for coreboot
2076 and maybe some other firmwares.
2077
2078 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2079
2080 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2081 and non-Apple variants of efiemu compile.
2082
2083 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2084
2085 * configure.ac: Add explicit check for linking format of
2086 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2087 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2088 hardcoding linking format.
2089
2090 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2093 and not pkgdatadir.
2094
2095 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2096 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 Add a --locale-directory option to grub-install and related tools.
2099
2100 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2101 --locale-directory option.
2102 (enum grub_install_options): Add
2103 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2104 * util/grub-install-common.c (grub_install_help_filter): Handle
2105 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2106 (grub_install_parse): Likewise.
2107 (get_localedir): New function to check for a user-provided option
2108 before trying grub_util_get_localedir.
2109 (copy_locales): Use get_localedir rather than
2110 grub_util_get_localedir. Handle differing locale directory layouts.
2111 (grub_install_copy_files): Likewise.
2112
2113 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2114
2115 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2116 Don't rely on PATH_MAX.
2117
2118 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 * grub-core/genmoddep.awk: Use more portable && rather than and.
2121
2122 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2123
2124 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2125 an object after data. While it doesn't seem right solution, it
2126 works well enough and OSX isn't main compilation platform.
2127
2128 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2131 While it doesn't seem right solution, it works well enough and
2132 OSX isn't main compilation platform.
2133
2134 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2135
2136 * configure.ac: Add -static to LDFLAGS when using apple linker to
2137 prevent it from pulling in dynamic linker.
2138
2139 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2140
2141 Apple assembly doesn't handle symbol arithmetic well. So define an
2142 offset symbol in boot.S and use it.
2143
2144 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 Apple assembly doesn't handle symbol arithmetic well. So instead
2147 of getting addres of kernel_sector + 4 define kernel_sector_high.
2148 It also makes code more readable.
2149
2150 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 With Apple assembly in .macro environvemnt you have to use $$ instead
2153 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2154 to $$x on Apple and to $x on everything else.
2155
2156 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2159 OBJCONV.
2160
2161 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2164 and non-Apple. This instruction is shorter and faster,
2165 so no reason not to use it on both.
2166
2167 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2168
2169 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2170 .text when compiling for Apple.
2171
2172 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2173
2174 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2175
2176 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2177
2178 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2179 %dx restore the probe worked on non-existant drive. Reorganize the
2180 code a little bit to free 2 bytes necessary for push/pop.
2181
2182 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2183
2184 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2185 Add missing cast to silence warning.
2186
2187 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2188
2189 * util/grub-install.c (update_nvram): Support --no-nvram flag
2190 for EFI targets.
2191
2192 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2195
2196 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * util/garbage-gen.c: Add missing include of sys/time.h.
2199
2200 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 Don't add -mflush-func if it's not supported by compiler.
2203
2204 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 Move common BIOS/coreboot memory map declarations to
2207 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2208
2209 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2210
2211 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2212
2213 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * INSTALL: Document why older clang versions aren't appropriate.
2216
2217 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 * INSTALL: Document about clang for mips.
2220
2221 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2224 clang.
2225
2226 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 Add *-xen to the list of grub-install-common platforms.
2229
2230 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2233 3 last commits.
2234
2235 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2236
2237 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2238
2239 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2240
2241 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2242 with -mcmodel=large.
2243
2244 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2245
2246 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2247 range-checking for 32-bit quantities.
2248
2249 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2250
2251 * configure.ac: Compile with -fPIC when compiling with clang on
2252 mips.
2253
2254 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2255
2256 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2257 when compiling with clang.
2258
2259 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 clang emits calls to abort () under some unknown conditions.
2262 Export abort () when compiling with clang.
2263
2264 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2265
2266 * docs/grub-dev.texi: Document stack and heap sizes.
2267
2268 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2269
2270 * include/grub/i386/pc/memory.h: Decrease
2271 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2272 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2273 The binary doesn't change (checked). It's more to better reflect actual
2274 usage.
2275
2276 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2279 at compile time that enough of scratch size is available.
2280
2281 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2284 Previously we misaligned stack by 8 in startup.S and compensated
2285 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2286 right behaviour is to align stack in startup.S and keep it aligned
2287 in callwrap.S. startup.S part was committed few commits before. This
2288 takes care of callwrap.S.
2289 Reported by: Gary Lin.
2290
2291 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2292
2293 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2294 .data and .bss. May happen if compiler and assembly use different
2295 alignment.
2296
2297 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2298
2299 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2300 way.
2301
2302 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2303
2304 Add support for a new magic symbol _gp_disp on mips to handle PIC
2305 binaries.
2306
2307 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2308
2309 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2310
2311 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2312
2313 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2314 when rest of GRUB is compiled for hisher stepping. Instead use
2315 .set mips3/.set mips1 around cache and sync opcodes.
2316
2317 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2318
2319 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2320 do essentially the same thing, do it in similar way.
2321
2322 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2323
2324 * util/grub-mkrescue.c (main): If a source directory is not
2325 specified, read platform-specific files from subdirectories of
2326 pkglibdir, not pkgdatadir.
2327
2328 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2329
2330 * grub-core/normal/progress.c: Remove unused file.
2331
2332 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2333
2334 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2335 array.
2336
2337 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2338
2339 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2340 than grub.cfg.
2341
2342 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 * coreboot.cfg: Add missing file.
2345
2346 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2349
2350 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2351
2352 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2353 selectively skipping systems.
2354
2355 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2356
2357 * Makefile.util.def (grub-mkimage): Add
2358 grub-core/osdep/aros/config.c to extra_dist.
2359 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2360 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2361 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2362 grub-core/gnulib-no-gets.diff.
2363
2364 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2365
2366 Add automated filesystem checking based on scripts I've used now for
2367 quite some time locally. Most of the test require root so they are
2368 skipped when run without necessarry privelegies.
2369
2370 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2371
2372 * util/grub-install.c (main): Adjust info messages to match
2373 installed paths of grub-bios-setup and grub-sparc64-setup.
2374
2375 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2376
2377 * util/grub-install-common.c (copy_locales): Consistently use
2378 grub_util_get_localedir () rather than LOCALEDIR.
2379 (grub_install_copy_files): Likewise.
2380
2381 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2382
2383 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2384 16-byte boundary, as required by the x86-64 ABI, before calling
2385 grub_main. In some cases, GCC emits code that assumes this
2386 alignment, which crashes if not aligned. The EFI firmware is also
2387 entitled to assume that stack alignment without checking.
2388
2389 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2390
2391 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2392 4k page boundaries as expected by firmware rather than 1k
2393 boundaries.
2394 (grub_mmap_malign_and_register): Likewise.
2395
2396 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2399 fragmentation 512M is enough.
2400
2401 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2404 pointer to 32K. This is the size of cache element which is the most
2405 common allocation >1K. This way the pointer is always around blocks
2406 of 32K and so we keep performance while decreasing fragmentation.
2407
2408 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2409
2410 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2411 current memory when allocating large chunks. This significantly
2412 decreases memory fragmentation.
2413
2414 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2415
2416 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2417 but for symmetry).
2418 * tests/lzocompress_test.in: Skip if lzop is not installed.
2419 * tests/xzcompress_test.in: Skip if xz is not installed.
2420
2421 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2422
2423 * util/grub-mkrescue.c (main): Fix typo.
2424
2425 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2426
2427 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2428 clock frequency to 200 MHz,
2429
2430 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2431
2432 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2433
2434 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2437 Load config file from (cbfsdisk)/etc/grub.cfg.
2438
2439 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 * util/grub-install-common.c (grub_install_copy_files): Fix module
2442 destination directory.
2443
2444 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2445
2446 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2447 files have not been built.
2448
2449 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2450
2451 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2452 Handle errors from mkstemp.
2453 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2454
2455 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2458 on primary master on pseries.
2459
2460 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2463 already loaded. This saves memory needed for tests,
2464
2465 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2466
2467 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2468 work again.
2469
2470 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2473 work again.
2474
2475 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2476
2477 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2478 master since with some combinations of qemu and firmware only primary
2479 IDE channel is available.
2480
2481 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2482
2483 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2484 low-memory platforms where we don't have enough memory for them.
2485 * grub-core/tests/videotest_checksum.c: Likewise.
2486
2487 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2488
2489 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2490 already loaded. This saves memory needed for tests,
2491
2492 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2493
2494 Fix handling of install lists.
2495
2496 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2499
2500 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2503 the devices before accessing them.
2504
2505 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2508 as file argument.
2509
2510 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2513
2514 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2515
2516 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2517 (grub_file_close): Free file->name.
2518
2519 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2520
2521 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2522 (grub_load_public_key): Likewise.
2523 (grub_verify_signature_real): Likewise.
2524 (grub_cmd_verify_signature): Likewise.
2525
2526 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2529 memory leak.
2530
2531 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2532
2533 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2534 (grub_longjmp): Restore r31.
2535 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2536
2537 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2538
2539 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2540 modules to be in line with make_image_abs.
2541
2542 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2543
2544 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2545
2546 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2547
2548 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2549
2550 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2551
2552 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2555 to leave some memory to firmware.
2556
2557 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2560 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2561 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2562 Load gfxmenu.
2563
2564 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2567 now needs full arguments.
2568
2569 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2570
2571 * util/grub-mkrescue.c (main): Add trailing \n in
2572 .disk_label.contentDetails to be in line with previous shell script.
2573
2574 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2575
2576 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2577
2578 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2579
2580 * util/grub-install-common.c (grub_install_parse): Recognize
2581 --compress=none like shell script did.
2582
2583 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 * include/grub/misc.h: Replace check for __sparc64__ with one for
2586 __sparc__ as __sparc64__ isn't actually defined.
2587
2588 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2589
2590 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2591 counterpart of fixing the naming of escc ports.
2592
2593 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2594
2595 * util/grub-install-common.c (platforms): Fix the order of entries and
2596 remove useless field val.
2597
2598 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2599
2600 * util/grub-install.c: Add new option --no-bootsector to skip
2601 installing of bootsector. Accept --grub-setup=/bin/true as
2602 backwards-compatible synonym.
2603
2604 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2605
2606 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2607 order of qsort arguments (number of elements vs. element size).
2608
2609 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2610
2611 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2612 the function of these files exceeds what can be sanely handled in shell
2613 in posix-comaptible way. Also writing it in C extends the functionality
2614 to non-UNIX-like OS and minimal environments.
2615
2616 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2619 compiling to thumb2.
2620 * grub-core/kern/arm/cache_armv7.S: Likewise.
2621 * grub-core/lib/arm/setjmp.S: Likewise.
2622
2623 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2624
2625 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2626 in grub_uboot_syscall
2627
2628 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 Decrease stack usage in lexer.
2631
2632 We have only 92K of stack and using over 4K per frame is wasteful
2633
2634 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2635 as macros so that compiler would remove useless structure on stack.
2636 Better solution would be to fix flex not to put this structure on
2637 the stack but flex is external program.
2638
2639 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 Decrease stack usage in signature verification.
2642
2643 We have only 92K of stack and using over 4K per frame is wasteful
2644
2645 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2646 rather than stack.
2647 (grub_verify_signature_real): Likewise.
2648
2649 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2650
2651 Decrease stack usage in mdraid 0.9x.
2652
2653 We have only 92K of stack and using over 4K per frame is wasteful
2654
2655 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2656 rather than stack.
2657
2658 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 Decrease stack usage in BtrFS.
2661
2662 We have only 92K of stack and using over 4K per frame is wasteful
2663
2664 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2665 rather than stack.
2666
2667 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2668
2669 Decrease stack usage in JFS.
2670
2671 We have only 92K of stack and using over 4K per frame is wasteful
2672
2673 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2674 stack. Note: this function is recursive.
2675 (grub_jfs_read_inode): Read only part we care about.
2676
2677 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2678
2679 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2680 handling
2681
2682 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2683
2684 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2685
2686 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2687
2688 * docs/grub.texi (Environment): Document cmdpath.
2689
2690 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2691
2692 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2693 Remove "unused" attribute from arguments, they are used.
2694
2695 2013-11-15 Colin Watson <cjwatson@debian.org>
2696
2697 * .gitignore: Only ignore grub-mk* at the top level.
2698
2699 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2700
2701 * util/grub-reboot.in (usage): Fix a typo.
2702
2703 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 Replace libgcc version of ctz with our own.
2706
2707 On upcoming arm64 port libgcc ctz* are not usable in standalone
2708 environment. Since we need ctz* for this case and implementation is
2709 in C we may as well use it on all concerned platforms.
2710
2711 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 * configure.ac: Probe for linking format rather than guessing it based
2714 on target_os.
2715
2716 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2719 "1" prior to handoff.
2720
2721 Reported by: M A Young.
2722
2723 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2724
2725 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2726 \0 to all files.
2727
2728 Reported by: M A Young.
2729
2730 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2733 compilation on NetBSD.
2734
2735 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * acinclude.m4: Don't add -P on initial nm test.
2738
2739 Note: even though this patch postdates Andrey's it bears 14 Nov as
2740 date due to timezone difference.
2741
2742 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2743
2744 * grub-core/Makefile.core.def (signature_test): Add missing
2745 tests/signatures.h.
2746
2747 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2748
2749 * util/grub-install_header: Set localedir here, since this file is
2750 where it's used.
2751 * util/grub-install.in: Remove setting of localedir.
2752 * util/grub-mkrescue.in: Likewise.
2753
2754 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2757
2758 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2759
2760 * configure.ac: Move nm checks to the end.
2761 Call grub_PROG_NM_WORKS.
2762 * acinclude.m4: New check grub_PROG_NM_WORKS.
2763 Use $TARGET_CFLAGS -c when compiling test binary.
2764
2765 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2766
2767 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2768 unused variables.
2769
2770 2013-11-14 Matthew Garrett <mjg@redhat.com>
2771
2772 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2773 cmdpath to firmware directory.
2774
2775 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2776
2777 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2778 at the start of second iteration.
2779
2780 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2781
2782 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2783
2784 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 * Makefile.am (default_payload.elf): New target for easier coreboot
2787 build.
2788
2789 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2790
2791 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2792 clang (not necessarry with -no-integrated-as).
2793 * include/grub/symbol.h [__arm__]: Likewise.
2794
2795 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 * configure.ac: Use -no-integrated-as on arm with clang.
2798 * INSTALL: Mention ARM compilation with clang.
2799
2800 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2803 -mthumb-interwork.
2804
2805 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2806
2807 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2808 code for indirect block handling.
2809
2810 Saves 185 bytes on compressed image.
2811
2812 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2813
2814 Fix make clean.
2815
2816 * Makefile.am: Remove build-grub-* in make clean.
2817
2818 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2819
2820 New files to gitignore.
2821
2822 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2823 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2824
2825 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2826
2827 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2828
2829 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2830
2831 * .gitignore: fix rules for .dep* and add *.a post git migration
2832
2833 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2834
2835 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2836 to match INSTALL.
2837
2838 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2839
2840 * grub-core/kern/misc.c: Don't redirect divisions in the
2841 GRUB_UTIL case.
2842 * include/grub/misc.h: Likewise.
2843
2844 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2845
2846 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2847 systems that require checking the return value of write.
2848
2849 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2850
2851 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2852 efibootmgr quiet when --debug is not used, rather than when it is.
2853
2854 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2855
2856 * gentpl.py (define_macro_for_platform_dependencies): Remove
2857 first (and thus unused) of two definitions for this function.
2858 (platform_dependencies): Likewise.
2859
2860 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2861
2862 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2863 functions, we only need to check this for the target, not the host.
2864 * configure.ac (grub_apple_cc): Likewise.
2865
2866 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2869 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2870 asm to stay in arm even if surrounding is thumb.
2871
2872 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2875 helper functions are needed for thumb.
2876
2877 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2880 level / 3 division explicitly unsigned. Saves few bytes.
2881
2882 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2883
2884 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2885
2886 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2887
2888 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2889 division.
2890
2891 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2894 grub_uboot_boot_data to asm part.
2895
2896 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2897
2898 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2899 literal load.
2900 (grub_uboot_syscall): Save/restore r9 and align stack.
2901
2902 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2903
2904 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2905
2906 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2907
2908 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2909 occurencies with END.
2910
2911 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2912
2913 * util/grub-editenv.c (help_filter, argp): Document how to delete
2914 the whole environment block.
2915 Reported by Dan Jacobson. Fixes Debian bug #726265.
2916
2917 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2918
2919 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2920 sectioning.
2921
2922 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2923
2924 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2925 increment/decrement.
2926
2927 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2928
2929 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2930 compiling with clang.
2931
2932 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2933
2934 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2935 ".".
2936
2937 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 Redirect all divisions to grub_divmod64.
2940
2941 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2944
2945 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2946
2947 Add missing includes of loader.h.
2948
2949 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 * configure.ac: Allow disabling themes.
2952
2953 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2954
2955 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2956
2957 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2958
2959 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2960 until it becomes operational.
2961
2962 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2963
2964 * grub-core/Makefile.core.def (legacy_password_test): Disable
2965 on platforms where no legacycfg is compiled.
2966 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2967 load legacy_password_test.
2968
2969 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2972
2973 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2974
2975 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2976
2977 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2978
2979 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2980 strict-aliasing warning.
2981 (fsync): Silence cast warning.
2982
2983 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * grub-core/commands/verify.c: Remove variable length arrays.
2986 Load gcry_dsa/gcry_rsa automatically.
2987
2988 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2989
2990 * grub-core/tests/signature_test.c: New test.
2991
2992 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2993
2994 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2995 API.
2996
2997 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2998
2999 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3000 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3001
3002 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3003
3004 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3005
3006 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * grub-core/fs/proc.c: Allow \0 in proc files.
3009
3010 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3011
3012 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3013
3014 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3015
3016 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3017
3018 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * grub-core/fs/ext2.c: Remove variable length arrays.
3021
3022 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3025 length arrays.
3026
3027 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3028
3029 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3030 * grub-core/disk/cryptodisk.c: Likewise.
3031 * grub-core/disk/geli.c: Likewise.
3032 * grub-core/disk/luks.c: Likewise.
3033
3034 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 * grub-core/tests/legacy_password_test.c: New test.
3037 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3038
3039 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3042
3043 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 * grub-core/tests/pbkdf2_test.c: New test.
3046
3047 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3048
3049 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3050
3051 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 * grub-core/io/lzopio.c: Remove variable length arrays.
3054
3055 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3056
3057 * include/grub/crypto.h: Add maximums on hash size and cipher block
3058 size.
3059
3060 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3063
3064 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * grub-core/tests/xnu_uuid_test.c: New test.
3067
3068 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3071 covers it).
3072
3073 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 * grub-core/commands/hashsum.c: Remove variable length arrays.
3076
3077 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3080 condition.
3081 * tests/grub_func_test.in: Increase memory allocation.
3082
3083 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3086 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3087 sys/mount.h.
3088
3089 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3090
3091 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3092 (grub_util_get_fd_size_os): ...this.
3093 (grub_hostdisk_flush_initial_buffer): New empty function.
3094
3095 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3096
3097 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3098 without --defined-only.
3099
3100 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3103 rip-relative addressing in prologue.
3104
3105 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3108 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3109
3110 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3113 Add missing semicolon.
3114
3115 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3118
3119 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 * configure.ac: Check for lzma.h for enabling liblzma and allow
3122 manual disabling.
3123
3124 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 Add missing includes of loader.h.
3127
3128 2013-11-11 Fam Zheng <famcool@gmail.com>
3129
3130 * util/grub.d/30_os-prober.in: Add minix entry.
3131
3132 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3133
3134 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3135 right buffer for temporary load.
3136
3137 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3138
3139 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3140
3141 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3144 payload.
3145
3146 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3149 not Types.h.
3150 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3151 environment.
3152 (LzmaDec_InitDicAndState): Make static.
3153
3154 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3157
3158 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3161
3162 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3163
3164 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * docs/grub-dev.texi: Replace bzr references with git ones.
3167
3168 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3169
3170 * docs/grub.texi (Simple configuration): Remove reference to
3171 grub-reboot from saved default entry description - grub-default
3172 does not use it anymore.
3173
3174 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3177 compiled with.
3178
3179 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3180
3181 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3182
3183 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 Fix grub_machine_fini bitrot.
3186
3187 Reported by: Glenn Washburn.
3188
3189 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3190
3191 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3192
3193 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3196 -DELF.
3197 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3198 instead of ELF*.
3199
3200 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3203 Add -march=core2 when testing compile of efiemu64.
3204
3205 Thanks Andrey Borzenkov for spotting this.
3206
3207 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3210 XEN PV environment and load kernels.
3211
3212 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3213
3214 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3215 * grub-core/loader/multiboot_mbi2.c: Likewise.
3216
3217 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3220 handling.
3221
3222 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3225
3226 Tested by: Denis 'GNUtoo' Carikli.
3227
3228 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3231
3232 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3235 Use to get rounded angle rather than truncated.
3236
3237 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 * grub-core/term/serial.c: Add option for enabling/disabling
3240 RTS/CTS flow control.
3241
3242 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3245 divisions.
3246
3247 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3250 Use grub_fatal rather than divide by zero.
3251 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3252
3253 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3254
3255 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3256 truncate.
3257 (grub_fixed_fsf_divide): Likewise.
3258
3259 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3260
3261 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3262 division by-zero and senseless negative divisions.
3263
3264 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3267 division by-zero and senseless negative divisions.
3268 (circprog_set_property): Don't accept negative num_ticks.
3269
3270 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3271
3272 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3273 division by-zero and senseless negative divisions.
3274
3275 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3276
3277 * configure.ac: Use elf_*_fbsd on kfreebsd.
3278
3279 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3280
3281 * grub-core/tests/div_test.c: New test.
3282
3283 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3284
3285 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3286 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3287 * grub-core/gfxmenu/view.c: Likewise.
3288 * grub-core/video/fb/video_fb.c: Introduce new functions:
3289 grub_video_set_area_status, grub_video_get_area_status,
3290 grub_video_set_region, grub_video_get_region.
3291 * grub-core/video/bochs.c: Likewise.
3292 * grub-core/video/capture.c: Likewise.
3293 * grub-core/video/video.c: Likewise.
3294 * grub-core/video/cirrus.c: Likewise.
3295 * grub-core/video/efi_gop.c: Likewise.
3296 * grub-core/video/efi_uga.c: Likewise.
3297 * grub-core/video/emu/sdl.c: Likewise.
3298 * grub-core/video/radeon_fuloong2e.c: Likewise.
3299 * grub-core/video/sis315pro.c: Likewise.
3300 * grub-core/video/sm712.c: Likewise.
3301 * grub-core/video/i386/pc/vbe.c: Likewise.
3302 * grub-core/video/i386/pc/vga.c: Likewise.
3303 * grub-core/video/ieee1275.c: Likewise.
3304 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3305 * include/grub/video.h: Likewise.
3306 * include/grub/video_fb.h: Likewise.
3307 * include/grub/fbfill.h: Updated render_target structure.
3308 grub_video_rect_t viewport, region, area
3309 int area_offset_x, area_offset_y, area_enabled
3310 * include/grub/gui.h: New helper function
3311 grub_video_bounds_inside_region.
3312 * docs/grub-dev.texi: Added information about new functions.
3313
3314 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3315
3316 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3317 for alignment.
3318
3319 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3320
3321 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3322 missing attribute.
3323 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3324
3325 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3326
3327 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3328 simple division on arm and ia64.
3329
3330 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3331
3332 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3333 link with libgcc.
3334
3335 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3338
3339 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3342 prefix symbol, not @.
3343
3344 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 * INSTALL: Add note about older gcc and clang.
3347
3348 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3349
3350 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3351
3352 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3353
3354 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3355 NULL pointer dereference.
3356
3357 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3360 clang.
3361
3362 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3363
3364 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3365 warnings.
3366
3367 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3368
3369 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3370 function.
3371 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3372 * grub-core/disk/geli.c (ascii2hex): Likewise.
3373
3374 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * configure.ac: Run linker tests without -Werror.
3377 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3378 Change all occurences of -static-libgcc resp -lgcc to
3379 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3380
3381 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3384
3385 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 Allow compiling with clang (not really supported though).
3388
3389 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3390 unconditionally.
3391 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3392 Add -mrtd -mregparm=3 on i386 when not using clang.
3393 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3394
3395 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3398 bindings.
3399 * grub-core/lib/reed_solomon.c: Likewise.
3400 * include/grub/i386/gdb.h: Likewise.
3401 * include/grub/i386/pc/int.h: Likewise.
3402 * include/grub/i386/pc/pxe.h: Likewise.
3403 * include/grub/ieee1275/ieee1275.h: Likewise.
3404
3405 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 Import libgcrypt 1.5.3.
3408
3409 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 * configure.ac: Don't add -Wcast-align on x86.
3412
3413 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * configure.ac: Add -freg-struct-return on all platforms that
3416 support it.
3417
3418 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * acinclude.m4: Use -Werror on parameter tests.
3421 * configure.ac: Likewise.
3422
3423 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3426
3427 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 * configure.ac: Check that -malign-loops works rather than assuming that
3430 either -falign-loops or -malign-loops work.
3431
3432 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3433
3434 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3435
3436 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3437
3438 * configure.ac: Prevent cflags leaking to subsequent tests by always
3439 resetting cflags to target_cflags in target tests.
3440
3441 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3444 function.
3445
3446 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3449
3450 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3453
3454 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 * grub-core/normal/cmdline.c (grub_cmdline_get):
3457 Remove nested functions.
3458
3459 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3460
3461 * tests/test_sha512sum.in: Make it work on emu.
3462
3463 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3466 functions.
3467 (grub_bidi_line_logical_to_visual): Likewise.
3468
3469 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3470
3471 Remove vestiges of -Wunsafe-loop-optimisations.
3472
3473 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3474 -Wno-unsafe-loop-optimisations.
3475 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3476 pragma.
3477 * grub-core/io/gzio.c: Likewise.
3478 * grub-core/script/parser.y: Likewise.
3479 * grub-core/script/yylex.l: Likewise.
3480 * util/grub-mkfont.c: Likewise.
3481
3482 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * util/grub-mkfont.c (process_cursive): Remove nested function.
3485
3486 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3489 (grub_boot_time): Likewise.
3490
3491 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * include/grub/symbol.h (FUNCTION): Use @function rather than
3494 "function".
3495 (VARIABLE): Likewise.
3496
3497 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3500
3501 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3502
3503 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3504 (parse_dhcp_vendor): Likewise.
3505
3506 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3507
3508 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3509
3510 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3511
3512 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3513 Define after defining type and not before.
3514
3515 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3516
3517 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3518 type.
3519 (grub_gcm_decrypt): Likewise.
3520 (algo_decrypt): Likewise.
3521 (grub_zfs_decrypt_real): Transform error type.
3522
3523 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3526
3527 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3530 (grub_usbms_cbi_reset): Likewise.
3531 (grub_usbms_bo_reset): Likewise.
3532 (grub_usbms_reset): Likewise.
3533 (grub_usbms_attach): Likewise.
3534 (grub_usbms_transfer_cbi): Likewise.
3535
3536 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3537
3538 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3539 "checksum = checksum;".
3540
3541 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3542
3543 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3544 entry_type.
3545
3546 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3547
3548 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3549 BIOS disk check.
3550
3551 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3554 type.
3555 (grub_ehci_fini_hw): Likewise.
3556 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3557
3558 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3561 return grub_usb_err_t for cosistency. All users updated.
3562
3563 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3564
3565 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3566 assigning to itself.
3567
3568 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3569 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3570
3571 Issue separate DNS queries for ipv4 and ipv6
3572
3573 Adding multiple questions on a single DNS query is not supportted by
3574 most DNS servers. This patch issues two separate DNS queries
3575 sequentially for ipv4 and then for ipv6.
3576
3577 Fixes: https://savannah.gnu.org/bugs/?39710
3578
3579 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3580 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3581 * (grub_net_dns_lookup): Now using separated dns packages.
3582 * (grub_cmd_nslookup): Add error condition.
3583 * (grub_cmd_list_dns): Print DNS option.
3584 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3585 --prefer-ipv4, and --prefer-ipv6.
3586 * include/grub/net.h (grub_dns_option_t): New enum.
3587 * (grub_net_network_level_address): option added.
3588
3589 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3590
3591 * grub-core/video/fb/video_fb.c: Merge two blit functions
3592 into one.
3593
3594 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3595
3596 * grub-core/term/terminfo.c: Add sequences for home and end.
3597
3598 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3601 graphics console.
3602
3603 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3604
3605 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3606 add mode 0x12.
3607
3608 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3611 e-mail by Per Öberg.
3612
3613 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3616 name.
3617
3618 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3619
3620 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3621 emu platforms.
3622 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3623
3624 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3625
3626 * docs/grub.texi: Document usage of menuentry id.
3627
3628 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3631
3632 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3633
3634 * grub-core/commands/i386/nthibr.c: New command.
3635
3636 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3639
3640 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3643 coordinate.
3644
3645 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 Support GRUB_DISABLE_SUBMENU config.
3648
3649 Inspired by patch from Prarit Bhargava.
3650
3651 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * docs/grub.texi: Mention RSA support.
3654
3655 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * grub-core/commands/verify.c: Add RSA support.
3658
3659 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3662 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3663 device is known to be ATAPI.
3664
3665 2013-11-03 Mike Frysinger <vapier>
3666
3667 * configure.ac: Don't add target-prefix.
3668
3669 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3672 variables.
3673
3674 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3675
3676 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3677 if language is English.
3678
3679 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3680
3681 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3682
3683 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3684
3685 * configure.ac: Don't add -m32/-m64 on emu.
3686
3687 2013-11-02 neil
3688
3689 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3690 broken linux headers.
3691
3692 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3693
3694 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3695
3696 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3697
3698 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3699 Reed-Solomon recovery if more than half of redundancy info is 0.
3700
3701 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3702
3703 * util/grub-mount.c: Handle symlinks to directories.
3704
3705 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3706
3707 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3708 find_file recursively for symlink.
3709
3710 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3711
3712 * tests/util/grub-shell.in: Copy themes.
3713
3714 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3715
3716 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3717
3718 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * configure.ac: Use 0x8000 for address instead of 8000.
3721
3722 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3723
3724 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3725 signature.
3726
3727 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3728
3729 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3730 variable.
3731
3732 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3735
3736 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3737
3738 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3739 file_progress_read_hook.
3740 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3741
3742 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3745 and double.
3746
3747 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3748
3749 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3750
3751 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 Rewrite blocklist functions in order to get progress when
3754 reading large extents and decrease amount of blocklist hook calls.
3755
3756 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3759 of SI suffixes.
3760
3761 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3762
3763 Support --base-clock for serial command to handle weird cards with
3764 non-standard base clock.
3765
3766 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3767
3768 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3769 strncpy.
3770 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3771 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3772 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3773 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3774 + strcpy rather than strncpy.
3775
3776 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3779 (check_pool_label): Likewise. Fixes overflow.
3780 (nvlist_find_value): Fix comparison.
3781
3782 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3785 more appropriate functions.
3786
3787 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3790 realloc.
3791
3792 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3795
3796 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3799 on core size.
3800
3801 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3804
3805 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3806
3807 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3808 (initialize_tables): reset tl and td to NULL after freeing.
3809
3810 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3813
3814 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3817 of supported tags.
3818
3819 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3820
3821 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3822
3823 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3826 quirks.
3827
3828 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3831 a page in protected space.
3832
3833 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3834
3835 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3836 allocate space for zero-sized modules.
3837
3838 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3839
3840 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3841
3842 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3843
3844 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3845
3846 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3847
3848 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3849 safeguards. Fixes a crash with i386/pc/console.c.
3850
3851 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3852
3853 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3854 and grub_hostfs_init.
3855
3856 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3859 windows method on other platforms without good stat as well.
3860
3861 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3862
3863 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3864
3865 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3866
3867 Make / in btrfs refer to real root, not the default volume.
3868 Modify mkrelpath to work even if device is mounted with subvolid option.
3869
3870 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3871
3872 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3873 extra_dist.
3874 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3875 extra_dist.
3876
3877 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3878
3879 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3880 fails.
3881
3882 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3883
3884 * docs/autoiso.cfg: New file.
3885
3886 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3887
3888 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3889 COND_GRUB_PE2ELF conditions.
3890
3891 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3892
3893 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3894 "vnd", "rd" and "fd" disks.
3895
3896 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3897
3898 Move grub_disk_write out of kernel into disk.mod.
3899
3900 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3901
3902 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3903 handling.
3904
3905 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3906
3907 * grub-core/kern/misc.c (grub_abort): Make static
3908
3909 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3912 transform invalid unicode codepoints.
3913
3914 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3917 \0 checking.
3918
3919 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3920
3921 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3922
3923 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3924
3925 Consolidate cpuid code.
3926
3927 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 Move cpuid code to cpuid.h and TSC code to tsc.c.
3930
3931 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3932
3933 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3934
3935 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3936
3937 * util/grub-mkconfig.in: Replace $0 with $self.
3938 * util/grub-reboot.in: Likewise.
3939 * util/grub-set-default.in: Likewise.
3940
3941 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3942
3943 * docs/osdetect.cfg: New file.
3944
3945 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3946
3947 * tests/util/grub-shell.in: Add new --debug option.
3948
3949 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3950
3951 * tests/test_unset.in: New test.
3952
3953 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3954
3955 * tests/test_sha512sum.in: New test.
3956
3957 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3958
3959 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3960 * include/grub/misc.h: Remove strncat.
3961 * grub-core/lib/posix_wrap/string.h: Likewise.
3962
3963 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3964
3965 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3966 Try to handle more than 0xFFFF packets.
3967 Reported by: Bernhard Übelacker <bernhardu>.
3968 He also spotted few overflows in first version of this patch.
3969
3970 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 * tests/date_unit_test.c: New test.
3973
3974 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3977 of first three years after start of validity of unixtime.
3978
3979 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3980
3981 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3982 division as the one making more sense.
3983 (update_screen): Likewise.
3984 (complete): Likewise.
3985
3986 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3989
3990 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 Make char and string width grub_size_t rather than grub_ssize_t.
3993
3994 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3997 unsigned.
3998 (grub_history_replace): Likewise.
3999
4000 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4003 appropriate.
4004
4005 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4008 appropriate.
4009
4010 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4013 Use unsigned divisions rather than signed variants.
4014
4015 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4016
4017 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4018 unsigned arithmetics.
4019 Add missing break.
4020
4021 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4022
4023 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4024
4025 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4028 rather than signed one.
4029 (recovery): Likewise.
4030
4031 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4034
4035 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4036
4037 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4038 than signed.
4039
4040 2013-10-25 Jon McCune <jonmccune@google.com>
4041
4042 * docs/grub.texi: Cleanup security documentation around signatures.
4043
4044 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4045
4046 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4047
4048 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4051 than int.
4052
4053 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4054
4055 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4056 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4057 functions when compiling for kernel.
4058
4059 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4060
4061 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4062 unsigned long long when using %llu.
4063
4064 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4065
4066 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4067 terminal after updating progress.
4068
4069 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4072 argument. We don't disable Gate A20 in this code.
4073
4074 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4075
4076 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4077 Conceptually based on change in branch "vbe-on-coreboot".
4078
4079 2013-10-24 Robert Millan <rmh@gnu.org>
4080
4081 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4082 numeric constants with their symbolic equivalent.
4083 Taken from branch "vbe-on-coreboot".
4084
4085 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4086
4087 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4088
4089 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4090
4091 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4092 divmod64 for offset division.
4093
4094 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4095
4096 Rename .bzrignore to .gitignore. Add "*.o" rule.
4097
4098 * .bzrignore: Renamed to...
4099 * .gitignore: ...this.
4100
4101 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4102
4103 Add new progress module that displays the load progress of files.
4104
4105 * grub-core/lib/progress.c: New file.
4106 * grub-core/Makefile.core.def (progress): New module.
4107 * grub-core/kern/file.c (grub_file_open): File name added.
4108 * (grub_file_read): Progress hook added.
4109 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4110 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4111 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4112 * include/grub/file.h (struct grub_file): Add progress module members.
4113 * include/grub/term.h (struct grub_term_output): Likewise.
4114 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4115 Terminal velocity added.
4116 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4117 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4118 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4119 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4120 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4121 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4122 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4123 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4124 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4125 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4126 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4127 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4128
4129 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 Verify signatures of signatures unless --skip-sig is specified.
4132
4133 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4134
4135 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4136 \0 checking.
4137
4138 Saves 70 bytes on compressed image.
4139
4140 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4141
4142 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4143 check.
4144
4145 Saves 10 bytes on compressed image.
4146
4147 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4148
4149 * grub-core/kern/misc.c (grub_isprint): Move to ...
4150 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4151
4152 Saves 20 bytes on compressed image due to remving exporting.
4153
4154 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4155
4156 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4157
4158 Saves 5 bytes on compressed image.
4159
4160 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4161
4162 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4163 function get_utf8.
4164
4165 Saves 379 bytes on compressed image.
4166
4167 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4168
4169 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4170
4171 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4172
4173 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4174
4175 Saves 40 bytes on compressed image.
4176
4177 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4180 mask rather than 64-bit type.
4181
4182 Saves 20 bytes on compressed image.
4183
4184 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4185
4186 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4187 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4188
4189 Saves 273 bytes on compressed image.
4190
4191 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4194 variable length arrays.
4195
4196 Saves 50 bytes on compressed image.
4197
4198 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4199
4200 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4201
4202 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 * grub-core/fs/ufs.c: Remove variable length arrays.
4205
4206 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4209
4210 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4211
4212 * grub-core/fs/zfs.c: Remove variable length arrays.
4213 Reduces zfs.mod by 160 bytes (208 compressed).
4214
4215 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4216
4217 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4218
4219 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4220
4221 * grub-core/net/arp.c: Remove variable length arrays.
4222 * grub-core/net/bootp.c: Likewise.
4223 * grub-core/net/dns.c: Likewise.
4224 * grub-core/net/icmp6.c: Likewise.
4225 * grub-core/net/net.c: Likewise.
4226
4227 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4228
4229 * grub-core/fs/ntfs.c: Remove variable length arrays.
4230 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4231 compressed).
4232
4233 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4234
4235 * grub-core/fs/hfs.c: Remove variable length arrays.
4236 Reduces hfs.mod by 8 bytes (52 compressed).
4237
4238 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4239
4240 * grub-core/fs/udf.c: Remove variable length arrays.
4241 Increases udf.mod by 128 bytes (but decreases by 13 when
4242 compressed).
4243
4244 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4245
4246 * grub-core/fs/iso9660.c: Remove variable length arrays.
4247 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4248 compressed).
4249
4250 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4251
4252 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4253 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4254 compressed).
4255
4256 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 * grub-core/fs/xfs.c: Remove variable length arrays.
4259 Reduces xfs.mod by 40 bytes (43 compressed).
4260
4261 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4262
4263 * grub-core/fs/fshelp.c: Remove variable length arrays.
4264 Reduces fshelp.mod by 116 bytes (23 compressed).
4265
4266 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4267
4268 * grub-core/normal/completion.c: Remove variable length arrays.
4269 * grub-core/normal/menu_entry.c: Likewise.
4270
4271 Reduces normal.mod by 496 bytes.
4272
4273 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4274
4275 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4276 by 356 bytes (158 compressed).
4277
4278 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4279
4280 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4281 by 364 bytes (169 compressed).
4282
4283 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4284
4285 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4286 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4287 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4288
4289 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4290
4291 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4292 bitmasks to small structures of size chosen to fit in registers.
4293
4294 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * conf/Makefile.common: Use -freg-struct-return on i386. This
4297 decreases code size and improves performance.
4298
4299 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4300
4301 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4302
4303 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4304
4305 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4306 "(null)" string.
4307 Simplify expressions to save around 256 bytes in kernel.img.
4308 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4309
4310 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4311
4312 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4313 Use GRUB_UTIL_FD_O_* rather than O_*.
4314
4315 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 Add haiku-specific functions.
4318
4319 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4322
4323 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4324
4325 Move stat () and device mode checking into OS-dependent files as
4326 long as performance doesn't suffer.
4327
4328 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 Split make_system_path_relative_to_its_root into separate file
4331 relpath.c from getroot.c as it's common between unix and haiku
4332 but otherwise haiku doesn't use any functions from unix getroot.c.
4333
4334 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4335
4336 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4337 New function.
4338 (grub_util_is_special_file): Likewise.
4339
4340 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4341
4342 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4343 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4344
4345 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4348 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4349
4350 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4351
4352 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4353 (load_image): Likewise.
4354
4355 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4356
4357 * util/grub-render-label.c: Move backend part to ...
4358 * util/render-label.c: ... here.
4359
4360 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4363 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4364
4365 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4366
4367 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4368
4369 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4370
4371 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4372 CD-ROM in case when it's declared as having subpartitions.
4373
4374 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4375
4376 Don't add -lm on haiku.
4377
4378 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4379 and empty on haiku.
4380 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4381 -lm.
4382
4383 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4384
4385 * configure.ac: Use -melf_*_haiku as target on haiku.
4386
4387 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * Makefile.util.def: Add util/setup.c to extra_dist.
4390
4391 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4392
4393 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4394 unknown types through.
4395
4396 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4399 (grub_util_check_char_device): Likewise.
4400 * include/grub/emu/getroot.h: Likewise.
4401
4402 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4403
4404 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4405 memset rather than inline static function.
4406
4407 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4408
4409 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4410 not doing embedded decompressor.
4411
4412 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4415 shadowing.
4416 * grub-core/kern/disk.c: Likewise.
4417 * grub-core/kern/misc.c: Likewise.
4418 * include/grub/parser.h: Likewise.
4419 * include/grub/script_sh.h: Likewise.
4420 * include/grub/zfs/zfs.h: Likewise.
4421
4422 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4423
4424 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4425
4426 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4429 defined before trying to use it.
4430
4431 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4432
4433 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4434 warning.
4435
4436 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4439 Use __unused__ rather than __used__ on gcc < 3.2.
4440
4441 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4444 gcc < 4.0.
4445 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4446
4447 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4448
4449 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4450
4451 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4454 * include/grub/emu/misc.h: Likewise.
4455
4456 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4459 cur_color.
4460
4461 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4462
4463 * grub-core/tests/checksums.h: Regenerated due to progress bar
4464 get_minimal_size changes.
4465
4466 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4467
4468 Added `tr' command support.
4469
4470 * grub-core/commands/tr.c: New file.
4471 * grub-core/Makefile.core.def: Build rules for new module.
4472
4473 * tests/grub_cmd_tr.in: New test.
4474 * Makefile.util.def: Build rules for new test.
4475
4476 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4477
4478 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4479
4480 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4481
4482 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4483 * docs/gurb.texi: Likewise.
4484
4485 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4486
4487 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4488 Pixmap highlighted section with east and west slices was displayed
4489 incorrectly due to negative width of the central slice.
4490
4491 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4492
4493 * docs/grub.texi: Graphical options information update.
4494 Removed outdated. Updated current. Inserted missed.
4495
4496 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * docs/grub.texi: Mention few new platform-specific commands.
4499
4500 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4501
4502 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4503 currently used so this doesn't really have any effect.
4504 Reported by: Douglas Ray <dougray>
4505
4506 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4509 compilation but prevents gcc from displaying messages in non-Latin
4510 alphabets.
4511 * conf/Makefile.common: Likewise.
4512
4513 2013-10-16 Hiroyuki YAMAMORI
4514
4515 Handle Japanese special keys.
4516 Reported by: Hiroyuki YAMAMORI.
4517 Codes supplied by: Hiroyuki YAMAMORI.
4518
4519 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4520
4521 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4522
4523 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4524
4525 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4526 * docs/grub.texi: Likewise.
4527
4528 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4531 value in case of incomplete read.
4532 (grub_util_fd_write): Likewise.
4533
4534 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4535
4536 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4537
4538 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * util/grub-editenv.c (create_envblk_file): More from here ...
4541 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4542
4543 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4546 canonicalize file name before doing the rest.
4547
4548 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4549
4550 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4551 mingw32.
4552
4553 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 Define grub_util_is_directory/regular/special_file and
4556 use OS-dependent versions rather than to rely on stat().
4557
4558 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 * util/grub-mkimage.c: Move backend part to ...
4561 * util/mkimage.c: ... here.
4562
4563 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 Allow compilation with mingw64 albeit with warnings due to lack of
4566 %llx/%llu.
4567
4568 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4569 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4570 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4571 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4572 on mingw64.
4573 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4574
4575 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4576
4577 Remove leftover references to some of the system headers.
4578
4579 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4580
4581 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4582 read.
4583
4584 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4587 of strerror.
4588
4589 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4590
4591 Split out blocklist retrieving from setup.c to
4592 grub-core/osdep/blocklist.c and add windows implementation since
4593 generic version doesn't work on NTFS on Windows due to aggressive
4594 unflushable cache.
4595
4596 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4597
4598 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4599 files.
4600
4601 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4602
4603 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4604 Cut tailing newline. Remove arbitrary limitation. Always use
4605 grub_util_tchar_to_utf8.
4606
4607 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4608
4609 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4610 * tests/printf_unit_test.c (printf_test): Add %% tests.
4611 Reported by: Paulo Flabiano Smorigo.
4612
4613 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4616 implement fsync.
4617
4618 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4619
4620 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4621 use nvlist_lookup_string and don't use nvlist_print.
4622
4623 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4626 closedir to handle filename charset translation.
4627
4628 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 * include/grub/emu/hostdisk.h: Move file operations to
4631 * include/grub/emu/hostfile.h: ... here.
4632
4633 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4636 unicode path.
4637
4638 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4641
4642 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4643
4644 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4645 and remove export.h.
4646
4647 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4648
4649 * grub-core/kern/emu/error.c: Removed.
4650 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4651 explicitly as it's already in libgnu.a.
4652
4653 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4654
4655 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4656 config-util.h include.
4657
4658 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4659
4660 Split emunet into platform-dependent and GRUB-binding parts. Keep
4661 platform-dependent part in kernel for easy access to OS functions.
4662
4663 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4666 open/read/write.
4667
4668 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 * grub-core/osdep/windows/emuconsole.c: New file.
4671
4672 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4673
4674 * conf/Makefile.extra-dist: Add osdep/*/init.c
4675
4676 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4677
4678 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4679
4680 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4681
4682 * util/grub-probe.c (probe): Separate different drives in hint-str
4683 by spaces and not newlines.
4684 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4685
4686 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4687
4688 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4689 Handle CD-ROMs.
4690
4691 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4692
4693 Pass-through unknown E820 types. It required reorganisation of mmap
4694 module.
4695
4696 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4697
4698 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4699
4700 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4701
4702 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4703 fseeko.
4704
4705 2013-10-14 qwertial <qwertial>
4706
4707 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4708
4709 2013-10-14 Jon McCune <jonmccune@google.com>
4710
4711 * docs/grub.texi: Document new signatures possibility.
4712
4713 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4714
4715 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4716
4717 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4718
4719 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4720 missing prototype.
4721 (grub_util_tchar_to_utf8): Likewise.
4722
4723 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4726 * grub-core/kern/emu/main.c: Add missing include.
4727 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4728 Don't call grub_util_init_nls.
4729 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4730 Likewise.
4731
4732 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4733
4734 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4735 stat.
4736
4737 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4740
4741 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4744
4745 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 Add a wrapper for fopen. On unix-like systems just pass-through. On
4748 windows use unicode version.
4749
4750 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 Move set_program_name and init_nls to host_init. On windows
4753 fix in this fuction console and argument charset as well.
4754
4755 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4756
4757 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4758 GRUB_ENABLE_CRYPTODISK.
4759
4760 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4761 GRUB_ENABLE_CRYPTODISK.
4762 * util/grub-mkconfig_lib.in: Likewise.
4763
4764 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4765
4766 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4767
4768 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4769
4770 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4771 error when enabling debug.
4772
4773 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4774
4775 * configure.ac: Use -melf_*_obsd on openbsd.
4776
4777 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4780
4781 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4782
4783 * include/grub/misc.h: Use gnu_printf rather than printf as format
4784 template since our functions are independent of libc.
4785
4786 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4787
4788 * util/grub-setup.c (setup): Move copying of partition table as
4789 futher up as possible to avoid possible overwrite by floppy routines.
4790
4791 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4792
4793 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4794
4795 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4796
4797 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4798 * docs/grub.texi: Likewise.
4799
4800 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4803 it's mostly unused. Move vestiges to the callers.
4804
4805 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4808 version of salt and hash. Use grub_snprintf rather than snprintf.
4809
4810 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4811
4812 * docs/grub.texi: Fix problem with braces.
4813
4814 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4815
4816 * conf/Makefile.extra-dist: Fix extra-dist list.
4817 * grub-core/Makefile.core.def: Likewise.
4818
4819 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * docs/grub.texi: Document disk names used on Windows and AROS.
4822
4823 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4824
4825 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4826 with AROS devs.
4827 * grub-core/osdep/aros/hostdisk.c: Likewise.
4828
4829 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4830
4831 Avoid including hostfile.h when not necessarry as it pulls
4832 in OS-specific headers which may redefine generic names
4833 like "far".
4834
4835 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4836
4837 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4838 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4839 scrollbar_bottom_pad
4840 * docs/grub.texi: Likewise.
4841
4842 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4843
4844 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4845
4846 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4847
4848 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4849
4850 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4853 Removed.
4854 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4855 Made static.
4856
4857 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4858
4859 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4860 leftover.
4861
4862 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4863
4864 Move OS-specific driver configuration to grub_util_fd_open. This
4865 moves OS-dependent parts from kern/emu/hostdisk.c to
4866 grub-core/osdep/*/hostdisk.c.
4867
4868 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4869
4870 * util/grub-mkimage.c (generate_image): Use size_t instead of
4871 grub_size_t.
4872 * util/grub-mkimagexx.c (locate_sections): Likewise.
4873 (load_image): Likewise.
4874
4875 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4876
4877 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4878 size_t.
4879 (grub_util_write_image): Likewise.
4880
4881 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4884 get random when no RNG is available.
4885 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4886
4887 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 * include/grub/util/lvm.h: Removed.
4890
4891 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4894 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4895
4896 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4899
4900 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4901
4902 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4903
4904 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4905
4906 * grub-core/net/drivers/emu/emunet.c: Move to ..
4907 * grub-core/osdep/linux/emunet.c: ..here.
4908
4909 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4910
4911 * util/ieee1275/ofpath.c: Move to ...
4912 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4913 * grub-core/osdep/basic/ofpath.c: ..here.
4914
4915 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4916
4917 Move password-querying (util-version) routines to grub-core/osdep.
4918
4919 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4920
4921 Move sleep routines to grub-core/osdep.
4922
4923 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 Move OS-dependent files to grub-core/osdep and document it.
4926
4927 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4928
4929 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4930 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4931
4932 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4935
4936 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4937
4938 * util/misc.c: Remove leftover inclusion of malloc.h.
4939
4940 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4941
4942 * include/grub/setjmp.h: Remove leftover GRUBOF.
4943
4944 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4945
4946 * util/raid.c: Fold into ...
4947 * util/getroot_linux.c: ... here. Make all functions static.
4948
4949 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4952 macros to GRUB ones.
4953
4954 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4955
4956 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4957 occasional bug. If there are too many boot entries or too low
4958 scrollbar height then we need to use another formula to calculate
4959 the position and size of the scrollbar thumb.
4960
4961 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4962
4963 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4964
4965 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4966
4967 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4968 * docs/grub.texi: Likewise.
4969
4970 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4971
4972 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4973 viewport.
4974
4975 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4976
4977 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4978 minimal width calculations.
4979
4980 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4981
4982 * docs/grub.texi: Update note on colors on emu console.
4983
4984 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4987 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4988 it's FS and not GRUB limitation.
4989
4990 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4991
4992 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4993
4994 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4997
4998 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4999
5000 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5001 kernels by version order.
5002
5003 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5004
5005 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5006
5007 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5008
5009 Add AROS hostdisk and getroot routines.
5010
5011 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5012
5013 Make cryptodisk and diskfilter probe data retrievable programmatically
5014 and not just printable.
5015
5016 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5017
5018 Split random retrieving code into separate files.
5019
5020 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5021
5022 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5023 R_ARM_V4BX.
5024
5025 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5026
5027 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5028 condition.
5029 * grub-core/tests/fake_input.c: Likewise.
5030 * grub-core/tests/cmdline_cat_test.c: Likewise.
5031
5032 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5033
5034 * grub-core/video/capture.c: Do not do finalization when .fini
5035 is called as there is explicit capture_end.
5036
5037 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5038
5039 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5040 changing windows to avoid crash.
5041
5042 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5043
5044 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5045
5046 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5047
5048 * po/exclude.pot: Add several strings to exclude.
5049
5050 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5053
5054 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5057 ./util/grub-gen-asciih.c to exclude list.
5058
5059 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5060
5061 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5062 and don't mark error strings for translation.
5063
5064 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5065
5066 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5067 properly in case of missing block size.
5068
5069 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5070
5071 * grub-core/lib/arm/setjmp.S: Add missing license section.
5072
5073 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * po/swiss.sed: Add replacement for key names and for term computer.
5076
5077 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5078
5079 * grub-core/gfxmenu/theme_loader.c: New global options for the
5080 theme background image handling. desktop-image-scale-method,
5081 desktop-image-h-align, desktop-image-v-align.
5082 * grub-core/gfxmenu/view.c: Likewise.
5083 * include/gfxmenu_view.h: Likewise.
5084 * include/bitmap_scale.h: Proportional scale functions introduced.
5085 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5086 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5087 cases of unexpected input variables for scale functions.
5088 * docs/grub.texi: Updated documentation for new options.
5089
5090 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5093
5094 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5095
5096 * grub-core/tests/checksums.h: Corrected due to changes in
5097 bilinear interpolation function.
5098
5099 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5100
5101 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5102 to eliminate artefacts in bilinear interpolation.
5103
5104 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5105
5106 * grub-core/video/readers/tga.c: Support paletted tga.
5107
5108 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5111 incorrect cbcr setting when in color mode.
5112
5113 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5114
5115 * grub-core/video/readers/png.c: Support paletted images and clean up
5116 greyscale support.
5117
5118 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5119
5120 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5121 usage of wrong table which resulted in mishandling of 4-byte
5122 sequences.
5123
5124 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5125
5126 * grub-core/term/terminfo.c: Add Home and End key sequences.
5127
5128 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5129
5130 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5131 Fix formula for computing total number of bytes.
5132
5133 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5134
5135 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5136 image processing, fix big-endian and support grayscale.
5137
5138 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5139
5140 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5141 Correctly will with maximum transparency when using index color.
5142
5143 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5144
5145 * grub-core/video/readers/png.c: Support grayscale
5146
5147 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5148
5149 * grub-core/video/readers/jpeg.c: Support grayscale.
5150
5151 2013-09-26 Jon McCune <jonmccune@google.com>
5152
5153 * grub-core/commands/loadenv.c: Support skipping signature check
5154 and variable names filtering.
5155
5156 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5157
5158 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5159 * grub-core/kern/emu/hostfs.c: Likewise.
5160 * util/getroot_unix.c: Likewise.
5161
5162 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5163
5164 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5165 Migrate all explicit defines to this new one.
5166
5167 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5168
5169 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5170 grub_util_fd_strerror when using grub_util_fd_*.
5171 (grub_util_fd_open_device): Likewise.
5172 (grub_util_biosdisk_read): Likewise.
5173 (grub_util_biosdisk_write): Likewise.
5174 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5175 (grub_util_fd_strerror): Likewise.
5176 (grub_util_fd_sync): Likewise.
5177 (grub_util_fd_close): Likewise.
5178 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5179 (grub_util_fd_close): Likewise.
5180 (grub_util_fd_strerror): Likewise.
5181 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5182 function proto rather than macro.
5183 (grub_util_fd_sync): Likewise.
5184 (grub_util_fd_open): Likewise.
5185 (grub_util_fd_strerror): New proto.
5186
5187 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5188
5189 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5190 platforms on which it doesn't work.
5191
5192 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5193
5194 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5195 stat immediately to where it's used.
5196
5197 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5198
5199 * util/getroot.c (grub_util_check_block_device): Move to ...
5200 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5201 * util/getroot.c (grub_util_check_char_device): Move to ...
5202 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5203
5204 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5205
5206 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5207 disk closing logic.
5208
5209 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5210
5211 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5212
5213 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5214
5215 * docs/grub.texi (File name syntax): Document ZFS filenames
5216 (/volume@snapshot/...).
5217
5218 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5219
5220 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5221 Always return full path. Fixes a problem with mkrelpath.
5222
5223 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5224
5225 * util/grub-install.in: Add GPT PReP support.
5226 * util/grub-probe.c (probe): Support GPT partition type.
5227 (main): Support -t gpt_parttype.
5228
5229 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5230
5231 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5232
5233 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5234
5235 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5236
5237 2013-09-23 Tim Hardeck <thardeck>
5238
5239 * util/grub.d/10_hurd.in: Filter out character for the class.
5240 * util/grub.d/10_kfreebsd.in: Likewise.
5241 * util/grub.d/10_linux.in: Likewise.
5242 * util/grub.d/20_linux_xen.in: Likewise.
5243
5244 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5245
5246 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5247 "changed".
5248
5249 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5250
5251 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5252 boot partition.
5253
5254 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5255
5256 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5257 doesn't use posix_wrap. Keep literal -fno-builtin however.
5258
5259 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5260
5261 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5262
5263 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5264 2013-09-23 neil
5265
5266 * configure.ac: Do not enable -Wmissing-noreturn as its
5267 usefulness is limited and creates problems on some OS notably with
5268 code generated by bison.
5269
5270 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5271 2013-09-23 neil
5272
5273 * configure.ac: Do not explicitly enable -Waddress as it's not
5274 supported by all gcc and when it is, it's already enabled by -Wall.
5275
5276 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5277
5278 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5279 desactivated use of EDID at all.
5280
5281 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5282 2013-09-23 neil
5283
5284 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5285 video if no text is available.
5286
5287 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5288 2013-09-23 neil
5289
5290 * configure.ac: Substitute TARGET_RANLIB.
5291
5292 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5293 2013-09-23 neil
5294
5295 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5296
5297 Based on patches from AROS.
5298
5299 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5300 2013-09-23 neil
5301
5302 * grub-core/Makefile.am: Override STRIP and RANLIB.
5303 * configure.ac: compute TARGET_RANLIB.
5304 * INSTALL: Document TARGET_RANLIB
5305
5306 Based on patches from AROS.
5307
5308 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5309
5310 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5311 that floppies are unpartitioned.
5312
5313 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5314
5315 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5316 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5317
5318 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5319
5320 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5321 less nice but more portable.
5322 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5323
5324 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5325
5326 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5327 for cheat_fd.
5328 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5329 functions.
5330 (grub_cryptodisk_cheat_insert): Likewise.
5331 (grub_cryptodisk_close): Likewise.
5332
5333 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5334
5335 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5336 Use windows path for DEFAULT_DIRECTORY.
5337
5338 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5339
5340 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5341 difference was likely just gcc version, not anything mingw-related.
5342
5343 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5344
5345 Use Winapi on both cygwin and mingw32 to share more code between both.
5346
5347 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5348
5349 * util/grub-install.in: Add --grub-editenv option.
5350 * util/grub-install_header (grub_compress_file): Explicitly check for
5351 plain file to avoid cp error.
5352
5353 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5354
5355 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5356 names; fix LVM driver name (lvm, not lv).
5357 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5358 names.
5359
5360 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5361
5362 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5363 files rather than one file with loads of #if's.
5364 * util/getroot.c: Likewise.
5365
5366 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5367
5368 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5369
5370 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5371
5372 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5373 GNU/Hurd to the list of checked PRNG.
5374
5375 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5376
5377 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5378
5379 2013-09-21 Ales Nesrsta <starous@volny.cz>
5380
5381 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5382
5383 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5384
5385 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5386 * grub-core/disk/lvm.c: Add LVM UUIDs.
5387 * util/getroot.c: Use LVM UUIDs whenever possible.
5388
5389 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5390
5391 * docs/grub.texi (Networking commands): Add documentation for
5392 network related commands.
5393
5394 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5395
5396 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5397 to determine if device is handled by devmapper.
5398 (convert_system_partition_to_system_disk): Likewise.
5399 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5400 already done in grub_util_open_dm.
5401
5402 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5403
5404 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5405 Clean up stack manipulation (sync_caches_armv*)
5406
5407 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5408
5409 * util/lvm.c: Remove since unused. Remove remaining references.
5410
5411 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5412
5413 Handle the case of partitioned LVM properly.
5414
5415 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5416 Stop on meeting LVM, mpath or DMRAID.
5417 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5418 (read_device_map): Likewise.
5419 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5420 device is full disk rather than erroring out on LVM and similar cases.
5421
5422 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5425
5426 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5427
5428 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5429 4K before the end.
5430 Reported by: Leif Lindholm
5431
5432 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5433 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5434
5435 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5436 codes.
5437
5438 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5439
5440 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5441 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5442
5443 2013-09-18 Douglas Ray <dougray@cpan.org>
5444
5445 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5446 as secure.
5447
5448 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5449
5450 * docs/grub.texi: Fix broken link.
5451
5452 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5453
5454 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5455 to break endless loop.
5456
5457 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5458
5459 * util/grub-fstest.c: Fix several printf formats.
5460 * util/grub-mkimage.c: Likewise.
5461 * util/grub-mkimagexx.c: Likewise.
5462 * util/grub-script-check.c: Likewise.
5463
5464 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5465
5466 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5467 error.
5468
5469 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5470
5471 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5472
5473 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5474
5475 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5476 removed in current versions cygwin_conv_*.
5477
5478 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5479
5480 * configure.ac: Disable efiemu runtime on cygwin.
5481
5482 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5483
5484 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5485 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5486
5487 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5488
5489 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5490 error message.
5491
5492 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5495 windows variant.
5496 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5497 data.
5498
5499 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5500
5501 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5502 when on x86 and not cygwin.
5503 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5504 -Wl,-melf_x86_64.
5505
5506 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5507
5508 * configure.ac: Set CPP to build one when checkoing for freetype for
5509 build.
5510
5511 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5512
5513 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5514 [!GRUB_BUILD]: Remove has_argument.
5515
5516 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5517
5518 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5519 Replace with a dummy.
5520
5521 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5522
5523 * configure.ac: Don't change host_os from mingw to cygwin.
5524
5525 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5526
5527 * configure.ac: Change target_os from windows to cygwin.
5528
5529 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5532
5533 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5534 (build-grub-gen-asciih): Likewise.
5535 (build-grub-gen-widthspec): Likewise.
5536 * Makefile.util.def (grub-pe2elf): Remove.
5537 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5538 * configure.ac: Separate tests for build.
5539 Move ./build-grub-pe2elf to grub-core.
5540 Fix typo.
5541 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5542 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5543 defined.
5544 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5545 constants.
5546 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5547 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5548 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5549
5550 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5551
5552 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5553 mingw32 as well based on grub_util_get_disk_size.
5554 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5555 grub_util_get_fd_size.
5556 (sync): Removed.
5557 (fsync): Moved to ...
5558 * grub-core/kern/emu/misc.c (fsync): ... here.
5559
5560 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5561
5562 * include/grub/mm.h (grub_extend_alloc): Remove.
5563 * grub-core/loader/i386/pc/plan9.c: Use own version of
5564 grub_extend_alloc with appropriate types.
5565
5566 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5569
5570 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5571
5572 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5573
5574 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5575
5576 Fix dependencies on cygwin.
5577
5578 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5579 dependencies when used and defined.
5580 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5581
5582 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5585 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5586
5587 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5590 implementation available to cause compile-time rather than runtime
5591 error.
5592
5593 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5594
5595 * util/grub-fstest.c: Don't check for symlinks on windows.
5596
5597 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5598
5599 * INSTALL: Mention unavailability of man pages when cross-compiling.
5600
5601 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5602
5603 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5604 and gcry_log_bug.
5605 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5606
5607 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5608
5609 * INSTALL: Document cross-compilation.
5610 * acinclude.m4: Determine whether nm support -P and --defined-only.
5611 * configure.ac: Add TARGET_ to all variables pertaining to target
5612 that don't have it yet.
5613 * gentpl.py: Likewise.
5614 * grub-core/Makefile.am: Likewise.
5615 * grub-core/genmod.sh.in: Likewise.
5616 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5617 as well.
5618
5619 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5620
5621 * configure.ac: Remove -Wempty-body. It's not essential and needs
5622 recent gcc.
5623
5624 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5625
5626 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5627 * util/getroot.c: Likewise.
5628
5629 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5630
5631 * grub-core/disk/ahci.c: Add needed explicit cast.
5632 * grub-core/lib/backtrace.c: Likewise.
5633 * grub-core/net/ip.c: Likewise.
5634 * grub-core/net/tcp.c: Likewise.
5635 * grub-core/net/udp.c: Likewise.
5636
5637 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5638
5639 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5640
5641 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * util/import_gcry.py: Add final newline in visibility.h.
5644
5645 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5646
5647 * conf/Makefile.common: Fix typo.
5648
5649 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5650
5651 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5652
5653 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5654
5655 * Makefile.am (widthspec.h): Fix typo.
5656 * util/grub-gen-widthspec.c: Likewise.
5657
5658 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 Move ascii.h and widthspec.h generation to a separate build-time-only
5661 tool.
5662
5663 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5664
5665 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5666 Always fill bootdisk info and improve check for NetBSD disklabel.
5667
5668 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5669
5670 * conf/Makefile.extra-dist: Add util/bin2h.c.
5671 Reported by: floppym.
5672
5673 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5676
5677 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 * configure.ac: Disable unifont and starfield if no freetype was found.
5680
5681 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5684 on NetBSD and OpenBSD.
5685
5686 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5687
5688 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5689
5690 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5691
5692 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5693 reduced. Inheritant options are processed during the theme loading.
5694
5695 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5696
5697 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5698
5699 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5700
5701 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5702
5703 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5704
5705 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5706 using qemu.
5707
5708 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5709
5710 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5711 remove-potcdate.sed.
5712
5713 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5714
5715 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5716 unused attribute from pull argument.
5717
5718 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5719
5720 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5721 memory leak.
5722
5723 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5724
5725 * util/getroot.c (pull_lvm_by_command): add --separator option
5726 to vgs call to disable padding of output to 10 characters.
5727
5728 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5731 here ...
5732 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5733 here.
5734
5735 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5736
5737 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5738 length.
5739
5740 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5741
5742 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5743 full Canadian cross. Tested with build=x86_64, host=arm,
5744 target=ppc-ieee1275.
5745
5746 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5747
5748 * configure.ac: Error if no $BUILD_CC could be found.
5749 Reported by: DevHC.
5750
5751 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5754 i386-multiboot.
5755
5756 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5759 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5760
5761 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5762
5763 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5764 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5765 falling back to the partition device, otherwise a later call to this
5766 function may fail spuriously.
5767 Reported by Axel Beckert. Fixes Debian bug #708614.
5768
5769 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5770
5771 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5772
5773 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5774
5775 Prevent shadowing of stdlib's devname(3) on BSD.
5776
5777 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5778 and devlast to diskname and disklast, respectively.
5779
5780 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5781
5782 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5783
5784 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5785
5786 * docs/grub.texi: Introduce terminal window position options:
5787 terminal-left: terminal window's left position
5788 terminal-top: terminal window's top position
5789 terminal-width: terminal window's width
5790 terminal-height: terminal window's height
5791 terminal-border: terminal window's border width
5792 * grub-core/gfxmenu/theme-loader.c: Likewise.
5793 * include/grub/gfxmenu_view.h: Likewise.
5794 * po/exlude.pot: Likewise.
5795 * grub-core/gfxmenu/view.c: Likewise.
5796 Also updated minimal window size.
5797 Also terminal_sanity_check function has been introduced.
5798 * grub-core/tests/checksums.h: Update (terminal window height
5799 is adjusted now for low resolution screen)
5800
5801 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5804 position).
5805
5806 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5807
5808 * po/exclude.pot: Add few recent exceptions.
5809
5810 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5811
5812 * tests/grub_func_test.in: Add unicode.pf2.
5813
5814 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5815
5816 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5817 standard rather than noral color, in line with other terminals.
5818
5819 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5820
5821 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5822 analysis.
5823
5824 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5825
5826 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5827
5828 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5831 inappropriate printf.
5832
5833 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5834
5835 * .bzrignore: Remove grub-core/lib/dtc-grub,
5836 grub-core/Makefile.libfdt.def
5837 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5838
5839 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5840
5841 * include/grub/video.h (grub_video_register): Keep double-linked as
5842 well as single-linked invariants.
5843 Reported by: qwertial.
5844
5845 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5846
5847 * grub-core/commands/nativedisk.c (get_uuid): Handle
5848 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5849
5850 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5851
5852 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5853 maximum of NW, N, NE heights instead of N's height and maximum of
5854 NW, W, SW widths instead of W's width. (So the box will be always
5855 correctly drawn)
5856
5857 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5858
5859 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5860 Fix misuse of variable count.
5861
5862 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5863 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5864 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5865
5866 New ports to arm-uboot and arm-efi.
5867 Mostly by Leif Lindholm with some additions from
5868 Francesco Lavra and cleanup by Vladimir Serbinenko.
5869
5870 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5871
5872 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5873 and not before.
5874 Reported by: Leon Drugi.
5875
5876 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5877
5878 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5879 Reported by: Paulo Flabiano Smorigo.
5880
5881 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5882
5883 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5884
5885 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5886
5887 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5888
5889 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5890
5891 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5892
5893 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5894
5895 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5896
5897 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5898
5899 * grub-core/net/bootp.c: Export net_* variables.
5900 * grub-core/net/net.c: Likewise.
5901
5902 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5903
5904 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5905
5906 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5907
5908 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5909
5910 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5911
5912 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5913
5914 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5915
5916 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5917
5918 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5919
5920 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5921 <= 0.
5922
5923 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5924
5925 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5926 functions.
5927
5928 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5929
5930 * grub-core/fs/zfs/zfs_lz4.c: New file.
5931 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5932
5933 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5934
5935 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5936
5937 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5938
5939 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5940 (check_pool_label): Likewise.
5941 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5942
5943 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5944
5945 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5946
5947 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5948
5949 * docs/grub.texi (Commands): Document postition parameters
5950 for menuentry command.
5951
5952 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5953
5954 * util/grub-mknetdir.in: Remove stray line from help output.
5955
5956 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5957
5958 Remove early sm712 init as there is no reason for it (the "watchdog"
5959 effect was due to wrong GPIO map).
5960
5961 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5962
5963 * grub-core/commands/pcidump.c: Remove static variables.
5964
5965 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5966
5967 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5968
5969 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5970
5971 * configure.ac: Move delimiter after the infos.
5972
5973 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5976
5977 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5980 not filling whole 8x16 space.
5981
5982 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5983
5984 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5985
5986 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5987
5988 * configure.ac: Indicate which liblzma is used if any.
5989
5990 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5991 2013-06-21 Craig Sanders <savannah@taz.net.au>
5992
5993 * util/grub-reboot.in: Document submenu usage.
5994
5995 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5996
5997 * .bzrignore: Update with a number of new test-related files.
5998
5999 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6000
6001 * util/grub-script-check.c: Fail on scripts containing no
6002 commands, to guard against corrupted grub-mkconfig setups that
6003 produce no useful output.
6004 * tests/grub_script_no_commands.in: New test.
6005 * Makefile.util.def (grub_script_no_commands): Add.
6006 Reported by Hans Putter. Fixes Debian bug #713886.
6007
6008 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6009
6010 * grub-core/disk/diskfilter.c: Forgot to remove comment
6011 from previous commit.
6012
6013 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6014
6015 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6016 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6017
6018 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6019
6020 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6021
6022 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6023
6024 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6025 rescan diskfilter devices until nothing new is found.
6026
6027 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6028
6029 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6030
6031 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6032
6033 Don't try to detect cbfs on *-emu.
6034
6035 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6036
6037 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6038
6039 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6040
6041 Add support for processed coreboot payload chainloading.
6042
6043 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 Enable coreboot information commands even when not loaded as
6046 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6047
6048 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 Support for cbfs. Also factor out the part which is common
6051 for all archives to a separate module. This splits tar from cpio
6052 as they are very different but keeps cpio, cpio_be, odc and newc
6053 together since they're very similar.
6054
6055 2013-06-15 David Michael <fedora.dm0@gmail.com>
6056
6057 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6058 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6059
6060 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 * tests/grub_script_eval.in: Really add the eval test.
6063
6064 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6065
6066 Move flavour-specific parts out of common cpio.c file and
6067 rename remaining to cpio_common.c
6068
6069 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6070
6071 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6072 off new function grub_script_execute_new_scope. Change callers to use
6073 either of them as appropriate.
6074 * grub-core/commands/eval.c: New command eval.
6075 * docs/grub.texi (Commands): Document it.
6076
6077 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6078
6079 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6080 to fetch values when listing.
6081
6082 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6083
6084 Fix make dist on non-pc.
6085
6086 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6087
6088 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6089 without a device name.
6090
6091 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 Remove enable_executable_check as it's not needed anymore.
6094 Reported by: dougray.
6095
6096 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6097
6098 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6099 ambigouos RAID before discovering RAIDs on top of it.
6100 Reported by: bodom.
6101
6102 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6103
6104 Fix typo (failback vs fallback).
6105
6106 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6107
6108 * util/grub.d/30_os-prober.in: Add support for probing EFI
6109 System Partition (as of os-prober 1.58).
6110
6111 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6112
6113 * configure.ac: Add yet another path to unifont. For parabola.
6114
6115 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6116
6117 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6118 handling to copy the killed characters to the kill buffer as
6119 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6120 stored as char. Eliminates UCS4 truncation and corruption
6121 observed when killing characters with Ctrl-u and yanking them
6122 back with Ctrl-y.
6123
6124 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 Detach optional parts of gfxterm and integrate in with coreboot init.
6127
6128 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6129
6130 Move blit and fill dispatcher to appropriate files to decrease export
6131 and relocation overhead.
6132
6133 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6136 functions.
6137
6138 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * grub-core/Makefile.am: Fix compilation problem with some
6141 automake versions.
6142
6143 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6144
6145 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6146
6147 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6148
6149 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6150 automake versions.
6151
6152 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6153
6154 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6155 SSDT.
6156
6157 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6158
6159 * grub-core/partmap/dfly.c: New partition map.
6160
6161 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6162
6163 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6164 checking.
6165 Reported by: Francesco Lavra.
6166
6167 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6168
6169 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6170 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6171 false conditions.
6172 * conf/Makefile.common: define dist_grubconf_DATA
6173
6174 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6175
6176 Progressively skip menu elements on small terminals rather
6177 than crashing.
6178
6179 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6180
6181 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6182 to avoid losing last column.
6183
6184 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 * po/exclude.pot: Add missing string "%C".
6187
6188 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6189
6190 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6191 after the test.
6192
6193 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6194
6195 * util/grub-install.in: Gettextize "Not found" message.
6196
6197 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 Fix distfiles list.
6200 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6201
6202 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6203
6204 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6205 present.
6206 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6207
6208 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6211
6212 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6213
6214 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6215 attribute since structure is not necessarily aligned.
6216
6217 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6218
6219 * docs/grub.texi (Device syntax): Clarify description of network
6220 drives.
6221
6222 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6223
6224 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6225 for vasprintf presence.
6226
6227 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6228
6229 * util/grub-install.in: Handle efibootmgr presence check.
6230 Reported by: Leif Lindholm.
6231
6232 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6233
6234 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6235 new strings to translate.
6236
6237 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6238
6239 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6240 yet another string (pun intended) to translate.
6241
6242 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6243
6244 * po/POTFILES-shell.in: Autogenerate it.
6245
6246 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6247
6248 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6249
6250 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6251
6252 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6253 misnomer.
6254
6255 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6256
6257 * docs/grub.texi (Network): Add description of net_default_interface,
6258 net_default_ip and net_default_mac. Rewrite variables description
6259 to emphasize that they are per-interface.
6260
6261 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6262
6263 New test: cmdline and cat.
6264
6265 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * grub-core/commands/cat.c: Show UTF-8 characters.
6268
6269 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6270
6271 * conf/Makefile.common: Poison float and double on non-emu.
6272
6273 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6274
6275 * configure.ac: Don't disable extended registers on emu.
6276
6277 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6278
6279 * configure.ac: Don't use extended registers on x86_64.
6280 Reported by: Peter Jones.
6281
6282 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 * grub-core/term/efi/console.c: Fix compile error.
6285
6286 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 Compressed HFS+ support.
6289
6290 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6291
6292 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6293 pixel".
6294
6295 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6296
6297 Menu color test.
6298
6299 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6300
6301 * grub-core/tests/setjmp_test.c: New test.
6302
6303 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 New variables 'net_default_*' to determine MAC/IP of default interface.
6306
6307 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6308
6309 * tests/gettext_strings_test.in: A test to check for strings not
6310 marked for translation.
6311
6312 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 * autogen.sh: Exclude unused libgcrypt files from translation.
6315
6316 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 Simplify few strings.
6319
6320 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 Mark few forgotten strings for translation.
6323
6324 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6325
6326 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6327 rather than printf.
6328
6329 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6332 rather than printf.
6333 * grub-core/video/readers/tga.c: Likewise.
6334
6335 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 * tests/priority_queue_unit_test.cc: New test.
6338
6339 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6340
6341 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6342 than printf.
6343
6344 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6345
6346 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6347 variable for one time boot menu entry.
6348
6349 2013-05-05 Bean <bean123ch@gmail.com>
6350
6351 * grub-core/commands/testspeed.c: New command testspeed.
6352
6353 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 Factor-out human-size printing.
6356
6357 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6358
6359 Agglomerate more mallocs to speed-up gfxterm.
6360
6361 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6362
6363 Speed-up gfxterm by slightly agglomerating mallocs.
6364
6365 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6366
6367 More video checks.
6368
6369 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6370
6371 Speed-up gfxterm by saving intermediate results in index+alpha
6372 format.
6373
6374 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6377 test.
6378
6379 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6382 line of timeout as it may contain the rest of long line.
6383
6384 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 * grub-core/normal/main.c: Fix freed memory dereference.
6387
6388 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6389
6390 Fix several memory leaks.
6391
6392 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6393
6394 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6395
6396 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6399
6400 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6401
6402 Fix test -a and -o precedence.
6403 Reported by: adrian15.
6404
6405 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6406
6407 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6408
6409 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6410
6411 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6412 and add it as source to functional_test module.
6413
6414 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6415
6416 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6417
6418 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6419
6420 New series of tests for gfxterm and gfxmenu.
6421
6422 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6423
6424 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6425 the theme path relative to $prefix/themes.
6426
6427 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6428
6429 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6430 Fix order bug.
6431 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6432
6433 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6434
6435 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6436 descriptor.
6437
6438 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6439
6440 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6441 grub_gfxmenu_timeout_notifications.
6442 (grub_gfxmenu_view_destroy): Likewise.
6443
6444 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6445
6446 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6447
6448 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6449
6450 Several fixes to ieee1275 and big-endian video.
6451
6452 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 Add missing exports on mips.
6455
6456 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6457
6458 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6459 if no unifont is found.
6460 Restore original keyboard.
6461
6462 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6463
6464 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6465 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6466
6467 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 First automated video test (running videotest and comparing results)
6470
6471 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6472
6473 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6474 instead of 2 to have full RGB/CMY test pattern.
6475
6476 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6477
6478 Add few more tests.
6479
6480 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6481
6482 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6483 ARCS. All users updated.
6484
6485 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6486
6487 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6488
6489 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6490
6491 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6492
6493 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6496 Reported by: qwertial.
6497
6498 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6499
6500 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6501 with syntax "XXX deg"/"XXX °".
6502
6503 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6504
6505 Make PCI init in i386-qemu port more robust.
6506
6507 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6508
6509 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6510 cached view is reused.
6511 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6512 open boot menus.
6513
6514 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6515
6516 Unify more code in grub-install_header.
6517
6518 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6519
6520 Add few new tests.
6521
6522 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 Enforce disabling of firmware disk drivers when native drivers kick in.
6525
6526 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6527
6528 * grub-core/commands/nativedisk.c: Customize the list of modules on
6529 platform. Don't try to search for disks already using native drivers.
6530
6531 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6532
6533 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6534 platforms.
6535
6536 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6537
6538 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6539 handling of variables containing backslash.
6540
6541 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6542
6543 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6544 dereference.
6545 Reported by: qwertial.
6546
6547 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6550
6551 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6552
6553 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6554 dereference.
6555 Reported by: qwertial.
6556
6557 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6558
6559 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6560
6561 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6562
6563 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6564
6565 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 New command `nativedisk'.
6568
6569 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6572 * grub-core/loader/i386/bsd.c: Likewise.
6573
6574 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6575
6576 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6577
6578 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6581 grub_get_unaligned16 rather than shifts.
6582
6583 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 * grub-core/kern/file.c: Use const char * rather than casting to
6586 non-const.
6587
6588 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6589
6590 * grub-core/commands/probe.c: Add missing grub_device_close.
6591
6592 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6593
6594 * INSTALL: Document linguas.sh.
6595
6596 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6597
6598 Remove POTFILES.in and regenerate it in autogen.sh.
6599
6600 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 Move --directory/--override-directorry to grub-install_header and unify.
6603
6604 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 * grub-core/term/morse.c: Macroify dih and dah.
6607
6608 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6609
6610 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6611
6612 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6613
6614 * grub-core/term/ns8250.c: Systematically probe ports by writing
6615 to SR before using them.
6616
6617 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6618
6619 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6620 disks.
6621 (check_sas): Get sas_adress info.
6622
6623 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6624
6625 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6626 ports.
6627
6628 2013-04-27 Leon Drugi <eyak>
6629
6630 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6631 BSS clearing.
6632
6633 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6634
6635 Core compression test.
6636
6637 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6638
6639 Implement grub_machine_get_bootlocation for ARC.
6640
6641 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 Improve AHCI detection and command issuing.
6644
6645 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 Fix pseries test.
6648
6649 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6650
6651 Make 'make check' work on emu.
6652
6653 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6654
6655 Replace libcurses with our own vt100 handling for the ease of testing
6656 and decreasing prerequisites.
6657
6658 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6661
6662 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6663
6664 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6665 compile when not needed.
6666
6667 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6668
6669 * tests/pseries_test.in: New test.
6670
6671 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6672
6673 Add test to check that different boot mediums work.
6674
6675 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6676
6677 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6678 ofw limited ISO support.
6679
6680 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * configure.ac: Fix loongson conditional.
6683
6684 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 Enable mipsel-arc.
6687
6688 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 Add serial on ARC platform.
6691
6692 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6693
6694 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6695 commit.
6696
6697 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 * tests/partmap_test.in: Add missing double semicolon.
6700
6701 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 * util/grub-mkrescue.in: Fix loongson filename.
6704
6705 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 * util/grub-mkrescue.in: Move all files that don't have a location
6708 set in stone under /boot/grub. Use ISO hard links rather than copies
6709 to save some space.
6710
6711 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6712
6713 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6714 bogus SLOF values.
6715
6716 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6717
6718 Make check work on mips-arc.
6719
6720 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6721
6722 * util/grub-mkrescue.in: Alias sashARCS as sash.
6723
6724 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6725
6726 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6727 it's serial.
6728
6729 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 * util/grub-install.in: Fix target fo qemu_mips.
6732 Fix extension on EFI.
6733
6734 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6735
6736 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6737 in front of chosen entry to mark it even if highlighting is lost.
6738
6739 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6740
6741 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6742 gfxpayload=keep if cbfb is active.
6743
6744 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6745
6746 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6747
6748 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 Add missing video ids to coreboot and ieee1275 video.
6751
6752 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 * util/grub-mkrescue.in: Add mips-arc support.
6755
6756 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6759
6760 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 Move mips-arc link address. Previous link address was chosen
6763 in belief that RAM on SGI platforms grows down while in fact it
6764 grows up from an unusual base.
6765
6766 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6767
6768 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6769 Fix a type which prevented CD-ROM and floppy boot.
6770
6771 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6772
6773 Support coreboot framebuffer.
6774
6775 * grub-core/video/i386/coreboot/cbfb.c: New file.
6776
6777 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6778
6779 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6780 detecting too small regions.
6781
6782 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6783
6784 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6785
6786 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6787
6788 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6789 Remove dprintf.
6790 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6791
6792 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6793
6794 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6795 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6796 * grub-core/loader/powerpc/ieee1275/linux.c
6797 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6798
6799 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6800
6801 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6802 Look for /boot-rom as well as /rom/boot-rom.
6803
6804 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6805
6806 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6807 handling when creating text_layer failed.
6808 * grub-core/video/video.c (grub_video_create_render_target):
6809 Set result to 0 on error.
6810 (grub_video_delete_render_target): Do not dereference NULL.
6811
6812 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6815 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6816 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6817 (grub_linux_load64): Mask out 2 high bits.
6818
6819 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6820
6821 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6822 more place.
6823
6824 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 Add support for pseries and other bootinfo machines to grub-mkrescue.
6827
6828 Tested by: Paulo Flabiano Smorigo.
6829
6830 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6831
6832 * util/grub-mkrescue.in: Add GPT for EFI boot.
6833
6834 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6837 It improves performance in qemu.
6838
6839 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6840
6841 * build-aux/snippet: Add missing gnulib files.
6842
6843 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6844
6845 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6846
6847 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6848
6849 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6850
6851 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6852 2013-04-15 Peter Jones <pjones@redhat.com>
6853
6854 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6855 sectors.
6856 Based on patch by Peter Jones.
6857
6858 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6859
6860 Fix DMRAID partition handling.
6861
6862 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6863
6864 * tests/grub_cmd_date.in: Skip on sparc64.
6865
6866 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6869 firmware error messages.
6870
6871 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6872
6873 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6874 source and destination differ.
6875
6876 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6879 detection.
6880
6881 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6882
6883 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6884 match config-util.h to avoid warnings and increase compatibility.
6885
6886 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6887 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6888
6889 Add option to compress files on install/image creation.
6890
6891 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6892
6893 * docs/grub-dev.texi: Rearrange menu to match the section order.
6894 Reported by: Bryan Hundven.
6895
6896 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6897
6898 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6899
6900 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 Move GRUB out of system area when using xorriso 1.2.9 or later.
6903
6904 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6905
6906 * tests/grub_cmd_date.in: Add missing exit 1.
6907
6908 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6909
6910 * tests/partmap_test.in: Skip on sparc64.
6911
6912 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 Support grub-shell on sparc64.
6915
6916 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6917
6918 Support mkrescue on sparc64.
6919
6920 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6921
6922 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6923 Needed on OpenBIOS due to incomplete device tree.
6924
6925 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6926
6927 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6928 would be otherwise excluded.
6929
6930 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6933 Inline name defines used only once.
6934
6935 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6936
6937 Fix memory leaks in ofnet.
6938 Reported by: Francesco Lavra.
6939
6940 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6941
6942 * docs/man/grub-glue-efi.h2m: Add missing file.
6943
6944 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6945
6946 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6947
6948 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6949
6950 Better support Apple Intel Macs on CD.
6951
6952 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6953
6954 Replace stpcpy with grub_stpcpy in tools.
6955
6956 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6957
6958 Handle Japanese special keys.
6959 Reported by: Hiroyuki YAMAMORI.
6960 Codes supplied by: Hiroyuki YAMAMORI.
6961
6962 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6963
6964 * util/grub-mkimage.c: Document memdisk implying --prefix.
6965
6966 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6967
6968 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6969 much we can do about it anyway.
6970
6971 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6972
6973 Fix handling of split transfers.
6974
6975 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6976
6977 * grub-core/net/http.c: Fix bad free.
6978
6979 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6980
6981 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6982 than buffer size.
6983
6984 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6985
6986 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6987
6988 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6989
6990 * tests/util/grub-shell.in: Fix it on powerpc.
6991
6992 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6993
6994 Turn off QEMU ACPI-way since new releases don't have shutdown port
6995 anymore.
6996
6997 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6998
6999 * docs/grub.texi: Update coreboot status info.
7000
7001 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7002
7003 * tests/grub_cmd_date.in: New test for datetime.
7004
7005 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7006
7007 * tests/partmap_test.in: Fix missing qemudisk setting.
7008
7009 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7010
7011 Support i386-ieee1275 grub-mkrescue and make check on it.
7012
7013 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7014
7015 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7016 feature for it.
7017
7018 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7021 GRUB_CMDLINE_XEN_DEFAULT.
7022 Reported by: Marc Warne (GigaTux) <gigatux>
7023
7024 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 Import new gnulib.
7027
7028 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7029
7030 Use ACPI shutdown intests as traditional port was removed.
7031
7032 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7033
7034 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7035 distinction.
7036
7037 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7038
7039 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7040 Fix few warining messages and leaks while on it.
7041
7042 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7043
7044 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7045 links under grub-core/lib/libgcrypt-grub/mpi.
7046
7047 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7048
7049 Fix ia64-efi image generation on big-endian machines. Deduplicate
7050 some code while on it.
7051 Reported by: Leif Lindholm.
7052
7053 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7054
7055 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7056 as extra_dist.
7057
7058 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7059
7060 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7061
7062 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7063
7064 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7065 texinfo-5.1.
7066
7067 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7068
7069 * grub-core/normal/term.c: Few more fixes for menu entry editor
7070 rendering.
7071 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7072
7073 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7074
7075 * grub-core/normal/term.c: Few more fixes for menu entry editor
7076 rendering.
7077 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7078
7079 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7080
7081 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7082 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7083
7084 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7085
7086 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7087 instead of hardcoding grub.mo.
7088
7089 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7090
7091 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7092
7093 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7096 grub-core/disk/geli.c.
7097
7098 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7099
7100 * util/grub-mkfont.c: Prefer enum to #define.
7101
7102 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7103
7104 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7105
7106 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7107
7108 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7109
7110 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7111
7112 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7113
7114 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7115
7116 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7117
7118 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7119
7120 * include/grub/bsdlabel.h: Use enums.
7121
7122 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7123
7124 Move GRUB_CHAR_BIT to types.h.
7125
7126 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7127
7128 * docs/grub.texi: Document more user commands.
7129
7130 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7131
7132 * docs/grub.texi: Document menuentry --id option.
7133
7134 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7135
7136 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7137
7138 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 Unify file copying setup across different install scripts. Add
7141 options for performing partial install.
7142
7143 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7144 2013-04-04 Peter Jones <pjones@redhat.com>
7145
7146 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7147
7148 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7149
7150 Use TSC as a possible time source on i386-ieee1275.
7151
7152 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7153
7154 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7155 Init err.
7156
7157 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * util/grub-setup.c (setup): Handle some corner cases.
7160
7161 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7162
7163 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7164
7165 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7166
7167 * grub-core/commands/verify.c: Save verified file to avoid it being
7168 tampered with after verification was done.
7169
7170 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7171
7172 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7173 reported width by one to compensate for curesor algorithm problem.
7174
7175 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7176
7177 Fix screen corruption in menu entry editor and simplify the code
7178 flow while on it.
7179
7180 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7181
7182 * util/grub-mount.c (fuse_init): Return error if fuse_main
7183 failed.
7184
7185 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7186
7187 * include/grub/elf.h: Add missing ARM relocation codes and fix
7188 existing ones.
7189
7190 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7191
7192 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7193
7194 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7195 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7196
7197 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7198 into account when calculating radius.
7199
7200 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7201
7202 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7203
7204 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7205
7206 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7207
7208 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7209
7210 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7211 missing closing bracket.
7212
7213 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7214
7215 * INSTALL: Mention xorriso requirement.
7216
7217 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7218
7219 * grub-core/commands/verify.c: Fix hash algorithms values for
7220 the first three hashes - they start with 1, not with 0.
7221
7222 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7223
7224 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7225 Try terminating EFI services several times due to quirks in some
7226 implementations.
7227
7228 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7229
7230 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7231 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7232 BankField extended opcodes.
7233 (get_sleep_type): Add minimal scope handling (just enough to
7234 handle setting the scope to the root path).
7235 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7236 * include/grub/acpi.h: Add enumeration values for Event, Device,
7237 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7238
7239 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7240
7241 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7242 memory leak.
7243
7244 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * grub-core/disk/ahci.c: Give more time for AHCI request.
7247
7248 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7249
7250 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7251 command.
7252
7253 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7254
7255 Replace the region at 0 from coreboot tables to available in BSD
7256 memory map.
7257
7258 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7259
7260 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7261 non-BIOS platforms.
7262
7263 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7264
7265 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7266 platforms.
7267
7268 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7269
7270 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7271 handling of multi-device filesystems.
7272
7273 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7276 platforms.
7277
7278 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7279
7280 Add new 'proc' filesystem framework and put luks_script into it.
7281
7282 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7283
7284 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7285 and qemu.
7286
7287 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7288
7289 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7290
7291 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7292
7293 Add ability to generate newc additions on runtime.
7294
7295 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7296
7297 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7298 description.
7299
7300 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7301
7302 * po/POTFILES.in: Regenerate.
7303
7304 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/commands/verify.c (hashes): Add several hashes
7307 from the spec.
7308
7309 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 Slight improve in USB-related boot-time checkpoints.
7312
7313 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * grub-core/commands/boottime.c: Fix copyright header.
7316
7317 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7320 coreboot tables content. Support for cbmemc.
7321
7322 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 Fix a conflict between ports structures with 2 controllers of
7325 same kind.
7326
7327 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7328
7329 * include/grub/boottime.h: Add missing file.
7330
7331 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7332
7333 Initialize USB ports in parallel to speed-up boot.
7334
7335 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7336
7337 Fix USB devices not being detected when requested
7338 due to delayed attach.
7339
7340 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7341
7342 Implement boot time analysis framework.
7343
7344 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 Remove get_endpoint_descriptor and change all functions needing
7347 descriptor to just receive it as argument rather than endpoint
7348 address.
7349
7350 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7351
7352 Better estimate the maximum USB transfer size.
7353
7354 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 Resend a packet if we got the wrong buffer in status.
7357
7358 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7359
7360 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7361 multiplication rather than division.
7362
7363 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7364
7365 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7366 than divisions.
7367
7368 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7369
7370 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7371 operations to have intended shifts and not divisions.
7372
7373 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7376 intended shifts rather than division.
7377
7378 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7381 computation for some years before epoch. Avode confusing division
7382 while on it.
7383
7384 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7385
7386 * grub-core/video/i386/pc/vbe.c
7387 (grub_video_vbe_print_adapter_specific_info): Replace division by
7388 shifts.
7389
7390 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7391
7392 Adjust types in gdb module to have intended unsigned shifts rather than
7393 signed divisions.
7394
7395 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7398 maximum size is 4G - 1 on hfs
7399
7400 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7403
7404 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7407 function.
7408
7409 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7410
7411 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7412 causing gcc error with gcc 4.7.1.
7413
7414 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7415
7416 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7417 dereference null pointer. While the code is technically correct, gcc
7418 may eliminate a null check if pointer is already dereferenced.
7419
7420 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7421
7422 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7423 OOM check.
7424 * grub-core/normal/term.c (read_terminal_list): Likewise.
7425
7426 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7427
7428 Lift up core size limits on some platforms. Fix potential memory
7429 corruption with big core on small memory systems. Document remaining
7430 limits.
7431
7432 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7433
7434 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7435 gotoxy to 0,0.
7436
7437 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 Remove all trampoline support. Add -Wtrampolines when
7440 present. Remove symbols used for trampolines to make
7441 link fail if trampolines are present.
7442
7443 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7444
7445 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7446 append out of its parent.
7447
7448 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7449
7450 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7451 parent.
7452
7453 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7456 all vars to a macro. All users updated.
7457
7458 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7459
7460 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7461 i386-ieee1275.
7462
7463 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7464
7465 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7466
7467 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7468
7469 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7470
7471 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7472
7473 Move to more hookless approach in IEEE1275 devices handling.
7474
7475 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7476
7477 * grub-core/kern/term.c (grub_term_normal_color),
7478 (grub_term_highlight_color): Add back lost defaults.
7479
7480 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7481
7482 Make elfload not use hooks. Opt for flags and iterators instead.
7483
7484 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7485
7486 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7487 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7488
7489 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7492
7493 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7494
7495 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7496 hook pass-through parameter. All users updated and unnested.
7497
7498 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7499
7500 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7501 out of its parent.
7502
7503 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7504
7505 * grub-core/fs/hfs.c: Remove nested functions.
7506
7507 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7508
7509 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7510 the context through.
7511 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7512
7513 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 * util/grub-editenv.c (list_variables): Move print_var out of its
7516 parent.
7517
7518 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7521 function.
7522
7523 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7524
7525 * grub-core/gentrigtables.c: Make tables const.
7526
7527 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7528
7529 Remove nested functions from videoinfo iterators.
7530
7531 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7534 for 64-bit platforms.
7535
7536 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7537
7538 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7539 a FOR_CHILDREN macro.
7540
7541 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7542
7543 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7544 platform from firmware path.
7545
7546 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7547
7548 Enable linux16 on non-BIOS systems for i.a. memtest.
7549
7550 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7551 correctly.
7552 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7553
7554 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7555
7556 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7557 Fix end of table condition.
7558
7559 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7560
7561 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7562 out of its parent.
7563
7564 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7565
7566 * grub-core/fs/jfs.c: Remove nested functions.
7567
7568 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7569
7570 * grub-core/fs/minix.c: Remove nested functions.
7571
7572 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7573
7574 * grub-core/fs/iso9660.c: Remove nested functions.
7575
7576 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7577
7578 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7579 of parent function.
7580
7581 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7582
7583 * util/grub-fstest.c: Remove nested functions.
7584
7585 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 * grub-core/loader/machoXX.c: Remove nested functions.
7588
7589 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7590
7591 Remove nested functions from disk and file read hooks.
7592
7593 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7594 (struct grub_disk): Add read_hook_data member.
7595 * include/grub/file.h (struct grub_file): Likewise.
7596 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7597 argument.
7598
7599 Update all callers.
7600
7601 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7602
7603 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7604 Fix off by one error in enumerating extended partitions.
7605
7606 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7607
7608 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7609 memory leak if device name is not found.
7610
7611 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7612
7613 * grub-core/normal/menu_entry.c (update_screen): remove
7614 unused variable `off' which caused scroll down arrow to be always shown.
7615
7616 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7617
7618 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7619 access to unallocated memory.
7620
7621 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7622
7623 * Makefile.util.def: Add partmap/msdos.c to common library.
7624 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7625 * grub-core/disk/ldm.c: Check for existence of
7626 GRUB_PC_PARTITION_TYPE_LDM.
7627
7628 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7629
7630 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7631 sizes and display sector size.
7632
7633 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7634
7635 Implement new command cmosdump.
7636
7637 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7638
7639 Support Openfirmware disks with non-512B sectors.
7640
7641 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7642 size of the disk.
7643 * (grub_ofdisk_get_block_size): New function.
7644 * (grub_ofdisk_prepare): Use the correct block size.
7645 * (grub_ofdisk_read): Likewise.
7646 * (grub_ofdisk_write): Likewise.
7647 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7648 New proto.
7649
7650 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7653
7654 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7655
7656 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7657 on first error.
7658
7659 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7660
7661 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7662 freeing it.
7663
7664 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7665
7666 Implement USBDebug (full USB stack variant).
7667
7668 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7669
7670 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7671 unless they have unexpected values.
7672
7673 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7674
7675 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7676 grub_print_error.
7677
7678 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7679
7680 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7681 zero-out of port structure.
7682
7683 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7684
7685 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7686 of extended attributes.
7687
7688 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7689
7690 * util/grub-install.in: change misleading comment about
7691 device.map creation
7692
7693 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7694
7695 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7696 when menu highlight color isn't set.
7697
7698 2013-01-27 C. Masloch <pushbx@38.de>
7699
7700 Improve FreeDOS direct loading support compatibility.
7701
7702 * include/grub/i386/relocator.h (grub_relocator16_state):
7703 New member ebp.
7704 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7705 variable.
7706 (grub_relocator16_boot): Handle %ebp.
7707 * grub-core/lib/i386/relocator16.S: Likewise.
7708 * grub-core/loader/i386/pc/freedos.c:
7709 Load BPB to pass kernel which partition to load from.
7710 Check that kernel file is not too large.
7711 Set register dl to BIOS unit number as well.
7712
7713 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7714
7715 * util/grub-reboot.in (usage): Document the need for
7716 GRUB_DEFAULT=saved.
7717 * util/grub-set-default.in (usage): Likewise.
7718 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7719
7720 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7721
7722 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7723 than defining WORDS_BIGENDIAN manually.
7724
7725 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7726
7727 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7728 invariants.
7729
7730 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7731
7732 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7733 nested.
7734 (blit_comb: add_device_width): Likewise.
7735
7736 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7737
7738 Remove nested functions from USB iterators.
7739
7740 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7741 (grub_usb_controller_iterate_hook_t): Likewise.
7742 (grub_usb_iterate): Add hook_data argument.
7743 (grub_usb_controller_iterate): Likewise.
7744 (struct grub_usb_controller_dev.iterate): Likewise.
7745
7746 Update all implementations and callers.
7747
7748 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7749
7750 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7751 margin when not needed.
7752
7753 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 Make color variables global instead of it being per-terminal.
7756
7757 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7758
7759 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7760 asterisk.
7761
7762 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7763
7764 Fix powerpc and sparc64 build failures caused by un-nesting memory
7765 map iterators.
7766
7767 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7768
7769 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7770 parameter declarations.
7771
7772 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7773
7774 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7775
7776 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7777
7778 Improve spkmomdem reliability by adding a separator between bytes.
7779
7780 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7781
7782 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7783 an Acer registration utility with several sightings in the wild.
7784 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7785
7786 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7787
7788 Remove nested functions from filesystem directory iterators.
7789
7790 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7791 (struct grub_fs.dir): Add hook_data argument.
7792
7793 Update all implementations and callers.
7794
7795 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7796
7797 * docs/grub.texi (Multi-boot manual config): Fix typo for
7798 "recommended".
7799
7800 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7801
7802 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7803 until after its use in generate_image.
7804
7805 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7806
7807 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7808 initrd size to addr_min, since the initrd will be allocated after
7809 this address.
7810
7811 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7812
7813 * conf/Makefile.common: Fix autogen rules to pass definition
7814 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7815
7816 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7817
7818 * include/grub/elf.h: Update ARM definitions based on binutils.
7819
7820 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7821
7822 Split long USB transfers into short ones.
7823
7824 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7825
7826 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7827 is interrupted by ESC.
7828
7829 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 * util/grub-script-check.c (main): Uniform the error message.
7832
7833 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7834
7835 Remove nested functions from ELF iterators.
7836
7837 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7838
7839 Remove nested functions from device iterators.
7840
7841 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7842 (grub_arc_iterate_devs): Add hook_data argument.
7843 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7844 (struct grub_ata_dev.iterate): Add hook_data argument.
7845 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7846 (grub_device_iterate): Add hook_data argument.
7847 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7848 (struct grub_disk_dev.iterate): Add hook_data argument.
7849 (grub_disk_dev_iterate): Likewise.
7850 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7851 Likewise.
7852 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7853 Likewise.
7854 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7855 type.
7856 (struct grub_partition_map.iterate): Add hook_data argument.
7857 (grub_partition_iterate): Likewise.
7858 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7859 (struct grub_scsi_dev.iterate): Add hook_data argument.
7860
7861 Update all callers.
7862
7863 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7864
7865 Fix typos for "developer" and "development".
7866
7867 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7868
7869 Add license header to spkmodem-recv.c.
7870
7871 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7872
7873 Rewrite spkmodem to use PIT for timing. Double the speed.
7874
7875 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7876
7877 Add new command pcidump.
7878
7879 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7880
7881 New terminal outputs using serial: morse and spkmodem.
7882
7883 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7884
7885 Improve bidi handling in entry editor.
7886
7887 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7888
7889 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7890 argument to prevent name collision.
7891
7892 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7893
7894 Remove nested functions from script reading and parsing.
7895
7896 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7897 getline_data argument, passed to getline.
7898 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7899 getline_data argument, passed to grub_parser_split_cmdline.
7900 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7901 lexerstate->getline_data to lexerstate->getline.
7902 (grub_script_lexer_init): Add getline_data argument, saved in
7903 lexerstate->getline_data.
7904 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7905 argument, passed to grub_script_parse.
7906 * grub-core/script/script.c (grub_script_parse): Add getline_data
7907 argument, passed to grub_script_lexer_init.
7908 * include/grub/parser.h (grub_parser_split_cmdline): Update
7909 prototype. Update all callers to pass appropriate getline data.
7910 (struct grub_parser.parse_line): Likewise.
7911 (grub_rescue_parse_line): Likewise.
7912 * include/grub/reader.h (grub_reader_getline_t): Add void *
7913 argument.
7914 * include/grub/script_sh.h (struct grub_lexer_param): Add
7915 getline_data member.
7916 (grub_script_parse): Update prototype. Update all callers to pass
7917 appropriate getline data.
7918 (grub_script_lexer_init): Likewise.
7919 (grub_normal_parse_line): Likewise.
7920
7921 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7922 data argument.
7923 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7924 static instead of nested. Rename to ...
7925 (grub_parser_execute_getline): ... this.
7926 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7927 data argument.
7928 * grub-core/normal/main.c (read_config_file: getline): Make static
7929 instead of nested. Rename to ...
7930 (read_config_file_getline): ... this.
7931 (grub_normal_read_line): Add unused data argument.
7932 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7933 getline): Make static instead of nested. Rename to ...
7934 (grub_script_execute_sourcecode_getline): ... this.
7935 * util/grub-script-check.c (main: get_config_line): Make static
7936 instead of nested.
7937
7938 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7939
7940 Remove nested functions from memory map iterators.
7941
7942 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7943 argument, passed to hook.
7944 * grub-core/kern/i386/coreboot/mmap.c
7945 (grub_linuxbios_table_iterate): Likewise.
7946 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7947 instead of nested.
7948 (grub_machine_mmap_iterate): Add hook_data argument.
7949 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7950 Add hook_data argument, passed to hook.
7951 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7952 Likewise.
7953 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7954 Likewise.
7955 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7956 Likewise.
7957 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7958 Likewise.
7959 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7960 Likewise.
7961 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7962 Likewise.
7963 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7964 (grub_machine_mmap_iterate): Likewise.
7965 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7966 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7967 prototype.
7968 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7969 Remove NESTED_FUNC_ATTR from here and from all users.
7970 (grub_mmap_iterate): Update prototype.
7971 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7972 pass appropriate hook data.
7973 (grub_machine_mmap_iterate): Likewise.
7974
7975 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7976 static instead of nested.
7977 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7978 Rename to ...
7979 (lsmmap_hook): ... this.
7980 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7981 Likewise.
7982 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7983 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7984 heap_init): Likewise.
7985 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7986 Rename to ...
7987 (mmap_iterate_hook): ... this.
7988 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7989 Likewise.
7990 * grub-core/lib/ieee1275/relocator.c
7991 (grub_relocator_firmware_get_max_events: count): Likewise.
7992 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7993 to ...
7994 (grub_relocator_firmware_fill_events_iter): ... this.
7995 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7996 hook): Likewise. Rename to ...
7997 (grub_relocator_alloc_chunk_align_iter): ... this.
7998 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7999 Rename to ...
8000 (generate_e820_mmap_iter): ... this.
8001 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8002 Rename to ...
8003 (count_hook): ... this.
8004 (grub_linux_boot: hook): Likewise. Rename to ...
8005 (grub_linux_boot_mmap_find): ... this.
8006 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8007 (grub_linux_boot_mmap_fill): ... this.
8008 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8009 hook): Likewise. Rename to ...
8010 (grub_fill_multiboot_mmap_iter): ... this.
8011 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8012 hook): Likewise. Rename to ...
8013 (count_hook): ... this.
8014 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8015 hook): Likewise. Rename to ...
8016 (grub_fill_multiboot_mmap_iter): ... this.
8017 * grub-core/loader/powerpc/ieee1275/linux.c
8018 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8019 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8020 Likewise. Rename to ...
8021 (alloc_phys_choose): ... this.
8022 (determine_phys_base: get_physbase): Likewise.
8023 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8024 find_hook): Likewise.
8025 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8026 (malloc_hook: count_hook): Likewise.
8027 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8028 Likewise. Rename to ...
8029 (lower_hook): ... this.
8030 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8031 (upper_hook): ... this.
8032 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8033 (post64_hook): ... this.
8034 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8035 Likewise. Rename to ...
8036 (lower_hook): ... this.
8037 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8038 (upper_hook): ... this.
8039 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8040 (grub_mmap_iterate: fill_hook): Likewise.
8041 (fill_mask): Pass addr and mask within a single struct.
8042 (grub_cmd_badram: hook): Make static instead of nested. Rename
8043 to ...
8044 (badram_iter): ... this.
8045 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8046 (cutmem_iter): ... this.
8047
8048 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8049
8050 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8051 delimit path in strings using quotes.
8052 * util/getroot.c (grub_guess_root_devices): Likewise.
8053 (grub_make_system_path_relative_to_its_root): Likewise.
8054 * util/grub-probe.c (probe): Likewise.
8055 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8056 (xrealpath): Likewise.
8057
8058 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 Fix compilation with older compilers.
8061
8062 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8063 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8064 declarations.
8065 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8066 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8067 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8068 identifier with b.
8069 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8070 * include/grub/crypto.h: Add type defines.
8071 * util/import_gcrypth.sed: Remove duplicate type defines.
8072
8073 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8074
8075 New command list_trusted.
8076
8077 * grub-core/commands/verify.c (grub_cmd_list): New function.
8078
8079 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8080
8081 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8082 info message.
8083
8084 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8085
8086 Remove nested functions from PCI iterators.
8087
8088 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8089 passed to hook. Update all callers to pass appropriate hook data.
8090 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8091 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8092 Remove NESTED_FUNC_ATTR from here and from all users.
8093 (grub_pci_iterate): Update prototype.
8094 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8095 instead of nested. Rename to ...
8096 (grub_cs5536_find_iter): ... this.
8097 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8098 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8099 Likewise.
8100 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8101 Likewise.
8102 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8103 Likewise.
8104 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8105 Likewise.
8106 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8107 * grub-core/video/radeon_fuloong2e.c
8108 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8109 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8110 find_card): Likewise.
8111 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8112 Likewise.
8113
8114 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8115
8116 * grub-core/commands/verify.c: Mark messages for translating.
8117
8118 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8119
8120 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8121 fatal.
8122
8123 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8124
8125 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8126 fatal.
8127
8128 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8129
8130 * autogen.sh: Do not try to delete nonexistant files.
8131 * util/import_gcrypth.sed: Add some missing header removals.
8132
8133 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8134
8135 Clean up dangling references to grub-setup.
8136 Fixes Ubuntu bug #1082045.
8137
8138 * docs/grub.texi (Images): Refer generally to grub-install rather
8139 than directly to grub-setup.
8140 (Installing GRUB using grub-install): Remove direct reference to
8141 grub-setup.
8142 (Device map) Likewise.
8143 (Invoking grub-install): Likewise.
8144 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8145 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8146 * util/grub-install.in (usage): Likewise.
8147
8148 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8149 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8150 grub-setup.
8151 * configure.ac: Remove grub_setup output variable.
8152
8153 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8154 to grub-bios-setup.
8155 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8156 grub-setup to grub-sparc64-setup.
8157
8158 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8159
8160 Import gcrypt public-key cryptography and implement signature checking.
8161
8162 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8163
8164 * grub-core/fs/ntfs.c: Ue more appropriate types.
8165 * grub-core/fs/ntfscomp.c: Likewise.
8166 * include/grub/ntfs.h: Likewise.
8167
8168 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8169
8170 Support Apple FAT binaries on non-Apple platforms.
8171
8172 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8173 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8174 Likewise.
8175 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8176 Apple FAT binaries.
8177
8178 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8179
8180 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8181 sector devices.
8182
8183 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8184
8185 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8186 explicitly zeroing elements.
8187 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8188 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8189 of elements in a structure already allocated using grub_zalloc.
8190 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8191
8192 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8193
8194 * docs/grub.texi (grub_cpu): New subsection.
8195 (grub_platform): Likewise.
8196
8197 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8198
8199 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8200
8201 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8202
8203 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8204 divisions.
8205
8206 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8209 * grub-core/fs/ntfscomp.c: Likewise.
8210 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8211 (grub_ntfs_comp): Likewise.
8212
8213 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8214
8215 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8216 Rename to ...
8217 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8218 of groups_per_block. All users updated.
8219
8220 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8221
8222 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8223 grub_error properly.
8224 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8225 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8226
8227 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8228
8229 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8230 always in /boot/zfs.
8231 Reported by: Yuta Satoh.
8232
8233 2013-01-03 Yuta Satoh <nigoro>
8234
8235 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8236 ${grub_probe}
8237
8238 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8239
8240 * configure.ac: Extend -Wno-trampolines to host.
8241
8242 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8243
8244 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8245 entry->len = 0.
8246
8247 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8248
8249 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8250 (Invoking grub-script-check): Likewise.
8251
8252 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8253
8254 * docs/grub.texi (Invoking grub-mount): New section.
8255 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8256
8257 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8258
8259 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8260 test failures, so that a failing unit test correctly causes 'make
8261 check' to fail.
8262
8263 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8264
8265 Fix failing printf test.
8266
8267 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8268 '$' in the correct order when collecting type information.
8269
8270 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8271
8272 * docs/grub.texi (configfile): Explain environment variable
8273 handling.
8274 (source): New section.
8275 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8276
8277 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8278
8279 Remove several trivially-unnecessary uses of nested functions.
8280
8281 * grub-core/commands/i386/pc/sendkey.c
8282 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8283 instead of nested.
8284 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8285 Rename to ...
8286 (legacy_file_getline): ... this.
8287 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8288 Likewise.
8289 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8290 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8291 to ...
8292 (probe_dummy_iter): ... this.
8293 * grub-core/kern/i386/coreboot/mmap.c
8294 (grub_linuxbios_table_iterate: check_signature): Likewise.
8295 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8296 check_varstate): Likewise. Mark inline.
8297 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8298 an additional parameter.
8299 (find_long: fnd_long): Likewise. Pass two additional parameters.
8300 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8301 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8302 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8303 Likewise. Rename to ...
8304 (grub_cmos_find_port_iter): ... this.
8305 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8306 Rename to ...
8307 (find_rtc_iter): ... this.
8308
8309 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8310 function directly into the function body, since it is only called
8311 once.
8312
8313 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8314
8315 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8316 __attribute__ ((unused)).
8317 * grub-core/video/bochs.c (find_card): Likewise.
8318 * grub-core/video/cirrus.c (find_card): Likewise.
8319 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8320 * grub-core/video/sis315pro.c (find_card): Likewise.
8321 * grub-core/video/sm712.c (find_card): Likewise.
8322
8323 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8324
8325 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8326 Fixes Savannah bug #37821.
8327
8328 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8329
8330 Apply program name transformations at build-time rather than at
8331 run-time. Fixes Debian bug #696465.
8332
8333 * acinclude.m4 (grub_TRANSFORM): New macro.
8334 * configure.ac: Create output variables with transformed names for
8335 most programs.
8336 * util/bash-completion.d/grub-completion.bash.in: Use
8337 pre-transformed variables for program names.
8338 * util/grub-install.in: Likewise.
8339 * util/grub-kbdcomp.in: Likewise.
8340 * util/grub-mkconfig.in: Likewise.
8341 * util/grub-mkconfig_lib.in: Likewise.
8342 * util/grub-mknetdir.in: Likewise.
8343 * util/grub-mkrescue.in: Likewise.
8344 * util/grub-mkstandalone.in: Likewise.
8345 * util/grub-reboot.in: Likewise.
8346 * util/grub-set-default.in: Likewise.
8347 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8348 * tests/util/grub-shell-tester.in: Remove unused assignment.
8349 * tests/util/grub-shell.in: Likewise.
8350 * util/grub.d/00_header.in: Likewise.
8351
8352 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8353
8354 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8355
8356 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8357 HAVE_RAW_DECL_GETS.
8358 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8359
8360 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8361
8362 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8363 Reported by: Eriks Latosheks <foresterlv>.
8364
8365 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8366
8367 * docs/grub.texi (Network): Update instructions on generating netboot
8368 image.
8369
8370 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8371
8372 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8373 around device name if necessarry.
8374
8375 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8376
8377 * util/grub-install.in: Follow the symbolic link parameter added
8378 to the file command.
8379
8380 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8381
8382 * util/grub-install.in: Remove stale TODO.
8383
8384 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8385
8386 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8387 dynamic allocation for the bootpath buffer.
8388
8389 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8390
8391 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8392 window too small.
8393
8394 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8395
8396 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8397 argument rather than font name. All users updated.
8398 (grub_gfxterm_set_window): Likewise.
8399
8400 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8401
8402 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8403 from working.
8404
8405 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8406
8407 * util/getroot.c (convert_system_partition_to_system_disk): Support
8408 nbd disks.
8409
8410 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8411
8412 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8413 infinite loop on corrupted FS.
8414
8415 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8416
8417 Fix big-endian mtime.
8418
8419 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8420 together sec and usec.
8421 (grub_ufs_dir): Use correct byteswapping for UFS time.
8422
8423 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8424
8425 Support big-endian UFS1.
8426
8427 * Makefile.util.def (libgrubmods): Add ufs_be.c
8428 * grub-core/Makefile.core.def (ufs1_be): New module.
8429 * grub-core/fs/ufs_be.c: New file.
8430 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8431 the file.
8432
8433 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8434
8435 * include/grub/types.h: Fix functionality unaffecting typo in
8436 GRUB_TARGET_WORDSIZE conditional macro.
8437
8438 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8439
8440 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8441
8442 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8443
8444 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8445 that /netbsd appears first (when it exists).
8446
8447 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8448
8449 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8450 Fixes Savannah bug #37558.
8451
8452 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8453
8454 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8455 description of extract_entries_configfile.
8456
8457 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8458
8459 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8460 preferred_address.
8461 (grub_cmd_linux): Likewise.
8462 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8463 preferred_lifetime. Update all users.
8464
8465 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8466
8467 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8468 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8469
8470 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8471
8472 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8473 errors from grub-probe to /dev/null, not stdout.
8474
8475 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8478 sector 1.
8479
8480 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8481
8482 * util/grub-install.in: Make the error message if $source_dir
8483 doesn't exist more useful.
8484
8485 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8486
8487 Fix grub-emu build on FreeBSD.
8488
8489 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8490 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8491 headers on Linux.
8492 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8493 implementation is currently Linux-specific.
8494 * util/getroot.c (exec_pipe): Define only on Linux or when either
8495 libzfs or libnvpair is unavailable.
8496 (find_root_devices_from_poolname): Remove unused path variable.
8497
8498 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8499
8500 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8501 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8502 should fit before end == 63.
8503
8504 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8505
8506 * util/grub-setup.c (write_rootdev): Remove unused core_img
8507 parameter. Update all callers.
8508 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8509 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8510 GRUB_SETUP_BIOS.
8511
8512 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8515 (grub_add_tab): New function.
8516 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8517 * util/grub.d/10_illumos.in: Likewise.
8518 * util/grub.d/10_kfreebsd.in: Likewise.
8519 * util/grub.d/10_linux.in: Likewise.
8520 * util/grub.d/10_netbsd.in: Likewise.
8521 * util/grub.d/10_windows.in: Likewise.
8522 * util/grub.d/10_xnu.in: Likewise.
8523 * util/grub.d/20_linux_xen.in: Likewise.
8524 * util/grub.d/30_os-prober.in: Likewise.
8525
8526 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8527
8528 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8529 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8530 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8531 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8532 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8533 ieee1275-nocursor.
8534 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8535 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8536
8537 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8538
8539 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8540 le-conversion.
8541 Reported by: BURETTE, Bernard.
8542
8543 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8544
8545 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8546 from comment.
8547
8548 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8549
8550 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8551 IEEE1275 machines. Fixes powerpc-emu compilation.
8552 * include/grub/terminfo.h: Likewise.
8553
8554 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8557 a const pointer.
8558 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8559 const pointer.
8560 (efiemu_set_variable): Make vendor_guid a const pointer.
8561
8562 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8563
8564 Don't require grub-mkconfig_lib to generate manpages for programs.
8565
8566 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8567 dependencies, don't add grub-mkconfig_lib.
8568 (program): Pass empty adddeps.
8569 (script): Pass grub-mkconfig_lib as adddeps.
8570
8571 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8572
8573 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8574 * util/getroot.c (grub_find_device): Likewise.
8575 (get_mdadm_uuid): Likewise.
8576 (grub_util_is_imsm): Likewise.
8577 (grub_util_pull_device): Likewise.
8578 * util/grub-probe.c (probe): Likewise.
8579
8580 2012-09-10 Benoit Gschwind <gschwind>
8581
8582 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8583 (devs): Add devpath_8.
8584
8585 2012-09-08 Peter Jones <pjones@redhat.com>
8586
8587 * grub-core/Makefile.core.def (efifwsetup): New module.
8588 * grub-core/commands/efi/efifwsetup.c: New file.
8589 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8590 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8591 New define.
8592 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8593
8594 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8595
8596 * configure.ac: Add SuSe path.
8597
8598 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8599
8600 * NEWS: Fix typo.
8601
8602 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8603
8604 * util/import_gcry.py: Sort cipher_files, to make build system
8605 generation more deterministic.
8606
8607 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8608
8609 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8610 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8611 (grub_set_datetime): Likewise.
8612
8613 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8614
8615 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8616 warnings.
8617
8618 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8619
8620 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8621
8622 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8623
8624 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8625
8626 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8627
8628 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8629 required for checkouts from bzr, but it may be useful for users or
8630 distributors wishing to update translations against a tarball
8631 distribution, and it can be helpful for the tarball to be a superset
8632 of what's in bzr.
8633
8634 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8635
8636 * Makefile.am (EXTRA_DIST): Add
8637 grub-core/tests/boot/linux.init-mips.S,
8638 grub-core/tests/boot/linux.init-ppc.S, and
8639 grub-core/tests/boot/linux-ppc.cfg.
8640
8641 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8642
8643 * grub-core/mmap/mips/loongson: Remove empty directory.
8644
8645 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8646
8647 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8648 gone.
8649
8650 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8651
8652 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8653 grub-sparc64-setup.
8654
8655 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8656
8657 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8658
8659 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8660
8661 * po/POTFILES.in: Regenerated.
8662
8663 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8664
8665 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8666 (NetBSD): New subsection.
8667
8668 2012-07-22 Ales Nesrsta <starous@volny.cz>
8669
8670 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8671 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8672
8673 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8674
8675 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8676 * util/grub.d/10_hurd.in: Add missing quoting.
8677 * util/grub.d/10_illumos.in: Likewise.
8678 * util/grub.d/10_kfreebsd.in: Likewise.
8679 * util/grub.d/10_linux.in: Likewise.
8680 * util/grub.d/20_linux_xen.in: Likewise.
8681
8682 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8683
8684 New command `lsefi'.
8685
8686 * grub-core/Makefile.core.def (lsefi): New module.
8687 * grub-core/commands/efi/lsefi.c: New file.
8688 * include/grub/efi/api.h: Add more GUIDs.
8689
8690 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8691
8692 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8693 (grub_bsd_elf32_hook): Likewise.
8694 (grub_bsd_elf64_size_hook): Likewise.
8695 (grub_bsd_elf64_hook): Likewise.
8696 (grub_bsd_load_elf): Likewise.
8697
8698 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8699
8700 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8701 if hash function is unavailable.
8702 (dec_stream_header): Likewise.
8703
8704 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8707 filter state.
8708
8709 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8710
8711 Fix coreboot compilation.
8712
8713 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8714 (grub_vga_text_init_real): ... this.
8715 (grub_vga_text_fini): Rename to ...
8716 (grub_vga_text_fini_real): ... this.
8717
8718 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8721
8722 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8723
8724 * grub-core/lib/legacy_parse.c: Support clear and testload.
8725
8726 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8727
8728 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8729
8730 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8731
8732 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8733
8734 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8735
8736 * grub-core/net/tftp.c (ack): Fix endianness problem.
8737 (tftp_receive): Likewise.
8738 Reported by: Michael Davidsaver.
8739
8740 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8741
8742 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8743
8744 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8745
8746 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8747 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8748 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8749
8750 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8751
8752 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8753 efi_mmap_size.
8754 Reported by: Stuart Hayes.
8755
8756 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8757
8758 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8759
8760 * grub-core/Makefile.core.def (mda_text): New module.
8761 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8762 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8763 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8764 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8765 here.
8766 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8767 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8768 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8769 here.
8770 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8771 to ..
8772 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8773 ... here
8774 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8775 here.
8776 * grub-core/term/i386/vga_common.c: Removed.
8777 * include/grub/i386/vga_common.h: Likewise.
8778 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8779 (grub_vga_cr_bw_read): Likewise.
8780 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8781 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8782 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8783 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8784 grub_vga_cr_read/grub_vga_cr_write.
8785 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8786
8787 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8788
8789 * configure.ac: Bump version to 2.00.
8790 * grub-core/normal/main.c (features): Add feature_200_final.
8791
8792 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8793 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8794
8795 * NEWS: Fix unclarity and language mistakes.
8796
8797 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8798
8799 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8800 additional size to 3 pages.
8801 Reported by: Stuart Hayes.
8802
8803 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8804
8805 * NEWS: Add 2.00 entry.
8806
8807 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8808
8809 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8810 put explicit "/" for empty path.
8811 (wildcard_expand): Improve dprintf.
8812
8813 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8816 it's equal to currnode. This can happen with "" symlink.
8817
8818 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8819
8820 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8821 echo shell command by printf command.
8822
8823 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8824
8825 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8826 the value returned by firmware is the maximal position, not diumension.
8827 (grub_terminfo_output_state): Use a more sane fallback.
8828
8829 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8832
8833 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8834
8835 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8836 frequency to 150 MHz.
8837
8838 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 Apple fixes.
8841
8842 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8843 __APPLE_
8844 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8845 definition.
8846 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8847
8848 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8849
8850 Handle slash in HFS label.
8851
8852 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8853 (grub_hfs_dir): Tanslate slash.
8854 (grub_hfs_label): Don't translate slash.
8855
8856 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8857
8858 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8859 network protocol listing since it introduces problematic dependency on
8860 net module.
8861
8862 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8863
8864 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8865
8866 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8867
8868 Init video early on yeeloong to avoid being rebooted by watchdog.
8869
8870 * grub-core/Makefile.am (gensm712): New target.
8871 (sm712_start.S): Likewise.
8872 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8873 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8874 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8875 description.
8876 * include/grub/vga.h: Move registry definitions to...
8877 * include/grub/vgaregs.h: ... here.
8878
8879 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8880
8881 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8882 signedness.
8883
8884 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8885
8886 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8887 platforms with firmware disk drivers in the core.
8888
8889 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8890
8891 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8892 informative verbose message.
8893 (read_lv): Handle 64-bit segment size.
8894
8895 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8896
8897 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8898
8899 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8902 character but still remove trainling spaces.
8903 (grub_fat_label): Ignore archive flag.
8904
8905 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8906
8907 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8908 cast between linux_kernel_header and linux_kernel_params.
8909
8910 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8911
8912 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8913 type for size.
8914 (grub_raid6_recover_func_t): Likewise.
8915 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8916 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8917
8918 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8919
8920 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8921
8922 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8923
8924 Fix overflow.
8925
8926 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8927 [__NetBSD__]: Add explicit cast before bitshift.
8928
8929 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8930
8931 * configure.ac: Bump to 2.00~rc1.
8932
8933 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8934
8935 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8936 half of $a0.
8937
8938 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8939 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8940
8941 * docs/grub.texi: Fix search syntax.
8942 (Multi-boot manual config): Put msdos rather than GPT example.
8943 Grammar corrections.
8944
8945 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8948
8949 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8952
8953 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8954
8955 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8956 message on double free. Put the value of magic in case of mismatch.
8957
8958 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8959
8960 Speed-up video on yeeloong.
8961
8962 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8963 add cached_ptr.
8964 (grub_video_sm712_video_fini): Unmap cached_ptr.
8965 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8966 (grub_video_sm712_set_active_render_target): Removed.
8967 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8968 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8969 sync caches.
8970
8971 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8972
8973 Avoid flushing the same line multiple times on loongson.
8974
8975 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8976 Step in 32 bytes and not 1 byte.
8977 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8978 Likewise.
8979
8980 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8983 subvolumes.
8984
8985 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8986
8987 Implement flow control for http.
8988
8989 * grub-core/net/http.c (parse_line): Handle response 206.
8990 (http_receive): Stall if too many packets are in the queue.
8991 (http_establish): Fix range header.
8992 (http_seek): Fix double free.
8993 (http_close): Likewise.
8994 (http_packets_pulled): New function.
8995 (grub_http_protocol): Set http_seek
8996 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8997 (ack_real): Set window depending on i_stall.
8998 (grub_net_send_tcp_packet): Likewise.
8999 (grub_net_tcp_stall): New function.
9000 (grub_net_tcp_unstall): Likewise.
9001 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9002 (grub_net_tcp_unstall): Likewise.
9003
9004 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9007
9008 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9011
9012 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9013
9014 * tests/util/grub-shell.in: Fix a typo.
9015
9016 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9017
9018 Implement flow control for tftp.
9019
9020 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9021 packets but stop only if stop condition is satisfied.
9022 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9023 `stall' instead of `eof' as stop condition.
9024 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9025 (http_err): Likewise.
9026 * grub-core/net/tftp.c (ack): Replace the first argument with data
9027 instead of socket.
9028 (tftp_receive): Stall if too many packets are in wait queue.
9029 (tftp_packets_pulled): New function.
9030 (grub_tftp_protocol): Set packets_pulled.
9031 * include/grub/net.h (grub_net_packets): New field count.
9032 (grub_net_put_packet): Increment count.
9033 (grub_net_remove_packet): Likewise.
9034 (grub_net_app_protocol): New field `packets_pulled'.
9035 (grub_net): New field `stall'.
9036
9037 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9038
9039 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9040 sync part to handle them.
9041
9042 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9043
9044 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9045 * grub-core/net/drivers/ieee1275/ofnet.c
9046 (grub_ieee1275_net_config_real): Likewise.
9047
9048 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9049
9050 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9051 the direct route for server/gateway.
9052
9053 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9054
9055 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9056 IP address to server name since we may not hame the DNS.
9057
9058 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9061 freeing random buffer on failure.
9062 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9063
9064 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9065
9066 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9067
9068 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9071 reserved bytes.
9072 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9073 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9074 Handle malloc error correctly.
9075
9076 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9077
9078 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9079 blocks.
9080
9081 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9082
9083 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9084 increment.
9085
9086 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9087
9088 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9089 none is explicitly specified.
9090
9091 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9092
9093 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9094 while reallocating.
9095
9096 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9097
9098 Respect netmask from bootp/dhcp.
9099
9100 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9101 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9102 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9103 into ...
9104 (grub_net_add_ipv4_local): ... this.
9105 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9106 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9107 (grub_net_add_ipv4_local): New proto.
9108
9109 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9110
9111 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9112 determining EFI memory map size.
9113
9114 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9115
9116 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9117
9118 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9121 when looking for partition separator.
9122
9123 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9124
9125 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9126 Escape commas.
9127
9128 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9129
9130 Restructure FAT driver to avoid hook in label reading as it hits a
9131 GCC bug.
9132
9133 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9134 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9135 (grub_fat_iterate_dir): Split into ...
9136 (grub_fat_iterate_init): ... this, ...
9137 (grub_fat_iterate_fini): ... this, ...
9138 (grub_fat_iterate_dir_next): ... and this. All users updated.
9139
9140 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9141
9142 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9143 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9144 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9145 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9146 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9147 New fields last_key and last_key_time.
9148 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9149 extended key-esc into extended key-extended key.
9150
9151 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9152
9153 Avoid unnecessary memcpy of whole video buffer.
9154
9155 * grub-core/video/fb/video_fb.c (dirty): New struct.
9156 (framebuffer): Add members current_dirty and previous_dirty.
9157 (dirty): New function.
9158 (grub_video_fb_fill_rect): Update dirty.
9159 (common_blitter): Likewise.
9160 (grub_video_fb_scroll): Likewise.
9161 (doublebuf_blit_update_screen): Copy only dirty part.
9162 (doublebuf_pageflipping_update_screen): Likewise.
9163 (grub_video_fb_doublebuf_blit_init): Init dirty.
9164 (doublebuf_pageflipping_init): Likewise.
9165 (grub_video_fb_setup): Likewise.
9166
9167 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9168
9169 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9170 poll rate.
9171
9172 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9173
9174 Fix wildcard regexp dot and other special characters handling.
9175 Reported by: Robert Mabee.
9176
9177 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9178 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9179 (split_path): Trigger expansion on '?'.
9180 (unescape): New function.
9181 (wildcard_expand): Unescape parts copied without globbing.
9182 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9183 (grub_script_arglist_to_argv): Don't unescape expansions.
9184
9185 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9186
9187 * include/grub/net.h (grub_net_card): New member txbufsize.
9188 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9189 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9190 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9191 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9192 txbufsize.
9193 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9194 compatible property to check for macs. Set
9195 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9196 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9197 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9198 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9199 (send_card_buffer): Use txbuf.
9200 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9201 nested function out of the parent while on it.
9202
9203 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9204
9205 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9206 presence check.
9207 (grub_ieee1275_net_config_real): Fix config pointer.
9208
9209 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9210
9211 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9212 filename parsing to non-block devices.
9213
9214 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9215
9216 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9217
9218 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9219
9220 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9221 All users updated.
9222
9223 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9224
9225 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9226 UUID search command even if hints probing failed.
9227
9228 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9229
9230 * po/POTFILES.in: Regenerated.
9231
9232 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9233
9234 Speed-up video on fuloong.
9235
9236 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9237 New function.
9238 (grub_pci_device_unmap_range): Handle non-cached address.
9239 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9240 add direct_ptr.
9241 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9242 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9243 (grub_video_sis315pro_set_active_render_target): Removed.
9244 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9245 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9246 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9247 sync caches.
9248 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9249 New proto.
9250
9251 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9252
9253 * docs/grub.texi (Multi-boot manual config): New section.
9254
9255 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9256
9257 Avoid slow read-back from VRAM.
9258
9259 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9260 Move from here ...
9261 * grub-core/video/fb/video_fb.c
9262 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9263 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9264 (front_target): Remove front_target. Add pages.
9265 (grub_video_fb_init): Skip setting front_pages.
9266 (grub_video_fb_fini): Likewise.
9267 (doublebuf_blit_update_screen): Use pages.
9268 (grub_video_fb_doublebuf_blit_init): Likewise.
9269 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9270 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9271 (grub_video_fb_setup): Prefer doublebuffing.
9272
9273 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9274
9275 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9276 gzio.
9277
9278 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 Add loongson tests.
9281
9282 * tests/util/grub-shell.in: Handle loongson.
9283 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9284 drivers.
9285 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9286 Reboot instead of shutdown if REBOOT is defined.
9287
9288 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9291 sized ports since unlike on real hardware qemu supports only 32-bit
9292 regs.
9293
9294 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9295
9296 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9297 * util/grub-mkrescue.in: Handle loongson.
9298
9299 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9300
9301 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9302 Set is_part appropriately.
9303 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9304 names. Canonicalize partition without full disk.
9305
9306 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9307
9308 Revert usb-quiesce since it's wrong.
9309
9310 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9311 (grub_ofdisk_init): Don't do quiesce.
9312
9313 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9314
9315 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9316 PowerMac workaround to Xserves as well.
9317 Information supplied by: Benjamin Herrenschmidt.
9318
9319 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9320
9321 Don't assume that beginning address is also the entry point on ppc.
9322
9323 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9324 (grub_linux_boot): Use linux_entry.
9325 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9326 (grub_linux_load64): Likewise.
9327
9328 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9329
9330 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9331
9332 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9335 needlessly lose the console.
9336
9337 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9338
9339 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9340 space.
9341
9342 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9343
9344 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9345 than current grub_get_rtc() not implemented when booted with
9346 coreboot without TSC.
9347
9348 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9349 Add machine/time.h to kernel headers on loongson.
9350 * grub-core/Makefile.core.def (kernel): Remove
9351 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9352 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9353 (grub_get_rtc): Likewise.
9354 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9355 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9356 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9357 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9358 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9359 rather than installing known non-working time source.
9360 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9361 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9362 * include/grub/time.h: Don't include machine/time.h.
9363 * include/grub/efi/time.h: Removed.
9364 * include/grub/i386/efi/time.h: Likewise.
9365 * include/grub/i386/ieee1275/time.h: Likewise.
9366 * include/grub/powerpc/ieee1275/time.h: Likewise.
9367 * include/grub/sparc64/ieee1275/time.h: Likewise.
9368 * include/grub/x86_64/efi/time.h: Likewise.
9369
9370 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9371
9372 Remove dot on i and j when combining with above diacritics.
9373
9374 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9375 value.
9376 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9377 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9378 with dotless variants when any combining above is present.
9379
9380 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9381
9382 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9383 text and not binary.
9384
9385 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 Stop polling as soon as we have the packet we were waiting for.
9388
9389 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9390 All users updated.
9391 * grub-core/net/arp.c (have_pending): New var.
9392 (pending_req): Likewise.
9393 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9394 stop indicator.
9395 (grub_net_arp_receive): Set have_pending.
9396 * grub-core/net/dns.c (recv_data): New field stop.
9397 (recv_hook): Set stop.
9398 (grub_net_dns_lookup): Init stop and use as stop condition.
9399 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9400 condition.
9401 * grub-core/net/net.c (grub_net_poll_cards): New argument
9402 stop_condition. Stop when it goes true.
9403 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9404 indicator.
9405 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9406
9407 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 Keep TX and RX buffers on EFI rather than always allocate new ones.
9410
9411 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9412 card. All users updated.
9413 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9414 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9415 (get_card_packet): Likewise.
9416 (grub_efinet_findcards): Init new fields.
9417
9418 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9421 compilation error on sparc64.
9422
9423 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9424
9425 Use ITC on IA64 rather than broken routine based on daytime.
9426
9427 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9428 ia64.
9429 (grub_get_rtc) [__ia64__]: Likewise.
9430 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9431 (get_itc): New function.
9432 (grub_rtc_get_time_ms): Likewise.
9433 (grub_machine_init): Calibrate ITC.
9434 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9435 Keep only on non-ia64. Don't export since it's broken and used only
9436 if TSC is unavailable.
9437
9438 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9439
9440 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9441 even if it's used.
9442 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9443 Skip if parent is unused.
9444
9445 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9446
9447 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9448
9449 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 Fix wildcard escaping.
9452
9453 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9454 * grub-core/script/execute.c (wildcard_escape): .. to here.
9455 Don't escape dot.
9456 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9457 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9458 Don't escape dot.
9459 * grub-core/script/execute.c (gettext_append): Always escape.
9460 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9461 * grub-core/script/yylex.l: Don't cut away the escaping.
9462 * tests/grub_script_echo1.in: Add tests with wildcard.
9463
9464 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9465
9466 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9467 (ftdi_hw_configure): Likewise.
9468 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9469 define.
9470 (real_config): Handle 1.5 stop bits.
9471 (pl2303_hw_configure): Likewise.
9472
9473 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9474
9475 * Makefile.am: Add ppc linux bootcheck.
9476 * grub-core/tests/boot/linux-ppc.cfg: New file.
9477 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9478
9479 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 * tests/grub_script_expansion.in: Skip network protocols.
9482
9483 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9484
9485 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9486
9487 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9488
9489 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9490 --rom-directory.
9491 Add -graft-points.
9492
9493 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9494
9495 ESCC serial driver for conducting sautomated tests in qemu.
9496 Not tested on real hardware.
9497
9498 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9499 * grub-core/term/ieee1275/escc.c: New file.
9500 * grub-core/Makefile.core.def (escc): New module.
9501
9502 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9503
9504 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9505 invalid on error.
9506 (serial_hw_fetch): Don't read invalid handle.
9507 (serial_hw_put): Don't write into invalid handle.
9508
9509 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 Add a 1.5 stop bits value.
9512
9513 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9514 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9515 GRUB_SERIAL_STOP_BITS_1_5.
9516
9517 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9518
9519 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9520 value rather than let it uninited.
9521
9522 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 * grub-core/commands/wildcard.c (+check_file): New function.
9525 (wildcard_expand): Don't expand to non-existing files, expand with
9526 suffix and not attempt to expand if not needed.
9527
9528 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9529
9530 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9531 out of partitions containing other partitions.
9532
9533 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9534
9535 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9536 on some qemu versions with GRUB.
9537
9538 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9539 define.
9540 (grub_openbsd_bootarg_pcibios): New struct.
9541 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9542 Add PCIINFO.
9543
9544 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9545
9546 * tests/util/grub-shell.in: Trim firmware output on EFI.
9547
9548 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9549
9550 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9551 and coreboot since it's already in kernel.
9552
9553 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9554
9555 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9556 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9557 to here. New return value start. All users updated.
9558 Recursively scan linear mappings.
9559 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9560 proto.
9561 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9562 Use grub_util_get_dm_node_linear_info.
9563 * util/getroot.c (convert_system_partition_to_system_disk): Use
9564 grub_util_info rather than grub_dprintf.
9565 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9566
9567 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9568
9569 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9570
9571 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9572 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9573
9574 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9575
9576 * include/grub/types.h (grub_set_unaligned64): New function.
9577 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9578 (setup): Likewise.
9579
9580 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9581
9582 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9583 (grub_ofdisk_fini): Quiesce USB devices.
9584
9585 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9586
9587 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9588 caches.
9589
9590 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9591
9592 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9593
9594 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9595
9596 * grub-core/disk/pata.c (grub_pata_pio_read)
9597 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9598 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9599
9600 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9601
9602 Extend automated tests to qemu-mips.
9603
9604 * Makefile.am: reorganise tests and enable qemu-mips.
9605 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9606 * grub-core/tests/boot/linux.init-mips.S: New file.
9607 * tests/partmap_test.in: Handle ata0 disks.
9608 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9609 non-pc i386.
9610
9611 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9612
9613 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9614 ia64.
9615 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9616 quotes while on it.
9617
9618 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9619
9620 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9621 (grub_halt): Likewise.
9622 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9623
9624 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 * grub-core/term/serial.c (grub_serial_register)
9627 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9628 the behaviour in line with x86 platforms.
9629
9630 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9633 (grub_ata_strncpy): Likewise.
9634 (grub_ata_identify): Add missing byteswaps.
9635
9636 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9637
9638 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9639 byte-swap.
9640 (screen_read_char): Likewise.
9641 (grub_vga_text_cls): Likewise.
9642
9643 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9644
9645 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9646 filenames.
9647 (make_file_path): Likewise.
9648
9649 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9650
9651 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9652 machines.
9653 Tested by: Paulo Flabiano Smorigo.
9654 Crucial information about API supplied by: Coleen <Last name unknown>.
9655 Reviewed by: Coleen <Last name unknown>.
9656
9657 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9658
9659 * util/grub-mkimage.c: Disable -Wcast-align.
9660
9661 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9664 as they are fatal.
9665
9666 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9667
9668 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9669
9670 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9671
9672 * util/grub-probe.c (escape_of_path): Fix double free.
9673
9674 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9675
9676 * grub-core/commands/videoinfo.c (hook): Show pitch.
9677
9678 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9679
9680 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9681
9682 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9683
9684 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9685 (probe): Add ieee1275 to OFW devices.
9686
9687 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9688
9689 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9690
9691 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9692
9693 Handle IBM OFW path.
9694
9695 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9696 available.
9697 (of_path_of_scsi): Handle vdevice.
9698
9699 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9700
9701 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9702 Allocate in multiples of 16 to avoid adding a few bytes free region the
9703 windows bugs upon.
9704
9705 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9708 Allocate in multiples of 16 to avoid adding a few bytes free region the
9709 windows bugs upon.
9710 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9711
9712 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9713
9714 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9715 resolutions.
9716 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9717 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9718
9719 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9720
9721 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9722
9723 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9724
9725 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9726 resulted in \\ at the end of the line.
9727
9728 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9729
9730 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9731 (grub_parser_cmdline_state): Likewise.
9732 (grub_parser_split_cmdline): Likewise.
9733
9734 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9735
9736 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9737 /dev/root and /dev/dm-*.
9738
9739 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9740
9741 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9742 fix partially stale display.
9743
9744 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9745
9746 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9747 substraction.
9748
9749 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9750
9751 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9752 Fix MBR remapping workaround.
9753 (grub_util_biosdisk_read) [__linux__]: Likewise.
9754
9755 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9756
9757 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9758
9759 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9760
9761 * configure.ac: Bump to beta6.
9762
9763 2012-05-31 Christer Weinigel <christer@weinigel.se>
9764
9765 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9766
9767 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9770 (grub_cmd_linux): Likewise.
9771
9772 2012-05-31 Christer Weinigel <christer@weinigel.se>
9773
9774 Fix EHCI low-speed.
9775
9776 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9777 (GRUB_EHCI_MULT_TWO): Likewise.
9778 (GRUB_EHCI_MULT_THREE): Likewise.
9779 (GRUB_EHCI_CMASK_MASK): New enum value.
9780 (GRUB_EHCI_SMASK_MASK): Likewise.
9781 (GRUB_EHCI_CMASK_OFF): Likewise.
9782 (GRUB_EHCI_SMASK_OFF): Likewise.
9783 (grub_ehci_pci_iter): Enable periodic schedule.
9784 (grub_ehci_parse_notrun): Likewise.
9785 (grub_ehci_restore_hw): Likewise.
9786 (grub_ehci_setup_qh): Set flags for low speed transfers.
9787 (grub_ehci_find_qh): Use periodic list for low speed.
9788 (grub_ehci_setup_transfer): Check periodic queue as well.
9789 (grub_ehci_check_transfer): Likewise.
9790 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9791
9792 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9793
9794 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9795 parameter is used.
9796
9797 2012-05-31 Peter Jones <pjones@redhat.com>
9798
9799 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9800 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9801 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9802
9803 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9806 uninited variable. Allocate at least setup_sects.
9807
9808 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9809
9810 Fix handling of EFI with big memory maps.
9811
9812 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9813 (real_mode_mem): Likewise.
9814 (real_mode_target): Likewise.
9815 (real_mode_pages): Likewise.
9816 (prot_mode_pages): Likewise.
9817 (linux_params): New var.
9818 (linux_cmdline): Likewise.
9819 (free_pages): Don't set real mode variables.
9820 (allocate_pages): Don't allocate real mode memory.
9821 (grub_e820_add_region): Remove the limit.
9822 (grub_linux_boot): Allocate and copy real mode memory.
9823 (grub_linux_unload): Free linux_cmdline.
9824 (grub_cmd_linux): Use temporary storage for parameters.
9825 (grub_cmd_initrd): Likewise.
9826 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9827 (linux_kernel_params): Make it 1K big.
9828
9829 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9830
9831 * Makefile.util.def: Remove -Wno-format.
9832 * grub-core/Makefile.core.def: Likewise.
9833
9834 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 * tests/cmp_unit_test.c: Add missing failure message.
9837 * tests/example_unit_test.c: Likewise.
9838 * tests/printf_unit_test.c: Likewise.
9839
9840 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9841
9842 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9843 relaxation of protective MBR requirements.
9844
9845 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9846
9847 * configure.ac: Add condition for COND_HOST_XNU.
9848 * Makefile.util.def (10_xnu): New script.
9849 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9850
9851 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9852
9853 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9854 objconv bug.
9855
9856 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9859 Binary on other platforms stays identical.
9860
9861 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9862
9863 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9864 Apple.
9865
9866 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9867
9868 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9869
9870 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9871
9872 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9873 rather than defining size_t ourselves to avoid conflict.
9874
9875 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9878 initialisation to avoid __bzero reference.
9879
9880 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9881
9882 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9883 version.
9884 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9885 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9886 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9887 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9888 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9889
9890 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9891
9892 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9893 * grub-core/kern/misc.c: Likewise.
9894 * grub-core/loader/i386/xnu.c: Likewise.
9895 * include/grub/i386/tsc.h: Likewise.
9896 * include/grub/symbol.h: Likewise.
9897
9898 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9899
9900 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9901 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9902 on older compiler.
9903
9904 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9905
9906 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9907 Implement Apple flavour.
9908 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9909
9910 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9913 (memmove) [__APPLE__]: Likewise.
9914 (memcpy) [__APPLE__]: Likewise.
9915 (memset) [__APPLE__]: Likewise.
9916 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9917 (memmove) [__APPLE__]: Likewise.
9918 (memcpy) [__APPLE__]: Likewise.
9919 (memset) [__APPLE__]: Likewise.
9920
9921 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9924 dependency discard.
9925
9926 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * grub-core/normal/main.c (read_config_file): Provide config_file and
9929 config_directory.
9930 * util/grub.d/41_custom.in: Use config_directoy when available.
9931
9932 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9933
9934 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9935 (grub_bfs_dir): Likewise.
9936
9937 2012-05-27 Peter Jones <pjones@redhat.com>
9938
9939 The old code gives arguments to a printf function which can't work
9940 correctly, and the compiler complains.
9941
9942 * grub-core/tests/example_functional_test.c (example_test): Add
9943 missing text.
9944 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9945 * include/grub/test.h (grub_test_assert_helper): New declaration.
9946 (grub_test_assert): Use grub_test_assert_helper.
9947
9948 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9951 (exfctest): ... this to avoid overlong filenames.
9952 All users updated.
9953
9954 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9955
9956 Handle "." and ".." on squashfs.
9957
9958 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9959 Make inode numbers into stack.
9960 (grub_squash_read_symlink): Use stack.
9961 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9962 (make_root_node): Fill stack.
9963 (grub_squash_open): Use stack.
9964
9965 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9966
9967 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9968 freeing.
9969
9970 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9971
9972 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9973 stderr on test calls.
9974
9975 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9976
9977 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9978
9979 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9980
9981 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9982
9983 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9986 "..".
9987
9988 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9991 (grub_hfsplus_iterate_dir): Add "." and "..".
9992
9993 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9994
9995 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9996 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9997
9998 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10001 (find_path): Handle "." and "..".
10002
10003 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10006 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10007 (grub_affs_iterate_dir): Handle hardlinks.
10008
10009 2012-05-26 Matthew Garrett <mjg@redhat.com>
10010
10011 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10012 (grub_efi_console_fini): Likewise.
10013 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10014 (grub_video_gop_fill_mode_info): Rename to ...
10015 (grub_video_gop_fill_real_mode_info): ... this.
10016 (grub_video_gop_fill_mode_info): New function.
10017 (grub_video_gop_setup): Setup double framebuffer.
10018 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10019 Free offscreen.
10020 (grub_video_gop_swap_buffers): Copy framebuffer.
10021 (grub_video_gop_fini): Free offscreen buffer.
10022 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10023 New enum.
10024 (grub_efi_gop_blt_pixel): New struct.
10025
10026 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10027
10028 * gentpl.py: Remove error disabling for objconv.
10029
10030 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10031
10032 * configure.ac: Remove -Wunitialized as it's not available on older
10033 compilers.
10034
10035 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10036
10037 Fix extent overflow comparator.
10038
10039 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10040 (grub_hfsplus_read_block): Set type.
10041 (grub_hfsplus_cmp_extkey): Compare type.
10042
10043 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10044
10045 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10046
10047 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10048
10049 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10050 than 0.
10051
10052 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10053
10054 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10055 (dejavu_bold_14.pf2): New target.
10056
10057 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10058
10059 * configure.ac: Fix djvu font detection.
10060
10061 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10062
10063 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10064 ext* instead of ext2.
10065
10066 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10067
10068 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10069 name with \0.
10070
10071 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10072
10073 * docs/grub-dev.texi: Remove dot from .png.
10074
10075 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10076
10077 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10078 protective entry in any slot.
10079 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10080 if protective entry is found in any slot.
10081
10082 Protective entry in non-first slot make no sense but is a widespread
10083 brain damage.
10084
10085 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10088
10089 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10090
10091 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10092 with old reiserfs.
10093 (grub_reiserfs_open): Don't free root.
10094
10095 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10098 after freeing for safety.
10099
10100 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10103 Reported by: Jordan Uggla.
10104
10105 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10106
10107 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10108 actual implementation. Specifically, clarify that the grub menu will
10109 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10110 passed.
10111
10112 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10113
10114 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10115 of r0.
10116
10117 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 Remove unjustified hard dependency of normal.mod on gfxterm.
10120
10121 * include/grub/term.h (grub_term_output): New member fullscreen.
10122 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10123 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10124 (grub_gfxterm): Set .fullscreen.
10125 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10126 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10127
10128 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10129
10130 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10131 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10132 Mention case-insensitive AFFS, SFS and JFS.
10133
10134 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10135
10136 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10137
10138 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10141 a bad FS.
10142
10143 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10144
10145 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10146 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10147
10148 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10149
10150 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10151 (grub_jfs_mount): Fill caseins.
10152 (grub_jfs_find_file): Respect caseins.
10153
10154 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10155
10156 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10157 through UTF-16.
10158
10159 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10160
10161 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10162 New argument origpath. All users updated.
10163
10164 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10165
10166 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10167 (read_attr): Ensure that we read start of possibly compressed block.
10168
10169 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10170
10171 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10172 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10173 All users updated.
10174
10175 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10176
10177 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10178 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10179 (dejavu.pf2): Replace with ...
10180 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10181 this.
10182
10183 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10184
10185 * util/grub.d/20_linux_xen.in: Add missing line.
10186
10187 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10188
10189 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10190 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10191 (grub_utf16_to_utf8): Likewise.
10192
10193 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10194
10195 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10196 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10197 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10198 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10199 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10200 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10201
10202 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10203
10204 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10205 a bad FS.
10206
10207 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10208
10209 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10210 (grub_udf_read_symlink): Handle read_string failure.
10211
10212 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10213
10214 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10215 comment.
10216
10217 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10218
10219 Fix handling of UDF symlinks.
10220
10221 * grub-core/fs/udf.c (read_string): New argument outbuf.
10222 All users updated.
10223 (grub_ufs_read_symlink): Rename to ...
10224 (grub_udf_read_symlink): ... this. All users updated.
10225 Handle symlinks with more than one component.
10226
10227 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10228
10229 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10230 symlinks. Replace leading colon with a slash.
10231
10232 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10233
10234 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10235 filename.
10236
10237 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10238
10239 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10240 match in inner node.
10241
10242 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10243
10244 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10245 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10246 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10247 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10248 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10249 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10250 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10251 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10252 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10253
10254 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10255
10256 Use grub-probe and not cmp to check that disk is empty.
10257
10258 * util/grub-install.in: Use grub-probe for zero-check.
10259 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10260 (probe): Handle PRINT_ZERO_CHECK.
10261 (argp_parser): Handle -t zero_check.
10262
10263 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10264
10265 Flush block cache on adding disk to device map.
10266
10267 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10268 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10269 adding.
10270 (read_device_map): Likewise.
10271 (open_device): Flush on opening.
10272
10273 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10274
10275 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10276 (handle_symlink): Fix off-by-one error.
10277 Canonicalize the target.
10278 (grub_cpio_dir): Canonicalize the name.
10279 Fix memory leak.
10280 Set directory.
10281 (grub_cpio_open): Canonicalize the name.
10282
10283 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10284
10285 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10286 handling.
10287
10288 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10289
10290 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10291 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10292
10293 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10294
10295 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10296 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10297 All users updated.
10298
10299 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10300
10301 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10302 counterpart.
10303
10304 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10305
10306 Fix UFS1 big file support.
10307
10308 * grub-core/fs/ufs.c (INODE): Removed.
10309 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10310 64-bit.
10311 (INODE_MODE): Simplify.
10312 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10313 (grub_ufs_lookup_symlink): Don't use INODE.
10314
10315 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10316
10317 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10318
10319 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10320 (grub_minix_data): Replace log_block_size with block_size.
10321 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10322 (grub_minix_mount): Fill block_size.
10323
10324 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 * configure.ac: Bump to beta5.
10327
10328 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10329
10330 Fix wrapped HFS+ handling.
10331
10332 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10333 blocks_start. All users updated.
10334 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10335 wrapping offset.
10336 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10337
10338 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10339
10340 Fix long symlinks on reiserfs.
10341
10342 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10343 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10344 (grub_reiserfs_iterate_dir): Save size for non-directories.
10345 (grub_reiserfs_open): Don't reread stat block as we already know the
10346 size.
10347 (grub_reiserfs_read): Split into...
10348 (grub_reiserfs_read_real): ... and ...
10349 (grub_reiserfs_read): ...this.
10350
10351 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10352
10353 Fix non-indexed JFS.
10354
10355 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10356 (grub_jfs_data): New field namecomponentlen.
10357 (grub_jfs_mount): Fill namecomponentlen.
10358 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10359
10360 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10361
10362 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10363 * tests/grub_script_echo1.in: Add tests.
10364
10365 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10366
10367 * util/grub-install.in: Ignore empty devicetree directory.
10368
10369 2012-05-08 Bean <bean123ch@gmail.com>
10370
10371 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10372 All users updated.
10373 (free_rsm): Free header as well.
10374 (free_old_fragments): Fix memory leak.
10375 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10376 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10377 (destroy_pq): Likewise.
10378 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10379
10380 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10381
10382 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10383 resulting hash as a precaution.
10384
10385 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10388 '_' in variable names.
10389 * grub-core/net/net.c (grub_net_network_level_interface_register):
10390 Likewise.
10391
10392 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10393
10394 Fix AFFS with non-512B blocks.
10395
10396 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10397 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10398 (grub_affs_data): Replace blocksize with log_blocksize.
10399 (grub_affs_read_block): Fix non-512B blocks.
10400 (grub_affs_read_symlink): Likewise.
10401 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10402 (grub_affs_read): Fix non-512B blocks.
10403 (grub_affs_label): Likewise.
10404 (grub_affs_mtime): Likewise.
10405 (grub_affs_mount): Fix block detection routine.
10406
10407 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10408
10409 Add filesystem mtime to AFFS.
10410
10411 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10412 (aftime2ctime): New function.
10413 (grub_affs_dir): Use aftime2ctime.
10414 (grub_affs_label): Fix return value.
10415 (grub_affs_mtime): New function.
10416 (grub_affs_fs): Add mtime.
10417
10418 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10419
10420 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10421 UTF-8.
10422
10423 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10424
10425 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10426 UTF-8.
10427
10428 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10429
10430 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10431
10432 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10433
10434 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10435 flags.
10436 (FLAGS_CASE_SENSITIVE): New enum value.
10437 (cache_entry): New struct.
10438 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10439 cache_size and cache.
10440 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10441 Add log_blocksize and fshelp_flags.
10442 (grub_sfs_read_extent): Handle non-512 blocks.
10443 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10444 (grub_sfs_read_file): Handle non-512 blocks.
10445 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10446 fshelp_flags.
10447 (grub_sfs_read_symlink): Handle non-512 blocks.
10448 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10449 (grub_sfs_dir): Free cache.
10450 (grub_sfs_close): Likewise.
10451
10452 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10453
10454 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10455 filesystems.
10456
10457 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10458
10459 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10460
10461 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10462
10463 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10464
10465 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10466
10467 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10468 (grub_sfs_read_extent): Likewise.
10469 (grub_sfs_read_block): Likewise.
10470 (grub_sfs_mount): Likewise.
10471 (grub_sfs_iterate_dir): Likewise.
10472 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10473 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10474
10475 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10476
10477 Fix errors on compressed NTFS with 512B clusters.
10478
10479 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10480 types.
10481 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10482 not 0.
10483 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10484 Relax check for inline extents.
10485 (ntfscomp): Return correct -1 on error and not 0.
10486
10487 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * util/grub-install.in: Fix handling of prefix containing spaces.
10490
10491 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10492
10493 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10494 (grub_squash_read_data): Fix offset byte-swapping.
10495
10496 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10497
10498 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10499 per common usage and preffered in several parts of code.
10500 (grub_memcmp): Likewise.
10501 (grub_strncmp): Likewise.
10502 * include/grub/misc.h (grub_strcasecmp): Likewise.
10503 (grub_strncasecmp): Likewise.
10504 * Makefile.util.def (cmp_test): New test.
10505 (grub_script_strcmp): Likewise.
10506 * tests/cmp_unit_test.c: New file.
10507 * tests/grub_script_strcmp.in: Likewise.
10508 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10509
10510 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 * include/grub/pci.h: Move enums into no-asm part.
10513
10514 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10515
10516 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10517
10518 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10519
10520 * util/getroot.c (find_hurd_root_device): Try to make error message
10521 and comments to translators clearer.
10522
10523 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10524
10525 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10526
10527 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10528
10529 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10530 btrfs.
10531
10532 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10533
10534 * docs/grub.cfg: Update.
10535
10536 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10537
10538 * docs/grub.texi (PXE): Remove not present variables.
10539
10540 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10541
10542 * grub-core/net/net.c (defserver_set_env): New function.
10543 (defserver_get_env): Likewise.
10544 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10545
10546 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10547
10548 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10549 entries.
10550
10551 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10552
10553 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10554 * grub-core/kern/emu/hostdisk.c: Likewise.
10555
10556 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10557
10558 Handle hurd userspace partitions.
10559
10560 * util/getroot.c (find_hurd_root_device): New function.
10561 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10562
10563 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10564
10565 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10566 names.
10567 Reported by: Bastian Blank.
10568
10569 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10570
10571 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10572 crossing page boundary.
10573
10574 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 Fix B-tree search in BFS, especially in presence of non-ASCII
10577 characters.
10578
10579 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10580 (find_in_b_tree): Use standard bsearch + btree algorithm.
10581
10582 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10583
10584 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10585 and so on.
10586
10587 2012-05-03 Matthew Garrett <mjg@redhat.com>
10588 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10589
10590 Suspend broadcom cards in order to stop their DMA.
10591
10592 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10593 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10594 (pci): Don't build on x86 EFI.
10595 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10596 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10597 New function.
10598 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10599 stop_broadcom if running on EFI.
10600 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10601 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10602 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10603 (grub_pci_find_capability): New proto.
10604
10605 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10606
10607 * docs/grub.texi: Remove dot from the extension as it apparently
10608 doesn't work with some makeinfo versions.
10609
10610 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10611
10612 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10613 with GRUB expectance.
10614
10615 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10616
10617 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10618
10619 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10620
10621 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10622 zero after directory block since last entry may be not 0-terminated if
10623 it ends on block boundary. Use continue instead of if spanning whole
10624 loop.
10625
10626 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10627
10628 Support 4K sectors UDF inline files.
10629
10630 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10631 (grub_udf_extended_file_entry): Likewise.
10632 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10633 All users updated.
10634 (get_fshelp_size): New function.
10635 (grub_udf_read_icb): Read whole block.
10636 (grub_udf_iterate_dir): Likewise.
10637 (grub_udf_dir): Likewise.
10638 (grub_udf_open): Likewise.
10639
10640 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10641
10642 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10643
10644 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10645
10646 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10647 inline symlinks in addition to workaround.
10648
10649 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10652
10653 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10654
10655 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10656
10657 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10658
10659 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10660
10661 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10662
10663 Fix reiserfs big seek times.
10664
10665 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10666 exact. All users updated.
10667 (grub_reiserfs_read): Use nearest btree search for seeking.
10668 Fix return value on error.
10669
10670 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10671
10672 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10673 entries.
10674 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10675 * docs/grub.texi: Update menuentry description.
10676
10677 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10678
10679 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10680 crash when embedding onto filesystem.
10681
10682 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10683
10684 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10685 name.
10686
10687 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10688
10689 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10690
10691 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10692
10693 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10694 commit.
10695
10696 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10697 2012-05-01 Bean <bean123ch@gmail.com>
10698
10699 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10700
10701 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10702
10703 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10704 Special behaviour for len = 0 to read whole file isn't used anywhere and
10705 can cause buffer ovewrflows in several places.
10706
10707 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10708
10709 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10710
10711 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10712
10713 Handle RAIDZ on non-512B sectors.
10714
10715 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10716 max_children_ashift.
10717 (fill_vdev_info_real): Fill max_children_ashift.
10718 (read_device): Use max_children_ashift.
10719
10720 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10721
10722 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10723
10724 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10725
10726 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10727 disk names.
10728 * docs/grub.texi: Update device.map parts.
10729
10730 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 Don't scan into non-diskfilter devices having diskfilter names.
10733
10734 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10735 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10736 handling.
10737 (scan_disk_hook): New function.
10738
10739 2012-04-29 Bean <bean123ch@gmail.com>
10740
10741 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10742 allocation.
10743
10744 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10745
10746 * configure.ac: Detect starfield theme font path
10747 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10748
10749 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10750
10751 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10752 geometry on serial consoles.
10753
10754 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10755
10756 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10757 because of network consoles.
10758
10759 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10760
10761 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10762 handling.
10763
10764 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10765
10766 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10767 falls on Q syndrom.
10768
10769 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10770
10771 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10772 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10773
10774 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10775
10776 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10777 Allocate at lest 8192 for temporary buffer as required for lzo.
10778
10779 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10780
10781 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10782 to cluster_bits, since it's already added in.
10783 (grub_fat_read_data): Likewise.
10784
10785 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10786
10787 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10788 as long as cluster size is multiple of 512 bytes.
10789
10790 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 * util/grub-mkrescue.in: Fix locale directory.
10793
10794 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10795
10796 * grub-core/kern/emu/hostdisk.c (map): Make static.
10797
10798 2012-04-23 Bean <bean123ch@gmail.com>
10799
10800 * util/grub-fstest.c (fstest): Add missing break.
10801
10802 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10803
10804 Fix hurd build.
10805
10806 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10807 not define nr variable.
10808 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10809 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10810 grub_find_device): Do not define.
10811
10812 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10813
10814 Fix kfreebsd compile and behaviour.
10815
10816 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10817 format-security.
10818 * util/getroot.c: Fix wait.h include.
10819 (grub_guess_root_devices): Error if grub_find_device fails.
10820 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10821 (grub_util_get_dev_abstraction): Likewise.
10822 (grub_util_pull_device): Likewise.
10823 (grub_util_get_grub_dev): Likewise.
10824 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10825
10826 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10827
10828 Fix and unify wholedisk detection.
10829
10830 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10831 is_part. All users updated.
10832 (device_is_wholedisk): Removed.
10833 (grub_util_biosdisk_get_grub_dev): Use is_part.
10834
10835 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10838 mode.
10839
10840 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * configure.ac: Bump to beta4.
10843
10844 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10845
10846 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10847 --fs-uuid --set UUID syntax.
10848
10849 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10850
10851 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10852 disunification.
10853
10854 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10855
10856 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10857
10858 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10859
10860 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10861
10862 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10863
10864 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10865
10866 2012-04-18 Bean <bean123ch@gmail.com>
10867
10868 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10869 place.
10870
10871 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10874 users updated.
10875 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10876 corresponding to GRUB partitions.
10877 (grub_util_biosdisk_write): Likewise.
10878
10879 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10880
10881 Scan mdraid before LVM.
10882
10883 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10884 (grub_diskfilter_register_front): ... this.
10885 (grub_diskfilter_register_back): New function.
10886 All users of grub_diskfilter_register updated.
10887
10888 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10889
10890 * util/grub-install.in: Fix an automatic target detection bug.
10891
10892 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10893
10894 * util/grub-install.in: New option --efi-directory.
10895
10896 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10897
10898 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10899 boot services if we have no other choice.
10900
10901 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10902
10903 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10904 document it.
10905 * tests/util/grub-shell.in: Update to --directory.
10906
10907 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10908
10909 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10910
10911 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10912
10913 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10914 (grub_minix_read_file): Likewise.
10915 (grub_minix_read_inode): Likewise.
10916 (grub_minix_find_file): Likewise.
10917 (grub_minix_dir): Likewise.
10918
10919 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10920
10921 * util/grub-setup.c (setup): Fix partition handling and blocklist
10922 check.
10923
10924 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10925
10926 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10927 redundant buggy overlap check.
10928
10929 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10930
10931 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10932 and grub-mknetdir.
10933
10934 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10935
10936 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10937 kh.loadflags on pre-2.00 kernels.
10938
10939 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10940
10941 Terminate UNDI and PXE before launching the payload to avoid problems
10942 with DMA.
10943
10944 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10945 (grub_loader_flags): ... this. All users updated.
10946 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10947 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10948 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10949 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10950 function.
10951 (grub_pxe_restore): Likewise.
10952 (fini_hnd): New var.
10953 (GRUB_MOD_INIT): Register shutdown hook.
10954 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10955 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10956 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10957 (grub_loader_set): Rename second argument to flags.
10958
10959 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10960
10961 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10962 written bytes.
10963 (grub_get_num_of_utf8_bytes): New function.
10964 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10965 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10966 executing it.
10967 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10968 (grub_ucs4_to_utf8): Change return type.
10969
10970 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10971
10972 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10973 warning.
10974 * grub-core/fs/bfs.c (hop_level): Likewise.
10975 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10976
10977 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10978
10979 * grub-core/lib/adler32.c: Recode due to license unclearness.
10980
10981 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10982
10983 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10984 (test_header): Likewise.
10985
10986 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10987
10988 Fix --help formatting.
10989
10990 * util/grub-mkconfig_lib.in (print_option_help): New function.
10991 (grub_fmt): Likewise.
10992 * util/grub-install.in: Use print_option_help and grub_fmt.
10993 * util/grub-kbdcomp.in: Likewise.
10994 * util/grub-mkconfig.in: Likewise.
10995 * util/grub-mknetdir.in: Likewise.
10996 * util/grub-mkrescue.in: Likewise.
10997 * util/grub-mkstandalone.in: Likewise.
10998 * util/grub-reboot.in: Likewise.
10999 * util/grub-set-default.in: Likewise.
11000 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11001
11002 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11003
11004 * linguas.sh: Remove autogenerated *.po.
11005
11006 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11007
11008 * po/README: Move language fetcing to ...
11009 * linguas.sh: ... here.
11010 * po/README: Point to linguas.sh.
11011
11012 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11013
11014 * po/README: Exclude ko.po due to disclaimer problems.
11015
11016 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11017
11018 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11019 len = 0.
11020 (grub_gettext_translate_real): Handle 0th string.
11021 (grub_gettext_translate): Ensure that "" isn't translated.
11022
11023 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11024
11025 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11026 TRANSLATORS comment.
11027 (grub_diskfilter_print_partmap): Propagate changing of error into
11028 warning.
11029
11030 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11031
11032 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11033 to uint64_t to prevent overflow.
11034 (grub_diskfilter_lv): Increase start_extent and extent_count
11035 to uint64_t to prevent overflow.
11036
11037 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11038
11039 * configure.ac: Increase version.
11040
11041 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11042
11043 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11044
11045 * po/Rules-translit: New file.
11046 * po/arabic.sed: Likewise.
11047 * po/cyrillic.sed: Likewise.
11048 * po/greek.sed: Likewise.
11049 * po/hebrew.sed: Likewise.
11050 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11051 * po/Makefile.in.in: Add extra_dist4.
11052
11053 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11054
11055 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11056
11057 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11058 modify names. Introduce MODE_BIGENDIAN.
11059 * grub-core/fs/minix_be.c: New file.
11060 * grub-core/fs/minix2_be.c: Likewise
11061 * grub-core/fs/minix3_be.c: Likewise.
11062 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11063 minix3_be.
11064 * grub-core/Makefile.core.def (minix_be): New module.
11065 (minix2_be): Likewise.
11066 (minix3_be): Likewise.
11067
11068 2012-04-01 Felix <email@hamburg.de>
11069
11070 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11071 (devs): Add MBP 2011.
11072
11073 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11074
11075 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11076
11077 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11078
11079 * grub-core/normal/cmdline.c (print_completion): New field
11080 prompt_len.
11081 (grub_cmdline_get): Handle width properly.
11082
11083 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11084
11085 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11086
11087 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11088
11089 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11090 after 29th of February.
11091
11092 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11093
11094 Fix exfat endianness handling.
11095
11096 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11097 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11098 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11099 Byte-swap utf16 when necessary.
11100 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11101
11102 2012-03-31 Anton Blanchard <anton@samba.org>
11103 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11104
11105 Fix btrfs endianness handling.
11106
11107 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11108 (lower_bound): Make root uint64_t. Use root in le.
11109 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11110 (find_path): Fix template key init.
11111 (grub_btrfs_dir): Fix mtime byteswap.
11112 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11113
11114 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11115
11116 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11117 recursion_depth. Break infinite resursions. All users updated.
11118
11119 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11120
11121 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11122 after free.
11123 Reported by: Peter Jones.
11124
11125 2012-03-31 Anton Blanchard <anton@samba.org>
11126
11127 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11128 8 bit values.
11129
11130 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11131
11132 * util/grub-install.in: Fix nvram call for PreP.
11133
11134 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11135
11136 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11137 the error when some elements are missing into a warning.
11138
11139 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11140
11141 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11142
11143 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11144
11145 * docs/grub.texi (Invoking grub-probe): New section.
11146 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11147
11148 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11149
11150 Fix tab and wide character handling in editor and menu.
11151
11152 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11153 agglomerate control characters with combining marks.
11154 (bidi_line_wrap): Allow break on tab.
11155 (grub_unicode_get_comb_start): New function.
11156 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11157 and tab correctly.
11158 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11159 with a space.
11160 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11161 fixed_tab_size. All users updated.
11162 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11163 (grub_term_getcharwidth): Handle \t.
11164 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11165 and copy.
11166
11167 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11168
11169 Handle big-endian mdraid.
11170
11171 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11172 * grub-core/Makefile.core.def (mdraid09_be): New module.
11173 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11174 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11175 * grub-core/disk/mdraid_linux_be.c: New file.
11176
11177 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11178
11179 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11180
11181 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11182
11183 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11184 missing quotes which caused confusion among translators.
11185
11186 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11187
11188 * util/grub-mkconfig_lib.in: Fix typo.
11189
11190 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11191
11192 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11193 spaces.
11194 * tests/grub_script_leading_whitespace.in: New file.
11195 * Makefile.util.def (grub_script_leading_whitespace): New test.
11196
11197 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11198
11199 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11200 to work.
11201
11202 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11205 starts with control character.
11206
11207 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11208
11209 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11210 overflow.
11211 (grub_gdb_outbuf): Likewise.
11212
11213 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11214
11215 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11216 zero terminator. Fixes a crash.
11217
11218 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11219
11220 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11221 beyond 4 GiB.
11222 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11223 images independently of preffered adderss field.
11224
11225 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11226
11227 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11228 * grub-core/commands/regexp.c: Likewise.
11229 * grub-core/loader/i386/linux.c: Likewise.
11230 * grub-core/partmap/msdos.c: Likewise.
11231 * grub-core/script/execute.c: Likewise.
11232 * grub-core/term/gfxterm.c: Likewise.
11233
11234 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11235
11236 Add variable parsing in $"..." and fix several mismatches with bash.
11237
11238 * Makefile.util.def (grub_script_gettext): New test.
11239 * grub-core/script/execute.c (parse_string): New function.
11240 (gettext_append): Likewise.
11241 (grub_script_arglist_to_argv): Use gettext_append.
11242 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11243 * tests/grub_script_gettext.in: New file.
11244
11245 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11246
11247 Fix handling of leading spaces in scripts.
11248
11249 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11250 spaces.
11251 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11252 other than skipping \r. All users updated.
11253 * tests/grub_script_echo1.in: Add space-related tests.
11254 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11255
11256 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11259
11260 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11261
11262 * configure.ac: Bump up the version to beta2.
11263
11264 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11265
11266 Fix gettext reload bugs (e.g. inability to disable gettext
11267 once enabled).
11268
11269 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11270 main_context and secondary_context. All functions updated.
11271 (grub_gettext_translate): Rename to ...
11272 (grub_gettext_translate_real): ... this. Return NULL on failed
11273 translate.
11274 (grub_gettext_translate): Handle secondary context.
11275 (grub_gettext_delete_list): Close file and zero-out the context.
11276 (grub_mofile_open): Don't call grub_gettext_delete_list.
11277 Don't close file.
11278 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11279 if locale="" to avoid pointless error message.
11280 (grub_gettext_env_write_lang): Update lang even if load fails.
11281 Handle secondary context.
11282 (grub_gettext_reread_prefix): New function.
11283 (read_main): Likewise.
11284 (read_secondary): Likewise.
11285 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11286 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11287 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11288 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11289
11290 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11291
11292 * configure.ac: Decrease warning level to avoid spurious warnings and
11293 to be able to compile with GCC 4.2.
11294 * Makefile.util.def: Remove -Wno-error=logical-op.
11295
11296 2012-03-10 William Bittner <william.bittner@gmail.com>
11297
11298 * util/import_unicode.py: Add missing brackets around string for
11299 python 3 support.
11300
11301 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11302
11303 Fix efi chainloader on network root.
11304
11305 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11306 network devices.
11307 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11308 New function.
11309
11310 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11311
11312 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11313 unused show_text member.
11314 * docs/grub.texi: Document "text" property.
11315
11316 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11317
11318 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11319 in dprintf.
11320
11321 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 Fix IMSM handling on Fedora.
11324
11325 * util/getroot.c (grub_util_is_imsm): New function.
11326 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11327
11328 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11329
11330 * Makefile.am: Strip gold section.
11331 * conf/Makefile.common: Likewise.
11332 * gentpl.py: Likewise.
11333 * grub-core/Makefile.core.def: Likewise.
11334 * grub-core/genmod.sh.in: Likewise.
11335
11336 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11337
11338 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11339 * util/grub.d/20_linux_xen.in: Likewise.
11340 Based on Debian patch.
11341
11342 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11343
11344 * util/grub.d/10_linux.in: Fix syntax error resulting in
11345 Richard Laager's patch.
11346 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11347
11348 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11349
11350 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11351 dependencies.
11352
11353 2012-03-10 Richard Laager <rlaager@wiktel.com>
11354
11355 * util/grub.d/10_linux.in: Fix ZFS root passing.
11356
11357 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11358
11359 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11360 * grub-core/commands/xnu_uuid.c: Likewise.
11361 * grub-core/loader/efi/appleloader.c: Likewise.
11362 * grub-core/script/execute.c: Likewise.
11363 * grub-core/script/main.c: Likewise.
11364 * util/grub-mkfont.c: Likewise.
11365
11366 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11367
11368 * util/grub-mkfont.c (options): Use more appropriate "select" that
11369 "set" for face index.
11370
11371 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11372
11373 * util/grub-editenv.c (options): Gettextize command summaries.
11374
11375 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11376
11377 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11378 "out of memory" error messagge.
11379
11380 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11381
11382 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11383 of diskfilter for diskfilter on diskfilter support.
11384
11385 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11386
11387 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11388
11389 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11390
11391 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11392 themes/starfield.
11393
11394 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11395
11396 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11397
11398 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11399
11400 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11401
11402 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11403
11404 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11405 of error message.
11406
11407 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11408
11409 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11410
11411 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11412
11413 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11414 message.
11415 * util/grub-install.in: Fix and gettextize error message.
11416
11417 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11418
11419 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11420 Gettextize.
11421 * util/grub-mount.c (options): Likewise.
11422
11423 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11424
11425 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11426 gettextize.
11427 * grub-core/commands/search_wrap.c (options): Likewise.
11428
11429 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11430
11431 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11432
11433 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11434
11435 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11436 size calculation.
11437 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11438 none is known.
11439
11440 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11441
11442 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11443 "temporary" since it's used in identifier and is limited in space.
11444
11445 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11446
11447 * po/POTFILES.in: Regenerate. Include *.h since they contain
11448 translatable strings as well.
11449
11450 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11451
11452 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11453 byte-swap on big-endian.
11454 Reported by: Lennart Sorensen
11455
11456 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11457
11458 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11459 (allocate_pages): Improve dprintf.
11460 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11461 code32_start. Fill code32_start and kernel_alignment in params.
11462 (grub_cmd_initrd): Use prot_init_space.
11463
11464 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11465
11466 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11467
11468 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11469
11470 * util/grub-install.in: Add missing dot at the end of sentence.
11471
11472 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11475 * grub-core/commands/videotest.c: Likewise.
11476 * grub-core/loader/i386/linux.c: Likewise.
11477
11478 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11479
11480 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11481 sentence.
11482 Reported by: Milo Casagrande.
11483
11484 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11485
11486 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11487 * grub-core/commands/gptsync.c: Likewise.
11488 * grub-core/commands/hashsum.c: Likewise.
11489 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11490 * grub-core/commands/legacycfg.c: Likewise.
11491 * grub-core/io/gzio.c: Likewise.
11492 * grub-core/net/net.c: Likewise.
11493 * grub-core/term/gfxterm.c: Likewise.
11494 * grub-core/term/terminfo.c: Likewise.
11495 * grub-core/tests/test_blockarg.c: Likewise.
11496 * grub-core/video/video.c: Likewise.
11497 * util/grub-install.in: Likewise.
11498 * util/grub-mkfont.c: Likewise.
11499
11500 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11501
11502 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11503
11504 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11505
11506 * grub-core/commands/search_wrap.c (options): Fix a typo.
11507 Reported by: David Prévot.
11508
11509 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11510
11511 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11512 description.
11513
11514 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11515
11516 * util/grub-script-check.c (main): Fix a syntax error message which was
11517 unclear.
11518
11519 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11520
11521 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11522
11523 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11524
11525 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11526 messages.
11527
11528 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11529
11530 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11531 without argument.
11532 * util/grub-mount.c (options): Likewise.
11533
11534 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11535
11536 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11537
11538 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11539
11540 * grub-core/net/http.c: Add TRANSLATORS comments.
11541 * grub-core/normal/cmdline.c: Likewise.
11542 * grub-core/normal/misc.c: Likewise.
11543 * grub-core/partmap/msdos.c: Likewise.
11544 * grub-core/parttool/msdospart.c: Likewise.
11545 * grub-core/script/execute.c: Likewise.
11546 * grub-core/script/main.c: Likewise.
11547 * grub-core/term/terminfo.c: Likewise.
11548 * grub-core/video/bitmap.c: Likewise.
11549 * util/grub-install.in: Likewise.
11550 * util/grub-mkimage.c: Likewise.
11551 * util/grub-mklayout.c: Likewise.
11552 * util/grub-setup.c: Likewise.
11553
11554 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11555
11556 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11557 with similar messages in grub-fstest.
11558
11559 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11560
11561 * util/grub-install.in: Unify "option requires an argument" message
11562 with similar messages in other files.
11563 * util/grub-mkconfig.in: Likewise.
11564
11565 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11566
11567 * util/grub-set-default.in: Replace printf with gettext_printf (the
11568 string in in question is already translated from grub-reboot)
11569
11570 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11571
11572 * configure.ac: Bump up the version to beta1.
11573
11574 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11575
11576 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11577 case when min_align = 0.
11578
11579 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11580
11581 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11582 and fix a case when line_start overflows.
11583
11584 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11585
11586 * util/grub-reboot.in (usage): Mention id posibility.
11587 * util/grub-set-default.in (usage): Likewise.
11588
11589 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11590
11591 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11592 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11593 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11594 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11595 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11596 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11597 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11598
11599 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11600
11601 * grub-core/commands/menuentry.c (options): Remove
11602 GRUB_ARG_OPTION_REPEATABLE.
11603 Reported by: Andreas Vogel
11604
11605 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11606
11607 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11608
11609 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11610
11611 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11612 error.
11613
11614 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11615
11616 Use sort -V by the idea of Georgi Georgiev.
11617
11618 * util/grub-mkconfig_lib.in (version_sort): New function.
11619 (version_test_numeric): Use version_sort.
11620
11621 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11622
11623 Use submenus in grub-mkconfig.
11624
11625 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11626 * util/grub-mkconfig_lib.in (grub_quote): New function.
11627 (gettext_printf): Use gettext and not gettext_quoted to fix several
11628 messages.
11629 * util/grub.d/10_hurd.in: Use submenus.
11630 * util/grub.d/10_kfreebsd.in: Likewise.
11631 * util/grub.d/10_linux.in: Likewise.
11632 * util/grub.d/10_netbsd.in: Likewise.
11633 * util/grub.d/20_linux_xen.in: Likewise.
11634 * util/grub.d/30_os-prober.in: Likewise.
11635 * util/grub.d/10_illumos.in: Add missing quoting.
11636 * util/grub.d/10_windows.in: Likewise.
11637
11638 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11639
11640 Fix menu title instability bug.
11641
11642 * grub-core/commands/menuentry.c (options): New option --id.
11643 (grub_normal_add_menu_entry): New argument id. All users updated.
11644 (grub_cmd_menuentry): Handle --id.
11645 (grub_menu_init): Accept unknown arguments.
11646 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11647 feature_menuentry_options.
11648 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11649 saved_entry.
11650 (get_entry_number): Match with id as well.
11651 * include/grub/menu.h (grub_menu_entry): New member id.
11652 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11653 * util/grub.d/00_header.in: Define menuentry_id_option.
11654 * util/grub.d/10_hurd.in: Define id.
11655 * util/grub.d/10_illumos.in: Likewise.
11656 * util/grub.d/10_kfreebsd.in: Likewise.
11657 * util/grub.d/10_linux.in: Likewise.
11658 * util/grub.d/10_netbsd.in: Likewise.
11659 * util/grub.d/10_windows.in: Likewise.
11660 * util/grub.d/20_linux_xen.in: Likewise.
11661 * util/grub.d/30_os-prober.in: Likewise.
11662
11663 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11664
11665 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11666 "scope" with "body".
11667
11668 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11669
11670 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11671 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11672 prot_size and prot_file_size.
11673
11674 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11675
11676 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11677 All users updated. If easily=1 require raid-5/-6 to be full.
11678 (is_node_readable): Likewise.
11679 (scan_devices): Scan incomplete but readable LVs at the end.
11680 (grub_diskfilter_memberlist): Pull missing devices.
11681 (insert_array): Skip scanning until device is complete or scan is
11682 done otherwise.
11683 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11684 check.
11685 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11686 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11687
11688 2012-03-03 Matthew Garrett <mjg@redhat.com>
11689 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11690
11691 Avoid EFI boot services when loading Linux.
11692
11693 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11694 avoid_efi_bootservices. All users updated.
11695 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11696 argument avoid_efi_bootservices. All users updated.
11697 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11698 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11699 align, min_align, relocatable, prefered_address. All users updated.
11700 Allocate avoiding boot services if kernel is relocatable.
11701 (grub_cmd_linux): Check if kernel is relocatable.
11702 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11703 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11704 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11705 avoid_efi_boot_services.
11706 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11707 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11708 (linux_kernel_params): Likewise.
11709
11710 2012-03-03 Matthew Garrett <mjg@redhat.com>
11711 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 Use EDID on EFI.
11714
11715 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11716 datasize_out.
11717 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11718 modes. Set gop_handle.
11719 (grub_video_gop_get_edid): New function.
11720 (grub_gop_get_preferred_mode): Likewise.
11721 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11722 (grub_video_efi_gop_adapter): Set .get_edid.
11723 * include/grub/efi/edid.h: New file.
11724 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11725
11726 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11727
11728 * util/grub-install.in: Load efivars unconditionally.
11729
11730 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11731
11732 * po/Rules-piglatin: Change suffix from .po-update-en to
11733 .po-update-en-piglatin.
11734
11735 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11736
11737 Add a pig farm.
11738
11739 * po/piglatin.sed: New file.
11740 * po/en@piglatin.header: Likewise.
11741 * po/Rules-piglatin: Likewise.
11742 * po/README: Add en@piglatin to autogenerated languages.
11743
11744 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11745
11746 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11747 "Command for ...".
11748 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11749 "Check" since we don't check anything.
11750 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11751 is 64-bit one.
11752 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11753 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11754 (grub_md_sha512_real): Likewise.
11755
11756 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11757
11758 * grub-core/commands/gptsync.c: Fix typographic quoting.
11759 * grub-core/commands/ieee1275/suspend.c: Likewise.
11760 * grub-core/commands/parttool.c: Likewise.
11761 * grub-core/commands/search_wrap.c: Likewise.
11762 * grub-core/commands/videoinfo.c: Likewise.
11763 * grub-core/gfxmenu/gui_label.c: Likewise.
11764 * grub-core/hello/hello.c: Likewise.
11765 * grub-core/kern/emu/main.c: Likewise.
11766 * grub-core/net/net.c: Likewise.
11767 * grub-core/normal/menu.c: Likewise.
11768 * grub-core/normal/menu_text.c: Likewise.
11769 * grub-core/normal/misc.c: Likewise.
11770 * util/grub-editenv.c: Likewise.
11771 * util/grub-install.in: Likewise.
11772 * util/grub-kbdcomp.in: Likewise.
11773 * util/grub-mkconfig.in: Likewise.
11774 * util/grub-mknetdir.in: Likewise.
11775 * util/grub-mkrescue.in: Likewise.
11776 * util/grub-mkstandalone.in: Likewise.
11777 * util/grub-reboot.in: Likewise.
11778 * util/grub-set-default.in: Likewise.
11779 * util/grub-setup.c: Likewise.
11780 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11781
11782 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11783
11784 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11785 * grub-core/commands/keystatus.c: Likewise.
11786 * grub-core/commands/loadenv.c: Likewise.
11787 * grub-core/commands/probe.c: Likewise.
11788 * grub-core/commands/regexp.c: Likewise.
11789 * grub-core/commands/true.c: Likewise.
11790 * grub-core/commands/videoinfo.c: Likewise.
11791 * grub-core/disk/cryptodisk.c: Likewise.
11792 * grub-core/disk/ldm.c: Likewise.
11793 * grub-core/disk/loopback.c: Likewise.
11794 * grub-core/disk/luks.c: Likewise.
11795 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11796 * grub-core/kern/disk.c: Likewise.
11797 * grub-core/kern/emu/hostdisk.c: Likewise.
11798
11799 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11800
11801 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11802 * util/grub-install.in: Add missing quote in the comment.
11803
11804 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11805
11806 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11807 * grub-core/commands/lsmmap.c: Likewise.
11808 * grub-core/commands/minicmd.c: Likewise.
11809 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11810 * grub-core/commands/regexp.c: Likewise.
11811 * grub-core/gdb/gdb.c: Likewise.
11812 * grub-core/term/gfxterm.c: Likewise.
11813 * util/grub-mkconfig.in: Likewise.
11814 * util/grub-mkfont.c: Likewise.
11815 * util/grub-mklayout.c: Likewise.
11816 * util/grub-mknetdir.in: Likewise.
11817 * util/grub-mkrescue.in: Likewise.
11818 * util/grub.d/30_os-prober.in: Likewise.
11819
11820 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11821
11822 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11823 with "Direct color" and "Packed" with "Packed pixel".
11824 (grub_cmd_videoinfo): Simplify legend.
11825
11826 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11827
11828 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11829 absolutely unclear error message.
11830
11831 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11832
11833 * util/grub-mkstandalone.in: Remove confusing leftover print.
11834
11835 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11836
11837 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11838 comments.
11839 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11840 (GRUB_MOD_INIT): Likewise.
11841 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11842 VGA mode.
11843 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11844 comments.
11845 * util/grub-install.in (usage): Likewise.
11846 Spell ID in whole letters.
11847 Add missing ending dot.
11848 Quote variables.
11849 * util/grub-reboot.in: Fix capitalisation.
11850 * util/grub-set-default.in: Likewise.
11851
11852 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11853
11854 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11855 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11856 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11857 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11858 Disable -Werror for -Wdeprecated-declarations.
11859 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11860 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11861 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11862 (grub_util_get_grub_dev): Make luks handling dependent on
11863 HAVE_DEVICE_MAPPER and not __linux__.
11864 (get_win32_path): Fix format security.
11865 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11866 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11867 Don't try grub_find_zpool_from_dir.
11868 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11869 #ifdef-out paresdir.
11870
11871 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11872
11873 * util/grub-pe2elf.c (usage): Add missing noreturn.
11874 (write_section_data): Rename name to shname to avoid shadowing.
11875 (write_symbol_table): Rename name to symname to avoid shadowing.
11876 Fix write_reloc_section call.
11877
11878 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11879
11880 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11881 to ensure that it's after the last byte of .text.
11882
11883 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11884
11885 * util/ieee1275/ofpath.c (my_isdigit): New function.
11886 (trailing_digits): Use my_isdigit.
11887 (strip_trailing_digits): Likewise.
11888
11889 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11890
11891 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11892 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11893
11894 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11895
11896 * grub-core/kern/i386/pc/startup.S: Define __start.
11897
11898 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11899
11900 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11901 strip already transforms he format.
11902
11903 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11904
11905 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11906
11907 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11908
11909 * util/grub-install.in: Add missing gettext init.
11910 * util/grub-kbdcomp.in: Likewise.
11911 * util/grub-mkconfig.in: Likewise.
11912 * util/grub-mknetdir.in: Likewise.
11913 * util/grub-mkrescue.in: Likewise.
11914 * util/grub-mkstandalone.in: Likewise.
11915 * util/grub-reboot.in: Likewise.
11916 * util/grub-set-default.in: Likewise.
11917 * util/grub.d/00_header.in: Likewise.
11918 * util/grub.d/10_hurd.in: Likewise.
11919 * util/grub.d/10_windows.in: Likewise.
11920 * util/grub.d/30_os-prober.in: Likewise.
11921 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11922
11923 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11924
11925 * po/Rules-swiss: Fix header comment.
11926
11927 2012-02-29 Andreas Vogel <anvoit>
11928
11929 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11930 resulted in leak of arguments.
11931
11932 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11933
11934 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11935 reed_solomon_size const definition instead of computing it since
11936 Apple assembler doesn't support the later.
11937
11938 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11939
11940 * gentpl.py (kernel): Rewrite Apple part.
11941
11942 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11943
11944 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11945
11946 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11947
11948 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11949 ELF section gap.
11950 (load_image): Likewise.
11951
11952 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11953
11954 * configure.ac: Fix a typo in previous commit.
11955
11956 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11957
11958 Don't add -Wl,-N on Apple platform.
11959
11960 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11961 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11962
11963 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11964
11965 * grub-core/Makefile.core.def (lzma_decompress): Use
11966 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11967
11968 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11969
11970 * grub-core/genmod.sh.in: Rewrite the Apple part.
11971
11972 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11973
11974 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11975 comparison.
11976
11977 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11978
11979 * acinclude.m4 (grub_CHECK_PIC): New test.
11980 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11981
11982 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11983
11984 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11985 to avoid the warning.
11986
11987 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11988
11989 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11990 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11991 after. All users updated.
11992
11993 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11994
11995 Use the common size routine in hostfs so we can read disks as well.
11996
11997 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11998 (grub_util_get_fd_size): ... this. Return size in bytes.
11999 All users updated.
12000 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12001 grub_util_get_fd_size.
12002
12003 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12004
12005 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12006 Add blocksize retrieval.
12007
12008 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12009
12010 * configure.ac: Restore CFLAGS after efiemu check.
12011
12012 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12013
12014 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12015 Apple bug.
12016
12017 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12018
12019 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12020
12021 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12022
12023 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12024 (grub_cmd_halt): Likewise.
12025
12026 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12027
12028 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12029 for local arithmetics.
12030 Break %sp init into 2 instructions.
12031 Add 0 byte at the end.
12032
12033 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12034
12035 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12036 before loops.
12037
12038 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12039
12040 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12041 for context.
12042
12043 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12044
12045 * grub-core/disk/ldm.c (make_vg): Init part.name.
12046 (grub_ldm_detect): Silence spurious warning.
12047 (grub_util_is_ldm): Likewise.
12048
12049 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12050
12051 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12052 sane value to avoid a spurious warning.
12053
12054 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12055
12056 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12057 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12058
12059 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12060
12061 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12062 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12063
12064 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12065
12066 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12067 hardcoding the relevant info.
12068
12069 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12070
12071 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12072 missing const qualifiers.
12073 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12074
12075 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12076
12077 * util/getroot.c [__APPLE__]: Add missing includes.
12078 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12079
12080 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12081
12082 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12083
12084 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12085
12086 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12087 avoid conflicts.
12088
12089 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12090
12091 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12092
12093 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12094
12095 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12096 and grub_file_close call.
12097
12098 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12099
12100 Add LZSS Mach-O support (needed for new xnu kernelcache).
12101
12102 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12103 * grub-core/loader/lzss.c: New file.
12104 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12105 on Mach-O open failure.
12106 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12107 Don't free cmdsXX in uncompressedXX is set.
12108 (grub_macho_file): Init new fields.
12109 New argument is_64bit. All users updated.
12110 Handle compressed. Error out if no suitable architecture is found.
12111 Don't close file.
12112 (grub_macho_open): New argument is_64bit. All users updated.
12113 * grub-core/loader/macho32.c: Add defines for new fields.
12114 * grub-core/loader/macho64.c: Likewise.
12115 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12116 (grub_macho_parse): Handle compressed.
12117 Defer actual processing if compressed.
12118 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12119 "filename". All users updated.
12120 (grub_macho_size): New argument "filename". All users updated.
12121 (grub_macho_get_entry_point): Likewise.
12122 (grub_macho_load): Handle compressed.
12123 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12124 (GRUB_MACHO_LZSS_OFFSET): New define.
12125 (grub_decompress_lzss): New proto.
12126 * include/grub/machoload.h (grub_macho_file): New fields to handle
12127 compressed.
12128 (grub_macho_contains_macho64): Remove proto.
12129 (grub_macho_contains_macho32): Likewise.
12130 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12131
12132 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12135
12136 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12137
12138 Fix make dist.
12139
12140 * Makefile.am (starfield_theme_files): New var.
12141 (starfield_DATA): Use starfield_theme_files.
12142 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12143 Add bootcheck-related files.
12144 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12145 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12146 and font_char_metrics.txt.
12147 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12148 (setjmp): Add lib/ia64/longjmp.S.
12149 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12150 * po/POTFILES.in: Regenerate.
12151 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12152 DISTFILES.common.extra1.
12153 * util/devicemap.c: Removed.
12154 * grub-core/lib/i386/relocator_backward.S: Likewise.
12155 * util/import_gcry.py: Remove unused files. Add extra_dist for
12156 ChangeLog.
12157
12158 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12159
12160 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12161 grub_gettext_delete_list before changing grub_gettext_max to avoid
12162 running out of array bounds.
12163
12164 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12165
12166 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12167 grub_vga_text_init/grub_vga_text_fini.
12168
12169 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12170
12171 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12172
12173 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12174
12175 * configure.ac: Bump to 2.00~beta0.
12176
12177 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12178
12179 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12180 missing initialisation.
12181
12182 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12183
12184 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12185
12186 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12187
12188 Support v2 xnu boot arguments.
12189
12190 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12191 New argument fsbfreq_out.
12192 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12193 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12194 be used.
12195 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12196 darwin_version.
12197 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12198 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12199 (grub_xnu_boot_params): Rename to ...
12200 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12201 (grub_xnu_boot_params_v2): New struct.
12202
12203 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12204
12205 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12206 zeroing of CRC field before computing CRC.
12207
12208 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12209
12210 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12211 Change order of allocations to decrease fragmentation.
12212
12213 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12214
12215 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12216
12217 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12218
12219 Use write-combining MTRR to speed up video with buggy BIOSes.
12220
12221 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12222 (cpuid): New define.
12223 (rdmsr): Likewise.
12224 (wrmsr): Likewise.
12225 (mtrr_base): Likewise.
12226 (mtrr_mask): Likewise.
12227 (grub_vbe_enable_mtrr_entry): New function.
12228 (grub_vbe_enable_mtrr): Likewise.
12229 (grub_vbe_disable_mtrr): Likewise.
12230 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12231 control off to BIOS.
12232 (grub_video_vbe_init): Fill mtrr.
12233 (grub_video_vbe_fini): Disable mtrr.
12234 (grub_video_vbe_get_info_and_fini): Likewise.
12235 (grub_video_vbe_setup): Enable mtrr.
12236
12237 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12238
12239 * include/grub/partition.h (grub_partition_map): Change prototype of
12240 embed to take a maximum value for nsectors.
12241 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12242 * include/grub/fs.h (grub_fs): Likewise.
12243 * grub-core/partmap/msdos.c (embed_signatures): New array.
12244 (pc_partition_map_embed): Check for and avoid sectors matching any
12245 of the signatures in embed_signatures, up to max_nsectors.
12246 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12247 returned sector map to max_nsectors.
12248 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12249 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12250 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12251 * util/grub-setup.c (setup): Allow for the embedding area being
12252 split into multiple blocklists. Tell dest_partmap->embed the
12253 maximum number of sectors we care about.
12254
12255 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12256
12257 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12258 Specify blocklist_install and reserver_first_sector for all fs.
12259 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12260 blocklists.
12261
12262 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12263
12264 * util/grub-install.in: Clarify strings.
12265 Fix source dir check.
12266
12267 2012-02-27 Richard Laager <rlaager@wiktel.com>
12268
12269 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12270 "zfs" and "fuse.zfs" as synonyms.
12271
12272 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12273
12274 * configure.ac: Put platform and target_cpu substitutions back since
12275 they are used for directories.
12276
12277 2012-02-27 Richard Laager <rlaager@wiktel.com>
12278 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12279
12280 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12281 * util/grub.d/20_linux_xen.in: Likewise.
12282
12283 2012-02-27 Richard Laager <rlaager@wiktel.com>
12284
12285 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12286 with full paths.
12287
12288 2012-02-27 Richard Laager <rlaager@wiktel.com>
12289
12290 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12291 unescape.
12292
12293 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12294
12295 Don't use insecure popen in getroot.
12296
12297 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12298 (exec_pipe): ... here.
12299 (find_root_devices_from_poolname): Use exec_pipe.
12300
12301 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12302
12303 Remove platform and target_cpu replacement.
12304
12305 * configure.ac: Remove platform and target_cpu substitutions.
12306 * tests/util/grub-shell.in: Use modinfo.
12307 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12308 explicitly.
12309
12310 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12311
12312 Autodetect platform in grub-install but allow override.
12313
12314 * util/grub-install.in: Autodetect platform. Support --target and
12315 --directory. Read platform from modinfo.sh.
12316
12317 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12318
12319 Support btrfs multi-volume probe.
12320
12321 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12322 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12323 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12324 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12325 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12326 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12327 grub_find_root_devices_from_btrfs if on btrfs.
12328
12329 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12330
12331 Remove any awareness of *.c util files about target.
12332
12333 * Makefile.util.def (grub-setup): Split to ...
12334 (grub-bios-setup): ... and this.
12335 (grub-sparc64-setup): ... and this.
12336 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12337 * docs/man/grub-setup.h2m: Split into ...
12338 * docs/man/grub-sparc64-setup.h2m: ... this.
12339 * docs/man/grub-bios-setup.h2m: ... and this.
12340 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12341 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12342 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12343 (grub_target_addr_t): Remove.
12344 (grub_target_size_t): Remove.
12345 (grub_target_ssize_t): Remove.
12346 * util/grub-install.in: Use new grub-*-setup.
12347 * util/grub-mkimagexx.c (Elf_Word): New define.
12348 (Elf_Half): Likewise.
12349 (Elf_Section): Likewise.
12350 (ELF_ST_TYPE): Likewise.
12351 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12352 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12353
12354 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12355
12356 Replace grub_target_addr with more appropriate types.
12357
12358 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12359 grub_target_addr with grub_addr.
12360 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12361 grub_target_addr with grub_port.
12362 (grub_cmd_write): Likewise.
12363 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12364 grub_target_addr with grub_addr.
12365 (grub_cmd_write): Likewise.
12366 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12367
12368 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12369
12370 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12371 const qualifier for vendor_guid.
12372
12373 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12374
12375 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12376 const qualifier.
12377 (efiemu_memequal): Likewise.
12378 (find_variable): Likewise.
12379
12380 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12381
12382 Fix missing console prototype on qemu-mips.
12383
12384 * include/grub/mips/qemu_mips/console.h: New file.
12385
12386 2012-02-27 Matthew Garrett <mjg@redhat.com>
12387 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12388
12389 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12390 * include/grub/efi/efi.h: Likewise.
12391 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12392 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12393 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12394 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12395 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12396 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12397
12398 2012-02-27 Matthew Garrett <mjg@redhat.com>
12399
12400 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12401
12402 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12403
12404 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12405 error.
12406
12407 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12408
12409 * configure.ac: Remove inappropriate use of program_transform_name
12410 on grubdir and bootdir but allow explicit specification of those
12411 variables.
12412
12413 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12414
12415 * util/grub-mknetdir.in (grub_prefix): Removed.
12416 (subdir): Use @bootdirname@ and @grubdirname@.
12417
12418 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12419
12420 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12421
12422 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12423
12424 * po/POTFILES.in: Regenerated.
12425
12426 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12427
12428 Remove improper use of program_transform_name on pkglibrootdir.
12429
12430 * configure.ac (pkglibrootdir): Removed.
12431 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12432 * util/grub-mkimage.c: Likewise.
12433
12434 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12435
12436 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12437 warning.
12438
12439 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12440
12441 * util/grub-install.in: Use file identifier if no UUID is available
12442 or user explicitly prompted for it.
12443
12444 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12445
12446 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12447 (freebsd_get_zfs): New function.
12448 (grub_freebsd_boot): Pass zfs UUID.
12449 (grub_cmd_freebsd): Set zfs UUID.
12450
12451 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12452
12453 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12454 pkglibrootdir.
12455
12456 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12457
12458 Add configure flag to control libzfs integration.
12459
12460 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12461
12462 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12463
12464 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12465 device.
12466 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12467 small devices.
12468
12469 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12470
12471 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12472 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12473 be used on non-modules.
12474
12475 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12476 Rename to grub_boot_init.
12477 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12478 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12479 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12480 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12481 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12482 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12483 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12484 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12485 includes.
12486 (grub_machine_init): Remove empty inits.
12487 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12488 includes.
12489 (grub_machine_init): Remove empty inits.
12490 * grub-core/term/arc/console.c: Remove explicit proto.
12491 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12492 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12493 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12494 grub_at_keyboard_fini.
12495 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12496 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12497 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12498 grub_gfxterm_fini.
12499 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12500 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12501 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12502 grub_vgatext_fini.
12503 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12504 * grub-core/term/serial.c (GRUB_MOD_INIT)
12505 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12506 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12507 grub_serial_fini.
12508 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12509 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12510 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12511 grub_terminfo_fini.
12512 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12513 (GRUB_MOD_FINI): Likewise.
12514 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12515 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12516 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12517 grub_video_radeon_fuloong2e_fini.
12518 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12519 [LOONGSON]: Rename to grub_video_sis315pro_init.
12520 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12521 grub_video_sis315pro_fini.
12522 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12523 [LOONGSON]: Rename to grub_video_sm712_init.
12524 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12525 grub_video_sm712_fini.
12526 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12527 (grub_at_keyboard_fini): Likewise.
12528 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12529 Don't declare grub_{modname}_init.
12530 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12531 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12532 New proto.
12533 (grub_keylayouts_fini) [!EMU]: Likewise.
12534 * include/grub/serial.h (grub_serial_init) [!EMU]:
12535 New proto.
12536 (grub_serial_fini) [!EMU]: Likewise.
12537 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12538 New proto.
12539 (grub_terminfo_fini) [!EMU]: Likewise.
12540 * include/grub/video.h (grub_font_init) [!EMU]:
12541 New proto.
12542 (grub_font_fini) [!EMU]: Likewise.
12543 (grub_gfxterm_init) [!EMU]: Likewise.
12544 (grub_gfxterm_fini) [!EMU]: Likewise.
12545 (grub_video_sm712_init) [!EMU]: Likewise.
12546 (grub_video_sm712_fini) [!EMU]: Likewise.
12547 (grub_video_sis315pro_init) [!EMU]: Likewise.
12548 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12549 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12550 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12551
12552 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12553
12554 Make nand a prefix for nand devices.
12555
12556 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12557
12558 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12559
12560 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12561 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12562
12563 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12564
12565 * include/grub/env.h (grub_env_find): Remove prototype.
12566 * grub-core/kern/env.c (grub_env_find): Make static.
12567 (grub_env_set): Remove useless set.
12568
12569 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12570
12571 * grub-core/kern/i386/realmode.S: Remove useless align.
12572
12573 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12574
12575 * include/grub/dl.h (grub_dl_load_file): Don't export.
12576
12577 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12578
12579 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12580 grub_dprintf.
12581
12582 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12583
12584 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12585 grub_errors.
12586 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12587 not reloading whole superblock but only the part which is really needed.
12588 Remove useless grub_errors.
12589 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12590 grub_errors.
12591
12592 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12593
12594 Don't export grub_get_rtc.
12595
12596 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12597 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12598
12599 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12600
12601 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12602
12603 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12604
12605 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12606 argument since it can be deduced from diskfilter. All users updated.
12607
12608 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12609
12610 Remove prio_list.
12611
12612 * include/grub/list.h (grub_prio_list): Removed.
12613 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12614 GRUB_COMMAND_PRIO_MASK.
12615 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12616 GRUB_COMMAND_FLAG_ACTIVE.
12617 (grub_prio_list_insert): Removed.
12618 (grub_prio_list_remove): Likewise.
12619 (GRUB_AS_PRIO_LIST): Likewise.
12620 (GRUB_AS_PRIO_LIST_P): Likewise.
12621 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12622 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12623 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12624 * grub-core/kern/command.c (grub_register_command_prio): Inline
12625 the prio_list code.
12626 (grub_unregister_command): Likewise.
12627
12628 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12629
12630 Fix interrupt mixup from previous commit.
12631
12632 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12633 (grub_realidt): New var.
12634 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12635 Load idt.
12636 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12637 New declaration.
12638 (grub_relocator16_boot): Set grub_relocator16_idt.
12639 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12640 (LOCAL(realidt)): ... this.
12641 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12642 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12643 (grub_realidt): New variable.
12644
12645 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12646
12647 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12648 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12649 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12650 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12651 Gettextize.
12652 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12653 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12654 * po/POTFILES.in: Regenerate.
12655
12656 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12657
12658 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12659 errors.
12660
12661 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12662
12663 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12664 \0.
12665 (add_length): Likewise.
12666
12667 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12668 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12669
12670 GDB serial and backtrace support.
12671
12672 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12673 (prot_to_real): Likewise.
12674 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12675 * grub-core/Makefile.core.def (backtrace): New module.
12676 (gdb): Likewise.
12677 * grub-core/gdb/cstub.c: New file.
12678 * grub-core/gdb/gdb.c: Likewise.
12679 * grub-core/gdb/i386/idt.c: Likewise.
12680 * grub-core/gdb/i386/machdep.S: Likewise.
12681 * grub-core/gdb/i386/signal.c: Likewise.
12682 * grub-core/lib/i386/backtrace.c: Likewise.
12683 * grub-core/lib/backtrace.c: Likewise.
12684 * include/grub/backtrace.h: Likewise.
12685 * include/grub/gdb.h: Likewise.
12686 * include/grub/i386/gdb.h: Likewise.
12687
12688 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12689
12690 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12691 New function.
12692 (add_length): Likewise.
12693 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12694 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12695 proto.
12696 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12697 __argp_get_display_len.
12698
12699 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12700
12701 $"..." support in scripts.
12702
12703 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12704 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12705 * grub-core/script/yylex.l: Likewise.
12706 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12707 value.
12708
12709 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12710
12711 * gentpl.py: Remove obsolete pkglib_DATA handling.
12712
12713 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12714
12715 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12716 mailing list.
12717
12718 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12719 * util/grub-kbdcomp.in: Likewise.
12720 * util/grub-mkconfig.in: Likewise.
12721 * util/grub-mkconfig_lib.in: Likewise.
12722 * util/grub-mknetdir.in: Likewise.
12723 * util/grub-mkrescue.in: Likewise.
12724 * util/grub-mkstandalone.in: Likewise.
12725 * util/grub-reboot.in: Likewise.
12726 * util/grub-set-default.in: Likewise.
12727 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12728
12729 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12730
12731 Remove GRUB_PREFIX.
12732
12733 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12734 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12735 used for backward compatibility.
12736
12737 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12738
12739 Add new all_video module.
12740
12741 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12742 * grub-core/Makefile.core.def (all_video): New module.
12743 * grub-core/genmoddep.awk: Generate dependency of all_video from
12744 video.lst.
12745 * grub-core/lib/fake_module.c: New file.
12746 * grub-core/normal/main.c (features): Add feature_all_video_module.
12747 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12748 don't do explicit search again.
12749 insmod all_video in load_video if available.
12750
12751 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12752
12753 Another round of string clarification and adding TRANSLATORS comments.
12754
12755 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12756
12757 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12758
12759 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12760
12761 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12762 to grub_ssize_t.
12763 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12764 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12765
12766 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12767
12768 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12769 trailing newline implicitly. All users updated.
12770
12771 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12772
12773 Implement serial on IEEE1275 and EFI.
12774
12775 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12776 on emu. Mention arc and emu as the only platforms without serial
12777 support.
12778 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12779 ieee1275 platforms.
12780 * grub-core/term/efi/serial.c: New file.
12781 * grub-core/term/ieee1275/serial.c: Likewise.
12782 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12783 specification if no ns8250 driver is available.
12784 (grub_cmd_serial): Likewise.
12785 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12786 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12787 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12788 (grub_efi_parity_type_t): New type.
12789 (grub_efi_stop_bits_t): Likewise.
12790 (grub_efi_serial_io_interface): New struct.
12791 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12792 available for all interfaces.
12793 Add EFI and IEEE1275 fields.
12794 (grub_ofserial_init): New proto.
12795 (grub_efiserial_init): Likeiwse.
12796 * util/grub.d/00_header.in: Don't check for the presence of serial
12797 module.
12798
12799 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12800
12801 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12802 name as if it was an alias.
12803
12804 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12805
12806 * grub-core/commands/lsacpi.c (options): Fix typo.
12807
12808 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 Convert grub-emu to argp.
12811
12812 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12813 emu.
12814 * util/argp_common.c: Rename to ...
12815 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12816 Add missing includes.
12817 * grub-core/kern/emu/main.c: Convert to argp.
12818 * po/POTFILES.in: Regenerate.
12819 * util/grub-install.in (usage): Make first letter lowcase in messages
12820 for uniformity.
12821 * util/grub-setup.c (options): Likewise.
12822
12823 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12824
12825 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12826 Put back accidently commented-out code.
12827
12828 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12829
12830 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12831 loop check using Brent algorithm.
12832 (grub_hfsplus_btree_search): Likewise.
12833
12834 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12835
12836 * util/grub-install.in: Fix usage of wrong device for PreP install.
12837
12838 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12839
12840 * conf/Makefile.common (CFLAGS_GNULIB): Add
12841 -Wno-unsafe-loop-optimizations.
12842 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12843 on tools.
12844 * grub-core/commands/legacycfg.c: Add pragma to skip
12845 -Wunsafe-loop-optimizations.
12846 (check_password_md5_real): Fix loop counter type.
12847 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12848 reading.
12849 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12850 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12851 loop condition.
12852 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12853 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12854 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12855 condition.
12856 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12857 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12858 avoid possible infinite loops.
12859 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12860 and -Wunsafe-loop-optimizations.
12861 * grub-core/script/yylex.l: Likewise.
12862 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12863 (print_glyphs): Avoid infinite loops.
12864 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12865
12866 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12867
12868 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12869 to avoid infinite loop.
12870 (disp_acpi_rsdt_table): Likewise.
12871
12872 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12873
12874 * grub-core/font/font.c (grub_font_load): Add support for default
12875 path for fonts ($prefix/fonts).
12876 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12877 for checking if string is a path.
12878 * grub-core/normal/main.c (features): Add feature_default_font_path.
12879 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12880 * util/grub.d/00_header.in: Use default directory if possible.
12881 * util/grub-install.in: Install unicode.pf2.
12882
12883 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12884
12885 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12886 * po/Rules-swiss: New file.
12887 * po/swiss.sed: Likewise.
12888
12889 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12890
12891 * grub-core/fs/btrfs.c (find_device): Fix typos.
12892 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12893 * util/grub-mkrelpath.c (argp_parser): Likewise.
12894 Reported by: Yuri Chornoivan.
12895
12896 2012-02-23 Dalet Omega <daletomega@gmail.com>
12897
12898 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12899 for usual informative messages.
12900
12901 2012-02-23 Dalet Omega <daletomega@gmail.com>
12902
12903 Starfield theme.
12904
12905 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12906 * conf/Makefile.common: Define starfielddir.
12907 * configure.ac: Configure starfield.
12908 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12909 * themes/starfield/README: Likewise.
12910 * themes/starfield/blob_w.png: Likewise.
12911 * themes/starfield/boot_menu_c.png: Likewise.
12912 * themes/starfield/boot_menu_e.png: Likewise.
12913 * themes/starfield/boot_menu_n.png: Likewise.
12914 * themes/starfield/boot_menu_ne.png: Likewise.
12915 * themes/starfield/boot_menu_nw.png: Likewise.
12916 * themes/starfield/boot_menu_s.png: Likewise.
12917 * themes/starfield/boot_menu_se.png: Likewise.
12918 * themes/starfield/boot_menu_sw.png: Likewise.
12919 * themes/starfield/boot_menu_w.png: Likewise.
12920 * themes/starfield/slider_c.png: Likewise.
12921 * themes/starfield/slider_n.png: Likewise.
12922 * themes/starfield/slider_s.png: Likewise.
12923 * themes/starfield/src/blob_nw.xcf: Likewise.
12924 * themes/starfield/src/bootmenu/: Likewise.
12925 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12926 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12927 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12928 * themes/starfield/src/slider_c.xcf: Likewise.
12929 * themes/starfield/src/slider_n.xcf: Likewise.
12930 * themes/starfield/src/slider_s.xcf: Likewise.
12931 * themes/starfield/src/terminalbox/: Likewise.
12932 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12933 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12934 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12935 * themes/starfield/starfield.png: Likewise.
12936 * themes/starfield/terminal_box_c.png: Likewise.
12937 * themes/starfield/terminal_box_e.png: Likewise.
12938 * themes/starfield/terminal_box_n.png: Likewise.
12939 * themes/starfield/terminal_box_ne.png: Likewise.
12940 * themes/starfield/terminal_box_nw.png: Likewise.
12941 * themes/starfield/terminal_box_s.png: Likewise.
12942 * themes/starfield/terminal_box_se.png: Likewise.
12943 * themes/starfield/terminal_box_sw.png: Likewise.
12944 * themes/starfield/terminal_box_w.png: Likewise.
12945 * themes/starfield/theme.txt: Likewise.
12946
12947 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12948
12949 * util/grub.d/00_header.in: Add missing export theme.
12950
12951 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12952
12953 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12954 already included.
12955 Reported by: Eren D.
12956
12957 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12958
12959 * conf/Makefile.common (grubdatadir): Removed.
12960 (Makefile.am): Move eveything grubdata to pkgdata.
12961
12962 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12963
12964 * grub-core/commands/acpihalt.c (get_sleep_type):
12965 Remove unused variable.
12966
12967 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12968
12969 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12970 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12971 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12972 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12973 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12974 i18n with gettext no-op.
12975 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12976 GRUB_ACPI_OPCODE_STRING_CONST.
12977 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12978 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12979
12980 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 * po/POTFILES.in: Regenerate.
12983
12984 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12985
12986 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12987 -Wno-error=missing-noreturn.
12988
12989 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12990
12991 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12992 condition to avoid possibly infinite loops.
12993 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12994 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12995
12996 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12997
12998 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12999 condition to avoid possibly infinite loops.
13000
13001 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13002
13003 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13004 on show_error.
13005
13006 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13007
13008 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13009
13010 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13011
13012 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13013
13014 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13015
13016 * util/bin2h.c (usage): Add missing attribute noreturn.
13017
13018 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13019
13020 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13021 if the size isn't divisible by 512.
13022
13023 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13024
13025 Make list_push and list_remove functions rather than inline functions
13026 to decrease size and avoid aliasing violations.
13027
13028 * include/grub/list.h (grub_list_push): Move to ...
13029 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13030 * include/grub/list.h (grub_list_remove): Move to ...
13031 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13032
13033 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13034
13035 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13036 and -Wunused-result.
13037
13038 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13039
13040 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13041 Reported by: Seth Goldberg
13042
13043 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13044
13045 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13046
13047 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13048
13049 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13050 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13051 command line.
13052 * docs/grub.texi (Simple configuration): Document
13053 GRUB_CMDLINE_GNUMACH.
13054
13055 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13056
13057 * conf/Makefile.common (platform_SCRIPTS): New variable.
13058 (platform_PROGRAMS): Likewise.
13059 * gentpl.py: Mark *,module and *.image for install.
13060 * grub-core/gdb_grub.in: Add a notice of expected environment.
13061 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13062 (gmodule.pl): Likewise.
13063
13064 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13065
13066 Replace grub_checkkey with grub_getkey_noblock.
13067
13068 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13069 (grub_getkey_noblock): ... this. All users updated.
13070
13071 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13072
13073 * grub-core/kern/emu/console.c: Move to ...
13074 * grub-core/term/emu/console.c: ...here.
13075 (grub_ncurses_getkey): Fix return value if no key is detected.
13076
13077 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13078
13079 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13080 (grub_unit_test_fini): Likewise.
13081 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13082
13083 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13084
13085 * include/grub/test.h (GRUB_UNIT_TEST)
13086
13087 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13088
13089 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13090 Better error handling.
13091 (grub_script_return): Likewise.
13092 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13093
13094 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13095
13096 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13097 rimplicit redifinition.
13098
13099 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13100
13101 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13102 GRUB.
13103
13104 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13105
13106 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13107 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13108 prompt here.
13109
13110 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13111
13112 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13113 as GRUB_ERR_BUG. Don't malloc if no device is available.
13114
13115 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13116
13117 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13118 Mark calling with invalid term as GRUB_ERR_BUG.
13119
13120 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13121
13122 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13123 packets rather than raising an error.
13124
13125 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13126
13127 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13128 in if.
13129
13130 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13131
13132 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13133 diagnostic to dprintf.
13134 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13135
13136 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13137
13138 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13139 device name.
13140
13141 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13142
13143 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13144 (grub_ntfs_iterate_dir): Likewise.
13145
13146 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13147
13148 Efiemu stylistic fixes and gettext.
13149
13150 * grub-core/efiemu/i386/loadcore32.c
13151 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13152 * grub-core/efiemu/i386/loadcore64.c
13153 (grub_arch_efiemu_relocate_symbols64): Likewise.
13154 * grub-core/efiemu/i386/pc/cfgtables.c
13155 (grub_machine_efiemu_init_tables): Likewise.
13156 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13157 (grub_efiemu_loadcore_initXX): Add a filename argument.
13158 All users updated.
13159 Improved error message.
13160 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13161 Add a filename argument.
13162 All users updated.
13163 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13164 Reclassify double relocation as GRUB_ERR_BUG.
13165
13166 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13167
13168 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13169 handling.
13170
13171 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13172
13173 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13174 on partition.
13175
13176 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13177
13178 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13179
13180 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 Improve string. Gettextize.
13183
13184 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13185
13186 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13187 utils.
13188 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13189
13190 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13191
13192 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13193 [GRUB_UTIL]: New function.
13194 (insert_array) [GRUB_UTIL]: Store partmaps.
13195 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13196 partmaps.
13197 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13198 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13199 (probe_abstraction): Print diskfilter and not raid.
13200 Reported by: Lennart Sorensen
13201
13202 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13203
13204 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13205 * util/grub-mkimagexx.c (MASK3): New define.
13206 (add_value_to_slot_20b): Use MASK3.
13207 (add_value_to_slot_21): Likewise.
13208 (relocate_addresses): Fix format specification.
13209 (load_image): Explicitly init symtab_section.
13210
13211 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13212
13213 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13214 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13215
13216 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13217
13218 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13219 on powerpc.
13220 Reported by: Lennart Sorensen
13221
13222 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13223
13224 * gentpl.py: Add missing license header.
13225 * docs/grub.texi: Update copyright year.
13226
13227 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13228
13229 Source grub-mkconfig_lib from the build directory at build time.
13230 Suggested by: Vladimir Serbinenko.
13231
13232 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13233 * util/grub-install.in: Define pkgdatadir if not already set, and source
13234 grub-mkconfig_lib from there.
13235 * util/grub-kbdcomp.in: Likewise.
13236 * util/grub-mkconfig.in: Likewise.
13237 * util/grub-mknetdir.in: Likewise.
13238 * util/grub-mkrescue.in: Likewise.
13239 * util/grub-mkstandalone.in: Likewise.
13240 * util/grub-reboot.in: Likewise.
13241 * util/grub-set-default.in: Likewise.
13242 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13243
13244 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13245
13246 Increase warning level.
13247
13248 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13249 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13250 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13251 (TARGET_CFLAGS): Likewise.
13252 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13253 * grub-core/Makefile.core.def (decompressor_xz): Add
13254 -Wno-unreachable-code.
13255 (normal): Add -Wno-redundant-decls.
13256 (xzio): Add -Wno-unreachable-code.
13257 (lzopio): Add -Wno-redundant-decls -Wno-error.
13258 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13259 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13260 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13261 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13262 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13263 * grub-core/kern/i386/coreboot/init.c: Add exception to
13264 -Wsuggest-attribute=noreturn.
13265 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13266 * grub-core/kern/ia64/dl_helper.c: Likewise.
13267 * grub-core/kern/mips/dl.c: Likewise.
13268 * grub-core/kern/sparc64/dl.c: Likewise.
13269 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13270 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13271 (memcmp): Likewise.
13272 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13273 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13274 * grub-core/loader/mips/linux.c: Likewise.
13275 * grub-core/loader/multiboot_elfxx.c: Likewise.
13276 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13277 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13278 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13279 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13280 fixme.
13281 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13282 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13283 Fix prototype.
13284
13285 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13286
13287 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13288 address.
13289
13290 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13291
13292 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13293 Avoid improper use of strings.
13294 (grub_cmd_legacy_initrdnounzip): Likewise.
13295
13296 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13297
13298 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13299 attribute.
13300 (grub_util_info): Likewise.
13301 (grub_util_error): Likewise.
13302
13303 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13304
13305 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13306 * util/grub-fstest.c (fstest): Likewise.
13307
13308 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13309
13310 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13311 (grub_md_sha512_real): Likewise.
13312 (grub_util_get_geli_uuid): Likewise.
13313 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13314 (grub_util_biosdisk_open): Fix format specification.
13315 Respect format security.
13316 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13317 (xrealloc): Likewise.
13318 (xasprintf): Likewise.
13319
13320 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13321
13322 * util/import_gcry.py: Include grub/crypto.h in init.c.
13323
13324 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13325
13326 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13327 (generate_image): Make prefix a const char *.
13328 Fix format specifications. Respect format security.
13329 Avoid void * arithmetics.
13330 Avoid shadowing.
13331 (argp_parser): Remove unused variable. Respect format security.
13332 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13333 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13334 (count_funcs): Remove unused variable.
13335 (relocate_addresses): Fix format specification.
13336 Disable x86-64 with elf32. Remove unused variables.
13337 (add_fixup_entry): Avoid shadowing.
13338 (make_reloc_section): Fix format specification.
13339 Use assert.
13340 (locate_sections): Fix format specifications.
13341 (load_image): Avoid shadowing.
13342
13343 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13344
13345 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13346 Fix format specifications. Respect format security.
13347 Don't translate already translated grub_errmsg.
13348 (argp_parser): Remove unused variable
13349
13350 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13351
13352 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13353
13354 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13355
13356 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13357 (main): Likewise. Use xmalloc. Respect format security.
13358
13359 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13360
13361 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13362 a const char *.
13363 (argp_parser): Remove unused variable.
13364
13365 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13366
13367 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13368 (add_pixel): Make static.
13369 (add_font): Likewise.
13370 (write_string_section): Make name and str a const char *.
13371 (write_be16_section): Make name a const char *.
13372 (print_glyphs): Make static.
13373 (write_font_ascii_bitmap): Likewise.
13374 (write_font_width_spec): Likewise.
13375 (write_font_pf2): Likewise.
13376 (argp_parser): Remove unused variable.
13377 Respect format security.
13378 (main): Avoid shadowing. Respect format security.
13379
13380 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13381
13382 * util/grub-editenv.c (argp_parser): Make static.
13383 (create_envblk_file): Use xmalloc.
13384 (open_envblk_file): Likewise.
13385 Resepect format security.
13386 (set_variables): Respect format security.
13387
13388 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13389
13390 * util/getroot.c (grub_find_device): Respect format security.
13391 (get_mdadm_uuid): Remove unused variable.
13392 (grub_util_pull_device): Dont call gettext on already translated
13393 grub_errmsg.
13394 (find_system_device): Remove unused variable.
13395 (grub_util_get_grub_dev): Likewise.
13396 (grub_make_system_path_relative_to_its_root): Respect format security.
13397
13398 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13399
13400 * util/grub-fstest.c (execute_command): Make first argument
13401 a const char *.
13402 (read_file): Avoid shadowing.
13403 Reuse underlying error message if device open fails.
13404 (cmd_cmp): Respect format security.
13405 (root): Make const char *.
13406 (fstest): Remove args argument and use global copy.
13407 Respect format security.
13408 (argp_parser): Make static.
13409 (main): Make default_root const char *.
13410
13411 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13412
13413 * util/grub-mount.c (root): Make const char *.
13414 (execute_command): Make first argument a const char *.
13415 (fuse_init): Respect format security.
13416 (argp_parser): Make static. Remove unused variable.
13417 (main): Make default_root a const char *.
13418 Respect format security.
13419
13420 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13421
13422 * util/grub-probe.c (probe): Don't call gettext on already translated
13423 grub_errmsg.
13424 Remove unused variables.
13425 (argp_parser): Remove unused variable.
13426
13427 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13428
13429 * util/grub-script-check.c (argp_parser): Remove unused variable.
13430 (main): Rename read to curread to avoid shadowing.
13431
13432 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13433
13434 * util/misc.c (grub_util_write_image_at): Fix format specification.
13435 (grub_util_write_image): Likewise.
13436 (grub_script_execute_argument_to_string): Removed (unused).
13437 (grub_script_execute_menuentry): Likewise.
13438 (grub_putchar): Likewise.
13439
13440 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13441
13442 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13443 (FUNCTION) [GRUB_UTIL]: Likewise.
13444 (VARIABLE) [GRUB_UTIL]: Likewise.
13445
13446 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13447
13448 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13449 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13450
13451 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13452
13453 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13454 buffer.
13455
13456 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13457
13458 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13459 (LzmaEnc_SaveState): Removed (unused).
13460 (LzmaEnc_RestoreState): Likewise.
13461 (LzmaEnc_InitPriceTables): Made static.
13462 (LzmaEnc_Construct): Likewise.
13463 (LzmaEnc_FreeLits): Likewise.
13464 (LzmaEnc_Destruct): Likewise.
13465 (LzmaEnc_Init): Likewise.
13466 (LzmaEnc_InitPrices): Likewise.
13467 (LzmaEnc_Finish): Likewise.
13468 (LzmaEnc_PrepareForLzma2): Removed (unused).
13469 (LzmaEnc_MemPrepare): Likewise.
13470 (LzmaEnc_GetNumAvailableBytes): Likewise.
13471 (LzmaEnc_GetCurBuf): Likewise.
13472 (LzmaEnc_CodeOneMemBlock): Likewise.
13473
13474 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13475
13476 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13477 (grub_util_ldm_embed): Likewise.
13478
13479 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13480
13481 * util/grub-editenv.c (print_var): Rename name to varname to
13482 avoid shadowing.
13483 (main): Rename index to curindex to avoid shadowing.
13484 Make filename a const char *.
13485
13486 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13489 to arg_getline to avoid shadowing.
13490
13491 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13494 disk_ to avoid shadowing.
13495
13496 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13497
13498 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13499 curindex to avoid shadowing.
13500 Make static.
13501 (MatchFinder_GetNumAvailableBytes): Make static.
13502
13503 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13504
13505 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13506 avoid shadowing.
13507
13508 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13509
13510 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13511 argument from encrypt to do_encrypt to avoid shadowing.
13512
13513 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13516 incorrect nesting of #if's.
13517
13518 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13519
13520 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13521 checks which are always false on some platforms.
13522 (grub_cmd_lsacpi): Likewise.
13523 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13524 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13525 Likewise.
13526
13527 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13528
13529 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13530 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13531
13532 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13533
13534 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13535 re_dfa_t to avoid breaking alignment invariants.
13536 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13537 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13538
13539 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13540
13541 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13542 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13543
13544 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13545
13546 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13547 Fix declaration.
13548
13549 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13550
13551 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13552 conserve alignment invariants.
13553 (grub_ehci_ehcc_read16): Likewise.
13554 (grub_ehci_oper_read32): Likewise.
13555 (grub_ehci_oper_write32): Likewise.
13556 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13557 Conserve alignment invariants.
13558
13559 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13560
13561 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13562 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13563 declarations.
13564
13565 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13566
13567 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13568 Remove unused variable.
13569
13570 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13571
13572 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13573 Remove set in if.
13574
13575 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13576
13577 * include/grub/net.h: Remove double declarations.
13578
13579 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13580
13581 Remove "payload" command in ia64 Linux loader since I couldn't
13582 find any evidence of it being used for anything.
13583 Replace "relocate" command with an environment variable
13584
13585 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13586 fields.
13587 (ia64_boot_payload): Removed.
13588 (last_payload): Likewise.
13589 (RELOCATE_OFF): Likewise.
13590 (RELOCATE_ON): Likewise.
13591 (RELOCATE_FORCE): Likewise.
13592 (relocate): Likewise.
13593 (free_pages): Don't free payloads.
13594 (grub_load_elf64): Use common error messages.
13595 Use "linux_relocate" variable.
13596 Increase the space after boot_params.
13597 (grub_cmd_payload): Removed.
13598 (grub_cmd_relocate): Likewise.
13599 (grub_cmd_fpswa): Improve messages.
13600 (cmd_payload): Removed.
13601 (cmd_relocate): Likewise.
13602 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13603 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13604
13605 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13606
13607 Convert UHCI to DMA framework.
13608
13609 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13610 (grub_uhci_pci_iter): Fill new members
13611 (grub_alloc_td): Use P2V and V2P functions.
13612 (grub_free_queue): Likewise.
13613 (grub_alloc_qh): Likewise.
13614 (grub_uhci_setup_transfer): Likewise.
13615 (grub_uhci_check_transfer): Likewise.
13616
13617 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13618
13619 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13620 Remove assignment in if while on it.
13621
13622 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13623
13624 * util/grub-mkstandalone.in: Fix modules directory.
13625
13626 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13627
13628 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13629 on i386-pc target.
13630 (argp_parser): Accept "auto" as compression specification.
13631
13632 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13633
13634 Fix `help' with unloaded modules.
13635
13636 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13637 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13638 (grub_dyncmd_dispatcher): Small stylistic fix.
13639 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13640 explicit help is requested.
13641
13642 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13643
13644 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13645 Explicitly init restart while on it.
13646
13647 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13648
13649 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13650 uninited variable.
13651
13652 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13653
13654 * util/grub-mknetdir.in: Use . rather than source for POSIX
13655 compatibility.
13656
13657 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13658
13659 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13660
13661 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13662
13663 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13664 variable.
13665
13666 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13667
13668 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13669 without quotes.
13670
13671 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13672
13673 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13674
13675 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13676
13677 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13678 iteration of partitions.
13679
13680 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13681
13682 Improve gettext support. Stylistic fixes and error handling fixes while
13683 on it.
13684
13685 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13686
13687 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13688 part. Instead setup the correct stack in RM.
13689 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13690 for stack.
13691 * include/grub/i386/relocator_private.h: New file.
13692
13693 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13694
13695 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13696 argument.
13697 * util/grub-fstest.c (options): Add missing DEVICE part.
13698
13699 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13700
13701 Clarify and unify messages.
13702
13703 * grub-core/commands/hashsum.c (options): Unify messages.
13704 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13705 literal-only message as translatable.
13706 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13707 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13708 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13709 commands.
13710 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13711 key, not the key used to unlock. Clarify what it's used for.
13712 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13713 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13714 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13715 * util/grub-editenv.c (options): Unify "verbose" message.
13716 * util/grub-fstest.c (read_file): Unify error message.
13717 (fstest): Add quotes around commands.
13718 (options): Unify "verbose" message.
13719 * util/grub-install.in: Add quotes around variable name.
13720 * util/grub-kbdcomp.in: Unify error message.
13721 * util/grub-mkfont.c (main): Likewise.
13722 * util/grub-mkrescue.in: Likewise.
13723 * util/grub-mklayout.c (options): Unify "verbose" message.
13724 * util/grub-mkstandalone.in: Unify help and verbose messages.
13725 * util/grub-mount.c (options): Unify "verbose" message.
13726 * util/grub-probe.c (options): Likewise.
13727 * util/grub-script-check.c (options): Likewise.
13728 * util/grub-setup.c (setup): Unify no-terminator message.
13729 (options): Use DEVICE and not DEV.
13730 Unify "verbose" message.
13731 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13732
13733 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13734
13735 Improve and unify messages.
13736
13737 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13738 name. All users updated.
13739 Print filename in error.
13740 (read_device_map): Print filename in error.
13741 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13742 (grub_util_get_os_disk): Likewise.
13743 (grub_util_biosdisk_get_grub_dev): Likewise.
13744 (grub_util_check_block_device): Likewise.
13745 (grub_util_check_char_device): Likewise.
13746 (grub_make_system_path_relative_to_its_root): Likewise.
13747 * util/grub-editenv.c (create_envblk_file): Likewise.
13748 (open_envblk_file): Likewise.
13749 (write_envblk): Likewise.
13750 * util/grub-fstest.c (cmd_cp): Likewise.
13751 (cmd_cat): Likewise.
13752 (cmd_cmp): Likewise.
13753 * util/grub-menulst2cfg.c (main): Likewise.
13754 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13755 (write_font_width_spec): Likewise.
13756 (write_font_pf2): Likewise.
13757 * util/grub-mkimage.c (generate_image): New argument outname.
13758 All users updated.
13759 Remove unreacheable message.
13760 (options): Unify messages.
13761 (help_filter): Likewise.
13762 * util/grub-mklayout.c (usage): Removed (unused).
13763 (main): Print filename in error.
13764 * util/grub-mkrescue.in: Fix wrong quoting.
13765 * util/grub-setup.c (setup): Print filename in error.
13766 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13767 (check_sas): Likewise.
13768 * util/misc.c (grub_util_get_fp_size): Removed.
13769 (grub_util_get_image_size): Print filename in error.
13770 (grub_util_read_at): Removed.
13771 (grub_util_read_image): Print filename in error.
13772 (grub_util_load_image): Likewise.
13773 (grub_util_write_image_at): New argument filename. All users updated.
13774 Print filename in error.
13775 (grub_util_write_image): New argument filename. All users updated.
13776 Print filename in error.
13777 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13778 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13779
13780 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13781
13782 * grub-core/Makefile.core.def (pxechain): New module.
13783 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13784 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13785 function.
13786 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13787 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13788
13789 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13790
13791 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13792 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13793 * include/grub/err.h (grub_error_saved): New struct.
13794 (grub_errmsg): Make array size explicit.
13795 * include/grub/misc.h (grub_error_save): New function.
13796 (grub_error_load): Likewise.
13797 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13798 (grub_error_push): Update `errno' member name.
13799 (grub_error_pop): Likewise
13800 * grub-core/net/tftp.c (tftp_data): New member save_err.
13801 (tftp_receive): Save error.
13802 (tftp_open): Restore error.
13803
13804 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13805
13806 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13807 to real mode down to execute A20-related code in protected mode as
13808 intended.
13809
13810 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13811
13812 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13813 NULL when the argument `level' has an unexpected value.
13814
13815 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13816
13817 Move platform-dependent files from $prefix to $prefix/$platform.
13818
13819 * config.h.in (GRUB_TARGET_CPU): New definition.
13820 (GRUB_PLATFORM): Likewise.
13821 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13822 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13823 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13824 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13825 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13826 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13827 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13828 * grub-core/normal/term.c (read_terminal_list): Likewise.
13829 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13830 $prefix/locale.
13831 (grub_gettext_init_ext): Likewise.
13832 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13833 grub_platform.
13834 * util/grub-install.in: Update directories.
13835 * util/grub-mknetdir.in: Likewise.
13836 * util/grub-mkrescue.in: Likewise.
13837
13838 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13839
13840 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13841 grub_error framework. All users updated.
13842
13843 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13844
13845 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13846 lists (by always binsearching), improve caching (cache strings
13847 used for binsearch, not only results), improve
13848 maintainability (by using more structured binary search) and correct
13849 error handling.
13850
13851 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13852
13853 * grub-core/script/execute.c (grub_script_return): Fix warning.
13854
13855 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13856
13857 * grub-core/script/execute.c (grub_script_return): Fix potential
13858 NULL-dereference.
13859 Reported by: Jim Meyering.
13860
13861 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13862
13863 * po/POTFILES.in: Regenerate.
13864 * util/grub-install.in: Gettextize the strings missed in first pass.
13865
13866 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13867
13868 * Makefile.util.def (grub-mkdevicemap): Removed.
13869 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13870 * include/grub/util/deviceiter.h: Removed.
13871 * util/deviceiter.c: Likewise.
13872 * util/getroot.c (grub_util_get_os_disk): New function.
13873 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13874 replacement for EFI.
13875 * util/grub-mkdevicemap.c: Removed.
13876 * util/grub-probe.c (probe): Handle PRINT_DISK.
13877 (argp_parser): Handle -t disk.
13878
13879 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13880
13881 * util/grub-mkfont.c: Migrate to argp.
13882 * util/grub-mklayout.c: Likewise.
13883 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13884 * util/grub-mkrelpath.c: Likewise.
13885 * util/grub-probe.c: Likewise.
13886 * util/grub-script-check.c: Likewise.
13887
13888 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13889
13890 * util/grub-reboot.in: Add missing datarootdir.
13891 Add missing newline.
13892 * util/grub-set-default.in: Add missing datarootdir.
13893 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13894 * util/grub-mkrescue.in: Likewise.
13895
13896 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13897
13898 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13899
13900 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13901
13902 * util/grub-kbdcomp.in: Add decent help and gettextize.
13903 * docs/man/grub-kbdcomp.h2m: New file.
13904
13905 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13906
13907 Migrate grub-mkimage.c to argp.
13908
13909 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13910 (grub-setup): Likewise.
13911 * util/grub-setup.c (print_version): Move to ...
13912 * util/argp_common.c (print_version): ... here.
13913 * util/grub-setup.c (argp_program_version_hook): Move to ...
13914 * util/argp_common.c (argp_program_version_hook): ... here.
13915 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13916 safety.
13917 * util/grub-mkimage.c (main): Migrate to argp.
13918
13919 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13920
13921 * util/grub-mkrescue.in: Use same message as
13922 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13923 for better translations.
13924
13925 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13926
13927 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13928 options with generic grub-mkrescue.in with the goal of future
13929 merge.
13930
13931 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13932
13933 * grub-core/kern/mm.c: Add missing include of i18n.h
13934 * grub-core/lib/relocator.c: Likewise.
13935
13936 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13937
13938 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13939 error.
13940 (allocate_pages): Check return value.
13941 Replace fatal with error.
13942 (grub_linux_boot): Replace printf with dprintf.
13943 Check find_mmap_size return value.
13944 Replace fatal with error.
13945 Don't call grub_machine_fini.
13946 (grub_load_elf64): Replace printf with dprintf.
13947 (grub_cmd_linux): Likewise.
13948 (grub_cmd_initrd): Likewise.
13949 (grub_cmd_payload): Likewise.
13950
13951 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13952
13953 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13954 message.
13955 * grub-core/video/radeon_fuloong2e.c
13956 (grub_video_radeon_fuloong2e_setup): Likewise.
13957 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13958 * grub-core/video/video.c (grub_video_set_mode): Don't override
13959 standard out of memory message.
13960
13961 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13962
13963 NetBSD disk wedge support.
13964
13965 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13966 [__NetBSD__]: Handle NetBSD disk wedges.
13967 * util/getroot.c (convert_system_partition_to_system_disk)
13968 [__NetBSD__]: Likewise.
13969
13970 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13971
13972 * util/grub-mkconfig.in: Use umask rather than chmod to create
13973 grub.cfg.new to avoid insecure grub.cfg.
13974
13975 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13976
13977 * grub-core/commands/ls.c: Gettextize.
13978 * grub-core/commands/setpci.c: Likewise.
13979 * grub-core/commands/videotest.c: Likewise.
13980 * grub-core/disk/geli.c: Likewise.
13981 * grub-core/kern/mm.c: Likewise.
13982 * grub-core/lib/relocator.c: Likewise.
13983 * grub-core/loader/efi/appleloader.c: Likewise.
13984 * grub-core/loader/i386/xnu.c: Likewise.
13985 * grub-core/loader/ia64/efi/linux.c: Likewise.
13986 * grub-core/loader/xnu.c: Likewise.
13987 * grub-core/net/dns.c: Likewise.
13988 * grub-core/net/net.c: Likewise.
13989 * grub-core/script/lexer.c: Likewise.
13990 * grub-core/script/parser.y: Likewise.
13991 * grub-core/script/yylex.l: Likewise.
13992 * util/getroot.c: Likewise.
13993 * util/grub-setup.c: Likewise.
13994
13995 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13996
13997 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13998 number.
13999
14000 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14001
14002 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14003
14004 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14005
14006 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14007 macro.
14008 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14009 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14010
14011 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14012
14013 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14014 * util/grub-install.in: Gettextize.
14015 * util/grub-mkconfig.in: Likewise.
14016 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14017 if not available.
14018 (grub_warn): Gettextize.
14019 * util/grub-mknetdir.in: Gettextize.
14020 * util/grub-mkrescue.in: Likewise.
14021 * util/grub-mkstandalone.in: Likewise.
14022 * util/grub-reboot.in: Likewise.
14023 * util/grub-set-default.in: Likewise.
14024 * util/grub.d/00_header.in: Likewise.
14025 * util/grub.d/10_hurd.in: Likewise.
14026 * util/grub.d/10_kfreebsd.in: Likewise.
14027 * util/grub.d/10_linux.in: Likewise.
14028 * util/grub.d/10_netbsd.in: Likewise.
14029 * util/grub.d/10_windows.in: Likewise.
14030 * util/grub.d/20_linux_xen.in: Likewise.
14031 * util/grub.d/30_os-prober.in: Likewise.
14032 * po/POTFILES-shell.in: Regenerate.
14033
14034 2012-02-03 Richard Laager <rlaager@wiktel.com>
14035
14036 * util/grub-mkimage.c (main): Fix format-security warning.
14037 * util/grub-mkrelpath.c (main): Likewise.
14038 * util/grub-probe.c (main): Likewise.
14039
14040 2012-02-03 Richard Laager <rlaager@wiktel.com>
14041
14042 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14043 failure.
14044 Put back lost PRINT_DRIVE.
14045
14046 2012-02-03 Richard Laager <rlaager@wiktel.com>
14047
14048 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14049 (grub_guess_root_devices): Replace strlen with sizeof.
14050 Avoid crash.
14051 (find_root_devices_from_poolname): Remove unused variable.
14052 Handle raidzN.
14053
14054 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14055
14056 Support install on multi-device filesystems.
14057
14058 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14059 (grub_guess_root_devices): ...this. Return char **. All users updated.
14060 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14061 Removed.
14062 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14063 (find_root_devices_from_poolname): ... here.
14064 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14065 Support zfs-fuse.
14066 (grub_guess_root_device): Rename to ...
14067 (grub_guess_root_devices): ... this. Return char **. All users updated.
14068 * util/grub-install.in: Handle multi-device filesystems.
14069 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14070 argument. All users updated.
14071 Handle multi-device filesystems.
14072 Use 'delim' as separator.
14073 Remove device check to allow filesystems on file.
14074 (main): Support -0 argument. Handle multi-device.
14075 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14076 Fix a cross-device check while on it.
14077 (arguments): Remove root_dev.
14078 (argp_parser): Remove -r.
14079 (main): Remove root_dev.
14080
14081 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14082
14083 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14084
14085 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14086
14087 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14088 symbol.
14089 Reported by: NODA, Kai <nodakai>.
14090
14091 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14092
14093 Fix ehci on amd64.
14094
14095 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14096 pointers.
14097 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14098 (grub_ehci_setup_qh): Likewise.
14099 (grub_ehci_find_qh): Likewise.
14100 (grub_ehci_transaction): Likewise.
14101 (grub_ehci_setup_transfer): Likewise.
14102 (grub_ehci_check_transfer): Likewise.
14103 (grub_ehci_portstatus): Likewise.
14104 (grub_ehci_detect_dev): Likewise.
14105 (grub_ehci_transfer_controller_data): New field td_last_phys.
14106 (grub_ehci_setup_transfer): Fill td_last_phys.
14107 (grub_ehci_check_transfer): Use td_last_phys.
14108
14109 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14110
14111 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14112 if no submenu is present.
14113
14114 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14115
14116 CBI support.
14117
14118 * include/grub/usb.h (grub_usbms_protocol_t): New values
14119 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14120 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14121 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14122 (grub_usbms_dev): Add subclass, protocol and intrpt.
14123 Remove in_maxsz and out_maxsz.
14124 (grub_usbms_reset): Rename to ...
14125 (grub_usbms_bo_reset): .. this.
14126 (grub_usbms_cbi_cmd): New function.
14127 (grub_usbms_cbi_reset): Likewise.
14128 (grub_usbms_reset): Likewise.
14129 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14130 (grub_usbms_transfer): Rename to ...
14131 (grub_usbms_transfer_bo): ... this.
14132 (grub_usbms_transfer_cbi): Likewise.
14133 (grub_usbms_transfer): Likewise.
14134
14135 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14136 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14137
14138 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14139 the support for the CS5536 modification thereos and few bugfixes.
14140
14141 * grub-core/Makefile.core.def (ehci): New module.
14142 * grub-core/bus/usb/ehci.c: New file.
14143 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14144 port and hubaddr. All users updated.
14145 Save port and hubaddr into dev structure.
14146 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14147 define.
14148 * include/grub/pci.h (grub_dma_phys2virt): New function.
14149 (grub_dma_virt2phys): Likewise.
14150 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14151
14152 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14153
14154 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14155 check as some mkfs implementations omit it.
14156
14157 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14158
14159 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14160
14161 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14162
14163 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14164 Add new member volname2.
14165 (grub_jfs_label): Use volname2 if available.
14166
14167 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14168
14169 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14170 over last_mounted as seen in image generated by mkfs.nilfs2.
14171 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14172
14173 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14176 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14177 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14178
14179 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14180
14181 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14182 over the sector.
14183
14184 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14185
14186 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14187 subvolume name (by removing a bogus and useless check).
14188
14189 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14190
14191 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14192 sizeof while on it.
14193
14194 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14195
14196 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14197 (grub_scsi_read_capacity10): ... this.
14198 (grub_scsi_read_capacity16): New function.
14199 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14200 0xffffffff.
14201 Fix off-by-one error.
14202 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14203 64-bit unsigned.
14204 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14205 (grub_scsi_read_capacity10): ... this.
14206 (grub_scsi_read_capacity_data): Rename to ...
14207 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14208 (grub_scsi_read_capacity16): New struct.
14209 (grub_scsi_read_capacity16_data): Likewise.
14210 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14211 grub_scsi_cmd_read_capacity10.
14212 New command grub_scsi_cmd_read_capacity16.
14213
14214 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14215
14216 SCSI >2TiB support.
14217
14218 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14219 (grub_scsi_write16): Likewise.
14220 (grub_scsi_read): Use read16 when necessary.
14221 (grub_scsi_write): Likewise.
14222 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14223 (grub_scsi_write16): Likewise.
14224 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14225
14226 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14227
14228 SCSI write support (for usbms mainly).
14229
14230 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14231 a const pointer.
14232 (grub_scsi_write): Implement.
14233 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14234
14235 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14236
14237 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14238 variable.
14239
14240 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14241
14242 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14243
14244 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14245
14246 * po/POTFILES.in: Regenerate.
14247
14248 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14251 with grub_printf to avoid unnecessary fatal failure.
14252
14253 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14254
14255 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14256 (INT_MAX): Likewise.
14257 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14258 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14259 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14260 (strcpy): Likewise.
14261 (strstr): Likewise.
14262 (strchr): Likewise.
14263 (strncpy): Likewise.
14264 (strcat): Likewise.
14265 (strncat): Likewise.
14266 (strcoll): Likewise.
14267 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14268 (GRUB_INT_MAX): Likewise.
14269
14270 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14273 unexpected error.
14274 (optimize_utf8): Likewise.
14275 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14276
14277 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14278
14279 * grub-core/boot/i386/pc/lnxboot.S: Use
14280 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14281 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14282 location.
14283 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14284 definition.
14285 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14286
14287 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14288
14289 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14290 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14291 now to avoid double free.
14292 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14293 hostdisk.
14294 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14295 * util/grub-probe.c (escape_of_path): Always return a new copy.
14296 (print_full_name): Escape path.
14297 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14298 Fix hints on abstractions.
14299
14300 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14301
14302 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14303 Don't add "root" line if no compatibility hont is available.
14304 Suggested by: Seth Goldberg.
14305
14306 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14307
14308 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14309 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14310 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14311 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14312
14313 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14314
14315 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14316
14317 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14318
14319 * util/grub-pe2elf.c (ehdr): Make static.
14320 (shdr): Likewise.
14321 (num_sections): Likewise.
14322 (offset): Likewise.
14323
14324 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14325
14326 Eliminate ofpath limits and possible overflows.
14327
14328 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14329 (OF_PATH_MAX): Removed.
14330 (MAX_DISK_CAT): New const.
14331 (find_obppath): Use allocated rather than preallocated buffer.
14332 Return result. Argument of_path removed. All users updated.
14333 Add missing fdstat.
14334 (xrealpath): New function.
14335 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14336 Allocate rather than use preallocated buffer. All users updated.
14337 (__of_path_common): Use allocated rather than preallocatecd buffer.
14338 Return result. Argument of_path removed. All users updated.
14339 (vendor_is_ATA): Read only needed part form the file.
14340 (check_sas): Allocate depending on contents rather than fixed.
14341 (main) [STANDALONE]: Handle NULL result.
14342
14343 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14344
14345 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14346
14347 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14348
14349 Cryptodisk write support.
14350
14351 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14352 (grub_cryptodisk_decrypt): Moved logic to ...
14353 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14354 (grub_cryptodisk_write): Implement.
14355 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14356 (grub_util_fd_write): ... this. Make global.
14357 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14358
14359 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14360
14361 * include/grub/list.h (grub_list_remove): Don't crash if element is
14362 removed twice.
14363
14364 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14365
14366 Rename ofconsole to console.
14367
14368 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14369 as sysnonym to console.
14370 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14371 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14372 Rename grub_ofconsole_ to grub_console_. All users updated
14373 (grub_console_term_output): Rename "ofconsole" to "console".
14374 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14375 as "console".
14376
14377 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14380 handling.
14381 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14382 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14383 GRUB_DISK_DEVICE_FILE_ID.
14384
14385 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14386
14387 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14388 and improve performance.
14389
14390 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14391
14392 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14393 missing ieee1275/ prefix on whole disk.
14394
14395 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14396
14397 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14398 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14399
14400 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14401
14402 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14403
14404 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14405
14406 Merge common RAID and LVM logic to an abstract diskfilter.
14407 Add LDM support using the same framework.
14408
14409 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14410 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14411 (libgrubmods): Remove grub-core/disk/raid.c and
14412 grub-core/partmap/gpt.c.
14413 * grub-core/Makefile.core.def (ldm): New module.
14414 (raid): Renamed to diskfilter. All users updated.
14415 * grub-core/disk/raid.c: Moved to ...
14416 * grub-core/disk/diskfilter.c: ... here.
14417 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14418 (lv_num): New var.
14419 (find_array): Renamed to ...
14420 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14421 (grub_is_array_readable): Renamed to ...
14422 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14423 (insert_array): New argument id.
14424 (is_node_readable): New function.
14425 (scan_device): Rename to ...
14426 (scan_disk): .. this. Restrict to one disk.
14427 (scan_devices): New function.
14428 (grub_diskfilter_iterate): Support multi-LV.
14429 Skip invisible and nameless LVs.
14430 (grub_diskfilter_memberlist): Support multi-LV.
14431 (grub_diskfilter_read_node): New function.
14432 (grub_raid_read): Most of logic moved to ...
14433 (read_segment): ... here
14434 (read_lv): New function.
14435 (grub_diskfilter_get_vg_by_uuid): New function.
14436 (grub_diskfilter_make_raid): Likewise.
14437 * grub-core/disk/ldm.c: New file.
14438 * grub-core/disk/lvm.c (vg_list): Removed.
14439 (lv_count): Likewise.
14440 (scan_depth): Likewise.
14441 (is_lv_readable): Likewise.
14442 (grub_lvm_getvalue): Advance pointer past the number.
14443 (find_lv): Removed.
14444 (do_lvm_scan): Refactored into ...
14445 (grub_lvm_detect): ... this. Support raid.
14446 (grub_lvm_iterate): Removed.
14447 (grub_lvm_memberlist): Likewise.
14448 (grub_lvm_open): Likewise.
14449 (grub_lvm_close): Likewise.
14450 (read_lv): Likewise.
14451 (read_node): Likewise.
14452 (is_node_readable): Likewise.
14453 (is_lv_readable): Likewise.
14454 (grub_lvm_read): Likewise.
14455 (grub_lvm_write): Likewise.
14456 (grub_lvm_dev): Use diskfilter
14457 (GRUB_MOD_INIT): Likewise.
14458 (GRUB_MOD_FINI): Likewise.
14459 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14460 new interface.
14461 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14462 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14463 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14464 grub_diskfilter_read_node.
14465 Fix a bug with xor.
14466 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14467 grub_diskfilter_read_node.
14468 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14469 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14470 (grub_disk_dev_iterate): Move from here...
14471 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14472 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14473 Make global.
14474 (grub_hostdisk_find_partition_start): Likewise.
14475 (grub_hostdisk_os_dev_to_grub_drive): New function.
14476 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14477 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14478 * util/getroot.c (make_device_name): ... here.
14479 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14480 Move to ...
14481 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14482 * grub-core/kern/emu/hostdisk.c
14483 (convert_system_partition_to_system_disk): Move to ...
14484 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14485 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14486 * util/getroot.c (device_is_wholedisk): ... here.
14487 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14488 * util/getroot.c (find_system_device): ... here.
14489 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14490 Move to ...
14491 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14492 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14493 Move to ...
14494 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14495 Handle LDM.
14496 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14497 Move to ...
14498 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14499 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14500 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14501 DISKFILTER.
14502 * include/grub/raid.h: Renamed to ...
14503 * include/grub/diskfilter.h: ... this.
14504 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14505 (GRUB_RAID_LAYOUT_*): Make into array.
14506 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14507 (grub_diskfilter_vg): New struct.
14508 (grub_diskfilter_pv_id): Likewise.
14509 (grub_raid_member): Removed.
14510 (grub_raid_array): Likewise.
14511 (grub_diskfilter_pv): New struct.
14512 (grub_diskfilter_lv): Likewise.
14513 (grub_diskfilter_segment): Likewise.
14514 (grub_diskfilter_node): Likewise.
14515 (grub_diskfilter_get_vg_by_uuid): New proto.
14516 (grub_raid_register): Inline.
14517 (grub_diskfilter_unregister): Likewise.
14518 (grub_diskfilter_make_raid): New proto.
14519 (grub_diskfilter_vg_register): Likewise.
14520 (grub_diskfilter_read_node): Likewise.
14521 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14522 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14523 (grub_util_is_ldm): Likewise.
14524 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14525 (grub_hostdisk_find_partition_start): Likewise.
14526 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14527 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14528 New definition.
14529 (grub_gpt_partition_map_iterate): New proto.
14530 * include/grub/lvm.h (grub_lvm_vg): Removed.
14531 (grub_lvm_pv): Likewise.
14532 (grub_lvm_lv): Likewise.
14533 (grub_lvm_segment): Likewise.
14534 (grub_lvm_node): Likewise.
14535 * util/getroot.c [...]
14536 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14537 (probe_abstraction): Likewise.
14538 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14539 (main): Remove dead logic.
14540
14541 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14542
14543 Simplify root device discover and don't fail when trying to open
14544 incorrect devices.
14545
14546 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14547 function.
14548 (get_diskname_from_path): Likewise.
14549 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14550 of iterating.
14551
14552 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14555
14556 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14557
14558 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14559 pastthe end.
14560
14561 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14562
14563 * util/grub-install.in: Add missing \.
14564 Reported by: gentoofan
14565
14566 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14567
14568 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14569 (direct_read): Use correct compressed size.
14570 (grub_squash_read_data): Likewise.
14571
14572 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14573
14574 * docs/grub.texi (Platform limitations): New section.
14575 (Platform-specific operations): Likewise.
14576 * docs/grub-dev.texi (Porting): Likewise.
14577
14578 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14579
14580 IEEE1275 disk write support.
14581
14582 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14583 const void *.
14584 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14585 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14586 and seek loginc to ...
14587 (grub_ofdisk_prepare): ... here.
14588 (grub_ofdisk_write): Implement.
14589
14590 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14591
14592 ARC disk write support.
14593
14594 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14595 (reopen): New argument writable. All users updated.
14596 Handle required access mode.
14597 (grub_arcdisk_write): Implement.
14598 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14599 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14600
14601 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14602
14603 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14604 (read_sblock): Don't attempt to read superblocks outside the disk size.
14605
14606 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14607
14608 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14609 first superblock to find the second one when possible.
14610
14611 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14612
14613 * util/grub-install.in: Fix an ARC bug.
14614 Print a warning if no platform-specific setup is available.
14615
14616 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14617
14618 Use static allocation rather than scratch pointer in reed_solomon.
14619 It decreases its size significantly and avoids a variable in .text.
14620
14621 * grub-core/lib/reed_solomon.c (scratch): Removed.
14622 (chosenstat): New const or static array.
14623 (sigma): Likewise.
14624 (errpot): Likewise.
14625 (errpos): Likewise.
14626 (sy): Likewise.
14627 (mstat): Likewise.
14628 (errvals): Likewise.
14629 (eqstat): Likewise.
14630 (pol_evaluate): Replace x with log_x argument. All users updated.
14631 (syndroms): Removed.
14632 (gauss_solve): Use statically allocated arrays.
14633 (rs_recover): Likewise.
14634 Calculate syndroms directly.
14635 (decode_block): Use statically allocated arrays.
14636 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14637 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14638
14639 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14640
14641 Eliminate fixed limit on reed solomon decoder length.
14642
14643 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14644 rather than hardcoding the address.
14645 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14646 no_reed_solomon_length.
14647 Move gate_a20 to no-reed-solomon part.
14648 Don't force a particular size of no reed-solomon part.
14649 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14650 Removed.
14651 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14652 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14653
14654 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14655
14656 * grub-core/commands/wildcard.c (match_files): Handle filenames
14657 without explicit device.
14658 (wildcard_expand): Don't add explicit device if not already present.
14659 * tests/grub_script_echo1.in: Add a new expansion test.
14660
14661 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14662
14663 Replace single-linked with double-linked lists. It results in more
14664 compact and more efficient code.
14665
14666 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14667 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14668 (grub_list_remove): Moved from here ...
14669 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14670 (grub_prio_list_insert): Set prev.
14671 * include/grub/list.h (grub_list): Add prev. All users updated.
14672
14673 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14674
14675 Handle newer autotools. Add some missing quotes while on it.
14676
14677 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14678 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14679 (pkgdata_DATA): ... here.
14680 * Makefile.util.def (update-grub_lib): Removed.
14681 * conf/Makefile.common (pkglib_DATA): Removed.
14682 (pkglib_SCRIPTS): Likewise.
14683 (pkgdata_DATA): New variable.
14684 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14685 needed.
14686 Add missing quotes.
14687 Remove unused variable while on it.
14688 * tests/util/grub-shell.in: Likewise.
14689 * util/grub-install.in: Likewise.
14690 * util/grub-mkconfig.in: Likewise.
14691 * util/grub-mknetdir.in: Likewise.
14692 * util/grub-mkrescue.in: Likewise.
14693 * util/grub-mkstandalone.in: Likewise.
14694 * util/grub.d/00_header.in: Likewise.
14695 * util/grub.d/10_hurd.in: Likewise.
14696 * util/grub.d/10_illumos.in: Likewise.
14697 * util/grub.d/10_kfreebsd.in: Likewise.
14698 * util/grub.d/10_linux.in: Likewise.
14699 * util/grub.d/10_netbsd.in: Likewise.
14700 * util/grub.d/10_windows.in: Likewise.
14701 * util/grub.d/20_linux_xen.in: Likewise.
14702 * util/grub.d/30_os-prober.in: Likewise.
14703 * util/update-grub_lib.in: Removed.
14704
14705 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14706
14707 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14708 a workaround for intel problem.
14709
14710 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14711 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14712 2012-01-23 pfsmorigo
14713
14714 * util/grub-install.in: Support dd'in into PreP partition.
14715 * util/grub-probe.c (probe): Support discovering partition type.
14716 (main): Support -t msdos_parttype.
14717
14718 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14719
14720 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14721 infinite recursion using counter.
14722 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14723 init to skip it if the magic check fails.
14724 (dec_stream_header): Init s->crc32.
14725
14726 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14727 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14728 2012-01-22 Richard Laager <rlaager@wiktel.com>
14729
14730 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14731 All users updated.
14732 (find_bestub): Determine correct size.
14733 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14734 (scan_disk): Align the size down.
14735 Call check pool before find_bestub to have ashift.
14736
14737 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14738
14739 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14740 dprintf in no-malloc zone.
14741
14742 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14743
14744 * configure.ac: Add back in test for limits.h.
14745
14746 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14747
14748 Support 4K-sector NTFS.
14749
14750 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14751 (grub_ntfs_data): Remove blocksize.
14752 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14753 Remove data argument. All users updated.
14754
14755 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14756
14757 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14758 being in .text to avoid dprel references.
14759 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14760 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14761 (grub_arch_highmemsize): Likewise.
14762 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14763 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14764 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14765
14766 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14767
14768 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14769
14770 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14771 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14772
14773 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14774
14775 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14776 GRUB_UTIL.
14777 (grub_set_datetime_cmos): Likewise.
14778
14779 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14780
14781 Make XZ compression parameters dependent on target and not host CPU.
14782
14783 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14784 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14785
14786 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14787
14788 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14789 set but not used variable.
14790
14791 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14792
14793 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14794 created when no uuid support is compiled into mkfs.reiser.
14795
14796 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14797
14798 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14799 (utf8_to_macroman): Do the opposite.
14800 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14801
14802 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14803
14804 * configure.ac: Refise build qemu_mips w/o unifont.
14805
14806 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14807
14808 Eliminate grub_min/grub_max prone to overflow usage.
14809
14810 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14811 (poll_nonroot_hub): Likewise.
14812 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14813 (grub_affs_label): Likewise.
14814 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14815 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14816 (grub_hfs_label): Likewise.
14817 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14818 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14819 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14820 (zap_leaf_array_get): Likewise.
14821 (dnode_get_path): Likewise.
14822 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14823 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14824 * grub-core/script/execute.c (grub_script_break): Likewise.
14825 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14826 grub_max.
14827 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14828 * include/grub/misc.h (grub_min): Removed.
14829 (grub_max): Likewise.
14830
14831 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14832
14833 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14834 direct.inode = 0.
14835
14836 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14837
14838 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14839
14840 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14841
14842 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14843
14844 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14845
14846 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14847 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14848
14849 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14850
14851 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14852 rather than a hack for grub_strncasemap.
14853
14854 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14855
14856 Support multiple initrds
14857 Note: part of this was accidently committed in r3739.
14858
14859 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14860 initrd.
14861 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14862 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14863 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14864 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14865 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14866
14867 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14868
14869 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14870 disks with unknown size.
14871 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14872
14873 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14874
14875 Remove defines pertaining to arbitrary limits not affecting GRUB
14876 anymore.
14877
14878 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14879 (EXT2_MAX_SYMLINKCNT): Likewise.
14880 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14881 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14882 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14883 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14884 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14885 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14886 (DN_MAX_OBJECT_SHIFT): Likewise.
14887 (DN_MAX_OFFSET_SHIFT): Likewise.
14888 (DN_MAX_OBJECT): Likewise.
14889 (DNODES_PER_LEVEL_SHIFT): Likewise.
14890 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14891 (SPA_MAXBLOCKSIZE): Likewise.
14892 (SPA_BLOCKSIZES): Likewise.
14893 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14894 (MZAP_MAX_BLKSZ): Likewise.
14895
14896 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14897
14898 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14899 handle NULL appropriately.
14900 Remove MIN.
14901
14902 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14903
14904 Fix efiemu.
14905
14906 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14907 cpu/types.h.
14908 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14909 * configure.ac: Fix efiemu check.
14910
14911 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14914 grub_probe.
14915 Reported by: adamwill
14916
14917 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14918
14919 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14920
14921 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14922
14923 Fix handling of wide characters in gfxterm.
14924
14925 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14926 (clear_char): Likewise.
14927 (paint_char): Skip code == NULL chars.
14928 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14929
14930 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14931
14932 * grub-core/normal/charset.c: Move comment to right place.
14933
14934 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14935
14936 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14937 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14938 (grub_affs_mount): Revert the correct version checking.
14939
14940 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14941
14942 * docs/grub.texi (Unicode): Mention several other unsupported features.
14943
14944 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14945
14946 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14947 case statements as compile-time one.
14948 (direct_read): Prevent spurious warnings.
14949 (grub_squash_read_data): Likewise.
14950
14951 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14952
14953 Various squash4 fixes and LZO and XZ support.
14954
14955 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14956 Add xzembed source files.
14957 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14958 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14959 (grub_squash_inode): New subtype long_dir.
14960 (SQUASH_TYPE_LONG_DIR): New inode type.
14961 (COMPRESSION): New enum.
14962 (XZBUFSIZ): New const.
14963 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14964 (read_chunk): Use data->decompress.
14965 (zlib_decompress): New function.
14966 (lzo_decompress): Likewise.
14967 (xz_decompress): Likewise.
14968 (squash_mount): Set new data fields.
14969 (grub_squash_iterate_dir): Handle long dir.
14970 (squash_unmount): Free xzdec and xzbuf.
14971 (grub_squash_open): Check ino type.
14972 (direct_read): Stylistic fixes. Use data->decompress.
14973 (grub_squash_read_data): Likewise.
14974 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14975 (get_byte): Likewise.
14976 (grub_zlib_disk_read): Removed.
14977 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14978 (GRUB_POSIX_BOOL_DEFINED): New define.
14979 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14980 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14981 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14982 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14983
14984 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14985
14986 Don't override more informative errors.
14987
14988 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14989 * grub-core/font/font.c (open_section): Likewise.
14990 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14991 filename. Don't override errors.
14992 (grub_cmd_openbsd_ramdisk): Don't override errors.
14993 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14994 (grub_cmd_initrd): Likewise.
14995 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14996 (grub_cmd_initrd): Likewise.
14997 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14998 (grub_cmd_linux): Likewise.
14999 (grub_cmd_initrd): Likewise.
15000 (grub_cmd_payload): Likewise.
15001 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15002 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15003 (grub_cmd_module): Likewise.
15004 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15005 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15006 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15007 (grub_cmd_xnu_mkext): Likewise.
15008 (grub_cmd_xnu_ramdisk): Likewise.
15009 (grub_xnu_check_os_bundle_required): Likewise.
15010 (grub_xnu_load_kext_from_dir): Likewise.
15011 (grub_cmd_xnu_kextdir): Likewise.
15012 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15013
15014 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15015
15016 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15017 as 1024 in block size field. Found on one of my test images.
15018 Small optimisation while on it.
15019
15020 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15021
15022 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15023 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15024 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15025 performance fixes while on it.
15026 (grub_sfs_close): Fix memory leak while on it.
15027 (grub_sfs_label): Convert Latin1 to UTF-8.
15028
15029 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15030
15031 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15032 space to avoid overflows.
15033 (grub_hfs_label): Convert from macroman to UTF-8.
15034
15035 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15036
15037 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15038
15039 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15040
15041 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15042
15043 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15044
15045 * unicode: Import Unicode 6.0 data.
15046
15047 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15048
15049 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15050 outside of range.
15051
15052 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15053
15054 Avoid cutting in the middle of UTF-8 character.
15055
15056 * include/grub/charset.h (grub_getend): New function.
15057 * grub-core/script/function.c (grub_script_function_find): Use
15058 grub_getend.
15059 * grub-core/normal/completion.c (add_completion): Likewise.
15060
15061 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15062
15063 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15064 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15065 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15066 (GRUB_UNICODE_TAG_END): Likewise.
15067 (GRUB_UNICODE_LAST_VALID): Likewise.
15068
15069 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15070
15071 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15072 len and make it smaller. All users updated.
15073 * util/import_unicode.py: Put length and not end character.
15074 Check length.
15075
15076 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15077
15078 Make better Unicode-compliant and unify some UTF-8 code pathes.
15079
15080 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15081 valid character.
15082 (grub_is_valid_utf8): Use grub_utf8_process.
15083 Check resulting code range.
15084 (grub_utf8_to_ucs4): Use grub_utf8_process.
15085 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15086 valid character.
15087
15088 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15089
15090 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15091
15092 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15093
15094 * docs/grub.texi (Filesystems): Mention AFS.
15095
15096 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15097
15098 * docs/grub.texi (Filesystems): Clarify restrictions.
15099 (Regexp): Mention non-Unicode regexp behaviour.
15100 (Other): Mention non-Unicode matching behaviour.
15101
15102 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15103
15104 Make HFS implementation use MacRoman.
15105
15106 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15107 (macroman): New const array.
15108 (macroman_to_utf8): New function.
15109 (utf8_to_macroman): Likewise.
15110 (grub_hfs_find_dir): Use utf8_to_macroman.
15111 (grub_hfs_dir): Use macroman_to_utf8.
15112 Set case_insensitive.
15113
15114 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15115
15116 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15117
15118 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15119
15120 Integrate hints into autogeneration scripts.
15121
15122 * docs/grub.texi (Filesystems): Add a hostdisk example.
15123 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15124 (grub-probe): Add ofpath.
15125 * gentpl.py: Remove group nosparc64.
15126 * grub-core/commands/search.c (cache_entry): New struct.
15127 (cache): New var.
15128 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15129 * grub-core/commands/search_wrap.c (options): Add platform-specific
15130 hint options.
15131 (grub_cmd_search): Handle platform-specific hints.
15132 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15133 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15134 (grub_util_biosdisk_data): Likewise.
15135 (grub_util_biosdisk_open): Set device_map.
15136 (read_device_map): Handle "" as indication of no map.
15137 Set device_map.
15138 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15139 (grub_util_biosdisk_get_compatibility_hint): New function.
15140 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15141 * include/grub/emu/hostdisk.h
15142 (grub_util_biosdisk_get_compatibility_hint): New proto.
15143 * util/grub-install.in: Don't call grub-mkdevicemap.
15144 Add platform-specific hint to load.cfg.
15145 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15146 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15147 hints. Set root preliminary to compatibility hint, not to OS name.
15148 * util/grub-probe.c (PRINT_*): Add hints.
15149 (print): Make static.
15150 (escape_of_path): New function.
15151 (guess_bios_drive): Likewise.
15152 (guess_efi_drive): Likewise.
15153 (guess_baremetal_drive): Likewise.
15154 (print_full_name): Likewise.
15155 (probe): Handle hints.
15156 (main): Likewise.
15157 * util/ieee1275/devicemap.c: Removed.
15158 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15159 updated.
15160 (grub_util_devname_to_ofpath): Return NULL on failure.
15161
15162 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15163 resource leak.
15164 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15165
15166 * po/POTFILES.in: Regenerated.
15167
15168 Allow purely long options
15169
15170 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15171 (SHORT_ARG_USAGE): Likewise.
15172 (grub_arg_show_help): Compare opt with help_options.
15173 (parse_option): Receive opt as argument. If makes big simplificatons.
15174 All users updated
15175
15176 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15177
15178 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15179 Restructure to avoid warning.
15180
15181 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15182
15183 * util/grub-install.in: Account for possible escaped comma in device
15184 name.
15185
15186 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15187
15188 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15189 channel.
15190
15191 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15192
15193 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15194 allocation and zero-setting.
15195 (grub_ieee1275_get_devname): Check that alias is complete.
15196
15197 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15198
15199 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15200 unaligned segments.
15201
15202 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15203
15204 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15205 prefix.
15206 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15207 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15208 Add ieee1275 prefix.
15209
15210 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15211
15212 * docs/grub.texi (Filesystems): Update.
15213
15214 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15215
15216 Support odc, newc and bigendian cpio formats.
15217
15218 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15219 * grub-core/Makefile.core.def (newc): New module.
15220 (odc): Likewise.
15221 (cpio_be): Likewise.
15222 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15223 (MAGIC): Likewise.
15224 (MAGIC2): Likewise.
15225 (head) [MODE_ODC]: Adapt for the format.
15226 (head) [MODE_NEWC]: Likewise.
15227 (head) [!MODE_*]: Write fields of interest as arrays.
15228 (MAGIC_USTAR): Removed.
15229 (read_number) [MODE_NEWC]: Change to hex.
15230 (read_number) [!MODE_*]: Parse binary arrays.
15231 (grub_cpio_find_file): Factor out the code for better structure and
15232 always use read_number.
15233 (grub_cpio_mount): Use MAGIC and MAGIC2.
15234 (grub_cpio_dir): Exit on first hook non-0 return.
15235 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15236 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15237 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15238 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15239 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15240 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15241 * grub-core/fs/newc.c: New file.
15242 * grub-core/fs/odc.c: Likewise.
15243 * grub-core/fs/cpio_be.c: Likewise.
15244
15245 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15246
15247 Fix handling of tar numbers occupying the whole field.
15248
15249 * grub-core/fs/cpio.c (read_number): New function.
15250 (grub_cpio_find_file): Use read_number instead of strtoull.
15251
15252 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15253
15254 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15255 occupying the whole field size.
15256
15257 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15258
15259 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15260
15261 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15262
15263 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15264
15265 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15266
15267 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15268 TARGET_IMG_LDFLAGS.
15269
15270 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15271
15272 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15273 (mountinfo_entry): Increase the field size to take escaping into
15274 account.
15275 (find_root_device_from_libzfs): Add one byte to size of strings for
15276 security.
15277
15278 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15279
15280 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15281 an assert.
15282 * util/grub-setup.c (setup): Likewise.
15283
15284 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15285
15286 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15287 _LzmaDecodeA.
15288
15289 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15290
15291 * docs/grub.texi (Internationalisation): New section.
15292
15293 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15294
15295 * docs/grub.texi (Loopback booting): New section.
15296
15297 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15298
15299 * util/grub-mkstandalone.in: Fix minor typo errors.
15300
15301 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15302
15303 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15304
15305 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15306 net/icmp.c and net/icmp6.c.
15307 (http): New module.
15308 (priority_queue): Likewise.
15309 * grub-core/io/bufio.c: Rewritten.
15310 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15311 TYPE_WITH_CONFIGFILE_OPTION.
15312 (legacy_commands): Add bootp and dhcp.
15313 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15314 (grub_legacy_parse): Likewise.
15315 * grub-core/lib/priority_queue.c: New file.
15316 * grub-core/net/arp.c: Add missing license header.
15317 (arp_find_entry): Removed.
15318 (arp_find_entry): Likewise.
15319 (grub_net_arp_resolve): Rename to ...
15320 (grub_net_arp_send_request): ...this.
15321 (grub_net_arp_receive): New card argument.
15322 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15323 Set router and DNS server.
15324 (grub_net_configure_by_dhcp_ack): Handle routing information.
15325 (grub_cmd_bootp): Set checksum.
15326 (grub_bootp_init): Remove net_dhcp.
15327 * grub-core/net/dns.c: New file.
15328 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15329 completion.
15330 (get_card_packet): Handle allocation.
15331 (grub_efinet_findcards): Set mtu.
15332 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15333 (get_card_packet): Handle allocation.
15334 (emucard): Set mtu.
15335 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15336 (GRUB_MOD_INIT): Set mtu.
15337 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15338 mtu.
15339 (get_card_packet): Handle allocation.
15340 (grub_ofnet_findcards): Set mtu.
15341 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15342 assert.
15343 (grub_net_recv_ethernet_packet): Handle IPv6.
15344 * grub-core/net/http.c: New file.
15345 * grub-core/net/icmp.c: Likewise.
15346 * grub-core/net/icmp6.c: Likewise.
15347 * grub-core/net/ip.c (ip6addr): New type.
15348 (ip6hdr): Likewise.
15349 (reassemble): Likewise.
15350 (cmp): New function.
15351 (reassembles): New variable.
15352 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15353 (id): New variable.
15354 (send_fragmented): New function.
15355 (grub_net_send_ip_packet): Rename to ...
15356 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15357 Handle non-UDP.
15358 (grub_net_recv_ip_packets): Rename to ...
15359 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15360 (free_rsm): New function.
15361 (free_old_fragments): Likewise.
15362 (grub_net_recv_ip4_packets): New function.
15363 (grub_net_send_ip6_packet): Likewise.
15364 (grub_net_send_ip_packet): Likewise.
15365 (grub_net_recv_ip6_packets): Likewise.
15366 (grub_net_recv_ip_packets): Likewise.
15367 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15368 (LINK_LAYER_CACHE_SIZE): New const.
15369 (link_layer_find_entry): New function.
15370 (grub_net_link_layer_add_address): Likewise.
15371 (grub_net_link_layer_resolve_check): Likewise.
15372 (grub_net_link_layer_resolve): Likewise.
15373 (grub_net_ipv6_get_slaac): Likewise.
15374 (grub_net_ipv6_get_link_local): Likewise.
15375 (grub_cmd_ipv6_autoconf): Likewise.
15376 (parse_ip): Handle one number representation.
15377 (parse_ip6): New functoion.
15378 (match_net): Handle IPv6.
15379 (grub_net_resolve_address): Handle IPv6 and DNS.
15380 (grub_net_resolve_net_address): Handle IPv6.
15381 (route_cmp): New function.
15382 (grub_net_route_address): Find best route.
15383 (grub_net_addr_to_str): Handle IPv6.
15384 (grub_net_addr_cmp): New function.
15385 (grub_net_add_addr): Register local route.
15386 (print_net_address): Handle net address.
15387 (grub_net_poll_cards): Retransmit TCP.
15388 (grub_net_poll_cards_idle_real): Likewise.
15389 (have_ahead): New function.
15390 (grub_net_seek_real): Use underlying seek.
15391 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15392 * grub-core/net/tcp.c: New file.
15393 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15394 (cmp): New function.
15395 (ack): Likewise.
15396 (tftp_receive): Handle unordered input.
15397 (destroy_pq): New function.
15398 (tftp_close): Close pq.
15399 * grub-core/net/udp.c: Put missing license header.
15400 (grub_net_udp_socket): New function.
15401 (udp_socket_register): Likewise.
15402 (grub_net_udp_close): Likewise.
15403 (grub_net_recv_udp_packet): Check checksum.
15404 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15405 * include/grub/misc.h (grub_memchr): New function.
15406 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15407 (grub_net_card_driver): Return buf in recv.
15408 (grub_net_slaac_mac_list): New struct.
15409 (grub_network_level_protocol_id): Add ipv6.
15410 (grub_net_network_level_addr): Likewise.
15411 (grub_net_network_level_net_addr): Likewise.
15412 (grub_net_app_protocol): Add seek.
15413 (grub_net_socket): Removed.
15414 (grub_net_sockets): Likewise.
15415 (grub_net_socket_register): Likewise.
15416 (grub_net_socket_unregister): Likewise.
15417 (FOR_NET_SOCKETS): Likewise.
15418 (grub_net_add_addr): Add const.
15419 (GRUB_NET_BOOTP_*): New enum.
15420 (grub_net_addr_cmp): New proto.
15421 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15422 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15423 (grub_net_hwaddr_to_str): NEw proto.
15424 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15425 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15426 (grub_dns_init): New proto.
15427 (grub_dns_fini): Likewise.
15428 (grub_net_tcp_retransmit): Likewise.
15429 (grub_net_link_layer_add_address): Likewise.
15430 (grub_net_link_layer_resolve_check): Likewise.
15431 (grub_net_link_layer_resolve): Likewise.
15432 (grub_net_dns_lookup): Likewise.
15433 (grub_net_add_dns_server): Likewise.
15434 (grub_net_remove_dns_server): Likewise.
15435 (GRUB_NET_TRIES): New const.
15436 (GRUB_NET_INTERVAL): Likewise.
15437 * include/grub/net/arp.h: Mostly rewritten.
15438 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15439 * include/grub/net/ip.h: Mostly rewritten.
15440 * include/grub/net/netbuff.h: Indent.
15441 * include/grub/net/tcp.h: New file.
15442 * include/grub/net/udp.h: Mostly rewritten.
15443 * include/grub/priority_queue.h: New file.
15444 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15445 (grub_swap_bytes64_compile_time): Likewise.
15446 (grub_cpu_to_be16_compile_time): Likewise.
15447 (grub_cpu_to_be32_compile_time): Likewise.
15448 (grub_cpu_to_be64_compile_time): Likewise.
15449 (grub_be_to_cpu64_compile_time): Likewise.
15450
15451 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15452
15453 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15454 UINT_TO_PTR with cast.
15455
15456 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15457
15458 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15459 don't use them.
15460
15461 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15462
15463 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15464 already there.
15465
15466 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15467
15468 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15469 confusing ipxe.
15470
15471 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15472
15473 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15474 Add missing const attribute.
15475 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15476 Likewise.
15477 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15478 Likewise.
15479
15480 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15481
15482 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15483 misaligned access.
15484 (serpent_setkey): Likewise.
15485 (serpent_encrypt_internal): Likewise.
15486 (serpent_decrypt_internal): Likewise.
15487 (serpent_encrypt): Don't put an alignment-increasing cast.
15488 (serpent_decrypt): Likewise.
15489 (serpent_test): Likewise.
15490
15491 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15492
15493 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15494
15495 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15496
15497 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15498
15499 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15500 grub_addr_t casts.
15501 (PTR_TO_UINT64): Likewise.
15502 (PTR_TO_UINT32): Likewise.
15503
15504 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15505
15506 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15507 because of stack.
15508 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15509 limit.
15510
15511 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15512
15513 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15514 text_width > available width a bit more gracefully.
15515
15516 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15517
15518 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15519 current address calculation.
15520
15521 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15522
15523 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15524 stack.
15525 (encode_block): Likewise.
15526
15527 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15528
15529 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15530 certainety.
15531
15532 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15533
15534 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15535 non-RS part to avoid RS messing with GDT.
15536 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15537 Increase to suit in realmode routines.
15538
15539 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15540
15541 * grub-core/kern/i386/realmode.S: Increase alignment.
15542 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15543
15544 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15545
15546 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15547 be deterministic.
15548 (syndroms): Compute 0 syndrom.
15549 (rs_recover): Use 0 syndrom.
15550
15551 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15552
15553 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15554
15555 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15556
15557 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15558 brackets.
15559
15560 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15561
15562 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15563 account.
15564 (get_top_pad): Likewise.
15565 (get_right_pad): Likewise.
15566 (get_bottom_pad): Likewise.
15567
15568 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15569
15570 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15571
15572 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15573
15574 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15575 attribute as the structure isn't guaranteed to be properly aligned.
15576 (grub_efi_pci_device_path): Likewise.
15577 (grub_efi_pccard_device_path): Likewise.
15578 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15579 specify the size of `memory_type'.
15580 (grub_efi_vendor_device_path): Likewise.
15581 (grub_efi_controller_device_path): Likewise.
15582 (grub_efi_acpi_device_path): Likewise.
15583 (grub_efi_expanded_acpi_device_path): Likewise.
15584 (grub_efi_atapi_device_path): Likewise.
15585 (grub_efi_scsi_device_path): Likewise.
15586 (grub_efi_fibre_channel_device_path): Likewise.
15587 (grub_efi_1394_device_path): Likewise.
15588 (grub_efi_usb_device_path): Likewise.
15589 (grub_efi_usb_class_device_path): Likewise.
15590 (grub_efi_i2o_device_path): Likewise.
15591 (grub_efi_mac_address_device_path): Likewise.
15592 (grub_efi_ipv4_device_path): Likewise.
15593 (grub_efi_ipv6_device_path): Likewise.
15594 (grub_efi_infiniband_device_path): Likewise.
15595 (grub_efi_uart_device_path): Likewise.
15596 (grub_efi_vendor_messaging_device_path): Likewise.
15597 (grub_efi_hard_drive_device_path): Likewise.
15598 (grub_efi_cdrom_device_path): Likewise.
15599 (grub_efi_vendor_media_device_path): Likewise.
15600 (grub_efi_file_path_device_path): Likewise.
15601 (grub_efi_protocol_device_path): Likewise.
15602 (grub_efi_piwg_device_path): Likewise.
15603 (grub_efi_bios_device_path): Likewise.
15604
15605 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15606
15607 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15608 (grub_ucs4_to_utf8_alloc): Likewise.
15609 (grub_ucs4_to_utf8): Likewise.
15610 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15611 (grub_ucs4_to_utf8_alloc): Likewise.
15612
15613 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15614
15615 AFFS never uses unicode.
15616
15617 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15618 (grub_latin1_to_utf8): New inline function.
15619 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15620
15621 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15622
15623 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15624 overflow.
15625
15626 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15627
15628 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15629 (grub_squash_dirent_header): Likewise.
15630 (read_chunk): Don't double swap.
15631 (grub_squash_iterate_dir): Fix swap sizes.
15632
15633 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15634
15635 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15636
15637 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15638
15639 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15640 (grub_hfs_iterate_dir): Likewise.
15641
15642 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15643
15644 Fix video on platforms where unaligned access is forbidden.
15645 Make several optimisations while on it.
15646
15647 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15648 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15649 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15650 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15651 Disable.
15652 (grub_video_fbblit_replace_16bit_1bit):
15653 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15654 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15655 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15656 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15657 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15658 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15659 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15660 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15661 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15662 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15663 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15664 (grub_video_fbblit_replace_index_RGB888): Likewise.
15665 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15666 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15667 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15668 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15669 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15670 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15671 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15672 Disable.
15673 (grub_video_fbblit_blend_XXX565_1bit):
15674 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15675 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15676 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15677 void *.
15678 * grub-core/video/fb/video_fb.c (common_blitter)
15679 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15680 (grub_video_fb_create_render_target_from_pointer)
15681 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15682 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15683 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15684 definition.
15685 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15686
15687 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15688
15689 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15690 HH22 and HM10 relocations.
15691
15692 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15693
15694 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15695
15696 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15697
15698 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15699 allocation succeeded.
15700
15701 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15702
15703 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15704 argument a u8 pointer. All users updated.
15705 Handle unaligned buffers.
15706
15707 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15708
15709 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15710 add_part to workaround compiler bug.
15711
15712 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15713
15714 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15715
15716 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15717
15718 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15719 Reserve alignment invariants.
15720 (grub_multiboot_load): Likewise.
15721 (retrieve_video_parameters): Likewise.
15722 (grub_multiboot_make_mbi): Likewise.
15723
15724 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15725
15726 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15727 incorrect pointer.
15728
15729 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15730
15731 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15732 (grub_pata_pio_write): Likewise.
15733
15734 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15735
15736 Add noreturn attributes and remove unreachable code.
15737
15738 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15739 code.
15740 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15741 code. Mark as noreturn.
15742 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15743 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15744 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15745 unreachable code.
15746 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15747 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15748 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15749 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15750 * include/grub/kernel.h (grub_main): Mark as noreturn.
15751 * include/grub/reader.h (grub_rescue_run): Likewise.
15752
15753 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15754
15755 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15756 redundant declaration.
15757
15758 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15759
15760 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15761 redundant declaration.
15762 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15763
15764 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15765
15766 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15767 to ensure alignment.
15768 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15769 alignment. Ensure tmp alignment.
15770 (grub_cmd_hdparm): Ensure buf alignment.
15771 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15772 to ensure alignment.
15773 (grub_ata_dumpinfo): Ensure text alignment.
15774 (grub_atapi_identify): Preserve alignment invariant.
15775 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15776
15777 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15778
15779 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15780 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15781 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15782 * include/grub/misc.h (grub_reboot)
15783 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15784 (grub_halt) [__mips__]: Likewise.
15785
15786 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15787
15788 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15789 Remove redundant declaration.
15790 (grub_mmap_get_post64): Likewise.
15791 (grub_mmap_get_upper): Likewise.
15792 (grub_mmap_get_lower): Likewise.
15793
15794 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15795
15796 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15797 uint32_t * to ensure alignment.
15798 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15799
15800 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15801
15802 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15803 uint16_t * to ensure alignment.
15804 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15805 alignment.
15806
15807 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15808
15809 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15810 to ensure alignment.
15811 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15812
15813 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15814
15815 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15816 Handle unaligned pointers.
15817 (u32at): Likewise.
15818 (u64at): Likewise.
15819 (fixup): Use byte access instead of v16at.
15820 (find_attr): Fix imporper usage of v32at.
15821 (read_data): Likewise.
15822 (list_file): Handle byte-swapping and unaligned strings.
15823 (grub_ntfs_label): Likewise.
15824
15825 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15826
15827 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15828 as it's not necessarily aligned.
15829
15830 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15831
15832 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15833 redundant declaration.
15834 (grub_serial_init): Likewise.
15835 (grub_terminfo_init): Likewise.
15836
15837 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15838
15839 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15840 function.
15841 (ZAP_HASH_IDX): Likewise.
15842 (ZAP_LEAF_HASH_SHIFT): Likewise.
15843 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15844 (LEAF_HASH): Likewise.
15845 (ZAP_LEAF_NUMCHUNKS): Likewise.
15846 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15847 alignment invariants. Return pointer. All users updated.
15848 (ZAP_LEAF_ENTRY): Make into inline function.
15849 (NBBY): Removed.
15850 (xor): LIkewise.
15851 (xor_out): Use grub_crypto_xor.
15852 (dnode_get_path): Use grub_get_unaligned.
15853 (nvlist_find_value): Likewise.
15854 (grub_zfs_nvlist_lookup_uint64): Likewise.
15855 (grub_zfs_nvlist_lookup_string): Likewise.
15856 (get_nvlist_size): Likewise.
15857 (grub_zfs_open): Likewise.
15858 (fill_fs_info): Likewise.
15859 (grub_zfs_dir): Likewise.
15860 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15861 alignment invariants.
15862 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15863 necessarily aligned.
15864
15865 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15866
15867 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15868
15869 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15870
15871 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15872 arithmetic to conserve alignment invariants.
15873
15874 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15875
15876 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15877 redundant declaration.
15878 (grub_efiemu_mm_obtain_request): Likewise.
15879 (grub_efiemu_prepare): Likewise.
15880
15881 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15882
15883 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15884 to match types.
15885
15886 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15887
15888 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15889 case of aunaligned recptr.
15890 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15891 alignment.
15892 (grub_hfsplus_btree_search): Handle unaligned index.
15893
15894 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15895
15896 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15897 to get freetag and skip.
15898
15899 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15900
15901 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15902 array.
15903 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15904 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15905
15906 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15907
15908 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15909 name for checksum and fix allocation algorithm.
15910
15911 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15912
15913 * include/grub/types.h (grub_properly_aligned_t): New type.
15914 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15915 (grub_get_unaligned16): Add explicit casts.
15916 (grub_get_unaligned32): Likewise.
15917 (grub_get_unaligned64): Likewise.
15918 (grub_set_unaligned16): New function.
15919 (grub_set_unaligned32): Likewise.
15920
15921 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15922
15923 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15924
15925 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15926
15927 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15928 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15929 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15930
15931 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15932
15933 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15934 conditionals.
15935
15936 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15937
15938 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15939 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15940
15941 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15942
15943 Unify and improve RAID and crypto xor.
15944
15945 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15946 changed to grub_crypto_xor
15947 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15948 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15949 Use bigger types when possible.
15950
15951 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15952
15953 * grub-core/disk/raid.c (scan_devices): Fix condition.
15954
15955 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15956
15957 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15958 Make name a const ptr.
15959
15960 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15961
15962 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15963 first argument a const pointer.
15964 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15965 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15966 proto.
15967 (grub_children_iterate): Likewise.
15968 (grub_machine_mmap_iterate): Remove redundant declaration.
15969
15970 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15971
15972 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15973 (grub_cmd_acpi) [!x86]: Disable EBDA.
15974
15975 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15976
15977 Enable UTF8 in gnulib regexp.
15978
15979 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15980 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15981 (isupper): Use grub_isupper.
15982 (isascii): New inline function.
15983 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15984 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15985 * grub-core/normal/charset.c (grub_utf8_process): New function.
15986 (grub_utf8_to_utf16): Use grub_utf8_process.
15987 (grub_encode_utf8_character): New function.
15988 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15989 * include/grub/charset.h (grub_utf8_process): New declaration.
15990 (grub_encode_utf8_character): Likewise.
15991 * include/grub/misc.h (grub_islower): New inline function.
15992 (grub_isupper): Likewise.
15993 (grub_strchrsub): Moved down to fix the definitions.
15994
15995 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15996
15997 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15998 specification.
15999
16000 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16001
16002 * include/grub/loader.h (grub_loader_register_preboot_hook):
16003 Use struct preboot * and not void * for handle. All users updated.
16004 (grub_loader_unregister_preboot_hook): Likewise.
16005
16006 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16007
16008 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16009 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16010 UTF-16-BE. All users updated.
16011 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16012 (grub_hfsplus_iterate_dir): Likewise.
16013 (grub_hfsplus_label): Likewise.
16014
16015 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16016
16017 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16018
16019 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16020
16021 Add missing const qualifiers.
16022
16023 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16024 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16025 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16026 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16027 (grub_lvm_check_flag): Likewise.
16028 * grub-core/efiemu/i386/coredetect.c
16029 (grub_efiemu_get_default_core_name): Likewise
16030 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16031 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16032 * grub-core/fs/ntfs.c (fixup): Likewise.
16033 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16034 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16035 (fzap_lookup): Likewise.
16036 (zap_lookup): Likewise.
16037 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16038 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16039 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16040 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16041 (grub_freebsd_add_meta_module): Likewise.
16042 (grub_cmd_freebsd_module): Likewise.
16043 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16044 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16045 (grub_xnu_writetree_get_size): Likewise.
16046 (grub_xnu_writetree_toheap_real): Likewise.
16047 (grub_xnu_find_key): Likewise.
16048 (grub_xnu_create_key): Likewise.
16049 (grub_xnu_create_value): Likewise.
16050 (grub_xnu_register_memory): Likewise.
16051 (grub_xnu_check_os_bundle_required): Likewise.
16052 (grub_xnu_scan_dir_for_kexts): Likewise.
16053 (grub_xnu_load_kext_from_dir): Likewise.
16054 * grub-core/normal/color.c (color_list): Likewise.
16055 * grub-core/normal/completion.c (current_word): Likewise.
16056 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16057 * grub-core/term/serial.c (grub_serial_find): Likewise.
16058 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16059 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16060 Likewise.
16061 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16062 (grub_freebsd_add_meta_module): Likewise.
16063 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16064 * include/grub/net.h (grub_net_card_driver): Likewise.
16065 (grub_net_card): Likewise.
16066 (grub_net_app_protocol): Likewise.
16067 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16068 * include/grub/serial.h (grub_serial_find): Likewise.
16069 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16070 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16071 (grub_xnu_create_value): Likewise.
16072 (grub_xnu_find_key): Likewise.
16073 (grub_xnu_scan_dir_for_kexts): Likewise.
16074 (grub_xnu_load_kext_from_dir): Likewise.
16075
16076 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16077 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16078 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16079 Moved from here ...
16080 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16081
16082 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16083
16084 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16085
16086 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16087
16088 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16089 (read_device): Fix size calculation.
16090
16091 2011-11-25 Robert Millan <rmh@gnu.org>
16092
16093 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16094 (find_root_device_from_libzfs): Add zpool output parser to be used
16095 as fallback when libzfs isn't available.
16096
16097 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16098
16099 * po/Makefile.in.in: Add missing escape-continuation.
16100
16101 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16102
16103 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16104
16105 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16106
16107 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16108
16109 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16110
16111 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16112
16113 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16114
16115 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16116
16117 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16118
16119 * grub-core/lib/adler32.c: Add missing license specification.
16120 * grub-core/lib/crc64.c: Likewise.
16121 * grub-core/loader/i386/pc/plan9.c: Likewise.
16122 * grub-core/partmap/plan.c: Likewise.
16123
16124 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16125
16126 Add facility to debug GRUB with gdb under qemu.
16127
16128 * grub-core/gdb_grub.in: New file.
16129 * grub-core/gmodule.pl.in: Likewise.
16130 * grub-core/Makefile.core.def (gmodule.pl): New script.
16131 (gdb_grub): Likewise.
16132
16133 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16134
16135 * util/grub-mount.c (argp_parser): Accept relative pathes.
16136 * util/grub-fstest.c (argp_parser): Likewise.
16137
16138 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16139
16140 Plan9 support.
16141
16142 * Makefile.util.def (libgrubmods): Add
16143 grub-core/partmap/plan.c.
16144 * docs/grub.texi: Notice Plan9 support.
16145 * grub-core/Makefile.core.def (plan9): New module.
16146 (part_plan): Likewise.
16147 * grub-core/loader/i386/pc/plan9.c: New file.
16148 * grub-core/partmap/plan.c: Likewise.
16149 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16150 define.
16151 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16152 * include/grub/mm.h (grub_extend_alloc): New inline function.
16153
16154 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16155
16156 Make Reed-Solomon faster by using power of generator representation of
16157 GF(256)*.
16158
16159 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16160 (gf_double_t): Likewise.
16161 (gf_invert): Removed.
16162 (gf_powx): New array.
16163 (gf_powx_inv): Likewise.
16164 (scratch): Move higher.
16165 (gf_reduce): Removed.
16166 (gf_mul): Use powx.
16167 (gf_invert): Likewise.
16168 (init_inverts): Replaced with ...
16169 (init_powx): ...this. All users updated.
16170 (pol_evaluate): Replace multiplications with additions.
16171 (rs_encode): Likewise.
16172 (gauss_eliminate): Call gf_invert.
16173 (grub_reed_solomon_add_redundancy): Call init_powx.
16174 (grub_reed_solomon_recover): Call init_powx unconditionally.
16175
16176 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16177
16178 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16179
16180 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16181
16182 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16183 disk->partiton for safety.
16184
16185 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16186
16187 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16188 Fix a memory leak.
16189 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16190
16191 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16192
16193 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16194
16195 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16196
16197 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16198
16199 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16200
16201 Fix spaces handling in proc/self/mountinfo.
16202
16203 * util/getroot.c (unescape): New function.
16204 (grub_find_root_device_from_mountinfo): Use unescape.
16205
16206 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16207
16208 Support ZFS embedding.
16209
16210 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16211 (grub_zfs_fs): Register grub_zfs_embed.
16212
16213 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16214
16215 Fix MIPS compilation.
16216
16217 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16218 * include/grub/offsets.h: Rename decompressor fields from
16219 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16220 * util/grub-mkimage.c (image_targets): Use new names.
16221
16222 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16223
16224 Defer multiboot device parsing until we're in compressed part.
16225
16226 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16227 bsd_part. setdevice has fallen into disuse.
16228 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16229 (bsd_part): Likewise.
16230 (boot_dev): New variable.
16231 (multiboot_trampoline): Don't parse multiboot device.
16232 Pass multiboot device in %edx.
16233 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16234 grub_boot_device.
16235 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16236 Likewise.
16237 * grub-core/kern/i386/pc/startup.S: Save edx.
16238 (grub_boot_drive): Removed.
16239 (grub_install_dos_part): Likewise.
16240 (grub_install_bsd_part): Likewise.
16241 (grub_boot_device): New variable.
16242 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16243 (grub_install_bsd_part): Likewise.
16244 (grub_boot_drive): Likewise.
16245 (grub_boot_device): New variable.
16246 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16247 Removed.
16248 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16249 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16250 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16251 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16252 * util/grub-install.in: Remove redundant condition.
16253
16254 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16255
16256 Fix bug introduced by previous commit.
16257
16258 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16259
16260 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16261
16262 Use decompressors framework on i386-pc. It increases core size
16263 by 46 bytes but improves compatibility and maintainability.
16264
16265 * grub-core/Makefile.core.def (lzma_decompress): New image.
16266 (kernel): Add i386_pc_ldflags.
16267 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16268 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16269 to real_to_prot, prot_to_real and device info.
16270 * include/grub/offsets.h: Renamed decompressor offsets.
16271 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16272 (image_target_desc): Remove raw_size and rename decompressor fields.
16273 (compress_kernel): Handle lzma.
16274 (generate_image): Handle decompressors on i386-pc.
16275
16276 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16277
16278 * configure.ac: Add -fno-asynchronous-unwind-tables.
16279
16280 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16281
16282 Move assembly code to C by using intwrap. It increases core size
16283 by 88 bytes but improves compatibility and maintainability.
16284
16285 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16286 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16287 ... here. Translated to C.
16288 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16289 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16290 ... here. Translated to C.
16291 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16292 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16293 ... here. Translated to C.
16294 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16295 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16296 ... here. Translated to C.
16297 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16298 * grub-core/term/i386/pc/console.c (grub_console_cls):
16299 ... here. Translated to C.
16300 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16301 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16302 ... here. Translated to C.
16303 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16304 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16305 Translated to C.
16306 * grub-core/term/i386/pc/console.c (int10_9): New function.
16307 (grub_console_putchar): Likewise.
16308 * include/grub/i386/pc/console.h: Removed the not anymore shared
16309 functions.
16310
16311 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16312
16313 Move grub_chainloader_real_boot out of the kernel.
16314
16315 * grub-core/Makefile.am: Remove machine/loader.h.
16316 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16317 Removed.
16318 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16319 variable.
16320 (grub_relocator16_keep_a20_enabled): Likewise.
16321 (grub_relocator16_boot): Fill new variables.
16322 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16323 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16324 relocator.
16325 (grub_chainloader_unload): Likewise.
16326 (grub_chainloader_cmd): Likewise.
16327 * include/grub/i386/pc/loader.h: Removed.
16328 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16329 and esi. All initialisers updated.
16330
16331 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16332 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16333
16334 * Makefile.util.def (grub-mount): New util.
16335 * .bzrignore: Add grub-mount.
16336 * configure.ac: Check for fuse and enable grub-mount if available.
16337 * docs/man/grub-mount.h2m: New file.
16338 * util/grub-mount.c: Likewise.
16339
16340 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16341
16342 * grub-core/commands/efi/fixvideo.c: Gettextize.
16343 * grub-core/commands/hashsum.c: Likewise.
16344 * grub-core/commands/i386/cmostest.c: Likewise.
16345 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16346 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16347 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16348 * grub-core/commands/lsmmap.c: Likewise.
16349 * grub-core/commands/menuentry.c: Likewise.
16350 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16351 * grub-core/commands/setpci.c: Likewise.
16352 * grub-core/loader/i386/bsd.c: Likewise.
16353 * grub-core/loader/i386/linux.c: Likewise.
16354 * util/getroot.c: Likewise.
16355 * util/grub-editenv.c: Likewise.
16356 * util/grub-fstest.c: Likewise.
16357 * util/grub-mkfont.c: Likewise.
16358 * util/grub-mkimage.c: Likewise.
16359 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16360 * util/grub-pe2elf.c: Likewise.
16361 * util/grub-probe.c: Likewise.
16362 * util/grub-setup.c: Likewise.
16363 * util/ieee1275/ofpath.c: Likewise.
16364 * util/misc.c: Likewise.
16365 * util/raid.c: Likewise.
16366
16367 2011-11-11 Robert Millan <rmh@gnu.org>
16368
16369 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16370 __attribute__((unused)) from `os_dev', which *is* being used.
16371
16372 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16373
16374 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16375 forgotten define.
16376 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16377 GRUB_IA64_DL_GOT_ALIGN.
16378 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16379 GRUB_IA64_DL_TRAMP_ALIGN.
16380
16381 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16382
16383 Replace grub_fatal with normal errors in i386 linux loader.
16384
16385 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16386 (allocate_pages): Check find_efi_mmap_size return value.
16387 (grub_e820_add_region): Return error.
16388 (grub_linux_boot): Check mmap return value.
16389
16390 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16391
16392 * grub-core/commands/acpihalt.c: Gettextized.
16393 * grub-core/commands/cacheinfo.c: Likewise.
16394 * grub-core/commands/cmp.c: Likewise.
16395 * grub-core/commands/efi/loadbios.c: Likewise.
16396 * grub-core/commands/gptsync.c: Likewise.
16397 * grub-core/commands/ieee1275/suspend.c: Likewise.
16398 * grub-core/commands/legacycfg.c: Likewise.
16399 * grub-core/commands/memrw.c: Likewise.
16400 * grub-core/commands/minicmd.c: Likewise.
16401 * grub-core/commands/parttool.c: Likewise.
16402 * grub-core/commands/time.c: Likewise.
16403 * grub-core/commands/videoinfo.c: Likewise.
16404 * grub-core/disk/geli.c: Likewise.
16405 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16406 * grub-core/disk/luks.c: Likewise.
16407 * grub-core/disk/lvm.c: Likewise.
16408 * grub-core/font/font_cmd.c: Likewise.
16409 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16410 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16411 * grub-core/gfxmenu/view.c: Likewise.
16412 * grub-core/kern/emu/hostdisk.c: Likewise.
16413 * grub-core/kern/emu/main.c: Likewise.
16414 * grub-core/kern/emu/misc.c: Likewise.
16415 * grub-core/kern/emu/mm.c: Likewise.
16416 * grub-core/kern/mips/arc/init.c: Likewise.
16417 * grub-core/kern/mips/loongson/init.c: Likewise.
16418 * grub-core/kern/partition.c: Likewise.
16419 * grub-core/lib/i386/halt.c: Likewise.
16420 * grub-core/lib/mips/arc/reboot.c: Likewise.
16421 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16422 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16423 * grub-core/loader/i386/xnu.c: Likewise.
16424 * grub-core/loader/multiboot.c: Likewise.
16425 * grub-core/net/bootp.c: Likewise.
16426 * grub-core/net/net.c: Likewise.
16427 * grub-core/normal/term.c: Likewise.
16428 * grub-core/partmap/bsdlabel.c: Likewise.
16429 * grub-core/parttool/msdospart.c: Likewise.
16430 * grub-core/term/gfxterm.c: Likewise.
16431 * grub-core/term/terminfo.c: Likewise.
16432 * grub-core/video/i386/pc/vbe.c: Likewise.
16433 * util/grub-menulst2cfg.c: Likewise.
16434 * util/grub-mkdevicemap.c: Likewise.
16435 * util/grub-mklayout.c: Likewise.
16436 * util/grub-mkrelpath.c: Likewise.
16437 * util/grub-script-check.c: Likewise.
16438 * util/ieee1275/grub-ofpathname.c: Likewise.
16439 * util/resolve.c: Likewise.
16440
16441 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16442
16443 Support %1$d syntax.
16444
16445 * tests/printf_unit_test.c: New file.
16446 * Makefile.util.def (printf_test): New test.
16447 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16448
16449 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16450
16451 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16452 fix.
16453
16454 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16455
16456 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16457 dprintf.
16458 * grub-core/font/font.c (grub_font_load): Likewise.
16459
16460 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16461
16462 * util/grub-macho2img.c: Add comment concerning gettext.
16463 * grub-core/lib/legacy_parse.c: Likewise.
16464
16465 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16466
16467 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16468 (grub_xvasprintf): Likewise.
16469
16470 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16471
16472 Add const keyword to grub_env_get and gettextize week days.
16473
16474 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16475 (grub_read_hook_datetime): Return const char *.
16476 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16477 updated.
16478 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16479 Mark for gettext.
16480 (grub_get_weekday_name): Return const char *. Call gettext.
16481 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16482 char * and len as the argument. All users updated.
16483 (grub_script_argv_split_append): Receive const char *.
16484 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16485 * include/grub/env.h (grub_env_get): Likewise.
16486 (grub_env_read_hook_t): Return const char *.
16487 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16488 (grub_script_argv_split_append): Likewise.
16489
16490 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16491
16492 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16493
16494 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16495
16496 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16497 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16498
16499 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16500
16501 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16502 Fix prototype.
16503
16504 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16505
16506 Fix mips compilation.
16507
16508 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16509 normal decoder.
16510 (hashes): Use in embed decoder as well (for sizes).
16511 (dec_stream_header): Fix embed decompressor logic.
16512 (dec_stream_footer): Likewise.
16513
16514 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16515
16516 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16517 an error and not a fatal on unrecognised relocation types.
16518
16519 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16520
16521 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16522 Issue error rather than printf on unknown arguments.
16523
16524 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16525
16526 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16527 Make buf a const.
16528
16529 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16530
16531 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16532 Fix module name.
16533
16534 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16535
16536 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16537 leftover debug printf.
16538
16539 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16540
16541 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16542
16543 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16544
16545 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16546 A stylistic fix.
16547
16548 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16549
16550 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16551
16552 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16553
16554 Allow all modules to perform serial IO
16555
16556 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16557 * include/grub/serial.h (grub_serial_port_configure): New inline
16558 function.
16559 (grub_serial_port_fetch): Likewise.
16560 (grub_serial_port_put): Likewise.
16561 (grub_serial_port_fini): Likewise.
16562 (grub_serial_find): New proto.
16563
16564 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16565
16566 Put symlink at the end of the node and fix a potential
16567 memory corruption.
16568
16569 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16570 Make symlink into an array.
16571 (set_rockridge): Set have_symlink and alloc_dirents.
16572 (grub_iso9660_read_symlink): Use new layout.
16573 (grub_iso9660_iterate_dir): Fix memory corruption.
16574 Use new layout.
16575 (grub_iso9660_dir): Set have_symlink.
16576 (grub_iso9660_open): Likewise.
16577
16578 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16579
16580 Remove local keyword.
16581
16582 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16583 (version_test_gt): Likewise.
16584 (version_find_latest): Likewise.
16585 (gettext_printf): Likewise.
16586 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16587
16588 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16589
16590 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16591
16592 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16593
16594 Fix ZFS memory and resource leaks.
16595
16596 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16597 All users updated.
16598 Free type on exit.
16599 (fill_vdev_info): New parameter inserted. All users updated.
16600 (check_pool_label): Likewise.
16601 (scan_disk): Likewise.
16602 (scan_devices): Close non-inserted disks.
16603 (fzap_iterate): Free l.
16604 (unmount_device): Free children descripto memory.
16605
16606 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16607
16608 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16609 argument (access out of bounds).
16610
16611 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16612
16613 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16614 >= 6 drives.
16615
16616 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16617
16618 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16619 Fix declaration.
16620
16621 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16622
16623 Fix several memory leaks.
16624
16625 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16626 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16627 (grub_cpio_dir): Likewise.
16628 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16629 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16630 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16631 (grub_romfs_label): Likewise.
16632 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16633 (squash_unmount): New function.
16634 (grub_squash_dir): Fix memory leak.
16635 (grub_squash_open): Likewise.
16636 (grub_squash_read): Likewise.
16637 (grub_squash_mtime): Likewise.
16638 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16639 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16640 * util/grub-fstest.c (fstest): Likewise.
16641
16642 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16643
16644 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16645 avoid accessing beyond the array.
16646
16647 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16648
16649 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16650
16651 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16652
16653 Several AFFS fixes.
16654
16655 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16656 (GRUB_AFFS_FLAG_FFS): Removed.
16657 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16658 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16659 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16660 (grub_fshelp_node): Make block 32-bit.
16661 Add block_cache and last_block_cache.
16662 (grub_affs_read_block): Fill and use block cache.
16663 (grub_affs_read_file): Removed.
16664 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16665 boot block.
16666 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16667 safety.
16668 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16669 space.
16670 (grub_affs_close): Free block cache.
16671 (grub_affs_read): Use grub_fshelp_read_file directly.
16672
16673 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16674
16675 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16676 with no error set.
16677
16678 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16679
16680 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16681 used variable.
16682 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16683 Likewise.
16684
16685 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16686
16687 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16688
16689 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16690 byteswap when needed.
16691
16692 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16693
16694 Fix FreeBSD compilation.
16695
16696 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16697 to avoid circular dependency.
16698 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16699 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16700 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16701
16702 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16703
16704 Fix ZFS crypto error types.
16705
16706 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16707 (grub_gcm_decrypt): Likewise.
16708 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16709 from PBKDF2.
16710
16711 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16712
16713 Illumos support.
16714
16715 * Makefile.util.def (10_illumos): New script.
16716 * configure.ac: Set COND_HOST_ILLUMOS.
16717 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16718 Support Illumos calls.
16719 (find_partition_start) [__sun__]: Likewise.
16720 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16721 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16722 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16723 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16724 device.
16725 * util/grub-probe.c (probe) [__sun__]: Do character check.
16726 * util/grub.d/10_illumos.in: New file.
16727
16728 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16729
16730 Support escaped commas in hostdisk.
16731
16732 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16733 (find_grub_drive): Use unescape_cmp.
16734 (make_device_name): Escape commas.
16735
16736 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16737
16738 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16739
16740 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16741
16742 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16743 variable.
16744
16745 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16746
16747 Support trampoline jumps on powerpc.
16748
16749 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16750 __ia64__ path.
16751 (grub_dl_load_segments): Set mod->sz.
16752 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16753 segments.
16754 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16755 (jump): Likewise.
16756 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16757 function.
16758 (trampoline): New struct.
16759 (trampoline_template): New const.
16760 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16761 * include/grub/dl.h (grub_dl): Add sz element.
16762 [__powerpc__]: Follow __ia64__.
16763 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16764 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16765 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16766 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16767
16768 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16769
16770 ZFS crypto support.
16771
16772 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16773 * grub-core/Makefile.core.def (zfscrypt): New module.
16774 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16775 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16776 it. All users updated.
16777 (grub_zfs_decrypt): New var.
16778 (grub_zfs_load_key): Likewise.
16779 (zio_checksum_functions): Add SHA256+MAC.
16780 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16781 (zio_read): Handle encrypted blocks.
16782 (zap_verify): Remove incorrect check.
16783 (fzap_iterate): Handle non-standard fzap.
16784 (zap_iterate): Likewise.
16785 (zap_iterate_u64): New function.
16786 (dnode_get_fullpath): Load keys.
16787 * grub-core/fs/zfs/zfscrypt.c: New file.
16788 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16789 (grub_crypto_ecb_encrypt): Make input const.
16790 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16791 (grub_crypto_ecb_encrypt): Make input const.
16792 (GRUB_CIPHER_AES): New macro.
16793 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16794 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16795 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16796 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16797 prefix. All users updated.
16798 (grub_zfs_add_key): New proto.
16799 (grub_zfs_decrypt): Likewise.
16800 (grub_zfs_load_key): Likewise.
16801 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16802 * util/grub-fstest.c (options): Add -K option.
16803 (argp_parser): Likewise.
16804
16805 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16806
16807 Support zle compression on ZFS.
16808
16809 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16810 (decomp_table): Add zle.
16811 * include/grub/zfs/zio.h (zio_compress): Add zle.
16812
16813 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16814
16815 Support BtrFS embedding.
16816
16817 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16818 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16819 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16820 * util/grub-setup.c (setup): Use fs embedding if available.
16821 Add additional sanity check.
16822
16823 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16824
16825 * util/grub-install.in: Fix condition for config_opt.
16826
16827 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16828
16829 Support third redundancy strip on raidz3.
16830
16831 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16832 Return error on singularity. All users updated.
16833 (read_device): Don't stop on 3rd failure on raidz3.
16834
16835 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16836
16837 Support case-insensitive ZFS subvolumes.
16838
16839 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16840 All users updated.
16841 (zap_hash): Likewise.
16842 (name_cmp): New function.
16843 (zap_leaf_array_equal): New parameter case_insensitive.
16844 All users updated.
16845 (zap_leaf_lookup): Likewise.
16846 (fzap_lookup): Likewise.
16847 (zap_lookup): Likewise.
16848 (dnode_get_path): New parameter case_insensitive. Retrieve case
16849 sensitiviness of a volume. All users updated.
16850 (dnode_get_fullpath): New parameter case_insensitive.
16851 All users updated.
16852 (grub_zfs_dir): Set info.case_insensitiveness.
16853
16854 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16855
16856 Support second redundancy strip on raidz(2,3).
16857
16858 * grub-core/fs/zfs/zfs.c (powx): New array.
16859 (powx_inv): Likewise.
16860 (poly): New const.
16861 (xor_out): New function.
16862 (gf_mul): Likewise.
16863 (recovery): Likewise.
16864 (read_device): Use second redundancy strip.
16865
16866 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16867
16868 Use a power of generator representation of GF(256) multiplication group
16869 to save space time and complexity.
16870
16871 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16872 (raid6_table2): Likewise.
16873 (powx): New array.
16874 (powx_inv): Likewise.
16875 (poly): New const.
16876 (grub_raid_block_mul): Replace with ...
16877 (grub_raid_block_mulx): ...this.
16878 (grub_raid6_init_table): Rewritten.
16879 (grub_raid6_recover): Use power of generator representation.
16880
16881 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16882
16883 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16884 for the right device.
16885
16886 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16887
16888 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16889 expected by grub-mkimage and it's more clear since there is no implicit
16890 padding.
16891
16892 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16893
16894 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16895 disk.
16896 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16897
16898 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16899
16900 * util/grub-mkrescue.in: Fix handling xorriso option.
16901
16902 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16903
16904 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16905 NULL.
16906
16907 2011-11-03 crocket <crockabiscuit@gmail.com>
16908
16909 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16910
16911 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16912
16913 XZ CRC64 and SHA256 support.
16914
16915 * Makefile.util.def (libgrubmods): Add crc64.c.
16916 * grub-core/Makefile.core.def (crc64): New module.
16917 * grub-core/lib/crc64.c: New file.
16918 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16919 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16920 Fix the type.
16921 (MAX_HASH_SIZE): New define.
16922 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16923 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16924 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16925 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16926 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16927 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16928 Handle non-crc32 hashes.
16929 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16930 (dec_stream_header): Handle non-crc32 hashes.
16931 (dec_stream_footer): Likewise.
16932 (dec_block_header): Likewise.
16933 (dec_main): Likewise.
16934 (xz_dec_init): Likewise.
16935 (xz_dec_reset): Likewise.
16936 (xz_dec_end): Likewise.
16937 * util/import_gcry.py: Add CRC64 line.
16938
16939 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16940
16941 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16942 as well.
16943
16944 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16945
16946 Make reiserfs label retrieval similar to other *_label functions.
16947
16948 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16949 (REISERFS_MAX_LABEL_LENGTH): Removed.
16950 (REISERFS_LABEL_OFFSET): Likewise.
16951 (grub_reiserfs_label): Rewritten.
16952
16953 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16954
16955 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16956 field.
16957
16958 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16959
16960 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16961
16962 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16963
16964 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16965 drive failure on both raidz and raidz2.
16966
16967 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16968
16969 Fix RAIDZ(2) for >= 5 devices.
16970
16971 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16972 asize argument. All users updated.
16973
16974 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16975
16976 Fix RAIDZ(2).
16977
16978 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16979 (fill_vdev_info_real): Set ashift.
16980 (read_device): Rewrite RAIDZ part based on reverse engineering.
16981
16982 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16983
16984 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16985 don't report potentially unavialiable fields in debug output.
16986 (find_path): Fix double-free and memory leak.
16987
16988 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16989
16990 Read label on UFS1.
16991
16992 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16993 (grub_ufs_fs): Always set .label.
16994
16995 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16996
16997 Use shifts in UFS.
16998
16999 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17000 (grub_ufs_data): New field log2_blksz.
17001 (grub_ufs_read_file): Use shifts.
17002 (grub_ufs_mount): Check block size and logarithm it.
17003
17004 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17005
17006 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17007 long symlinks.
17008
17009 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17010
17011 Handle symlinks and long names on tar and cpio.
17012
17013 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17014 (ATTR_FILE): Likewise.
17015 (ATTR_DIR): Likewise.
17016 (ATTR_LNK): Likewise.
17017 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17018 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17019 L and K entries.
17020 (grub_cpio_mount): Zero-fill data.
17021 (handle_symlink): New function.
17022 (grub_cpio_dir): Handle symlinks.
17023 (grub_cpio_open): Likewise.
17024 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17025
17026 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17027
17028 Fix iso9660 filename limitations and fix memory leaks.
17029
17030 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17031 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17032
17033 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17034
17035 Fix JFS file name length limitations.
17036
17037 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17038 (grub_jfs_diropen): Fix maximum filename length.
17039 (grub_jfs_getent): Fix filename length.
17040 (grub_jfs_lookup_symlink): Fix size checks.
17041
17042 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17045 string.
17046
17047 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17048
17049 Leverage BFS implementation to read AFS.
17050
17051 * Makefile.util.def (libgrubmods): Add afs.c.
17052 * grub-core/Makefile.core.def (afs): New module
17053 * grub-core/fs/afs.c: New file.
17054 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17055
17056 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17057
17058 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17059
17060 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17061
17062 * grub-core/fs/bfs.c: Run indent.
17063
17064 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17065
17066 BFS implementation based on the specification.
17067
17068 * grub-core/fs/bfs.c: New file.
17069 * Makefile.util.def (libgrubmods): Add bfs.c.
17070 * grub-core/Makefile.core.def (bfs): New module.
17071
17072 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17073
17074 * util/grub-fstest.c (cmd_cp): Clarify error message.
17075 (cmd_cmp): Likewise.
17076
17077 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17078
17079 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17080 and befs_be.
17081
17082 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17083
17084 Remove afs and befs because of copyright problem.
17085
17086 * grub-core/fs/afs.c: Removed.
17087 * grub-core/fs/afs_be.c: Removed.
17088 * grub-core/fs/befs.c: Removed.
17089 * grub-core/fs/befs_be.c: Removed.
17090 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17091 * grub-core/Makefile.core.def (afs): Removed.
17092 (afs_be): Likewise.
17093 (befs): Likewise.
17094 (befs_be): Likewise.
17095
17096 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17097
17098 Prefer rockridge over Joliet.
17099
17100 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17101 to ...
17102 (set_rockridge): ... here.
17103 (grub_iso9660_mount): Check rockridge on the primary label when
17104 discovering. Ignore Joliet if Rockridge is present.
17105
17106 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17107
17108 Use shifts in nilfs2.
17109
17110 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17111 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17112 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17113 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17114 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17115 (grub_nilfs2_entries_per_block): Replaced with ...
17116 (grub_nilfs2_log_entries_per_block_log): ... this.
17117 (grub_nilfs2_blocks_per_group): Replaced with ...
17118 (grub_nilfs2_blocks_per_group_log): ... this.
17119 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17120 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17121 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17122 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17123 (grub_nilfs2_palloc_entry_offset): Replaced ...
17124 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17125 (grub_nilfs2_dat_translate): Use shifts.
17126 (grub_nilfs2_read_inode): Likewise.
17127 (GRUB_MOD_INIT): Ensure that logs are correct.
17128
17129 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17130
17131 Use shifts in minix filesystem.
17132
17133 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17134 (GRUB_MINIX_ZONE2SECT): Likewise.
17135 (grub_minix_data): Replace block_size with log_block_size.
17136 (grub_minix_read_file): Use shifts.
17137 (grub_minix_mount): Check block size and take a logarithm.
17138
17139 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17140
17141 Use shifts in squash4.
17142
17143 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17144 (squash_mount): Check block size and take logarithm.
17145 (direct_read): Use shifts.
17146
17147 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17148
17149 Correct befs block counting logic.
17150
17151 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17152 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17153 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17154 (grub_afs_read_inode): Use block_shift.
17155 (RANGE_SHIFT): New definition.
17156 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17157 unexpected conditions, use shifts and appropriate types.
17158 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17159
17160 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17161
17162 * grub-core/disk/raid.c (scan_devices): Check partition.
17163 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17164
17165 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17166
17167 Support BFS (befs) UUID.
17168
17169 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17170 (grub_afs_small_data_element_header): New struct.
17171 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17172 (grub_afs_read_attribute) [MODE_BFS]: New function.
17173 (grub_afs_iterate_dir): Allocate for complete inode.
17174 (grub_afs_mount): Likewise.
17175 (grub_afs_uuid) [MODE_BFS]: New function.
17176 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17177
17178 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17179
17180 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17181 (zfs_unmount): Fix memory leak.
17182
17183 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17184
17185 Support NTFS reparse points.
17186
17187 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17188 (symlink_descriptor): New struct.
17189 (grub_ntfs_read_symlink): New function.
17190 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17191 (grub_ntfs_open): Likewise.
17192
17193 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17194
17195 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17196
17197 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17198
17199 fstest xnu_uuid subcommand.
17200
17201 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17202 grub-core/commands/xnu_uuid.c.
17203 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17204 (fstest): Handle xnu_uuid.
17205 (options): Document xnu_uuid.
17206 (argp_parser): Parse xnu_uuid.
17207
17208 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17209
17210 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17211 -l argument. Add newline at the end if printing.
17212 (GRUB_MOD_INIT): Document -l.
17213
17214 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17215
17216 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17217
17218 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17219
17220 ZFS multi-device and version 33 support.
17221
17222 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17223 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17224 (grub_zfs_data): Add multidev-ice-related fields.
17225 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17226 (dva_get_offset): Make dva const.
17227 (zfs_fetch_nvlist): New function.
17228 (fill_vdev_info_real): Likewise.
17229 (fill_vdev_info): Likewise.
17230 (check_pool_label): Likewise.
17231 (scan_disk): Likewise.
17232 (scan_devices): Likewise.
17233 (read_device): Likewise.
17234 (read_dva): Likewise.
17235 (zio_read_gang): Use read_dva.
17236 (zio_read_data): Likewise.
17237 (zap_leaf_lookup): Add missing endian conversion.
17238 (zap_verify): Add missing endian conversion. All users updated.
17239 (fzap_lookup): Likewise.
17240 (fzap_iterate): Likewise.
17241 (dnode_get_path): Handle SA bonus.
17242 (nvlist_find_value): Make input const. All users updated.
17243 (unmount_device): New function.
17244 (zfs_unmount): Use unmount_device.
17245 (zfs_mount): Use scan_disk.
17246 (zfs_mtime): New function.
17247 (grub_zfs_open): Handle system attributes.
17248 (fill_fs_info): Likewise.
17249 (grub_zfs_dir): Likewise.
17250 (grub_zfs_fs): Add mtime.
17251 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17252 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17253 (SA_MTIME_OFFSET): Likewise.
17254 (SA_SYMLINK_OFFSET): Likewise.
17255 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17256 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17257 (fstest): Support zfsinfo.
17258 (argp_parser): Likewise.
17259
17260 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17261
17262 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17263 error.
17264
17265 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17266
17267 ZFS fixes.
17268
17269 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17270 sharing the same block. Iterate over correct number of indices.
17271 (dnode_get_path): Handle symlinks correctly.
17272
17273 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17274
17275 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17276
17277 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17278
17279 Read label on HFS+.
17280
17281 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17282 (grub_hfsplus_btree_search): Fix types.
17283 (grub_hfsplus_label): Implement.
17284
17285 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17286
17287 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17288
17289 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17290
17291 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17292
17293 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17294
17295 Fix symlink handling on iso9660.
17296
17297 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17298 All users updated.
17299 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17300 (grub_iso9660_read_symlink): Moved most of code ...
17301 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17302
17303 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17304
17305 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17306 Use union to avoid breaking strict-aliasing rules.
17307
17308 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17309
17310 Support multi-extent iso files.
17311
17312 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17313 Add node.
17314 (grub_fshelp_node): Revamp. All users updated.
17315 (FLAG_*): New enum.
17316 (read_node): New function.
17317 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17318 All users updated.
17319 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17320 (get_node_size): New function.
17321 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17322 entries.
17323 Fix memory leak on . and ..
17324 (grub_iso9660_read): Use read_node.
17325 (grub_iso9660_close): Free node.
17326
17327 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17328
17329 Fix tar 4G limit and handle paths containing dot.
17330
17331 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17332 (canonicalize): New function.
17333 (grub_cpio_find_file): Use canonicalize. Store offs in
17334 grub_disk_addr_t.
17335 (grub_cpio_dir): Use grub_disk_addr_t.
17336 (grub_cpio_open): Likewise.
17337
17338 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17339
17340 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17341
17342 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17343 unused flags.
17344 (grub_squash_inode): Add long_file and block_size.
17345 (grub_squash_cache_inode): New struct.
17346 (grub_squash_dirent): Make types into enum.
17347 (SQUASH_TYPE_LONG_REGULAR): New type.
17348 (grub_squash_frag_desc): Add field size.
17349 (SQUASH_BLOCK_FLAGS): New enum.
17350 (grub_squash_data): Use grub_squash_cache_inode.
17351 (grub_fshelp_node): Make ino_chunk 64-bit.
17352 (read_chunk): Minor argument change. All users updated.
17353 (squash_mount): Use correct le_to_cpu.
17354 (grub_squash_open): Handle LONG_REGULAR.
17355 (direct_read): New function.
17356 (grub_squash_read_data): Handle blocks correctly.
17357
17358 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17359
17360 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17361
17362 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17363
17364 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17365
17366 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17367
17368 Fix 2G limit on ZFS.
17369
17370 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17371 types.
17372 (uberblock_verify): Likewise.
17373 (dmu_read): Likewise.
17374 (grub_zfs_read): Likewise. Remove invalid cast.
17375
17376 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17377
17378 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17379 (grub_jfs_blkno): Fix incorrect shift.
17380 (grub_jfs_read_file): Use more appropriate types.
17381
17382 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17383
17384 Support triple indirect on minix2 and minix3.
17385
17386 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17387 Declare triple_indir_zone.
17388 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17389 indirect.
17390
17391 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17392
17393 Minix FS fixes.
17394
17395 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17396 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17397 Rename ctime to mtime. All users updated.
17398 (grub_minix_get_file_block): Fix types and double indirect computations.
17399
17400 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17401
17402 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17403 if no label is found.
17404 (grub_fat_iterate_dir): Fix file size type.
17405 (grub_fat_iterate_dir): Likewise.
17406
17407 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17408
17409 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17410 save some space.
17411 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17412 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17413
17414 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17415
17416 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17417
17418 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17419
17420 * util/import_gcry.py: Accept space between # and include.
17421
17422 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17423
17424 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17425
17426 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17427
17428 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17429
17430 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17431 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17432 yylex_strncpy.
17433 * grub-core/script/yylex.l: Add fine-grained #pragma.
17434
17435 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17436
17437 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17438 New inline function.
17439 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17440 Likewise.
17441 (memset) [GRUB_UTIL]: Likewise.
17442 (memcmp) [GRUB_UTIL]: Likewise.
17443
17444 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17445
17446 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17447 inline function rather than a define.
17448
17449 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17450
17451 * util/grub-setup.c: Add missing include.
17452
17453 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17454
17455 * util/ieee1275/grub-ofpathname.c: Add missing include.
17456
17457 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17458
17459 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17460 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17461 Likewise.
17462
17463 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17464
17465 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17466 grub_memcmp usage.
17467
17468 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17469
17470 * util/grub-install.in: Add datarootdir as per automake manual
17471 suggestion.
17472 * util/grub-mknetdir.in: Likewise.
17473
17474 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17475
17476 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17477 suggestion.
17478 * util/grub.d/10_kfreebsd.in: Likewise.
17479 * util/grub.d/10_linux.in: Likewise.
17480 * util/grub.d/10_netbsd.in: Likewise.
17481 * util/grub.d/10_windows.in: Likewise.
17482 * util/grub.d/20_linux_xen.in: Likewise.
17483
17484 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17485
17486 Remove redundant grub_kernel_image_size.
17487
17488 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17489 _edata and _start.
17490 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17491 the small code. It moves it only by few bytes but simplifies the code.
17492 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17493 _start.
17494 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17495 (grub_kernel_image_size): Removed.
17496 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17497 (grub_kernel_image_size): Removed.
17498 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17499 compiled with Apple toolchain.
17500 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17501 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17502 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17503 (grub_total_module_size): Likewise.
17504 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17505 Removed.
17506 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17507 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17508 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17509 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17510 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17511 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17512 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17513 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17514 Removed.
17515 (grub_total_module_size): Removed.
17516 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17517 (image_targets): Likewise.
17518 Set .compressed_size to no field on sparc.
17519 (generate_image): Remove kernel_image_size handling.
17520
17521 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17522
17523 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17524 NULL pointer dereference.
17525
17526 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17527
17528 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17529 done with a dedicated section.
17530
17531 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17532 Ensure the correct position of boot_path.
17533 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17534 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17535 other fields.
17536 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17537 * include/grub/boot.h: Removed. All references removed.
17538 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17539 Removed.
17540 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17541
17542 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17543
17544 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17545 name.
17546
17547 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17548
17549 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17550
17551 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17552
17553 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17554 Don't add the bogus brackets.
17555
17556 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17557
17558 ExFAT support.
17559
17560 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17561 * grub-core/Makefile.core.def (exfat): New module.
17562 * grub-core/fs/exfat.c: New file.
17563 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17564 (GRUB_FAT_ATTR_*): Make into an enum.
17565 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17566 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17567 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17568 (GRUB_FAT_MAXFILE): Removed.
17569 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17570 (grub_current_fat_bpb_t): New type.
17571 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17572 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17573 (grub_fat_dir_node_t): New type.
17574 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17575 (fat_log2) [MODE_EXFAT]: Removed.
17576 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17577 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17578 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17579 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17580 (grub_fat_label) [MODE_EXFAT]: New function.
17581 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17582 reserved_first_sector to 0.
17583
17584 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17585
17586 Move grub_reboot out of the kernel.
17587
17588 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17589 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17590 * grub-core/lib/efi/reboot.c: ... here.
17591 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17592 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17593 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17594 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17595 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17596 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17597 * grub-core/lib/ieee1275/reboot.c: ... here.
17598 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17599 * grub-core/lib/mips/arc/reboot.c: ... here.
17600 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17601 * grub-core/lib/mips/loongson/reboot.c: ...here.
17602 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17603 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17604 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17605 * include/grub/i386/reboot.h: New file.
17606 * include/grub/mips/loongson/ec.h: Fix includes.
17607 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17608 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17609 * grub-core/lib/i386/reboot.c: New file.
17610
17611 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17612
17613 Make grub_prefix into module to fix the arbitrary limit and save
17614 some space.
17615
17616 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17617 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17618 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17619 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17620 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17621 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17622 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17623 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17624 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17625 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17626 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17627 * include/grub/ia64/efi/kernel.h: Removed.
17628 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17629 (grub_prefix): Removed.
17630 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17631 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17632 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17633 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17634 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17635 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17636 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17637 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17638 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17639 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17640 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17641 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17642 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17643 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17644 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17645 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17646 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17647 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17648 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17649 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17650 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17651 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17652 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17653 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17654 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17655 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17656 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17657 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17658 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17659 from module.
17660 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17661 prefix_end.
17662 (image_targets): Likewise.
17663 (generate_image): Put prefix as a module.
17664
17665 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17666
17667 Replace grub_module_iterate with FOR_MODULES.
17668
17669 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17670 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17671 (grub_efi_modules_addr): ...this.
17672 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17673 (grub_efi_init): Set grub_modbase.
17674 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17675 (grub_modbase): New variable.
17676 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17677 (grub_modbase): New variable.
17678 (grub_machine_init): Set grub_modbase.
17679 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17680 (grub_modbase): New variable.
17681 (grub_machine_init): Set grub_modbase.
17682 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17683 (grub_modbase): New variable.
17684 (grub_machine_init): Set grub_modbase.
17685 * grub-core/kern/main.c (grub_module_iterate): Remove.
17686 (grub_modules_get_end): Use grub_modbase.
17687 (grub_load_modules): Use FOR_MODULES.
17688 (grub_load_config): Likewise.
17689 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17690 (grub_modbase): New variable.
17691 (grub_machine_init): Set grub_modbase.
17692 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17693 (grub_modbase): New variable.
17694 (grub_machine_init): Set grub_modbase.
17695 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17696 Removed.
17697 (grub_modbase): New variable.
17698 (grub_machine_init): Set grub_modbase.
17699 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17700 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17701 (grub_module_iterate): Likewise.
17702 (grub_modbase): New variable declaration.
17703 (FOR_MODULES): New macro.
17704
17705 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17706
17707 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17708 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17709
17710 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17711
17712 Fix few obvious type discrepancies.
17713
17714 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17715 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17716 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17717 variable.
17718 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17719 and connected types.
17720 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17721 offset.
17722 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17723 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17724 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17725 and connected types.
17726
17727 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17728
17729 Fix python 3.x incompatibilities.
17730
17731 * gentpl.py: Put brackets around print strings.
17732 * util/import_gcry.py: Open explicitly as utf-8.
17733 Use in instead of has_key.
17734
17735 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17736
17737 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17738 (GRUB_XFS_INO_AGBITS): Make into inline function.
17739 (GRUB_XFS_INO_INOINAG): Likewise.
17740 (GRUB_XFS_INO_AG): Likewise.
17741 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17742 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17743 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17744 (GRUB_XFS_EXTENT_SIZE): Likewise.
17745 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17746 (GRUB_XFS_NEXT_DIRENT): Likewise.
17747 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17748 (grub_xfs_read_file): Fix offset type.
17749
17750 2011-10-15 Robert Millan <rmh@gnu.org>
17751
17752 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17753
17754 2011-10-15 Robert Millan <rmh@gnu.org>
17755
17756 Fix build problem on FreeBSD and GNU/kFreeBSD.
17757
17758 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17759
17760 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17761
17762 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17763
17764 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17765 types.
17766 (grub_hfsplus_btree_recoffset): Likewise.
17767 (grub_hfsplus_btree_recptr): Likewise.
17768 (grub_hfsplus_find_block): Likewise.
17769 (grub_hfsplus_btree_search): Likewise.
17770 (grub_hfsplus_read_block): Likewise.
17771 (grub_hfsplus_read_file): Likewise.
17772 (grub_hfsplus_mount): Likewise.
17773 (grub_hfsplus_btree_iterate_node): Likewise.
17774 (grub_hfsplus_btree_search): Likewise.
17775 (grub_hfsplus_iterate_dir): Likewise.
17776 (grub_hfsplus_read): A small code simplification.
17777
17778 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17779
17780 * grub-core/kern/emu/hostdisk.c
17781 (convert_system_partition_to_system_disk): Don't assume that children
17782 of mapper nodes are mapper nodes.
17783
17784 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17785
17786 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17787 * include/grub/misc.h (grub_isxdigit): New function.
17788 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17789 switched to grub_isxdigit.
17790 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17791 number starting with a letter.
17792
17793 2011-10-09 Robert Millan <rmh@gnu.org>
17794
17795 LVM support for FreeBSD and GNU/kFreeBSD.
17796
17797 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17798 GNU/kFreeBSD.
17799 (LVM_DEV_MAPPER_STRING): Move from here ...
17800 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17801 * util/getroot.c: Include `<grub/util/lvm.h>'.
17802 (grub_util_get_dev_abstraction): Enable
17803 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17804 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17805 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17806 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17807 support it.
17808 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17809 GNU/kFreeBSD.
17810 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17811 when LVM abstraction is required for ${GRUB_DEVICE}.
17812
17813 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17814
17815 Add support for LZO compression in GRUB:
17816 - import of minilzo library,
17817 - LZO decompression for btrfs,
17818 - lzop files decompression.
17819
17820 * grub-core/io/lzopio.c: New file.
17821 * grub-core/lib/adler32.c: Likewise.
17822 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17823 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17824 * grub-core/lib/minilzo/minilzo.c: Likewise.
17825 * grub-core/lib/minilzo/minilzo.h: Likewise.
17826 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17827 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17828 grub-core/lib/minilzo/minilzo.c to common.
17829 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17830 cflags in cppflags.
17831 * grub-core/Makefile.core.def (btrfs): Likewise.
17832 * grub-core/Makefile.core.def (lzopio): New module.
17833 (adler32): Likewise.
17834 * grub-core/fs/btrfs.c: Include minilzo.h.
17835 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17836 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17837 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17838 (grub_btrfs_lzo_decompress): New function.
17839 (grub_btrfs_extent_read): Add support for LZO compression type.
17840 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17841 (GRUB_USHRT_MAX): Likewise.
17842 (GRUB_UINT_MAX): Likewise.
17843 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17844 (UINT_MAX): Likewise.
17845 (CHAR_BIT): Likewise.
17846 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17847 grub-core/lib/posix_wrap/limits.h
17848 (UCHAR_MAX): Likewise.
17849 * include/grub/file.h (grub_file_filter_id): New compression filter
17850 GRUB_FILE_FILTER_LZOPIO.
17851 * include/grub/file.h (grub_file_filter_id): Set
17852 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17853 * include/grub/types.h (grub_get_unaligned16): New function.
17854 (grub_get_unaligned32): Likewise.
17855 (grub_get_unaligned64): Likewise.
17856 * util/import_gcry.py (cryptolist): Add adler32.
17857
17858 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17859
17860 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17861 in perspective decreases the complexity of build system and fixes
17862 compilation right now.
17863
17864 2011-10-01 Ales Nesrsta <starous@volny.cz>
17865
17866 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17867 (fixed problem related to using UHCI with coreboot).
17868
17869 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17870
17871 * gentpl.py: Use Autogen macros so that the output template file
17872 (Makefile.tpl) size is reduced.
17873
17874 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17875
17876 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17877 extra_dist.
17878
17879 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17880
17881 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17882 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17883
17884 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17885
17886 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17887 _fullpath.
17888
17889 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17890
17891 Remove extra declaration of sleep for mingw32.
17892
17893 * util/misc.c (sleep) [__MINGW32__]: Removed.
17894 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17895
17896 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17897
17898 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17899 type and packname.
17900 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17901 Resurrected.
17902 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17903 (grub_netbsd_btinfo_bootwedge): New struct.
17904 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17905 New function.
17906 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17907
17908 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17909
17910 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17911 loader.
17912
17913 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17914
17915 Fix incorrect identifiers in bash-completion.
17916
17917 * util/bash-completion.d/grub-completion.bash.in
17918 (_grub_mkpasswd-pbkdf2): Rename to ...
17919 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17920 (_grub_script-check): Rename to ...
17921 (_grub_script_check): ... this. All users updated.
17922
17923 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17924
17925 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17926 Return 0 if disk isn't biosdisk.
17927
17928 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17929
17930 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17931 on NetBSD.
17932 * Makefile.util.def (grub-fstest): Likewise.
17933
17934 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17935
17936 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17937 Get sector size from disk label.
17938
17939 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17940
17941 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17942 */README* as well as README*.
17943 Reported by: Axel Beckert.
17944
17945 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17946
17947 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17948 case of less than 256 MiB of RAM.
17949
17950 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17951
17952 * grub-core/commands/wildcard.c (make_regex): Handle @.
17953
17954 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17955
17956 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17957
17958 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17959
17960 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17961 AC_LANG_CONFTEST macros.
17962
17963 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17964
17965 Add grub-fstest option to uncompress data for commands.
17966
17967 * util/grub-fstest.c (uncompress): New var.
17968 (options): New option -u.
17969
17970 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17971
17972 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17973 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17974
17975 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17976
17977 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17978 file type was not recognized correctly (not gzip or corrupted).
17979
17980 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17981
17982 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17983 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17984
17985 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17986
17987 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17988 loongson.
17989 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17990 video_radeon_fuloong2e.
17991 * grub-core/video/radeon_fuloong2e.c: New file.
17992 * include/grub/video.h (grub_video_id_t): Add new ID
17993 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17994
17995 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17996
17997 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17998 define.
17999 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18000 that PRID matches the detected subplatform and reset the subplatform
18001 if it doesn't.
18002
18003 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18004
18005 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18006
18007 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18008
18009 Fix PCI iterating on functions >= 4.
18010
18011 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18012 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18013 Removed.
18014 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18015 (grub_pci_read): Fix bitmask.
18016 (grub_pci_read_word): Likewise.
18017 (grub_pci_read_byte): Likewise.
18018 (grub_pci_write): Likewise.
18019 (grub_pci_write_word): Likewise.
18020 (grub_pci_write_byte): Likewise.
18021
18022 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18023
18024 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18025 can still be specified in TARGET_CFLAGS)
18026
18027 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18028
18029 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18030
18031 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18032 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18033 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18034 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18035 (FULOONG): Rename to ...
18036 (FULOONG2F): ... this. All users updated.
18037 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18038 (machtype_fuloong2f_str): ... this.
18039 (machtype_fuloong2e_str): New string.
18040 Check for machtype_fuloong2e_str.
18041 * grub-core/loader/mips/linux.c (loongson_machtypes)
18042 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18043 * grub-core/term/serial.c (loongson_defserial)
18044 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18045 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18046 loongson_defserial.
18047 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18048 Rename to ...
18049 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18050 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18051 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18052 to IMAGE_FULOONG2F_FLASH. All users updated.
18053 (image_targets): Rename images.
18054 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18055
18056 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18057
18058 Make enable of disk cache statistics code configurable.
18059
18060 * configure.ac: --enable-cache-stats added.
18061 * config.h.in (DISK_CACHE_STATS): New define.
18062 * grub-core/Makefile.core.def (cacheinfo): New command.
18063 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18064 * grub-core/commands/cacheinfo.c: New file.
18065 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18066 moved to cacheinfo.c.
18067 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18068 debug code.
18069 * include/grub/disk.h: Likewise.
18070
18071 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18072
18073 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18074 * grub-core/Makefile.am: Likewise.
18075
18076 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18077
18078 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18079 non-zero pull.
18080
18081 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18082
18083 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18084 All users updated.
18085 (grub_jfs_lookup_symlink): Use correct starting inode.
18086
18087 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18088
18089 * util/grub-setup.c (main): Add missing gcry initialisation.
18090
18091 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18092
18093 Don't accept text modes on EFI when booting Linux.
18094
18095 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18096 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18097
18098 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18099 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18100
18101 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18102 use of "/path/.." as in grub-install for EFI as well as handling
18103 symlinks correctly.
18104 Fixes Debian bug #637768.
18105
18106 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18107
18108 * util/grub-probe.c: Remove duplicate #include.
18109
18110 2011-08-10 Robert Millan <rmh@gnu.org>
18111
18112 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18113
18114 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18115 function.
18116 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18117 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18118
18119 2011-08-03 Robert Millan <rmh@gnu.org>
18120
18121 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18122 la_array as packed.
18123 Reported by: Zachary Bedell
18124
18125 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18126
18127 * configure.ac: The Loongson port requires grub-mkfont due to its
18128 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18129 be built.
18130
18131 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18132
18133 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18134 processing arguments (otherwise help2man fails when GRUB has not yet
18135 been installed).
18136
18137 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18138
18139 New script grub-mkstandalone.
18140
18141 * Makefile.util.def (grub-mkstandalone): New script.
18142 * docs/man/grub-mkstandalone.h2m: New file.
18143 * util/grub-mkstandalone.in: Likewise.
18144
18145 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18146
18147 Support ATA disks with 4K sectors.
18148
18149 * include/grub/ata.h (grub_ata): New member log_sector_size.
18150 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18151 (grub_ata_identify): Read sector size.
18152 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18153
18154 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18155
18156 * util/grub-install.in: Don't use uhci outside of x86.
18157
18158 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18159
18160 * util/grub-mkrescue.in: Add missing quotes.
18161
18162 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18163
18164 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18165 dereference.
18166
18167 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18168
18169 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18170
18171 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18172
18173 * include/grub/video.h: add missing EXPORT_FUND on
18174 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18175
18176 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18177
18178 * include/grub/mips/kernel.h: Fix define conflict.
18179
18180 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18181
18182 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18183 all four ways.
18184
18185 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18186
18187 Preferred resolution detection for VBE.
18188
18189 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18190 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18191 the Flat Panel extension, in line with the X.org VESA driver.
18192 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18193 New function.
18194 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18195 (grub_vbe_bios_read_edid): Likewise.
18196 (grub_vbe_get_preferred_mode): Likewise.
18197 (grub_video_vbe_setup): When the mode is "auto", try to get the
18198 preferred mode from VBE, and use the largest mode that is no larger
18199 than the preferred mode (some BIOSes expose a preferred mode that is
18200 not in their mode list!). If this fails, fall back to 640x480 as a
18201 safe conservative choice.
18202 (grub_video_vbe_get_edid): New function.
18203 (grub_video_vbe_adapter): Add get_edid.
18204 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18205 (struct grub_video_adapter): Add get_edid.
18206 (grub_video_edid_checksum): Add prototype.
18207 (grub_video_edid_preferred_mode): Likewise.
18208 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18209 structure.
18210
18211 * grub-core/commands/videoinfo.c (print_edid): New function.
18212 (grub_cmd_videoinfo): Print EDID if available.
18213
18214 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18215 is more appropriate on a wider range of platforms than 640x480.
18216 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18217 documentation.
18218
18219 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18220
18221 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18222
18223 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18224
18225 * po/POTFILES.in: Regenerate.
18226
18227 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18228
18229 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18230 incorrect memory usage.
18231
18232 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18233
18234 * util/grub-install.in: Source grub-mkconfig_lib.
18235
18236 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18237
18238 Remove getroot.c from core on emu platform.
18239
18240 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18241 kern/emu/raid.c.
18242 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18243 useless.
18244 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18245 * util/getroot.c (get_win32_path): ... here.
18246 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18247 * util/getroot.c (fini_libzfs): ... here.
18248 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18249 * util/getroot.c (grub_get_libzfs_handle): ... here.
18250 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18251 Moved from here...
18252 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18253 * grub-core/kern/emu/misc.c
18254 (grub_make_system_path_relative_to_its_root): Moved from here...
18255 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18256 * grub-core/kern/emu/getroot.c: Moved from here ...
18257 * util/getroot.c: ... here. All users updated.
18258 * grub-core/kern/emu/raid.c: Moved from here ...
18259 * util/raid.c: ... here. All users updated.
18260
18261 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18262
18263 * po/POTFILES.in: Regenerate.
18264
18265 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18266
18267 Fix compilation on GNU/Linux.
18268
18269 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18270 Disable geli.
18271 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18272 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18273 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18274
18275 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18276 2011-07-07 Michael Gorven <michael@gorven.za.net>
18277 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18278
18279 LUKS and GELI support.
18280
18281 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18282 grub-core/disk/luks.c, grub-core/disk/geli.c,
18283 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18284 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18285 grub-core/lib/arg.c.
18286 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18287 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18288 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18289 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18290 (grub-bin2h): Add libgcry.a.
18291 (grub-mkimage): Likewise.
18292 (grub-mkrelpath): Likewise.
18293 (grub-script-check): Likewise.
18294 (grub-editenv): Likewise.
18295 (grub-mkpasswd-pbkdf2): Likewise.
18296 (grub-pe2elf): Likewise.
18297 (grub-fstest): Likewise.
18298 (grub-mkfont): Likewise.
18299 (grub-mkdevicemap): Likewise.
18300 (grub-probe): Likewise.
18301 (grub-ofpath): Likewise.
18302 (grub-mklayout): Likewise.
18303 (example_unit_test): Likewise.
18304 (grub-menulst2cfg): Likewise.
18305 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18306 * grub-core/Makefile.core.def (cryptodisk): New module.
18307 (luks): Likewise.
18308 (geli): Likewise.
18309 * grub-core/disk/AFSplitter.c: New file.
18310 * grub-core/disk/cryptodisk.c: Likewise.
18311 * grub-core/disk/geli.c: Likewise.
18312 * grub-core/disk/luks.c: Likewise.
18313 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18314 grub_util_is_lvm.
18315 (grub_util_get_dm_abstraction): New function.
18316 (grub_util_follow_gpart_up): Likewise.
18317 (grub_util_get_geom_abstraction): Likewise.
18318 (grub_util_get_dev_abstraction): Use new functions.
18319 (grub_util_pull_device): Pull GELI and LUKS.
18320 (grub_util_get_grub_dev): Handle LUKS and GELI.
18321 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18322 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18323 (follow_geom_up): Removed.
18324 (grub_util_fd_seek): New function.
18325 (open_device): Use grub_util_fd_seek.
18326 (nread): Rename to ..
18327 (grub_util_fd_read): ... this. All users updated.
18328 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18329 (grub_crypto_cbc_decrypt): Likewise.
18330 (grub_crypto_hmac_write): Likewise.
18331 (grub_crypto_hmac_buffer): Likewise.
18332 (grub_password_get): Extend to util.
18333 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18334 New member modname.
18335 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18336 * include/grub/cryptodisk.h: New file.
18337 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18338 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18339 LUKS and GELI.
18340 (grub_util_follow_gpart_up): New proto.
18341 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18342 (grub_util_fd_read): Likewise.
18343 (grub_cryptodisk_cheat_mount): Likewise.
18344 (grub_util_cryptodisk_print_uuid): Likewise.
18345 (grub_util_get_fd_sectors): Likewise.
18346 * util/grub-fstest.c (mount_crypt): New var.
18347 (fstest): Mount crypto if requested.
18348 (options): New option -C.
18349 (argp_parser): Parse -C.
18350 (main): Init and fini gcry.
18351 * util/grub-install.in: Support cryptodisk install.
18352 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18353 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18354 cryptodisk.
18355 (prepare_grub_to_access_device): Likewise.
18356 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18357 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18358 (probe_cryptodisk_uuid): New function.
18359 (probe_abstraction): Likewise.
18360 (probe): Use new functions.
18361 * util/import_gcry.py: Create Makefile.utilgcry.def.
18362 Add modname member.
18363
18364 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18365
18366 Lazy device scanning.
18367
18368 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18369 (grub-setup): Remove util/raid.c.
18370 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18371 * grub-core/disk/lvm.c (scan_depth): New variable.
18372 (grub_lvm_iterate): Rescan if necessary.
18373 (find_lv): New function based on grub_lvm_open.
18374 (grub_lvm_open): Use find_lv. Rescan on error.
18375 (is_node_readable): New function.
18376 (is_lv_readable): Likewise.
18377 (grub_lvm_scan_device): Skip already found disks.
18378 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18379 Stop if searched device is found and readable.
18380 * grub-core/disk/raid.c (inscnt): New variable.
18381 (scan_depth): Likewise.
18382 (scan_devices): New function based on grub_raid_register. Abort if
18383 looked for device is found.
18384 (grub_raid_iterate): Rescan if needed.
18385 (find_array): NEw function based on -grub_raid_open.
18386 (grub_raid_open): Use find_array and rescan.
18387 (insert_array): Set became_readable_at.
18388 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18389 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18390 New function.
18391 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18392 (grub_util_pull_device): New function.
18393 (grub_util_get_grub_dev): Call grub_util_pull_device.
18394 * util/raid.c: Moved to ..
18395 * grub-core/kern/emu/raid.c: ... here.
18396 (grub_util_raid_getmembers): New parameter "bootable".
18397 All users updated. Support 1.x.
18398 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18399 All users updated.
18400 * include/grub/disk.h (grub_disk_pull_t): New enum.
18401 (grub_disk_dev): Change iterate prototype.
18402 All users updated.
18403 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18404 New proto.
18405 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18406 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18407 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18408 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18409 All users updated.
18410 * include/grub/util/raid.h: Removed.
18411
18412 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18413
18414 * po/POTFILES.in: Regenerate.
18415
18416 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18417
18418 Unify sparc init with other ieee1275.
18419
18420 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18421 instead of kern/sparc64/ieee1275/init.c.
18422 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18423 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18424 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18425 grub/machine/kernel.h.
18426 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18427 (grub_claim_heap) [__sparc__]: Use sparc version.
18428 (grub_machine_init): Moved args parsing to
18429 (grub_parse_cmdline): ...this.
18430 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18431 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18432 New definition.
18433 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18434
18435 Move BOOTP to separate file.
18436
18437 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18438 * grub-core/net/net.c: Move all BOOTP functions to
18439 * grub-core/net/bootp.c: ... here.
18440
18441 Use frame interface on PXE.
18442
18443 * grub-core/Makefile.core.def (pxecmd): Removed.
18444 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18445 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18446 * grub-core/i386/pc/pxe.c: Moved from here ...
18447 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18448 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18449 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18450
18451 EFI network support.
18452
18453 * grub-core/Makefile.core.def (efinet): New module.
18454 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18455 here...
18456 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18457 All users updated.
18458 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18459 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18460 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18461 * grub-core/net/drivers/efi/efinet.c: New file.
18462 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18463 (grub_efi_net_config): New extern var.
18464
18465 Various cleanups and bugfixes.
18466
18467 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18468 error.
18469 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18470 disk declared as partition.
18471 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18472 leak on failure.
18473 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18474 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18475 (grub_debug_zalloc): Likewise.
18476 (grub_debug_realloc): Likewise.
18477 (grub_debug_memalign): Likewise.
18478 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18479 Check that target is IPv4.
18480 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18481 local-mac-address as fallback.
18482 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18483 memory leak.
18484 * grub-core/net/ip.c (ipchksum): Rename to ...
18485 (grub_net_ip_chksum): ... this. All users updated.
18486 (grub_net_recv_ip_packets): Special handling for DHCP.
18487 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18488
18489 Unify prefix handling
18490
18491 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18492 (grub_machine_get_bootlocation): ... this.
18493 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18494 (grub_machine_get_bootlocation): ... this.
18495 (grub_prefix): New variable.
18496 (prefix): Removed.
18497 (root_dev): New variable.
18498 (dir): Likewise.
18499 (main): Use new variables.
18500 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18501 Revamped into ...
18502 (grub_machine_get_bootlocation): ... this.
18503 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18504 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18505 (grub_machine_get_bootlocation): ... this.
18506 (grub_machine_set_prefix): Removed.
18507 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18508 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18509 Revamped into ...
18510 (grub_machine_get_bootlocation): ... this.
18511 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18512 (grub_set_prefix_and_root): ... this. All users updated.
18513 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18514 Revamped into ...
18515 (grub_machine_get_bootlocation): ... this.
18516 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18517 (grub_machine_get_bootlocation): New proto.
18518 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18519
18520 Less intrusive and more reliable seek on network implementation.
18521
18522 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18523 (grub_file_seek): Don't call grub_file_net_seek.
18524 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18525 (grub_net_fs_read_real): .. this.
18526 (grub_net_seek_real): Use net->offset.
18527 (grub_net_fs_read): Seek if necessary.
18528
18529 Unify IEEE1275 netwotk config with the other platforms.
18530
18531 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18532 New variable.
18533 (grub_machine_get_bootlocation): Support network.
18534 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18535 Support type and device parsing.
18536 (grub_ieee1275_get_device_type): New function.
18537 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18538 into ...
18539 (grub_ieee1275_net_config_real): ... this.
18540 (grub_ofnet_probecards): Removed.
18541 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18542 * include/grub/ieee1275/ofnet.h: Removed.
18543 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18544 extern var.
18545 (grub_ieee1275_get_device_type): New function.
18546
18547 Unify network device closing across platforms and make more robust.
18548
18549 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18550 grub_grubnet_fini.
18551 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18552 already.
18553 * grub-core/net/net.c (grub_net_network_level_interface_register):
18554 Update num_ifaces.
18555 (grub_net_card_unregister): Close all interfaces.
18556 (receive_packets): Don't poll if no iterfaces are registered.
18557 Open if necessary.
18558 (grub_net_fini_hw): New function.
18559 (grub_net_restore_hw): Likewise.
18560 (fini_hnd): New variable.
18561 (GRUB_MOD_INIT): Register preboot hook.
18562 (GRUB_MOD_FINI): Run and unregister preboot hook.
18563
18564 Poll network cards when idle.
18565
18566 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18567 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18568 * grub-core/net/net.c (receive_packets): Save last poll time.
18569 (grub_net_poll_cards_idle_real): New function.
18570 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18571 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18572 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18573
18574 Rename ofnet interfaces.
18575
18576 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18577 (grub_ofnet_findcards): Use ofnet_%s names.
18578
18579 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18580
18581 Cleanup socket opening.
18582
18583 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18584 (grub_net_fs_close): Likewise.
18585 (grub_net_fs_read_real): Use eof member.
18586 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18587 (+grub_net_udp_close): New inline function.
18588
18589 * include/grub/net/tftp.h: Moved to the top of ...
18590 * grub-core/net/tftp.c: ... here.
18591 * include/grub/net/ip.h: Moved mostly to the top of ...
18592 * grub-core/net/ip.c: ... here.
18593 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18594 * grub-core/net/ethernet.c: ... here.
18595
18596 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18597
18598 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18599 FS name.
18600
18601 * include/grub/net/ip.h (ipv4_ini): Removed.
18602 (ipv4_fini): Likewise.
18603
18604 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18605 (grub_net_send_ip_packets): Likewise.
18606
18607 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18608
18609 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18610 grub_read_cmos prototype.
18611
18612 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18613
18614 VGA text support in qemu-mips
18615
18616 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18617 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18618 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18619 text.
18620 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18621 * grub-core/kern/vga_init.c: ... this.
18622 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18623 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18624 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18625 Adjust.
18626 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18627 GRUB_MACHINE_PCI_IO_BASE.
18628
18629 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18630
18631 MIPS qemu flash support.
18632
18633 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18634 magic.
18635 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18636 (grub_machine_init): Probe memory if its size isn't known.
18637 * util/grub-mkimage.c (image_targets): Add flash targets.
18638 (generate_image): Handle flash targets.
18639
18640 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18641
18642 MIPS qemu at_keyboard support.
18643
18644 * gentpl.py (videoinkernel): Add qemu-mips.
18645 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18646 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18647 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18648 modules.
18649 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18650 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18651 * grub-core/term/serial.c (grub_serial_register)
18652 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18653
18654 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18655
18656 CMOS support on sparc.
18657
18658 * gentpl.py (cmos): Add powerpc and sparc.
18659 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18660 powerpc and sparc.
18661 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18662 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18663 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18664 grub_set_datetime_cmos.
18665 * grub-core/lib/ieee1275/cmos.c: New file.
18666 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18667 (find_rtc): Set no_ieee1275_rtc on error.
18668 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18669 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18670 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18671 fail. Move value to argument. All users updated
18672 (grub_cmos_write): Likewise.
18673 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18674 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18675 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18676 grub_get_datetime_cmos and grub_set_datetime_cmos.
18677
18678 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18679
18680 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18681 sourcing grub-mkconfig_lib.
18682 * util/update-grub_lib.in: Likewise.
18683 * util/grub.d/00_header.in: Likewise.
18684 * util/grub.d/10_hurd.in: Likewise.
18685 * util/grub.d/10_kfreebsd.in: Likewise.
18686 * util/grub.d/10_linux.in: Likewise.
18687 * util/grub.d/10_netbsd.in: Likewise.
18688 * util/grub.d/10_windows.in: Likewise.
18689 * util/grub.d/20_linux_xen.in: Likewise.
18690 * util/grub.d/30_os-prober.in: Likewise.
18691
18692 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18693
18694 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18695 default_bg_color rather than black.
18696 (grub_gfxterm_fullscreen): Likewise.
18697 (grub_gfxterm_background_color_cmd): Save new background color in
18698 default_bg_color.
18699
18700 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18701
18702 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18703
18704 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18705
18706 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18707 mismerge.
18708
18709 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18710
18711 Chainloading on coreboot support.
18712
18713 * grub-core/Makefile.core.def (chain): Add coreboot.
18714 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18715
18716 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18717
18718 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18719 if it happens.
18720
18721 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18722
18723 Implement time command.
18724
18725 * grub-core/Makefile.core.def (time): New module.
18726 * grub-core/commands/time.c: New file.
18727 * grub-core/script/parser.y: Remove "time" keyword.
18728 * grub-core/script/yylex.l: Likewise.
18729
18730 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18731
18732 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18733
18734 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18735
18736 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18737 when handling leftovers.
18738
18739 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18740
18741 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18742 so that help2man doesn't fail.
18743
18744 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18745
18746 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18747 type in pointers on sparc64.
18748 (get_card_packet): Likewise.
18749
18750 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18751
18752 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18753 with `*'.
18754 (grub_cmd_videoinfo): Fetch current video mode.
18755
18756 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18757
18758 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18759 because of underlying system restrictions.
18760
18761 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18762
18763 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18764 necessary.
18765
18766 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18767
18768 Coreboot video support.
18769
18770 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18771 (vbe): Likewise.
18772 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18773 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18774 here ...
18775 * grub-core/kern/i386/int.S: ... here.
18776 * grub-core/video/i386/pc/vbe.c: Updated includes.
18777 * grub-core/video/i386/pc/vga.c: Likewise.
18778 * include/grub/i386/coreboot/memory.h
18779 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18780 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18781 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18782 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18783 Disable interrupts.
18784 * include/grub/i386/pc/vga.h: Removed. All users updated.
18785
18786 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18787
18788 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18789 definitions for dprintf.
18790 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18791
18792 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18793
18794 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18795 prototype.
18796 (get_card_packet): Likewise.
18797
18798 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18799
18800 Display the path of the file when file is not found
18801
18802 * grub-core/fs/fat.c: Display the filename when file is not found.
18803 * grub-core/fs/fshelp.c: Likewise.
18804 * grub-core/fs/hfs.c: Likewise.
18805 * grub-core/fs/jfs.c: Likewise.
18806 * grub-core/fs/minix.c: Likewise.
18807 * grub-core/fs/ufs.c: Likewise.
18808 * grub-core/fs/btrfs.c: Likewise.
18809 * grub-core/commands/i386/pc/play.c: Likewise.
18810
18811 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18812
18813 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18814 pointer checks before calling grub_free().
18815 * grub-core/commands/wildcard.c (match_devices): Likewise.
18816 * grub-core/commands/wildcard.c (match_files): Likewise.
18817 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18818 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18819 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18820 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18821 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18822 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18823 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18824 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18825 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18826
18827 2011-06-25 Patrick <p55@mailinator.com>
18828
18829 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18830
18831 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18832
18833 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18834 (grub_pxe_send): Likewise.
18835 (GRUB_MOD_INIT): Fix types.
18836
18837 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18838
18839 * grub-core/io/xzio.c: Fix code style issues
18840
18841 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18842 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18843
18844 Network infrastructure.
18845 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18846
18847 * include/grub/net/arp.h: New file.
18848 * include/grub/net/device.h: Likewise.
18849 * include/grub/net/ethernet.h: Likewise.
18850 * include/grub/net/ip.h: Likewise.
18851 * include/grub/net/netbuff.h: Likewise.
18852 * include/grub/net/tftp.h: Likewise.
18853 * include/grub/net/udp.h: Likewise.
18854 * include/grub/ieee1275/ofnet.h: Likewise.
18855 * include/grub/emu/export.h: Likewise.
18856 * include/grub/net.h: Likewise.
18857 * grub-core/net/arp.c: Likewise.
18858 * grub-core/net/ethernet.c: Likewise.
18859 * grub-core/net/ip.c: Likewise.
18860 * grub-core/net/udp.c: Likewise.
18861 * grub-core/net/tftp.c: Likewise.
18862 * grub-core/net/netbuff.c: Likewise.
18863 * grub-core/net/net.c: Likewise.
18864 * grub-core/net/drivers/emu/emunet.c: Likewise.
18865 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18866 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18867 export.h.
18868 * grub-core/Makefile.core.def (net): New module.
18869 (tftp): Likewise.
18870 (ofnet): Likewise.
18871 (emunet): Likewise.
18872 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18873 network protocols.
18874 * grub-core/kern/device.c (grub_net_open) : New variable.
18875 (grub_device_open): Handle network device.
18876 (grub_device_close): Likewise.
18877 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18878 (grub_grubnet_fini): Likewise.
18879 (grub_file_seek): Seek in network device.
18880 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18881 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18882 network root.
18883 (grub_machine_fini): Call grub_grubnet_fini.
18884 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18885 network.
18886 (grub_ieee1275_get_aliasdevname): New function.
18887 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18888 Add unofficial Solaris network info.
18889 (grub_multiboot_make_mbi): Likewise.
18890 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18891 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18892 * include/grub/device.h (grub_fs): Removed.
18893 * include/grub/err.h (grub_err_t): Add network-related values.
18894 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18895 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18896 (grub_ieee1275_get_aliasdevname): New proto.
18897 * include/grub/net.h: Rewritten.
18898
18899 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18900
18901 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18902 names.
18903
18904 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18905
18906 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18907 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18908 it truncates the output.
18909 Reported by: Ximin Luo.
18910
18911 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18912
18913 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18914
18915 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18916
18917 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18918 partmap before abstraction.
18919
18920 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18921
18922 * util/grub-mkconfig_lib.in: Add missing quotes.
18923
18924 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18925
18926 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18927 old method if mountinfo would return /dev/root and /dev/root doesn't
18928 exist.
18929
18930 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18931
18932 ZFS zlib support
18933
18934 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18935 (decomp_table): Add zlib entries.
18936 (zio_read): USe 8 bits for compression function rather than 3.
18937 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18938
18939 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18940
18941 * grub-core/disk/ahci.c: Add missing license statements.
18942 * grub-core/fs/romfs.c: Likewise.
18943 * grub-core/lib/ia64/setjmp.S: Likewise.
18944 * grub-core/loader/i386/pc/freedos.c: Likewise.
18945 * grub-core/loader/ia64/efi/linux.c: Likewise.
18946 * grub-core/video/colors.c: Likewise.
18947 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18948
18949 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18950
18951 AHCI support.
18952
18953 * grub-core/Makefile.core.def (ata_pthru): Removed.
18954 (ahci): New module.
18955 (pata): Likewise.
18956 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18957 on unload.
18958 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18959 readwrite.
18960 (grub_hdparm_do_check_powermode_cmd): Likewise.
18961 (grub_hdparm_do_smart_cmd): Likewise.
18962 (grub_hdparm_set_val_cmd): Likewise.
18963 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18964 * grub-core/disk/ahci.c: New file.
18965 * grub-core/disk/ata.c: Factor out the low-level part into ...
18966 * grub-core/disk/pata.c: ... here.
18967 * grub-core/disk/ata_pthru.c: Contents moved to ...
18968 * grub-core/disk/pata.c: ... here.
18969 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18970 (grub_scsi_iterate): Use grub_scsi_names.
18971 (grub_scsi_open): Likewise.
18972 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18973 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18974 (grub_ata_regs_t): New struct.
18975 (grub_disk_ata_pass_through_parms): Likewise.
18976 (grub_ata_device): Renamed to ...
18977 (grub_ata): ... this.
18978 (grub_ata_dev): New struct.
18979 Removed all low-level inline functions.
18980 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18981 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18982 iterate hooks and open. All users updated.
18983 * util/grub-install.in: Handle AHCI disk module.
18984
18985 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18986
18987 Add support for DRI and RSTn markers in JPEG files.
18988
18989 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18990 (JPEG_MARKER_RST0): Likewise.
18991 (JPEG_MARKER_RST1): Likewise.
18992 (JPEG_MARKER_RST2): Likewise.
18993 (JPEG_MARKER_RST3): Likewise.
18994 (JPEG_MARKER_RST4): Likewise.
18995 (JPEG_MARKER_RST5): Likewise.
18996 (JPEG_MARKER_RST6): Likewise.
18997 (JPEG_MARKER_RST7): Likewise.
18998 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18999 (grub_jpeg_decode_dri): New function.
19000 (grub_jpeg_decode_sos): Move image data related part into
19001 grub_jpeg_decode_data function.
19002 (grub_jpeg_decode_data): New function.
19003 (grub_jpeg_reset): New function.
19004 (grub_jpeg_decode_jpeg): Handle new markers.
19005
19006 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19007
19008 * util/ieee1275/ofpath.c (check_sas): Close fd.
19009 (main): Free of_path.
19010 Reported by: David Volgyes <dvolgyes>.
19011
19012 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19013
19014 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19015 Reported by: David Volgyes <dvolgyes>.
19016
19017 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19018
19019 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19020 file after stat.
19021 Reported by: David Volgyes <dvolgyes>.
19022
19023 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19024
19025 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19026
19027 Reported by: David Volgyes <dvolgyes>.
19028
19029 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19030
19031 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19032 Prevent memory leak.
19033
19034 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19035
19036 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19037 (main): Close file.
19038 Reported by: David Volgyes <dvolgyes>.
19039
19040 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19041
19042 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19043 to continue if allocation is failed.
19044
19045 Reported by: David Volgyes <dvolgyes>.
19046
19047 2011-06-23 David Volgyes <dvolgyes>
19048
19049 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19050 dereference.
19051
19052 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19053
19054 Fix spurious warning.
19055
19056 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19057 (acorn_partition_map_find): Use .bin member.
19058
19059 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19060
19061 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19062 /dev/root as a valid device.
19063
19064 2011-06-23 Jim Meyering <meyering@redhat.com>
19065
19066 Avoid NULL deref in grub_device_open.
19067
19068 * grub-core/kern/device.c (grub_device_open): Don't dereference
19069 a NULL pointer upon failed grub_env_get.
19070
19071 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19072
19073 Support non-512B sectors and agglomerate reads.
19074
19075 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19076 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19077 (disk_io_guid): Removed.
19078 (make_devices): Locate solely by BlockIO.
19079 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19080 (grub_efidisk_read): Use read_blocks.
19081 (grub_efidisk_write): Use write_blocks.
19082 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19083 log_sector_size.
19084 (get_safe_sectors): Handle non-512B sectors.
19085 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19086 sectors.
19087 (grub_biosdisk_write): Handle non-512B sectors.
19088 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19089 (grub_scsi_read): Remove special non-512B block handling (now handled
19090 one level up).
19091 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19092 and do sanity checks.
19093 (grub_disk_adjust_range): Handle non-512B sectors.
19094 (transform_sector): New function.
19095 (grub_disk_read_small): Likewise.
19096 (grub_disk_read): Rewritten.
19097 (grub_disk_write): Handle non-512B sectors.
19098 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19099 log_sector_size.
19100 (open_device): Use log_sector_size.
19101 (grub_util_biosdisk_read): Likewise.
19102 (grub_util_biosdisk_write): Likewise.
19103 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19104 non-512B sectors.
19105 (pc_partition_map_embed): Likewise.
19106 * include/grub/disk.h (grub_disk): New field log_sector_size.
19107 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19108 (GRUB_DISK_CACHE_BITS): Increased to 6.
19109 * util/grub-fstest.c (fstest): New command testload.
19110 (argp_parser): Likewise.
19111
19112 2011-06-16 Robert Millan <rmh@gnu.org>
19113
19114 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19115 `ata' driver on kernel of FreeBSD 9.
19116
19117 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19118 (get_ataraid_disk_name): New functions.
19119 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19120 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19121 get_ataraid_disk_name() and get_ada_disk_name().
19122
19123 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19124
19125 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19126 input format.
19127
19128 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19129
19130 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19131 `ftp.gnu.org' for `alpha.gnu.org'.
19132
19133 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19134
19135 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19136 partitions under /dev/disk/by-id/.
19137
19138 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19139
19140 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19141 after ten consecutive open failures. Scanning all the way up to
19142 10000 is excessive and can cause serious performance problems in
19143 some configurations.
19144 Fixes Ubuntu bug #787461.
19145
19146 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19147
19148 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19149 opening new one.
19150
19151 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19152 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19153
19154 Don't stat devices unless we have to.
19155
19156 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19157 dir == /dev/mapper.
19158 (grub_guess_root_device): Use already known os_dev if possible.
19159 * grub-core/kern/emu/hostdisk.c
19160 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19161 if device is known to be a dm one.
19162
19163 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19164
19165 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19166 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19167 Reported by: Pawel Tecza.
19168
19169 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19170
19171 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19172 (lsefisystab): Likewise.
19173 (lssal): Likewise.
19174 (lsefimmap): Likewise.
19175 (hdparm): Enable on qemu-mips.
19176 (setjmp): Add ia64 nodist.
19177 (serial): Simplify tags.
19178
19179 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19180
19181 * Makefile.util.def (grub-ofpathname): Install manual page.
19182
19183 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19184
19185 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19186
19187 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19188
19189 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19190
19191 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19192
19193 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19194 into dprintf.
19195
19196 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19197
19198 Use full 64-bit division.
19199
19200 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19201 (grub_divmod64): ... this.
19202 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19203 version.
19204
19205 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19206
19207 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19208 `source'.
19209
19210 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19211
19212 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19213 to avoid accidents when debugging with 'sh -x'.
19214 * grub-core/gensyminfo.sh.in: Likewise.
19215 * tests/example_scripted_test.in: Likewise.
19216 * tests/grub_cmd_regexp.in: Likewise.
19217 * tests/grub_script_blanklines.in: Likewise.
19218 * tests/grub_script_dollar.in: Likewise.
19219 * tests/grub_script_expansion.in: Likewise.
19220 * tests/grub_script_final_semicolon.in: Likewise.
19221 * tests/partmap_test.in: Likewise.
19222 * tests/util/grub-shell-tester.in: Likewise.
19223 * tests/util/grub-shell.in: Likewise.
19224
19225 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19226
19227 Move gfxmenu color handling to video, so that gfxterm can use it
19228 too.
19229
19230 * grub-core/gfxmenu/named_colors.c: Move to ...
19231 * grub-core/video/colors.c: ... here. Rename
19232 grub_gui_get_named_color to grub_video_get_named_color.
19233 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19234 * grub-core/video/colors.c (my_isxdigit): ... here.
19235 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19236 Move to ...
19237 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19238 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19239 to ...
19240 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19241
19242 * include/grub/gui.h (grub_gui_color_t): Move to ...
19243 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19244 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19245 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19246 * include/grub/gui.h (grub_gui_map_color): Move to ...
19247 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19248 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19249 to ...
19250 * include/grub/video.h (grub_video_get_named_color): ... here.
19251 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19252 * include/grub/video.h (grub_video_parse_color): ... here.
19253
19254 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19255 video/colors.c.
19256 (gfxmenu): Remove gfxmenu/named_colors.c.
19257 (video) [videomodules]: Add video/colors.c.
19258
19259 Add a background_color command.
19260
19261 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19262 function.
19263 (GRUB_MOD_INIT): Register background_color command.
19264 (GRUB_MOD_FINI): Unregister background_color command.
19265 (redraw_screen_rect): Allow blend/replace of text layer to be
19266 controlled independently from whether there is a background bitmap.
19267 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19268 changing bitmap.
19269
19270 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19271
19272 Patch BPB in ntldr and chainloader --bpb.
19273
19274 * grub-core/fs/fat.c: Include grub/fat.h.
19275 (grub_fat_bpb): Moved to ...
19276 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19277 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19278 grub/ntfs.h.
19279 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19280 Moved from here...
19281 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19282 here.
19283 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19284 New function.
19285 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19286 (GRUB_MOD_INIT): Show --bpb.
19287 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19288 * grub-core/normal/main.c (features): New variable.
19289 (GRUB_MOD_INIT): Set feature_* variables.
19290 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19291 proto.
19292 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19293
19294 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19295
19296 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19297 for cleanness.
19298
19299 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19300
19301 FreeDOS direct loading support.
19302
19303 * docs/grub.texi (Supported OS): Add FreeDOS.
19304 * grub-core/Makefile.core.def (freedos): New module.
19305 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19306 variable.
19307 (grub_relocator16_boot): Handle %ebx.
19308 * grub-core/lib/i386/relocator16.S: Likewise.
19309 * grub-core/loader/i386/pc/freedos.c: New file.
19310
19311 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19312
19313 Long Linux command line support.
19314
19315 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19316 (maximal_cmdline_size): New variable.
19317 (allocate_pages): Use maximal_cmdline_size.
19318 (grub_cmd_linux): Set and use maximal_cmdline_size.
19319 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19320 (allocate_pages): Use maximal_cmdline_size.
19321 (grub_cmd_linux): Set and use maximal_cmdline_size.
19322 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19323 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19324 and cmdline_size.
19325
19326 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19327 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19328
19329 Improve devmapper support
19330
19331 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19332 (grub_util_is_lvm): New function.
19333 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19334 than lvm if not dmraid.
19335 Handle mapped md nodes.
19336 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19337 (grub_util_device_is_mapped): ... this. Make always available. All users
19338 updated.
19339 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19340 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19341 dmraid nodes.
19342 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19343
19344 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19345
19346 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19347
19348 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19349 * grub-core/modinfo.sh.in: New file.
19350 * grub-core/Makefile.core.def (modinfo.sh): New script.
19351 * util/grub-mknetdir.in: Use modinfo.sh.
19352 * util/grub-mkrescue.in: Likewise.
19353
19354 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19355
19356 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19357 Fix potential usage of Elf32 instead of Elf64 when compiling on
19358 32-bit architecture. Add endianness macros while on it.
19359
19360 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19361
19362 Use mipsel- rather than mips- in directories involving mipsel ports to
19363 allow both endiannesses coexist.
19364
19365 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19366 mips. All conditions adjusted.
19367 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19368 variable.
19369 * util/grub-install.in: Adjust conditions to take renaming into account.
19370 * util/grub-mkimage.c (image_targets): Likewise. New target
19371 mips-qemu_mips-elf for bigendian mips.
19372
19373 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19374
19375 Avoid unnecessary copying on MIPS.
19376
19377 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19378 early if src == dest.
19379 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19380 compression is none.
19381
19382 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19383
19384 Reduce memory footprint on SGI by putting modules before the kernel
19385 as opposed to after.
19386
19387 * grub-core/Makefile.core.def (kernel): Increase linking address.
19388 (none_decompress): Likewise.
19389 (xz_decompress): Likewise.
19390 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19391 address.
19392 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19393 layout change.
19394 (grub_arch_modules_addr): New function.
19395 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19396 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19397 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19398 here.
19399 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19400 (grub_total_modules_size): ... this. Make global.
19401 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19402 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19403 New definition.
19404 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19405 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19406 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19407 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19408 * util/grub-mkimage.c (image_target_desc): New flag
19409 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19410 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19411 (generate_image): Handle images with modules before kernel.
19412
19413 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19414
19415 Prevent potential loss of memory map by overwrite on qemu-mips.
19416
19417 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19418 Save ram size in $s4.
19419 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19420 All users changed to grub_arch_memsize.
19421 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19422 Loongson.
19423 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19424 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19425 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19426 external variable.
19427
19428 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19429
19430 * .bzrignore: Remove grub-dumpbios.
19431
19432 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19433
19434 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19435 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19436 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19437 existing options which append).
19438 * docs/grub.texi (Simple configuration): Document new options.
19439 Reported by: Ian Jackson. Fixes Debian bug #617538.
19440
19441 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19442
19443 * util/grub-fstest.c (cmd_cat): New function.
19444 (fstest): Handle CMD_CAT.
19445 (options): Add cat.
19446 (argp_parser): Handle cat.
19447
19448 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19449
19450 * Makefile.util.def (grub-bin2h): Don't install.
19451 * docs/man/grub-bin2h.h2m: Remove.
19452
19453 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19454
19455 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19456 place.
19457
19458 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19459
19460 Reenable qemu-mips port.
19461
19462 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19463 Fix small arc bug while on it.
19464 * gentpl.py: Handle qemu_mips.
19465 * grub-core/Makefile.am: Likewise.
19466 * grub-core/Makefile.core.def: Likewise.
19467 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19468 inappropriate includes.
19469 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19470 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19471 * grub-core/kern/main.c (grub_modules_get_end)
19472 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19473 * grub-core/kern/mips/qemu-mips: Moved to ..
19474 * grub-core/kern/mips/qemu_mips: ... this.
19475 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19476 (grub_machine_init): Call terminfo_init and serial_init.
19477 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19478 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19479 New variable.
19480 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19481 parameter passing.
19482 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19483 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19484 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19485 * include/grub/mips/qemu_mips/cmos.h: New file.
19486 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19487 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19488 Removed.
19489 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19490 Use correct mips-style address.
19491 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19492 (GRUB_TICKS_PER_SECOND): Removed.
19493 (grub_get_rtc): Likewise.
19494 (grub_cpu_idle): Likewise.
19495 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19496 New definition.
19497 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19498 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19499 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19500 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19501 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19502 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19503 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19504 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19505
19506 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19507
19508 SGI ARCS port.
19509
19510 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19511 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19512 platforms.
19513 * configure.ac: New target mips-arc.
19514 * gentpl.py: Likewise.
19515 * grub-core/Makefile.am: Likewise.
19516 * grub-core/Makefile.core.def: Likewise.
19517 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19518 (none_decompress): Likewise.
19519 (lsdev): New module.
19520 (datetime): Use lib/arc/datetime.c on ARC.
19521 (part_dvh): New module.
19522 * grub-core/commands/arc/lsdev.c: New file.
19523 * grub-core/disk/arc/arcdisk.c: Likewise.
19524 * grub-core/kern/mips/arc/init.c: Likewise.
19525 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19526 aligned addresses.
19527 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19528 support.
19529 (grub_arch_dl_relocate_symbols): Likewise.
19530 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19531 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19532 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19533 platforms.
19534 * grub-core/lib/arc/datetime.c: New file.
19535 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19536 pci.h on non-loongson.
19537 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19538 (grub_linux_boot): Set unused registers to 0.
19539 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19540 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19541 * grub-core/mmap/mips/uppermem.c: ...here.
19542 * grub-core/partmap/dvh.c: New file.
19543 * grub-core/term/arc/console.c: Likewise.
19544 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19545 (grub_terminfo_set_current): Add terminal "arc".
19546 (grub_terminfo_readkey): Support ARC sequences.
19547 * include/grub/arc/arc.h: New file.
19548 * include/grub/arc/console.h: Likewise.
19549 * include/grub/disk.h (grub_disk_dev_id): Add
19550 GRUB_DISK_DEVICE_ARCDISK_ID.
19551 * include/grub/mips/arc/kernel.h: New file.
19552 * include/grub/mips/arc/memory.h: Likewise.
19553 * include/grub/mips/arc/time.h: Likewise.
19554 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19555 * include/grub/mips/kernel.h (grub_halt): ... here.
19556 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19557 here...
19558 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19559 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19560 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19561 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19562 proto.
19563 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19564 from here ...
19565 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19566 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19567 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19568 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19569 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19570 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19571 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19572 (grub_phys_addr_t): Moved from here ...
19573 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19574 (grub_vtop): Moved from here ...
19575 * include/grub/mips/memory.h (grub_vtop): ... here.
19576 (grub_map_memory): Moved from here ...
19577 * include/grub/mips/memory.h (grub_map_memory): ... here.
19578 (grub_unmap_memory): Moved from here ...
19579 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19580 (grub_machine_mmap_iterate): Moved from here ...
19581 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19582 (grub_mmap_get_lower): Moved from here ...
19583 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19584 (grub_mmap_get_upper): Moved from here ...
19585 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19586 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19587 here ...
19588 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19589 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19590 here ...
19591 * include/grub/mips/time.h (grub_get_rtc): ... here.
19592 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19593 here ...
19594 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19595 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19596 here ...
19597 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19598 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19599 definition.
19600 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19601 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19602 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19603 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19604 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19605 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19606 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19607 (GRUB_MACHINE_LINK_ADDR): Likewise.
19608 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19609 to 6.
19610 * util/grub-install.in: Run dvhtool on ARC.
19611 * util/grub-mkimage.c (image_targets): Add mips-arc.
19612 (generate_image): Handle ECOFF output for mips-arc.
19613
19614 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19615
19616 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19617 blocks.
19618
19619 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19620
19621 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19622 after enabling port.
19623
19624 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19625
19626 Skip incorrect USB devices.
19627
19628 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19629 configcnt == 0.
19630 * include/grub/usb.h (grub_usb_err_t): New enum value
19631 GRUB_USB_ERR_BADDEVICE.
19632
19633 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19634
19635 Fuloong video init support.
19636
19637 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19638 well.
19639 (grub_vga_read_arx): New function.
19640 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19641 definition.
19642 (framebuffer): New members io, mmioptr and mmiobase.
19643 (read_sis_cmd): New function.
19644 (write_sis_cmd): Likewise.
19645 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19646 rather than 640x400.
19647 * grub-core/video/sis315_init.c: New file.
19648
19649 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19650
19651 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19652 non-loongson.
19653 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19654 to grub_dl_register_symbol.
19655
19656 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19657
19658 Fix compilation errors.
19659
19660 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19661 potentially unused.
19662 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19663 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19664 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19665 to loongson machines.
19666
19667 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19668
19669 Several FS mtime support.
19670
19671 * grub-core/fs/affs.c (grub_affs_time): New struct.
19672 (grub_affs_file): New field mtime.
19673 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19674 type. Removed 'size'. New field 'di'. All users updated.
19675 (grub_affs_mount): Simplify checsum checking.
19676 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19677 (grub_affs_dir): Handle mtime.
19678 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19679 (grub_cpio_dir): Likewise.
19680 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19681 (grub_hfs_filerec): New field mtime.
19682 (grub_hfs_dir): Handle mtime.
19683 (grub_hfs_mtime): New function.
19684 (grub_hfs_fs): Register grub_hfs_mtime.
19685 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19686 (grub_iso9660_dir): New field mtime.
19687 (grub_fshelp_node): New field dirent.
19688 (iso9660_to_unixtime): New function.
19689 (iso9660_to_unixtime2): Likewise.
19690 (grub_iso9660_read_symlink): Use node->dirent.
19691 (grub_iso9660_iterate_dir): Likewise.
19692 (grub_iso9660_dir): Set mtime.
19693 (grub_iso9660_mtime): New function.
19694 (grub_iso9660_fs): Register grub_iso9660_mtime.
19695 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19696 (grub_jfs_inode): New fields atime, ctime and mtime.
19697 (grub_jfs_dir): Set mtime.
19698 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19699 * grub-core/fs/ntfs.c (list_file): Set mtime.
19700 (grub_ntfs_dir): Likewise.
19701 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19702 (grub_reiserfs_iterate_dir): Set mtime.
19703 (grub_reiserfs_dir): Likewise.
19704 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19705 (grub_fshelp_node): Likewise.
19706 (grub_sfs_iterate_dir): Set mtime.
19707 (grub_sfs_dir): Likewise.
19708 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19709 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19710 (grub_xfs_inode): New fields atime, mtime, ctime.
19711 (grub_xfs_dir): Set mtime.
19712 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19713 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19714 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19715
19716 Support UDF symlinks.
19717
19718 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19719 (grub_ufs_read_symlink): New function. All users updated.
19720
19721 Check amiga partmap checksum.
19722
19723 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19724 (grub_amiga_partition): Likewise.
19725 (amiga_partition_map_checksum): New function.
19726 (amiga_partition_map_iterate): Check checksum.
19727
19728 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19729
19730 ROMFS support.
19731
19732 * Makefile.util.def (libgrubmods.a): Add romfs.
19733 * grub-core/Makefile.core.def (romfs): New module.
19734 * grub-core/fs/romfs.c: New file.
19735
19736 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19737
19738 Squashfs v4 support.
19739
19740 * Makefile.util.def (libgrubmods.a): Add squash4.
19741 * grub-core/Makefile.core.def (squash4): New module.
19742 * grub-core/fs/squash4.c: New file.
19743 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19744 disk_input_start, disk_input.
19745 (get_byte): Handle disk_input.
19746 (grub_zlib_disk_read): New function.
19747 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19748
19749 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19750 2011-05-15 Feiran Zheng <famcool@gmail.com>
19751
19752 * Makefile.util.def (libgrubmods.a): Add minix3.
19753 * grub-core/Makefile.core.def (minix3): New module.
19754 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19755 (GRUB_MINIX_BSIZE): Removed.
19756 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19757 (grub_minix_ino_t): New type.
19758 (grub_minix_le_to_cpu_ino): New macro.
19759 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19760 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19761 (grub_minix_data): New field block_size.
19762 (grub_minix_read_file): Handle 64-bit correctly.
19763 * grub-core/fs/minix3.c: New file.
19764
19765 2011-05-15 Tristan Gingold <gingold@free.fr>
19766 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19767 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19768
19769 IA64 support.
19770
19771 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19772 * configure.ac: Add ia64-efi target.
19773 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19774 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19775 * gentpl.py: Add ia64_efi platform.
19776 Rename x86_efi to efi and Add ia64-efi. All users updated.
19777 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19778 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19779 Remove kern/generic/rtc_get_time_ms.c on EFI.
19780 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19781 kern/ia64/dl_helper.c on ia64-efi.
19782 Add kern/emu/cache.c on emu.
19783 (linux): Use on loader/ia64/efi/linux.c on ia64.
19784 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19785 whether symbol is a function.
19786 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19787 (grub_symbol): New field 'isfunc'.
19788 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19789 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19790 (grub_dl_load_segments): Place all sections into the same region.
19791 [__ia64__]: Create trampolines and got.
19792 [GRUB_MACHINE_EMU]: Call mprotect.
19793 (grub_dl_resolve_symbols): Resolve symbol type as well.
19794 [__ia64__]: Create function descriptors.
19795 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19796 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19797 (grub_get_rtc): New function.
19798 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19799 * grub-core/kern/emu/cache.S: Renamed to ...
19800 * grub-core/kern/emu/cache_s.S: ... this.
19801 [__ia64__]: Add a nop.
19802 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19803 [__ia64__]: New function.
19804 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19805 * grub-core/kern/ia64/dl.c: New file.
19806 * grub-core/kern/ia64/dl_helper.c: Likewise.
19807 * grub-core/kern/ia64/efi/init.c: New file.
19808 * grub-core/kern/ia64/efi/startup.S: Likewise.
19809 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19810 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19811 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19812 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19813 * grub-core/loader/ia64/efi/linux.c: New file.
19814 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19815 (GRUB_MOD_DEP): Likewise.
19816 (grub_dl) [__ia64__]: New fields got and tramp.
19817 (grub_dl): New field 'base'.
19818 (grub_dl_register_symbol): New argument isfunc. All users updated.
19819 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19820 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19821 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19822 (grub_ia64_dl_get_tramp_got_size): New proto.
19823 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19824 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19825 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19826 * include/grub/efi/api.h: Skip call wrappers on ia64.
19827 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19828 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19829 * include/grub/elf.h (ELF_ST_INFO): New definition.
19830 * include/grub/ia64/efi/kernel.h: New file.
19831 * include/grub/ia64/efi/memory.h: Likewise.
19832 * include/grub/ia64/efi/time.h: Likewise.
19833 * include/grub/ia64/kernel.h: Likewise.
19834 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19835 * include/grub/ia64/time.h: New file.
19836 * include/grub/ia64/types.h: Likewise.
19837 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19838 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19839 New protos.
19840 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19841 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19842 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19843 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19844 All users updated.
19845 (EFI64_HEADER_SIZE): New definition. All users updated.
19846 (image_targets): Add ia64-efi.
19847 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19848 jumpers_addr. All users updated.
19849 Create function descriptors.
19850 (count_funcs): New function.
19851 (unaligned_uint32): New struct.
19852 (MASK20): New definition.
19853 (MASK19): Likewise.
19854 (MASKF21): Likewise.
19855 (add_value_to_slot_20b): New function.
19856 (add_value_to_slot_21_real): Likewise.
19857 (add_value_to_slot_21): Likewise.
19858 (ia64_kernel_trampoline): New struct.
19859 (nopm): New variable.
19860 (jump): Likewise.
19861 (make_trampoline): New function.
19862 (relocate_addresses): Handle ia64.
19863 (make_reloc_section): Likewise.
19864 (load_image): Likewise.
19865
19866 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19867
19868 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19869 warning. Move variables before code while on it.
19870
19871 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19872
19873 Fuloong support.
19874
19875 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19876 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19877 * grub-core/boot/mips/loongson/fuloong.S: New file.
19878 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19879 Explicitly init CS5536.
19880 [FULOONG]: Don't use serial until CS5536 is available.
19881 Set GPIO based on dumps.
19882 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19883 [FULOONG]: Handle GPIO and memory controller differences.
19884 Parse machine type in $a2.
19885 * grub-core/boot/mips/startup_raw.S: Determine and save the
19886 architecture.
19887 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19888 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19889 init on architecture type.
19890 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19891 SIS315E. Don't init at_keyboard on fuloong.
19892 (grub_halt): Support Fuloong.
19893 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19894 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19895 (loongson_machtypes): New array.
19896 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19897 type.
19898 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19899 config. All users updated. Handle CS5536 serial.
19900 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19901 default port on machine type. Register serial as inactive.
19902 * grub-core/video/sis315pro.c: New file.
19903 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19904 definition.
19905 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19906 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19907 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19908 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19909 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19910 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19911 to ...
19912 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19913 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19914 definition.
19915 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19916 (grub_arch_machine): New extern var.
19917 * include/grub/mips/loongson/serial.h
19918 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19919 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19920 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19921 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19922 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19923 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19924 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19925 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19926 * include/grub/term.h (grub_term_register_input_inactive): New inline
19927 function.
19928 (grub_term_register_output_inactive): Likewise.
19929 * include/grub/video.h (grub_video_driver_id): New value
19930 GRUB_VIDEO_DRIVER_SIS315PRO.
19931 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19932 New field "names". All users updated.
19933 New field value IMAGE_FULOONG_FLASH.
19934 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19935
19936 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19937
19938 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19939 and add some clarification.
19940
19941 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19942
19943 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19944 platforms if kernel is compressed.
19945
19946 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19947
19948 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19949 unused modules since currently referrence counter isn't reliable and
19950 there isn't much memory to recover there anyway.
19951
19952 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19953
19954 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19955 rather than resetting it to allow modules to reference themselves
19956 in init.
19957
19958 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19959
19960 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19961 counter on dependencies since grub_dl_unref already handles this.
19962
19963 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19964
19965 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19966 on error if not already done.
19967
19968 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19969
19970 Fix few potential memory misusage.
19971
19972 * grub-core/font/font.c (load_font_index): Don't free char_index to
19973 avoid double free.
19974 (grub_font_load): Zero-fill font at alloc for safety.
19975 Close file on error.
19976 (free_font): Free bmp_idx.
19977
19978 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19979
19980 * docs/grub.texi (Installation): Fix several outdated claims.
19981
19982 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19983
19984 Handle module_license on windows.
19985
19986 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19987 sections shifted.
19988 (insert_string): Make argument const char * instead of char *.
19989 (write_section_data): Handle long section names.
19990 Handle module_license.
19991
19992 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19993
19994 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19995 handle class-free menuentries.
19996 (grub_normal_add_menu_entry): Add a check to be sure.
19997
19998 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19999
20000 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20001 PgUp and PgDown.
20002
20003 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20004
20005 * configure.ac: Bump version to 1.99.
20006
20007 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20008
20009 Give ATA device a bit more time on first try in order to allow disks
20010 to spin up.
20011
20012 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20013 if dev->present is 1. Reset dev->present on failure.
20014 (grub_ata_device_initialize): Set dev->present to 1.
20015 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20016 (grub_ata_device): New member 'present'.
20017
20018 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20019
20020 * util/grub-mkimage.c (generate_image): Update hash.
20021
20022 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20023
20024 Flush caches on DMA memory.
20025
20026 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20027 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20028 (grub_dma_free): Likewise.
20029 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20030
20031 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20032
20033 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20034 to avoid asm treating ld and sd as macros.
20035
20036 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20037
20038 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20039 decompressor.
20040
20041 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20042
20043 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20044 grub_decompress_core since later would fail if grub_decompress_core
20045 is too far.
20046
20047 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20048
20049 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20050 R_MIPS_JALR since it's used by newer compiler.
20051
20052 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20053
20054 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20055
20056 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20057
20058 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20059 file_path to 0 for surety.
20060 (grub_chainloader_boot): Set exit_data to NULL.
20061 Unset the loader once done.
20062 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20063
20064 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20065
20066 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20067 unknown key into a dprintf.
20068
20069 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20070
20071 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20072 on first non-existant partition.
20073
20074 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20075
20076 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20077 openning fails.
20078 Reported by: Mark Korenberg.
20079
20080 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20081
20082 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20083 overflow.
20084
20085 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20086
20087 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20088 before closing to ensure that it will be readable by grub-setup.
20089
20090 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20091
20092 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20093 (devpath_1): Use MAKE_PIWG_PATH.
20094 (devpath_2): Likewise.
20095 (devpath_3): Likewise.
20096 (devpath_4): Likewise.
20097 (devpath_5): Likewise.
20098 (devpath_6): Likewise.
20099
20100 The appleldr.mod was checked that to be binary identical to previous
20101 version.
20102
20103 2011-05-05 Zach <mikezackles>
20104
20105 Support 2010 Macbooks.
20106
20107 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20108 (devs): Add devpath_6.
20109
20110 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20111
20112 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20113 /dev/random. /dev/urandom is good enough for our purposes (salting).
20114
20115 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20116
20117 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20118
20119 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20120
20121 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20122 hexadecimal.
20123
20124 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20125
20126 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20127 and not 0 on failure.
20128
20129 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20130
20131 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20132 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20133 disk; otherwise grub_fs_probe will not fall back to the next
20134 filesystem.
20135 (grub_pxefs_open): Likewise, for consistency.
20136 Reported and tested by: Ezekiel Grave.
20137
20138 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20139
20140 * tests/partmap_test.in: Don't hardcode path to parted.
20141 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20142
20143 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20144
20145 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20146 of `ls' to find out which devices are available.
20147
20148 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20149
20150 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20151 than source address for efi mmap buffer.
20152
20153 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20154
20155 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20156 wrong action on non-detecting the magic.
20157
20158 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20159
20160 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20161 already supplied by another part of the module (fixes compilation on
20162 FreeBSD).
20163
20164 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20165
20166 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20167 match the one used by mdadm.
20168
20169 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20170
20171 * po/README: Add instructions for creating po/LINGUAS.
20172
20173 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20174
20175 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20176 #551428.
20177
20178 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20179 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20180 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20181 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20182 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20183 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20184 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20185 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20186 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20187 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20188 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20189 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20190 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20191 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20192 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20193 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20194 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20195 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20196 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20197 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20198 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20199 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20200
20201 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20202
20203 * grub-core/kern/emu/getroot.c
20204 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20205 test that was incorrectly reintroduced in r3214.
20206 Reported by: Ian Dall. Fixes Savannah bug #33133.
20207
20208 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20209
20210 Fix stack pointer handling in 16-bit relocator.
20211
20212 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20213 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20214 Fixes Ubuntu bug #683904.
20215
20216 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20217
20218 * configure.ac: Bump version to 1.99~rc2.
20219
20220 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20221
20222 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20223 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20224 * grub-core/lib/x86_64/setjmp.S: Likewise.
20225 * grub-core/lib/mips/setjmp.S: Likewise.
20226 * grub-core/lib/powerpc/setjmp.S: Likewise.
20227 * grub-core/lib/sparc64/setjmp.S: Likewise.
20228
20229 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20230
20231 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20232 * grub-core/lib/efi/datetime.c: Likewise.
20233
20234 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20235
20236 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20237 New function.
20238 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20239 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20240 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20241
20242 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20243
20244 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20245 bitmap.
20246 (grub_gfxterm_term_init): Likewise.
20247
20248 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20249
20250 Take into account the decorations the computing menu entry width.
20251
20252 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20253 (grub_gfxmenu_create_box): Register get_border_width.
20254 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20255 if available.
20256 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20257 get_border_width.
20258
20259 2011-04-18 Endres Puschner <code@e7p.de>
20260
20261 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20262 Don't skip first class.
20263
20264 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20265
20266 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20267 chunks.
20268 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20269
20270 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20271
20272 Complete 64-bit division support.
20273
20274 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20275 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20276 * include/grub/misc.h (grub_divmod64): Rename to ...
20277 (grub_divmod64_full): ... this.
20278 (grub_divmod64): New inline function.
20279
20280 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20281
20282 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20283
20284 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20285
20286 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20287 performing the necessary test.
20288
20289 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20290
20291 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20292 (kfreebsd.elf): Likewise.
20293 (pc-chainloader.elf): Likewise.
20294 (ntldr.elf): Likewise.
20295
20296 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20297
20298 Identify RAID by its UUID rather than (guessed) name.
20299
20300 * grub-core/disk/raid.c (ascii2hex): New function.
20301 (grub_raid_open): Accept mduuid/%s specification.
20302 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20303 (get_mdadm_uuid): ... this.
20304 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20305
20306 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20307
20308 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20309 to negative size.
20310
20311 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20312
20313 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20314 btrfs subvolume.
20315 * util/grub.d/20_linux_xen.in: Likewise.
20316
20317 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20318
20319 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20320 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20321
20322 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20323 Build a list of relevant visible mounts using the mnt_id and
20324 parent_mnt_id fields, and then scan that list at the end.
20325
20326 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20327
20328 * docs/grub.texi (normal): New section.
20329 (normal_exit): New section.
20330 (Embedded configuration): Add reference to normal.
20331 (GRUB only offers a rescue shell): Likewise.
20332 * docs/grub-dev.texi (Error Handling): Fix typo.
20333
20334 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20335
20336 * NEWS: Drop obsolete entry about probe-only btrfs support.
20337
20338 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20339
20340 * util/import_gcry.py: Fix typo.
20341
20342 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20343
20344 * NEWS: Add btrfs support.
20345
20346 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20347 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20348
20349 BtrFS support. Written by me (Vladimir) with important bugfixes and
20350 even more important testing by Colin.
20351
20352 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20353 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20354 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20355 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20356 mem_input_off and mem_input. All users updated to accept in-RAM input.
20357 (gzio_seek): New function.
20358 (test_zlib_header): Likewise.
20359 (grub_gzio_read): Likewise.
20360 (grub_zlib_decompress): Likewise.
20361 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20362 Accept partial and non-virtual mounts.
20363 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20364 avoid receiving /dev/dm-X as device.
20365 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20366 Handle bind and partial mounts.
20367 * grub-core/lib/crc.c: New file.
20368 * include/grub/deflate.h: Likewise.
20369 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20370 proto.
20371 * include/grub/lib/crc.h: New file.
20372
20373 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20374
20375 Implement automatic module license checking according to new GNU
20376 guidelines.
20377
20378 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20379 (grub_dl_load_core): Use grub_dl_check_license.
20380 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20381 (GRUB_MOD_LICENSE): Likewise.
20382 (GRUB_MOD_DUAL_LICENSE): Likewise.
20383 All modules updated.
20384
20385 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20386
20387 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20388 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20389 loaders.
20390 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20391
20392 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20393
20394 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20395
20396 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20397
20398 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20399 failed.
20400
20401 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20402
20403 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20404 parenthesis in the middle of the filename.
20405
20406 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20407
20408 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20409 rather than trying to put initrd way too high.
20410 Reported by: Ryan Lortie <desrt@desrt.ca>
20411
20412 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20413
20414 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20415 improperly removed string.
20416
20417 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20418
20419 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20420 is_disk.
20421 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20422 (open_device) Likewise.
20423 (grub_util_biosdisk_close): Likewise.
20424 Reported by: Mark Korenberg.
20425
20426 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20427
20428 * util/grub-mkconfig_lib.in: Add missing quotes.
20429
20430 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20431
20432 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20433 is NULL.
20434
20435 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20436
20437 Dynamically count the number of lines for the lower banner.
20438
20439 * grub-core/normal/menu_entry.c (per_term_screen): New member
20440 num_entries.
20441 (print_down): Use num_entries.
20442 (update_screen): Likewise.
20443 (grub_menu_entry_run): Set num_entries.
20444 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20445 num_entries.
20446 (grub_print_message_indented): Move real part to ...
20447 (grub_print_message_indented_real): ... here. Additional argument
20448 dry_run.
20449 (draw_border): Additional argument num_entries.
20450 (print_message): Additional argument dry_run.
20451 (print_entries): Receive menu viewer data.
20452 (grub_menu_init_page): New argment num_entries.
20453 (menu_text_set_chosen_entry): Use num_entries.
20454 (grub_menu_try_text): Likewise.
20455 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20456 All users updated.
20457 (grub_ucs4_count_lines): New function.
20458 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20459 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20460 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20461 (grub_term_border_height): Likewise.
20462 (grub_term_num_entries): Likewise.
20463
20464 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20465
20466 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20467 Remove now unused string.
20468
20469 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20470
20471 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20472 build system.
20473 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20474
20475 (Comment): Fix typo.
20476 (Getting started): General copy-editing.
20477 (Typical Development Experience): Likewise.
20478 (Error Handling): Likewise.
20479 (Video API): Likewise.
20480
20481 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20482
20483 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20484 throughout.
20485
20486 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20487
20488 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20489 directory.
20490
20491 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20492
20493 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20494 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20495 "development".
20496
20497 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20498
20499 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20500 grub_strcpy since the lines aren't necessarily 0-terminated.
20501
20502 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20503
20504 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20505 root on legacy.
20506
20507 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20508
20509 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20510 (GRUB_MOD_INIT): DEVICE isn't optional.
20511
20512 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20513
20514 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20515 word on new line if it's too long anyway. Fixes a hang.
20516
20517 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20518
20519 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20520 const.
20521 * util/grub-setup.c (main): Reuse md device name if available.
20522 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20523 not GRUB name as argument.
20524 Based on patch by: Florian Wagner <fwagner>.
20525
20526 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20527
20528 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20529 Place mbi on low memory for better compatibility.
20530
20531 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20532
20533 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20534
20535 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20536 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20537
20538 * autogen.sh: Ensure that collate and ctype locale is C.
20539 * conf/Makefile.common: Likewise.
20540
20541 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20542
20543 * grub-core/normal/menu.c: Add missing include.
20544
20545 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20546
20547 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20548
20549 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20550
20551 * util/grub-mkconfig.in: Ignore emacsen backup.
20552
20553 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20554
20555 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20556 on open.
20557 (grub_util_biosdisk_close): Likewise.
20558
20559 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20560
20561 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20562 const attribute and use grub_isdigit.
20563
20564 2011-04-06 Andrey <dev_null@ukr.net>
20565
20566 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20567 gcc warning.
20568
20569 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20570
20571 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20572 useful grub_dprintf's.
20573
20574 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20575
20576 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20577
20578 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20579
20580 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20581
20582 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20583
20584 Output errors if theme loading failed.
20585
20586 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20587 grub_gfxterm_fullscreen on error paths to ...
20588 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20589 theme loading error.
20590
20591 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20592
20593 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20594 space for older compilers.
20595 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20596
20597 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20598
20599 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20600 and report them as not RAID members since they are useless for GRUB.
20601 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20602
20603 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20604
20605 Increase LVM implementation robustness in order not to crash on
20606 configurations like pvmove. Previously code assumed that in some places
20607 only lvs or only pvs are used whereas it seems that they are used
20608 interchangeably.
20609
20610 * grub-core/disk/lvm.c (read_node): New function.
20611 (read_lv): Use read_node.
20612 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20613 Match volumes only at the end when all lvs are found. Take both
20614 pvs (first) and lvs (second) into account.
20615 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20616 mirror_* into node_*. All users updated.
20617 (grub_lvm_stripe): Merge this ...
20618 (grub_lvm_mirror): ... and this ...
20619 (grub_lvm_node): ... into this. All users updated.
20620
20621 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20622
20623 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20624 of function to allow further scanning for LVMs.
20625
20626 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20627
20628 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20629 on failed seek as it breaks open fd reusage.
20630
20631 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20632
20633 * util/grub-install.in: Add a recommendation to use --recheck before
20634 reporting bugs.
20635
20636 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20637
20638 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20639 are obtained.
20640
20641 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20642
20643 GRUB developper manual based on existing Internals section and
20644 contributions by the various authors with active copyright assignment.
20645
20646 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20647 * docs/font_char_metrics.png: New file.
20648 * docs/font_char_metrics.txt: Likewise.
20649 * docs/grub-dev.texi: Likewise.
20650 * docs/grub.texi (Internals): Move from here ...
20651 * docs/grub-dev.texi: ... here.
20652
20653 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20654
20655 Store the loopback device as data on loopback grub_disk structures,
20656 rather than the file it points to. This fixes use of freed memory
20657 if an existing loopback device is replaced.
20658
20659 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20660 disk->data, not dev->file.
20661 (grub_loopback_read): Adjust file assignment to match.
20662 Fixes Ubuntu bug #742967.
20663
20664 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20665
20666 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20667 when replacing an existing device.
20668
20669 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20670
20671 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20672 memory corruptions.
20673
20674 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20675 unsigned.
20676 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20677 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20678 (grub_jfs_read_inode): Likewise.
20679 (grub_jfs_opendir): Likewise. Remove now useless casts.
20680 (grub_jfs_getent): Likewise.
20681 Make ino a grub_uint32_t rather than int.
20682 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20683 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20684 division and module with bit operations.
20685 (grub_jfs_find_file): Make ino a grub_uint32_t.
20686 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20687
20688 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20689
20690 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20691 warning. (This was in fact always initialised before use, but GCC
20692 wasn't smart enough to prove that.)
20693 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20694
20695 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20696
20697 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20698 stack alignment.
20699 (efi_wrap_1): Likewise.
20700 (efi_wrap_2): Likewise.
20701 (efi_wrap_3): Likewise.
20702 (efi_wrap_4): Likewise.
20703 (efi_wrap_5): Likewise.
20704 (efi_wrap_6): Likewise.
20705 (efi_wrap_10): Likewise.
20706 Based on information by: Red Hat/Peter Jones.
20707
20708 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20709
20710 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20711 set-but-not-used variable.
20712
20713 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20714
20715 * docs/grub.texi (Simple configuration): Be more explicit about
20716 GRUB_DEFAULT, and add an example.
20717 Reported by: Leslie Rhorer.
20718
20719 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20720
20721 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20722 shell".
20723
20724 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20725
20726 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20727 * util/grub.d/20_linux_xen.in: Likewise.
20728
20729 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20730
20731 * util/grub.d/10_linux.in: Try alternative config filenames where
20732 we parse config file.
20733 * util/grub.d/20_linux_xen.in: Likewise.
20734
20735 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20736
20737 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20738 * util/grub.d/20_linux_xen.in: Likewise.
20739
20740 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20741
20742 * grub-core/disk/raid.c (insert_array): Add few potentially
20743 useful grub_util_info.
20744 (grub_raid_register): Likewise.
20745
20746 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20747
20748 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20749 Preserve partition number in mdadm code path.
20750
20751 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20752
20753 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20754 few potentially useful grub_util_info.
20755
20756 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20757
20758 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20759
20760 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20761
20762 * docs/grub.texi (default): Use @example rather than nested
20763 itemized lists to avoid breaking gendocs.
20764
20765 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20766
20767 * docs/grub.texi (Future): Update.
20768
20769 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20770
20771 * docs/grub.texi (Environment): New chapter.
20772 (Changes from GRUB Legacy): Link to "Environment block" section for
20773 details of limitations.
20774 (Simple configuration): Likewise. Link to documentation of gfxmode
20775 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20776 respectively.
20777 (Shell-like scripting): Note that normal variables are stored in the
20778 environment.
20779 (gettext): Link to documentation of lang and locale_dir.
20780 (list_env): New section.
20781 (load_env): New section.
20782 (save_env): New section.
20783
20784 (Reporting bugs): Fix typo.
20785
20786 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20787
20788 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20789 the example.
20790
20791 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20792
20793 * grub-core/term/at_keyboard.c (set_scancodes)
20794 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20795
20796 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20797
20798 * docs/grub.texi (Menu-specific commands): Remove some semantics
20799 that were true in GRUB Legacy but not in GRUB 2.
20800 (submenu): New section.
20801 (false): New section.
20802 (read): New section.
20803 (true): New section.
20804
20805 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20806
20807 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20808
20809 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20810
20811 * docs/grub.texi (Simple configuration): Explain some of the
20812 current limitations of grub-mkconfig.
20813 Reported by: Leslie Rhorer.
20814
20815 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20816
20817 Old macs search for boot.efi rather than for bootia32.efi.
20818
20819 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20820 * util/grub-mkrescue.in: Likewise.
20821 Suggested by: Peter Jones.
20822
20823 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20824
20825 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20826
20827 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20828
20829 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20830 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20831 (grub_lvm_mirror): New struct.
20832 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20833 (grub_lvm_iterate): Iterate only visible volumes.
20834 (grub_lvm_read): Factor out to ..
20835 (read_lv): ... this. Support mirrors.
20836 (grub_lvm_read): New wrapper function.
20837 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20838 stripped or mirrored.
20839
20840 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20841
20842 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20843
20844 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20845
20846 * docs/grub.texi (loopback): New section.
20847
20848 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20849
20850 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20851 removed -p option.
20852
20853 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20854
20855 * docs/grub.texi (BIOS installation): New section, partly based on
20856 previous text in other sections.
20857 (Installing GRUB using grub-install): Replace BIOS discussion with a
20858 cross-reference.
20859 (Images): Likewise.
20860
20861 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20862
20863 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20864 [HAVE_DIOCGDINFO]: Add safety checks.
20865
20866 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20867
20868 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20869 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20870
20871 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20872
20873 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20874 real_sb->size is zero (e.g. RAID-0), get the disk size from
20875 real_sb->data_size instead.
20876 Fixes Ubuntu bug #743136.
20877
20878 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20879
20880 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20881 printf clauses for printing size and start.
20882
20883 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20884
20885 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20886 Reported and tested by: Timothy Nikkel.
20887
20888 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20889
20890 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20891 (dirty_region_add_real): ... this.
20892 (dirty_region_add): Don't discard margin refresh when performing
20893 scheduled repaint.
20894
20895 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20896
20897 * grub-core/lib/relocator.c (allocate_regstart)
20898 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20899 terminals are capabple of malloc-free operation.
20900 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20901 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20902
20903 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20904
20905 * util/grub-setup.c: Copy the partition table zone if floppy support
20906 is disabled, even if no partition table is found.
20907
20908 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20909 during POST if an invalid partition table is contained in the PBR
20910 of the active partition when GRUB is installed to a partition.
20911
20912 2011-03-28 Colin Watson <cjwatson@debian.org>
20913
20914 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20915 comment.
20916
20917 2011-03-28 Colin Watson <cjwatson@debian.org>
20918
20919 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20920 to be specific about what kind of RAID device we're scanning for.
20921
20922 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20923
20924 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20925 return freed string.
20926
20927 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20928
20929 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20930
20931 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20932
20933 Use libgeom on FreeBSD to detect partitions.
20934
20935 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20936 (grub-mkrelpath): Likewise.
20937 (grub-script-check): Likewise.
20938 (grub-editenv): Likewise.
20939 (grub-mkpasswd-pbkdf2): Likewise.
20940 (grub-fstest): Likewise.
20941 (grub-mkfont): Likewise.
20942 (grub-mkdevicemap): Likewise.
20943 (grub-probe): Likewise.
20944 (grub-setup): Likewise.
20945 (grub-ofpathname): Likewise.
20946 (grub-mklayout): Likewise.
20947 (example_unit_test): Likewise.
20948 (grub-menulst2cfg): Likewise.
20949 * grub-core/Makefile.core.def (grub-emu): Likewise.
20950 (grub-emu-lite): Likewise.
20951 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20952 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20953 define HAVE_DIOCGDINFO.
20954 (follow_geom_up) [FreeBSD]: New function.
20955 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20956 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20957 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20958 unconditionally of HAVE_DIOCGDINFO.
20959
20960 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20961
20962 Fix FreeBSD compilation problem.
20963
20964 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20965 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20966
20967 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20968
20969 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20970 Switch back to page zero before loading a kernel, since some kernel
20971 drivers expect that.
20972 Thanks to: Felix Kuehling.
20973
20974 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20975
20976 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20977 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20978 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20979
20980 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20981
20982 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20983 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20984
20985 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20986
20987 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20988 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20989 malloc is disabled.
20990
20991 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20992
20993 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20994 for modules headers when counting the needed allocation size.
20995
20996 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20997
20998 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20999 if no ASCII character is found to prevent crash.
21000
21001 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21002
21003 * grub-core/video/bitmap.c (match_extension): Ignore case.
21004
21005 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21006
21007 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21008
21009 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21010
21011 * grub-core/script/parser.y: Declare "time" as valid argument.
21012
21013 2011-03-23 Peter Jones <pjones@redhat.com>
21014
21015 Fix incorrect assert failure reporting.
21016
21017 * grub-core/tests/example_functional_test.c (example_test): Add
21018 a failure comment.
21019 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21020 (failure_start): ...this. Check that malloc succeeded.
21021 Don't call xvasprintf. Return failure struct.
21022 (failure_append_vtext): New function.
21023 (failure_append_text): Likewise.
21024 (add_failure): Likewise.
21025 (grub_test_assert_helper): Likewise.
21026 * include/grub/test.h (grub_test_assert_helper): New declaration.
21027 (grub_test_assert): Macro rewritten.
21028
21029 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21030
21031 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21032
21033 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21034
21035 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21036
21037 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21038
21039 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21040 into GRUB-style one.
21041
21042 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21043
21044 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21045 error and not grub_errno.
21046 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21047
21048 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21049
21050 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21051 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21052
21053 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21054
21055 * grub-core/efiemu/i386/pc/cfgtables.c
21056 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21057 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21058 (grub_xnu_unlock): Likewise.
21059 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21060
21061 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21062
21063 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21064 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21065 * grub-core/commands/hashsum.c (aliases): Likewise.
21066 * grub-core/commands/setpci.c (pci_registers): Likewise.
21067 * grub-core/disk/usbms.c (attach_hook): Likewise.
21068 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21069 (zio_checksum_table): Likewise.
21070 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21071 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21072 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21073 * grub-core/lib/relocator.c (leftovers): Likewise.
21074 (extra_blocks): Likewise.
21075 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21076 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21077 (modules_last): Likewise.
21078 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21079 (devices): Likewise.
21080 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21081 (modules_last): Likewise.
21082 * grub-core/normal/auth.c (users): Likewise.
21083 * grub-core/normal/context.c (initial_menu): Likewise.
21084 (current_menu): Likewise.
21085 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21086 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21087 (grub_serial_terminfo_input_template): Likewise.
21088 (grub_serial_terminfo_output_template): Likewise.
21089 (grub_serial_terminfo_input): Likewise.
21090 (grub_serial_terminfo_output): Likewise.
21091 (registered): Likewise.
21092 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21093
21094 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21095
21096 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21097 grub_video_mode_type_t.
21098 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21099 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21100 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21101
21102 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21103
21104 * util/grub-install.in: Correct the x86-64 name as x86_64.
21105
21106 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21107
21108 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21109 initial chunk read from the kernel always includes GRUB's multiboot
21110 header, which is now outside the first sector.
21111
21112 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21113
21114 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21115 cached mmap_size, so that this works correctly when called multiple
21116 times.
21117 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21118
21119 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21120
21121 * docs/grub.texi (Simple configuration): Tidy up formatting.
21122
21123 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21124
21125 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21126 Set-but-not-used variable removed.
21127
21128 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21129
21130 Workaround yet another IEEE1275 bug.
21131
21132 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21133 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21134 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21135 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21136 is set.
21137 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21138 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21139
21140 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21141
21142 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21143 error.
21144
21145 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21146
21147 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21148 empty, since in that case we can only generate either nothing or a
21149 syntactically invalid configuration file.
21150 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21151
21152 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21153
21154 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21155 (Making a GRUB bootable CD-ROM): Likewise.
21156 (Invoking grub-mkrescue): New section.
21157 Reported by: Yann Dirson. Fixes Debian bug #612585.
21158
21159 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21160
21161 * util/grub-install.in: Remove unnecessary brackets from tr
21162 arguments.
21163 * util/grub.d/10_hurd.in: Likewise.
21164 * util/grub.d/10_kfreebsd.in: Likewise.
21165 * util/grub.d/10_linux.in: Likewise.
21166 * util/grub.d/20_linux_xen.in: Likewise.
21167 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21168
21169 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21170
21171 * include/grub/file.h (not_easly_seekable): Rename to ...
21172 (not_easily_seekable): ... this. Update all users.
21173
21174 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21175
21176 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21177 grub-mkrescue.
21178
21179 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21180
21181 * util/grub-mkimage.c (generate_image): Refuse to create the images
21182 bigger than the actual flash (512K) in Loongson machines. 512K is also
21183 the biggest chip supported by them.
21184
21185 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21186
21187 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21188
21189 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21190
21191 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21192 super_offset field.
21193
21194 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21195
21196 * util/grub-install.in: Ignore install device on platforms
21197 where it doesn't make sense. Always use UUIDs except on pc, efi and
21198 sparc64.
21199 Reported by: Daniel Kahn Gillmor.
21200
21201 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21202
21203 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21204
21205 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21206
21207 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21208 (iterate_real): Don't rely on partition being non-NULL.
21209
21210 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21211
21212 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21213 supported platforms. Put a compile time assert for this rather than
21214 generate a warning with 32-bit shift.
21215
21216 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21217
21218 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21219 logical expression more readable.
21220
21221 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21222
21223 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21224 even if some elements have a name.
21225 Reported by: Alexander GQ Gerasiov.
21226
21227 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21228
21229 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21230 path unreadable if `grub-probe -t abstraction' fails, for example if
21231 memberlist fails on an LVM volume group.
21232 Reported by: Darius Jahandarie.
21233
21234 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21235
21236 * docs/grub.texi (Simple configuration): Document
21237 GRUB_PRELOAD_MODULES.
21238
21239 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21240
21241 * .bzrignore: Remove nonexistent grub-pbkdf2.
21242
21243 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21244
21245 * configure.ac: Bump version to 1.99~rc1.
21246
21247 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21248
21249 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21250 for safety.
21251
21252 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21253
21254 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21255 module.
21256
21257 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21258
21259 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21260
21261 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21262
21263 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21264 diskdevid.
21265
21266 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21267
21268 Fix compilation on cygwin.
21269
21270 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21271 -R .drectve on cygwin.
21272 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21273 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21274 (COND_CYGWIN): New condition.
21275 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21276 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21277 not @TARGET_OBJ2ELF@.
21278 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21279 type to determine whether aux is to be used.
21280
21281 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21282
21283 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21284 realpath'ed device string.
21285 Handle floppy (somewhat).
21286 Issue error in unknown case rather than garbage.
21287 Reported by: Axel Beckert.
21288
21289 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21290
21291 * util/grub.d/00_header.in (load_video): Handle the case when no video
21292 drivers available.
21293 Thanks to: Axel Beckert.
21294
21295 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21296
21297 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21298 variable. Fixes problem on big endian platforms.
21299
21300 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21301
21302 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21303 It doesn't work well there.
21304
21305 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21306
21307 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21308 warning.
21309 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21310 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21311 counter.
21312
21313 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21314
21315 Use alias->path rather than buggy "canon".
21316
21317 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21318 (ofdisk_hash_add): New argument curcan. All users updated.
21319
21320 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21321
21322 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21323
21324 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21325
21326 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21327 loadmask before doing any calculations. Use correct type for offset.
21328 (grub_linux_load64): Likewise.
21329
21330 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21331
21332 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21333 with NULL.
21334 (console_grub_equivalences_unshift): Likewise.
21335 Reported by: Daniel Dehennin.
21336
21337 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21338
21339 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21340 (set_env_limn_ro): Likewise.
21341 (GRUB_MOD_INIT): Likewise.
21342 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21343 ARRAY_SIZE while on it.
21344 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21345 * grub-core/normal/context.c (grub_env_export): Move from here ...
21346 * grub-core/kern/env.c (grub_env_export): ... here.
21347 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21348 prefix.
21349 * grub-core/kern/main.c (grub_main): Export root and prefix.
21350 * include/grub/env.h (grub_env_export): Export.
21351 Reported by: Seth Goldberg.
21352
21353 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21354
21355 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21356 Take into account space used by ELF sections and multiboot palette.
21357 Reported by: Grégoire Sutre.
21358
21359 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21360
21361 * BUGS: New file.
21362
21363 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21364
21365 Pass more appropriate video id to Linux.
21366
21367 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21368 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21369 fill have_vga.
21370 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21371 shift params->lfb_size.
21372 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21373
21374 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21375
21376 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21377
21378 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21379
21380 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21381 separator and pass bootpath/devid even if only one of them is available.
21382 Reported by: Seth Goldberg.
21383
21384 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21385
21386 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21387 implementations bug on them.
21388
21389 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21390 memory.
21391 (filter_memory_map): Likewise.
21392
21393 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21394
21395 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21396 Reported by: nebuchadnezzar.
21397
21398 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21399
21400 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21401 Reported by: nebuchadnezzar.
21402
21403 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21404
21405 Submenu default support.
21406
21407 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21408 auto_boot. All users updated.
21409 Declared static.
21410 Handle chosen and default with submenus.
21411 (grub_menu_execute_with_fallback): Declared static.
21412 Don't notify failure if autobooted. Upper level does it.
21413 (menuentry_eq): New function.
21414 (get_entry_number): Use menuentry_eq.
21415 (show_menu): New parameter "autobooted". All users updated.
21416 (grub_show_menu): Likewise.
21417 * include/grub/normal.h (grub_show_menu): Likewise.
21418 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21419 (grub_menu_execute_with_fallback): Likewise.
21420
21421 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21422
21423 * util/grub-mklayout.c (usage): Update help text.
21424
21425 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21426
21427 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21428
21429 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21430
21431 * util/grub-menulst2cfg.c (main): Trim the line.
21432
21433 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21434
21435 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21436 (grub_machine_init): Don't check amount of low memory as reportedly
21437 INT 12h can be broken and if low memory is too low we wouldn't have
21438 gotten into grub_machine_init anyway.
21439
21440 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21441
21442 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21443 (grub_machine_mmap_iterate): Take low memory into account
21444
21445 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21446
21447 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21448 badfs.
21449 Reported by: TiCPU.
21450
21451 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21452
21453 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21454 members errors.
21455
21456 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21457
21458 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21459 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21460
21461 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21462
21463 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21464 openbsd and netbsd types being in part_bsd module.
21465
21466 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21467
21468 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21469 (_FILE_OFFSET_BITS): Likewise.
21470 Reported by: Seth Goldberg.
21471
21472 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21473
21474 * configure.ac: Check for libdevmapper header.
21475
21476 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21477
21478 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21479 avoid aliasing.
21480 (fzap_lookup): Likewise.
21481 (dnode_get): Likewise.
21482 (make_mdn): Likewise.
21483 (zfs_mount): Likewise.
21484 (fzap_iterate): Use temporary pointer to avoid aliasing.
21485 (grub_zfs_read): Likewise.
21486 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21487 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21488 pointers to avoid aliasing.
21489 (grub_cmd_xnu_kernel64): Likewise.
21490 (grub_xnu_load_driver): Likewise.
21491
21492 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21493
21494 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21495 aliasing warning.
21496 (grub_cmd_terminal_output): Likewise.
21497 Reported and tested by: Grégoire Sutre.
21498
21499 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21500
21501 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21502 warning.
21503 Reported and tested by: Grégoire Sutre.
21504
21505 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21506
21507 * configure.ac: Do CPU substitution even if it's specified explicitly.
21508 Reported and tested by: Alain Greppin.
21509
21510 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21511
21512 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21513 Reported and tested by: Alain Greppin.
21514
21515 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21516
21517 Satisfy some bison versions need for inttypes.h.
21518
21519 * grub-core/lib/posix_wrap/inttypes.h: New file.
21520 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21521 (int16_t): Likewise.
21522 (int32_t): Likewise.
21523 (int64_t): Likewise.
21524 Reported and tested by: Alain Greppin.
21525
21526 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21527
21528 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21529 Silence spurious warning.
21530 Reported and tested by: Alain Greppin.
21531
21532 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21533
21534 * docs/grub.texi (Support automatic decompression): Update with xz
21535 decompression support.
21536
21537 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21538
21539 Improve loaders' kernel command line handling.
21540
21541 * grub-core/lib/cmdline.c: New file.
21542 * include/grub/lib/cmdline.h: Likewise.
21543 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21544 grub_create_loader_cmdline to create kernel command line.
21545 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21546 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21547 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21548 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21549 (linux): Add lib/cmdline.c on common.
21550
21551 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21552
21553 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21554 inopos might be unaligned.
21555
21556 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21557
21558 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21559 endian transformations.
21560 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21561 Based on report by: Doug Nazar.
21562
21563 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21564
21565 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21566 array->members[i].start_sector.
21567 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21568
21569 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21570
21571 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21572 Reported and tested by: Grégoire Sutre.
21573
21574 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21575
21576 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21577 avoid causing test failures by clearing the screen.
21578
21579 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21580
21581 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21582 Fix prefix check to handle the case where dir ends with a slash
21583 (most significantly, "/" itself).
21584 Reported by: Michael Vogt.
21585
21586 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21587
21588 Run terminfo_cls on initing terminfo output to clear the screen and
21589 move the cursor to (0,0).
21590
21591 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21592 Call grub_terminfo_output_init.
21593 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21594 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21595 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21596
21597 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21598
21599 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21600 only when needed.
21601
21602 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21603
21604 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21605 CTRL.
21606
21607 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21608
21609 The E820 type 5 is BADRAM, not EXEC_CODE.
21610
21611 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21612 (GRUB_E820_BADRAM): New define.
21613 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21614 into reserved. Propagate BADRAM.
21615 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21616 (GRUB_E820_BADRAM): New define.
21617
21618 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21619
21620 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21621 Ignore the memory post-4G.
21622 (grub_relocator_firmware_alloc_region): Additional debug statement.
21623
21624 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21625
21626 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21627 names.
21628 Reported by: David Pravec.
21629
21630 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21631
21632 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21633 BIOSes.
21634
21635 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21636
21637 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21638 Prevent overflow.
21639 (grub_reed_solomon_recover): Likewise.
21640
21641 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21642
21643 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21644
21645 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21646
21647 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21648 variable.
21649
21650 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21651
21652 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21653 descriptions of extract_legacy_entries_source and
21654 extract_legacy_entries_configfile.
21655 Reported by: Seung Soo, Ha.
21656
21657 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21658
21659 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21660 on devices that do not implement function 0.
21661
21662 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21663
21664 * grub-core/fs/hfsplus.c: Make parent unsigned.
21665 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21666 overflows.
21667 (grub_hfsplus_cmp_extkey): Likewise
21668
21669 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21670
21671 * util/grub-install.in: Correctly use bootloader_id and not
21672 GRUB_DISTRIBUTOR on efibootmgr line.
21673
21674 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21675
21676 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21677
21678 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21679
21680 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21681 Xen and reorder menu item wording to make it clearer that this entry
21682 will launch Xen. Print separate messages when loading Xen and
21683 Linux.
21684
21685 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21686
21687 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21688 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21689 loop in case of incorrect amiga partmap.
21690
21691 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21692
21693 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21694 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21695 Reported by:EHeM.
21696
21697 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21698
21699 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21700 spurious warning.
21701 Reported by: crocket
21702
21703 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21704
21705 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21706 Preload EFIemu.
21707 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21708
21709 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21710
21711 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21712 is loaded
21713 (grub_cmd_xnu_kextdir): Likewise.
21714 (grub_cmd_xnu_splash): Likewise.
21715
21716 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21717
21718 Avoid using Reed-Solomon with 0 redundancy.
21719
21720 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21721 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21722 or 0 redundancy.
21723 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21724 (grub_reed_solomon_recover): Likewise.
21725
21726 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21727
21728 Don't use disk subsystem in freebsd_boot.
21729
21730 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21731 (freebsd_biosdev): Likewise.
21732 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21733 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21734
21735 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21736
21737 Handling of files of unknown size is currently limited. They can't be
21738 used e.g. for initrd or modules. Moreover gzip handling of not
21739 easily seekable files is buggy. Disable unknown file size for now. May
21740 be inefficient but works.
21741
21742 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21743 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21744
21745 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21746
21747 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21748 floppy probe.
21749
21750 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21751
21752 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21753
21754 2010-12-25 Shea Levy <shlevy>
21755
21756 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21757
21758 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21759
21760 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21761 Windows Server 2008.
21762 Reported by: Devin Giddings.
21763
21764 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21765
21766 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21767 writing an error message because of async power management.
21768 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21769 (grub_reboot): Likewise.
21770
21771 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21772
21773 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21774 keep unit tests from failing when they shouldn't.
21775
21776 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21777
21778 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21779 previous patch increased the size of the RS code by 20 bytes (at
21780 least with gcc-4.4), so increase this by 20 bytes to match.
21781 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21782
21783 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21784
21785 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21786 scratch area. Make sure to initialise chosen in standalone mode as
21787 well as non-standalone.
21788 Reported by: Robert Hooker and Andy Whitcroft.
21789 Tested by: Andy Whitcroft.
21790
21791 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21792
21793 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21794 constructing a new unescaped string and passing it to grub_xputs in
21795 one go, rather than passing characters to grub_printf one at a time.
21796
21797 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21798
21799 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21800 initialising utf16.
21801
21802 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21803
21804 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21805 comment. Add an extra layer of quotation, requiring the output of
21806 this function to be used in a printf format string.
21807 (gettext_printf): New function.
21808 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21809 Extract translatable strings from here-documents and use a temporary
21810 variable instead, so that xgettext can find them.
21811 * util/grub.d/10_kfreebsd.in: Likewise.
21812 * util/grub.d/10_linux.in: Likewise.
21813 * util/grub.d/20_linux_xen.in: Likewise.
21814
21815 * po/grub.d.sed: New file.
21816 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21817 arguments. Set c-format flags on all strings extracted from
21818 util/grub.d/ (xgettext refuses to include these itself for strings
21819 it extracted from a shell file, but these really are c-format).
21820
21821 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21822
21823 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21824 Avoid next pointing to nowhere.
21825
21826 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21827
21828 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21829 rather than assuming than rootblock is exactly in the middle.
21830 (grub_affs_label): Likewise.
21831
21832 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21833
21834 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21835 reserved_first_sector to 0.
21836 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21837 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21838 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21839
21840 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21841
21842 Fix handling of UTF-16 UDF labels.
21843
21844 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21845 (read_string): .. here.
21846 (grub_udf_label): Use read_string.
21847
21848 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21849
21850 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21851 editor under argument scope.
21852 Reported by: Jordan Uggla
21853
21854 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21855
21856 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21857
21858 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21859
21860 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21861 line, and other keys scroll an entire page (previous handling was
21862 for \r and \n to scroll a page and other keys to scroll two lines).
21863
21864 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21865
21866 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21867 Set ptrdest to correct get_physical_target_address rather than
21868 incorrect get_virtual_current_address.
21869
21870 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21871
21872 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21873 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21874
21875 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21876
21877 * .bzrignore: Ignore grub-core/rs_decoder.S.
21878
21879 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21880
21881 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21882 .mo/.mo.gz opening sequence to ...
21883 (grub_mofile_open_lang): ... here.
21884 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21885 * util/grub.d/00_header.in (grub_lang): Include country part of
21886 locale.
21887 Reported by: Mario Limonciello.
21888
21889 2010-12-09 Robert Millan <rmh@gnu.org>
21890
21891 * NEWS: Document addition of ZFS support.
21892
21893 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21894
21895 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21896 rather than `/ 2', as the latter requires -Wa,--divide which would
21897 require bumping our minimum binutils version.
21898
21899 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21900
21901 * util/grub-script-check.c (main): Print script line number on
21902 error.
21903
21904 2010-12-01 Robert Millan <rmh@gnu.org>
21905
21906 * grub-core/fs/zfs/zfs.c: New file.
21907 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21908 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21909 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21910 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21911
21912 * include/grub/zfs/dmu.h: Likewise.
21913 * include/grub/zfs/dmu_objset.h: Likewise.
21914 * include/grub/zfs/dnode.h: Likewise.
21915 * include/grub/zfs/dsl_dataset.h: Likewise.
21916 * include/grub/zfs/dsl_dir.h: Likewise.
21917 * include/grub/zfs/sa_impl.h: Likewise.
21918 * include/grub/zfs/spa.h: Likewise.
21919 * include/grub/zfs/uberblock_impl.h: Likewise.
21920 * include/grub/zfs/vdev_impl.h: Likewise.
21921 * include/grub/zfs/zap_impl.h: Likewise.
21922 * include/grub/zfs/zap_leaf.h: Likewise.
21923 * include/grub/zfs/zfs.h: Likewise.
21924 * include/grub/zfs/zfs_acl.h: Likewise.
21925 * include/grub/zfs/zfs_znode.h: Likewise.
21926 * include/grub/zfs/zil.h: Likewise.
21927 * include/grub/zfs/zio.h: Likewise.
21928 * include/grub/zfs/zio_checksum.h: Likewise.
21929
21930 * Makefile.util.def: Build ZFS into libgrubmods.
21931 * grub-core/Makefile.core.def: Build zfs.mod.
21932
21933 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21934
21935 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21936 variable.
21937 * grub-core/commands/wildcard.c (match_files): Likewise.
21938
21939 2010-11-30 Robert Millan <rmh@gnu.org>
21940
21941 * grub-core/loader/i386/bsd.c
21942 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21943 whether kernel is loaded using grub_loader_is_loaded(), rather
21944 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21945 certain error conditions.
21946
21947 2010-11-30 Robert Millan <rmh@gnu.org>
21948
21949 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21950 (grub_cmd_echo): Call grub_refresh() after printing a message.
21951
21952 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21953
21954 Avoid using tricks for initialising endian variables.
21955
21956 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21957 Make const.
21958 (GRUB_MOD_INIT): Don't byte-swap.
21959 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21960 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21961 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21962 (grub_swap_bytes32_compile_time): Likewise.
21963 (grub_cpu_to_le32_compile_time): Likewise.
21964 (grub_cpu_to_le16_compile_time): Likewise.
21965
21966 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21967
21968 * util/grub-setup.c (setup): Stop recommending --force. People who
21969 understand the dangers of blocklists are able to find this option
21970 anyway and the ones who don't shouldn't use it anyway.
21971
21972 2010-11-26 Robert Millan <rmh@gnu.org>
21973
21974 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21975 Update all users.
21976
21977 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21978
21979 Fix LVM-on-RAID probing.
21980
21981 * util/grub-probe.c (probe): Remember which disk was detected as
21982 RAID (perhaps an LVM physical volume). Use that disk's raidname
21983 rather than that of the top-level disk.
21984
21985 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21986
21987 Fix cmdline argument quotes for setparams command of menuentry
21988 definitions.
21989
21990 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21991 quotes for arguments.
21992 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21993 grub_strchrsub function instead.
21994
21995 * include/grub/misc.h (grub_strchrsub): New function.
21996
21997 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21998
21999 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22000 effort by skipping "." and ".." entries up-front.
22001 Suggested by: Michael Lazarev.
22002
22003 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22004
22005 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22006 ldflags to ldadd, to fix link line ordering.
22007 (none_decompress): Likewise.
22008
22009 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22010
22011 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22012 platforms.
22013 (grub-emu-lite): Remove kern/emu/cache.S.
22014
22015 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22016
22017 * util/deviceiter.c (compare_devices): If the by-id link for a
22018 device couldn't be resolved, fall back to sorting by the by-id link
22019 rather than segfaulting.
22020 Reported and tested by: Daniel Mierswa.
22021
22022 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22023
22024 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22025 ldflags, to fix link line ordering.
22026
22027 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22028
22029 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22030 linkers are picky about this.
22031
22032 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22033
22034 * grub-core/Makefile.am (command.lst): Adjust sed expression
22035 ordering so that extended and priority commands aren't treated as
22036 ordinary commands.
22037
22038 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22039
22040 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22041 Remove byte-swapping function calls, which are not valid in
22042 structure initialisers.
22043 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22044 non-const.
22045 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22046 grub_gpt_partition_type_bios_boot.
22047
22048 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22049
22050 Fix test program build on GNU/kFreeBSD.
22051
22052 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22053 $(LIBNVPAIR)' library dependencies.
22054
22055 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22056
22057 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22058
22059 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22060
22061 * util/grub-install.in: Remove excessive quoting that broke
22062 installations to RAID devices.
22063
22064 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22065
22066 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22067 bootloader version instead of 0.
22068
22069 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22070
22071 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22072 warning.
22073
22074 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22075
22076 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22077 retrieve the metadat sector if size isn't known.
22078 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22079
22080 2010-11-18 Robert Millan <rmh@gnu.org>
22081
22082 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22083 with grub_memcmp().
22084
22085 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22086
22087 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22088 arrow.
22089 Reported by: Jordan Uggla.
22090
22091 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22092
22093 Make better UTF compliant.
22094
22095 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22096 sequences as incorrect.
22097 (grub_is_valid_utf8): Likewise.
22098 (grub_utf8_to_ucs4): Likewise.
22099 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22100 (grub_ucs4_to_utf8_alloc): Likewise.
22101 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22102
22103 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22104
22105 Make legacy_source behave like source.
22106
22107 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22108 grub_show_menu.
22109 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22110
22111 2010-11-16 Colin Watson <cjwatson@debian.org>
22112
22113 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22114 (-Wunused implies -Wunused-parameter, but not vice versa).
22115
22116 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22117
22118 * configure.ac: Make error messages less confusing by testing for
22119 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22120 accepted, but produces a diagnostic if something else is wrong).
22121
22122 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22123
22124 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22125 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22126 (now unused).
22127 (grub_keyboard_controller_init)
22128 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22129 read the initial state since controller isn't inited yet.
22130
22131 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22132
22133 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22134 allocate_regbeg may need to create new chunk header.
22135
22136 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22137
22138 Fix quoting in legacy parser.
22139
22140 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22141 single quotes.
22142 (grub_legacy_parse): Likewise.
22143 Reported by: Jordan Uggla.
22144 Tested by: Jordan Uggla.
22145
22146 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22147
22148 Don't add -lgcc on i386 and x86_64.
22149
22150 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22151 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22152 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22153
22154 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22155
22156 * configure.ac: Add -Wno-trampolines when supported.
22157
22158 2010-11-14 Modestas Vainius <modax@debian.org>
22159
22160 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22161 fakeraid.
22162
22163 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22164
22165 Add generic logical block size support for UDF.
22166
22167 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22168 (GRUB_UDF_BLKSZ): Removed.
22169 (struct grub_udf_data): New field "lbshift" to hold the logical block
22170 size of the file system in log2 format. All users updated.
22171 (sblocklist): Change type to unsigned.
22172 (grub_udf_mount): Change type of "sblklist" to unsigned.
22173 Move AVDP search before VRS recognition, because the latter requires
22174 knowledge of the logical block size, which is detected during the
22175 former.
22176 Detect and validate logical block size during AVDP search, adding
22177 support for block sizes 512, 1024 and 4096.
22178 Make VRS recognition independent of block size.
22179
22180 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22181
22182 Properly handle deleted files on UDF.
22183
22184 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22185 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22186 set.
22187
22188 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22189
22190 Support reading files larger than 2 GiB.
22191
22192 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22193 "offset" to grub_off_t.
22194 (grub_udf_read_file): Likewise for parameter "pos".
22195
22196 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22197
22198 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22199 unavailable.
22200 (Simple configuration): Refer to Changes from GRUB Legacy about
22201 save_env availability.
22202
22203 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22204
22205 * util/grub-install.in: Ignore empty partition table detection
22206 instead of trying to include part_ module.
22207
22208 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22209
22210 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22211 LVM on RAID support.
22212
22213 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22214
22215 Properly define WORDS_BIGENDIAN in wrapped environments.
22216
22217 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22218 definition.
22219 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22220
22221 Reported by: Manoel Rebelo Abranches.
22222 Tested by: Manoel Rebelo Abranches.
22223
22224 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22225
22226 * util/grub-mkconfig.in: Fix quoting.
22227
22228 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22229
22230 Support big ext2 files.
22231
22232 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22233 (grub_ext2_read_block): Support triple indirect blocks.
22234 (grub_ext2_read_file): Use 64-bit types and read size_high.
22235 (grub_ext2_open): Read size_high.
22236 Reported by: Ximin Luo.
22237 Tested by: Manoel Rebelo Abranches.
22238
22239 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22240
22241 * util/grub-install.in: Handle filenames containing spaces.
22242 Reported by: Jordan Uggla.
22243 Tested by: Jordan Uggla.
22244
22245 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22246
22247 * util/grub-mkconfig.in (grub_script_check): New variable.
22248 Use grub_script_check instead of grub-script-check.
22249 Reported by: Barry Jackson.
22250
22251 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22252
22253 * docs/grub.texi (menu): Correct the order.
22254 Reported by: D. Hugh Redelmeier.
22255
22256 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22257
22258 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22259 jump.
22260
22261 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22262
22263 * include/grub/elfload.h (grub_elf32_size): New parameter.
22264 All users updated.
22265 Return maximum segments alignment.
22266 (grub_elf64_size): Likewise.
22267 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22268 Return maximum segments alignment.
22269 (grub_elf64_size): Likewise.
22270 * grub-core/loader/powerpc/ieee1275/linux.c:
22271 (grub_linux_claimmap_iterate): New function. Uses the
22272 "available" property in the "memory" node for memory allocation
22273 for kernel in the PowerPC loader.
22274 (grub_linux_load32): Correctly find linux entry point offset.
22275 (grub_linux_load64): Likewise.
22276
22277 2010-11-07 Robert Millan <rmh@gnu.org>
22278
22279 On mips-yeeloong, build with -march=loongson2f when this flag is
22280 available (GCC >= 4.4).
22281 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22282 `-march=mips3'.
22283 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22284 or otherwise add -march=mips3.
22285
22286 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22287
22288 Suppress shell expansion on echo '*' and echo "*" like cases.
22289 Reported by: Jordan Uggla.
22290
22291 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22292 string arguments before shell expansion.
22293 * tests/grub_cmd_echo.in: New testcases.
22294
22295 2010-11-07 Robert Millan <rmh@gnu.org>
22296
22297 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22298 transition.
22299
22300 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22301
22302 * grub-core/kern/emu/hostdisk.c
22303 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22304
22305 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22306
22307 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22308 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22309 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22310
22311 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22312
22313 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22314
22315 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22316
22317 * util/grub-install.in: Replace useless recomendation to pass
22318 --modules with a recomendation to report a bug.
22319
22320 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22321
22322 Properly register serial terminfo.
22323 Reported by: Jordan Uggla
22324
22325 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22326 const.
22327 (grub_serial_terminfo_output_template): Likewise.
22328 (grub_cmd_serial): Register "serial" with terminfo.
22329 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22330 grub_serial_terminfo_output.
22331
22332 2010-11-05 Robert Millan <rmh@gnu.org>
22333
22334 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22335 needed).
22336
22337 2010-11-05 Robert Millan <rmh@gnu.org>
22338
22339 On Yeeloong, pass machine type information to Linux.
22340
22341 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22342 (LOONGSON_MACHTYPE): New macro, set to
22343 "machtype=lemote-yeeloong-2f-8.9inches".
22344 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22345 additional argument to Linux.
22346
22347 2010-11-04 Robert Millan <rmh@gnu.org>
22348
22349 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22350 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22351 (its SATA disks are detected as slaveless IDE master drives on
22352 kFreeBSD).
22353 Reported by Carsten Aulbert.
22354
22355 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22356
22357 * util/bin2h.c (main): Fix spelling error in generated output.
22358
22359 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22360
22361 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22362
22363 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22364
22365 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22366 vga= option is supplied.
22367
22368 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22369
22370 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22371 * util/grub.d/10_kfreebsd.in: Likewise.
22372 * util/grub.d/10_linux.in: Likewise.
22373 * util/grub.d/20_linux_xen.in: Likewise.
22374
22375 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22376
22377 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22378 argument as an argument to no-argument option.
22379
22380 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22381
22382 * util/grub.d/10_linux.in: Add missing load_video with explicit
22383 GRUB_GFXPAYLOAD_LINUX.
22384
22385 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22386
22387 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22388
22389 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22390
22391 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22392 elements with invlid index.
22393 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22394 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22395 members.
22396 * include/grub/raid.h (grub_raid_member): New struct.
22397 (grub_raid_array): Transform devices and start_sector into usage of
22398 grub_raid_member. All users updated
22399 (allocated_devs): New member.
22400
22401 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22402
22403 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22404 is modified
22405
22406 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22407
22408 NetBSD build fix for getline function conflict from gnulib.
22409
22410 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22411 components that depend on gnulib headers.
22412 (libgrubmods.a): Renamed from earlier libgrub.a.
22413 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22414
22415 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22416
22417 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22418 install rather than creating a broken install.
22419
22420 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22421
22422 * util/grub-setup.c (argp): Remove misleading example of installing to
22423 a partition.
22424
22425 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22426
22427 * util/grub-setup.c (setup): Clarify the error message.
22428
22429 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22430
22431 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22432
22433 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22434
22435 * grub-core/kern/emu/misc.c
22436 (grub_make_system_path_relative_to_its_root)
22437 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22438
22439 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22440
22441 * grub-core/kern/emu/misc.c
22442 (grub_make_system_path_relative_to_its_root): Revert r2882.
22443
22444 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22445
22446 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22447 useless field head. All users updated.
22448 (free_subchunk): Correct handling of IN_REGION subchunk.
22449
22450 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22451
22452 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22453 (Supported kernels): Likewise.
22454
22455 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22456
22457 Make mktemp invocations portable.
22458
22459 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22460 exit if mktemp fails.
22461 * tests/grub_script_blockarg.in: Likewise.
22462 * tests/partmap_test.in: Likewise.
22463 * tests/util/grub-shell-tester.in: Likewise.
22464 * tests/util/grub-shell.in: Likewise.
22465 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22466 * Makefile.am: Likewise, and chain shell commands with `&&'
22467 instead of ';'.
22468 * util/grub-mkrescue.in: Use the same explicit template as above, and
22469 exit if mktemp fails.
22470
22471 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22472
22473 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22474 Linux kernel, reported by Dennis Schridde.
22475
22476 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22477
22478 * grub-core/normal/auth.c (grub_auth_check_authentication):
22479 Set-but-not-used variable removed.
22480
22481 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22482
22483 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22484 32-bit linux protocol.
22485
22486 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22487
22488 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22489 cursor shape for sanity.
22490
22491 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22492
22493 * docs/grub.texi (Installation): Document buggy BIOS install.
22494
22495 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22496
22497 * docs/grub.texi (Installation): Indent.
22498
22499 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22500
22501 * util/grub-setup.c (setup): New parameter allow_floppy.
22502 (arguments): New member allow_floppy.
22503 (argp_parser): Handle --allow-floppy.
22504 (main): Pass allow_floppy.
22505 * util/grub-install.in: New option --allow-floppy passed though to
22506 grub-setup.
22507
22508 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22509
22510 * util/grub-install.in: Handle partitionless disks.
22511
22512 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22513
22514 * util/grub-setup.c (setup): Don't clean blocklists before readability
22515 verfification.
22516
22517 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22518
22519 * docs/grub.texi (Installation): Document embedding zone. Remove
22520 obsolete grub-install example.
22521
22522 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22523
22524 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22525 Set-but-not-used variable ifdef'ed.
22526 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22527 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22528 variable removed.
22529 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22530 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22531 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22532 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22533 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22534 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22535 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22536 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22537 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22538 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22539 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22540 Likewise.
22541
22542 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22543
22544 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22545 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22546 enum value.
22547
22548 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22549
22550 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22551 synonym to _S5_. Needed for some DSDTs.
22552
22553 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22554
22555 Userspace ACPI parser debugging.
22556
22557 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22558 headers and add relevant defines. Don't include standard headers.
22559 (main) [GRUB_DSDT_TEST]: New function.
22560 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22561 Don't declare functions.
22562
22563 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22564
22565 Remove dead grub_efi_mm_fini.
22566
22567 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22568 (ALLOCATED_PAGES_SIZE): Likewise.
22569 (MAX_ALLOCATED_PAGES): Likewise.
22570 (allocated_pages): Likewise.
22571 (grub_efi_allocate_pages): Don't record allocated pages.
22572 (grub_efi_free_pages): Likewise.
22573 (grub_efi_mm_init): Likewise.
22574 (grub_efi_mm_fini): Removed.
22575
22576 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22577
22578 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22579 (grub_efi_mm_init): Take into account the memory map size increase.
22580
22581 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22582
22583 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22584 (serial_hw_put): Wait based on real time rather than port reads. Don't
22585 roken ports.
22586 * include/grub/serial.h (grub_serial_port): New field broken.
22587
22588 2010-10-16 Robert Millan <rmh@gnu.org>
22589
22590 * grub-core/kern/emu/misc.c
22591 (grub_make_system_path_relative_to_its_root): Fix premature return
22592 when processing non-root ZFS filesystems.
22593 Reported by Sergio Talens-Oliag.
22594
22595 2010-10-15 Robert Millan <rmh@gnu.org>
22596
22597 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22598 guarantee compressed ones are processed first.
22599
22600 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22601
22602 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22603 grub_efiemu_autocore.
22604
22605 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22606
22607 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22608 rather than 0x1b.
22609 (grub_console_getkey): Use correct jae opcode rather than ja.
22610
22611 2010-10-12 Robert Millan <rmh@gnu.org>
22612
22613 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22614 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22615 variable. All references updated.
22616
22617 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22618
22619 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22620
22621 Correctly distinguish mdraid flavours.
22622
22623 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22624 (insert_array): New argument raid.
22625 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22626 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22627 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22628
22629 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22630
22631 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22632 handling of special keys.
22633
22634 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22635
22636 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22637 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22638
22639 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22640
22641 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22642 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22643 users updated.
22644 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22645 Use right endpoint when querying descriptor.
22646
22647 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22648
22649 Clear out 0x80 color bit on EFI.
22650 Tested by: decoder
22651 Reported by: decoder and meta tech.
22652
22653 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22654 (grub_console_setcolorstate): Clear out 0x80 bit.
22655 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22656 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22657 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22658
22659 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22660
22661 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22662 Set to "auto".
22663
22664 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22665
22666 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22667 mo_file after freeing.
22668
22669 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22670
22671 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22672
22673 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22674
22675 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22676 flags.
22677
22678 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22679
22680 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22681 usage.
22682
22683 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22684
22685 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22686
22687 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22688 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22689 and terminfo.h when needed.
22690 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22691 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22692 (terminfo): Enable only on terminfokernel.
22693 (extcmd): Likewise.
22694 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22695 * include/grub/lib/arg.h: Likewise.
22696 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22697 incorrect usage of ->.
22698
22699 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22700
22701 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22702 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22703
22704 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22705
22706 Fix coreboot compilation.
22707
22708 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22709 Take VBE info into account even if only text is supported.
22710 (fill_vbe_info): Take into account the case when only VGA text
22711 is supported.
22712 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22713 on coreboot, multiboot and qemu.
22714
22715 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22716
22717 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22718 debug messages.
22719 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22720
22721 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22722
22723 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22724 parameters.
22725
22726 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22727
22728 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22729 if they were BSD-style.
22730
22731 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22732
22733 * grub-core/boot/i386/pc/lnxboot.S: Replace
22734 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22735 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22736
22737 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22738
22739 Write embedding zone using Reed-Solomon.
22740
22741 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22742 * grub-core/Makefile.am (rs_decoder.S): New target.
22743 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22744 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22745 (multiboot): Move to RS part.
22746 (post_reed_solomon): New label.
22747 (grub_boot_drive): Move to non-RS part since it's modified in memory
22748 on boot.
22749 Include rs_decoder.S.
22750 * grub-core/lib/reed_solomon.c: New file.
22751 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22752 New definition.
22753 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22754 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22755 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22756 * include/grub/partition.h (grub_partition_map): Change prototype of
22757 embed to allow returning additional sectors.
22758 * include/grub/reed_solomon.h: New file.
22759 * util/grub-setup.c (setup): Handle Reed-Solomon.
22760
22761 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22762
22763 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22764 i386 and x86-64 definedness tests.
22765
22766 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22767
22768 Fix generation of kernel_syms.lst
22769
22770 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22771 ASM_PREFIX
22772
22773 2010-09-26 Robert Millan <rmh@gnu.org>
22774
22775 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22776
22777 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22778 the pool is an array of devices, iterate through it and return the
22779 first device that passes a stat() test (instead of blindly returning
22780 the first one).
22781
22782 2010-09-26 Robert Millan <rmh@gnu.org>
22783
22784 Build fixes for GNU/kFreeBSD.
22785
22786 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22787 to programs that require ZFS conversion.
22788 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22789 kernels that don't have FLOPPY_MAJOR.
22790
22791 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22792
22793 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22794
22795 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22796
22797 Fix grub-emu build.
22798
22799 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22800 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22801 mdraid09 and mdraid1x.
22802
22803 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22804
22805 Re-enable grub-extras.
22806
22807 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22808 avoid confusing Automake. Run autogen only twice, once for the top
22809 level and once for grub-core. Add Makefile.util.def and
22810 Makefile.core.def from extra modules to the appropriate autogen
22811 invocations. If Makefile.common exists in an extra module, include
22812 it in both Makefile.util.am and grub-core/Makefile.core.am;
22813 similarly, include any Makefile.util.common file in Makefile.util.am
22814 and any Makefile.core.common file in grub-core/Makefile.core.am.
22815 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22816 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22817 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22818 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22819
22820 * gentpl.py (gvar_add): Turn GVARS into a set.
22821 (global_variable_initializers): Sort global variables on output.
22822 (vars_init): New function.
22823 (first_time): Likewise.
22824 (library): Ensure that non-global variable initialisations are
22825 emitted before the first time we emit code for a library block.
22826 Append to variables rather than setting them. Only emit
22827 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22828 each conditional path.
22829 (program): installdir() emits an Autogen macro, so must be passed to
22830 var_add rather than gvar_add.
22831 (data): Likewise.
22832 (script): Likewise.
22833 (rules): New function, centralising handling for different target
22834 types. Set up Guile association lists for first_time and vars_init,
22835 and send most output to a diversion so that variable initialisations
22836 can be emitted first.
22837 (module_rules): Use new rules function.
22838 (kernel_rules): Likewise.
22839 (image_rules): Likewise.
22840 (library_rules): Likewise.
22841 (program_rules): Likewise.
22842 (script_rules): Likewise.
22843 (data_rules): Likewise.
22844
22845 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22846
22847 * .bzrignore: Add contrib and grub-core/contrib. Remove
22848 grub-core/Makefile.gcry.am.
22849
22850 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22851
22852 * grub-core/lib/LzFind.c: Add missing include.
22853 * grub-core/lib/LzmaEnc.c: Likewise.
22854 * grub-core/script/lexer.c: Likewise.
22855 * grub-core/script/yylex.l: Likewise.
22856 * util/grub-macho2img.c: Likewise.
22857 * util/grub-menulst2cfg.c: Likewise.
22858 * util/grub-mklayout.c: Likewise.
22859 * util/grub-mkpasswd-pbkdf2.c
22860 * util/grub-mkrelpath.c: Likewise.
22861 * util/resolve.c: Likewise.
22862
22863 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22864
22865 * Makefile.util.def (example_unit_test): Add
22866 grub-core/gnulib/libgnu.a.
22867
22868 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22869
22870 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22871
22872 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22873
22874 Support xz compression on yeeloong.
22875
22876 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22877 * configure.ac: Check for LZMA.
22878 * grub-core/Makefile.core.def (xz_decompress): New target.
22879 (none_decompress): Likewise.
22880 * grub-core/boot/decompressor/minilib.c: New file.
22881 * grub-core/boot/decompressor/none.c: Likewise.
22882 * grub-core/boot/decompressor/xz.c: Likewise.
22883 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22884 * grub-core/kern/mips/cache_flush.S: Likewise.
22885 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22886 * grub-core/kern/mips/startup.S: Move first stage to ...
22887 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22888 nomacro.
22889 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22890 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22891 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22892 Allocate statically.
22893 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22894 Allocate statically or use scratch. Don't check CRC32.
22895 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22896 Allocate statically. Don't check CRC32.
22897 * include/grub/decompressor.h: New file.
22898 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22899 Removed.
22900 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22901 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22902 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22903 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22904 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22905 * util/grub-mkimage.c (grub_compression_t): New type.
22906 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22907 (image_target_desc): New field default_compression.
22908 (image_targets): Adjust yeeloong targets.
22909 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22910 (compress_kernel): New parameter comp.
22911 (generate_image): Likewise. Handle new compression case.
22912 (options): New option --compression
22913 (help): Likewise.
22914 (main): Handle new option.
22915
22916 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22917
22918 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22919
22920 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22921
22922 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22923 typo in __i386__ conditional.
22924
22925 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22926
22927 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22928 include.
22929
22930 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22931
22932 Implement EFI and ACPI multiboot2 extensions.
22933
22934 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22935 new tags as supported.
22936 (acpiv2_size): New function.
22937 (grub_multiboot_get_mbi_size): Take new tags into account.
22938 (grub_multiboot_make_mbi): Add new tags.
22939 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22940
22941 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22942
22943 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22944 Added missing configuration of USB device.
22945
22946 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22947
22948 * grub-core/normal/menu_entry.c (run): Make sure we always return
22949 a value.
22950
22951 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22952
22953 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22954 NumberOfPages is UINT64 according to the UEFI specification, not
22955 UINTN. Fix printf format.
22956
22957 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22958
22959 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22960 `err' to grub_usb_err_t.
22961 Reported and tested by: KESHAV P.R.
22962
22963 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22964
22965 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22966 tpart non-const, so that we can assign to it. (Since this is a
22967 typedef, the constness refers to the pointer rather than what it
22968 points to.)
22969
22970 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22971
22972 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22973 $(top_srcdir)/grub-core/gnulib as well as
22974 $(top_builddir)/grub-core/gnulib.
22975 Reported by: KESHAV P.R.
22976
22977 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22978
22979 * util/grub-install.in: Fix the bootloader ID option to be
22980 consistently --bootloader-id, not --bootloader_id.
22981 Reported by: KESHAV P.R.
22982
22983 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22984
22985 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22986 check hash checksum." consistently translatable.
22987
22988 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22989
22990 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22991 $(top_builddir).
22992
22993 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22994
22995 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22996 (GRUB_MOD_INIT): Register sha1sum command.
22997 (GRUB_MOD_FINI): Unregister sha1sum command.
22998
22999 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23000
23001 Keep boot and grub directory names in sync with utils scripts
23002
23003 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23004 * config.h.in: Add previous macros.
23005 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23006 * util/grub-install.in: Use $bootdir and $grubdir variables.
23007
23008 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23009
23010 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23011 convert partition names to disk names if the new `convert' parameter
23012 is set.
23013 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23014 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23015 disk in its own right. This can happen with Xen disk images.
23016
23017 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23018
23019 * util/grub-editenv.c: Update strings to avoid warnings when generating
23020 grub.pot file.
23021 * util/grub-setup.c: Likewise.
23022
23023 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23024
23025 * configure.ac: Change version to 1.99~beta0.
23026
23027 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23028
23029 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23030 Add BADRAM.
23031 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23032 Likewise.
23033 * include/multiboot.h: Resynced with specification.
23034 * include/multiboot2.h: Likewise.
23035
23036 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23037
23038 Fix po directory handling.
23039
23040 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23041 * grub-core/gnulib/Makefile.am: Import gettext module.
23042 * m4/gnulib-cache.m4: Likewise.
23043 * m4/gnulib-comp.m4: Likewise.
23044 * m4/gettext.m4: New file, from gnulib.
23045 * m4/glibc2.m4: Likewise.
23046 * m4/iconv.m4: Likewise.
23047 * m4/intdiv0.m4: Likewise.
23048 * m4/intl.m4: Likewise.
23049 * m4/intldir.m4: Likewise.
23050 * m4/intlmacosx.m4: Likewise.
23051 * m4/intmax.m4: Likewise.
23052 * m4/inttypes-pri.m4: Likewise.
23053 * m4/lcmessage.m4: Likewise.
23054 * m4/lib-ld.m4: Likewise.
23055 * m4/lib-link.m4: Likewise.
23056 * m4/lib-prefix.m4: Likewise.
23057 * m4/lock.m4: Likewise.
23058 * m4/nls.m4: Likewise.
23059 * m4/po.m4: Likewise.
23060 * m4/printf-posix.m4: Likewise.
23061 * m4/progtest.m4: Likewise.
23062 * m4/threadlib.m4: Likewise.
23063 * m4/uintmax_t.m4: Likewise.
23064 * m4/visibility.m4: Likewise.
23065 * po/Makefile.am: Remove.
23066 * po/Makefile.in.in: New file, from gettext.
23067 ($(DOMAIN).pot-update): Support POTFILES-shell.
23068 * po/Makevars: New file.
23069 * po/POTFILES-shell: Rename to ...
23070 * po/POTFILES-shell.in: ... this. Update.
23071 * po/POTFILES: Rename to ...
23072 * po/POTFILES.in: ... this. Update.
23073 * po/Rules-quot: New file, from gettext.
23074 * po/boldquot.sed: Likewise.
23075 * po/en@boldquot.header: Likewise.
23076 * po/en@quot.header: Likewise.
23077 * po/insert-header.sin: Likewise.
23078 * po/quot.sed: Likewise.
23079 * po/remove-potcdate.sin: Likewise.
23080
23081 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23082
23083 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23084
23085 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23086
23087 * util/grub.d/20_linux_xen.in: Use submenus.
23088
23089 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23090
23091 Support submenus.
23092
23093 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23094 parameter submenu. All users updated.
23095 * grub-core/normal/main.c (free_menu): Rename to ...
23096 (grub_normal_free_menu): ... this. Made global.
23097 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23098 if requested.
23099 * grub-core/normal/menu_entry.c (screen): New field submenu.
23100 (make_screen): Set submenu.
23101 (run): Open new context if requested.
23102 * include/grub/menu.h (grub_menu_entry): New field submenu.
23103 * include/grub/normal.h (grub_normal_free_menu): New proto.
23104
23105 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23106
23107 Menu entries extractor.
23108
23109 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23110 variants.
23111 (GRUB_MOD_INIT): Register new variants.
23112 (GRUB_MOD_FINI): Unregister new variants.
23113 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23114 into grub_cmd_legacy_source.
23115 (grub_cmd_legacy_source): Implement extractor variants.
23116 (GRUB_MOD_INIT): Register new variants.
23117 (GRUB_MOD_FINI): Unregister new variants.
23118 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23119 as an extractor.
23120 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23121 search as an extractor.
23122 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23123 test as an extractor.
23124 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23125 as an extractor.
23126 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23127 (grub_env_new_context): New function.
23128 (grub_env_context_open): Likewise.
23129 (grub_env_extractor_open): Likewise.
23130 (grub_env_extractor_close): Likewise.
23131 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23132 grub_extractor_level.
23133 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23134 * include/grub/env.h (grub_env_extractor_open): New proto.
23135 (grub_env_extractor_close): Likewise.
23136 * include/grub/normal.h (grub_extractor_level): New external variable.
23137
23138 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23139
23140 Make cutmem accept a region specification.
23141 Suggested by: Samuel Thibault
23142
23143 * grub-core/mmap/mmap.c (parsemem): New function.
23144 (grub_cmd_cutmem): Handle new arguments.
23145
23146 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23147
23148 New command cutmem.
23149
23150 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23151 (GRUB_MOD_INIT): Register new command.
23152 (GRUB_MOD_FINI): Unregister new command.
23153
23154 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23155
23156 Support some annoying BSD and Minix subpartitions.
23157
23158 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23159 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23160 Properly handle concatenation.
23161 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23162 * grub-core/normal/completion.c (iterate_partition): Likewise.
23163 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23164 contain partition. All users updated.
23165 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23166 struct.
23167 (grub_openbsdlabel_partition_map): Likewise.
23168 (bsdlabel_partition_map_iterate): Rename to ..
23169 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23170 (bsdlabel_partition_map_iterate): New function.
23171 (netopenbsdlabel_partition_map_iterate): Likewise.
23172 (netbsdlabel_partition_map_iterate): Likewise.
23173 (openbsdlabel_partition_map_iterate): Likewise.
23174 (GRUB_MOD_INIT): Register new partmaps.
23175 (GRUB_MOD_FINI): Unregister new partmaps.
23176 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23177 (grub_partition_msdos_iterate): ... this. All users updated.
23178 Don't support embedding other than in a minix partition.
23179 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23180 proto.
23181 * include/grub/partition.h (grub_partition): New field msdostype.
23182 * util/grub-install.in: Handle openbsd and netbsd types being in
23183 part_bsd module.
23184
23185 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23186
23187 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23188
23189 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23190 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23191 (mdraid09): ... this.
23192 (mdraid1x): New module.
23193 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23194 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23195
23196 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23197
23198 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23199 vsprintf.
23200
23201 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23202
23203 * grub-core/commands/efi/lsefimmap.c: Correct header.
23204 * NEWS: Update.
23205
23206 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23207
23208 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23209 as printf format strings; the translations might contain '%' which
23210 could cause a crash.
23211 (main): Likewise.
23212 * util/grub-fstest.c (argp_parser): Likewise.
23213 * util/grub-setup.c (argp_parser): Likewise.
23214 (main): Likewise.
23215
23216 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23217
23218 Use argp in grub-fstest.
23219
23220 * util/grub-fstest.c: Don't include getopt.h.
23221 Include argp.h.
23222 (root): New variable.
23223 (args_count): Likewise.
23224 (nparm): Likewise.
23225 (num_disks): Likewise.
23226 (images): Likewise.
23227 (cmd): Likewise.
23228 (debug_str): Likewise.
23229 (args): Likewise.
23230 (options): Transformed to argp.
23231 (usage): Removed.
23232 (main): Split argument parsing into ...
23233 (argp_parser): ... this. Changed to argp format.
23234 (argp): New variable.
23235 (main): Use argp_parse.
23236
23237 2010-09-20 Tristan Gingold <gingold@free.fr>
23238 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23239 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23240
23241 * grub-core/commands/efi/lsefimmap.c: New file.
23242 * grub-core/Makefile.core.def (lsefimmap): New module.
23243 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23244
23245 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23246
23247 Pause the execution (10s max) if any errors are displayed so the user
23248 has a chance to see them.
23249
23250 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23251 (grub_print_error): Increment grub_err_printed_errors.
23252 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23253 execution if any errors were displayed.
23254 (show_menu): Remove old code for pause.
23255 * grub-core/normal/menu_entry.c (run): Likewise.
23256 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23257 users updated.
23258 (grub_normal_get_char_counter): Likewise.
23259 * include/grub/err.h (grub_err_printed_errors): New external variable.
23260 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23261
23262 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23263
23264 Support multiboot VBE info.
23265
23266 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23267 Take VBE info into account.
23268 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23269 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23270 Call fill_vbe_info when appropriate.
23271 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23272 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23273 as supported.
23274 (grub_multiboot_get_mbi_size): Take new tags into account.
23275 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23276 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23277 Call fill_vbe_tag when appropriate.
23278 (grub_multiboot_make_mbi): Properly align tags.
23279 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23280 function.
23281 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23282 proto.
23283 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23284
23285 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23286
23287 Suport manual terminal geometry specification.
23288
23289 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23290 Save state in grub_ofconsole_terminfo_output.
23291 (grub_ofconsole_term): Use grub_terminfo_getwh.
23292 (grub_ofconsole_getwh): Removed.
23293 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23294 (grub_serial_term): Use grub_terminfo_getwh.
23295 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23296 (options): New struct.
23297 (OPTION_*): New enum.
23298 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23299 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23300 width and height.
23301 (grub_terminfo_getwh): New proto.
23302 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23303
23304 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23305
23306 Handle legacy "terminal" command.
23307
23308 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23309 and FLAG_TERMINAL.
23310 (legacy_commands): Add terminal and title.
23311 (grub_legacy_parse): Handle terminal. Simplify title handling.
23312
23313 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23314
23315 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23316 parameters overflow.
23317
23318 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23319
23320 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23321 widthspec.h.
23322
23323 * docs/grub.texi (Shell-like scripting): Document `!'.
23324 (Network): Simplify using new i386-pc-pxe format. Mention
23325 grub-mknetdir.
23326
23327 * NEWS: Update.
23328
23329 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23330
23331 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23332 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23333 when needed.
23334
23335 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23336
23337 * grub-core/commands/efi/lsefisystab.c: Correct header.
23338 * grub-core/commands/efi/lssal.c: Likewise.
23339 * grub-core/commands/testload.c: Likewise.
23340
23341 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23342
23343 * util/grub-mkrescue.in: Add explicit root argument to --set to
23344 prevent the UUID being interpreted as an argument to --set (matches
23345 previous change to prepare_grub_to_access_device).
23346
23347 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23348
23349 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23350 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23351 the verbosity of later #ifs.
23352 (find_partition_start): Define this function on FreeBSD too.
23353 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23354 function.
23355 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23356 on FreeBSD.
23357
23358 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23359
23360 * util/grub-editenv.c: Use argp instead of getopt.
23361
23362 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23363
23364 * util/grub-setup.c: Use argp instead of getopt.
23365
23366 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23367
23368 Use gnulib-tool to create gnulib source files.
23369
23370 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23371 grub-core/gnulib directories
23372 * .bzignore: Add **/.deps and autogenerated gnulib files
23373 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23374 of gnulib macros, add grub-core/gnulib/Makefile
23375 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23376 include m4 directory to aclocal.
23377 * Makefile.util.def: Remove direct compilation of gnulib source files
23378 and use the new grub-core/gnulib/libgnu.a.
23379 * build-aux/config.rpath: move config.rpath from top directory to
23380 build-aux
23381 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23382 in gnulib headers
23383 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23384 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23385 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23386 header.
23387 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23388 string.
23389
23390 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23391
23392 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23393 grub-core/genmod.sh and grub-core/gensyminfo.sh
23394
23395 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23396
23397 Add a test for echo command options.
23398
23399 * tests/grub_cmd_echo.in: New test.
23400 * Makefile.util.def: Rules for new test.
23401
23402 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23403
23404 Remove crc.mod and move crc command to hashsum.mod.
23405 Remove lib/crc.c - users updated to use gcrypt implementation.
23406
23407 * grub-core/commands/crc.c: Removed.
23408 * grub-core/Makefile.core.def (crc): Module removed.
23409 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23410 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23411 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23412 * grub-core/lib/crc.c: Removed.
23413 * include/grub/lib/crc.h: Removed.
23414 * Makefile.util.def (crc): Remove lib/crc.c
23415 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23416 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23417 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23418 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23419 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23420 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23421
23422 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23423
23424 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23425
23426 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23427
23428 Split config.h for util and core.
23429
23430 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23431 (ADDR32): Likewise.
23432 (DATA32): Likewise.
23433 (BSS_START_SYMBOL): Likewise.
23434 (END_SYMBOL): Likewise.
23435 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23436 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23437 * config.h.in: New file.
23438 * configure.ac: Use config-util.h as config define file.
23439 Rename MACHINE into GRUB_MACHINE. All users updated.
23440 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23441 updated.
23442 (NESTED_FUNC_ATTR): Likewise.
23443 Substitue new variables.
23444 (COND_HAVE_ASM_USCORE): New conditional.
23445 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23446 (kernel_syms.lst): Use ASM_PREFIX.
23447 * grub-core/kern/emu/console.c: Include config-util.h.
23448 * grub-core/kern/emu/misc.c: Likewise.
23449 * grub-core/kern/emu/mm.c: Likewise.
23450 * include/grub/emu/misc.h: Likewise.
23451 * include/grub/libgcc.h: Likewise.
23452
23453 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23454
23455 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23456 constants usage.
23457 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23458 Fix GRUB_TERM_KEY_* constants usage.
23459 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23460
23461 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23462
23463 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23464 print pointer.
23465 * grub-core/bus/usb/uhci.c: Remove empty define.
23466 (grub_uhci_check_transfer): Add missing cast.
23467 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23468 print pointer.
23469 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23470 PRIuGRUB_SIZE.
23471 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23472
23473 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23474
23475 * grub-core/Makefile.core.def (legacycfg): Add
23476 lib/i386/pc/vesa_modes_table.c on emu.
23477
23478 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23479
23480 Reduce number of temporary files generated by build system.
23481
23482 * grub-core/gencmdlist.sh: Removed.
23483 * grub-core/genfslist.sh: Removed.
23484 * grub-core/genhandlerlist.sh: Removed.
23485 * grub-core/genmodsrc.sh: Removed.
23486 * grub-core/genpartmaplist.sh: Removed.
23487 * grub-core/genparttoollist.sh: Removed.
23488 * grub-core/gentermiinallist.sh: Removed.
23489 * grub-core/genvideolist.sh: Removed.
23490
23491 * grub-core/genmod.sh.in: New file.
23492 * grub-core/gensyminfo.sh.in: New file.
23493
23494 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23495 * conf/Makefile.extra-dist: Update with new files.
23496 * gentpl.py: Remove rules related to unnecessary temporary files.
23497 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23498 and und-* files.
23499 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23500 genmod.sh scripts.
23501 * grub-core/bus/usb/uhci.c: Remove empty #define.
23502 * grub-core/genmoddep.awk: Updated with new syminfo format.
23503 * util/bash-completion.d/Makefile.am: Add config.log to
23504 CLEANFILES.
23505
23506 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23507
23508 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23509
23510 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23511
23512 * util/grub-mkconfig.in: Check the config script for syntax errors
23513 before saving.
23514
23515 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23516 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23517
23518 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23519 platforms.
23520 * util/grub-install.in: Add EFI and IEEE1275 support.
23521 * util/i386/efi/grub-install.in: Removed.
23522 * util/ieee1275/grub-install.in: Likewise.
23523
23524 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23525
23526 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23527 (grub_cmd_cmosclean): Likewise.
23528 (GRUB_MOD_INIT): Register command cmosclean.
23529 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23530 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23531
23532 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23533 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23534 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23535
23536 Add keyboard layouts support.
23537
23538 * Makefile.util.def (grub-mklayout): New file.
23539 (grub-kbdcomp): New script.
23540 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23541 Add keyboard_layouts.h.
23542 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23543 commands/boot.c on yeeloong.
23544 (keylayouts): New module.
23545 * grub-core/bus/usb/ohci.c
23546 * grub-core/bus/usb/uhci.c
23547 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23548 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23549 (attach_root_port): Likewise.
23550 (poll_nonroot_hub): Likewise.
23551 (grub_usb_poll_devices): Likewise.
23552 (detach_device): Close transfer.
23553 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23554 function.
23555 (grub_usb_bulk_setup_readwrite): Likewise.
23556 (grub_usb_bulk_finish_readwrite): Likewise.
23557 * grub-core/commands/keylayouts.c: New file.
23558 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23559 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23560 aliases.
23561 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23562 support scancode 2.
23563 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23564 * include/grub/keyboard_layouts.h: New file.
23565 * util/grub-mklayout.c: New file.
23566 * util/grub-kbdcomp.in: Likewise.
23567
23568 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23569
23570 Unify memory types.
23571
23572 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23573 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23574 types.
23575 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23576 (grub_upper_mem): Likewise.
23577 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23578 * include/grub/memory.h (grub_memory_type_t): New enum.
23579 All users updated.
23580
23581 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23582
23583 * grub-core/Makefile.core.def (lsapm): New module.
23584 * grub-core/commands/i386/pc/lsapm.c: New file.
23585 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23586 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23587 Likewise.
23588 * include/grub/i386/pc/apm.h: New file.
23589 * include/multiboot.h (multiboot_apm_info): New struct.
23590
23591 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23592
23593 GRUB-legacy configuration file support.
23594
23595 * Makefile.util.def (grub-menulst2cfg): New util.
23596 * docs/man/grub-menulst2cfg.h2m: New file.
23597 * grub-core/Makefile.core.def (legacycfg): New module.
23598 * grub-core/commands/legacycfg.c: New file.
23599 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23600 (grub_normal_add_menu_entry): ... this.
23601 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23602 (grub_normal_set_password): ...this.
23603 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23604 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23605 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23606 * grub-core/lib/legacy_parse.c: New file.
23607 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23608 * include/grub/i386/pc/vesa_modes_table.h: New file.
23609 * include/grub/legacy_parse.h: Likewise.
23610 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23611 * util/grub-menulst2cfg.c: New file.
23612
23613 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23614
23615 * grub-core/kern/emu/hostdisk.c
23616 (convert_system_partition_to_system_disk): Initialise node.
23617
23618 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23619
23620 * grub-core/kern/emu/hostdisk.c
23621 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23622 leak.
23623 Reported and based on patch by: Modestas Vainius.
23624
23625 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23626
23627 Fix DM-RAID probing with recent versions of device-mapper udev
23628 rules.
23629
23630 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23631 canonicalise device paths under /dev/mapper/.
23632 (convert_system_partition_to_system_disk): Compare the
23633 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23634 path, since device nodes under /dev/mapper/ are often symlinks.
23635
23636 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23637
23638 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23639
23640 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23641
23642 * configure.ac: Avoid some annoying error messages if freetype-config
23643 program is not found.
23644
23645 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23646
23647 Support RAID on virtio devices, and others.
23648
23649 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23650 Rename to ...
23651 [__MINGW32__] (grub_find_device): ... this.
23652 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23653 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23654 reasonable default if dir is NULL.
23655 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23656 ...
23657 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23658 (grub_guess_root_device): Update callers.
23659 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23660
23661 * util/raid.c (grub_util_getdiskname): Remove.
23662 (grub_util_raid_getmembers): Use grub_find_device rather than
23663 grub_util_getdiskname.
23664
23665 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23666
23667 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23668 needing to be compiled with serial support.
23669 (ls): Indicate that multiple files are accepted.
23670 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23671 indicate that multiple files are accepted.
23672
23673 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23674
23675 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23676 libgrub_a_init.c, and util/bash-completion.d/grub.
23677
23678 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23679
23680 * util/grub-setup.c (setup): Fix incorrect container semantics.
23681
23682 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23683
23684 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23685 misusage.
23686 Reported by: J. Nick Terry
23687
23688 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23689
23690 Move embedding routines to partmap sources files.
23691
23692 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23693 [GRUB_UTIL]: New variable.
23694 (gpt_partition_map_iterate): Set part.parent.
23695 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23696 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23697 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23698 New function.
23699 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23700 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23701 (grub_partition_map) [GRUB_UTIL]: New field embed.
23702 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23703 (setup): Use ->embed.
23704
23705 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23706
23707 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23708 function.
23709 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23710 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23711
23712 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23713
23714 Add function to get completions from usage.
23715
23716 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23717 completions from usage. Use LC_ALL=C to get options properly.
23718
23719 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23720
23721 * grub-core/gnulib/basename-lgpl.c: Imported.
23722 * grub-core/gnulib/basename.c: Likewise.
23723 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23724 * grub-core/gnulib/dirname.c: Likewise.
23725 * grub-core/gnulib/dirname.h: Likewise.
23726 * grub-core/gnulib/stripslash.c: Likewise.
23727
23728 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23729
23730 * grub-core/gnulib/error.c: Resynced.
23731 * grub-core/gnulib/getopt.c: Likewise.
23732 * grub-core/gnulib/getopt_int.h: Likewise.
23733 * grub-core/gnulib/regex.h: Likewise.
23734 * grub-core/gnulib/regex_internal.c: Likewise.
23735 * grub-core/gnulib/regex_internal.h: Likewise.
23736
23737 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23738
23739 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23740 CRC calculations and validity checks.
23741 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23742 calculations.
23743
23744 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23745
23746 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23747
23748 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23749
23750 Fix incorrect echo options handling.
23751 Reported by: Yves Blusseau.
23752
23753 * include/grub/command.h (grub_command_flags_t): New flags
23754 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23755 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23756 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23757
23758 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23759
23760 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23761 users updated.
23762 (GRUB_COMMAND_FLAG_MENU): Likewise.
23763 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23764 (GRUB_COMMAND_FLAG_TITLE): Removed.
23765 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23766 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23767 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23768 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23769 (grub_command_flags_t): New enum. All users updated.
23770
23771 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23772
23773 Fix solaris compilation.
23774
23775 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23776 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23777 (grub-emu-list): Likewise.
23778
23779 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23780
23781 Remove deprecated root command.
23782
23783 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23784 updated.
23785
23786 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23787
23788 * util/i386/pc/grub-setup.c: Merge this ...
23789 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23790 * util/grub-setup.c: ... into this.
23791 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23792 New struct.
23793
23794 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23795
23796 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23797 possible.
23798
23799 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23800
23801 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23802 allocate p.
23803
23804 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23805
23806 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23807 explicit root argument to set to prevent UUID to be interpreted as
23808 argument to set.
23809
23810 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23811
23812 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23813
23814 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23815
23816 Don't export grub_gate_a20.
23817
23818 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23819 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23820 to ...
23821 (grub_gate_a20): ... this. All users updated.
23822 * include/grub/i386/pc/init.h: Removed. All users updated.
23823
23824 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23825
23826 Create euro.pf2 which supports most European languages.
23827
23828 * Makefile.am (grubdata_DATA): Add euro.pf2.
23829 (euro.pf2): New target.
23830 (CLEANFILES): Add euro.pf2.
23831
23832 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23833
23834 * configure.ac: Disable emu-usb by default to prevent inadvertent
23835 device takeover.
23836
23837 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23838
23839 Disable usbserial on grub-emu since our libusb code isn't good enough
23840 yet.
23841
23842 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23843 (usbserial_pl2303): Likewise.
23844 (usbserial_ftdi): Likewise.
23845
23846 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23847
23848 * include/grub/disk.h (grub_disk): Remove has_partitions.
23849 All users updated.
23850 * disk/loopback.c (grub_loopback): Remove has_partitions.
23851 All users updated.
23852 (options): Remove partitions. All users updated.
23853 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23854 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23855 actual partition table is found.
23856
23857 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23858
23859 Remove readability checks (too many false negatives).
23860
23861 * util/grub-install.in: Remove readability checks.
23862 * util/grub-mkconfig.in: Likewise.
23863 * util/grub.d/10_hurd.in: Likewise.
23864 * util/grub.d/10_kfreebsd.in: Likewise.
23865 * util/grub.d/10_linux.in: Likewise.
23866 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23867 way.
23868
23869 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23870
23871 Enable acpi shutdown on all ACPI platforms.
23872
23873 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23874 on coreboo, multiboot and EFI.
23875 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23876 (grub_acpi_halt): Likewise.
23877 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23878 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23879 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23880 * grub-core/lib/i386/halt.c (grub_halt)
23881 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23882
23883 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23884
23885 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23886 context.
23887
23888 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23889
23890 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23891 * grub-core/video/efi_uga.c: Likewise.
23892
23893 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23894
23895 Filter devaliases and never open same device twice.
23896
23897 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23898 (last_ihandle): Likewise.
23899 (ofdisk_hash_ent): New member shortest.
23900 (ofdisk_hash_add): Add canonical path too.
23901 (scan): New function.
23902 (grub_ofdisk_iterate): Iterate over hashed entries.
23903 (compute_dev_path): Don't add :0.
23904 (grub_ofdisk_open): Don't really open the disk.
23905 (grub_ofdisk_close): Avoid closing unrelated disk.
23906 (grub_ofdisk_read): Implement reopen logic.
23907 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23908 New function.
23909 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23910 New proto.
23911
23912 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23913
23914 Fix sparc64.
23915
23916 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23917 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23918 right address. Add sparc64_ieee1275_ldflags.
23919 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23920 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23921 to grub_host_to_target_addr
23922 (load_image): Likewise.
23923
23924 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23925
23926 * grub-core/normal/completion.c (complete_file): Handle device
23927 containing slash.
23928 Fix based on patch by Doug Nazar.
23929
23930 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23931
23932 grub-mknetdir script.
23933
23934 * Makefile.util.def (grub-mknetdir): New module.
23935 * tests/util/grub-shell.in: Support boot=net
23936 * util/grub-mknetdir.in: New file.
23937
23938 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23939
23940 videoinfo on non-vbe.
23941
23942 * grub-core/Makefile.core.def (vbeinfo): Removed.
23943 (vbetest): Removed.
23944 (videoinfo): New module.
23945 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23946 * grub-core/commands/i386/pc/vbetest.c: Removed.
23947 * grub-core/commands/videoinfo.c: New file.
23948 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23949 specification.
23950 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23951 as vbetest.
23952 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23953 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23954 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23955 mode_number. New parameter mode. All users updated.
23956 (grub_video_gop_iterate): New function.
23957 (grub_video_efi_gop): New member iterate.
23958 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23959 (grub_vbe_set_video_mode): Remove setting useless fields.
23960 (vbe2videoinfo): New function.
23961 (grub_video_vbe_iterate): Likewise.
23962 (grub_video_vbe_setup): Use vbe2videoinfo.
23963 (grub_video_vbe_print_adapter_specific_info): New function.
23964 (grub_video_vbe_adapter): New fields iterate and
23965 print_adapter_specific_info.
23966 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23967 All users updated.
23968 (grub_video_mode_info): New field mode_number.
23969 (grub_video_adapter): New fields iterate and
23970 print_adapter_specific_info.
23971
23972 2010-09-13 Tristan Gingold <gingold@free.fr>
23973 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23974 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23975
23976 * grub-core/commands/efi/lsefisystab.c: New file.
23977 * grub-core/commands/efi/lssal.c: Likewise.
23978 * grub-core/Makefile.core.def (lsacpi): New module.
23979 (lsefisystab): Likewise.
23980 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23981 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23982 (grub_efi_sal_system_table): New struct.
23983 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23984 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23985 (grub_efi_sal_system_table_platform_features): Likewise.
23986 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23987 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23988 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23989 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23990
23991 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23992
23993 Support explicit user claim that a device is BIOS-visible.
23994
23995 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23996 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23997 * grub-core/kern/emu/hostdisk.c
23998 (convert_system_partition_to_system_disk): Support mdX.
23999 (find_system_device): New parameter add. All users updated.
24000 (grub_util_biosdisk_is_present): New function.
24001 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24002 proto.
24003
24004 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24005
24006 Search hints support.
24007
24008 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24009 All users updated.
24010
24011 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24012
24013 Bash completion script for util commands
24014
24015 * Makefile.am: Add util/bash-completion.d directory
24016 * configure.ac: Likewise.
24017 * util/bash-completion.d/Makefile.am: New file.
24018 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24019
24020 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24021
24022 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24023 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24024 Reported by: Yves Blusseau.
24025
24026 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24027
24028 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24029 partition size and offset.
24030
24031 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24032
24033 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24034
24035 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24036
24037 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24038
24039 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24040
24041 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24042 (grub_xvasprintf): Likewise.
24043
24044 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24045
24046 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24047
24048 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24049
24050 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24051 args ending with NULL.
24052
24053 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24054
24055 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24056 pointer.
24057
24058 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24059
24060 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24061
24062 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24063
24064 Shutdown using ACPI.
24065
24066 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24067 * grub-core/commands/acpihalt.c: New file.
24068 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24069 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24070 (grub_acpi_halt): New proto.
24071 (GRUB_ACPI_SLP_EN): New const.
24072 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24073 (GRUB_ACPI_OPCODE_*): New enum.
24074 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24075
24076 2010-09-11 Tristan Gingold <gingold@free.fr>
24077 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24078 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24079
24080 * commands/lsacpi.c: New file.
24081 * grub-core/Makefile.core.def (lsacpi): New module.
24082 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24083 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24084 (grub_acpi_madt_entry_header): New struct.
24085 (grub_acpi_madt): Likewise.
24086 (grub_acpi_madt_entry_interrupt_override): Likewise.
24087 (grub_acpi_madt_entry_sapic): Likewise.
24088 (grub_acpi_madt_entry_lsapic): Likewise.
24089 (grub_acpi_madt_entry_platform_int_source): Likewise.
24090 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24091 (PRIuGRUB_UINT32_T): Likewise.
24092 (PRIxGRUB_UINT64_T): Likewise.
24093
24094 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24095
24096 Implement loading palette on ieee1275_fb.
24097
24098 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24099 (have_setcolors): Likewise.
24100 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24101 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24102 (grub_video_ieee1275_set_palette): Implement.
24103
24104 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24105 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24106
24107 * util/grub-install.in (grub_partition): New variable.
24108 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24109 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24110 Fixes a bug reported by Yves Blusseau.
24111
24112 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24113
24114 Fix emu on mipsel.
24115
24116 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24117 =grub_cpu_flush_cache on all mips and not only yeeloong.
24118 * configure.ac (COND_mips): New conditional.
24119 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24120 platforms.
24121 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24122 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24123 [GRUB_LINKER_HAVE_INIT]: New function.
24124 (grub_emu_post_init): Likewise.
24125 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24126 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24127 * include/grub/cache.h (_mips): Include mips/cache.h.
24128 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24129 LVM and RAID prototypes.
24130 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24131 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24132 function.
24133
24134 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24135
24136 * util/grub-install.in: Don't try to verify core.img until after
24137 running grub-mkimage to create it.
24138
24139 2010-09-10 Robert Millan <rmh@gnu.org>
24140
24141 * util/grub.d/10_hurd.in: Add misc readability checks.
24142 * util/grub.d/10_kfreebsd.in: Likewise.
24143 * util/grub.d/10_linux.in: Likewise.
24144
24145 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24146
24147 * util/grub-install.in: ${imgext} won't be defined here until the
24148 install branch is merged. For the meantime, only verify core.img on
24149 i386-pc and sparc64-ieee1275 platforms.
24150
24151 2010-09-10 Robert Millan <rmh@gnu.org>
24152
24153 Solaris support in grub_find_zpool_from_dir(). Thanks
24154 Seth Goldberg for referring to getextmntent() facility.
24155
24156 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24157 `sys/mkdev.h'.
24158 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24159 `<sys/mnttab.h>'.
24160 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24161 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24162 method for finding zpool name.
24163
24164 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24165
24166 grub-fstest needs the host and hostfs modules while other utilities
24167 actively require those modules to be absent, so grub-fstest needs
24168 its own initialisation and finalisation code.
24169
24170 * Makefile.am (grub_fstest.pp): New target.
24171 (grub_fstest_init.lst): Likewise.
24172 (grub_fstest_init.c): Likewise.
24173 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24174
24175 2010-09-10 Robert Millan <rmh@gnu.org>
24176
24177 * configure.ac: Check for `struct statfs.f_fstypename' and
24178 `struct statfs.f_mntfromname'.
24179
24180 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24181 kFreeBSD-specific code.
24182
24183 2010-09-10 Robert Millan <rmh@gnu.org>
24184
24185 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24186 on ZFS. Now non-main filesystems are supported as / too.
24187
24188 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24189
24190 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24191 and grub-core/disk/host.c to ...
24192 (grub-fstest): ... here. Having the host disk implementation
24193 present confuses grub-probe and other utility programs.
24194
24195 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24196 when writing to a file, not when writing to stdout.
24197
24198 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24199
24200 * tests/partmap_test.in: New test for partitions.
24201 * Makefile.util.def: Rules for new test.
24202
24203 2010-09-09 Robert Millan <rmh@gnu.org>
24204
24205 * util/grub-probe.c (probe): Fix a pair of unhandled error
24206 conditions.
24207
24208 2010-09-09 Robert Millan <rmh@gnu.org>
24209
24210 Basic Btrfs support (detection and UUID).
24211
24212 * grub-core/fs/btrfs.c: New file.
24213 * Makefile.util.def (library): Register btrfs.c.
24214 * grub-core/Makefile.core.def: Likewise.
24215
24216 2010-09-08 Robert Millan <rmh@gnu.org>
24217
24218 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24219 with (optional) parameters to specify device and relative path.
24220 * util/grub-install.in: Use is_path_readable_by_grub() to
24221 verify readability of a few critical files.
24222 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24223 verify readability of grub.cfg.new.
24224
24225 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24226
24227 Split minix.mod into minix.mod and minix2.mod.
24228
24229 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24230 * grub-core/Makefile.core.def (minix2): New module.
24231 * grub-core/fs/minix.c: Use definitions instead of runtime version
24232 checking.
24233 * grub-core/fs/minix2.c: New file.
24234
24235 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24236
24237 Add new --boot-directory option to replace --root-directory
24238
24239 * util/grub-install.in: Add new --boot-directory option
24240 * util/grub-reboot.in: Likewise.
24241 * util/grub-set-default.in: Likewise.
24242
24243 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24244
24245 * util/grub-mkconfig.in: Use new variable.
24246
24247 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24248
24249 * configure.ac: Define some useful variables.
24250
24251 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24252
24253 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24254 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24255 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24256 Use terminfo and don't use cursor-on/cursor-off unless it's known
24257 to work.
24258 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24259 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24260
24261 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24262
24263 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24264 starts with "(,", fill the drive containing the loaded image in
24265 between those two characters, but expect that a full partition
24266 specification including partition map names will follow.
24267
24268 2010-09-08 Robert Millan <rmh@gnu.org>
24269
24270 * configure.ac: Remove `--enable-grub-fstest' option.
24271 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24272
24273 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24274 `grub-fstest' instead of `grub-probe' for readability verification.
24275 * util/grub-probe.c (probe): Remove readability verification kludge.
24276
24277 2010-09-08 Robert Millan <rmh@gnu.org>
24278
24279 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24280 initializing `GRUB_FS'.
24281
24282 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24283
24284 Not command (!) support to GRUB script.
24285
24286 * tests/grub_script_not.in: New test.
24287 * Makefile.util.def: Rules for new test.
24288
24289 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24290 ! command as a special case.
24291 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24292
24293 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24294
24295 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24296 grub_free.
24297
24298 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24299
24300 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24301
24302 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24303
24304 * docs/grub.texi (Shell-like scripting): Documentation for break,
24305 continue, shift and return commands.
24306
24307 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24308
24309 Rename CD-ROM to cd on BIOS.
24310
24311 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24312 "cd".
24313 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24314
24315 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24316
24317 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24318 * util/grub-probe.c (main): Likewise.
24319 * util/i386/pc/grub-setup.c (main): Likewise.
24320 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24321 Reported and debugged by: alexxy
24322
24323 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24324
24325 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24326 diagnostic info.
24327
24328 2010-09-05 Jo Shields <directhex@apebox.org>
24329
24330 * util/grub.d/30_os-prober.in: Add missing classes.
24331
24332 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24333
24334 * docs/grub.texi (Theme file format): Document new position format.
24335
24336 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24337
24338 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24339 a table. Use @code instead of @verbatim.
24340
24341 2010-09-05 Colin D Bennett <colin@gibibit.com>
24342
24343 Gfxmenu documentation.
24344
24345 * docs/grub.texi (Theme file format): New chapter.
24346
24347 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24348
24349 * grub-core/Makefile.core.def (xzio): New module.
24350 * grub-core/io/xzio.c: New file.
24351 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24352 * grub-core/lib/xzembed/xz_config.h: Likewise.
24353 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24354 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24355 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24356 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24357 * grub-core/lib/xzembed/xz_private.h: Likewise.
24358 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24359 * include/grub/file.h (grub_file_filter_id): New compression filter
24360 GRUB_FILE_FILTER_XZIO.
24361
24362 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24363
24364 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24365 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24366 size.
24367
24368 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24369
24370 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24371 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24372
24373 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24374
24375 Uncompressed checksum support.
24376
24377 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24378 (check_list): New parameter uncompress.
24379 (grub_cmd_hashsum): Handle --uncompress.
24380
24381 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24382
24383 Reintroduce testload.
24384
24385 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24386 from here ...
24387 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24388 (GRUB_MOD_INIT): New function.
24389 (GRUB_MOD_FINI): Likewise.
24390 * grub-core/Makefile.core.def (testload): New module.
24391
24392 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24393
24394 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24395 (uint8_t): New type.
24396 (uint16_t): Likewise.
24397 (uint32_t): Likewise.
24398 (uint64_t): Likewise.
24399
24400 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24401
24402 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24403
24404 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24405
24406 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24407 Made static.
24408 (grub_gzfile_open): Removed. All users updated.
24409 (GRUB_MOD_INIT): New function.
24410 (GRUB_MOD_FINI): Likewise.
24411 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24412 (grub_file_filters_enabled): Likewise.
24413 (grub_file_open): Handle filters.
24414 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24415 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24416 * include/grub/file.h (grub_file_filter_id_t): New type.
24417 (grub_file_filter_t): Likewise.
24418 (grub_file_filters_all): New extern variable.
24419 (grub_file_filters_enabled): Likewise.
24420 (grub_file_filter_register): New inline function.
24421 (grub_file_filter_unregister): Likewise.
24422 (grub_file_filter_disable): Likewise.
24423 (grub_file_filter_disable_compression): Likewise.
24424 * include/grub/gzio.h: Removed.
24425
24426 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24427
24428 Filename expansion support for wildcards in GRUB script.
24429
24430 * tests/grub_script_expansion.in: New test.
24431 * Makefile.util.def: Rule for new test.
24432
24433 * grub-core/commands/wildcard.c: New file, implements filename
24434 expansion support for GRUB script.
24435 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24436 * grub-core/script/argv.c: Cosmetic changes.
24437 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24438 Refactored to perform wildcard expansion on arguments.
24439 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24440 struct.
24441
24442 * tests/util/grub-shell.in: Fix quoting for read input.
24443
24444 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24445
24446 Support for updating environment variables with matched substrings
24447 of regexp.
24448
24449 * tests/grub_cmd_regexp.in: New test.
24450 * Makefile.util.def: Rule for new test.
24451
24452 * grub-core/commands/regexp.c: New option -s to update environment
24453 variables with regexp matches.
24454
24455 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24456
24457 * include/grub/file.h (grub_file): New member not_easly_seekable.
24458 (grub_file_seekable): New inline function.
24459 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24460 easily seekable.
24461 (grub_gzio_open): Set not_easly_seekable.
24462 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24463 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24464
24465 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24466
24467 Support for options to appear multiple times on cmdline.
24468
24469 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24470 * grub-core/commands/extcmd.c: Support for repeatable option.
24471 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24472 repeatable option support.
24473
24474 Refactor menuentry into a regular command.
24475
24476 * grub-core/commands/menuentry.c: New file, menuentry command
24477 implementation.
24478 * grub-core/Makefile.core.def: Rule update for normal.mod.
24479 * grub-core/normal/main.c: Moved menuentry creation to
24480 grub-core/commands/menuentry.c.
24481 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24482 (grub_menu_execute_entry_real): Removed.
24483 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24484 function.
24485 (grub_script_execute_menuentry): Removed.
24486 * grub-core/script/parser.y (menuentry): Removed.
24487 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24488 * grub-core/script/yylex.l (menuentry): Removed.
24489 * include/grub/menu.h (grub_menu_init): New prototype.
24490 (grub_menu_fini): New prototype.
24491 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24492 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24493 (grub_script_execute_sourcecode): New prototype.
24494
24495 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24496
24497 "return" command for GRUB script functions.
24498
24499 * tests/grub_script_return.in: New test.
24500 * Makefile.util.def: Rules for new test.
24501
24502 * grub-core/script/execute.c (grub_script_return): New function.
24503 * grub-core/script/main.c: Register/unregister return commaond.
24504 * include/grub/script_sh.h (grub_script_return): New prototype.
24505
24506 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24507
24508 "setparams" command to update positional parameters.
24509
24510 * tests/grub_script_setparams.in: New test.
24511 * Makefile.util.def: Rules for new test.
24512
24513 * grub-core/script/argv.c (grub_script_argv_make): New function.
24514 * grub-core/script/execute.c (replace_scope): New function.
24515 (grub_script_setparams): New function.
24516 * grub-core/script/lexer.c: Remove unused variables.
24517 * grub-core/script/main.c: Register/unregister setparams command.
24518 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24519 (grub_script_setparams): New prototype.
24520
24521 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24522
24523 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24524 grub_free order.
24525
24526 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24527
24528 Support for passing block of commands as an argument to extcmds.
24529
24530 * Makefile.util.def: Rules for new test.
24531 * tests/grub_script_blockarg.in: New test.
24532 * grub-core/tests/test_blockarg.c: New file, block argument
24533 command used in the test.
24534
24535 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24536 (grub_register_extcmd_prio): New function prototype.
24537 (grub_extcmd_dispatcher): New function prototype.
24538 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24539 type.
24540 * include/grub/script_sh.h (struct grub_script): New members
24541 `children', `next_siblings' and `refcnt' for block arguments and
24542 reference counting.
24543 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24544 (grub_script_arg): New member `script' for block argument.
24545 (grub_script_argv): New member `script' for block argument.
24546 (grub_parser_param): New member `scripts' for block argument.
24547 (grub_script_mem_free): New extern function prototype.
24548 (grub_script_ref): New function prototype.
24549 (grub_script_unref): New function prototype.
24550
24551 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24552 extcmd form to support block arguments.
24553 * grub-core/script/argv.c: Block arguments support.
24554 * grub-core/script/execute.c: Likewise.
24555 * grub-core/script/lexer.c: Likewise.
24556 * grub-core/script/main.c: Likewise.
24557 * grub-core/script/script.c: Likewise.
24558 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24559 non-terminals.
24560
24561 * grub-core/commands/acpi.c: Update extcmd implementations with
24562 grub_extcmd_context_t.
24563 * grub-core/commands/cat.c: Likewise.
24564 * grub-core/commands/echo.c: Likewise.
24565 * grub-core/commands/extcmd.c: Likewise.
24566 * grub-core/commands/hashsum.c: Likewise.
24567 * grub-core/commands/hdparm.c: Likewise.
24568 * grub-core/commands/help.c: Likewise.
24569 * grub-core/commands/hexdump.c: Likewise.
24570 * grub-core/commands/i386/cpuid.c: Likewise.
24571 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24572 * grub-core/commands/i386/pc/halt.c: Likewise.
24573 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24574 * grub-core/commands/iorw.c: Likewise.
24575 * grub-core/commands/keystatus.c: Likewise.
24576 * grub-core/commands/loadenv.c: Likewise.
24577 * grub-core/commands/ls.c: Likewise.
24578 * grub-core/commands/lspci.c: Likewise.
24579 * grub-core/commands/memrw.c: Likewise.
24580 * grub-core/commands/probe.c: Likewise.
24581 * grub-core/commands/search_wrap.c: Likewise.
24582 * grub-core/commands/setpci.c: Likewise.
24583 * grub-core/commands/sleep.c: Likewise.
24584 * grub-core/disk/loopback.c: Likewise.
24585 * grub-core/hello/hello.c: Likewise.
24586 * grub-core/loader/i386/bsd.c: Likewise.
24587 * grub-core/loader/xnu.c: Likewise.
24588 * grub-core/term/gfxterm.c: Likewise.
24589 * grub-core/term/serial.c: Likewise.
24590 * grub-core/tests/lib/functional_test.c: Likewise.
24591
24592 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24593
24594 Multi-line quoted strings support.
24595
24596 * grub-core/script/lexer.c (append_newline): Removed.
24597 (grub_script_lexer_yywrap): Refactored.
24598 (grub_script_lexer_init): Refactored.
24599 * grub-core/script/yylex.l (yywrap): New function.
24600 (grub_lexer_resplit): New function.
24601 (grub_lexer_unput): New function.
24602 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24603 and resplit.
24604 * tests/grub_script_echo1.in: Added few more testcases.
24605
24606 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24607
24608 * grub-core/kern/misc.c: Don't add abort alias in utils.
24609 Reported by: echoline.
24610
24611 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24612
24613 Add missing files into "make dist" tarball for other platforms.
24614
24615 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24616 * conf/Makefile.common (dist_noinst_DATA): New variable.
24617 * conf/Makefile.extra-dist: Added missing make dist files.
24618 * grub-core/Makefile.core.def: Likewise.
24619
24620 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24621
24622 Compress grub_prefix.
24623
24624 * grub-core/boot/i386/pc/lnxboot.S: Use
24625 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24626 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24627 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24628 GRUB_MACHINE_PREFIX_END. All users updated.
24629 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24630 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24631 + 0x40.
24632 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24633 * util/grub-mkimage.c (image_target_desc): Change data_end to
24634 prefix_end. All users updated.
24635
24636 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24637
24638 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24639 value.
24640 (grub_openbsd_boot): Likewise.
24641 (grub_netbsd_boot): Likewise.
24642 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24643 (grub_xnu_boot): Likewise.
24644
24645 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24646
24647 * configure.ac: Clean LIBS variable after tests.
24648
24649 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24650
24651 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24652
24653 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24654
24655 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24656 echo if libdevmapper will be used.
24657
24658 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24659
24660 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24661 constant for the same file.
24662
24663 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24664
24665 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24666
24667 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24668
24669 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24670 grub-core/*.pp.
24671
24672 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24673
24674 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24675 required by the boot protocol.
24676
24677 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24678 ebp and edi members.
24679 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24680 state.ebp and state.edi.
24681 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24682 %ebp and %edi according to grub_relocator32_ebp and
24683 grub_relocator32_edi respectively.
24684 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24685 and state.edi.
24686
24687 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24688
24689 Add i386-pc-pxe image target.
24690
24691 * util/grub-mkimage.c (image_target_desc): New enum value
24692 IMAGE_I386_PC_PXE.
24693 (image_targets): New target i386-pc-pxe.
24694 (generate_image): Handle i386-pc-pxe image.
24695
24696 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24697
24698 Fix grub_pxe_scan.
24699
24700 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24701 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24702 All users updated.
24703 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24704 (grub_pxe_pxenv): Correct type.
24705
24706 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24707
24708 * NEWS: Document most of the important changes since 1.98.
24709
24710 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24711
24712 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24713 generated manual page) a little.
24714
24715 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24716
24717 * docs/grub.texi: Add myself as an author.
24718
24719 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24720
24721 * Makefile.util.def (libgrub.a): Add missing sunpc.
24722 Reported by: Seth Goldberg.
24723
24724 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24725
24726 Interrupt wrapping and code simplifications.
24727
24728 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24729 x86_noieee1275 which are functionaly equivalent in this case.
24730 (grub-install): Make source on each platform explicit. Enable on
24731 all noemu.
24732 * gentpl.py (x86_efi_pc): Removed group.
24733 (x86_noefi): Likewise.
24734 (i386_noefi): Likewise.
24735 (x86_noieee1275): Likewise.
24736 (i386_noieee1275): Likewise.
24737 (i386_noefi_noieee1275): Likewise.
24738 (i386_pc_qemu_coreboot): Likewise.
24739 (i386_coreboot_multiboot): Likewise.
24740 (i386_pc_coreboot_multiboot_qemu): Likewise.
24741 (x86_noefi_mips): Likewise.
24742 (noieee1275): Likewise.
24743 (ieee1275_mips): Likewise.
24744 (noemu_noieee1275): Likewise.
24745 (cmos): New group.
24746 (usb): Likewise.
24747 (videoinkernel): Likewise.
24748 (videomodules): Likewise.
24749 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24750 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24751 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24752 include/grub/loader.h, include/grub/msdos_partition.h,
24753 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24754 include/grub/machine/console.h, include/grub/machine/vga.h,
24755 include/grub/machine/vbe.h, include/grub/machine/init.h,
24756 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24757 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24758 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24759 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24760 * grub-core/Makefile.core.def (kernel): Explicit the source for
24761 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24762 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24763 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24764 Use videoinkernel tag.
24765 (usb): Enable on all usb.
24766 (usbserial_common): Likewise.
24767 (usbserial_pl2303): Likewise.
24768 (usbserial_ftdi): Likewise.
24769 (uhci): Enable on all x86.
24770 (ohci): Enable on all pci.
24771 (cmostest): Enable on all CMOS.
24772 (acpi): Include commands/acpi.c on all platforms.
24773 (halt): Add relevant lib/*/halt.c.
24774 (hdparm): Enable on all pci.
24775 (lspci): Likewise.
24776 (usbtest): Enable on all usb.
24777 (ata): Enable on all pci.
24778 (ata_pthru): Likewise.
24779 (usbms): Enable on all usb.
24780 (usb_keyboard): Likewise.
24781 (font): Use tag videomodules.
24782 (bufio): Likewise.
24783 (datetime): Use tag cmos. Enable on all noemu.
24784 (mmap): Use tags common and x86.
24785 (gfxterm): Use tag videomodules.
24786 (bitmap): Likewise.
24787 (bitmap_scale): Likewise.
24788 (video_fb): Likewise.
24789 (video): Likewise.
24790 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24791 adjust padding accordingly. All users updated.
24792 (grub_ohci_transaction): Fix bad format specification.
24793 (GRUB_MOD_INIT): Add asserts for struct size.
24794 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24795 (grub_alloc_td): Likewise.
24796 (grub_free_queue): Likewise.
24797 (grub_uhci_transfer): Likewise.
24798 (grub_uhci_transaction): Fix bad format specification.
24799 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24800 (grub_usb_bulk_readwrite): Likewise.
24801 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24802 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24803 Made static.
24804 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24805 Made static.
24806 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24807 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24808 Transformed into C.
24809 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24810 Moved from here ...
24811 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24812 ... here. Transformed into C. Made static.
24813 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24814 Moved from here ...
24815 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24816 ... here. Transformed into C. Made static.
24817 * grub-core/kern/i386/pc/startup.S
24818 (grub_biosdisk_check_int13_extensions): Moved from here ...
24819 * grub-core/disk/i386/pc/biosdisk.c
24820 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24821 Made static.
24822 * grub-core/kern/i386/pc/startup.S
24823 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24824 * grub-core/disk/i386/pc/biosdisk.c
24825 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24826 Transformed into C. Made static.
24827 * grub-core/kern/i386/pc/startup.S
24828 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24829 * grub-core/disk/i386/pc/biosdisk.c
24830 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24831 Transformed into C. Made static.
24832 * grub-core/kern/i386/pc/startup.S
24833 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24834 * grub-core/disk/i386/pc/biosdisk.c
24835 (grub_biosdisk_get_diskinfo_standard): ... here.
24836 Transformed into C. Made static.
24837 * grub-core/kern/i386/pc/startup.S
24838 (grub_biosdisk_get_num_floppies): Moved from here ...
24839 * grub-core/disk/i386/pc/biosdisk.c
24840 (grub_biosdisk_get_num_floppies): ... here.
24841 Transformed into C. Made static.
24842 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24843 New function.
24844 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24845 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24846 Transformed into C. Made static.
24847 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24848 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24849 Transformed into C. Made static.
24850 * grub-core/kern/i386/ieee1275/init.c: Removed.
24851 * grub-core/kern/i386/misc.S: Likewise.
24852 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24853 Splitted from here ...
24854 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24855 Transformed into C. Made static. All users updated.
24856 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24857 Transformed into C. Made static. All users updated.
24858 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24859 Moved from here...
24860 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24861 Transformed into C. Made static. All users updated.
24862 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24863 Moved from here...
24864 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24865 Transformed into C. Made static. All users updated.
24866 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24867 Removed (replaced by C version).
24868 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24869 Moved from here...
24870 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24871 Transformed into C. Made static.
24872 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24873 Moved from here...
24874 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24875 ... here. Transformed into C.
24876 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24877 Moved from here...
24878 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24879 ... here. Transformed into C.
24880 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24881 Moved from here...
24882 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24883 ... here. Transformed into C. Made static.
24884 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24885 Moved from here...
24886 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24887 ... here. Transformed into C.
24888 * grub-core/kern/i386/pc/startup.S
24889 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24890 * grub-core/video/i386/pc/vbe.c
24891 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24892 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24893 Moved from here...
24894 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24895 ... here. Transformed into C.
24896 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24897 Moved from here...
24898 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24899 ... here. Transformed into C.
24900 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24901 Moved from here...
24902 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24903 ... here. Transformed into C.
24904 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24905 Moved from here...
24906 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24907 ... here. Transformed into C.
24908 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24909 Moved from here...
24910 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24911 ... here. Transformed into C. Made static.
24912 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24913 Moved from here...
24914 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24915 ... here. Transformed into C. Made static.
24916 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24917 Moved from here...
24918 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24919 ... here. Transformed into C. Made static.
24920 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24921 pxe_rm_entry as third argument.
24922 (grub_bios_interrupt): New function.
24923 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24924 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24925 of calling grub_stop.
24926 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24927 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24928 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24929 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24930 * grub-core/lib/i386/halt.c: Moved from here ...
24931 * grub-core/lib/i386/halt.c: ... here.
24932 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24933 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24934 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24935 grub_stop_floppy.
24936 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24937 * include/grub/i386/coreboot/init.h: Removed.
24938 * include/grub/i386/multiboot/init.h: Likewise.
24939 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24940 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24941 * include/grub/i386/pc/int.h: New file.
24942 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24943 (grub_pxe_scan): Removed.
24944 (grub_pxe_call): Update prototype.
24945 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24946 prototypes.
24947 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24948 * include/grub/i386/qemu/init.h: Removed.
24949 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24950 noreturn.
24951 (grub_halt): Likewise.
24952 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24953 (grub_reboot): Likewise.
24954 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24955 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24956 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24957
24958 2010-08-30 Robert Millan <rmh@gnu.org>
24959
24960 * NEWS: Document addition of ZFS support in `grub-install' and
24961 `grub-mkconfig'.
24962
24963 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24964
24965 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24966 dprintf output.
24967
24968 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24969
24970 Remove leftover embedding of font objects.
24971
24972 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24973 * util/grub-install.in (font): Removed.
24974 * util/grub-mkimage.c (generate_image): Remove font support. All users
24975 updated.
24976
24977 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24978
24979 Remove leftover embedding of font objects.
24980
24981 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24982 * util/grub-install.in (font): Removed.
24983 * util/grub-mkimage.c (generate_image): Remove font support. All users
24984 updated.
24985
24986 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24987
24988 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24989 Reported by: Ian Turner
24990
24991 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24992
24993 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24994 timeout to avoid indefinite boot stalling.
24995
24996 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24997
24998 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24999 (grub_env_write_color_highlight): Likewise.
25000
25001 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25002
25003 * grub-core/normal/term.c (print_more): Return to normal and not
25004 to standard state after printing "---MORE---".
25005
25006 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25007
25008 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25009 Mask out the bit 0x80 since it has other meaning that specifiing color.
25010
25011 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25012
25013 New relocator. Allows for more kernel support and more straightforward
25014 loader writing.
25015
25016 * Makefile.am (BOOTTARGET): New variable.
25017 (QEMU32): Likewise.
25018 (linux.init.x86_64): New target.
25019 (linux.init.i386): Likewise.
25020 (multiboot.elf): Likewise.
25021 (kfreebsd.elf): Likewise.
25022 (kfreebsd.aout): Likewise.
25023 (pc-chainloader.elf): Likewise.
25024 (pc-chainloader.bin): Likewise.
25025 (ntldr.elf): Likewise.
25026 (ntldr.bin): Likewise.
25027 (multiboot2.elf): Likewise.
25028 (kfreebsd.init.x86_64): Likewise.
25029 (kfreebsd.init.i386): Likewise.
25030 (knetbsd.init.i386): Likewise.
25031 (kopenbsd.init.i386): Likewise.
25032 (knetbsd.init.x86_64): Likewise.
25033 (kopenbsd.init.x86_64): Likewise.
25034 (linux-initramfs.i386): Likewise.
25035 (linux-initramfs.x86_64): Likewise.
25036 (kfreebsd-mfsroot.i386.img): Likewise.
25037 (knetbsd.image.i386): Likewise.
25038 (kopenbsd.image.i386): Likewise.
25039 (kopenbsd.image.x86_64): Likewise.
25040 (knetbsd.miniroot-image.i386.img): Likewise.
25041 (kfreebsd-mfsroot.x86_64.img): Likewise.
25042 (knetbsd.image.x86_64): Likewise.
25043 (knetbsd.miniroot-image.x86_64.img): Likewise.
25044 (kfreebsd-mfsroot.i386.gz): Likewise.
25045 (bootcheck-kfreebsd-i386): Likewise.
25046 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25047 (bootcheck-kfreebsd-x86_64): Likewise.
25048 (knetbsd.miniroot-image.i386.gz): Likewise.
25049 (bootcheck-knetbsd-i386): Likewise.
25050 (bootcheck-kopenbsd-i386): Likewise.
25051 (bootcheck-kopenbsd-x86_64): Likewise.
25052 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25053 (bootcheck-knetbsd-x86_64): Likewise.
25054 (bootcheck-linux-i386): Likewise.
25055 (bootcheck-linux-x86_64): Likewise.
25056 (bootcheck-linux16-i386): Likewise.
25057 (bootcheck-linux16-x86_64): Likewise.
25058 (bootcheck-multiboot): Likewise.
25059 (bootcheck-multiboot2): Likewise.
25060 (bootcheck-kfreebsd-aout): Likewise.
25061 (bootcheck-pc-chainloader): Likewise.
25062 (bootcheck-ntldr): Likewise.
25063 (CLEANFILES): Add new targets.
25064 (BOOTCHECKS): New variable.
25065 (.PHONY): Add bootchecks.
25066 (SUCCESSFUL_BOOT_STRING): New variable.
25067 (BOOTCHECK_TIMEOUT): Likewise.
25068 (bootcheck): New target
25069 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25070 * configure.ac: Correct efiemu excuse.
25071 * docs/grub.texi (Supported kernels): New chapter.
25072 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25073 include/grub/mm_private.h. Simplify inclusion of
25074 include/grub/boot.h, include/grub/loader.h
25075 and include/grub/msdos_partition.h
25076 (KERNEL_HEADER_FILES) [i386_coreboot]:
25077 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25078 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25079 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25080 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25081 include/grub/machine/loader.h.
25082 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25083 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25084 extra_dist.
25085 (pci.mod): Enable on i386-multiboot.
25086 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25087 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25088 i386-qemu.
25089 (relocator.mod): Rewritten.
25090 (aout.mod): Enable on all x86.
25091 (bsd.mod): Likewise.
25092 (ntldr.mod): New module.
25093 (linux.mod): Use loader/i386/linux.c on all x86.
25094 (xnu.mod): Enable on all x86.
25095 (vga_text.mod): disable on EFI and QEMU.
25096 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25097 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25098 * grub-core/efiemu/loadcore.c: Likewise.
25099 * grub-core/efiemu/main.c: Likewise.
25100 (grub_efiemu_exit_boot_services): Removed.
25101 (grub_efiemu_finish_boot_services): Likewise.
25102 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25103 function.
25104 * grub-core/efiemu/i386/nocfgtables.c: New file.
25105 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25106 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25107 (grub_efi_finish_boot_services): Moved from here ...
25108 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25109 Fille finish memory map and related data.
25110 (finish_mmap_buf): New variable.
25111 (grub_efi_uintn_t finish_mmap_size): Likewise.
25112 (grub_efi_uintn_t finish_key): Likewise.
25113 (grub_efi_uintn_t finish_desc_size): Likewise.
25114 (grub_efi_uint32_t finish_desc_version): Likewise.
25115 (grub_efi_is_finished): Likewise.
25116 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25117 finished.
25118 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25119 (grub_elf64_phdr_iterate): Likewise.
25120 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25121 (grub_os_area_size): Likewise.
25122 (grub_machine_init): Don't reserve os area.
25123 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25124 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25125 * grub-core/kern/i386/loader.S: Removed.
25126 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25127 (grub_os_area_size): Likewise.
25128 (grub_machine_init): Don't reserve os area.
25129 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25130 Don't call grub_dl_unload_all.
25131 Don't include loader.S.
25132 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25133 Declare the memory after _end as available.
25134 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25135 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25136 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25137 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25138 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25139 * include/grub/mm_private.h (grub_mm_header): ... here.
25140 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25141 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25142 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25143 (grub_mm_region): ..here. Removed addr. Added pre_size.
25144 All users updated.
25145 * grub-core/kern/mm.c (base): Renamed to ...
25146 (grub_mm_base): ... this. Made global.
25147 (grub_real_malloc): Alloc from end of region.
25148 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25149 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25150 * grub-core/kern/powerpc/cache_flush.S: ... here.
25151 * grub-core/lib/efi/relocator.c: New file.
25152 * grub-core/lib/i386/relocator.c: Rewritten.
25153 * grub-core/lib/i386/relocator16.S: New file.
25154 * grub-core/lib/i386/relocator32.S: Likewise.
25155 * grub-core/lib/i386/relocator64.S: Likewise.
25156 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25157 * grub-core/lib/i386/relocator_common.S: New file.
25158 * grub-core/lib/ieee1275/relocator.c: Likewise.
25159 * grub-core/lib/mips/relocator.c: Rewritten.
25160 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25161 stylistic adjustments.
25162 * grub-core/lib/powerpc/relocator.c: New file.
25163 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25164 * grub-core/lib/relocator.c: Rewritten.
25165 * grub-core/lib/x86_64/relocator_asm.S: New file.
25166 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25167 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25168 (bsd_tag): New struct.
25169 (tags): New variable.
25170 (tags_last): Likewise.
25171 (netbsd_module): New struct.
25172 (netbsd_mods): New variable.
25173 (netbsd_mods_last): Likewise.
25174 (openbsd_opts): New parameter "serial".
25175 (OPENBSD_SERIAL_ARG): New definition.
25176 (netbsd_opts): New parameter "serial".
25177 (NETBSD_SERIAL_ARG): New definition.
25178 (grub_freebsd_add_meta): Reorganised into ...
25179 (grub_bsd_add_meta): ...this. All users updated.
25180 (grub_freebsd_add_mmap): Reorganised into ...
25181 (generate_e820_mmap): ...this...
25182 (grub_bsd_add_mmap): ...and this. All users updated.
25183 (grub_freebsd_list_modules): Use tags.
25184 (grub_netbsd_add_meta_module): New function.
25185 (grub_netbsd_list_modules): Likewise.
25186 (grub_freebsd_boot): Use relocator and finish EFI.
25187 (grub_openbsd_boot): Likewise.
25188 (grub_netbsd_setup_video): New function.
25189 (grub_netbsd_add_modules): Likewise.
25190 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25191 and finish EFI.
25192 (grub_bsd_unload): Unload tags.
25193 (grub_bsd_load_aout): Use relocator.
25194 (grub_bsd_elf32_size_hook): New function.
25195 (grub_bsd_elf32_hook): Use relocator.
25196 (grub_bsd_elf64_size_hook): New function.
25197 (grub_bsd_elf64_hook): Use relocator.
25198 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25199 (grub_bsd_load): Zero-out openbsd_ramdisk.
25200 (grub_bsd_load): Use relocator.
25201 (grub_cmd_openbsd): Support serial.
25202 (grub_cmd_netbsd): Support modules.
25203 (grub_cmd_freebsd_module): Use relocator.
25204 (grub_netbsd_module_load): New function.
25205 (grub_cmd_netbsd_module): Likewise.
25206 (grub_cmd_openbsd_ramdisk): Likewise.
25207 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25208 kopenbsd_ramdisk.
25209 (GRUB_MOD_FINI): Unregister new commands.
25210 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25211 (grub_freebsd_load_elfmodule_obj): Use relocator.
25212 (grub_freebsd_load_elfmodule): Likewise.
25213 (grub_freebsd_load_elf_meta): Likewise.
25214 (grub_netbsd_load_elf_meta): New function.
25215 (grub_openbsd_find_ramdisk): Likewise.
25216 * grub-core/loader/i386/bsd_helper.S: Removed.
25217 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25218 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25219 * grub-core/loader/i386/efi/linux.c: Likewise.
25220 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25221 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25222 (DEFAULT_VIDEO_MODE): Likewise.
25223 (real_mode_target): New variable.
25224 (prot_mode_target): Likewise.
25225 (initrd_mem_target): Likewise.
25226 (relocator): Likewise.
25227 (efi_mmap_buf): Likewise.
25228 (efi_mmap_size): Likewise.
25229 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25230 (free_pages): Use relocator.
25231 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25232 (grub_linux_setup_video): Return error.
25233 (grub_linux_trampoline_start): Removed.
25234 (grub_linux_trampoline_end): Likewise.
25235 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25236 andd video parameters depending on firmware.
25237 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25238 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25239 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25240 (grub_cmd_initrd): Use relocator.
25241 * grub-core/loader/i386/linux_trampoline.S: Removed.
25242 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25243 (elf_sec_entsize): Likewise.
25244 (elf_sec_shstrndx): Likewise.
25245 (elf_sections): Likewise.
25246 (grub_multiboot_load): Use relocator.
25247 (grub_multiboot_get_mbi_size): Account for sections.
25248 (grub_multiboot_make_mbi): Use relocator and support sections.
25249 (grub_multiboot_add_elfsyms): New function.
25250 (grub_multiboot_free_mbi): Free sections.
25251 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25252 (grub_linux_real_target): Likewise.
25253 (grub_linux_real_chunk): Likewise.
25254 (grub_linux16_prot_size): Likewise.
25255 (grub_linux16_boot): Use relocator.
25256 (grub_linux_unload): Unload relocator.
25257 (grub_cmd_linux): Use relocator.
25258 (grub_cmd_initrd): Likewise.
25259 * grub-core/loader/i386/pc/ntldr.c: New file.
25260 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25261 Don't try to guess CPU frequency.
25262 (grub_xnu_set_video): Stretch bitmap.
25263 (grub_xnu_boot): Use relocator.
25264 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25265 (grub_linux_unload): Free relocator.
25266 (grub_linux_load32): Use relocator.
25267 (grub_linux_load64): Likewise.
25268 (grub_cmd_initrd): Likewise.
25269 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25270 (grub_multiboot_unload): Unload relocator.
25271 (grub_cmd_multiboot): Use relocator.
25272 (grub_cmd_module): Likewise.
25273 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25274 Use relocator and support sections.
25275 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25276 (elf_sec_entsize): Likewise.
25277 (elf_sec_shstrndx): Likewise.
25278 (elf_sections): Likewise.
25279 (grub_multiboot_load): Use relocator.
25280 (grub_multiboot_get_mbi_size): Account for sections.
25281 (grub_multiboot_make_mbi): Use relocator and support sections.
25282 (grub_multiboot_add_elfsyms): New function.
25283 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25284 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25285 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25286 Prototype changed. All users updated.
25287 (grub_xnu_align_heap): Simplified.
25288 (grub_xnu_writetree_toheap): Likewise.
25289 (grub_xnu_unload): Unload relocator.
25290 (grub_cmd_xnu_kernel): Use relocator.
25291 (grub_cmd_xnu_kernel64): Likewise.
25292 (grub_xnu_register_memory): Simplified.
25293 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25294 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25295 EFI is finished.
25296 (grub_console_checkkey): Likewise.
25297 (grub_console_getkey): Likewise.
25298 (grub_console_getwh): Likewise.
25299 (grub_console_getxy): Likewise.
25300 (grub_console_gotoxy): Likewise.
25301 (grub_console_cls): Likewise.
25302 (grub_console_setcolorstate): Likewise.
25303 (grub_console_setcursor): Likewise.
25304 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25305 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25306 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25307 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25308 * grub-core/tests/boot/kernel-8086.S: Likewise.
25309 * grub-core/tests/boot/kernel-i386.S: Likewise.
25310 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25311 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25312 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25313 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25314 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25315 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25316 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25317 * grub-core/tests/boot/linux.cfg: Likewise.
25318 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25319 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25320 * grub-core/tests/boot/linux16.cfg: Likewise.
25321 * grub-core/tests/boot/multiboot.cfg: Likewise.
25322 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25323 * grub-core/tests/boot/ntldr.cfg: Likewise.
25324 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25325 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25326 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25327 New definition.
25328 * include/grub/dl.h (grub_dl_unload_all): Removed.
25329 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25330 (grub_efi_finish_boot_services): Change prototype.
25331 (grub_efi_is_finished): New variable.
25332 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25333 Changed prototype.
25334 (grub_efiemu_finish_boot_services): Removed.
25335 (grub_machine_efiemu_init_tables): New prototype.
25336 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25337 (grub_elf64_phdr_iterate): Likewise.
25338 * include/grub/i386/bsd.h: Include relocator.h.
25339 (freebsd_tag_header): New struct.
25340 (grub_openbsd_bios_mmap): Removed.
25341 (grub_unix_real_boot): Removed.
25342 (grub_freebsd_load_elfmodule32): Changed prototype.
25343 (grub_freebsd_load_elfmodule_obj64): Likewise.
25344 (grub_freebsd_load_elf_meta32): Likewise.
25345 (grub_freebsd_load_elf_meta64): Likewise.
25346 (grub_freebsd_add_meta): Removed.
25347 (grub_netbsd_load_elf_meta32): New prototype.
25348 (grub_netbsd_load_elf_meta64): Likewise.
25349 (grub_bsd_add_meta): Likewise.
25350 (grub_openbsd_ramdisk_descriptor): New struct.
25351 (grub_openbsd_find_ramdisk32): New prototype.
25352 (grub_openbsd_find_ramdisk64): Likewise.
25353 * include/grub/i386/coreboot/loader.h: Removed.
25354 * include/grub/i386/efi/loader.h: Likewise.
25355 * include/grub/i386/ieee1275/loader.h: Likewise.
25356 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25357 to grub_uint32_t.
25358 * include/grub/i386/loader.h: Removed.
25359 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25360 value.
25361 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25362 (grub_phys_addr_t): New type.
25363 (grub_vtop): New inline function.
25364 (grub_map_memory): Likewise.
25365 (grub_unmap_memory): Likewise.
25366 * include/grub/i386/multiboot/loader.h: Removed.
25367 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25368 (NETBSD_BTINFO_CONSOLE): New definition.
25369 (NETBSD_BTINFO_SYMTAB): Likewise.
25370 (NETBSD_BTINFO_MODULES): Likewise.
25371 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25372 (grub_netbsd_bootinfo): New struct.
25373 (grub_netbsd_btinfo_common): Use explicit bitsize.
25374 (grub_netbsd_btinfo_mmap_entry): Removed.
25375 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25376 (grub_netbsd_btinfo_bootdisk): New struct.
25377 (grub_netbsd_btinfo_symtab): Likewise.
25378 (grub_netbsd_btinfo_serial): Likewise.
25379 (grub_netbsd_btinfo_modules): Likewise.
25380 (grub_netbsd_btinfo_framebuf): Likewise.
25381 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25382 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25383 Likewise.
25384 (grub_openbsd_bootargs): Use explicit bitsize.
25385 (grub_openbsd_bootarg_console): New struct.
25386 (GRUB_OPENBSD_COM_MAJOR): New definition.
25387 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25388 * include/grub/i386/pc/efiemu.h: Removed.
25389 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25390 * include/grub/i386/qemu/loader.h: Removed.
25391 * include/grub/i386/relocator.h: Rewritten.
25392 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25393 * include/grub/mips/memory.h: New file.
25394 * include/grub/mips/multiboot.h: Rewritten.
25395 * include/grub/mips/relocator.h: Rewritten.
25396 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25397 (grub_vtop): New function.
25398 (grub_map_memory): Likewise.
25399 (grub_unmap_memory): Likewise.
25400 * include/grub/misc.h (ALIGN_DOWN): New definition.
25401 * include/grub/mm.h (grub_mm_check_real): New proto.
25402 (GRUB_MM_CHECK): New definition.
25403 * include/grub/mm_private.h: New file.
25404 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25405 (grub_multiboot_get_mbi_size): Removed.
25406 (grub_multiboot_make_mbi): Change prottype.
25407 (grub_multiboot_set_accepts_video): New proto.
25408 (grub_multiboot_add_elfsyms): Likewise.
25409 (grub_multiboot_payload_eip): New variable.
25410 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25411 New prototype.
25412 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25413 New definition.
25414 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25415 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25416 * include/grub/powerpc/ieee1275/loader.h: Removed.
25417 * include/grub/powerpc/memory.h: New file.
25418 * include/grub/powerpc/relocator.h: Likewise.
25419 * include/grub/relocator.h: Likewise.
25420 * include/grub/relocator_private.h: Likewise.
25421 * include/grub/sparc64/ieee1275/loader.h: Removed.
25422 * include/grub/x86_64/memory.h: New file.
25423 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25424 (grub_xnu_heap_malloc): Likewise.
25425 (grub_xnu_heap_real_start): Removed.
25426 (grub_xnu_heap_start): Likewise.
25427 (grub_xnu_relocator): New variable.
25428 (grub_xnu_heap_target_start): Likewise.
25429 * tests/util/grub-shell.in: Support non-pc.
25430 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25431
25432 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25433
25434 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25435 on malloc error.
25436 (grub_bidi_logical_to_visual): Check that malloc succeded.
25437 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25438 puts.
25439 (grub_xputs_normal): Likewise.
25440
25441 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25442
25443 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25444 extra_dist.
25445
25446 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25447
25448 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25449
25450 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25451
25452 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25453
25454 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25455
25456 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25457 dprintf.
25458
25459 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25460
25461 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25462
25463 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25464
25465 * grub-core/normal/term.c (print_more): Fix a memory leak.
25466 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25467 (grub_xputs_normal): Likewise.
25468
25469 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25470
25471 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25472 the begining of the string
25473
25474 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25475
25476 * grub-core/script/script.c (grub_script_parse): Free parsed on
25477 failure.
25478
25479 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25480
25481 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25482 on failure.
25483
25484 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25485
25486 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25487 return.
25488
25489 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25490
25491 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25492 (scroll_up): Fix a memory leak.
25493
25494 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25495
25496 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25497 errors.
25498
25499 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25500
25501 Handle USB pendrives exposed as floppies.
25502
25503 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25504 floppy.
25505 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25506 Check for partitions on all devices.
25507
25508 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25509
25510 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25511 (readkey): Likewise.
25512
25513 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25514
25515 Multiple variable names support to "export" command.
25516
25517 * normal/context.c (grub_cmd_export): "export" command supports
25518 multiple variable names.
25519
25520 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25521
25522 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25523 --target=drive output to Mach device name.
25524
25525 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25526
25527 New Automake based build system for GRUB.
25528
25529 * ABOUT-NLS: New file.
25530 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25531 in Makefile.util.def file.
25532 * Makefile.util.def: New file. Autogen build definitions file for
25533 GRUB host utils.
25534 * conf/Makefile.common: New file. Common variables for GRUB host
25535 utils and target modules.
25536 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25537 * docs/Makefile.am: New file. Automake file for docs.
25538 * gentpl.py: New file. Python script to generate Autogen
25539 template.
25540 * grub-core/Makefile.am: New file. GRUB target modules' rules
25541 that doesn't fit in Makefile.core.def file.
25542 * grub-core/Makefile.core.def: New file. Autogen build
25543 definitions file for GRUB target modules.
25544 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25545 specific setjmp.S file.
25546 * po/Makefile.am: New file.
25547
25548 * .bzrignore: New ignores.
25549 * INSTALL: New requirements, without Ruby.
25550 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25551 * autogen.sh: Updated to invoke autogen as necessary.
25552 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25553 and defines for Automake conditionals.
25554 * geninit.sh: Refactoring.
25555
25556 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25557 necessary.
25558 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25559 New prototype.
25560
25561 * include/grub/test.h: Fix functional test modules' naming.
25562 * grub-core/tests/example_functional_test.c: Fix test module name.
25563
25564 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25565 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25566 * util/grub-editenv.c: Likewise.
25567 * util/grub-fstest.c: Likewise.
25568 * util/grub-mkdevicemap.c: Likewise.
25569 * util/grub-mkfont.c: Likewise.
25570 * util/grub-mkimage.c: Likewise.
25571 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25572 * util/grub-probe.c: Likewise.
25573 * util/grub-script-check.c: Likewise.
25574 * util/i386/pc/grub-setup.c: Likewise.
25575 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25576
25577 * tests/util/grub-shell.in: Fix override directory path.
25578 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25579 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25580
25581 * util/lvm.c: Update #includes.
25582 * util/raid.c: Likewise.
25583 * util/resolve.c: Likewise.
25584 * grub-core/bus/emu/pci.c: Likewise.
25585 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25586 * grub-core/lib/posix_wrap/string.h: Likewise.
25587 * grub-core/kern/emu/main.c: Likewise.
25588
25589 * grub-core/gensymlist.sh: New file. Script for generating kernel
25590 symbols file.
25591 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25592
25593 * grub-core/gentrigtables.c: Fix unused variable warnings.
25594
25595 * Makefile.in: Removed.
25596 * conf/any-emu.rmk: Removed.
25597 * conf/common.rmk: Removed.
25598 * conf/i386-coreboot.rmk: Removed.
25599 * conf/i386-efi.rmk: Removed.
25600 * conf/i386-ieee1275.rmk: Removed.
25601 * conf/i386-multiboot.rmk: Removed.
25602 * conf/i386-pc.rmk: Removed.
25603 * conf/i386-qemu.rmk: Removed.
25604 * conf/i386.rmk: Removed.
25605 * conf/mips-yeeloong.rmk: Removed.
25606 * conf/mips.rmk: Removed.
25607 * conf/powerpc-ieee1275.rmk: Removed.
25608 * conf/sparc64-ieee1275.rmk: Removed.
25609 * conf/tests.rmk: Removed.
25610 * conf/x86-efi.rmk: Removed.
25611 * conf/x86_64-efi.rmk: Removed.
25612 * gendistlist.sh: Removed.
25613 * geninitheader.sh: Removed.
25614 * genkernsyms.sh.in: Removed.
25615 * genmk.rb: Removed.
25616 * gensymlist.sh.in: Removed.
25617 * mkinstalldirs: Removed.
25618 * boot: Moved ...
25619 * grub-core/boot: ... to here.
25620 * bus: Moved ...
25621 * grub-core/bus: ... to here.
25622 * commands: Moved ...
25623 * grub-core/commands: ... to here.
25624 * disk: Moved ...
25625 * grub-core/disk: ... to here.
25626 * efiemu: Moved ...
25627 * grub-core/efiemu: ... to here.
25628 * font: Moved ...
25629 * grub-core/font: ... to here.
25630 * fs: Moved ...
25631 * grub-core/fs: ... to here.
25632 * gencmdlist.sh: Moved ...
25633 * grub-core/gencmdlist.sh: ... to here.
25634 * genemuinit.sh: Moved ...
25635 * grub-core/genemuinit.sh: ... to here.
25636 * genemuinitheader.sh: Moved ...
25637 * grub-core/genemuinitheader.sh: ... to here.
25638 * genfslist.sh: Moved ...
25639 * grub-core/genfslist.sh: ... to here.
25640 * genhandlerlist.sh: Moved ...
25641 * grub-core/genhandlerlist.sh: ... to here.
25642 * genmoddep.awk: Moved ...
25643 * grub-core/genmoddep.awk: ... to here.
25644 * genmodsrc.sh: Moved ...
25645 * grub-core/genmodsrc.sh: ... to here.
25646 * genpartmaplist.sh: Moved ...
25647 * grub-core/genpartmaplist.sh: ... to here.
25648 * genparttoollist.sh: Moved ...
25649 * grub-core/genparttoollist.sh: ... to here.
25650 * genterminallist.sh: Moved ...
25651 * grub-core/genterminallist.sh: ... to here.
25652 * gentrigtables.c: Moved ...
25653 * grub-core/gentrigtables.c: ... to here.
25654 * genvideolist.sh: Moved ...
25655 * grub-core/genvideolist.sh: ... to here.
25656 * gettext: Moved ...
25657 * grub-core/gettext: ... to here.
25658 * gfxmenu: Moved ...
25659 * grub-core/gfxmenu: ... to here.
25660 * gnulib: Moved ...
25661 * grub-core/gnulib: ... to here.
25662 * hello: Moved ...
25663 * grub-core/hello: ... to here.
25664 * hook: Moved ...
25665 * grub-core/hook: ... to here.
25666 * io: Moved ...
25667 * grub-core/io: ... to here.
25668 * kern: Moved ...
25669 * grub-core/kern: ... to here.
25670 * lib: Moved ...
25671 * grub-core/lib: ... to here.
25672 * loader: Moved ...
25673 * grub-core/loader: ... to here.
25674 * mmap: Moved ...
25675 * grub-core/mmap: ... to here.
25676 * normal: Moved ...
25677 * grub-core/normal: ... to here.
25678 * partmap: Moved ...
25679 * grub-core/partmap: ... to here.
25680 * parttool: Moved ...
25681 * grub-core/parttool: ... to here.
25682 * script: Moved ...
25683 * grub-core/script: ... to here.
25684 * term: Moved ...
25685 * grub-core/term: ... to here
25686 * tests/example_functional_test.c: Moved ...
25687 * grub-core/tests/example_functional_test.c: ... to here.
25688 * tests/lib/functional_test.c: Moved ...
25689 * grub-core/tests/lib/functional_test.c: ... to here.
25690 * tests/lib/test.c: Moved ...
25691 * grub-core/tests/lib/test.c: ... to here.
25692 * video: Moved ...
25693 * grub-core/video: ... to here.
25694
25695 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25696
25697 Replace --enable-grub-emu-modules with grub-emu-lite.
25698
25699 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25700 cache.S.
25701
25702 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25703 * kern/emu/full.c: New file. For grub-emu specific initialization.
25704 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25705 * kern/emu/main.c: Call initialization function grub_emu_init.
25706
25707 * Makefile.in: Include grub-emu-lite in install.
25708 * commands/parttool.c: Use grub_no_autoload to differentiate
25709 between grub-emu and grub-emu-lite.
25710 * include/grub/misc.h: New variable grub_no_autoload.
25711
25712 * conf/any-emu.rmk: New rules for grub-emu-lite.
25713 * configure.ac: Remove --enable-grub-emu-modules.
25714 * genmk.rb: Cleanup unnecessary rules.
25715 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25716
25717 * normal/main.c: Don't load list files on grub-emu-lite.
25718 * util/misc.c (grub_arch_sync_caches): Removed.
25719
25720 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25721
25722 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25723 grub-mkimage rather than grub-mkelfimage.
25724 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25725
25726 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25727
25728 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25729 a key after CapsLock or NumLock. It's just a qemu bug.
25730
25731 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25732
25733 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25734 needed by libusb wrapper.
25735
25736 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25737
25738 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25739
25740 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25741
25742 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25743 --nounzip is passed.
25744
25745 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25746
25747 USB hotunplugging and USB serial support.
25748
25749 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25750 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25751 (grub_uhci_transfer): Respect timeout and set *actual.
25752 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25753 non-standard length.
25754 (grub_usb_device_attach): Autoload modules.
25755 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25756 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25757 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25758 users updated.
25759 (grub_usb_add_hub): Fill nports and children.
25760 (attach_root_port): Receive hub instead of controller.
25761 All users updated. Fill hub->devices.
25762 (grub_usb_root_hub): Allocate hub->devices.
25763 (detach_device): New function.
25764 (poll_nonroot_hub): Fill children and detach devices.
25765 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25766 actual arguments. All users updated.
25767 (grub_usb_bulk_read_extended): New function.
25768 * bus/usb/serial/common.c: New file.
25769 * bus/usb/serial/ftdi.c: Likewise.
25770 * bus/usb/serial/pl2303.c: Likewise.
25771 * commands/terminal.c (handle_command): Support wildcard.
25772 * commands/usbtest.c: Output "Unknown" instead of empty string.
25773 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25774 (usbserial_common_mod_SOURCES): New variable.
25775 (usbserial_common_mod_CFLAGS): Likewise.
25776 (usbserial_common_mod_LDFLAGS): Likewise.
25777 (pkglib_MODULES): Add usbserial_pl2303.mod.
25778 (usbserial_pl2303_mod_SOURCES): New variable.
25779 (usbserial_pl2303_mod_CFLAGS): Likewise.
25780 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25781 (pkglib_MODULES): Add usbserial_ftdi.mod.
25782 (usbserial_ftdi_mod_SOURCES): New variable.
25783 (usbserial_ftdi_mod_CFLAGS): Likewise.
25784 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25785 (pkglib_MODULES): Add serial.mod.
25786 (serial_mod_SOURCES): New variable.
25787 (serial_mod_CFLAGS): Likewise.
25788 (serial_mod_LDFLAGS): Likewise.
25789 * conf/i386-pc.rmk: Likewise.
25790 * conf/mips-yeeloong.rmk: Likewise.
25791 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25792 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25793 * disk/usbms.c (first_available_slot): New variable.
25794 (grub_usbms_attach): Don't reuse free slots due to potential cache
25795 problems.
25796 * include/grub/serial.h: Moved to ..
25797 * include/grub/ns8250.h: ...this.
25798 * include/grub/serial.h: New file.
25799 * include/grub/term.h (grub_term_poll_usb): New variable.
25800 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25801 readkey. All users updated.
25802 (grub_terminfo_output_state): Pass term to put.
25803 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25804 (grub_usb_controller_dev): Add timeout and actual arguments to
25805 transfer. All users updated.
25806 (grub_usb_interface): New field detach_data.
25807 (grub_usb_device): New fields children and nports.
25808 (grub_usb_ep_type_t): New type.
25809 (grub_usb_get_ep_type): New function.
25810 (grub_usb_bulk_read_extended): Likewise.
25811 * include/grub/usbdesc.h (grub_usb_desc): New type.
25812 * include/grub/usbserial.h: New file.
25813 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25814 * kern/term.c (grub_term_poll_usb): New variable.
25815 (grub_getkey): Call grub_term_poll_usb if set.
25816 (grub_checkkey): Likewise.
25817 (grub_getkeystatus): Likewise.
25818 * term/serial.c: Moved controller-specific parts to ...
25819 * term/ns8250.c: ... here.
25820 * term/serial.c: Mostly rewritten.
25821 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25822 according to spec.
25823
25824 2010-08-20 Robert Millan <rmh@gnu.org>
25825
25826 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25827 a separate module and maybe other interesting combinations.
25828
25829 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25830 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25831 (kfreebsd_entry): Add generic filesystem module load routine.
25832 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25833
25834 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25835
25836 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25837 "numcenter" (I misunderstood the purpose of this entry).
25838 * docs/grub.texi (sendkey): Likewise.
25839
25840 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25841
25842 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25843 status flag options; simply omitting the option is equivalent and
25844 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25845 (keysym_table): Rename "num5numlock" to "numlock".
25846 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25847 can uniformly say that only the last of multiple `sendkey'
25848 invocations has any effect.
25849 * docs/grub.texi (sendkey): New section.
25850
25851 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25852
25853 * commands/i386/pc/sendkey.c (options): Fix three typos.
25854
25855 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25856
25857 Implement sendkey support.
25858
25859 * commands/i386/pc/sendkey.c: New file.
25860 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25861 (sendkey_mod_SOURCES): New variable.
25862 (sendkey_mod_CFLAGS): Likewise.
25863 (sendkey_mod_LDFLAGS): Likewise.
25864
25865 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25866
25867 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25868 fix warnings from Autoconf.
25869
25870 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25871
25872 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25873 to avoid false positives with some assemblers that output things
25874 like "someprefix_func" as part of their output.
25875
25876 2010-08-15 Robert Millan <rmh@gnu.org>
25877
25878 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25879 errors.
25880 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25881 grub_get_libzfs_handle() errors.
25882
25883 2010-08-14 Robert Millan <rmh@gnu.org>
25884
25885 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25886 filesystem is not ZFS.
25887
25888 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25889
25890 Fix for misspelled color names defaulting to black/black (bug
25891 reported by Doug Nazar)
25892
25893 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25894 status to prototype.
25895 * normal/color.c (grub_parse_color_name_pair): Return failure
25896 status.
25897 (grub_env_write_color_normal): Ignore bad color names.
25898 (grub_env_write_color_highlight): Likewise.
25899 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25900
25901 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25902
25903 "shift" command support to GRUB script.
25904
25905 * include/grub/script_sh.h (grub_script_shift): New prototype.
25906 * script/execute.c (grub_script_shift): New function.
25907 * script/main.c (grub_script_init): Register shift command.
25908 (grub_script_fini): Unregister shift command.
25909 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25910
25911 * tests/grub_script_shift.in: New testcase.
25912 * conf/tests.rmk: Rules for new testcase.
25913
25914 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25915
25916 "continue" command support to GRUB script.
25917
25918 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25919 (grub_script_break): Continue support.
25920 * script/main.c (grub_script_init): Register continue command.
25921 (grub_script_fini): Unregister continue command.
25922
25923 * tests/grub_script_continue.in: New testcase.
25924 * conf/tests.rmk: Rules for new testcase.
25925
25926 2010-08-12 BVK Chaitanya <bvk@dbook>
25927
25928 "break" command support to GRUB script.
25929
25930 * conf/common.rmk: Rule updates to grub-script-check.
25931 * include/grub/misc.h (grub_min): New function.
25932 * include/grub/script_sh.h (grub_script_init): New prototype.
25933 (grub_script_fini): New prototype.
25934 (grub_script_break): New prototype.
25935 * script/main.c (grub_script_init): New function.
25936 (grub_script_fini): New function.
25937 * script/execute.c (grub_script_break): New function.
25938 * normal/main.c: Calls to grub_script_{init,fini}.
25939 * util/grub-script-check.c (grub_script_break): New function.
25940
25941 * tests/grub_script_break.in: New testcase.
25942 * conf/tests.rmk: Rules for new test case.
25943
25944 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25945
25946 Function parameters support to GRUB script.
25947
25948 * script/yylex.l (VARIABLE): Regular expression update.
25949 * script/function.c (grub_script_function_call): Moved ...
25950 * script/execute.c (grub_script_function_call): ... to here.
25951 (grub_script_execute_arglist_to_argv): Removed.
25952 (grub_script_arglist_to_argv): New function.
25953 * script/argv.c: New file.
25954 (grub_script_argv_free): New function.
25955 (grub_script_argv_next): Likewise.
25956 (grub_script_argv_append): Likewise.
25957 (grub_script_argv_split_append): Likewise.
25958 * include/grub/script_sh.h (grub_script_argv): New struct.
25959 (grub_script_argv_free): New function.
25960 (grub_script_argv_next): Likewise.
25961 (grub_script_argv_append): Likewise.
25962 (grub_script_argv_split_append): Likewise.
25963
25964 * conf/common.rmk (normal.mod): New source script/argv.c.
25965
25966 * tests/grub_script_echo1.in: More tests.
25967 * tests/grub_script_vars1.in: Likewise.
25968 * tests/grub_script_functions.in: New test case.
25969 * conf/tests.rmk: Rules for new testcase.
25970
25971 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25972
25973 Remove grub_script_cmdblock struct.
25974
25975 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25976 * script/parser.y: Likewise.
25977 * script/execute.c: Rename cmdblock suffix to cmdlist.
25978 * script/script.c: Likewise.
25979 * util/grub-script-check.c: Likewise.
25980
25981 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25982
25983 * .bzrignore: add grub-macho2img
25984
25985 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25986
25987 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25988
25989 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25990
25991 Remove the dump of sm712 initialisation sequence.
25992
25993 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25994 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25995 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25996 (GRUB_VGA_CR_*): Added many registers.
25997 (GRUB_VGA_SR_*): Likewise.
25998 (GRUB_VGA_GR_*): Likewise.
25999 (grub_vga_write_arx): New function.
26000 (grub_video_hw_config): New struct.
26001 (grub_vga_set_geometry): New function.
26002 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26003 GRUB_PCI_CLASS_SUBCLASS_VGA.
26004 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26005 * video/sm712.c (grub_sm712_write_reg): New function
26006 (grub_sm712_read_reg): Likewise.
26007 (grub_sm712_sr_write): Likewise.
26008 (grub_sm712_gr_write): Likewise.
26009 (grub_sm712_cr_write): Likewise.
26010 (grub_sm712_write_arx): Likewise.
26011 (grub_sm712_cr_shadow_write): Likewise.
26012 (grub_sm712_write_dda_lookup): Likewise.
26013 (grub_video_sm712_setup): Initialise the video rather then
26014 blindly replay the dump.
26015 (main) [TEST]: Add a routine to be able to compile as standalone for
26016 tests.
26017 * video/sm712_init.c (sm712_init): Removed.
26018 (sm712_sr_seq1): New array.
26019 (sm712_sr_seq2): Likewise.
26020
26021 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26022
26023 * include/grub/vga.h: Add missing grub/pci.h include.
26024
26025 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26026
26027 * util/grub-macho2img.c (main): fix typo
26028
26029 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26030
26031 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26032 (grub_vga_gr_read): Likewise.
26033 (grub_vga_cr_write): Likewise.
26034 (grub_vga_cr_read): Likewise.
26035 (grub_vga_sr_write): Likewise.
26036 (grub_vga_sr_read): Likewise.
26037 (grub_vga_palette_read): Likewise.
26038 (grub_vga_palette_write): Likewise.
26039 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26040 (grub_sm712_sr_read): New function.
26041 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26042 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26043
26044 2010-08-09 Robert Millan <rmh@gnu.org>
26045
26046 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26047 out unused variables on non-ZFS build.
26048
26049 2010-08-08 Robert Millan <rmh@gnu.org>
26050
26051 Fix path generation for sub-filesystems in ZFS.
26052
26053 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26054 missing slash.
26055
26056 2010-08-08 Robert Millan <rmh@gnu.org>
26057
26058 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26059
26060 2010-08-08 Robert Millan <rmh@gnu.org>
26061
26062 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26063 exist, issue a proper error message (rely on `ls' for translated
26064 strings).
26065
26066 2010-08-08 Robert Millan <rmh@gnu.org>
26067
26068 Fix grub-probe invocation.
26069
26070 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26071
26072 2010-08-04 Robert Millan <rmh@gnu.org>
26073
26074 * configure.ac: Remove checks for getfsstat() and getmntany().
26075 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26076 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26077 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26078 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26079 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26080 function.
26081 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26082 via find_mount_point_from_dir() and getfsstat() / getmntany().
26083
26084 2010-08-04 Robert Millan <rmh@gnu.org>
26085
26086 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26087 (grub_find_zpool_from_mount_point): Merge into ...
26088 (grub_find_zpool_from_dir): ... this.
26089 * kern/emu/misc.c: Likewise.
26090
26091 * kern/emu/misc.c
26092 (grub_make_system_path_relative_to_its_root): Replace
26093 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26094 with grub_find_zpool_from_dir().
26095 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26096
26097 2010-08-04 Robert Millan <rmh@gnu.org>
26098
26099 Support OpenSolaris in ZFS device resolution.
26100
26101 * configure.ac: Check for getmntany().
26102 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26103 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26104 support.
26105
26106 2010-08-03 Robert Millan <rmh@gnu.org>
26107
26108 Fix grub-emu build.
26109
26110 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26111 * include/grub/emu/misc.h: ... here.
26112
26113 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26114 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26115
26116 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26117 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26118 (grub_get_libzfs_handle): Move to ...
26119 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26120 (grub_get_libzfs_handle): ... here.
26121
26122 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26123
26124 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26125 as command name case.
26126
26127 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26128
26129 * disk/raid.c (insert_array): Select unique numbers for named arrays
26130 as well, for use as keys in the disk cache.
26131
26132 2010-08-01 Robert Millan <rmh@gnu.org>
26133
26134 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26135 kFreeBSD device name, except on ZFS where the filesystem label is
26136 used.
26137 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26138 `/boot/zfs/zpool.cache'.
26139 Set mountfrom kernel variable using ${kfreebsd_device}.
26140
26141 2010-08-01 Robert Millan <rmh@gnu.org>
26142
26143 Make it even harder to use uninitialized `libzfs_handle' (and
26144 make the interface a bit simpler).
26145
26146 * include/grub/util/misc.h (grub_util_init_libzfs)
26147 (libzfs_handle): Remove.
26148 (grub_get_libzfs_handle): New prototype.
26149
26150 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26151 attribute.
26152 (grub_util_init_libzfs): Remove.
26153 (grub_get_libzfs_handle): New function.
26154
26155 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26156 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26157 accessing `libzfs_handle' directly.
26158
26159 2010-08-01 Robert Millan <rmh@gnu.org>
26160
26161 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26162 (grub_find_zpool_from_mount_point): New function prototypes.
26163
26164 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26165 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26166
26167 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26168 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26169 `static' attribute.
26170
26171 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26172 finding zpool from mount point into ...
26173 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26174
26175 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26176 requested path is part of a ZFS pool, use
26177 grub_find_zpool_from_mount_point() to detect its filesystem name,
26178 and generate a path with `/fsname@path' syntax.
26179
26180 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26181
26182 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26183 (void) rather than () so that this is a proper prototype.
26184
26185 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26186
26187 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26188
26189 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26190
26191 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26192 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26193
26194 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26195
26196 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26197
26198 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26199
26200 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26201
26202 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26203
26204 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26205 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26206 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26207 disable gfxpayload.
26208 (Shell-like scripting): Add real content.
26209 (Serial terminal): Suggest `terminal_input serial; terminal_output
26210 serial' rather than putting the two commands on separate lines,
26211 since console input will be inoperative after the first command.
26212 (menuentry): Document --class, --users, and --hotkey options.
26213 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26214 Vladimir Serbinenko).
26215
26216 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26217 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26218
26219 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26220
26221 2010-08-01 Robert Millan <rmh@gnu.org>
26222
26223 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26224 (grub_find_zpool_from_mount_point): New function prototypes.
26225
26226 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26227 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26228
26229 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26230 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26231 `static' attribute.
26232
26233 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26234 finding zpool from mount point into ...
26235 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26236
26237 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26238 requested path is part of a ZFS pool, use
26239 grub_find_zpool_from_mount_point() to detect its filesystem name,
26240 and generate a path with `/fsname@path' syntax.
26241
26242 2010-08-01 Robert Millan <rmh@gnu.org>
26243
26244 Prevent accidental use of uninitialized libzfs_handle.
26245
26246 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26247 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26248 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26249
26250 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26251
26252 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26253 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26254
26255 2010-08-01 Robert Millan <rmh@gnu.org>
26256
26257 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26258
26259 2010-07-31 Robert Millan <rmh@gnu.org>
26260
26261 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26262
26263 2010-07-31 Robert Millan <rmh@gnu.org>
26264
26265 * kern/emu/misc.c: Add missing license header.
26266
26267 2010-07-31 Robert Millan <rmh@gnu.org>
26268
26269 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26270
26271 * include/grub/util/libnvpair.h: Include `<config.h>'.
26272 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26273 declaring libnvpair prototypes ourselves.
26274 * include/grub/util/libzfs.h: Include `<config.h>'.
26275 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26276 declaring libzfs prototypes ourselves.
26277
26278 (libzfs_handle): Moved to ...
26279 * include/grub/util/misc.h (libzfs_handle): ... here.
26280 Include `<grub/util/libzfs.h>'.
26281
26282 2010-07-30 Robert Millan <rmh@gnu.org>
26283
26284 * include/grub/emu/misc.h: Add missing license header.
26285
26286 2010-07-30 Robert Millan <rmh@gnu.org>
26287
26288 Enable `grub-probe -t device' resolution on ZFS.
26289
26290 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26291 * include/grub/util/libnvpair.h: New file.
26292 * include/grub/util/libzfs.h: New file.
26293
26294 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26295 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26296 `<grub/util/libnvpair.h>'.
26297 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26298
26299 (find_mount_point_from_dir): New static function.
26300 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26301 function.
26302 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26303 find_root_device_from_libzfs() before ressorting to find_root_device().
26304
26305 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26306 prototype.
26307 * util/misc.c: Include `<grub/util/libzfs.h>'.
26308 (grub_util_init_libzfs): New function.
26309 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26310 [HAVE_LIBZFS] (fini_libzfs): New static function.
26311 (grub_util_init_libzfs): New function.
26312 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26313
26314 2010-07-30 Robert Millan <rmh@gnu.org>
26315
26316 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26317 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26318 `warn_unused_result' attribute.
26319 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26320 (grub_xasprintf, grub_xvasprintf): Likewise.
26321 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26322
26323 2010-07-29 Robert Millan <rmh@gnu.org>
26324
26325 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26326 (probe): Handle `PRINT_FS_LABEL'.
26327 (main): Handle `-t fs_label'.
26328
26329 2010-07-29 Robert Millan <rmh@gnu.org>
26330
26331 * configure.ac: Remove grub-mkisofs checks.
26332
26333 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26334
26335 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26336 Reported by: Lennart Sorensen.
26337
26338 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26339
26340 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26341 prior to terminal_input/terminal_output separation. It's been over 1.5
26342 years and those versions weren't widely deployed.
26343
26344 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26345
26346 * disk/raid.c (insert_array): Don't count named arrays when looking
26347 for unused array numbers.
26348 Reported and tested by: Michael Guntsche.
26349
26350 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26351
26352 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26353 implementation of this so that grub-emu links again, with a note
26354 that this should support hotplugging in the future.
26355
26356 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26357
26358 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26359
26360 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26361
26362 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26363 handle on failure.
26364 (grub_loopback_close): Remove empty function.
26365 (grub_loopback_dev): Remove close method.
26366
26367 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26368
26369 Disable EFI cursor when the EFI console becomes inactive.
26370
26371 * term/efi/console.c (grub_efi_console_init): New function.
26372 (grub_efi_console_fini): New function.
26373 (grub_console_term_output): Register init and fini methods.
26374
26375 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26376
26377 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26378 sh script.
26379
26380 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26381
26382 * disk/loopback.c (grub_loopback): Replace filename with file.
26383 (delete_loopback): Handle new semantics.
26384 (grub_cmd_loopback): Likewise.
26385 (grub_loopback_iterate): Likewise.
26386 (grub_loopback_close): Likewise.
26387
26388 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26389
26390 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26391 with -p "".
26392 Reported by: Tito Keitel.
26393
26394 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26395
26396 * docs/grub.texi (Naming convention): Document new naming convention.
26397
26398 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26399 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26400
26401 Generate device.map in something closer to the old ordering.
26402
26403 * util/deviceiter.c (struct device): New declaration.
26404 (compare_file_names): Rename to ...
26405 (compare_devices): ... this. Sort by kernel name in preference to
26406 the stable by-id name, but keep the latter as a fallback comparison.
26407 Update header comment.
26408 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26409 of `struct device' rather than of plain file names.
26410
26411 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26412
26413 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26414 on i386.
26415
26416 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26417
26418 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26419 hardcoding size.
26420 (setv1table): Likewise.
26421
26422 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26423
26424 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26425 removing the homehost if present.
26426 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26427 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26428 removing the homehost if present.
26429 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26430 if possible.
26431 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26432
26433 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26434 parameter. Set its pointer target to 0.
26435 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26436 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26437 `data_offset' value from the superblock for 1.x metadata.
26438 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26439 data on the device.
26440 (insert_array): Record the start sector of data on the device.
26441 (grub_raid_register): Pass start_sector parameters to
26442 grub_raid_list->detect and insert_array.
26443 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26444 member.
26445 (struct grub_raid): Add start_sector parameter to `detect'.
26446
26447 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26448 __attribute__ ((packed)), leaving a comment.
26449 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26450 (grub_mdraid_detect_09): ... here and ...
26451 (grub_mdraid_detect_1x): ... here.
26452
26453 2010-07-20 Peter Henn <peter.henn@web.de>
26454
26455 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26456 chunk size and disk size, which are already given as sector counts
26457 as distinct from the 0.90 units. Fetch the correct device number
26458 from the role table instead of using the table index.
26459
26460 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26461
26462 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26463 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26464 (WriteMostly1): New macro.
26465 Set array->name to NULL for metadata format 0.90. Add support for
26466 metadata 1.x. Fix some comments.
26467 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26468 few comments.
26469 * util/getroot.c (grub_util_get_grub_dev): Add support for
26470 /dev/md/name style devices.
26471
26472 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26473
26474 * .bzrignore: Ignore 20_linux_xen.
26475
26476 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26477
26478 * util/import_unicode.py: Remove unnecessary imports.
26479
26480 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26481
26482 Hotplugging and USB hub support.
26483
26484 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26485 (grub_ohci): Likewise.
26486 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26487 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26488 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26489 (GRUB_OHCI_CTRL_EDS): Likewise.
26490 (GRUB_OHCI_BULK_EDS): Likewise.
26491 (GRUB_OHCI_TDS): Likewise.
26492 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26493 (grub_ohci_ed_phys2virt): New function.
26494 (grub_ohci_virt_to_phys): Likewise.
26495 (grub_ohci_td_phys2virt): Likewise.
26496 (grub_ohci_td_virt2phys): Likewise.
26497 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26498 attachment.
26499 (grub_ohci_find_ed): New function.
26500 (grub_ohci_alloc_td): Likewise.
26501 (grub_ohci_free_td): Likewise.
26502 (grub_ohci_free_tds): Likewise.
26503 (grub_ohci_transfer): Use previously allocated memory.
26504 (grub_ohci_portstatus): Reset status changed bit.
26505 (grub_ohci_detect_dev): Supply status changed.
26506 (grub_ohci_fini_hw): Free memory.
26507 (grub_ohci_restore_hw): Reallocate memory.
26508 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26509 Reset status change.
26510 (grub_uhci_detect_dev): Supply status_change.
26511 * bus/usb/usb.c (attach_hooks): New var.
26512 (grub_usb_device_attach): New function.
26513 (grub_usb_register_attach_hook_class): Likewise.
26514 (grub_usb_unregister_attach_hook_class): Likewise.
26515 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26516 (grub_usb_add_hub): Reset connection changed bit.
26517 (attach_root_port): New function.
26518 (grub_usb_root_hub): Likewise.
26519 (poll_nonroot_hub): Likewise.
26520 (grub_usb_poll_devices): Likewise.
26521 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26522 * disk/usbms.c (grub_usbms_open): Use device hooks.
26523 (grub_usbms_iterate) :Poll devices.
26524 (grub_usbms_finddevs): Split into ...
26525 (grub_usbms_attach): ... this ...
26526 (grub_usbms_attach): ... and this.
26527 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26528 in detect_dev.
26529 (grub_usb_interface): New fields attached and detach_hook.
26530 (grub_usb_attach_hook_class): New type.
26531 (grub_usb_attach_desc): New struct.
26532 (grub_usb_register_attach_hook_class): New function.
26533 (grub_usb_unregister_attach_hook_class): Likewise.
26534 (grub_usb_poll_devices): Likewise.
26535 (grub_usb_device_attach): Likewise.
26536 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26537 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26538
26539 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26540
26541 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26542 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26543 delta determination style. Works with most NetBSD partitions too.
26544
26545 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26546
26547 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26548 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26549
26550 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26551
26552 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26553
26554 2010-07-14 Anton Blanchard <anton@samba.org>
26555
26556 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26557 ET_DYN files.
26558
26559 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26560
26561 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26562
26563 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26564
26565 * kern/partition.c (grub_partition_check_containment): New function to
26566 check that a partition is physically contained in a parent. Since
26567 offsets are relative (and non-negative), this reduces to checking that
26568 the partition ends before its parent.
26569 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26570 (grub_partition_iterate): Likewise.
26571 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26572 comments.
26573 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26574 partitions that start before their parent, and add debug printfs.
26575
26576 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26577
26578 * Makefile.in (.SUFFIX): Spell correctly, as ...
26579 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26580 bare module name without `.mod', e.g. `test') tried to invoke a
26581 Modula-2 compiler.
26582
26583 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26584
26585 * README: Point to the Info manual.
26586
26587 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26588
26589 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26590 2nd superblock position from partition size.
26591
26592 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26593
26594 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26595 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26596 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26597 outputs.
26598
26599 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26600
26601 Restructure SCSI .id handling.
26602 Reported and tested by: Aleš Nesrsta.
26603
26604 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26605 (grub_atapi_dev): Changed .name to "ata". New field .id.
26606 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26607 (grub_usbms_dev): New field .id.
26608 * disk/scsi.c (grub_scsi_iterate): Generate name.
26609 (grub_scsi_open): Parse name.
26610 * include/grub/scsi.h (grub_make_scsi_id): New function.
26611 (grub_scsi_dev): Change iterate and open to number instead of naming
26612 busses. All users updated.
26613 (grub_scsi): Remove name. Add .bus.
26614
26615 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26616
26617 * commands/help.c (grub_cmd_help): Fix a typo.
26618
26619 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26620
26621 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26622 Reported and tested by: Colin Watson.
26623
26624 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26625
26626 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26627 in this context.
26628
26629 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26630
26631 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26632
26633 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26634
26635 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26636 indentation.
26637
26638 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26639
26640 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26641 and disk/raid6_recover.c.
26642 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26643 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26644
26645 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26646
26647 * term/gfxterm.c (repaint_schedulded): Rename to ...
26648 (repaint_scheduled): ... this. Update all callers.
26649 (repaint_was_schedulded): Rename to ...
26650 (repaint_was_scheduled): ... this. Update all callers.
26651
26652 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26653
26654 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26655 which we expect to be handled by upper layers.
26656
26657 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26658
26659 * bus/usb/usbhub.c: #include time.h header.
26660
26661 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26662
26663 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26664 entry_name also for entries without stat blocks (e.g. ".."); fixes
26665 corruption of the first entry in a directory.
26666
26667 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26668
26669 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26670 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26671 doesn't work otherwise.
26672
26673 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26674
26675 * docs/grub.texi (Features): Update list of supported file systems.
26676 (GNU/Linux): Update for GRUB 2.
26677 (Serial terminal): Remove mention of --disable-serial, which was a
26678 GRUB Legacy configure option. Update instructions to use
26679 `terminal_input' and `terminal_output' rather than `terminal'.
26680 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26681 configuration' and `Installing GRUB using grub-install'.
26682 (Menu entry editor): Update for GRUB 2.
26683 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26684 Document new -a, -u, and -v options.
26685 (initrd): New section.
26686 (initrd16): New section.
26687 (linux): New section.
26688 (linux16): New section.
26689 (search): The `var' argument to `--set' is optional.
26690 (GRUB only offers a rescue shell): Go into a little more detail on
26691 drive ordering.
26692
26693 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26694
26695 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26696
26697 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26698
26699 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26700 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26701
26702 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26703
26704 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26705 install_prefix, in line with install_dos_part and install_bsd_part.
26706 Add new prefix variable, which is copied to install_prefix after
26707 comparing core.img in memory with the one read from disk in the
26708 no-embedding case, and use that rather than overwriting
26709 install_prefix immediately when installing to a partition.
26710 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26711 Bicakci.
26712
26713 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26714
26715 * configure.ac: Avoid == in test command, it's not portable.
26716 * util/grub.d/30_os-prober.in: Likewise.
26717
26718 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26719
26720 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26721
26722 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26723
26724 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26725 multiple (top-level) partmaps.
26726
26727 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26728
26729 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26730 Reported by: Tino Keitel.
26731
26732 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26733
26734 Bidi and diacritics support.
26735
26736 * Makefile.in (widthspec.bin): New target.
26737 (widthspec.h): Likewise.
26738 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26739 * autogen.sh: Generate unidata.c.
26740 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26741 * commands/ls.c (grub_ls_list_devices): Likewise.
26742 (grub_ls_list_files): Likewise.
26743 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26744 (grub_mini_cmd_lsmod): Likewise.
26745 * commands/read.c: Likewise.
26746 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26747 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26748 * lib/arg.c (grub_arg_show_help): Likewise.
26749 * lib/crypto.c (grub_password_get): Likewise.
26750 * normal/auth.c (grub_username_get): Likewise.
26751 * normal/misc.c (grub_normal_print_device_info): Likewise.
26752 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26753 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26754 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26755 (normal/charset.c_DEPENDENCIES): New variable.
26756 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26757 (pkglib_MODULES): Remove charset.mod.
26758 (charset_mod_SOURCES): Removed.
26759 (charset_mod_CFLAGS): Likewise.
26760 (charset_mod_LDFLAGS): Likewise.
26761 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26762 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26763 and term/tparm.c.
26764 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26765 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26766 (kernel_img_HEADERS): Add terminfo.h.
26767 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26768 Fill ->font. Reverse ascii bitmaps.
26769 (grub_font_get_xheight): New function.
26770 * font/font.c (grub_font_get_string_width): Moved from here ...
26771 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26772 * font/font.c (grub_font_draw_string): Moved from here ...
26773 * gfxmenu/font.c (grub_font_draw_string): ... here.
26774 * font/font.c (grub_font_dup_glyph): New function.
26775 (grub_font_blit_glyph): Likewise.
26776 (grub_font_blit_glyph_mirror): Likewise.
26777 (blit_comb): Likewise.
26778 (grub_font_construct_dry_run): Likewise.
26779 (grub_font_get_constructed_device_width): Likewise.
26780 (grub_font_construct_glyph): Likewise.
26781 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26782 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26783 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26784 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26785 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26786 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26787 (grub_font_get_xheight): New proto.
26788 (grub_font_get_constructed_device_width): Likewise.
26789 (grub_font_construct_glyph): Likewise.
26790 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26791 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26792 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26793 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26794 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26795 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26796 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26797 (grub_console_getcharwidth): Likewise.
26798 * include/grub/misc.h (grub_xputs): New proto.
26799 (grub_puts): Inlined.
26800 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26801 (grub_normal_get_line_counter): Removed.
26802 (grub_install_newline_hook): Likewise.
26803 (grub_normal_get_char_counter): New proto.
26804 (grub_normal_reset_more): Likewise.
26805 (grub_xputs_normal): Likewise.
26806 * include/grub/powerpc/ieee1275/console.h: Removed.
26807 * include/grub/sparc64/ieee1275/console.h: Likewise.
26808 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26809 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26810 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26811 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26812 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26813 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26814 (grub_term_input): Pass reference to self. All users updated.
26815 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26816 Pass reference to self. New fields normal_color, highlight_color and
26817 data. All users updated.
26818 (grub_putchar): Removed.
26819 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26820 (grub_unicode_estimate_width): New function.
26821 (grub_term_getcharwidth): Add defaults.
26822 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26823 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26824 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26825 (grub_cls): Remove EXPORT_FUNC.
26826 (grub_setcolorstate): Inline.
26827 (grub_newline_hook): Removed.
26828 * include/grub/terminfo.h: Rewritten. All users updated.
26829 * include/grub/unicode.h: New file.
26830 * include/grub/video.h (grub_video_signed_rect): New type.
26831 * kern/emu/console.c (grub_console_highlight_color): Removed.
26832 (grub_console_normal_color): Likewise.
26833 (grub_console_standard_color): Made static.
26834 (grub_ncurses_putchar): Remove mapping.
26835 (grub_ncurses_getcharwidth): Removed.
26836 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26837 (grub_ncurses_setcolor): Removed.
26838 (grub_ncurses_getcolor): Likewise.
26839 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26840 (grub_console_putchar): ... this.
26841 (grub_console_putchar): Handle argument difference.
26842 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26843 console_init_early and console_init_lately.
26844 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26845 * kern/misc.c (grub_puts): Removed.
26846 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26847 (grub_vsnprintf_real): Remove str = NULL support.
26848 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26849 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26850 * kern/term.c (grub_putcode): Renamed to ...
26851 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26852 (grub_putchar): Removed.
26853 (grub_xputs_dumb): New function.
26854 (grub_xputs): New variable.
26855 * lib/charset.c: Move from here ...
26856 * normal/charset.c: ... to here.
26857 (grub_ucs4_to_utf8): New function.
26858 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26859 (join_types): New variable.
26860 (unpack_join): New function.
26861 (bidi_types): New variable.
26862 (unpack_bidi): New function.
26863 (get_bidi_type): Likewise.
26864 (get_join_type): Likewise.
26865 (is_mirrored): Likewise.
26866 (grub_unicode_get_comb_type): Likewise.
26867 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26868 (is_type_after): Likewise.
26869 (grub_unicode_aglomerate_comb): Likewise.
26870 (bidi_line_wrap): Likewise.
26871 (grub_bidi_line_logical_to_visual): Likewise.
26872 (grub_bidi_logical_to_visual): Likewise.
26873 (grub_unicode_mirror_code): Likewise.
26874 (grub_unicode_shape_code): Likewise.
26875 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26876 Don't use grub_putchar.
26877 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26878 (grub_normal_reader_init): Likewise.
26879 (grub_xputs_saved): New variable.
26880 (GRUB_MOD_INIT): Set grub_xputs.
26881 (GRUB_MOD_FINI): Restore grub_xputs.
26882 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26883 (menu_init): Avoid printing gfxmenu error.
26884 (show_menu): Use grub_normal_get_char_counter.
26885 * normal/menu_entry.c (update_screen): Fix out-of-array.
26886 (complete): Avoid NULL dereferencing.
26887 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26888 * normal/menu_text.c (print_spaces): Removed.
26889 (grub_print_ucs4): Likewise.
26890 (grub_print_message_indented): Use grub_print_ucs4.
26891 (print_message): Use grub_putcode.
26892 (print_entry): Hanlde diacritics.
26893 * normal/term.c (term_state): New type.
26894 (grub_more_lines): Removed.
26895 (term_states): New variable.
26896 (grub_normal_line_counter): Renamed to ..
26897 (grub_normal_char_counter): ...this. All users updated.
26898 (grub_normal_get_line_counter): Renamed to ...
26899 (grub_normal_get_char_counter): ... this.
26900 (grub_normal_reset_more): New function.
26901 (process_newline): Removed.
26902 (print_more): New function.
26903 (grub_install_newline_hook): Removed.
26904 (map_code): New function.
26905 (grub_puts_terminal): Use grub_print_ucs4.
26906 (putglyph): New function.
26907 (putcode_real): Likewise.
26908 (grub_putcode): Use putcode_real.
26909 (get_maxwidth): New function.
26910 (get_startwidth): Likewise.
26911 (print_ucs4_terminal): Likewise.
26912 (find_term_state): Likewise.
26913 (put_glyphs_terminal): Likewise.
26914 (print_backlog): Likewise.
26915 (print_ucs4_real): Likewise.
26916 (grub_print_ucs4): Likewise.
26917 (grub_xputs_normal): Likewise.
26918 * term/efi/console.c (grub_console_putchar): Output diacritics.
26919 (grub_console_getcharwidth): Removed.
26920 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26921 * term/gfxterm.c (clear_char): Free chars.
26922 (scroll_up): Avoid leaking memory.
26923 (grub_gfxterm_putchar): Support diacritics.
26924 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26925 * term/i386/pc/console.c (grub_console_term_output): Declare as
26926 GRUB_TERM_CODE_TYPE_VGA.
26927 * term/i386/pc/vga.c (grub_vga_term): Declare as
26928 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26929 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26930 GRUB_TERM_CODE_TYPE_VGA.
26931 * term/i386/vga_common.c (map_char): Removed.
26932 (grub_console_putchar): Likewise.
26933 (grub_console_getcharwidth): Likewise.
26934 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26935 (colors): Reordered to match terminfo.
26936 (grub_ofconsole_normal_color): Removed.
26937 (grub_ofconsole_writeesc): Likewise.
26938 (grub_ofconsole_highlight_color): Likewise.
26939 (grub_ofconsole_getcharwidth): Likewise.
26940 (grub_ofconsole_setcolorstate): Likewise.
26941 (grub_ofconsole_setcolor): Likewise.
26942 (grub_ofconsole_getcolor): Likewise.
26943 (grub_ofconsole_readkey): Renamed to ...
26944 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26945 key.
26946 (grub_ofconsole_checkkey): Removed.
26947 (grub_ofconsole_getkey): Likewise.
26948 (grub_ofconsole_getxy): Likewise.
26949 (grub_ofconsole_gotoxy): Likewise.
26950 (grub_ofconsole_cls): Likewise.
26951 (grub_ofconsole_refresh): Likewise.
26952 (grub_ofconsole_terminfo_input): New struct.
26953 (grub_ofconsole_terminfo_output): Likewise.
26954 (grub_ofconsole_term_input): Use terminfo.
26955 (grub_ofconsole_term_output): Likewise.
26956 (grub_console_init): Split into ...
26957 (grub_console_init_early): ...this and ...
26958 (grub_console_init_lately): ...this. Use terminfo.
26959 (grub_ofconsole_putchar): Renamed to ...
26960 (put): ... this. Remove mapping.
26961 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26962 * term/serial.c: Simplify using terminfo.
26963 (xpos): Removed.
26964 (ypos): Likewise.
26965 (keep_track): Likewise.
26966 (registered): Likewise.
26967 (input_buf): Likewise.
26968 (npending): Likewise.
26969 (serial_translate_key_sequence): Likewise.
26970 (fill_input_buf): Likewise.
26971 (grub_serial_checkkey): Likewise.
26972 (grub_serial_getkey): Likewise.
26973 (grub_serial_getxy): Likewise.
26974 (grub_serial_gotoxy): Likewise.
26975 (grub_serial_putchar): Likewise.
26976 (grub_serial_cls): Likewise.
26977 (grub_serial_setcolorstate): Likewise.
26978 (grub_serial_setcursor): Likewise.
26979 (serial_hw_init): Use serial_hw_fetch.
26980 (grub_serial_terminfo_input): New variable.
26981 (grub_serial_terminfo_output): Likewise.
26982 (grub_serial_term_input): Use terminfo.
26983 (grub_serial_term_output): Likewise.
26984 * term/terminfo.c (putstr): Use put.
26985 (grub_terminfo_all_free): New function
26986 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26987 (grub_terminfo_output_register): New function.
26988 (grub_terminfo_output_unregister): Likewise.
26989 (grub_terminfo_getxy): Likewise.
26990 (grub_terminfo_readkey): Likewise.
26991 (grub_terminfo_checkkey): Likewise.
26992 (grub_terminfo_getkey): Likewise.
26993 (grub_terminfo_input_init): Likewise.
26994 (print_terminfo): Likewise.
26995 (grub_cmd_terminfo): Handle encoding.
26996 (grub_terminfo_gotoxy): Track position.
26997 (grub_terminfo_cls): Likewise.
26998 (grub_terminfo_putchar): Likewise.
26999 (grub_terminfo_setcolorstate): Handle colors
27000 (grub_terminfo_cursor_on): This ...
27001 (grub_terminfo_cursor_off): ... and this merged into ...
27002 (grub_terminfo_setcursor): ... this.
27003 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27004 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27005 * unicode/BidiMirroring.txt: Likewise.
27006 * unicode/UnicodeData.txt: Likewise.
27007 * unicode/COPYING: Likewise.
27008 * util/grub-editenv.c (grub_putchar): Removed.
27009 (grub_xputs_real): New function.
27010 (grub_xputs): New variable.
27011 * util/grub-fstest.c (grub_putchar): Removed.
27012 (grub_xputs_real): New function.
27013 (grub_xputs): New variable.
27014 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27015 (grub_xputs_real): New function.
27016 (grub_xputs): New variable.
27017 * util/grub-probe.c (grub_putchar): Removed.
27018 (grub_xputs_real): New function.
27019 (grub_xputs): New variable.
27020 * util/grub-script-check.c (grub_putchar): Removed.
27021 (grub_xputs_real): New function.
27022 (grub_xputs): New variable.
27023 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27024 (grub_xputs_real): New function.
27025 (grub_xputs): New variable.
27026 * util/import_unicode.py: New file.
27027 * util/grub-mkfont.c (ft_errmsgs): New array.
27028 (grub_glyph_info): Make bitmap a pointer.
27029 (file_formats): New type WIDTH_SPEC.
27030 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27031 (options): Add width-spec.
27032 (help): Likewise.
27033 (add_char): Renamed to ...
27034 (add_glyph): ... this.
27035 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27036 (glyph_replace): New type.
27037 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27038 (add_char): New function.
27039 (add_subst): Likewise.
27040 (process_cursive): Likewise.
27041 (add_font): Handle GSUB.
27042 (write_font_width_spec): New function.
27043 (main): Sort glyphs.
27044 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27045 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27046 * kern/term.c (grub_cls): Moved from here...
27047 * normal/term.c (grub_cls): ... here.
27048
27049 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27050
27051 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27052 suitable for using within the format argument of printf when
27053 converting grub_size_t.
27054 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27055 "x" to convert grub_size_t arguments.
27056
27057 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27058
27059 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27060 too long captions.
27061 (list_get_minimal_size): Take selection box into account.
27062
27063 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27064
27065 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27066 NULL font.
27067
27068 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27069
27070 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27071 devices when iterating over /dev/disk/by-id; they will be handled
27072 later if appropriate, which they aren't always (e.g. LVM).
27073
27074 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27075
27076 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27077 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27078 fails.
27079 (grub_halt): Likewise.
27080 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27081 reset-all fails.
27082 (grub_halt): Don't return, even if all of shut-down, power-off, and
27083 poweroff fail.
27084
27085 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27086
27087 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27088 arguments, not three.
27089
27090 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27091
27092 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27093 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27094 LVM-on-RAID is handled correctly.
27095
27096 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27097
27098 * docs/grub.texi (Changes from GRUB Legacy): New section.
27099 (Future): Fix typo.
27100
27101 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27102
27103 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27104 grub.d/README accidentally ends up executable for one reason or
27105 another. Ignore it.
27106
27107 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27108
27109 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27110 (gpt_partition_map_iterate): Support non-512B sectors.
27111
27112 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27113
27114 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27115 Tested by: Seth Goldberg.
27116
27117 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27118
27119 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27120 Properly align mbi.
27121 Reported by: Seth Goldberg.
27122
27123 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27124
27125 * util/grub-mkrescue.in: Avoid module duplication.
27126
27127 2010-07-01 Sean Finney <seanius@seanius.net>
27128
27129 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27130
27131 2010-07-01 Sean Finney <seanius@seanius.net>
27132
27133 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27134
27135 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27136
27137 * disk/lvm.c (grub_lvm_checkvalue): New function.
27138 (grub_lvm_check_flag): Likewise.
27139
27140 2010-07-01 Robert Millan <rmh@gnu.org>
27141
27142 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27143 Support 'p' as partition separator on kernel of FreeBSD (used
27144 with GPT labels).
27145 (grub_util_biosdisk_get_grub_dev): Likewise.
27146
27147 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27148
27149 Yeeloong firmware port.
27150
27151 * boot/mips/yeeloong/fwstart.S: New file.
27152 * bus/cs5536.c (gpiodump): New const.
27153 (set_io_space): New function.
27154 (set_iod): Likewise.
27155 (set_p2d): Likewise.
27156 (grub_cs5536_init_geode): Likewise.
27157 * commands/mips/yeeloong/lsspd.c: New file.
27158 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27159 (serial_mod_SOURCES): New variable.
27160 (serial_mod_CFLAGS): Likewise.
27161 (serial_mod_LDFLAGS): Likewise.
27162 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27163 term/terminfo.c and term/tparm.c.
27164 (pkglib_IMAGES): Add fwstart.img.
27165 (fwstart_img_SOURCES): New variable.
27166 (fwstart_img_CFLAGS): Likewise.
27167 (fwstart_img_ASFLAGS): Likewise.
27168 (fwstart_img_LDFLAGS): Likewise.
27169 (fwstart_img_FORMAT): Likewise.
27170 (pkglib_MODULES): Add lsspd.mod.
27171 (lsspd_mod_SOURCES): New variable.
27172 (lsspd_mod_CFLAGS): Likewise.
27173 (lsspd_mod_LDFLAGS): Likewise.
27174 (pkglib_MODULES): Add halt.mod.
27175 (halt_mod_SOURCES): New variable.
27176 (halt_mod_CFLAGS): Likewise.
27177 (halt_mod_LDFLAGS): Likewise.
27178 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27179 (serial_mod_SOURCES): Removed.
27180 (serial_mod_CFLAGS): Likewise.
27181 (serial_mod_LDFLAGS): Likewise.
27182 * disk/ata.c (check_device): New function.
27183 (grub_ata_device_initialize): Use check_device.
27184 (grub_ata_iterate): Recheck devices.
27185 (grub_ata_open): Likewise.
27186 (grub_atapi_iterate): Likewise.
27187 (grub_atapi_open): Likewise.
27188 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27189 (GRUB_ATA_CH1_PORT1): Likewise.
27190 (GRUB_ATA_CH0_PORT2): Likewise.
27191 (GRUB_ATA_CH1_PORT2): Likewise.
27192 * include/grub/mips/loongson.h: New file.
27193 * include/grub/mips/yeeloong/ec.h: Likewise.
27194 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27195 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27196 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27197 * include/grub/misc.h (grub_halt): Declare as noreturn.
27198 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27199 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27200 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27201 (UART_ENABLE_DTRRTS): Likewise.
27202 (UART_ENABLE_MODEM): Removed.
27203 (UART_ENABLE_OUT2): New const.
27204 * include/grub/term.h (grub_term_register_input_active): New function.
27205 (grub_term_register_output_active): Likewise.
27206 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27207 argument.
27208 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27209 (init_pci): New function.
27210 (grub_machine_init): Execute platform init when firmware. Init serial.
27211 (grub_halt): Implement.
27212 (grub_exit): Likewise.
27213 (grub_reboot): Likewise.
27214 * term/serial.c (serial_hw_init): Update macros.
27215 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27216 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27217 (image_targets): New target mipsel-yeeloong-flash.
27218 (generate_image): Support IMAGE_YEELOONG_FLASH.
27219 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27220 (grub_video_sm712_setup): Init card.
27221 (grub_video_sm712_set_palette): Removed.
27222 * video/sm712_init.c: New file.
27223
27224 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27225
27226 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27227 PATH when running help2man and then run it on the unadorned
27228 executable names, rather than passing $(builddir)/* paths to
27229 help2man. This avoids the build directory ending up in generated
27230 manual pages.
27231
27232 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27233
27234 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27235 to avoid accidents when debugging with 'sh -x'.
27236 * util/grub-mkrescue.in: Likewise.
27237 * util/grub.d/00_header.in: Likewise.
27238 * util/grub.d/10_hurd.in: Likewise.
27239 * util/grub.d/10_kfreebsd.in: Likewise.
27240 * util/grub.d/10_linux.in: Likewise.
27241 * util/grub.d/10_netbsd.in: Likewise.
27242 * util/grub.d/10_windows.in: Likewise.
27243 * util/grub.d/20_linux_xen.in: Likewise.
27244 * util/grub.d/30_os-prober.in: Likewise.
27245 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27246
27247 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27248
27249 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27250 last character in the buffer.
27251 Reported by: Vladimir Serbinenko.
27252
27253 2010-06-29 Robert Millan <rmh@gnu.org>
27254
27255 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27256 (Command-line and menu entry commands): Document `badram' command.
27257
27258 2010-06-28 Robert Millan <rmh@gnu.org>
27259
27260 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27261 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27262 command using ${GRUB_BADRAM} as parameter.
27263
27264 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27265
27266 * docs/grub.texi (Device map): New section.
27267 (Themes): New section (stub).
27268 * Makefile.in (docs/grub.info): The info documentation now builds
27269 without errors. Make sure it stays that way.
27270
27271 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27272
27273 Use normal parser for menu entries.
27274 Reported by: Thomas Frauendorfer
27275
27276 * include/grub/parser.h (grub_parser_execute): Don't export.
27277 * normal/menu.c (grub_menu_execute_entry_real): New function.
27278 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27279
27280 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27281
27282 * docs/grub.texi (Embedded configuration): New section (replacing
27283 old "Preset Menu" stub).
27284 (Images): New section.
27285 (configfile): Note that any menu entries defined in `file' are shown
27286 immediately.
27287
27288 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27289
27290 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27291
27292 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27293
27294 * util/grub-install.in: Add --debug-image= option.
27295
27296 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27297
27298 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27299 possible on Linux.
27300
27301 * util/deviceiter.c (check_device): Rename to ...
27302 (check_device_readable_unique): ... this. Update all callers.
27303 Maintain and check a list of which devices (by canonicalized name)
27304 have already been seen.
27305 (clear_seen_devices): New function.
27306 (compare_file_names) [__linux__]: New function.
27307 (grub_util_iterate_devices): Clear the list of seen devices on exit
27308 and (just in case) on entry.
27309 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27310 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27311 seen-devices list, superseded by general code in check_device.
27312
27313 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27314
27315 * commands/cat.c (options): New variable.
27316 (grub_cmd_cat): Parse options. If the --dos option is given, print
27317 DOS-style "\r\n" line endings as simple newlines (Debian bug
27318 #586358).
27319 (GRUB_MOD_INIT): Use extcmd.
27320 (GRUB_MOD_FINI): Likewise.
27321 * docs/grub.texi (cat): Document --dos.
27322
27323 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27324
27325 XEN with Linux grub-mkconfig support.
27326
27327 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27328 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27329 GRUB_CMDLINE_XEN_DEFAULT.
27330 * util/grub.d/20_linux_xen.in: New file.
27331
27332 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27333
27334 Initialise VGA video on qemu ourselves.
27335
27336 * boot/i386/qemu/boot.S: Don't call 0xc000.
27337 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27338 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27339 (kernel_img_HEADERS): Add pci.h.
27340 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27341 * configure.ac: Force unifont on qemu and yeeloong.
27342 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27343 (grub_vga_palette_write): Use correct register.
27344 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27345 Call grub_qemu_init_cirrus.
27346 * kern/i386/qemu/init.c: New file.
27347 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27348
27349 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27350
27351 2010-06-26 Pavel Roskin <proski@gnu.org>
27352
27353 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27354 13.
27355
27356 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27357
27358 * docs/grub.texi (Simple configuration): Explain that
27359 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27360 set to `true' to disable their respective recovery entries, not
27361 merely set.
27362
27363 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27364
27365 Make the `source' command slightly faster.
27366
27367 * normal/main.c (grub_normal_execute): Don't re-read list files when
27368 nested.
27369
27370 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27371
27372 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27373 field position and mask size to red fields from mode_info, not
27374 green.
27375 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27376 Remove redundant tag->common.framebuffer_type assignment.
27377 Reported by: Seth Goldberg.
27378
27379 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27380
27381 Sync up other versions of the Linux loader with Robert Millan's
27382 change of 2010-01-09, "Make loader output a bit more user-friendly".
27383
27384 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27385 grub_dprintf().
27386 (grub_cmd_linux): Likewise.
27387 (grub_cmd_initrd): Likewise.
27388 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27389 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27390
27391 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27392
27393 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27394 larger than MEMORY_MAP_SIZE.
27395
27396 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27397
27398 Fix parallel build.
27399
27400 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27401 dependency.
27402 * script/parser.y: #include grub_script.tab.h header.
27403
27404 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27405
27406 Support >3GiB and <16MiB RAM in i386-qemu.
27407
27408 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27409 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27410 (grub_lower_mem): Removed.
27411 (grub_upper_mem): Likewise.
27412 (mem_size): Made static.
27413 (above_4g): New variable.
27414 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27415 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27416 support.
27417
27418 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27419
27420 Cirrus 5446 and Bochs video cards support.
27421
27422 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27423 video_bochs.mod
27424 (video_cirrus_mod_SOURCES): New variable.
27425 (video_cirrus_mod_CFLAGS): Likewise.
27426 (video_cirrus_mod_LDFLAGS): Likewise.
27427 (video_bochs_mod_SOURCES): Likewise.
27428 (video_bochs_mod_CFLAGS): Likewise.
27429 (video_bochs_mod_LDFLAGS): Likewise.
27430 * include/grub/vga.h: New file.
27431 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27432 (grub_video_fb_set_page_t): New type.
27433 (grub_video_fb_setup): New prototype.
27434 (grub_video_fb_swap_buffers): Likewise.
27435 (grub_video_fb_get_info_and_fini): Likewise.
27436 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27437 (CRTC_DATA_PORT): Likewise.
27438 (CRTC_CURSOR): Likewise.
27439 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27440 (CRTC_CURSOR_ADDR_LOW): Likewise.
27441 (CRTC_CURSOR_DISABLE): Likewise.
27442 (update_cursor): Use grub_vga_cr_write.
27443 (grub_vga_text_setcursor): Likewise.
27444 * video/bochs.c: New file.
27445 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27446 (palette): Likewise.
27447 (palette_size): Likewise.
27448 (framebuffer): New variable.
27449 (grub_video_fb_init): Use 'framebuffer'.
27450 (grub_video_fb_fini): Likewise.
27451 (grub_video_fb_get_info): Likewise.
27452 (grub_video_fb_get_palette): Likewise.
27453 (grub_video_fb_set_palette): Likewise.
27454 (grub_video_fb_set_viewport): Likewise.
27455 (grub_video_fb_get_viewport): Likewise.
27456 (grub_video_fb_map_color): Likewise.
27457 (grub_video_fb_map_rgb): Likewise.
27458 (grub_video_fb_map_rgba): Likewise.
27459 (grub_video_fb_unmap_color): Likewise.
27460 (grub_video_fb_unmap_color_int): Likewise.
27461 (grub_video_fb_fill_rect): Likewise.
27462 (grub_video_fb_blit_bitmap): Likewise.
27463 (grub_video_fb_blit_render_target): Likewise.
27464 (grub_video_fb_scroll): Likewise.
27465 (grub_video_fb_create_render_target): Likewise.
27466 (grub_video_fb_doublebuf_blit_init): Likewise.
27467 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27468 (doublebuf_pageflipping_update_screen): New function.
27469 (doublebuf_pageflipping_init): Likewise.
27470 (grub_video_fb_setup): Likewise.
27471 (grub_video_fb_swap_buffers): Likewise.
27472 (grub_video_fb_get_info_and_fini): Likewise.
27473 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27474 All users updated.
27475 (doublebuf_pageflipping_commit): Restructured into ...
27476 (doublebuf_pageflipping_set_page): ... this.
27477 (doublebuf_pageflipping_update_screen): Removed.
27478 (doublebuf_pageflipping_init): Likewise.
27479 (double_buffering_init): Likewise.
27480 (grub_video_vbe_setup): Use grub_video_fb_setup.
27481 (grub_video_vbe_swap_buffers): Removed.
27482 (grub_video_vbe_set_active_render_target): Likewise.
27483 (grub_video_vbe_get_active_render_target): Likewise.
27484 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27485 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27486 grub_video_fb_set_active_render_target and
27487 grub_video_fb_get_active_render_target.
27488 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27489 (SEQUENCER_DATA_PORT): Likewise.
27490 (MAP_MASK_REGISTER): Likewise.
27491 (CRTC_ADDR_PORT): Likewise.
27492 (CRTC_DATA_PORT): Likewise.
27493 (START_ADDR_HIGH_REGISTER): Likewise.
27494 (START_ADDR_LOW_REGISTER): Likewise.
27495 (GRAPHICS_ADDR_PORT): Likewise.
27496 (GRAPHICS_DATA_PORT): Likewise.
27497 (READ_MAP_REGISTER): Likewise.
27498 (INPUT_STATUS1_REGISTER): Likewise.
27499 (INPUT_STATUS1_VERTR_BIT): Likewise.
27500 (get_map_mask): Use grub_vga_sr_read.
27501 (set_map_mask): Use grub_vga_sr_write.
27502 (set_read_map): Use grub_vga_gr_write.
27503 (set_start_address): Use grub_vga_cr_write.
27504 * video/sm712.c (framebuffer): Remove leftover fields.
27505
27506 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27507
27508 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27509 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27510 instead. Replace the gfxterm backend check with a check that
27511 ${GRUB_PREFIX}/video.lst is non-empty.
27512 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27513 again.
27514 (load_video): New generated function. Call it before loading
27515 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27516 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27517 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27518 * docs/grub.texi (Simple configuration): Document
27519 GRUB_VIDEO_BACKEND.
27520
27521 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27522
27523 Use video functions in linux and xnu loaders.
27524
27525 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27526 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27527 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27528 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27529 loader/i386/pc/linux.c.
27530 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27531 (find_line_len): Removed.
27532 (find_framebuf): Likewise.
27533 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27534 * loader/i386/efi/xnu.c: Removed.
27535 * loader/i386/pc/xnu.c: Moved from here...
27536 * loader/i386/xnu.c: ...here.
27537
27538 Enable priorities in video drivers.
27539
27540 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27541 (grub_video_adapter): New field prio.
27542 (grub_video_register): Respect prio when inserting.
27543 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27544 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27545 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27546 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27547 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27548 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27549 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27550
27551 Fix SDL driver ID.
27552
27553 * include/grub/video.h (grub_video_driver_id_t): New value
27554 GRUB_VIDEO_DRIVER_SDL.
27555 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27556
27557 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27558
27559 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27560 argument to printf.
27561 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27562
27563 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27564
27565 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27566 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27567
27568 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27569
27570 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27571 directly, and recommend grub-install instead.
27572 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27573
27574 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27575
27576 Fix i386-pc prefix handling with nested partitions (Debian bug
27577 #585068). Note that the case where the core image is booted using
27578 multiboot and relocated from its original location still requires
27579 more work.
27580
27581 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27582 with "(,", fill the boot drive in between those two characters, but
27583 expect that a full partition specification including partition map
27584 names will follow.
27585 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27586 specified, write a prefix without the drive name but including a
27587 full partition specification.
27588
27589 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27590
27591 * util/grub-mkconfig.in: Ignore non-option arguments, for
27592 compatibility with older versions (before 2010-06-12) which did the
27593 same. In particular, this makes it easier to ship an update-grub
27594 wrapper which is compatible with that used with GRUB Legacy (Debian
27595 bug #586056).
27596
27597 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27598
27599 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27600 for manual page generation.
27601
27602 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27603
27604 * po/POTFILES: Remove leftover commands/handler.c.
27605
27606 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27607
27608 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27609 left this script non-functional.
27610
27611 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27612
27613 * docs/man/grub-emu.h2m: New file.
27614
27615 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27616
27617 * docs/grub.texi (Commands): Document reduced command set in rescue
27618 mode.
27619 (cpuid): New section.
27620
27621 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27622
27623 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27624 new partition naming style.
27625 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27626
27627 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27628
27629 Add "-o grub.iso" like cmdline options support.
27630
27631 * util/grub-install.in: Improve cmdline option parsing.
27632 * util/grub-mkconfig.in: Likewise.
27633 * util/grub-mkrescue.in: Likewise.
27634 * util/grub-reboot.in: Likewise.
27635 * util/grub-set-default.in: Likewise.
27636 * util/i386/efi/grub-install.in: Likewise.
27637 * util/ieee1275/grub-install.in: Likewise.
27638 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27639
27640 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27641
27642 * .bzrignore: Ignore 41_custom.
27643
27644 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27645
27646 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27647
27648 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27649
27650 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27651 prototype declarations.
27652
27653 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27654 generating fs, partmap, and video lists.
27655 * include/grub/fs.h (grub_fs_register): Omit prototype if
27656 GRUB_LST_GENERATOR is defined.
27657 * include/grub/partition.h (grub_partition_map_register): Likewise.
27658 * include/grub/video.h (grub_video_register): Likewise.
27659
27660 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27661
27662 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27663
27664 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27665
27666 * util/grub-mkrescue.in: Support --xorriso argument.
27667
27668 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27669
27670 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27671 Suggested by: Thomas Schmitt.
27672
27673 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27674
27675 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27676 Suggested by: Thomas Schmitt.
27677
27678 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27679
27680 custom.cfg support.
27681
27682 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27683 * util/grub.d/41_custom.in: New file.
27684
27685 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27686
27687 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27688 been merged back into normal.
27689
27690 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27691
27692 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27693 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27694
27695 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27696
27697 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27698 when generating manual pages.
27699 * docs/man/grub-bin2h.h2m: New file.
27700 * docs/man/grub-editenv.h2m: New file.
27701 * docs/man/grub-fstest.h2m: New file.
27702 * docs/man/grub-install.h2m: New file.
27703 * docs/man/grub-macho2img.h2m: New file.
27704 * docs/man/grub-mkconfig.h2m: New file.
27705 * docs/man/grub-mkdevicemap.h2m: New file.
27706 * docs/man/grub-mkfont.h2m: New file.
27707 * docs/man/grub-mkimage.h2m: New file.
27708 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27709 * docs/man/grub-mkrelpath.h2m: New file.
27710 * docs/man/grub-mkrescue.h2m: New file.
27711 * docs/man/grub-ofpathname.h2m: New file.
27712 * docs/man/grub-pe2elf.h2m: New file.
27713 * docs/man/grub-probe.h2m: New file.
27714 * docs/man/grub-reboot.h2m: New file.
27715 * docs/man/grub-script-check.h2m: New file.
27716 * docs/man/grub-set-default.h2m: New file.
27717 * docs/man/grub-setup.h2m: New file.
27718
27719 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27720
27721 Use FOR_* macros instead of *_iterate whenever possible.
27722
27723 * commands/handler.c: Removed.
27724 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27725 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27726 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27727 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27728 (grub_probe_SOURCES): Remove kern/parser.c.
27729 (util/grub-script-check.c_DEPENDENCIES): Removed.
27730 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27731 and grub_script_check_init.c.
27732 (grub_script_check_init.lst): Removed.
27733 (grub_script_check_init.h): Likewise.
27734 (grub_script_check_init.c): Likewise.
27735 (pkglib_MODULES): Remove handler.mod and sh.mod.
27736 (handler_mod_SOURCES): Removed.
27737 (handler_mod_CFLAGS): Likewise.
27738 (handler_mod_LDFLAGS): Likewise.
27739 (normal_mod_SOURCES): Remove normal/handler.c.
27740 Add script/main.c, script/script.c, script/execute.c,
27741 script/function.c, script/lexer.c, grub_script.tab.c
27742 and grub_script.yy.c.
27743 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27744 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27745 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27746 (grub_setup_SOURCES): Remove kern/parser.c.
27747 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27748 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27749 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27750 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27751 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27752 (grub_setup_SOURCES): Remove kern/parser.c.
27753 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27754 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27755 * include/grub/command.h (grub_command_iterate): Removed.
27756 (FOR_COMMANDS): New macro.
27757 * include/grub/dl.h (grub_dl): New member next.
27758 (grub_dl_iterate): Removed.
27759 (grub_dl_head): New variable declaration.
27760 (FOR_DL_MODULES): New macro.
27761 * include/grub/fs.h: Include list.h.
27762 (grub_fs): Make next first element.
27763 (grub_fs_list): New variable declaration.
27764 (grub_fs_register): Make inline.
27765 (grub_fs_unregister): Likewise.
27766 (grub_fs_iterate): Removed.
27767 (FOR_FILESYSTEMS): New macro.
27768 * include/grub/handler.h: Removed.
27769 * include/grub/list.h (grub_list_hook_t): Removed.
27770 (grub_list_test_t): Likewise.
27771 (grub_list_pop): Likewise.
27772 (grub_list_iterate): Likewise.
27773 (grub_list_insert): Likewise.
27774 (FOR_LIST_ELEMENTS): New macro.
27775 * include/grub/parser.h (grub_parser_class): Removed.
27776 (grub_parser_register): Likewise.
27777 (grub_parser_unregister): Likewise.
27778 (grub_parser_get_current): Likewise.
27779 (grub_parser_set_current): Likewise.
27780 (grub_register_rescue_parser): Likewise.
27781 (grub_rescue_parse_line): New function.
27782 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27783 * include/grub/script_sh.h (grub_script_function_list): New variable
27784 declaration.
27785 (FOR_SCRIPT_FUNCTIONS): New macro.
27786 (grub_script_function_iterate): Removed.
27787 (grub_normal_parse_line): New prototype.
27788 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27789 (FOR_DISABLED_TERM_INPUTS): Likewise.
27790 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27791 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27792 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27793 element.
27794 (grub_video_register): Inline.
27795 (grub_video_unregister): Likewise.
27796 (grub_video_adapter_list): New variable declaration.
27797 (grub_video_iterate): Removed.
27798 (FOR_VIDEO_ADAPTERS): New macro.
27799 * kern/dl.c (grub_dl_list): Removed. All users updated.
27800 (grub_dl_iterate): Removed.
27801 * kern/fs.c (grub_fs_list): Make global.
27802 (grub_fs_register): Removed.
27803 (grub_fs_unregister): Likewise.
27804 (grub_fs_iterate): Likewise.
27805 * kern/handler.c: Removed.
27806 * kern/list.c (grub_list_pop): Removed.
27807 (grub_list_iterate): Likewise.
27808 (grub_list_insert): Likewise.
27809 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27810 (grub_prio_list_insert): Don't use grub_list_insert.
27811 * kern/main.c (grub_register_rescue_parser): Don't call
27812 grub_register_rescue_parser.
27813 * kern/parser.c (grub_parser_class): Removed.
27814 (grub_parser_execute): Use grub_rescue_parse_line.
27815 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27816 (grub_rescue_parser): Removed.
27817 (grub_register_rescue_parser): Likewise.
27818 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27819 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27820 (grub_auth_check_authentication): Likewise.
27821 * normal/completion.c (iterate_command): Removed.
27822 (grub_normal_do_completion): Use FOR_COMMANDS.
27823 * normal/handler.c: Removed.
27824 * normal/main.c (read_config_file): Remove parser changing.
27825 (grub_normal_execute): Don't call read_handler_list.
27826 (grub_normal_read_line_real): Statically allocate prompt.
27827 (grub_cmdline_run): Use grub_normal_parse_line.
27828 (GRUB_MOD_FINI): Don't call free_handler_list.
27829 * normal/menu_entry.c (run): Likewise.
27830 * script/function.c (grub_script_function_list): Make global.
27831 (grub_script_function_iterate): Removed.
27832 * script/main.c (grub_normal_parse_line): Make global.
27833 (grub_sh_parser): Removed.
27834 (GRUB_MOD_INIT): Likewise.
27835 (GRUB_MOD_FINI): Likewise.
27836 * tests/lib/functional_test.c (grub_functional_test): Use
27837 FOR_LIST_ELEMENTS.
27838 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27839 (grub_test_run): Use FOR_LIST_ELEMENTS.
27840 * tests/lib/unit_test.c (main): Likewise.
27841 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27842 grub_list_pop.
27843 * util/grub-fstest.c (grub_term_input_class): Removed.
27844 (grub_term_output_class): Likewise.
27845 * util/grub-probe.c: Likewise.
27846 * util/i386/pc/grub-setup.c: Likewise.
27847 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27848 * util/grub-script-check.c (main): Don't call grub_init_all and
27849 grub_fini_all.
27850 * video/video.c (grub_video_adapter_list): Make global.
27851 (grub_video_register): Removed.
27852 (grub_video_unregister): Likewise.
27853 (grub_video_iterate): Likewise.
27854
27855 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27856
27857 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27858 reported by Henrique Ferreiro.
27859
27860 2010-06-09 Robert Millan <rmh@gnu.org>
27861
27862 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27863 ones, when both are available.
27864
27865 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27866
27867 Make --version uniform and avoid hard-coded program name.
27868
27869 * util/grub-mkimage.c (main): Use `program_name' instead of
27870 hard-coded string.
27871 * util/i386/pc/grub-setup.c (main): Likewise.
27872 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27873 * util/grub-install.in: Save the basename of $0 in $self, and use the
27874 latter in informational messages. Use the same format for --version
27875 as the binary programs.
27876 * util/grub-mkconfig.in: Likewise.
27877 * util/grub-mkrescue.in: Likewise.
27878 * util/grub-reboot.in: Likewise.
27879 * util/grub-set-default.in: Likewise.
27880 * util/i386/efi/grub-install.in: Likewise.
27881 * util/ieee1275/grub-install.in: Likewise.
27882 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27883
27884 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27885
27886 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27887 embedding area. Use <= instead of == when checking for non-emptiness.
27888
27889 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27890
27891 * configure.ac: Add `.' to the directories searched for unifont.
27892
27893 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27894
27895 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27896 grub_script.yy.h.
27897
27898 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27899
27900 * docs/grub.texi (History): Expand to cover GRUB 2.
27901 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27902 commands, not `terminal'.
27903 (serial): Likewise.
27904 (terminal_input): New section.
27905 (terminal_output): New section.
27906 (uppermem): New section (stub).
27907 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27908
27909 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27910
27911 * docs/grub.texi (Security): Menu entries are unrestricted by
27912 default, not restricted to superusers as I had previously thought.
27913 Reword to account for this.
27914
27915 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27916
27917 * kern/emu/misc.c (device_mapper_null_log): New function.
27918 (grub_device_mapper_supported): New function.
27919 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27920 prototype.
27921 * kern/emu/hostdisk.c (find_partition_start): Check whether
27922 device-mapper is supported before trying to use it.
27923 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27924
27925 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27926
27927 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27928 (File name syntax): Likewise.
27929 (help): --all is no longer supported in GRUB 2. Be more precise
27930 about pattern matching.
27931
27932 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27933
27934 * normal/completion.c (grub_normal_do_completion): When completing
27935 arguments to "set" and the current word contains an equals sign,
27936 skip to after the equals sign before starting completion.
27937
27938 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27939
27940 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27941
27942 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27943
27944 * docs/grub.texi (Network): New section.
27945 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27946 `(nd)' as in GRUB Legacy.
27947 (pxe_unload): New section.
27948
27949 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27950
27951 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27952 in the rescue shell, so recommend using `set' instead. Thanks,
27953 Jordan Uggla.
27954
27955 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27956
27957 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27958 (password): New section.
27959 (password_pbkdf2): New section.
27960 (search): New section.
27961 (Security): New section.
27962 (Troubleshooting): New section, currently very incomplete.
27963 (Invoking grub-mkpasswd-pbkdf2): New section.
27964 (Internals): New section, currently very incomplete.
27965
27966 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27967
27968 * util/grub.d/00_header.in: Add some more quoting (of
27969 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27970 work again.
27971 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27972
27973 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27974
27975 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27976 to `count', fixing variable shadowing that broke the -c option.
27977
27978 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27979
27980 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27981 in case they contain spaces.
27982
27983 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27984
27985 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27986 "part_" to partmap module names, in line with grub-install.
27987 Reported by: Jindřich Makovička (Debian bug #584426).
27988
27989 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27990
27991 * util/grub-mkimage.c: Make target-related error messages slightly
27992 more helpful; -O talks about "format". Explicitly point to the use
27993 of -O if no target is specified.
27994 Reported by: Didier Raboud (Debian bug #584415).
27995
27996 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27997
27998 * INSTALL: Document several build requirements for optional features
27999 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28000
28001 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28002
28003 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28004 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28005 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28006
28007 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28008
28009 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28010 Thanks to Jordan Uggla for spotting this.
28011
28012 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28013
28014 Finally make USB usable.
28015
28016 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28017 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28018 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28019 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28020 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28021 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28022 (GRUB_OHCI_FSMPS): Likewise.
28023 (GRUB_OHCI_PERIODIC_START): Likewise.
28024 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28025 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28026 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28027 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28028 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28029 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28030 (grub_ohci_transaction): Likewise.
28031 (grub_ohci_transfer): Improve condition detection algorithms.
28032 Handle toggle property. Program the transactions correctly.
28033 Improve error handling. Various important fixups.
28034 (grub_ohci_portstatus): Put register writes in right order.
28035 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28036 (grub_uhci_transfer): Don't show "failed" message on success.
28037 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28038 array.
28039 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28040 determine its size.
28041 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28042 before initialization is completed. Use IN direction for empty
28043 transfers. Use last_trans and compute toggle.
28044 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28045 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28046 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28047 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28048 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28049 (grub_usb_device): Increase toggle to 256.
28050 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28051 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28052 GRUB_USBMS_SUBCLASS_SFF8070.
28053 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28054 (grub_scsi_inquiry): New member page and alloc_length.
28055 (grub_scsi_request_sense): New structure.
28056 (grub_scsi_request_sense_data): Likewise.
28057 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28058 control.
28059 * disk/scsi.c (grub_scsi_request_sense): New function.
28060 (grub_scsi_test_unit_ready): Likewise.
28061 (grub_scsi_inquiry): Fill new fields.
28062 (grub_scsi_read_capacity): Likewise.
28063 (grub_scsi_read10): Add request sense at the end.
28064 (grub_scsi_read12): Likewise.
28065 (grub_scsi_write10): Likewise.
28066 (grub_scsi_write12): Likewise.
28067 (grub_scsi_open): Add Test Unit Ready.
28068 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28069 Support additional subclasses. Con't clear halt yet. Activate the
28070 proper config. Calculate LUNs correctly.
28071 (grub_usbms_transfer): Various important fixups.
28072
28073 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28074
28075 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28076 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28077 (grub_ohci_fini_hw): New function.
28078 (grub_ohci_restore_hw): Likewise.
28079 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28080 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28081 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28082
28083 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28084
28085 Dedicated DMA allocations.
28086
28087 * bus/pci.c (grub_memalign_dma32): New function
28088 (grub_dma_free): Likewise.
28089 (grub_dma_get_virt): Likewise.
28090 (grub_dma_get_phys): Likewise.
28091 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28092 (grub_ohci_pci_iter): Use dma32_alloc.
28093 (grub_ohci_transfer): Likewise.
28094 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28095 (grub_usb_bulk_readwrite): Likewise.
28096 * include/grub/pci.h: Add declarations.
28097
28098 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28099
28100 CS5536 support.
28101
28102 * bus/cs5536.c: New file.
28103 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28104 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28105 (cs5536_mod_SOURCES): New variable.
28106 (cs5536_mod_CFLAGS): Likewise.
28107 (cs5536_mod_LDFLAGS): Likewise.
28108 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28109 machine/pci.h.
28110 (kernel_img_SOURCES): Add bus/cs5536.c.
28111 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28112 usb_keyboard.mod.
28113 (usb_mod_SOURCES): New variable.
28114 (usb_mod_CFLAGS): New variable.
28115 (usb_mod_LDFLAGS): New variable.
28116 (usbtest_mod_SOURCES): New variable.
28117 (usbtest_mod_CFLAGS): New variable.
28118 (usbtest_mod_LDFLAGS): New variable.
28119 (ohci_mod_SOURCES): New variable.
28120 (ohci_mod_CFLAGS): New variable.
28121 (ohci_mod_LDFLAGS): New variable.
28122 (usbms_mod_SOURCES): New variable.
28123 (usbms_mod_CFLAGS): New variable.
28124 (usbms_mod_LDFLAGS): New variable.
28125 (usb_keyboard_mod_SOURCES): New variable.
28126 (usb_keyboard_mod_CFLAGS): New variable.
28127 (usb_keyboard_mod_LDFLAGS): New variable.
28128 * include/grub/smbus.h: New file.
28129 * include/grub/cs5536.h: New file.
28130
28131 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28132
28133 * util/grub.d/00_header.in: Add safety check to make sure that
28134 ${locale_dir} exists before trying to probe it.
28135
28136 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28137
28138 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28139 per the GNU Coding Standards; this is now too obscure to be worth
28140 documenting.
28141 (QNX): Likewise.
28142 (chainloader): Remove cross-reference to `SCO UnixWare'.
28143
28144 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28145
28146 * docs/grub.texi (Chain-loading): New section.
28147 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28148 adjusted for GRUB 2.
28149 (SCO UnixWare): Likewise.
28150 (QNX): Likewise.
28151 (chainloader): Add reference to `Block list syntax'.
28152 (drivemap): New section.
28153 (parttool): New section.
28154
28155 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28156
28157 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28158 the grub shell'.
28159 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28160 (Installing GRUB using grub-install): Remove reference to the grub
28161 shell; mention `grub-mkimage' and `grub-setup' instead.
28162 (Invoking grub-install): Likewise.
28163 (Interface): Add reference to `Menu entry editor'.
28164 (serial): Remove `--device' option.
28165
28166 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28167
28168 * docs/grub.texi (Configuration): New section, documenting
28169 configuration file generation using grub-mkconfig. I've left a slot
28170 for documenting the full shell scripting format but have not yet
28171 started on writing that up.
28172 (Invoking grub-mkconfig): New section.
28173
28174 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28175
28176 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28177 (GNU GRUB manual): Likewise.
28178 (General commands): Update description of `terminfo' for GRUB 2.
28179
28180 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28181
28182 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28183 (GRUB_MOD_INIT): Fix capitalisation.
28184 * docs/grub.texi (Command-line and menu entry commands): Document
28185 gettext and gptsync commands.
28186
28187 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28188
28189 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28190 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28191
28192 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28193
28194 Add btrfs probing support, currently only in the single-device case.
28195
28196 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28197 function.
28198 (grub_guess_root_device): Call find_root_device_from_mountinfo
28199 before looking in /dev.
28200
28201 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28202
28203 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28204 GRUB_DISK_SIZE_UNKNOWN.
28205 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28206
28207 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28208
28209 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28210 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28211 corrupted or not synced properly.
28212
28213 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28214
28215 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28216 Reported by: Seth Goldberg.
28217
28218 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28219
28220 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28221 addition of dest.
28222 Reported by: Seth Goldberg.
28223
28224 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28225
28226 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28227 Reported by: Seth Goldberg.
28228
28229 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28230
28231 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28232 64-bit address as signed on MIPS.
28233
28234 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28235
28236 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28237 to the empty string.
28238
28239 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28240
28241 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28242
28243 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28244 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28245 * kern/misc.c (__enable_execute_stack): Disable on
28246 GRUB_MACHINE_EMU.
28247
28248 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28249
28250 Make grub-probe work with symbolic links under /dev/mapper as well
28251 as with real block devices. The Linux world seems to be (at best)
28252 in transition here, and GRUB shouldn't get caught in the middle.
28253
28254 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28255 /dev/mapper.
28256
28257 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28258
28259 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28260 input files (in which case exit zero).
28261
28262 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28263
28264 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28265 return NULL for various reasons even if it has a maximum-length
28266 buffer: for example, there might be a symlink loop, or the path
28267 might exceed PATH_MAX. If this happens, return NULL.
28268
28269 2010-05-27 Robert Millan <rmh@gnu.org>
28270
28271 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28272 partmap module to handle cross-partmap setups.
28273 Reported by Orestes Mas. Gràcies!
28274
28275 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28276
28277 * util/grub-mkrescue.in: Initialise override_dir rather than
28278 assuming that it's unset or empty in the environment.
28279
28280 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28281
28282 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28283 variable index into p_index to suppress a warning with -Wshadow.
28284
28285 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28286
28287 * INSTALL: Added flex >= 2.5.35 requirement.
28288
28289 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28290
28291 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28292
28293 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28294
28295 cmostest support.
28296
28297 * commands/i386/cmostest.c: New file.
28298 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28299 (cmostest_mod_SOURCES): New variable.
28300 (cmostest_mod_CFLAGS): Likewise.
28301 (cmostest_mod_LDFLAGS): Likewise.
28302 * conf/i386-pc.rmk: Likewise.
28303 * docs/grub.texi (Vendor power-on keys): New section.
28304 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28305 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28306 and GRUB_BUTTON_CMOS_ADDRESS.
28307 * util/grub.d/00_header.in: Handle powering-on by separate button.
28308
28309 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28310
28311 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28312 Removed drawing_scrollbar argument. All users updated
28313 Fixes #29792.
28314 Reported by Jo Shields
28315
28316 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28317
28318 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28319 buffer since gfxterm handles double repaint.
28320
28321 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28322
28323 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28324 * term/gfxterm.c (real_scroll): Likewise.
28325
28326 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28327
28328 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28329 before calling BIOS.
28330
28331 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28332
28333 * include/grub/i18n.h: Always enable grub_gettext.
28334
28335 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28336
28337 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28338 partition naming style.
28339
28340 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28341
28342 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28343 not the first option.
28344
28345 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28346
28347 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28348
28349 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28350
28351 * util/misc.c: Move inclusion of <limits.h> to ...
28352 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28353
28354 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28355
28356 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28357 Fix merge error in NetBSD code.
28358 (find_partition_start) [__NetBSD__]: Likewise.
28359
28360 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28361
28362 Fix grub-mkrescue usage unit testing.
28363
28364 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28365
28366 2010-05-18 Christian Franke <franke@computer.org>
28367
28368 * util/grub.d/10_windows.in: Use path names instead of
28369 drive letters to prevent warning from Cygwin 1.7.
28370 Add drivemap command to menuentry if needed.
28371
28372 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28373
28374 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28375 gnumach and gnumach.gz.
28376
28377 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28378
28379 * include/grub/i18n.h (gettext): Inline instead of using #define.
28380 (grub_gettext): Likewise.
28381 (_): Likewise.
28382
28383 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28384
28385 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28386 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28387 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28388 (main): Add a slash after pkglibdirroot.
28389
28390 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28391
28392 * util/grub-install.in: Add missing "in" keyword.
28393
28394 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28395
28396 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28397 Reported by: Seth Goldberg.
28398
28399 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28400
28401 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28402
28403 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28404
28405 * configure.ac: Check for Linux device-mapper support.
28406
28407 * util/hostdisk.c (device_is_mapped): New function.
28408 (find_partition_start): New function, partly broken out from
28409 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28410 device-mapper support added.
28411 (linux_find_partition): Use find_partition_start.
28412 (convert_system_partition_to_system_disk): Add `st' argument.
28413 Support Linux /dev/mapper/* devices if device-mapper support is
28414 available; only DM-RAID devices are understood at present.
28415 (find_system_device): Add `st' argument. Pass it to
28416 convert_system_partition_to_system_disk.
28417 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28418 find_system_device and convert_system_partition_to_system_disk. Use
28419 find_partition_start.
28420
28421 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28422 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28423 * util/deviceiter.c [__linux__]: Define MINOR.
28424 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28425 * util/mkdevicemap.c (grub_putchar): New function.
28426 (grub_getkey): New function.
28427 (grub_refresh): New function.
28428 (main): Set debug=all if -v -v is used.
28429
28430 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28431
28432 Fix build with non-GNU libcs.
28433
28434 * util/misc.c (canonicalize_file_name): Move to ...
28435 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28436 grub_make_system_path_relative_to_its_root.
28437
28438 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28439
28440 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28441 we handle finding grub-mkimage. Default to finding grub-mkimage in
28442 ${bindir} with program_transform_name applied, and provide a
28443 --grub-mkimage option to override this.
28444
28445 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28446
28447 Remove grub-mkisofs.
28448
28449 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28450 (grub_mkisofs_SOURCES): Removed.
28451 (grub_mkisofs_CFLAGS): Removed.
28452 * util/mkisofs/defaults.h: Removed.
28453 * util/mkisofs/eltorito.c: Likewise.
28454 * util/mkisofs/exclude.h: Likewise.
28455 * util/mkisofs/hash.c: Likewise.
28456 * util/mkisofs/include/: Likewise.
28457 * util/mkisofs/include/fctldefs.h: Likewise.
28458 * util/mkisofs/include/mconfig.h: Likewise.
28459 * util/mkisofs/include/prototyp.h: Likewise.
28460 * util/mkisofs/include/statdefs.h: Likewise.
28461 * util/mkisofs/iso9660.h: Likewise.
28462 * util/mkisofs/joliet.c: Likewise.
28463 * util/mkisofs/match.c: Likewise.
28464 * util/mkisofs/match.h: Likewise.
28465 * util/mkisofs/mkisofs.c: Likewise.
28466 * util/mkisofs/mkisofs.h: Likewise.
28467 * util/mkisofs/msdos_partition.h: Likewise.
28468 * util/mkisofs/multi.c: Likewise.
28469 * util/mkisofs/name.c: Likewise.
28470 * util/mkisofs/rock.c: Likewise.
28471 * util/mkisofs/tree.c: Likewise.
28472 * util/mkisofs/write.c: Likewise.
28473
28474 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28475
28476 Unify grub-mkimage accross platforms.
28477
28478 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28479 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28480 (grub_mkelfimage_SOURCES): Removed.
28481 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28482 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28483 (bin_UTILITIES): Add grub-mkimage.
28484 (grub_mkimage_SOURCES): New variable.
28485 (kernel_img_HEADERS): Remove machine/kernel.h.
28486 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28487 (pkglib_PROGRAMS): Add kernel.img.
28488 (kernel_img_HEADERS): Add machine/kernel.h.
28489 (kernel_img_FORMAT): Removed.
28490 (bin_UTILITIES): Remove grub-mkimage.
28491 (grub_mkimage_SOURCES): Removed.
28492 (grub_mkimage_CFLAGS): Likewise.
28493 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28494 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28495 (pkglib_PROGRAMS): Add kernel.img.
28496 (bin_UTILITIES): Remove grub-mkimage.
28497 (grub_mkimage_SOURCES): Removed.
28498 (grub_mkimage_CFLAGS): Likewise.
28499 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28500 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28501 (pkglib_PROGRAMS): Add kernel.img.
28502 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28503 (pkglib_PROGRAMS): Add kernel.img.
28504 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28505 (grub_mkimage_SOURCES): Removed.
28506 (grub_mkimage_CFLAGS): Likewise.
28507 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28508 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28509 (pkglib_PROGRAMS): Add kernel.img.
28510 (bin_UTILITIES): Remove grub-mkimage.
28511 (grub_mkimage_SOURCES): Removed.
28512 (grub_mkimage_CFLAGS): Likewise.
28513 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28514 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28515 (grub_mkimage_SOURCES): Removed.
28516 (grub_mkimage_CFLAGS): Likewise.
28517 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28518 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28519 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28520 (grub_pe32_optional_header): ... this.
28521 (grub_pe64_optional_header): ... and this. All users updated.
28522 (GRUB_PE32_PE32_MAGIC): Split into ..
28523 (GRUB_PE32_PE32_MAGIC): .. this.
28524 (GRUB_PE32_PE64_MAGIC): .. and this.
28525 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28526 * include/grub/elf.h (PT_GNU_STACK): New definition.
28527 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28528 * include/grub/i386/efi/kernel.h: Likewise.
28529 * include/grub/i386/kernel.h: Likewise.
28530 * include/grub/i386/pc/kernel.h: Likewise.
28531 * include/grub/i386/qemu/boot.h: Likewise.
28532 * include/grub/mips/kernel.h: Likewise.
28533 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28534 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28535 * include/grub/powerpc/kernel.h: Likewise.
28536 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28537 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28538 * include/grub/sparc64/kernel.h: Likewise.
28539 * include/grub/x86_64/efi/kernel.h: Likewise.
28540 * include/grub/x86_64/kernel.h: Likewise.
28541 * include/grub/offsets.h: New file.
28542 * include/grub/kernel.h (grub_module_info): Split into ...
28543 (grub_module_info32): ... this.
28544 (grub_module_info64): ... and this.
28545 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28546 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28547 (grub_boot_blocklist): Moved from here ...
28548 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28549 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28550 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28551 * include/grub/types.h (grub_target_to_host16): Removed.
28552 (grub_target_to_host32): Likewise.
28553 (grub_target_to_host64): Likewise.
28554 (grub_host_to_target16): Likewise.
28555 (grub_host_to_target32): Likewise.
28556 (grub_host_to_target64): Likewise.
28557 (grub_host_to_target_addr): Likewise.
28558
28559 Support grub-mkrescue for efi, coreboot and qemu.
28560
28561 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28562 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28563 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28564 * util/grub-mkrawimage.c: Moved from here ...
28565 * util/grub-mkimage.c: ... here. All users updated.
28566 (ALIGN_ADDR): Use image_target.
28567 (TARGET_NO_FIELD): New const.
28568 (image_target_desc): New type.
28569 (image_targets): New array.
28570 (grub_target_to_host64): Use image_target.
28571 (grub_target_to_host32): Likewise.
28572 (grub_target_to_host16): Likewise.
28573 (grub_host_to_target64): Likewise.
28574 (grub_host_to_target32): Likewise.
28575 (grub_host_to_target16): Likewise.
28576 (grub_host_to_target_addr): Likewise.
28577 (generate_image): Handle multiimage.
28578 (main): Require -O parameter. All users updated.
28579 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28580 util/efi/grub-mkimage.c
28581 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28582 New option --rom-directory.
28583 Use xorriso.
28584 * util/i386/efi/grub-mkimage.c: Removed.
28585 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28586 (grub_target_to_host32): Likewise.
28587 (grub_target_to_host64): Likewise.
28588 (grub_host_to_target16): Likewise.
28589 (grub_host_to_target32): Likewise.
28590 (grub_host_to_target64): Likewise.
28591 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28592 (grub_target_to_host32): Likewise.
28593 (grub_target_to_host64): Likewise.
28594 (grub_host_to_target16): Likewise.
28595 (grub_host_to_target32): Likewise.
28596 (grub_host_to_target64): Likewise.
28597
28598 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28599
28600 Source tree is reorganized for emu build.
28601
28602 * include/grub/util/console.h: Move from here...
28603 * include/grub/emu/console.h: ...to here.
28604 * include/grub/util/getroot.h: Move from here...
28605 * include/grub/emu/getroot.h: ...to here.
28606 * include/grub/util/hostdisk.h: Move from here...
28607 * include/grub/emu/hostdisk.h: ...to here.
28608 * util/console.c: Move from here...
28609 * kern/emu/console.c: ...to here.
28610 * util/getroot.c: Move from here...
28611 * kern/emu/getroot.c: ...to here.
28612 * util/grub-emu.c: Move from here...
28613 * kern/emu/main.c: ...to here.
28614 * util/hostdisk.c: Move from here...
28615 * kern/emu/hostdisk.c: ...to here.
28616 * util/hostfs.c: Move from here...
28617 * kern/emu/hostfs.c: ...to here.
28618 * util/mm.c: Move from here...
28619 * kern/emu/mm.c: ...to here.
28620 * util/pci.c: Move from here...
28621 * bus/emu/pci.c: ...to here.
28622 * util/sdl.c: Move from here...
28623 * video/emu/sdl.c: ...to here.
28624 * util/time.c: Move from here...
28625 * kern/emu/time.c: ...to here.
28626 * util/usb.c: Move from here...
28627 * bus/usb/emu/usb.c: ...to here.
28628
28629 * include/grub/emu/misc.h: New header for grub-emu functions.
28630 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28631
28632 * conf/any-emu.rmk: Rule updates for above renames.
28633 * conf/common.rmk: Likewise.
28634 * conf/i386-pc.rmk: Likewise.
28635 * conf/i386-qemu.rmk: Likewise.
28636 * conf/mips.rmk: Likewise.
28637 * conf/sparc64-ieee1275.rmk: Likewise.
28638 * conf/x86-efi.rmk: Likewise.
28639
28640 * disk/lvm.h: #include updates for above renames.
28641 * util/grub-mkrelpath.c: Likewise.
28642 * util/grub-probe.c: Likewise.
28643 * util/i386/pc/grub-setup.c: Likewise.
28644 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28645 * kern/emu/console.c: Likewise.
28646 * kern/emu/getroot.c: Likewise.
28647 * kern/emu/hostdisk.c: Likewise.
28648 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28649
28650 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28651 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28652 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28653 * util/misc.c: Remove grub-emu functions.
28654
28655 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28656
28657 Fix gfxmenu crash.
28658 Reported by: Thorsten Grützmacher.
28659
28660 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28661 timeout hook.
28662 (circprog_set_property): Register and unregister timeout hook.
28663 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28664 (label_destroy): Free template. and unregister hook.
28665 (label_set_state): New function.
28666 (label_set_property): Handle templates and hooks.
28667 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28668 timeout hook.
28669 (progress_bar_set_property): Register and unregister timeout hook.
28670 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28671 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28672 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28673 (update_timeout_visit): Removed.
28674 (update_timeouts): New function.
28675 (redraw_timeouts): Likewise.
28676 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28677 (grub_gfxmenu_clear_timeout): Likewise.
28678 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28679 (grub_gfxmenu_timeout_notify): Likewise.
28680 (grub_gfxmenu_timeout_notifications): New external variable.
28681 (grub_gfxmenu_timeout_register): New function.
28682 (grub_gfxmenu_timeout_unregister): Likewise.
28683
28684 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28685
28686 Transform (broken) vga terminal into (working) vga video driver.
28687
28688 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28689 video/i386/pc/vga.c.
28690 * include/grub/video.h (grub_video_driver_id):
28691 Add GRUB_VIDEO_DRIVER_VGA.
28692 * term/i386/pc/vga.c: Renamed to ...
28693 * video/i386/pc/vga.c: ...this
28694 (DEBUG_VGA): Removed.
28695 (CHAR_WIDTH): Likewise.
28696 (CHAR_HEIGHT): Likewise.
28697 (TEXT_WIDTH): Likewise.
28698 (TEXT_HEIGHT): Likewise.
28699 (DEFAULT_FG_COLOR): Likewise.
28700 (DEFAULT_BG_COLOR): Likewise.
28701 (colored_char): Likewise.
28702 (xpos): Likewise.
28703 (ypos): Likewise.
28704 (cursor_state): Likewise.
28705 (fg_color): Likewise.
28706 (bg_color): Likewise.
28707 (text_buf): Likewise.
28708 (page): Likewise.
28709 (font): Likewise.
28710 (framebuffer): New variable.
28711 (set_read_map): Disabled.
28712 (setup): New variable.
28713 (is_target): Likewise.
28714 (grub_vga_mod_init): Likewise.
28715 (grub_vga_mod_fini): Likewise.
28716 (check_vga_mem): Likewise.
28717 (write_char): Likewise.
28718 (write_cursor): Likewise.
28719 (scroll_up): Likewise.
28720 (grub_vga_putchar): Likewise.
28721 (grub_vga_getcharwidth): Likewise.
28722 (grub_vga_getwh): Likewise.
28723 (grub_vga_getxy): Likewise.
28724 (grub_vga_gotoxy): Likewise.
28725 (grub_vga_cls): Likewise.
28726 (grub_vga_setcolorstate): Likewise.
28727 (grub_vga_setcursor): Likewise.
28728 (grub_video_vga_init): New function.
28729 (grub_video_vga_setup): Likewise.
28730 (grub_video_vga_fini): Likewise.
28731 (update_target): Likewise.
28732 (grub_video_vga_blit_bitmap): Likewise.
28733 (grub_video_vga_blit_render_target): Likewise.
28734 (grub_video_vga_set_active_render_target): Likewise.
28735 (grub_video_vga_get_active_render_target): Likewise.
28736 (grub_video_vga_swap_buffers): Likewise.
28737 (grub_video_vga_set_palette): Likewise.
28738 (grub_video_vga_get_info_and_fini): Likewise.
28739 (grub_vga_term): Removed.
28740 (grub_video_vga_adapter): New variable.
28741 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28742 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28743
28744 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28745
28746 * video/readers/jpeg.c: Indented.
28747
28748 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28749
28750 Various jpeg cleanups.
28751
28752 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28753 (grub_jpeg_decode_quan_table): Use sizeof.
28754 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28755
28756 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28757
28758 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28759 tables. Ignore non-last ac bit.
28760 (grub_jpeg_decode_quan_table): Likewise.
28761
28762 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28763
28764 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28765 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28766 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28767 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28768 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28769 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28770
28771 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28772
28773 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28774 error.
28775
28776 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28777
28778 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28779
28780 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28781
28782 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28783 condition.
28784
28785 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28786
28787 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28788 part.
28789
28790 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28791
28792 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28793 pointers.
28794
28795 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28796
28797 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28798
28799 2010-05-01 Christian Franke <franke@computer.org>
28800
28801 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28802 Remove broken Cygwin path conversion.
28803 * util/misc.c: [__CYGWIN__] Add include and define.
28804 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28805 for Cygwin 1.7.
28806 (make_system_path_relative_to_its_root): Simplify loop, replace early
28807 return by break.
28808 [__CYGWIN__] Add conversion to win32 path.
28809 Include "/" case in trailing slash removal.
28810
28811 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28812
28813 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28814 Reported by: Seth Goldberg
28815
28816 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28817
28818 * commands/help.c (grub_cmd_help): Fix a typo.
28819 Reported by: Seth Goldberg
28820
28821 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28822
28823 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28824 name and add N_.
28825 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28826 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28827 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28828 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28829 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28830 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28831 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28832 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28833 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28834 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28835 * normal/context.c (GRUB_MOD_INIT): Likewise.
28836 * normal/main.c (GRUB_MOD_INIT): Likewise.
28837 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28838 * term/serial.c (GRUB_MOD_INIT): Likewise.
28839 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28840
28841 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28842
28843 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28844 extra == 0.
28845
28846 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28847
28848 * commands/iorw.c: New file.
28849 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28850 (iorw_mod_SOURCES): New variable.
28851 (iorw_mod_CFLAGS): Likewise.
28852 (iorw_mod_LDFLAGS): Likewise.
28853
28854 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28855
28856 Hotkey support
28857
28858 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28859 * normal/main.c (hotkey_aliases): New variable.
28860 (grub_normal_add_menu_entry): Parse "--hotkey".
28861 * normal/menu_text.c (run_menu): Handle hotkeys.
28862
28863 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28864
28865 * kern/i386/coreboot/init.c (grub_machine_init): Call
28866 grub_machine_mmap_init on qemu.
28867
28868 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28869
28870 * boot/i386/qemu/boot.S: Add a missing .code16.
28871
28872 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28873
28874 Use LBIO on coreboot.
28875
28876 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28877 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28878 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28879 New declaration.
28880 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28881 grub_machine_mmap_init on coreboot.
28882 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28883 GRUB_LINUXBIOS_MEMBER_LINK.
28884 (grub_machine_mmap_iterate): Fix declaration.
28885 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28886
28887 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28888
28889 Split coreboot and multiboot ports.
28890
28891 * conf/i386-multiboot.rmk: New file.
28892 * configure.ac: Add multiboot port.
28893 * include/grub/i386/multiboot/boot.h: New file.
28894 * include/grub/i386/multiboot/console.h: Likewise.
28895 * include/grub/i386/multiboot/init.h: Likewise.
28896 * include/grub/i386/multiboot/kernel.h: Likewise.
28897 * include/grub/i386/multiboot/loader.h: Likewise.
28898 * include/grub/i386/multiboot/memory.h: Likewise.
28899 * include/grub/i386/multiboot/serial.h: Likewise.
28900 * include/grub/i386/multiboot/time.h: Likewise.
28901 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28902 * loader/multiboot.c: Likewise.
28903 * loader/multiboot_mbi2.c: Likewise.
28904 * util/grub-mkrescue.in: Generate multiboot rescue.
28905
28906 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28907
28908 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28909
28910 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28911
28912 Merge handling of input and output terminals. Fix a hang.
28913
28914 * commands/terminal.c (abstract_terminal): New struct.
28915 (handle_command): New function. Based on grub_cmd_terminal_input.
28916 (grub_cmd_terminal_input): Use handle_command.
28917 (grub_cmd_terminal_output): Use handle_command.
28918
28919 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28920
28921 Fix comment handling.
28922
28923 * tests/grub_script_comments.in: New testcase.
28924 * conf/tests.rmk: Rules for new testcase.
28925 * script/yylex.l: Updated flex rules.
28926
28927 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28928
28929 * docs/grub.texi (play): Document that zero pitches produce rests.
28930 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28931 if argc is 1.
28932
28933 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28934
28935 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28936 autogen issues.
28937
28938 2010-04-26 Christian Franke <franke@computer.org>
28939
28940 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28941 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28942 (grub_get_prefix): Remove function.
28943 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28944 make_system_path_relative_to_its_root ().
28945 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28946
28947 2010-04-24 Christian Franke <franke@computer.org>
28948
28949 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28950 (kernel_img_LDFLAGS): Remove -static-libgcc.
28951
28952 2010-04-24 Christian Franke <franke@computer.org>
28953
28954 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28955 and CHECK_END_SYMBOL if grub-emu is built.
28956 Unset TARGET_OBJ2ELF if grub-emu is built
28957 without module support.
28958
28959 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28960
28961 Nilfs2 support.
28962
28963 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28964 (grub_fstest_SOURCES): Likewise.
28965 (pkglib_MODULES): Add nilfs2.mod.
28966 (nilfs2_mod_SOURCES): New variable.
28967 (nilfs2_mod_CFLAGS): Likewise.
28968 (nilfs2_mod_LDFLAGS): Likewise.
28969 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28970 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28971 * fs/nilfs2.c: New file.
28972
28973 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28974
28975 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28976 is not supported.
28977
28978 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28979
28980 Add grub-mkconfig support for NetBSD.
28981
28982 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28983 * util/grub-mkconfig.in: export new NetBSD specific variables.
28984 * po/POTFILES-shell: added 10_netbsd.in.
28985 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28986
28987 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28988
28989 Fix emu build with grub-emu-pci and grub-emu-modules.
28990
28991 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28992 functions.
28993 * include/grub/libpciaccess.h: New file.
28994 * conf/any-emu.rmk: Update kernel headers for emu build.
28995
28996 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28997
28998 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28999
29000 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29001
29002 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29003
29004 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29005
29006 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29007 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29008 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29009 util/ieee1275/ofpath.c.
29010 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29011 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29012 * include/grub/sparc64/ieee1275/boot.h
29013 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29014 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29015 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29016 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29017 const char *.
29018 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29019 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29020 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29021 install.
29022
29023 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29024
29025 * util/grub-mkconfig.in: Corrected two == equality tests.
29026 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29027 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29028 expect a number appended to it.
29029 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29030 expects a number appended to it.
29031
29032 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29033
29034 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29035
29036 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29037
29038 * util/hostdisk.c (make_device_name): Change to new partition naming.
29039
29040 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29041
29042 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29043
29044 2010-04-17 Christian Franke <franke@computer.org>
29045
29046 * Makefile.in: Add missing localedir setting.
29047
29048 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29049
29050 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29051 mistake in r2156. Noticed by Anthony Fok.
29052
29053 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29054 @localedir@.
29055 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29056
29057 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29058
29059 Fix a spurious, uninitialized variable warning.
29060
29061 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29062 Initialize variable, shdr.
29063 (grub_freebsd_load_elfmodule): Likewise.
29064 (grub_freebsd_load_elf_meta): Likewise.
29065
29066 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29067
29068 Fix for escaped dollar in double quoted strings.
29069
29070 * script/yylex.l: Updated flex rules.
29071 * conf/tests.rmk: Rule for new testcase.
29072 * tests/grub_script_dollar.in: New testcase.
29073
29074 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29075 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29076
29077 Enclose all translated strings in grub.cfg in single quotes, and
29078 escape them appropriately (Ubuntu bug #552921).
29079
29080 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29081 * util/grub.d/10_hurd.in: Use it.
29082 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29083 * util/grub.d/10_linux.in (linux_entry): Likewise.
29084
29085 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29086
29087 Fix cygwin compilation.
29088
29089 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29090 * include/grub/misc.h (__register_frame_info)
29091 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29092 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29093 * kern/misc.c (__register_frame_info)
29094 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29095 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29096
29097 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29098
29099 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29100
29101 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29102
29103 Unify libgcc processing.
29104
29105 * Makefile.in (kernel_img_LDFLAGS): New variable.
29106 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29107 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29108 overwriting.
29109 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29110 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29111 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29112 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29113 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29114 overwriting. Remove -lgcc and -static-libgcc
29115 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29116 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29117 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29118 (kernel_img_LDFLAGS): Append instead of overwriting.
29119 Remove -lgcc and -static-libgcc
29120 * conf/sparc64-ieee1275.rmk: Likewise.
29121 * include/grub/powerpc/libgcc.h: Move to ...
29122 * include/grub/libgcc.h: .. this.
29123 * include/grub/libgcc.h: Don't export most of the function on x86.
29124 (__bswapsi2): New export.
29125 (__bswapdi2): Likewise.
29126 * include/grub/mips/libgcc.h: Removed.
29127 * include/grub/sparc64/libgcc.h: Likewise.
29128
29129 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29130
29131 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29132 disk_info_msg (conflicts with gettexting into languages with cases).
29133
29134 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29135
29136 Add grub-probe support for NetBSD.
29137
29138 * util/getroot.c (find_root_device): Convert block device to
29139 character device on NetBSD.
29140 * util/probe.c (probe): Require character device on NetBSD.
29141 * util/hostdisk.c: NetBSD specific headers.
29142 (configure_device_driver): new function to tune device driver
29143 parameters (currently only for NetBSD floppy driver).
29144 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29145 via disklabel ioctl).
29146 (open_device): call configure_device_driver on NetBSD.
29147 (convert_system_partition_to_system_disk): NetBSD specific code.
29148 (device_is_wholedisk): Likewise.
29149 (grub_util_biosdisk_get_grub_dev): Likewise.
29150 (make_device_name): Fixed a typo in bsd_part_str.
29151 * configure.ac: check for opendisk() and getrawpartition() on
29152 NetBSD and set LIBUTIL.
29153 * Makefile.in: add LIBUTIL to LIBS.
29154
29155 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29156
29157 Documentation fix.
29158
29159 * util/grub-script-check.c: Better help message.
29160
29161 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29162
29163 Fix FreeBSD build.
29164
29165 * configure.ac: Flex version check.
29166 * conf/common.rmk: Add -Wno-error to sh.mod.
29167 * script/yylex.l: Remove all #pragma.
29168
29169 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29170
29171 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29172 prototype.
29173 Reported by: Seth Goldberg.
29174
29175 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29176
29177 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29178 Rename "module" to "module2".
29179 Reported by: Seth Goldberg.
29180
29181 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29182
29183 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29184 EXPORT_FUNC.
29185 Reported by: Seth Goldberg.
29186
29187 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29188
29189 * lib/posix_wrap/locale.h: Add missing file.
29190 Reported by: Seth Goldberg.
29191
29192 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29193
29194 grub-emu module load support.
29195
29196 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29197 NO_DYNAMIC_MODULES switched to this.
29198 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29199 (CFLAGS): Likewise.
29200 * conf/any-emu.rmk: Generate symlist.
29201 (kernel_img_HEADERS): Add util/datetime.h.
29202 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29203 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29204 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29205 kern/$(target_cpu)/cache.S.
29206 * configure.ac (grub-emu-modules): New option.
29207 * genmk.rb: Handle multiple source lists.
29208 * include/grub/sdl.h: New file.
29209 * include/grub/libusb.h: Likewise.
29210 * util/grub-emu.c (main): Hanle (host) root.
29211 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29212 GRUB_ERR_UNKNOWN_DEVICE.
29213 * util/misc.c: Move mm functions to ...
29214 * util/mm.c: ... here. All users updated.
29215
29216 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29217
29218 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29219 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29220 missing files.
29221 (maintainer-clean): Remove libgcrypt-grub.
29222
29223 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29224
29225 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29226
29227 2010-04-09 EFI Coder <eficoder@hotmail.com>
29228
29229 * normal/menu_text.c (print_message): Clean up the message and show
29230 the Fn information when on EFI
29231 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29232
29233 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29234
29235 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29236 All users updated.
29237 * normal/crypto.c (read_crypto_list): Likewise.
29238 * normal/dyncmd.c (read_command_list): Likewise.
29239 * normal/term.c (read_terminal_list): Likewise.
29240 * normal/main.c (read_lists): Use explicit prefix.
29241 (read_lists_hook): Use read_lists.
29242 (grub_normal_execute): Likewise.
29243
29244 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29245
29246 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29247 Reported by: Thomas Schmitt.
29248 Add -no-emul-boot to grub-mkisofs parameters.
29249
29250 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29251
29252 * font/font.c: Indented.
29253
29254 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29255
29256 Elif support to GRUB script (by Deepak Vankadaru).
29257
29258 * tests/grub_script_if.in: New testcase.
29259 * conf/tests.rmk: Rule for new testcase.
29260 * script/parser.y: Grammar rules for elif.
29261
29262 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29263
29264 While and until loops support to GRUB script.
29265
29266 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29267 (grub_script_create_cmdwhile): New function prototype.
29268 (grub_script_execute_cmdwhile): New function prototype.
29269 * script/execute.c (grub_script_execute_cmdwhile): New function.
29270 * script/parser.y (command): New commands.
29271 (whilecmd): New grammar rule.
29272 (untilcmd): New grammar rule.
29273 * script/script.c (grub_script_create_cmdwhile): New function.
29274 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29275 function.
29276
29277 * tests/grub_script_while1.in: New testcase.
29278 * conf/tests.rmk: Rule for new testcase.
29279
29280 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29281
29282 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29283 as *.jpg.
29284
29285 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29286
29287 GRUB_BACKGROUND support.
29288
29289 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29290 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29291
29292 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29293
29294 Load fonts and modules for gfxmenu in grub-mkconfig.
29295 Idea by: Mario Vazquez
29296
29297 * util/grub.d/00_header.in: Load pf2 and image modules.
29298
29299 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29300
29301 grub-mkconfig multiple terminal support.
29302
29303 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29304 * util/grub.d/00_header.in: Likewise.
29305
29306 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29307
29308 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29309 we use cd $(srcdir).
29310
29311 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29312
29313 * util/grub.d/10_linux.in: Only use the first word of
29314 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29315 spaces in GRUB_DISTRIBUTOR.
29316 * util/grub.d/10_kfreebsd.in: Likewise.
29317 * util/grub.d/10_hurd.in: Likewise.
29318
29319 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29320
29321 Fix unit testing framework for Qemu 0.12.
29322
29323 * tests/util/grub-shell.in: Remove -serial stdio option.
29324
29325 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29326
29327 POSIX header file wrappers.
29328
29329 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29330 equivalents.
29331 * lib/posix_wrap/ctype.h: Likewise.
29332 * lib/posix_wrap/errno.h: Likewise.
29333 * lib/posix_wrap/langinfo.h: Likewise.
29334 * lib/posix_wrap/limits.h: Likewise.
29335 * lib/posix_wrap/localcharset.h: Likewise.
29336 * lib/posix_wrap/stdint.h: Likewise.
29337 * lib/posix_wrap/stdio.h: Likewise.
29338 * lib/posix_wrap/stdlib.h: Likewise.
29339 * lib/posix_wrap/string.h: Likewise.
29340 * lib/posix_wrap/sys/types.h: Likewise.
29341 * lib/posix_wrap/unistd.h: Likewise.
29342 * lib/posix_wrap/wchar.h: Likewise.
29343 * lib/posix_wrap/wctype.h: Likewise.
29344 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29345 (grub_script.yy.h): Likewise.
29346 * script/yylex.l: Remove POSIX emulation #defines.
29347 * Makefile.in (POSIX_CFLAGS): New variable.
29348 (GNULIB_UTIL_CFLAGS): Likewise.
29349
29350 Regexp support.
29351
29352 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29353 (regexp_mod_SOURCES): New variable.
29354 (regexp_mod_CFLAGS): Likewise.
29355 (regexp_mod_LDFLAGS): Likewise.
29356 * commands/regexp.c: New file.
29357 * gnulib/regcomp.c: New file. Imported from gnulib.
29358 * gnulib/regex.c: Likewise.
29359 * gnulib/regex_internal.c: Likewise.
29360 * gnulib/regex_internal.h: Likewise.
29361 * gnulib/regexec.c: Likewise.
29362 * gnulib/regex.h: Likewise.
29363
29364 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29365
29366 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29367 unsupported video mode types.
29368
29369 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29370
29371 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29372
29373 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29374
29375 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29376 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29377
29378 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29379
29380 Remove unused grub_vga_get_font.
29381
29382 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29383 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29384
29385 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29386
29387 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29388 * include/grub/misc.h: Likewise.
29389
29390 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29391
29392 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29393 for which failure is fatal.
29394
29395 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29396
29397 * util/grub-install.in: Use mkdir -p to create grub directory.
29398 * util/i386/efi/grub-install.in: Likewise.
29399 * util/ieee1275/grub-install.in: Likewise.
29400
29401 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29402
29403 * Makefile.in (LEX): new variable.
29404
29405 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29406
29407 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29408 `=' and added double quotes on operands of this equality test.
29409
29410 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29411
29412 * Makefile.in (uninstall): Remove a leftover debug echo.
29413 Reported by: Grégoire Sutre
29414
29415 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29416
29417 MIPS multiboot2 support.
29418
29419 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29420 (multiboot2_mod_SOURCES): New variable.
29421 (multiboot2_mod_CFLAGS): Likewise.
29422 (multiboot2_mod_LDFLAGS): Likewise.
29423 (multiboot2_mod_ASFLAGS): Likewise.
29424 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29425 definition.
29426 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29427 (MULTIBOOT_MBI_REGISTER): Likewise.
29428 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29429 (MULTIBOOT_ELF32_MACHINE): Likewise.
29430 (MULTIBOOT_ELF64_MACHINE): Likewise.
29431 * include/grub/mips/multiboot.h: New file.
29432 * include/grub/video.h (grub_video_driver_id): New type
29433 GRUB_VIDEO_DRIVER_SM712.
29434 (grub_video_get_info_and_fini): Export.
29435 (grub_video_get_palette): Likewise.
29436 (grub_video_get_driver_id): Likewise.
29437 * include/multiboot2.h: Resynced with spec.
29438 * loader/i386/multiboot.c: Moved from here ...
29439 * loader/multiboot.c: ... here. All users updated.
29440 (grub_multiboot_boot): Use platform-specific macros.
29441 * loader/i386/multiboot_elfxx.c: Moved from here ...
29442 * loader/multiboot_elfxx.c: ... here. All users updated.
29443 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29444 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29445 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29446
29447 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29448
29449 Import gnulib argp module.
29450
29451 * gnulib/argp-ba.c: New file.
29452 * gnulib/argp-eexst.c: Likewise.
29453 * gnulib/argp-fmtstream.c: Likewise.
29454 * gnulib/argp-fmtstream.h: Likewise.
29455 * gnulib/argp-fs-xinl.c: Likewise.
29456 * gnulib/argp-help.c: Likewise.
29457 * gnulib/argp-namefrob.h: Likewise.
29458 * gnulib/argp-parse.c: Likewise.
29459 * gnulib/argp-pin.c: Likewise.
29460 * gnulib/argp-pv.c: Likewise.
29461 * gnulib/argp-pvh.c: Likewise.
29462 * gnulib/argp-version-etc.c: Likewise.
29463 * gnulib/argp-version-etc.h: Likewise.
29464 * gnulib/argp-xinl.c: Likewise.
29465 * gnulib/argp.h: Likewise.
29466
29467 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29468
29469 * kern/device.c (grub_device_iterate): Clear errors after failed
29470 opening device.
29471
29472 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29473
29474 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29475 returned by firmware.
29476
29477 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29478
29479 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29480 compilation on coreboot and qemu
29481
29482 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29483
29484 * include/multiboot2.h: Resync with spec.
29485
29486 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29487
29488 Multiboot2 tag support
29489
29490 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29491 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29492 Remove loader/multiboot_loader.c.
29493 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29494 (grub_multiboot2_real_boot): Likewise.
29495 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29496 (grub_get_multiboot_mmap_count): New proto.
29497 (grub_fill_multiboot_mmap): Likewise.
29498 (grub_multiboot_set_video_mode): Likewise.
29499 (grub_multiboot_set_console): Likewise.
29500 (grub_multiboot_load): Likewise.
29501 (grub_multiboot_load_elf): Likewise.
29502 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29503 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29504 * include/multiboot.h: Resynced with specification.
29505 * include/multiboot2.h: Resynced with specification.
29506 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29507 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29508 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29509 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29510 users updated.
29511 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29512 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29513 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29514 Removed.
29515 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29516 Moved from here...
29517 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29518 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29519 Moved from here...
29520 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29521 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29522 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29523 All users updated.
29524 * loader/i386/multiboot_mbi2.c: New file.
29525
29526 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29527
29528 Resync with gnulib.
29529
29530 * Makefile.in (GNULIB_CFLAGS): New variable.
29531 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29532 (grub_script_check_CFLAGS): New variable.
29533 * gnulib/alloca.h: Resync with gnulib.
29534 * gnulib/error.c: Likewise.
29535 * gnulib/error.h: Likewise.
29536 * gnulib/fnmatch.c: Likewise.
29537 * gnulib/fnmatch_loop.c: Likewise.
29538 * gnulib/getdelim.c: Likewise.
29539 * gnulib/getline.c: Likewise.
29540 * gnulib/getopt.c: Likewise.
29541 * gnulib/getopt1.c: Likewise.
29542 * gnulib/getopt_int.h: Likewise.
29543 * gnulib/gettext.h: Likewise.
29544 * gnulib/progname.c: Likewise.
29545 * gnulib/progname.h: Likewise.
29546
29547 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29548
29549 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29550 which is the case with --disabled-nls.
29551
29552 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29553 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29554 * util/misc.c: Likewise.
29555 * util/mkisofs/mkisofs.c: Likewise.
29556 * util/mkisofs/mkisofs.h: Likewise.
29557
29558 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29559
29560 Simplify Apple CC support.
29561
29562 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29563 Add 0 byte at the end not to have a symbol with empty target.
29564 * mmap/i386/pc/mmap_helper.S: Likewise.
29565 * genmk.rb: Ignore errors 2030 and 2050.
29566 * kern/i386/pc/startup.S: Use LOCAL when possible.
29567
29568 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29569
29570 Testcase and the fix for final semicolon on cmdline.
29571
29572 * tests/grub_script_final_semicolon.in: New testcase.
29573 * conf/tests.rmk: Rules for the new testcase.
29574 * script/parser.y: Grammar fix.
29575
29576 2010-03-26 BVK Chaitanya <bvk@localhost>
29577
29578 Blank lines testcase for GRUB script.
29579
29580 * tests/grub_script_blanklines.in: New testcase.
29581 * conf/tests.rmk: Rules for the new testcase.
29582
29583 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29584
29585 Don't use __FILE__.
29586
29587 * genmk.rb: Add -DGRUB_FILE to all C targets.
29588 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29589 * include/grub/list.h: Likewise.
29590 * include/grub/misc.h: Likewise.
29591 * include/grub/mm.h: Likewise.
29592 * include/grub/test.h: Likewise.
29593 * kern/mm.c: Likewise.
29594 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29595
29596 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29597
29598 Sunpc partitions support.
29599
29600 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29601 (grub_fstest_SOURCES): Likewise.
29602 (pkglib_MODULES): Add part_sunpc.mod.
29603 (part_sunpc_mod_SOURCES): New variable.
29604 (part_sunpc_mod_CFLAGS): Likewise.
29605 (part_sunpc_mod_LDFLAGS): Likewise.
29606 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29607 * partmap/sunpc.c: New file.
29608
29609 2010-03-26 BVK Chaitanya <bvk@localhost>
29610
29611 For loop support to GRUB script.
29612
29613 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29614 (grub_script_create_cmdfor): New function prototype.
29615 (grub_script_execute_cmdfor): New function prototype.
29616 * script/execute.c (grub_script_execute_cmdfor): New function.
29617 * script/parser.y (command): New for command.
29618 (forcmd): New grammar rule.
29619 * script/script.c (grub_script_create_cmdfor): New function.
29620 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29621 function.
29622 * tests/grub_script_for1.in: New testcase.
29623 * conf/tests.rmk: Rules for new testcase.
29624
29625 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29626
29627 Nested partitions
29628
29629 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29630 'partition' is NULL, grub_partition_get_start already does that.
29631 * commands/loadenv.c (check_blocklists): Likewise.
29632 (write_blocklists): Likewise.
29633 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29634 (grub_fstest_SOURCES): Likewise.
29635 (pkglib_MODULES): Add part_bsd.mod.
29636 (part_bsd_mod_SOURCES): New variable.
29637 (part_bsd_mod_CFLAGS): Likewise.
29638 (part_bsd_mod_LDFLAGS): Likewise.
29639 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29640 (grub_emu_SOURCES): Likewise.
29641 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29642 * include/grub/bsdlabel.h: New file.
29643 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29644 'get_name'.
29645 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29646 (grub_partition_map_list): New variable.
29647 (grub_partition_map_register): Inline.
29648 (grub_partition_map_unregister): Likewise.
29649 (FOR_PARTITION_MAPS): New macro.
29650 (grub_partition_map_iterate): Removed.
29651 (grub_partition_get_start): Handle nested partitions.
29652 * include/grub/msdos_partition.h: Remove bsd-related entries.
29653 (grub_pc_partition): Remove.
29654 * kern/disk.c (grub_disk_close): Free partition data.
29655 (grub_disk_adjust_range): Handle nested partitions.
29656 * kern/partition.c (grub_partition_map_probe): New function.
29657 (grub_partition_probe): Parse name to number, handle subpartitions.
29658 (get_partmap): New function.
29659 (grub_partition_iterate): Handle subpartitions.
29660 (grub_partition_get_name): Likewise.
29661 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29662 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29663 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29664 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29665 Set 'number'.
29666 (acorn_partition_map_probe): Remove.
29667 (acorn_partition_map_get_name): Likewise.
29668 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29669 Set 'number'.
29670 Set 'index' to 0 since there can be only one partition entry per sector.
29671 (amiga_partition_map_probe): Remove.
29672 (amiga_partition_map_get_name): Likewise.
29673 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29674 Set 'number'.
29675 Set 'offset' and 'index' to real positions of partitions.
29676 (apple_partition_map_probe): Remove.
29677 (apple_partition_map_get_name): Likewise.
29678 * partmap/bsdlabel.c: New file.
29679 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29680 Set 'number'.
29681 Allocate 'data' so it can be correctly freed.
29682 Set 'index' to offset inside sector.
29683 (gpt_partition_map_probe): Remove.
29684 (gpt_partition_map_get_name): Likewise.
29685 * partmap/msdos.c (grub_partition_parse): Remove.
29686 (pc_partition_map_iterate): Don't force raw access.
29687 Set 'number'.
29688 Make 'ext_offset' a local variable.
29689 (pc_partition_map_probe): Remove.
29690 (pc_partition_map_get_name): Remove.
29691 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29692 Set 'number'.
29693 (sun_partition_map_probe): Remove.
29694 (sun_partition_map_get_name): Likewise.
29695 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29696 (grub_pcpart_type): Likewise.
29697 * util/hostdisk.c (open_device): Handle new numbering scheme.
29698 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29699 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29700 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29701 * util/grub-install.in: Insert all subpartition modules.
29702 * util/ieee1275/grub-install.in: Likewise.
29703
29704 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29705
29706 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29707 grammar.
29708
29709 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29710
29711 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29712
29713 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29714
29715 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29716 match where 'make install' puts them.
29717 * util/i386/efi/grub-install.in: Likewise.
29718
29719 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29720
29721 * .bzrignore: Add gentrigtables, grub-script-check,
29722 grub_script_check_init.c, grub_script_check_init.h, and
29723 trigtables.c.
29724
29725 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29726
29727 * kern/parser.c: Indented.
29728
29729 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29730
29731 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29732
29733 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29734
29735 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29736 alpha_mask_size == 0 case.
29737
29738 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29739
29740 GRUB shell lexer and parser improvements.
29741
29742 * conf/any-emu.rmk: Build rule updates.
29743 * conf/common.rmk: Likewise.
29744 * conf/i386-coreboot.rmk: Likewise.
29745 * conf/i386-efi.rmk: Likewise.
29746 * conf/i386-ieee1275.rmk: Likewise.
29747 * conf/i386-pc.rmk: Likewise.
29748 * conf/powerpc-ieee1275.rmk: Likewise.
29749 * conf/x86_64-efi.rmk: Likewise.
29750
29751 * configure.ac: Configure check for flex.
29752
29753 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29754 types.
29755 (grub_lexer_param): Struct member updates.
29756 (grub_parser_param): Likewise.
29757 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29758 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29759 (grub_script_lexer_init): Prototype update.
29760 (grub_script_lexer_record_start): Likewise.
29761 (grub_script_lexer_record_stop): Likewise.
29762 (grub_script_lexer_yywrap): New function prototype.
29763 (grub_script_lexer_fini): Likewise.
29764 (grub_script_execute_argument_to_string): Removed by...
29765 (grub_script_execute_argument_to_argv): ...better version.
29766
29767 * script/execute.c (ROUND_UPTO): New macro.
29768 (grub_script_execute_cmdline): Out of memory fixes.
29769 (grub_script_execute_menuentry): Likewise.
29770 (grub_script_execute_argument_to_string): Removed. Update all
29771 users by...
29772 (grub_script_execute_argument_to_argv): ...better version.
29773 * script/function.c (grub_script_function_create): Use
29774 grub_script_execute_argument_to_argv instead of
29775 grub_script_execute_argument_to_string.
29776
29777 * script/lexer.c (check_varstate): Removed.
29778 (check_textstate): Removed.
29779 (grub_script_lexer_record_start): Likewise.
29780 (grub_script_lexer_record_stop): Likewise.
29781 (recordchar): Replaced with...
29782 (grub_script_lexer_record): ...new function.
29783 (nextchar): Removed.
29784 (grub_script_lexer_init): Rewritten.
29785 (grub_script_yylex): Rewritten.
29786 (append_newline): New function.
29787 (grub_script_lexer_yywrap): New function.
29788 (grub_script_lexer_fini): New function.
29789 (grub_script_yyerror): Sets error flag.
29790
29791 * script/yylex.l: New file.
29792 (grub_lexer_yyfree): Wrapper for flex yyffre.
29793 (grub_lexer_yyalloc): Likewise.
29794 (grub_lexer_yyrealloc): Likewise.
29795 * script/parser.y: Refactored.
29796
29797 * script/script.c (grub_script_arg_add): Out of memory fixes.
29798 (grub_script_add_arglist): Likewise.
29799 (grub_script_create_cmdline): Likewise.
29800 (grub_script_create_cmdmenu): Likewise.
29801 (grub_script_add_cmd): Likewise.
29802 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29803 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29804 unnecessary code.
29805
29806 * tests/grub_script_echo1.in: New testcase.
29807 * tests/grub_script_vars1.in: New testcase.
29808 * tests/grub_script_echo_keywords.in: New testcase.
29809
29810 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29811
29812 Remove some redundancy in build system.
29813
29814 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29815 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29816 (TARGET_LDFLAGS): Add -nostdlib.
29817 (TARGET_IMG_LDFLAGS): Likewise.
29818 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29819 anything since mmap isn't available.
29820 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29821 Add util/time.c.
29822 (pkglib_MODULES): Remove reboot.mod.
29823 (reboot_mod_SOURCES): Removed.
29824 (reboot_mod_CFLAGS): Likewise.
29825 (reboot_mod_LDFLAGS): Likewise.
29826 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29827 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29828 (DEFSYMFILES): Add kernel_syms.lst.
29829 (kernel_img_HEADERS): Add common headers.
29830 (symlist.c): New target.
29831 (kernel_syms.lst): Likewise.
29832 (pkglib_MODULES): Add memdisk.mod.
29833 (memdisk_mod_SOURCES): New variable.
29834 (memdisk_mod_CFLAGS): Likewise.
29835 (memdisk_mod_LDFLAGS): Likewise.
29836 (pkglib_MODULES): Add reboot.mod.
29837 (reboot_mod_SOURCES): New variable.
29838 (reboot_mod_CFLAGS): Likewise.
29839 (reboot_mod_LDFLAGS): Likewise.
29840 (pkglib_MODULES): Add date.mod.
29841 (date_mod_SOURCES): New variable.
29842 (date_mod_CFLAGS): Likewise.
29843 (date_mod_LDFLAGS): Likewise.
29844 (pkglib_MODULES): Add datehook.mod.
29845 (datehook_mod_SOURCES): New variable.
29846 (datehook_mod_CFLAGS): Likewise.
29847 (datehook_mod_LDFLAGS): Likewise.
29848 (pkglib_MODULES): Add lsmmap.mod.
29849 (lsmmap_mod_SOURCES): New variable.
29850 (lsmmap_mod_CFLAGS): Likewise.
29851 (lsmmap_mod_LDFLAGS): Likewise.
29852 (pkglib_MODULES): Add boot.mod.
29853 (boot_mod_SOURCES): New variable.
29854 (boot_mod_CFLAGS): Likewise.
29855 (boot_mod_LDFLAGS): Likewise.
29856 * conf/i386-coreboot.rmk: Removed redundant parts.
29857 * conf/i386-ieee1275.rmk: Likewise.
29858 * conf/i386-pc.rmk: Likewise.
29859 * conf/mips-yeeloong.rmk: Likewise.
29860 * conf/mips.rmk: Likewise.
29861 * conf/powerpc-ieee1275.rmk: Likewise.
29862 * conf/sparc64-ieee1275.rmk: Likewise.
29863 * conf/x86_64-efi.rmk: Likewise.
29864 * conf/i386-coreboot.rmk: Moved qemu parts ..
29865 * conf/i386-qemu.rmk: ... here
29866 * conf/i386-efi.rmk: Moved common parts to...
29867 * conf/x86-efi.rmk: ... here.
29868 * conf/i386.rmk: Added modules common to all x86 variants.
29869 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29870 * disk/memdisk.c: Remove grub/machine/kernel.h.
29871 * gensymlist.sh.in: Include symbol.h.
29872 * hook/datehook.c: Correct module name.
29873 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29874 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29875 * include/grub/i386/efi/serial.h: New file.
29876 * include/grub/x86_64/efi/serial.h: Likewise.
29877 * util/time.c: Likewise.
29878 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29879
29880 2010-03-14 Colin King <colin.king@ubuntu.com>
29881 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29882
29883 Shrink the pre-partition-table part of boot.img by eight bytes.
29884
29885 * boot/i386/pc/boot.S (ERR): New macro.
29886 (chs_mode): Use ERR.
29887 (geometry_error): Likewise.
29888 (hd_probe_error): Remove. This is only used once, so we wrwite
29889 it inline instead.
29890 (read_error): Instead of printing read_error_string, just set up
29891 %si and fall through to ...
29892 (error_message): ... this new function, also used by ERR.
29893
29894 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29895
29896 Speed up consecutive hostdisk operations on the same device.
29897
29898 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29899 (grub_util_biosdisk_open): Initialise disk->data.
29900 (struct linux_partition_cache): New structure.
29901 (linux_find_partition): Cache partition start positions; these are
29902 expensive to compute on every read and write.
29903 (open_device): Cache open file descriptor in disk->data, so that we
29904 don't have to reopen it and flush the buffer cache for consecutive
29905 operations on the same device.
29906 (grub_util_biosdisk_close): New function.
29907 (grub_util_biosdisk_dev): Set `close' member.
29908
29909 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29910 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29911 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29912 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29913 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29914
29915 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29916
29917 Compile parts of grub-emu as modules.
29918
29919 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29920 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29921 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29922 (all-local): Add $(GRUB_EMU).
29923 (install-local): Install $(GRUB_EMU).
29924 (uninstall): Uninstall $(GRUB_EMU).
29925 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29926 * kern/dl.c: Likewise.
29927 * commands/sleep.c: Not include machine/time.h.
29928 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29929 (COMMON_CFLAGS): Likewise.
29930 (sbin_UTILITIES): Remove grub-emu.
29931 (grub_emu_SOURCES): Removed.
29932 (kernel_img_RELOCATABLE): New variable.
29933 (pkglib_PROGRAMS): Add kernel.img.
29934 (kernel_img_SOURCES): New variable
29935 (kernel_img_CFLAGS): Likewise.
29936 (kernel_img_LDFLAGS): Likewise.
29937 (TARGET_NO_STRIP): Likewise.
29938 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29939 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29940 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29941 (grub-emu): New target.
29942 (GRUB_EMU): New variable.
29943 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29944 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29945 * loader/xnu.c: Likewise.
29946 * include/grub/pci.h: Likewise.
29947 * genemuinit.sh: New file.
29948 * genemuinitheader.sh: Likewise.
29949 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29950 Support TARGET_NO_DYNAMIC_MODULES.
29951 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29952 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29953 * disk/loopback.c: Likewise.
29954 * font/font_cmd.c: Likewise.
29955 * partmap/acorn.c: Likewise.
29956 * partmap/amiga.c: Likewise.
29957 * partmap/apple.c: Likewise.
29958 * partmap/gpt.c: Likewise.
29959 * partmap/msdos.c: Likewise.
29960 * partmap/sun.c: Likewise.
29961 * parttool/msdospart.c: Likewise.
29962 * term/gfxterm.c: Likewise.
29963 * video/bitmap.c: Likewise.
29964 * video/readers/jpeg.c: Likewise.
29965 * video/readers/png.c: Likewise.
29966 * video/readers/tga.c: Likewise.
29967 * video/video.c: Likewise.
29968 * util/grub-emu.c (read_command_list): Removed.
29969 (main): Don't call util_init_nls.
29970 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29971 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29972
29973 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29974
29975 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29976 date.mod, datehook.mod.
29977 (datetime_mod_SOURCES): New variable.
29978 (datetime_mod_CFLAGS): Likewise.
29979 (datetime_mod_LDFLAGS): Likewise.
29980 (date_mod_SOURCES): Likewise.
29981 (date_mod_CFLAGS): Likewise.
29982 (date_mod_LDFLAGS): Likewise.
29983 (datehook_mod_SOURCES): Likewise.
29984 (datehook_mod_CFLAGS): Likewise.
29985 (datehook_mod_LDFLAGS): Likewise.
29986 * conf/sparc64-ieee1275.rmk: Likewise.
29987 * lib/ieee1275/datetime.c: New file.
29988
29989 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29990
29991 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29992 (ieee1275_fb_mod_SOURCES): New variable.
29993 (ieee1275_fb_mod_CFLAGS): Likewise.
29994 (ieee1275_fb_mod_LDFLAGS): Likewise.
29995 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29996 New proto.
29997 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29998 (HEAP_MAX_ADDR): Likewise.
29999 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30000 type.
30001 Correct stop condition.
30002 (grub_ieee1275_devices_iterate): New function.
30003 * video/ieee1275.c: New file.
30004
30005 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30006
30007 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30008
30009 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30010 as scratch.
30011 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30012 SCRATCH_PAD_DISKBOOT as scratch.
30013 (bootit): Pass Openfirmware pointer in %o4.
30014 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30015 of 0x200000.
30016 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30017 with util/grub-mkrawimage.c.
30018 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30019 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30020 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30021 (grub_aout_load) [GRUB_UTIL]: Likewise.
30022 * include/grub/kernel.h (grub_modules_get_end): New proto.
30023 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30024 (SCRATCH_PAD_BOOT): New definition.
30025 (SCRATCH_PAD_DISKBOOT): Likewise.
30026 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30027 * include/grub/sparc64/ieee1275/ieee1275.h
30028 (grub_ieee1275_original_stack): New variable
30029 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30030 New definition
30031 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30032 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30033 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30034 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30035 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30036 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30037 (grub_platform_image_format_t): New type.
30038 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30039 * kern/main.c (grub_modules_get_end)
30040 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30041 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30042 (codestart): Switch stacks.
30043 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30044 variable.
30045 (grub_heap_init): Use grub_modules_get_end.
30046 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30047 stack.
30048 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30049 (main): Likewise.
30050 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30051
30052 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30053
30054 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30055
30056 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30057
30058 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30059 bug #559005).
30060
30061 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30062
30063 * genmoddep.awk: Output all missing symbols and not only first.
30064
30065 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30066
30067 * NEWS: Put the date of 1.98 release.
30068
30069 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30070
30071 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30072 ft2build.h.
30073
30074 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30075
30076 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30077 completition in the middle of string.
30078
30079 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30080
30081 * util/grub-mkrescue.in: Use mktemp with explicit template.
30082
30083 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30084
30085 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30086
30087 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30088
30089 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30090 right pointer.
30091
30092 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30093
30094 Fix FreeBSD compilation.
30095
30096 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30097 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30098
30099 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30100
30101 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30102
30103 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30104
30105 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30106
30107 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30108
30109 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30110
30111 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30112
30113 Support relative image path in theme file.
30114
30115 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30116 (image_set_property): Handle theme_dir and relative path.
30117
30118 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30119
30120 * configure.ac: Alias amd64 to x86_64.
30121
30122 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30123
30124 * NEWS: mention multiboot on EFI.
30125
30126 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30127
30128 * kern/main.c (grub_load_modules): Handle errors from init functions of
30129 embeded modules.
30130
30131 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30132
30133 * normal/autofs.c (autoload_fs_module): Handle errors.
30134
30135 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30136
30137 Disable linux.mod on qemu-mips since it's not functional and leads
30138 to compilation failure.
30139
30140 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30141 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30142 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30143 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30144 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30145 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30146 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30147 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30148 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30149 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30150 Reported by: BVK Chaitanya
30151
30152 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30153
30154 * INSTALL: Add gettext as a dependency and add qemu to a new section
30155 "Prerequisites for make-check".
30156
30157 2010-03-04 Christian Franke <franke@computer.org>
30158
30159 * util/grub-pe2elf.c: Add missing include "progname.h".
30160
30161 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30162
30163 * normal/crypto.c (read_crypto_list): Fix a typo.
30164 Reported by: Seth Goldberg.
30165
30166 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30167
30168 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30169 Reported by: Seth Goldberg.
30170
30171 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30172
30173 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30174 ascii.bitmaps.
30175
30176 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30177
30178 * genmk.rb: Remove terminal*.lst in make clean.
30179 Reported by: Seth Goldberg.
30180
30181 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30182
30183 * util/i386/efi/grub-install.in: Copy gettext files.
30184
30185 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30186
30187 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30188
30189 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30190
30191 Wait for user entry basing on presence of output rather than on errors.
30192
30193 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30194 (grub_install_newline_hook): Likewise.
30195 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30196 * normal/menu.c (show_menu): Check line_counter to determine presence
30197 of output.
30198 * normal/term.c (grub_normal_line_counter): New variable.
30199 (grub_normal_get_line_counter): New function.
30200 (grub_install_newline_hook): Likewise.
30201
30202 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30203
30204 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30205
30206 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30207
30208 * configure.ac: Update version to 1.98.
30209
30210 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30211
30212 * util/grub.d/10_linux.in (linux_entry): Don't default to
30213 gfxpayload=keep if Linux doesn't support video handover.
30214
30215 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30216
30217 Don't compile video modules on yeeloong since video subsystem is part
30218 of kernel.
30219
30220 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30221 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30222 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30223 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30224 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30225 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30226 * include/grub/bitmap_scale.h: Likewise.
30227 * include/grub/bufio.h: Likewise.
30228 * include/grub/font.h: Likewise.
30229 * include/grub/gfxterm.h: Likewise.
30230 * include/grub/video.h: Likewise.
30231 * include/grub/vbe.h: Don't include video_fb.h.
30232 * video/i386/pc/vbe.c: Include video_fb.h.
30233 * commands/i386/pc/vbetest.c: Include video.h.
30234
30235 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30236
30237 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30238 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30239 default entry if GRUB_SAVEDEFAULT=true. This allows using
30240 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30241 saving a new default on every boot.
30242
30243 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30244
30245 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30246 * normal/term.c (read_terminal_list): Likewise.
30247 * normal/main.c (grub_normal_init_page): Likewise.
30248 (grub_normal_read_line_real): Likewise.
30249
30250 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30251
30252 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30253 memory leak.
30254 Reported by: Seth Goldberg.
30255
30256 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30257
30258 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30259 duplicate declaration of `start'.
30260
30261 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30262
30263 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30264 filename.
30265 Reported by: Georgy Buranov
30266
30267 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30268
30269 * util/grub-mkrawimage.c (usage): Change string formatting to
30270 improve gettext.
30271
30272 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30273
30274 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30275 backspace keys.
30276
30277 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30278
30279 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30280 Reported by: Michael Suchanek.
30281
30282 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30283
30284 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30285 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30286
30287 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30288
30289 Remove any reference to non-free fonts.
30290
30291 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30292 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30293 uses non-free components.
30294 * font/font.c (grub_font_get_name): Remove example name.
30295 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30296 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30297 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30298 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30299
30300 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30301
30302 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30303
30304 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30305
30306 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30307 Double divisor.
30308 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30309 features.
30310 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30311
30312 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30313
30314 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30315
30316 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30317
30318 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30319 * docs/grub.texi (Command-line and menu entry commands): Document play
30320 command.
30321
30322 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30323
30324 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30325 parse arguments as inline tempo and notes. Move code for playing notes
30326 to...
30327 (play): ... new function.
30328
30329 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30330
30331 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30332 grub_uint16_t instead of short.
30333 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30334 disk from little endian to cpu endianness.
30335
30336 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30337
30338 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30339 GRUB_TICKS_PER_SECOND instead of 120.
30340
30341 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30342
30343 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30344 escape sequence after \e.
30345
30346 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30347
30348 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30349 non-ASCII characters.
30350
30351 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30352
30353 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30354 set root in single quotes to prevent \, from being unescaped.
30355
30356 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30357
30358 Prevent unknown commands from stopping menuentry execution.
30359
30360 * script/execute.c (grub_script_execute_cmdline): Print error after
30361 unknown command.
30362
30363 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30364
30365 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30366 Reported by: Pavel Pisa.
30367
30368 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30369
30370 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30371
30372 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30373
30374 Merge grub_ieee1275_map_physical into grub_map and rename to
30375 grub_ieee1275_map
30376
30377 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30378 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30379 Remove.
30380 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30381 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30382 necessary.
30383 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30384
30385 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30386
30387 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30388 opening and not after.
30389
30390 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30391
30392 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30393 constants.
30394
30395 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30396
30397 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30398 (alloc_phys): Use ALIGN_UP instead of align_addr.
30399
30400 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30401
30402 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30403
30404 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30405
30406 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30407
30408 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30409
30410 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30411 verbose dprintf.
30412
30413 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30414
30415 Fix over-4GiB seek on sparc64.
30416
30417 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30418 Replace pos_i and pos_lo with pos. All users updated.
30419 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30420 New constant.
30421 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30422 Likewise.
30423 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30424 and pos_lo.
30425
30426 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30427
30428 * util/grub-mkrawimage.c (main): Call set_program_name.
30429
30430 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30431
30432 Properly align 64-bit targets.
30433
30434 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30435 (generate_image): Use ALIGN_ADDR.
30436
30437 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30438
30439 Properly create cross-endian images.
30440
30441 * include/grub/types.h (grub_host_to_target_addr): New macro
30442 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30443
30444 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30445
30446 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30447
30448 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30449
30450 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30451
30452 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30453 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30454 (grub_linux_boot): Divide by 64K when on VESA.
30455
30456 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30457
30458 Support GRUB_GFXPAYLOAD_LINUX.
30459
30460 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30461 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30462
30463 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30464
30465 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30466 to show messages instead of discarding them.
30467 Process errors after executing command and not before. Keep old method
30468 too as precaution.
30469
30470 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30471
30472 * configure.ac: Check for ft2build.h.
30473
30474 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30475
30476 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30477
30478 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30479
30480 * genkernsyms.sh.in: Use TARGET_CC.
30481
30482 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30483
30484 * NEWS: Update.
30485
30486 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30487
30488 * include/grub/multiboot2.h: Remove leftover file.
30489 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30490 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30491
30492 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30493
30494 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30495
30496 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30497
30498 Fix warnings in grub-emu when compiling with maximum warning options.
30499
30500 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30501 (grub_arch_modules_addr): Return 0 and not NULL.
30502 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30503 (xstrdup): Use newstr instead of dup.
30504 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30505 of disk to dsk to avoid shadowing.
30506 (find_free_slot): Fix prototype.
30507 * util/getroot.c (grub_util_is_dmraid): Make static.
30508 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30509 Add missing prototype.
30510 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30511
30512 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30513
30514 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30515 appropriately.
30516
30517 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30518
30519 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30520 code out.
30521
30522 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30523
30524 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30525 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30526 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30527 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30528 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30529 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30530
30531 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30532
30533 * include/grub/err.h (grub_err_printf): Don't export.
30534
30535 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30536
30537 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30538
30539 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30540
30541 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30542 * kern/misc.c (grub_gettext_dummy): Make static.
30543
30544 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30545
30546 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30547 by non-valid ones.
30548 * kern/term.c (grub_putchar): Likewise.
30549
30550 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30551
30552 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30553 buggy hook call and memory leak.
30554
30555 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30556
30557 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30558
30559 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30560
30561 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30562
30563 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30564
30565 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30566 modevar.
30567 Return grub_errno on allocation error.
30568
30569 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30570
30571 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30572
30573 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30574
30575 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30576 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30577
30578 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30579
30580 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30581 non-pxe disk.
30582 (grub_pxefs_open): Likewise.
30583
30584 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30585
30586 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30587 * util/grub.d/10_kfreebsd.in: Likewise.
30588 * util/grub.d/10_linux.in: Likewise.
30589
30590 2010-02-06 Colin D Bennett <colin@gibibit.com>
30591
30592 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30593 (gfxmenu_mod_SOURCES): New variable.
30594 (gfxmenu_mod_CFLAGS): Likewise.
30595 (gfxmenu_mod_LDFLAGS): Likewise.
30596 * include/grub/term.h (grub_term_set_current_output): Declare
30597 argument as const.
30598 * docs/gfxmenu-theme-example.txt: New file.
30599 * gfxmenu/gfxmenu.c: Likewise.
30600 * gfxmenu/gui_box.c: Likewise.
30601 * gfxmenu/gui_canvas.c: Likewise.
30602 * gfxmenu/gui_circular_progress.c: Likewise.
30603 * gfxmenu/gui_image.c: Likewise.
30604 * gfxmenu/gui_label.c: Likewise.
30605 * gfxmenu/gui_list.c: Likewise.
30606 * gfxmenu/gui_progress_bar.c: Likewise.
30607 * gfxmenu/gui_string_util.c: Likewise.
30608 * gfxmenu/gui_util.c: Likewise.
30609 * gfxmenu/icon_manager.c: Likewise.
30610 * gfxmenu/model.c: Likewise.
30611 * gfxmenu/named_colors.c: Likewise.
30612 * gfxmenu/theme_loader.c: Likewise.
30613 * gfxmenu/view.c: Likewise.
30614 * gfxmenu/widget-box.c: Likewise.
30615 * include/grub/gfxmenu_model.h: Likewise.
30616 * include/grub/gfxmenu_view.h: Likewise.
30617 * include/grub/gfxwidgets.h: Likewise.
30618 * include/grub/gui.h: Likewise.
30619 * include/grub/gui_string_util.h: Likewise.
30620 * include/grub/icon_manager.h: Likewise.
30621
30622 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30623
30624 Agglomerate scrolling in gfxterm.
30625
30626 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30627 (grub_virtual_screen_setup): Initialise 'total_screen'.
30628 (write_char): Split to ...
30629 (paint_char): ... this ...
30630 (write_char): ... and this.
30631 (paint_char): Handle delayed scrolling.
30632 (draw_cursor): Likewise.
30633 (scroll_up): Split to ...
30634 (real_scroll): ... this ...
30635 (scroll_up): ... and this.
30636 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30637 characters.
30638 (grub_gfxterm_refresh): Call real_scroll.
30639
30640 2010-02-06 Colin D Bennett <colin@gibibit.com>
30641
30642 * include/grub/misc.h (grub_iscntrl): New inline function.
30643 (grub_isalnum): Likewise.
30644 (grub_strtol): Likewise.
30645
30646 2010-02-06 Colin D Bennett <colin@gibibit.com>
30647
30648 * normal/menu_text.c (get_entry_number): Move from here ...
30649 * normal/menu.c (get_entry_number): ... moved here.
30650 * include/grub/menu.h (grub_menu_get_default_entry_index):
30651 New prototype.
30652 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30653 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30654 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30655 (grub_menu_viewer_should_return): Likewise.
30656 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30657 * normal/menu_text.c (run_menu): Enable menu switching.
30658 * normal/menu_viewer.c (should_return): New variable.
30659 (menu_viewer_changed): Likewise.
30660 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30661 (grub_menu_viewer_should_return): New function.
30662 (menuviewer_write_hook): Likewise.
30663 (grub_menu_viewer_init): Likewise.
30664
30665 2010-02-06 Colin D Bennet <colin@gibibit.com>
30666 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30667
30668 Support for gfxterm in a window.
30669
30670 * include/grub/gfxterm.h: New file.
30671 * include/grub/video.h (struct grub_video_rect): New declaration.
30672 (grub_video_rect_t): Likewise.
30673 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30674 (refcount): New variable.
30675 (render_target): Likewise.
30676 (window): Likewise.
30677 (repaint_callback): Likewise.
30678 (grub_virtual_screen_setup): Use 'render_target'.
30679 (init_window): New function.
30680 (grub_gfxterm_init_window): Likewise.
30681 (grub_gfxterm_init): Check reference counter.
30682 Use init_window.
30683 (destroy_window): New function.
30684 (grub_gfxterm_destroy_window): Likewise.
30685 (grub_gfxterm_fini): Check reference counter.
30686 Use destroy_window.
30687 (redraw_screen_rect): Restore viewport.
30688 Use 'render_target' and 'window'.
30689 Call 'repaint_callback'.
30690 (write_char): Use 'render_target'.
30691 (draw_cursor): Likewise.
30692 (scroll_up): Restore viewport.
30693 Use 'render_target' and 'window'.
30694 Call 'repaint_callback'.
30695 (grub_gfxterm_cls): Likewise.
30696 (grub_gfxterm_refresh): Use 'window'.
30697 (grub_gfxterm_set_repaint_callback): New function.
30698 (grub_gfxterm_background_image_cmd): Use 'window'.
30699 (grub_gfxterm_get_term): New function.
30700 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30701
30702 2010-02-06 Colin D Bennett <colin@gibibit.com>
30703
30704 Bitmap scaling support.
30705
30706 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30707 (bitmap_scale_mod_SOURCES): New variable.
30708 (bitmap_scale_mod_CFLAGS): Likewise.
30709 (bitmap_scale_mod_LDFLAGS): Likewise.
30710 * include/grub/bitmap_scale.h: New file.
30711 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30712 (background_image_cmd_options): New variable.
30713 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30714 (cmd): Rename and change type to ...
30715 (background_image_cmd_handle): ... this. All users updated.
30716 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30717 * video/bitmap_scale.c: New file.
30718
30719 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30720
30721 SDL support.
30722
30723 * Makefile.in (LIBSDL): New variable.
30724 (enable_grub_emu_sdl): Likewise.
30725 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30726 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30727 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30728 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30729 * util/sdl.c: New file.
30730
30731 2010-02-06 Colin D Bennett <colin@gibibit.com>
30732 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30733
30734 Double buffering support.
30735
30736 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30737 * include/grub/video.h: Update comment.
30738 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30739 New type.
30740 (grub_video_fb_doublebuf_blit_init): New prototype.
30741 * term/gfxterm.c (scroll_up): Support double buffering.
30742 (grub_gfxterm_refresh): Likewise.
30743 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30744 (grub_video_fb_doublebuf_blit_init): Likewise.
30745 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30746 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30747 'displayed_page', 'render_page' and 'update_screen'.
30748 (grub_video_vbe_fini): Free offscreen buffer.
30749 (doublebuf_pageflipping_commit): New function.
30750 (doublebuf_pageflipping_update_screen): Likewise.
30751 (doublebuf_pageflipping_init): Likewise.
30752 (double_buffering_init): Likewise.
30753 (grub_video_vbe_setup): Enable doublebuffering.
30754 (grub_video_vbe_swap_buffers): Implement.
30755 (grub_video_vbe_set_active_render_target): Handle double buffering.
30756 (grub_video_vbe_get_active_render_target): Likewise.
30757 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30758 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30759 (grub_video_vbe_enable_double_buffering): Likewise.
30760 (grub_video_vbe_swap_buffers): Use update_screen.
30761 (grub_video_set_mode): Use double buffering.
30762
30763 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30764
30765 * maintainance/gentrigtables.py: Remove.
30766 * lib/trig.c: Likewise.
30767
30768 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30769
30770 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30771 `trigtables.c'.
30772 (trigtables.c): New rule.
30773 (gentrigtables): Likewise.
30774 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30775
30776 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30777
30778 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30779 integer constants.
30780
30781 2010-02-06 Colin D Bennet <colin@gibibit.com>
30782
30783 Trigonometry support.
30784
30785 * include/grub/trig.h: New file.
30786 * lib/trig.c: Likewise.
30787 * maintainance/gentrigtables.py: Likewise.
30788 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30789 (trig_mod_SOURCES): New variable.
30790 (trig_mod_CFLAGS): Likewise.
30791 (trig_mod_LDFLAGS): Likewise.
30792
30793 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30794
30795 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30796 disk devices.
30797
30798 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30799
30800 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30801 error.
30802
30803 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30804
30805 * util/hostdisk.c (open_device): Don't use partition device when reading
30806 before the partition.
30807 (grub_util_biosdisk_read): Don't read from partition and before the
30808 partition in single operation.
30809 (grub_util_biosdisk_write): Don't write to partition and before the
30810 partition in single operation.
30811
30812 2010-02-03 Torsten Landschoff <torsten@debian.org>
30813
30814 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30815 last sectors.
30816
30817 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30818
30819 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30820 CDROM reads.
30821 (grub_biosdisk_write): Refuse to write to CDROM.
30822
30823 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30824
30825 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30826
30827 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30828
30829 * font/font.c (find_glyph): Check that bmp_idx is available before
30830 using it.
30831 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30832 with (font == NULL).
30833
30834 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30835
30836 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30837
30838 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30839
30840 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30841 * util/grub-script-check.c (getline): Fix empty lines case.
30842
30843 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30844
30845 * Makefile.in (check): Exit with fail status when one of the tests
30846 fails.
30847 * tests/example_functional_test.c (example_test): Fix reversed assert.
30848 * tests/example_unit_test.c (example_test): Likewise.
30849
30850 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30851
30852 * util/grub.d/10_linux.in: This script does not use any of the
30853 contents of gettext.sh, only the external command `gettext', so stop
30854 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30855 the same prefix as GRUB.)
30856 * util/grub.d/10_kfreebsd.in: Likewise.
30857
30858 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30859
30860 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30861 of the line.
30862
30863 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30864
30865 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30866 last sectors.
30867
30868 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30869
30870 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30871 having a 4KiB and not 32KiB buffer size.
30872
30873 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30874
30875 * util/hostfs.c: Include `<errno.h>'.
30876 (grub_hostfs_read): Handle errors from fseeko() and fread().
30877
30878 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30879
30880 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30881 loop when using read hooks on files whose size isn't sector-aligned.
30882
30883 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30884
30885 Remove unused parameter.
30886
30887 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30888 (grub_iso9660_open): Remove initialization of `data->length'.
30889
30890 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30891
30892 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30893 memleak conditions.
30894
30895 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30896
30897 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30898 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30899
30900 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30901
30902 * util/bin2h.c (usage): Fix warning (space after backslash).
30903
30904 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30905
30906 * font/font.c: Include `grub/fontformat.h.
30907 Remove font file format constants.
30908 (grub_font_load): Use the new macros.
30909 * include/grub/fontformat.h: New file.
30910 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30911 (write_font_pf2): Use the new macros.
30912
30913 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30914
30915 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30916 does.
30917
30918 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30919
30920 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30921
30922 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30923 (_start): Macroify `0x7F'.
30924
30925 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30926 (make_install_device): Use "(pxe)" as fallback prefix when booting
30927 via PXE.
30928
30929 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30930
30931 * configure.ac: Reset LIBS after check for libgcc symbols.
30932
30933 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30934
30935 * util/hostdisk.c (open_device): Add trailing newline to debug
30936 message.
30937
30938 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30939
30940 * configure.ac: Check for `limits.h'.
30941 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30942
30943 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30944
30945 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30946 capitalize error strings.
30947
30948 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30949
30950 * util/grub.d/10_hurd.in: Add a recovery mode.
30951
30952 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30953
30954 * configure.ac: Check for libgcc symbols with -nostdlib.
30955
30956 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30957
30958 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30959
30960 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30961
30962 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30963 stack since heap may be unavailable at that point.
30964 (grub_ofconsole_gotoxy): Likewise.
30965
30966 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30967
30968 * configure.ac: Check for _restgpr_14_x.
30969 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30970 and _savegpr_* prototypes.
30971
30972 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30973
30974 Use generic grub_reboot() for i386-efi.
30975
30976 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30977 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30978 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30979
30980 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30981
30982 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30983 presence of "prefix" variable as it breaks when normal.mod is
30984 embedded.
30985
30986 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30987
30988 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30989 stack since heap is unavailable at that point.
30990
30991 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30992
30993 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30994 (grub_freebsd_bootinfo): Rewritten.
30995 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30996
30997 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30998
30999 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31000
31001 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31002
31003 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31004 domain now.
31005
31006 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31007
31008 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31009 around for handling "/" to the correct fix. Fix a memory leak. Use
31010 xstrdup instead of strdup.
31011
31012 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31013
31014 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31015
31016 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31017
31018 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31019
31020 * font/font.c (struct grub_font): New member 'bmp_idx'.
31021 (font_init): Initialise 'bmp_idx'.
31022 (load_font_index): Fill 'bmp_idx'.
31023 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31024
31025 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31026
31027 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31028 unnecessary calls.
31029
31030 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31031
31032 Move context handling out of the kernel.
31033
31034 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31035 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31036 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31037 * conf/i386-efi.rmk: Likewise.
31038 * conf/i386-ieee1275.rmk: Likewise.
31039 * conf/i386-pc.rmk: Likewise.
31040 * conf/powerpc-ieee1275.rmk: Likewise.
31041 * conf/sparc64-ieee1275.rmk: Likewise.
31042 * conf/x86_64-efi.rmk: Likewise.
31043 * include/grub/env.h: Include grub/menu.h.
31044 (grub_env_var_type): Removed.
31045 (grub_env_var): Replaced field 'type' with 'global'.
31046 (grub_env_find): New prototype.
31047 (grub_env_context_open): Remove EXPORT_FUNC.
31048 (grub_env_context_close): Likewise.
31049 (grub_env_export): Likewise.
31050 (grub_env_set_data_slot): Removed.
31051 (grub_env_get_data_slot): Likewise.
31052 (grub_env_unset_data_slot): Likewise.
31053 (grub_env_unset_menu): New prototype.
31054 (grub_env_set_menu): Likewise.
31055 (grub_env_get_menu): Likewise.
31056 * include/grub/env_private.h: New file.
31057 * include/grub/normal.h (grub_context_init): New prototype.
31058 (grub_context_fini): Likewise.
31059 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31060 * normal/context.c (grub_cmd_export): ... to here.
31061 * kern/env.c: Include env_private.h.
31062 (HASHSZ): Moved to include/grub/env_private.h.
31063 (grub_env_context): Likewise.
31064 (grub_env_sorted_var): Likewise.
31065 (current_context): Renamed from this ...
31066 (grub_current_context): ...to this. 'static' removed. All users updated.
31067 (grub_env_find): Removed 'static'.
31068 (grub_env_context_open): Moved to normal/context.c.
31069 (grub_env_context_close): Likewise.
31070 (grub_env_export): Likewise.
31071 (mangle_data_slot_name): Removed.
31072 (grub_env_set_data_slot): Likewise.
31073 (grub_env_get_data_slot): Likewise.
31074 (grub_env_unset_data_slot): Likewise.
31075 * kern/main.c (grub_set_root_dev): Don't export root.
31076 It will be done later.
31077 (grub_main): Don't export prefix.
31078 It will be done later.
31079 * normal/context.c: New file.
31080 * normal/main.c (free_menu): Use grub_env_unset_menu.
31081 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31082 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31083 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31084 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31085
31086 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31087
31088 setpci support.
31089
31090 * commands/setpci.c: New file.
31091 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31092 (setpci_mod_SOURCES): New variable.
31093 (setpci_mod_CFLAGS): Likewise.
31094 (setpci_mod_LDFLAGS): Likewise.
31095
31096 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31097
31098 Byte-addressable PCI configuration space.
31099
31100 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31101 dword address.
31102 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31103 GRUB_PCI_REG_CACHELINE.
31104 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31105 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31106 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31107 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31108 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31109 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31110 grub_pci_make_address.
31111 (lock_rom_area): Likewise.
31112 * commands/lspci.c (grub_lspci_iter): Use macroses
31113 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31114 of grub_pci_make_address.
31115 * disk/ata.c (grub_ata_pciinit): Likewise.
31116 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31117 (GRUB_PCI_REG_VENDOR): Likewise.
31118 (GRUB_PCI_REG_DEVICE): Likewise.
31119 (GRUB_PCI_REG_COMMAND): Likewise.
31120 (GRUB_PCI_REG_STATUS): Likewise.
31121 (GRUB_PCI_REG_REVISION): Likewise.
31122 (GRUB_PCI_REG_CLASS): Likewise.
31123 (GRUB_PCI_REG_CACHELINE): Likewise.
31124 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31125 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31126 (GRUB_PCI_REG_BIST): Likewise.
31127 (GRUB_PCI_REG_ADDRESSES): Likewise.
31128 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31129 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31130 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31131 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31132 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31133 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31134 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31135 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31136 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31137 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31138 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31139 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31140 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31141 (GRUB_PCI_REG_MIN_GNT): Likewise.
31142 (GRUB_PCI_REG_MAX_LAT): Likewise.
31143 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31144 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31145 * video/efi_uga.c (find_framebuf): Likewise.
31146 * video/sm712.c (grub_video_sm712_setup): Likewise.
31147 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31148 space.
31149
31150 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31151
31152 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31153 can be reliably determined to be supported.
31154
31155 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31156
31157 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31158 that VESA is supported.
31159 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31160 supported.
31161
31162 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31163
31164 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31165
31166 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31167
31168 * util/misc.c (make_system_path_relative_to_its_root): Work around
31169 special-casing of "/", as previous incarnation of this routine did.
31170
31171 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31172
31173 Fix any-emu compilation.
31174
31175 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31176 * grub_bin2h_SOURCES: New variable.
31177
31178 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31179
31180 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31181
31182 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31183
31184 * util/grub.d/00_header.in: Fix handling of locale_dir.
31185
31186 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31187
31188 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31189 as possible unifont location (Gentoo).
31190 Reported by: Alexander Brüning
31191
31192 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31193
31194 Don't try to generate lists for kernel.img.
31195
31196 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31197 (pkglib_MODULES): Remove kernel.img.
31198 (kernel_img_EXPORTS): Removed.
31199 (kernel_img_RELOCATABLE): New variable.
31200 * conf/x86_64-efi.rmk: Likewise.
31201 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31202
31203 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31204
31205 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31206 grub_xasprintf or grub_snprintf.
31207 (grub_vsprintf): Likewise.
31208 (grub_snprintf): New proto.
31209 (grub_vsnprintf): Likewise.
31210 (grub_xasprintf): Likewise.
31211 (grub_xvasprintf): Likewise.
31212 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31213 (grub_sprintf): Removed.
31214 (grub_vsnprintf): New function.
31215 (grub_snprintf): Likewise.
31216 (grub_xvasprintf): Likewise.
31217 (grub_xasprintf): Likewise.
31218 (grub_vsprintf): Renamed to ...
31219 (grub_vsnprintf_real): ...this. New argument max_len.
31220
31221 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31222
31223 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31224 fix grub-script-check warning.
31225
31226 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31227
31228 * include/grub/font.h (grub_font_load): Fix prototype.
31229
31230 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31231
31232 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31233
31234 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31235
31236 * include/grub/x86_64/at_keyboard.h: New file.
31237
31238 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31239
31240 * loader/mips/linux.c: Include missing grub/i18n.h.
31241
31242 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31243
31244 * normal/menu.c (notify_execution_failure): Clarify error message.
31245
31246 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31247
31248 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31249 return value (and revert all return statements). Update users.
31250
31251 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31252
31253 * kern/device.c (grub_device_iterate): Allocate new part_ent
31254 structure based on sizeof (*p) rather than sizeof (p->next), to
31255 account for structure padding.
31256
31257 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31258 disk is NULL, which might happen for LVM physical volumes with no
31259 LVM signature.
31260
31261 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31262
31263 * loader/mips/linux.c (grub_cmd_initrd)
31264 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31265
31266 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31267
31268 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31269 (grub_video_video_init, grub_video_bitmap_init)
31270 (grub_font_manager_init, grub_term_gfxterm_init)
31271 (grub_at_keyboard_init): New extern declarations.
31272 (grub_machine_init): Initialize gfxterm and at_keyboard.
31273
31274 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31275
31276 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31277 `gfxterm.mod' into core image.
31278
31279 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31280 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31281 (kernel_img_FORMAT): Copy to ...
31282
31283 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31284 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31285 (kernel_img_FORMAT): ... here, and ...
31286
31287 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31288 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31289 (kernel_img_FORMAT): ... here.
31290
31291 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31292 and input (at_keyboard) terminals in kernel.
31293 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31294
31295 (pkglib_MODULES): Remove `pci.mod'.
31296 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31297 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31298 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31299 (at_keyboard_mod_LDFLAGS): Remove variables.
31300
31301 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31302
31303 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31304
31305 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31306
31307 * include/grub/mips/libgcc.h: Only export symbols for functions
31308 that libgcc provides.
31309
31310 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31311
31312 MIPS support.
31313
31314 * bus/bonito.c: New file.
31315 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31316 GRUB_PCI_NUM_DEVICES.
31317 * term/i386/pc/serial.c: Move to ...
31318 * term/serial.c: ... here. All users updated.
31319 * util/i386/pc/grub-mkimage.c: Move to ...
31320 * util/grub-mkrawimage.c: ... here. All users updated.
31321 * term/i386/pc/at_keyboard.c: Move to ...
31322 * term/at_keyboard.c: ... here. All users updated.
31323 * conf/mips-qemu-mips.rmk: New file.
31324 * conf/mips-yeeloong.rmk: Likewise.
31325 * conf/mips.rmk: Likewise.
31326 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31327 mipsel-qemu-mips.
31328 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31329 to port addresses.
31330 (grub_ata_pciinit): Support CS5536.
31331 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31332 * font/font_cmd.c (loadfont_command): Open file before passing it to
31333 grub_font_load.
31334 (pseudo_file_read): New function.
31335 (pseudo_file_close): Likewise.
31336 (pseudo_fs): New structure.
31337 (load_font_module): New function.
31338 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31339 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31340 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31341 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31342 * include/grub/i386/at_keyboard.h: Split into ...
31343 * include/grub/at_keyboard.h: ... this ...
31344 * include/grub/i386/at_keyboard.h: ... and this.
31345 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31346 New prototype.
31347 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31348 updated.
31349 (grub_elf64_size): Likewise.
31350 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31351 filename.
31352 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31353 * include/grub/i386/coreboot/serial.h: Rewritten.
31354 * include/grub/i386/ieee1275/serial.h: Include
31355 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31356 * include/grub/i386/pc/serial.h: Moved from here ...
31357 * include/grub/serial.h: ... to here. All users updated.
31358 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31359 (GRUB_PCI_NUM_BUS): Likewise.
31360 (GRUB_PCI_NUM_DEVICES): Likewise.
31361 (grub_pci_device_map_range): Add missing volatile keyword.
31362 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31363 * include/grub/mips/at_keyboard.h: New file.
31364 * include/grub/mips/cache.h: Likewise.
31365 * include/grub/mips/io.h: Likewise.
31366 * include/grub/mips/kernel.h: Likewise.
31367 * include/grub/mips/libgcc.h: Likewise.
31368 * include/grub/mips/pci.h: Likewise.
31369 * include/grub/mips/qemu-mips/boot.h: Likewise.
31370 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31371 * include/grub/mips/qemu-mips/loader.h: Likewise.
31372 * include/grub/mips/qemu-mips/memory.h: Likewise.
31373 * include/grub/mips/qemu-mips/serial.h: Likewise.
31374 * include/grub/mips/qemu-mips/time.h: Likewise.
31375 * include/grub/mips/relocator.h: Likewise.
31376 * include/grub/mips/time.h: Likewise.
31377 * include/grub/mips/types.h: Likewise.
31378 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31379 * include/grub/mips/yeeloong/boot.h: Likewise.
31380 * include/grub/mips/yeeloong/kernel.h: Likewise.
31381 * include/grub/mips/yeeloong/loader.h: Likewise.
31382 * include/grub/mips/yeeloong/memory.h: Likewise.
31383 * include/grub/mips/yeeloong/pci.h: Likewise.
31384 * include/grub/mips/yeeloong/serial.h: Likewise.
31385 * include/grub/mips/yeeloong/time.h: Likewise.
31386 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31387 * kern/elf.c (grub_elf32_size): New parameter. All users
31388 updated.
31389 (grub_elf64_size): Likewise.
31390 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31391 Load modules before saying "Welcome to GRUB!".
31392 Call grub_refresh after saying "Welcome to GRUB!".
31393 * kern/mips/cache.S: New file.
31394 * kern/mips/cache_flush.S: Likewise.
31395 * kern/mips/dl.c: Likewise.
31396 * kern/mips/init.c: Likewise.
31397 * kern/mips/qemu-mips/init.c: Likewise.
31398 * kern/mips/startup.S: Likewise.
31399 * kern/mips/yeeloong/init.c: Likewise.
31400 * kern/term.c (grub_putcode): Handle NULL terminal.
31401 (grub_getcharwidth): Likewise.
31402 (grub_getkey): Likewise.
31403 (grub_checkkey): Likewise.
31404 (grub_getkeystatus): Likewise.
31405 (grub_getxy): Likewise.
31406 (grub_getwh): Likewise.
31407 (grub_gotoxy): Likewise.
31408 (grub_cls): Likewise.
31409 (grub_setcolorstate): Likewise.
31410 (grub_setcolor): Likewise.
31411 (grub_getcolor): Likewise.
31412 (grub_refresh): Likewise.
31413 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31414 (write_jump): Add hatch nop.
31415 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31416 * lib/mips/setjmp.S: New file.
31417 * loader/mips/linux.c: Likewise.
31418 * term/i386/pc/at_keyboard.c: Move from here ...
31419 * term/at_keyboard.c: ... to here.
31420 * term/i386/pc/serial.c: Moved from here ...
31421 * term/serial.c: ... to here. All users updated.
31422 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31423 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31424 (serial_translate_key_sequence): Avoid deadlock.
31425 (grub_serial_getkey): Handle backspace.
31426 (grub_serial_putchar): Fix newline handling.
31427 * util/i386/pc/grub-mkimage.c: Move from here ...
31428 * util/grub-mkrawimage.c: ... to here. All users updated.
31429 (generate_image): New parameters 'font_path' and 'format'.
31430 Support embedding font.
31431 Use grub_host_to_target* instead of grub_cpu_to_le*.
31432 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31433 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31434 (options): New option "--font".
31435 (usage): Likewise.
31436 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31437 (main): Handle "--font".
31438 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31439 (grub_virtual_screen_setup): Set bg_color_display.
31440 (redraw_screen_rect): Use bg_color_display instead of incorrect
31441 bg_color.
31442 (grub_gfxterm_cls): Likewise.
31443 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31444 Support embedding config file.
31445 (add_segments): Likewise.
31446 (options): New option "--config".
31447 (main): Handle "--config".
31448 * video/sm712.c: New file.
31449
31450 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31451
31452 Fix parallel builds.
31453
31454 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31455 font.c depend on ascii.h).
31456
31457 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31458
31459 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31460
31461 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31462
31463 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31464 By default: disabled.
31465 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31466 parameter.
31467
31468 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31469
31470 * font/font.c: Update copyright years.
31471 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31472
31473 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31474
31475 * font/font.c: Include `ascii.h'.
31476 (ASCII_BITMAP_SIZE): New macro.
31477 (ascii_font_glyph): Define.
31478 (ascii_glyph_lookup): New function.
31479 (grub_font_get_string_width): Change comment. If glyph not found, use
31480 ascii_glyph_lookup.
31481 (grub_font_get_glyph_with_fallback): If glyph not available returns
31482 ascii_glyph_lookup.
31483 * util/grub-mkfont.c (file_formats): New enum.
31484 (options): Add `ascii-bitmaps' new option.
31485 (usage): Add `asii-bitmaps' new option.
31486 (write_font_ascii_bitmap): New function.
31487 (write_font): Rename to ...
31488 (write_font_p2): ... this. Remove print_glyphs call.
31489 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31490 used. Call print_glyphs.
31491 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31492
31493 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31494
31495 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31496 (grub_bin2h_SOURCES): New variable.
31497 * util/bin2h.c: New file.
31498
31499 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31500
31501 * include/multiboot.h: Resynced with spec.
31502 * include/multiboot2.h: Likewise.
31503 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31504 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31505
31506 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31507
31508 * include/grub/term.h (grub_term_register_input,
31509 grub_term_register_output): Check return of terminal init()
31510 routines, and abort if errors are raised.
31511
31512 * commands/terminal.c: Update copyright year.
31513
31514 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31515
31516 * commands/terminal.c (grub_cmd_terminal_input)
31517 (grub_cmd_terminal_output): Check return of terminal init()
31518 routines, and abort if errors are raised.
31519
31520 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31521
31522 * include/grub/i386/bsd.h: Fix include pathes.
31523
31524 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31525
31526 Add missing *BSD copyright headers.
31527
31528 * include/grub/aout.h: Add BSD licence.
31529 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31530 * include/grub/i386/freebsd_linker.h: ... here,
31531 * include/grub/i386/freebsd_reboot.h: ... here,
31532 * include/grub/i386/netbsd_bootinfo.h: ... here,
31533 * include/grub/i386/netbsd_reboot.h: ... here,
31534 * include/grub/i386/openbsd_bootarg.h: ... here,
31535 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31536 licence to each file.
31537
31538 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31539
31540 * acinclude.m4: Remove `nop' assembly instruction; it's not
31541 implemented by all architectures.
31542
31543 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31544
31545 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31546 ELILO. This is no longer necessary.
31547
31548 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31549
31550 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31551
31552 * util/grub-script-check.c: grub-script-check tool.
31553 * conf/common.rmk: Make rules for grub-script-check.
31554
31555 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31556
31557 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31558 spotting it back in 2008. Shame on me for forgetting he did.
31559
31560 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31561
31562 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31563
31564 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31565 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31566 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31567 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31568 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31569 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31570
31571 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31572
31573 * include/grub/test.h: Add license header.
31574 * tests/example_functional_test.c: Likewise.
31575 * tests/example_unit_test.c: Likewise.
31576 * tests/lib/functional_test.c: Likewise.
31577 * tests/lib/test.c: Likewise.
31578 * tests/lib/unit_test.c: Likewise.
31579
31580 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31581
31582 Use flag-based instead of hook-based video mode selection and "auto"
31583 keyword.
31584
31585 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31586 (grub_video_set_mode): Changed prototype. All users updated.
31587 (grub_video_check_mode_flag): New inline function.
31588 * video/video.c (parse_modespec): New function.
31589 (grub_video_set_mode): Parse flags and keywords.
31590
31591 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31592
31593 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31594 fprintf call.
31595
31596 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31597
31598 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31599
31600 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31601
31602 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31603 string.
31604 * util/grub-emu.c (usage): Likewise.
31605 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31606 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31607 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31608 * util/i386/pc/grub-setup.c (usage): Likewise.
31609
31610 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31611
31612 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31613 the message.
31614 (grub_util_info): Likewise.
31615 (grub_util_error): Likewise.
31616 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31617 and/or new lines in `grub_util_warna', `grub_util_info',
31618 `grub_util_error' calls.
31619 * util/getroot.c: Likewise.
31620 * util/grub-editenv.c: Likewise.
31621 * util/grub-emu.c: Likewise.
31622 * util/grub-fstest.c: Likewise.
31623 * util/grub-mkdevicemap.c: Likewise.
31624 * util/grub-mkfont.c: Likewise.
31625 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31626 * util/grub-mkrelpath.c: Likewise.
31627 * util/grub-pe2elf.c: Likewise.
31628 * util/grub-probe.c: Likewise.
31629 * util/hostdisk.c: Likewise.
31630 * util/i386/efi/grub-mkimage.c: Likewise.
31631 * util/i386/pc/grub-mkimage.c: Likewise.
31632 * util/i386/pc/grub-setup.c: Likewise.
31633 * util/ieee1275/ofpath.c: Likewise.
31634 * util/mkisofs/eltorito.c: Likewise.
31635 * util/mkisofs/rock.c: Likewise.
31636 * util/mkisofs/write.c: Likewise.
31637 * util/raid.c: Likewise.
31638 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31639 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31640
31641 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31642
31643 Enable multiboot on non-pc.
31644
31645 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31646 multiboot.mod and multiboot2.mod to ...
31647 * conf/i386.rmk (pkglib_MODULES): ... here.
31648 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31649 Moved to ...
31650 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31651 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31652 Moved to ...
31653 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31654 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31655 Moved to ...
31656 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31657 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31658 Moved to ...
31659 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31660 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31661 relocator.mod.
31662 (ata_mod_SOURCES): Removed.
31663 (ata_mod_CFLAGS): Likewise.
31664 (ata_mod_LDFLAGS): Likewise.
31665 (relocator_mod_SOURCES): Removed.
31666 (relocator_mod_CFLAGS): Likewise.
31667 (relocator_mod_ASFLAGS): Likewise.
31668 (relocator_mod_LDFLAGS): Likewise.
31669 Include i386.mk.
31670 * include/grub/x86_64/multiboot.h: New file.
31671 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31672 Terminate EFI.
31673
31674 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31675
31676 Video multiboot support.
31677
31678 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31679 New prototype.
31680 * include/multiboot.h: Resynced with multiboot specification.
31681 * include/multiboot2.h: Likewise.
31682 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31683 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31684 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31685 (HAS_VGA_TEXT): Likewise.
31686 (accepts_video): New variable.
31687 (grub_multiboot_set_accepts_video): New function.
31688 (grub_multiboot_get_mbi_size): Account for video structures.
31689 (set_video_mode): New function.
31690 (retrieve_video_parameters): Likewise.
31691 (grub_multiboot_make_mbi): Fill video fields.
31692
31693 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31694
31695 Video driver ids.
31696
31697 * include/grub/video.h (grub_video_driver_id): New type.
31698 (grub_video_adapter): New member 'id'. All users updated.
31699 (grub_video_get_driver_id): New proto.
31700 * video/video.c (grub_video_get_driver_id): New function.
31701
31702 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31703
31704 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31705 `var=val'.
31706
31707 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31708
31709 * normal/cmdline.c (print_completion): Gettextizze.
31710
31711 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31712
31713 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31714
31715 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31716
31717 * gettext/gettext.c (grub_gettext_translate): Push and pop
31718 grub_errno.
31719 (grub_gettext_delete_list): Change comment style.
31720 * kern/err.c (grub_error): Gettextizze.
31721 (grub_fatal): Gettextizze.
31722
31723 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31724
31725 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31726 (grub_linux16_real_boot): ... this.
31727 * kern/i386/loader.S: Likewise.
31728 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31729 (grub_linux16_boot): New function. Switches to text mode and calls
31730 grub_linux16_real_boot().
31731
31732 * loader/i386/bsd.c: Include `<grub/video.h>'.
31733 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31734 text mode before calling grub_unix_real_boot().
31735
31736 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31737 (grub_multiboot_boot): Switch to text mode before calling
31738 grub_relocator32_boot().
31739
31740 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31741 (grub_chainloader_boot): Switch to text mode before calling
31742 grub_chainloader_real_boot().
31743
31744 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31745 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31746
31747 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31748 non-empty value.
31749
31750 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31751 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31752
31753 * util/grub.d/00_header.in: Define a "savedefault" function for use
31754 in menu entries.
31755 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31756
31757 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31758 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31759
31760 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31761 saved_entry if boot_once is unset.
31762 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31763 previous saved entry (i.e. grub-reboot).
31764
31765 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31766
31767 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31768
31769 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31770
31771 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31772 `var=val'.
31773 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31774
31775 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31776
31777 * util/grub-reboot.in: Fix --version output.
31778 * util/grub-set-default.in: Likewise.
31779
31780 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31781
31782 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31783 blocks.
31784
31785 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31786
31787 * util/grub.d/00_header.in: Quote the value assigned to `default',
31788 in case it contains spaces.
31789
31790 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31791
31792 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31793 `save_default_entry' call from the macosx case to the linux case.
31794
31795 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31796 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31797
31798 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31799 in `chosen' environment variable.
31800 * normal/menu_text.c (get_entry_number): Check if the variable
31801 matches the title of a menu entry.
31802 (run_menu): Pass menu to get_entry_number.
31803
31804 * util/grub-reboot.in: New file.
31805 * util/grub-set-default.in: New file.
31806 * conf/common.rmk (grub-reboot): New utility.
31807 (grub-set-default): New utility.
31808
31809 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31810 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31811 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31812 move it to `saved_entry' for the next boot. Load environment on
31813 initialisation.
31814 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31815 * util/grub.d/10_hurd.in: Likewise.
31816 * util/grub.d/10_linux.in (linux_entry): Likewise.
31817 * util/grub.d/10_windows.in: Likewise.
31818 * util/grub.d/30_os-prober.in: Likewise.
31819
31820 * util/grub-install.in: Create environment block.
31821 * util/i386/efi/grub-install.in: Likewise.
31822 * util/ieee1275/grub-install.in: Likewise.
31823 * util/sparc64/ieee1275/grub-install.in: Likewise.
31824
31825 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31826
31827 Unit testing framework for GRUB.
31828
31829 * Makefile.in: Test framework build rules for 'make check'.
31830 * conf/tests.rmk: Build rules for individual tests and framework.
31831
31832 * include/grub/test.h: Header file for whitebox tests.
31833 * tests/lib/functional_test.c: Framework support for whitebox
31834 functional tests.
31835 * tests/lib/test.c: Common whitebox testing code for unit and
31836 functional tests.
31837 * tests/lib/unit_test.c: Framework support for whitebox unit
31838 tests.
31839
31840 * tests/util/grub-shell-tester.in: Support utility for grub-script
31841 tests.
31842 * tests/util/grub-shell.in: Utility to execute grub-script
31843 commands in a Qemu instance.
31844
31845 * tests/example_functional_test.c: Example whitebox functional
31846 test.
31847 * tests/example_grub_script_test.in: Example grub-script test.
31848 * tests/example_scripted_test.in: Example scripted test.
31849 * tests/example_unit_test.c: Example whitebox unit test.
31850
31851 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31852
31853 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31854 Add loader/i386/multiboot_mbi.c.
31855 (multiboot2_mod_SOURCES): Likewise.
31856 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31857 (multiboot2_mod_SOURCES): Likewise.
31858 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31859 (grub_multiboot_make_mbi): Likewise.
31860 (grub_multiboot_free_mbi): Likewise.
31861 (grub_multiboot_init_mbi): Likewise.
31862 (grub_multiboot_add_module): Likewise.
31863 (grub_multiboot_set_bootdev): Likewise.
31864 * loader/i386/multiboot.c (mbi): Removed.
31865 (mbi_dest): Likewise.
31866 (alloc_mbi): New variable.
31867 (grub_multiboot_payload_size): Removed. All users updated.
31868 (grub_multiboot_pure_size): New variable.
31869 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31870 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31871 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31872 (grub_fill_multiboot_mmap): Likewise.
31873 (grub_multiboot_get_bootdev): Likewise.
31874 (grub_multiboot): Use multiboot_mbi functions.
31875 * loader/i386/multiboot_mbi.c: New file.
31876
31877 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31878
31879 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31880 it would result in module crash.
31881
31882 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31883
31884 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31885 (grub_ofconsole_getwh): Split to ...
31886 (grub_ofconsole_getwh): ... this.
31887 (grub_ofconsole_dimensions): ...and this.
31888 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31889
31890 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31891
31892 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31893
31894 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31895
31896 * loader/i386/pc/multiboot2.c: Removed stalled file.
31897
31898 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31899
31900 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31901 Reported by: Grégoire Sutre
31902
31903 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31904
31905 * util/misc.c (canonicalize_file_name): New function.
31906 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31907 instead of realpath().
31908
31909 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31910
31911 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31912 and make it clearer that it's optional. Based on confusion
31913 witnessed on IRC.
31914
31915 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31916
31917 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31918 in premature implicit newline.
31919
31920 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31921
31922 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31923 which resulted in garbled command line at the end of screen.
31924
31925 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31926
31927 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31928 initialization with similar approach as with other Linux loaders.
31929
31930 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31931
31932 Fix i386-ieee1275 build.
31933
31934 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31935 and grub_term_height() for video_{width,height} initialization.
31936
31937 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31938
31939 Fix grub-emu build.
31940
31941 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31942
31943 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31944 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31945
31946 Support for multiple terminals.
31947
31948 * Makefile.in (pkglib_DATA): terminal.lst.
31949 (terminal.lst): New target.
31950 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31951 (GRUB_MOD_INIT(handler)): Likewise.
31952 (GRUB_MOD_FINI(handler)): Likewise.
31953 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31954 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31955 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31956 (grub_cmd_sleep): Use grub_term_save_pos.
31957 * commands/terminal.c: New file.
31958 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31959 commands/terminal.c and lib/charset.c.
31960 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31961 (pkglib_MODULES): Add terminal.mod.
31962 (terminal_mod_SOURCES): New variable.
31963 (terminal_mod_CFLAGS): Likewise.
31964 (terminal_mod_LDFLAGS): Likewise.
31965 * genhandlerlist.sh: Don't handle terminals.
31966 * genmk.rb: Generate terminal-*.lst.
31967 * genterminallist.sh: New file.
31968 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31969 (grub_is_valid_utf8): Likewise.
31970 (grub_utf8_to_ucs4_alloc): Likewise.
31971 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31972 (grub_menu_register_viewer): Changed argument.
31973 (grub_menu_try_text): New proto.
31974 (grub_gfxmenu_try_hook): New declaration.
31975 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31976 (grub_menu_init_page): Additional argument term.
31977 (grub_normal_init_page): Likewise.
31978 (grub_cmdline_get): Arguments simplified.
31979 (grub_utf8_to_ucs4_alloc): Removed.
31980 (grub_print_ucs4): Additional argument term.
31981 (grub_getstringwidth): Likewise.
31982 (grub_print_message_indented): Likewise.
31983 (grub_menu_text_register_instances): New proto.
31984 (grub_show_menu): Likewise.
31985 (read_terminal_list): Likewise.
31986 (grub_set_more): Likewise.
31987 * include/grub/parser.h: Include handler.h.
31988 * include/grub/reader.h: Rewritten.
31989 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31990 (GRUB_TERM_WIDTH): Changed to function.
31991 (GRUB_TERM_HEIGHT): Likewise.
31992 (GRUB_TERM_BORDER_WIDTH): Likewise.
31993 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31994 (GRUB_TERM_NUM_ENTRIES): Likewise.
31995 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31996 (GRUB_TERM_CURSOR_X): Likewise.
31997 (grub_term_input_class): Likewise.
31998 (grub_term_output_class): Likewise.
31999 (grub_term_outputs_disabled): New declaration.
32000 (grub_term_inputs_disabled): Likewise.
32001 (grub_term_outputs): Likewise.
32002 (grub_term_inputs): Likewise.
32003 (grub_term_register_input): Rewritten.
32004 (grub_term_register_output): Likewise.
32005 (grub_term_unregister_input): Likewise.
32006 (grub_term_unregister_output): Likewise.
32007 (FOR_ACTIVE_TERM_INPUTS): New macro.
32008 (FOR_DISABLED_TERM_INPUTS): Likewise.
32009 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32010 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32011 * include/grub/terminfo.h: Add oterm argument to all protypes.
32012 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32013 Use grub_rescue_run.
32014 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32015 All users updated.
32016 * kern/reader.c: Removed. All users updated.
32017 * kern/rescue_reader.c (grub_rescue_init): Removed.
32018 (grub_rescue_reader): Likewise.
32019 (grub_register_rescue_reader): Likewise.
32020 (grub_rescue_run): New function based on kern/reader.c.
32021 * kern/term.c: Adapted for multiterm.
32022 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32023 (grub_is_valid_utf8): Likewise.
32024 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32025 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32026 right terminal.
32027 * loader/i386/linux.c (grub_linux_boot): Likewise.
32028 * normal/auth.c (grub_username_get): New function.
32029 (grub_auth_check_authentication): Use grub_username_get.
32030 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32031 * normal/color.c: Adapt for multiterm.
32032 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32033 (grub_normal_init_page): Additional argument term.
32034 (read_lists): Call read_terminal_lists.
32035 (grub_enter_normal_mode): Call grub_cmdline_run.
32036 Handle grub_normal_exit_level.
32037 (grub_cmd_normal): Make reentrant.
32038 (grub_cmd_normal_exit): New function.
32039 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32040 * normal/menu.c: Adapt for multiterm.
32041 * normal/menu_entry.c: Likewise.
32042 * normal/menu_text.c: Likewise.
32043 * normal/menu_viewer.c: Removed. All users updated.
32044 * normal/term.c: New file.
32045 * util/console.c: Change order of includes to workaround a bug in
32046 ncurses headers.
32047 * term/terminfo.c: New argument oterm on all exported functions.
32048 All users updated.
32049 * util/grub-editenv.c (grub_term_input_class): Removed.
32050 (grub_term_output_class): Likewise.
32051
32052 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32053
32054 Make loader output a bit more user-friendly.
32055
32056 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32057 is being loaded. Likewise for the Hurd.
32058
32059 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32060 that kernel of FreeBSD ${version} is being loaded.
32061
32062 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32063 grub_dprintf().
32064 (grub_cmd_initrd): Likewise.
32065 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32066 that Linux ${version} is being loaded. Likewise for initrd.
32067
32068 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32069
32070 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32071
32072 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32073
32074 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32075 (GRUB_MOD_INIT): Gettextizze.
32076 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32077 (GRUB_MOD_INIT): Gettextizze.
32078 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32079 (grub_cmd_linux): Capitalise Linux.
32080 (GRUB_MOD_INIT): Gettextizze.
32081 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32082 (grub_cmd_linux): Capitalise Linux.
32083 (GRUB_MOD_INIT): Gettextizze.
32084 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32085 (grub_cmd_linux): Capitalise Linux.
32086 (GRUB_MOD_INIT): Gettextizze.
32087 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32088 (GRUB_MOD_INIT): Gettextizze.
32089 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32090 (grub_cmd_linux): Capitalise Linux.
32091 (GRUB_MOD_INIT): Gettextizze.
32092 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32093 (grub_cpu_xnu_init): Gettextizze.
32094 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32095 (GRUB_MOD_INIT): Gettextizze.
32096 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32097 (GRUB_MOD_INIT): Gettextizze.
32098 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32099 (grub_linux_load64): Capitalise Linux.
32100 (GRUB_MOD_INIT): Gettextizze.
32101 * loader/xnu.c: Include `<grub/i18n.h>'.
32102 (GRUB_MOD_INIT): Gettextizze.
32103 * po/POTFILES: Add `loader/efi/appleloader.c',
32104 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32105 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32106 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32107 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32108 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32109 and `loader/xnu.c'.
32110
32111 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32112
32113 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32114
32115 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32116
32117 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32118 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32119 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32120
32121 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32122
32123 Reset Multiboot 2 support. New loader implements the draft in
32124 /branches/multiboot2 and shares as much code as possible with the
32125 production Multiboot 1 implementation.
32126
32127 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32128 * loader/multiboot2.c: Likewise.
32129 * loader/i386/multiboot_helper.S: Likewise.
32130 * include/multiboot2.h: Replace with latest version from the draft
32131 in /branches/multiboot2.
32132
32133 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32134 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32135 and `loader/multiboot2.c'.
32136 (pkglib_MODULES): Add `multiboot2.mod'.
32137 (multiboot2_mod_SOURCES): New variable.
32138 (multiboot2_mod_LDFLAGS): Likewise.
32139 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32140
32141 * conf/i386-pc.rmk: Likewise.
32142
32143 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32144 (multiboot_mod_SOURCES): Remove variable.
32145 (multiboot_mod_LDFLAGS): Likewise.
32146 (multiboot_mod_CFLAGS): Likewise.
32147
32148 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32149 `<multiboot2.h>' instead of `<multiboot.h>'.
32150 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32151 (MULTIBOOT_HEADER_MAGIC): New macros.
32152
32153 * loader/multiboot_loader.c (module_version_status): Remove variable.
32154 (find_multi_boot2_header): Remove function.
32155 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32156 logic. Always check for the Multiboot version we're compiling for.
32157 (grub_cmd_module_loader): Likewise.
32158 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32159 command instead of `multiboot'.
32160
32161 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32162
32163 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32164 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32165 all users.
32166
32167 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32168 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32169
32170 Fix breakage introduced with previous commit.
32171
32172 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32173 commands.
32174 * normal/handler.c (read_handler_list): Revert part of previous commit
32175 affecting this file.
32176 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32177 (grub_normal_execute): ... here.
32178
32179 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32180
32181 Merge prefix-redefinition-fix branch.
32182
32183 * normal/autofs.c (read_fs_list): Make function capable of being
32184 run multiple times, gracefuly replacing the previous data
32185 structures.
32186 * normal/dyncmd.c (read_command_list): Likewise.
32187 * normal/handler.c (read_handler_list): Likewise.
32188 * normal/main.c (read_lists): New function. Calls all the
32189 list reading functions.
32190 (grub_normal_execute): Use read_lists() instead of calling all
32191 list reading functions explicitly. Register read_lists() as a
32192 variable hook attached to ${prefix}.
32193
32194 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32195
32196 Merge crypto branch.
32197
32198 * Makefile.in (pkglib_DATA): Add crypto.lst.
32199 (crypto.lst): New target.
32200 * commands/hashsum.c: New file.
32201 * commands/password.c (check_password): Use grub_crypto_memcmp.
32202 * commands/password_pbkdf2.c: New file.
32203 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32204 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32205 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32206 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32207 -I$(srcdir)/lib/libgcrypt_wrap.
32208 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32209 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32210 password_pbkdf2.mod.
32211 (crypto_mod_SOURCES): New variable.
32212 (crypto_mod_CFLAGS): Likewise.
32213 (crypto_mod_LDFLAGS): Likewise.
32214 (hashsum_mod_SOURCES): New variable.
32215 (hashsum_mod_CFLAGS): Likewise.
32216 (hashsum_mod_LDFLAGS): Likewise.
32217 (pbkdf2_mod_SOURCES): New variable.
32218 (pbkdf2_mod_CFLAGS): Likewise.
32219 (pbkdf2_mod_LDFLAGS): Likewise.
32220 (password_pbkdf2_mod_SOURCES): New variable.
32221 (password_pbkdf2_mod_CFLAGS): Likewise.
32222 (password_pbkdf2_mod_LDFLAGS): Likewise.
32223 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32224 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32225 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32226 Include conf/gcry.rmk.
32227 * include/grub/auth.h: Rewritten.
32228 * include/grub/crypto.h: New file.
32229 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32230 * include/grub/normal.h (read_crypto_list): New prototype.
32231 * lib/crypto.c: New file.
32232 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32233 * lib/pbkdf2.c: Likewise.
32234 * normal/auth.c (grub_auth_strcmp): Removed.
32235 (grub_iswordseparator): Likewise.
32236 (grub_auth_strword): Likewise.
32237 (is_authenticated): Use grub_strword.
32238 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32239 and grub_strword. Pass entered password to authentication callback.
32240 * normal/crypto.c: New file.
32241 * normal/main.c: Call read_crypto_list.
32242 * util/grub-mkpasswd-pbkdf2.c: New file.
32243 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32244
32245 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32246
32247 Fix descent and ascent calculation.
32248
32249 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32250 (options): New option "asce".
32251 (usage): Likewise.
32252 (add_char): Ignore invalid glyphs for descent calculation.
32253 Calculate ascent from actual content.
32254 (print_glyphs): Use 'asce'.
32255 (write_font): Likewise. Allow ascent override.
32256 (main): Handle "asce" option.
32257
32258 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32259
32260 * kern/err.c: Include `<grub/i18n.h>'.
32261 (grub_print_error): Add full stop. Gettextizze.
32262 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32263 (grub_bsd_load_elf): Capitalise ELF.
32264 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32265 (grub_cmd_freebsd_module): Likewise.
32266 (grub_cmd_freebsd_module_elf): Likewise.
32267 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32268
32269 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32270
32271 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32272 * commands/search_file.c (HELP_MESSAGE): New macro.
32273 * commands/search_label.c (HELP_MESSAGE): Likewise.
32274 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32275 * po/POTFILES: Add `commands/search_file.c',
32276 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32277 `commands/search.c'.
32278
32279 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32280
32281 * config.rpath: Update from Gnulib.
32282
32283 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32284
32285 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32286
32287 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32288
32289 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32290
32291 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32292
32293 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32294 arguments to fread so that we get a return value in bytes, rather
32295 than something that will normally be rounded down to 0.
32296 Adjust error handling to avoid producing garbage when size_t is not
32297 the same size as long long.
32298
32299 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32300
32301 * util/mkisofs/write.c (padblock_write): Check return value of
32302 fread.
32303
32304 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32305
32306 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32307 floppy images now.
32308
32309 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32310
32311 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32312
32313 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32314 instead of manual alignment.
32315 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32316 verbose). Avoid attempts to read past end of the device
32317 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32318 but GRUB_DISK_CACHE_SIZE may exceed that).
32319
32320 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32321
32322 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32323 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32324 it to upper layer.
32325
32326 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32327
32328 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32329 New constant.
32330 (grub_efi_piwg_device_path): New structure
32331 (grub_efi_piwg_device_path_t): New type.
32332 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32333 (devpath_1): Transform to a structure. All users updated.
32334 (devpath_2): Likewise.
32335 (devpath_3): Likewise.
32336 (devpath_4): Likewise.
32337 (devpath_5): Likewise.
32338
32339 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32340
32341 * loader/efi/appleloader.c: Restored. Update all users.
32342
32343 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32344
32345 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32346
32347 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32348 (struct boot_blocklist): Move from here ...
32349 * include/grub/i386/pc/boot.h [ASM_FILE]
32350 (struct grub_boot_blocklist): ... to here. Update all users.
32351 (setup): Only initialize `start' member of `first_block'
32352 structure. Add assert() calls to verify the other members.
32353
32354 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32355 (generate_image): Fix broken blocklist length initialization.
32356 Add assert() call to verify blocklist `segment' field.
32357
32358 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32359
32360 * loader/efi/appleloader.c: Remove. Update all users.
32361
32362 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32363
32364 * boot/i386/pc/boot.S: Update copyright year.
32365 * boot/i386/pc/cdboot.S: Likewise.
32366 * boot/i386/pc/diskboot.S: Likewise.
32367 * boot/i386/pc/lnxboot.S: Likewise.
32368 * boot/i386/pc/pxeboot.S: Likewise.
32369 * bus/pci.c: Likewise.
32370 * commands/cmp.c: Likewise.
32371 * commands/help.c: Likewise.
32372 * commands/hexdump.c: Likewise.
32373 * commands/i386/pc/halt.c: Likewise.
32374 * commands/i386/pc/play.c: Likewise.
32375 * commands/i386/pc/vbeinfo.c: Likewise.
32376 * commands/ls.c: Likewise.
32377 * commands/test.c: Likewise.
32378 * disk/dmraid_nvidia.c: Likewise.
32379 * disk/i386/pc/biosdisk.c: Likewise.
32380 * disk/ieee1275/nand.c: Likewise.
32381 * disk/ieee1275/ofdisk.c: Likewise.
32382 * disk/lvm.c: Likewise.
32383 * disk/raid.c: Likewise.
32384 * disk/raid6_recover.c: Likewise.
32385 * disk/scsi.c: Likewise.
32386 * fs/affs.c: Likewise.
32387 * fs/cpio.c: Likewise.
32388 * fs/ext2.c: Likewise.
32389 * fs/hfs.c: Likewise.
32390 * fs/iso9660.c: Likewise.
32391 * fs/ntfs.c: Likewise.
32392 * fs/sfs.c: Likewise.
32393 * fs/udf.c: Likewise.
32394 * fs/ufs.c: Likewise.
32395 * fs/xfs.c: Likewise.
32396 * gencmdlist.sh: Likewise.
32397 * genmk.rb: Likewise.
32398 * include/grub/disk.h: Likewise.
32399 * include/grub/efi/api.h: Likewise.
32400 * include/grub/efi/efi.h: Likewise.
32401 * include/grub/efi/pe32.h: Likewise.
32402 * include/grub/elf.h: Likewise.
32403 * include/grub/fs.h: Likewise.
32404 * include/grub/i386/at_keyboard.h: Likewise.
32405 * include/grub/i386/pc/memory.h: Likewise.
32406 * include/grub/i386/pc/vbe.h: Likewise.
32407 * include/grub/i386/pci.h: Likewise.
32408 * include/grub/i386/tsc.h: Likewise.
32409 * include/grub/ieee1275/ieee1275.h: Likewise.
32410 * include/grub/ntfs.h: Likewise.
32411 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32412 * include/grub/sparc64/libgcc.h: Likewise.
32413 * include/grub/symbol.h: Likewise.
32414 * include/grub/types.h: Likewise.
32415 * include/multiboot2.h: Likewise.
32416 * io/gzio.c: Likewise.
32417 * kern/device.c: Likewise.
32418 * kern/disk.c: Likewise.
32419 * kern/efi/efi.c: Likewise.
32420 * kern/efi/mm.c: Likewise.
32421 * kern/elf.c: Likewise.
32422 * kern/file.c: Likewise.
32423 * kern/i386/dl.c: Likewise.
32424 * kern/i386/pc/init.c: Likewise.
32425 * kern/i386/pc/startup.S: Likewise.
32426 * kern/ieee1275/ieee1275.c: Likewise.
32427 * kern/ieee1275/init.c: Likewise.
32428 * kern/main.c: Likewise.
32429 * kern/mm.c: Likewise.
32430 * kern/powerpc/dl.c: Likewise.
32431 * kern/sparc64/dl.c: Likewise.
32432 * kern/x86_64/dl.c: Likewise.
32433 * lib/hexdump.c: Likewise.
32434 * loader/efi/appleloader.c: Likewise.
32435 * loader/i386/ieee1275/linux.c: Likewise.
32436 * loader/i386/pc/chainloader.c: Likewise.
32437 * loader/i386/pc/linux.c: Likewise.
32438 * loader/i386/pc/multiboot2.c: Likewise.
32439 * loader/ieee1275/multiboot2.c: Likewise.
32440 * loader/multiboot2.c: Likewise.
32441 * loader/multiboot_loader.c: Likewise.
32442 * loader/powerpc/ieee1275/linux.c: Likewise.
32443 * normal/completion.c: Likewise.
32444 * normal/menu_entry.c: Likewise.
32445 * partmap/apple.c: Likewise.
32446 * util/grub.d/10_hurd.in: Likewise.
32447 * util/hostfs.c: Likewise.
32448 * video/readers/png.c: Likewise.
32449
32450 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32451
32452 * include/grub/misc.h (GNUC_PREREQ): New macro.
32453 (ATTRIBUTE_ERROR): New macro.
32454 * include/grub/list.h (grub_bad_type_cast_real): Use
32455 ATTRIBUTE_ERROR.
32456
32457 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32458
32459 * normal/menu_text.c (print_message): Change messages.
32460
32461 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32462
32463 * normal/menu_entry.c (store_completion): Gettextizze.
32464
32465 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32466
32467 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32468
32469 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32470
32471 * po/POTFILES: Sort correctly.
32472
32473 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32474
32475 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32476 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32477 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32478 full stop.
32479 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32480 summary. Gettextizze the strings.
32481 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32482 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32483 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32484 full stop.
32485 (GRUB_MOD_INIT): Remove command name from summary.
32486 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32487 summary.
32488 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32489 * term/i386/pc/serial.c (options): Add full stops.
32490 (GRUB_MOD_INIT): Remove command name from the summary.
32491
32492 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32493
32494 * commands/acpi.c: Gettextizze help strings and/or options. Include
32495 `grub/i18n.h' if needed.
32496 * commands/blocklist.c: Likewise.
32497 * commands/boot.c: Likewise.
32498 * commands/cat.c: Likewise.
32499 * commands/cmp.c: Likewise.
32500 * commands/configfile.c: Likewise.
32501 * commands/crc.c: Likewise.
32502 * commands/date.c: Likewise.
32503 * commands/echo.c: Likewise.
32504 * commands/efi/fixvideo.c: Likewise.
32505 * commands/efi/loadbios.c: Likewise.
32506 * commands/gptsync.c: Likewise.
32507 * commands/halt.c: Likewise.
32508 * commands/handler.c: Likewise.
32509 * commands/hdparm.c: Likewise.
32510 * commands/hexdump.c: Likewise.
32511 * commands/i386/cpuid.c: Likewise.
32512 * commands/i386/pc/drivemap.c: Likewise.
32513 * commands/i386/pc/halt.c: Likewise.
32514 * commands/i386/pc/pxecmd.c: Likewise.
32515 * commands/i386/pc/vbeinfo.c: Likewise.
32516 * commands/i386/pc/vbetest.c: Likewise.
32517 * commands/ieee1275/suspend.c: Likewise.
32518 * commands/keystatus.c: Likewise.
32519 * commands/loadenv.c: Likewise.
32520 * commands/ls.c: Likewise.
32521 * commands/lsmmap.c: Likewise.
32522 * commands/lspci.c: Likewise.
32523 * commands/memrw.c: Likewise.
32524 * commands/minicmd.c: Likewise.
32525 * commands/parttool.c: Likewise.
32526 * commands/password.c: Likewise.
32527 * commands/probe.c: Likewise.
32528 * commands/read.c: Likewise.
32529 * commands/reboot.c: Likewise.
32530 * commands/search.c: Likewise.
32531 * commands/sleep.c: Likewise.
32532 * commands/test.c: Likewise.
32533 * commands/true.c: Likewise.
32534 * commands/usbtest.c: Likewise.
32535 * commands/videotest.c: Likewise.
32536 * commands/xnu_uuid.c: Likewise.
32537 * disk/loopback.c: Likewise.
32538 * hello/hello.c: Likewise.
32539 * loader/i386/bsd.c: Likewise.
32540 * term/i386/pc/serial.c: Likewise.
32541 * po/POTFILES: Add new files.
32542
32543 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32544
32545 * term/i386/pc/at_keyboard.c
32546 (keyboard_controller_wait_untill_ready): Rename to ...
32547 (keyboard_controller_wait_until_ready): ... this. Update all users.
32548
32549 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32550
32551 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32552 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32553 string using string width.
32554 * normal/menu_text.c (grub_print_message_indented): Use
32555 grub_print_spaces and not print_spaces.
32556 (print_timeout): Likewise.
32557 (print_spaces): Move to...
32558 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32559
32560 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32561
32562 Import from Gnulib.
32563
32564 * gnulib/getdelim.c: New file.
32565 * gnulib/getline.c: Likewise.
32566
32567 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32568
32569 * include/grub/list.h (grub_assert_fail): Removed.
32570 (grub_bad_type_cast_real): New function.
32571 (grub_bad_type_cast): New macro.
32572 (GRUB_AS_LIST): Use grub_bad_type_cast.
32573 (GRUB_AS_LIST_P): Likewise.
32574 (GRUB_AS_NAMED_LIST): Likewise.
32575 (GRUB_AS_NAMED_LIST_P): Likewise.
32576 (GRUB_AS_PRIO_LIST): Likewise.
32577 (GRUB_AS_PRIO_LIST_P): Likewise.
32578 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32579
32580 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32581
32582 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32583 Fix syntax error.
32584
32585 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32586
32587 * configure.ac: Check for TARGET_CFLAGS initialization before we
32588 initialize it ourselves (sigh).
32589 Move a few modifications to TARGET_CFLAGS to be unconditional
32590 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32591 eh_frame)
32592
32593 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32594 * term/i386/pc/at_keyboard.c
32595 (keyboard_controller_wait_untill_ready): Likewise.
32596 (keyboard_controller_led): Rename `led_status' paramter to avoid
32597 name conflict.
32598
32599 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32600
32601 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32602 quotes.
32603
32604 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32605
32606 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32607
32608 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32609
32610 * normal/menu_text.c (grub_print_message_indented): Prevent
32611 past-the-end-of-array dereference.
32612
32613 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32614
32615 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32616 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32617
32618 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32619
32620 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32621 * normal/main.c (grub_normal_read_line): Remove a space from the
32622 default prompt.
32623
32624 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32625
32626 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32627 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32628 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32629 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32630 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32631 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32632 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32633
32634 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32635
32636 * video/readers/jpeg.c (cmd): Declare.
32637 (grub_cmd_jpegtest): Use `grub_command_t' type.
32638 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32639 Assign to `cmd'.
32640 (GRUB_MOD_FINI): Use `cmd' to unregister.
32641 * video/readers/png.c (cmd): Declare.
32642 (grub_cmd_pngtest): Use `grub_command_t' type.
32643 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32644 Assign to `cmd'.
32645 (GRUB_MOD_FINI): Use `cmd' to unregister.
32646 * video/readers/tga.c (cmd): Declare.
32647 (grub_cmd_tgatest): Use `grub_command_t' type.
32648 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32649 Assign to `cmd'.
32650 (GRUB_MOD_FINI): Use `cmd' to unregister.
32651
32652 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32653
32654 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32655 stops.
32656 * kern/corecmd.c (grub_register_core_commands): Likewise.
32657 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32658 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32659 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32660 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32661 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32662 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32663 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32664 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32665 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32666 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32667 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32668 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32669 * normal/handler.c (insert_handler): Likewise.
32670 * normal/main.c (GRUB_MOD_INIT): Likewise.
32671 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32672
32673 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32674
32675 * commands/help.c (grub_cmd_help): Print the command name before the
32676 summary.
32677 (GRUB_MOD_INIT): Remove command name from the summary.
32678 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32679 string as summary.
32680 * lib/arg.c (find_long): Print the command name before the summary.
32681 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32682 summary.
32683 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32684 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32685 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32686 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32687 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32688 * commands/date.c (GRUB_MOD_INIT): Likewise.
32689 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32690 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32691 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32692 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32693 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32694 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32695 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32696 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32697 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32698 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32699 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32700 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32701 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32702 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32703 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32704 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32705 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32706 * commands/password.c (GRUB_MOD_INIT): Likewise.
32707 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32708 * commands/read.c (GRUB_MOD_INIT): Likewise.
32709 * commands/search.c (GRUB_MOD_INIT): Likewise.
32710 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32711 * commands/test.c (GRUB_MOD_INIT): Likewise.
32712 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32713 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32714 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32715 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32716 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32717 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32718 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32719 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32720 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32721 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32722 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32723 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32724 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32725 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32726
32727 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32728
32729 Use search command for preliminar UUID search.
32730
32731 * commands/search.c: Split into ...
32732 * commands/search_wrap.c: ...this
32733 * commands/search.c: ...and this.
32734 * commands/search_file.c: New file.
32735 * commands/search_label.c: New file.
32736 * commands/search_uuid.c: New file.
32737 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32738 Add commands/search_wrap.c, commands/search_file.c,
32739 commands/search_label.c and commands/search_uuid.c.
32740 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32741 (search_mod_SOURCES): Set to commands/search_wrap.c.
32742 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32743 search_label.mod.
32744 (search_fs_file_mod_SOURCES): New variable.
32745 (search_fs_file_mod_CFLAGS): Likewise.
32746 (search_fs_file_mod_LDFLAGS): Likewise.
32747 (search_label_mod_SOURCES): Likewise.
32748 (search_label_mod_CFLAGS): Likewise.
32749 (search_label_mod_LDFLAGS): Likewise.
32750 (search_fs_uuid_mod_SOURCES): New variable.
32751 (search_fs_uuid_mod_CFLAGS): Likewise.
32752 (search_fs_uuid_mod_LDFLAGS): Likewise.
32753 (fs_file_mod_SOURCES): Removed.
32754 (fs_file_mod_CFLAGS): Likewise.
32755 (fs_file_mod_LDFLAGS): Likewise.
32756 (fs_uuid_mod_SOURCES): Removed.
32757 (fs_uuid_mod_CFLAGS): Likewise.
32758 (fs_uuid_mod_LDFLAGS): Likewise.
32759 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32760 Set to util/grub-install.in.
32761 * disk/fs_file.c: Removed.
32762 * disk/fs_uuid.c: Likewise.
32763 * include/grub/search.h: New file.
32764 * util/grub-install.in: Handle sparc64.
32765 Create and use load.cfg.
32766 * util/sparc64/ieee1275/grub-install.in: Removed.
32767
32768 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32769
32770 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32771 Ignore return status if CF is cleared.
32772 (grub_biosdisk_get_diskinfo_standard): Likewise.
32773
32774 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32775
32776 * term/i386/pc/at_keyboard.c
32777 (keyboard_controller_wait_untill_ready): New function.
32778 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32779 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32780 for keyboard polling, rather than duplicate the same loop. This
32781 saves a few bytes in code size.
32782
32783 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32784
32785 Support for (pxe[:server[:gateway]]) syntax and
32786 use environment variable for PXE.
32787
32788 * commands/i386/pc/pxecmd.c (options): Removed.
32789 (print_ip): Removed.
32790 (grub_cmd_pxe): Removed
32791 (grub_cmd_pxe_unload): New function.
32792 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32793 (grub_pxe_your_ip): Made static.
32794 (grub_pxe_default_server_ip): Likewise.
32795 (grub_pxe_default_gateway_ip): Likewise.
32796 (grub_pxe_blksize): Likewise.
32797 (parse_ip): New function.
32798 (grub_pxe_open): Support server and gateway specification.
32799 (grub_pxe_close): Free disk->data.
32800 (grub_pxefs_open): Use disk->data.
32801 (grub_pxefs_read): Likewise.
32802 (grub_env_write_readonly): New function.
32803 (set_mac_env): Likewise.
32804 (set_env_limn_ro): Likewise.
32805 (parse_dhcp_vendor): Likewise.
32806 (grub_pxe_detect): Set the environment variables.
32807 (set_ip_env): New function.
32808 (write_ip_env): Likewise.
32809 (grub_env_write_pxe_default_server): Likewise.
32810 (grub_env_write_pxe_default_gateway): Likewise.
32811 (grub_env_write_pxe_blocksize): Likewise.
32812 (GRUB_MOD_INIT(pxe)): Set environment variables.
32813 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32814 (grub_pxe_mac_addr_t): ... this. All users updated.
32815 (grub_pxe_your_ip): Removed.
32816 (grub_pxe_server_ip): Likewise.
32817 (grub_pxe_gateway_ip): Likewise.
32818 (grub_pxe_blksize): Likewise.
32819
32820 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32821
32822 * commands/help.c: Include `<grub/i18n.h>'.
32823 (grub_cmd_help): Gettextizze.
32824 (GRUB_MOD_INIT): Likewise.
32825 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32826 (GRUB_MOD_INIT): Gettextizze.
32827 * commands/search.c: Include `<grub/i18n.h>'.
32828 (options): Gettextizze.
32829 (GRUB_MOD_INIT): Gettextizze.
32830 * lib/arg.c: Include `<grub/i18n.h>'.
32831 (help_options): Gettextizze.
32832 (find_long): Likewise.
32833 (grub_arg_show_help): Likewise.
32834 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32835 (read_command_list): Gettextizze.
32836 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32837 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32838
32839 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32840
32841 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32842 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32843 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32844 (led_status): New variable.
32845 (keyboard_controller_led): New function.
32846 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32847 update led status for caps lock, num lock and scroll lock.
32848
32849 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32850
32851 * util/hostdisk.c (open_device): Fix a comment.
32852
32853 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32854
32855 * util/grub-install.in (host_os): New variable.
32856 * util/i386/efi/grub-install.in (host_os): Likewise.
32857
32858 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32859
32860 * util/mkisofs/write.c (padblock_write): Abort when given an
32861 excedingly large embed image, instead of silently truncating it.
32862
32863 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32864
32865 * include/multiboot.h: Indentation fixes.
32866
32867 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32868
32869 * include/multiboot.h (struct multiboot_aout_symbol_table)
32870 (struct multiboot_elf_section_header_table): New structure
32871 declarations (stolen from GRUB Legacy).
32872 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32873 table information.
32874
32875 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32876 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32877 type aliases.
32878
32879 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32880
32881 * include/multiboot.h: Make comments src2texi-friendly.
32882
32883 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32884
32885 For consistency with [multiboot]/docs/boot.S.
32886
32887 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32888 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32889 (MULTIBOOT_MAGIC2): Rename from this ...
32890 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32891
32892 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32893
32894 * include/multiboot.h: Remove `<grub/types.h>'.
32895 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32896 types. Update all users.
32897
32898 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32899
32900 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32901 `couldn't' and `can not' by `cannot'.
32902 * commands/i386/pc/drivemap.c: Likewise.
32903 * disk/ata.c: Likewise.
32904 * disk/ieee1275/nand.c: Likewise.
32905 * fs/affs.c: Likewise.
32906 * fs/fat.c: Likewise.
32907 * fs/hfs.c: Likewise.
32908 * fs/hfsplus.c: Likewise.
32909 * fs/iso9660.c: Likewise.
32910 * fs/jfs.c: Likewise.
32911 * fs/minix.c: Likewise.
32912 * fs/reiserfs.c: Likewise.
32913 * fs/sfs.c: Likewise.
32914 * fs/udf.c: Likewise.
32915 * fs/ufs.c: Likewise.
32916 * fs/xfs.c: Likewise.
32917 * loader/powerpc/ieee1275/linux.c: Likewise.
32918 * loader/sparc64/ieee1275/linux.c: Likewise.
32919 * util/grub-probe.c: Likewise.
32920 * util/misc.c: Likewise.
32921
32922 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32923
32924 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32925 grub_errno calls.
32926 * commands/acpi.c: Likewise.
32927 * commands/blocklist.c: Likewise.
32928 * commands/efi/loadbios.c: Likewise.
32929 * commands/i386/pc/drivemap.c: Likewise.
32930 * commands/loadenv.c: Likewise.
32931 * commands/memrw.c: Likewise.
32932 * commands/password.c: Likewise.
32933 * commands/videotest.c: Likewise.
32934 * disk/ata.c: Likewise.
32935 * disk/ata_pthru.c: Likewise.
32936 * disk/dmraid_nvidia.c: Likewise.
32937 * disk/ieee1275/nand.c: Likewise.
32938 * disk/ieee1275/ofdisk.c: Likewise.
32939 * disk/loopback.c: Likewise.
32940 * disk/lvm.c: Likewise.
32941 * disk/mdraid_linux.c: Likewise.
32942 * disk/raid.c: Likewise.
32943 * disk/raid6_recover.c: Likewise.
32944 * disk/scsi.c: Likewise.
32945 * efiemu/main.c: Likewise.
32946 * efiemu/mm.c: Likewise.
32947 * efiemu/pnvram.c: Likewise.
32948 * efiemu/symbols.c: Likewise.
32949 * font/font.c: Likewise.
32950 * fs/cpio.c: Likewise.
32951 * fs/hfsplus.c: Likewise.
32952 * fs/iso9660.c: Likewise.
32953 * fs/jfs.c: Likewise.
32954 * fs/minix.c: Likewise.
32955 * fs/ntfs.c: Likewise.
32956 * fs/ntfscomp.c: Likewise.
32957 * fs/reiserfs.c: Likewise.
32958 * fs/ufs.c: Likewise.
32959 * fs/xfs.c: Likewise.
32960 * gettext/gettext.c: Likewise.
32961 * include/grub/auth.h: Likewise.
32962 * kern/elf.c: Likewise.
32963 * kern/file.c: Likewise.
32964 * kern/ieee1275/init.c: Likewise.
32965 * kern/ieee1275/mmap.c: Likewise.
32966 * kern/ieee1275/openfw.c: Likewise.
32967 * kern/powerpc/dl.c: Likewise.
32968 * kern/sparc64/dl.c: Likewise.
32969 * lib/arg.c: Likewise.
32970 * loader/i386/bsd.c: Likewise.
32971 * loader/i386/bsdXX.c: Likewise.
32972 * loader/i386/efi/linux.c: Likewise.
32973 * loader/i386/efi/xnu.c: Likewise.
32974 * loader/i386/ieee1275/linux.c: Likewise.
32975 * loader/i386/linux.c: Likewise.
32976 * loader/i386/multiboot.c: Likewise.
32977 * loader/i386/pc/linux.c: Likewise.
32978 * loader/i386/pc/multiboot2.c: Likewise.
32979 * loader/i386/xnu.c: Likewise.
32980 * loader/ieee1275/multiboot2.c: Likewise.
32981 * loader/macho.c: Likewise.
32982 * loader/machoXX.c: Likewise.
32983 * loader/multiboot2.c: Likewise.
32984 * loader/multiboot_loader.c: Likewise.
32985 * loader/powerpc/ieee1275/linux.c: Likewise.
32986 * loader/sparc64/ieee1275/linux.c: Likewise.
32987 * loader/xnu.c: Likewise.
32988 * loader/xnu_resume.c: Likewise.
32989 * mmap/i386/pc/mmap.c: Likewise.
32990 * normal/menu_viewer.c: Likewise.
32991 * partmap/acorn.c: Likewise.
32992 * partmap/amiga.c: Likewise.
32993 * partmap/apple.c: Likewise.
32994 * script/lexer.c: Likewise.
32995 * term/gfxterm.c: Likewise.
32996 * term/i386/pc/serial.c: Likewise.
32997 * term/i386/pc/vga.c: Likewise.
32998 * term/ieee1275/ofconsole.c: Likewise.
32999 * term/terminfo.c: Likewise.
33000 * video/bitmap.c: Likewise.
33001 * video/efi_gop.c: Likewise.
33002 * video/efi_uga.c: Likewise.
33003 * video/fb/video_fb.c: Likewise.
33004 * video/i386/pc/vbe.c: Likewise.
33005 * video/readers/tga.c: Likewise.
33006 * video/video.c: Likewise.
33007
33008 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33009
33010 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33011 * commands/lspci.c: Likewise.
33012 * commands/probe.c: Likewise.
33013 * commands/xnu_uuid.c: Likewise.
33014 * conf/i386-coreboot.rmk: Likewise.
33015 * conf/i386-efi.rmk: Likewise.
33016 * conf/i386-ieee1275.rmk: Likewise.
33017 * conf/i386-pc.rmk: Likewise.
33018 * conf/powerpc-ieee1275.rmk: Likewise.
33019 * conf/sparc64-ieee1275.rmk: Likewise.
33020 * conf/x86_64-efi.rmk: Likewise.
33021 * fs/i386/pc/pxe.c: Likewise.
33022 * gettext/gettext.c: Likewise.
33023 * include/grub/efi/graphics_output.h: Likewise.
33024 * include/grub/i386/pc/memory.h: Likewise.
33025 * kern/env.c: Likewise.
33026 * kern/i386/qemu/startup.S: Likewise.
33027 * lib/i386/pc/biosnum.c: Likewise.
33028 * lib/i386/relocator.c: Likewise.
33029 * lib/i386/relocator_asm.S: Likewise.
33030 * lib/relocator.c: Likewise.
33031 * loader/i386/bsd.c: Likewise.
33032 * loader/i386/multiboot.c: Likewise.
33033 * loader/i386/pc/chainloader.c: Likewise.
33034 * loader/i386/xnu.c: Likewise.
33035 * loader/xnu.c: Likewise.
33036 * normal/main.c: Likewise.
33037 * normal/menu_text.c: Likewise.
33038 * util/getroot.c: Likewise.
33039 * util/grub-mkconfig_lib.in: Likewise.
33040 * util/grub.d/00_header.in: Likewise.
33041 * util/i386/pc/grub-mkimage.c: Likewise.
33042 * util/mkisofs/eltorito.c: Likewise.
33043 * util/mkisofs/exclude.h: Likewise.
33044 * util/mkisofs/hash.c: Likewise.
33045 * util/mkisofs/iso9660.h: Likewise.
33046 * util/mkisofs/joliet.c: Likewise.
33047 * util/mkisofs/mkisofs.c: Likewise.
33048 * util/mkisofs/mkisofs.h: Likewise.
33049 * util/mkisofs/multi.c: Likewise.
33050 * util/mkisofs/name.c: Likewise.
33051 * util/mkisofs/rock.c: Likewise.
33052 * util/mkisofs/tree.c: Likewise.
33053 * util/mkisofs/write.c: Likewise.
33054 * video/efi_gop.c: Likewise.
33055
33056 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33057
33058 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33059 size counting.
33060
33061 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33062
33063 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33064 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33065
33066 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33067
33068 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33069 (GRUB_MOD_INIT(memrw)): Update help line.
33070
33071 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33072
33073 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33074 Use grub_extcmd_t. All users updated.
33075 (options): New variable.
33076 (grub_cmd_read): Restructure for readability. Support "-v" option.
33077 (grub_cmd_write): Restructure for readability.
33078
33079 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33080
33081 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33082
33083 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33084
33085 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33086 with the actual contents of the correspondending make variable.
33087 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33088 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33089 specifying `*.lst' and `efiemu??.o'
33090
33091 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33092
33093 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33094 after function name.
33095 Noticed by Rene Engelhard <rene@debian.org>.
33096
33097 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33098
33099 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33100 (options): New variable.
33101 (iospace): Likewise.
33102 (grub_lspci_iter): List IO spaces if "-i" was given.
33103 (grub_cmd_lspci): Parse options.
33104 (GRUB_MOD_INIT(lspci)): Use extcmd.
33105 (GRUB_MOD_FINI(lspci)): Likewise.
33106
33107 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33108
33109 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33110 `function' keyword.
33111 Patch by Tony Mancill <tmancill@debian.org>.
33112
33113 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33114
33115 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33116 (grub_uhci_portstatus): Likewise.
33117 (grub_uhci_portstatus): Add necessary delay.
33118 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33119
33120 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33121
33122 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33123 (GRUB_MOD_INIT): Likewise.
33124 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33125 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33126 * commands/echo.c (options): Fix capitalizations and/or full stops.
33127 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33128 (enable_rom_area): Likewise.
33129 (GRUB_MOD_INIT): Likewise.
33130 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33131 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33132 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33133 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33134 * commands/hexdump.c (options): Likewise.
33135 * commands/i386/cpuid.c (options): Likewise.
33136 (GRUB_MOD_INIT): Likewise.
33137 * commands/i386/pc/drivemap.c (options): Likewise.
33138 (GRUB_MOD_INIT): Likewise.
33139 * commands/i386/pc/halt (options): Likewise.
33140 (GRUB_MOD_INIT): Likewise.
33141 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33142 * commands/i386/pc/pxecmd.c (options): Likewise.
33143 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33144 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33145 * commands/keystatus.c (options): Likewise.
33146 (GRUB_MOD_INIT): Likewise.
33147 * commands/loadenv.c (options): Likewise.
33148 * commands/ls.c (options): Likewise.
33149 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33150 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33151 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33152 * commands/parttool.c (helpmsg): Likewise.
33153 * commands/probe.c (options): Likewise.
33154 * commands/read.c (GRUB_MOD_INIT): Likewise.
33155 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33156 * commands/search.c (options): Likewise.
33157 * commands/sleep.c (options): Likewise.
33158 * commands/test.c (GRUB_MOD_INIT): Likewise.
33159 * commands/true.c (GRUB_MOD_INIT): Likewise.
33160 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33161 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33162 * lib/arg.c (help_options): Likewise.
33163 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33164 `$(XGETTEXT)'.
33165 * po/POTFILES: Add `commands/loadenv.c'.
33166
33167 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33168
33169 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33170 instead of specifying them explicit.
33171
33172 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33173
33174 * NEWS: Add grub-probe support for GNU/Hurd.
33175
33176 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33177
33178 * NEWS: gettext was added after 1.97.
33179
33180 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33181
33182 * util/mkisofs/msdos_partition.h: New file (based on
33183 include/grub/msdos_partition.h).
33184 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33185 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33186 (ld_options, main): Recognize --protective-msdos-label.
33187 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33188 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33189 (padblock_write): If `use_protective_msdos_label' is set, patch a
33190 protective DOS-style label in the output image.
33191
33192 * util/grub-mkrescue.in: Use --protective-msdos-label.
33193
33194 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33195
33196 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33197 boot.
33198
33199 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33200
33201 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33202 variables.
33203 (ld_options, main): Recognize `--embedded-boot'.
33204 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33205 declarations.
33206 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33207 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33208 (padblock_write): Likewise. Rewrite to support embedded boot image.
33209
33210 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33211 for BIOS-based disk boot instead of only ElTorito.
33212
33213 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33214
33215 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33216 build (not needed for bootstrap).
33217
33218 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33219
33220 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33221 from i386-pc build (not needed for bootstrap).
33222 Rewrite a pair of strings.
33223
33224 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33225
33226 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33227
33228 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33229
33230 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33231
33232 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33233
33234 * kern/env.c (grub_env_context_open): Mark exported variable for
33235 reexport.
33236
33237 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33238
33239 * kern/env.c (grub_env_export): Create nonexistent variables before
33240 exporting.
33241
33242 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33243
33244 * include/grub/auth.h: Include `<grub/i18n.h>'.
33245 (GRUB_GET_PASSWORD): Gettextizze string.
33246 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33247 menu_text.c.
33248 (grub_utf8_to_ucs4_alloc): Fix indentation.
33249 (grub_print_ucs4): Likewise.
33250 (grub_getstringwidth): Likewise.
33251 (print_message_indented): New declaration.
33252 * normal/auth.c: Include `<grub/i18n.h>'.
33253 (grub_auth_check_authentication): Gettexttize string.
33254 * normal/cmdline.c: Include `<grub/i18n.h>'.
33255 (grub_cmdline_get): Gettextizze.
33256 * normal/color.c: Include `<grub/i18n.h>'.
33257 (grub_parse_color_name_pair): Gettexttize strings.
33258 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33259 string (use `print_message_indented').
33260 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33261 `include/grub/normal.h'.
33262 (print_message_indented): Renamed to ...
33263 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33264 used in normal/main.c).
33265 (print_message): Use `grub_print_message_indented' instead of
33266 `print_message_indented'.
33267 (print_timeout): Likewise.
33268 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33269 (grub_normal_print_device_info): Gettexttize strings.
33270 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33271
33272 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33273
33274 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33275 of arguments. Return number of tokens and not arguments. All users
33276 updated.
33277
33278 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33279
33280 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33281 non-MSDOS paritions.
33282
33283 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33284
33285 * include/grub/types.h (UNUSED): Removed since it conflicts with
33286 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33287 Reported by Grégoire Sutre.
33288
33289 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33290
33291 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33292 (grub_print_ucs4_alloc): Likewise.
33293 (grub_getstringwidth): Likewise.
33294 * normal/main.c (grub_normal_init_page): Gettextize version string.
33295 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33296 (getstringwidth): Renamed to ...
33297 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33298 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33299 (grub_print_ucs4): Remove `static' qualifer (now used in
33300 normal/main.c).
33301 * po/POTFILES: Add normal/main.c.
33302
33303 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33304
33305 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33306 (print_message_indented): Add `margin_left' and `margin_right'
33307 parameters.
33308 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33309 strings.
33310 (print_timeout): Use `print_message_indented' to print the message.
33311 Deletes `second_stage' parameter.
33312 (run_menu): Update `print_timeout' calls.
33313
33314 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33315
33316 Fix console palette on OpenFirmware.
33317
33318 * term/ieee1275/ofconsole.c (MAX): Removed.
33319 (colors): Redone based on VGA palette.
33320 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33321 colors are supported.
33322 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33323
33324 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33325
33326 Fix potential EfiEmu double prepare.
33327
33328 * efiemu/main.c (prepared): New variable
33329 (grub_efiemu_unload): Set prepare to '0'.
33330 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33331
33332 set_virtual_address_map support.
33333
33334 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33335 prototype.
33336 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33337 prototype.
33338 (grub_efiemu_crc32): Likewise.
33339 (grub_efiemu_crc64): Likewise.
33340 (grub_efiemu_set_virtual_address_map): Likewise.
33341 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33342 New definition.
33343 (grub_autoefi_set_virtual_address_map): Likewise.
33344 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33345 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33346 Restructure flow to accomodate it.
33347 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33348 (grub_efiemu_crc): Recompute CRC32.
33349 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33350 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33351 * efiemu/symbols.c (relocated_handle): New variable.
33352 (grub_efiemu_free_syms): Free relocated_handle.
33353 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33354 (grub_efiemu_write_sym_markers): New function.
33355 (grub_efiemu_set_virtual_address_map): Likewise.
33356
33357 Newer XNU parameters.
33358
33359 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33360 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33361 (grub_xnu_fill_devicetree): New prototype.
33362 (grub_xnu_heap_real_start): New variable.
33363 * loader/xnu.c (get_name_ptr): New function.
33364 (grub_xnu_load_driver): Fill namelen and name.
33365
33366 64-bit xnu support.
33367
33368 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33369 and 'loader/macho64.c'.
33370 * conf/i386-pc.rmk: Likewise.
33371 * conf/x86_64-efi.rmk: Likewise.
33372 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33373 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33374 * include/grub/macho.h (grub_macho_segment64): New structure.
33375 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33376 (grub_macho_size32): ... to this.
33377 (grub_macho32_get_entry_point): Renamed from ...
33378 (grub_macho_get_entry_point32): ... to this.
33379 (grub_macho_contains_macho64): New prototype.
33380 (grub_macho_size64): Likewise.
33381 (grub_macho_get_entry_point64): Likewise.
33382 (grub_macho32_load): Renamed from ...
33383 (grub_macho_load32): ... to this.
33384 (grub_macho32_filesize): Renamed from ...
33385 (grub_macho_filesize32): ... to this.
33386 (grub_macho32_readfile): Renamed from ...
33387 (grub_macho_readfile32): ... to this.
33388 (grub_macho_filesize64): New prototype.
33389 (grub_macho_readfile64): Likewise.
33390 (grub_macho_parse32): Likewise.
33391 (grub_macho_parse64): Likewise.
33392 * loader/macho.c: Split into ...
33393 * loader/machoXX.c: ... and this. Replace 32 with XX.
33394 * loader/macho32.c: New file.
33395 * loader/macho64.c: Likewise.
33396 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33397 (grub_cmd_xnu_kernel): Make 32-bit only.
33398 (grub_cmd_xnu_kernel64): New function.
33399 (grub_xnu_load_driver): Support Mach-O 64.
33400 (grub_cmd_xnu_mkext): Likewise.
33401 * util/grub.d/30_os-prober.in (osx_entry): New function.
33402 Generate entries for 64-bit boot too.
33403
33404 Eliminate ad-hoc tree format in XNU and EfiEmu.
33405
33406 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33407 * efiemu/pnvram.c: Rewritten to use environment variables.
33408 All users updated.
33409
33410 Inline utf16_to_utf8.
33411
33412 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33413 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33414 All users updated.
33415 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33416
33417 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33418 * commands/usbtest.c (grub_usb_get_string): ... move here.
33419 (usb_print_str): Fix error handling.
33420 * include/grub/usb.h (grub_usb_get_string): Remove.
33421
33422 UTF-8 to UTF-16 transformation.
33423
33424 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33425 (charset_mod_SOURCES): New variable.
33426 (charset_mod_CFLAGS): Likewise.
33427 (charset_mod_LDFLAGS): Likewise.
33428 * include/grub/utf.h: New file.
33429 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33430
33431 Support for device properties.
33432
33433 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33434 (grub_xnu_devprop_device_header): Likewise.
33435 (grub_xnu_devprop_device_descriptor): Likewise.
33436 (grub_xnu_devprop_add_device): New prototype.
33437 (grub_xnu_devprop_remove_device): Likewise.
33438 (grub_xnu_devprop_remove_property): Likewise.
33439 (grub_xnu_devprop_add_property_utf8): Likewise.
33440 (grub_xnu_devprop_add_property_utf16): Likewise.
33441 (grub_cpu_xnu_init): Likewise.
33442 (grub_cpu_xnu_fini): Likewise.
33443 (grub_cpu_xnu_unload): Likewise.
33444 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33445 (property_descriptor): Likewise.
33446 (devices): New variable.
33447 (grub_xnu_devprop_remove_property): New function.
33448 (grub_xnu_devprop_add_device): Likewise.
33449 (grub_xnu_devprop_remove_device): Likewise.
33450 (grub_xnu_devprop_add_property): Likewise.
33451 (grub_xnu_devprop_add_property_utf8): Likewise.
33452 (grub_xnu_devprop_add_property_utf16): Likewise.
33453 (hextoval): Likewise.
33454 (grub_cpu_xnu_fill_devprop): Likewise.
33455 (grub_cmd_devprop_load): Likewise.
33456 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33457 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33458 (cmd_devprop_load): New variable.
33459 (grub_cpu_xnu_init): New function.
33460 (grub_cpu_xnu_fini): Likewise.
33461 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33462 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33463 (grub_cmd_xnu_devtree): Likewise.
33464 (hextoval): New function.
33465 (unescape): Likewise.
33466 (grub_xnu_fill_devicetree): Likewise.
33467
33468 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33469 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33470
33471 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33472
33473 Workaround for broken ATI VBE.
33474
33475 * video/i386/pc/vbe.c (last_set_mode): New variable.
33476 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33477 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33478 (grub_video_vbe_setup): Don't check for reserved flag.
33479
33480 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33481
33482 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33483 the `find' command.
33484
33485 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33486
33487 UUID support for HFS.
33488
33489 * fs/hfs.c (grub_hfs_uuid): New function.
33490 (grub_hfs_fs): New value .uuid.
33491 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33492
33493 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33494
33495 Fix a segfault with parsing unknown long options.
33496
33497 * util/grub-mkrelpath.c (options): Zero terminate it.
33498
33499 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33500
33501 * include/grub/misc.h (grub_puts): New declaration.
33502 (grub_puts_): Likewise.
33503 * kern/misc.c (grub_puts): New definition.
33504 (grub_puts_): Likewise.
33505
33506 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33507
33508 * util/grub-probe.c (probe): Improve error message.
33509
33510 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33511
33512 * loader/i386/multiboot_elfxx.c
33513 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33514 initialization.
33515
33516 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33517
33518 Relocator framework
33519
33520 * loader/i386/xnu_helper.S: Removed. All users updated.
33521 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33522 (relocator_mod_SOURCES): New variable.
33523 (relocator_mod_CFLAGS): Likewise.
33524 (relocator_mod_LDFLAGS): Likewise.
33525 (relocator_mod_ASFLAGS): Likewise.
33526 * conf/x86_64.rmk: Likewise.
33527 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33528 (grub_multiboot_payload_entry_offset): Likewise.
33529 (grub_multiboot_forward_relocator): Likewise.
33530 (grub_multiboot_forward_relocator_end): Likewise.
33531 (grub_multiboot_backward_relocator): Likewise.
33532 (grub_multiboot_backward_relocator_end): Likewise.
33533 (grub_multiboot_payload_eip): New variable.
33534 (grub_multiboot_payload_orig): Likewise.
33535 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33536 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33537 * include/grub/i386/memory.h
33538 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33539 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33540 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33541 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33542 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33543 * include/grub/i386/relocator.h: New file.
33544 * include/grub/x86_64/relocator.h: Likewise.
33545 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33546 (XNU_RELOCATOR): New macro.
33547 (grub_xnu_launcher_start): Remove.
33548 (grub_xnu_launcher_end): Likewise.
33549 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33550 (grub_xnu_heap_real_start): Remove.
33551 (grub_xnu_heap_start): Change to void *. All users updated.
33552 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33553 * lib/i386/relocator.c: New file.
33554 * lib/i386/relocator_asm.S: Likewise.
33555 * lib/i386/relocator_backward.S: Likewise.
33556 * lib/mips/relocator.c: Likewise.
33557 * lib/mips/relocator_asm.S: Likewise.
33558 * lib/relocator.c: Likewise.
33559 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33560 (entry): Removed.
33561 (playground): Likewise.
33562 (grub_multiboot_payload_orig): New variable.
33563 (grub_multiboot_payload_dest): Likewise.
33564 (grub_multiboot_payload_size): Likewise.
33565 (grub_multiboot_payload_eip): Likewise.
33566 (grub_multiboot_payload_esp): Likewise.
33567 (grub_multiboot_boot): Use grub_relocator32_boot.
33568 (grub_multiboot_unload): Free relocators.
33569 (grub_multiboot): Setup stack. Use relocators.
33570 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33571 (grub_multiboot_load_elfXX): Use relocators.
33572 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33573 (grub_multiboot_payload_size): Likewise.
33574 (grub_multiboot_payload_dest): Likewise.
33575 (grub_multiboot_payload_entry_offset): Likewise.
33576 (grub_multiboot_forward_relocator): Likewise.
33577 (grub_multiboot_backward_relocator): Likewise.
33578 (grub_multiboot_real_boot): Likewise.
33579 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33580 (grub_xnu_entry_point): Likewise.
33581 (grub_xnu_arg1): Likewise.
33582 (grub_xnu_stack): Likewise.
33583 (grub_xnu_launch): Removed.
33584 (grub_xnu_boot_resume): New function.
33585 (grub_xnu_boot): Use relocators.
33586 * loader/i386/xnu_helper.S: Removed.
33587 * loader/xnu.c (grub_xnu_heap_start): New variable.
33588 (grub_xnu_heap_size): Likewise.
33589 (grub_xnu_heap_malloc): Use relocators.
33590 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33591
33592 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33593
33594 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33595 anything.
33596
33597 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33598
33599 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33600 GRUB_ERR_NONE before calling grub_env_set.
33601
33602 2009-12-12 Robert Millan <rmh@aybabtu.com>
33603
33604 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33605 * genmk.rb (video): New variable.
33606 (CLEANFILES, VIDEOFILES): Add #{video}.
33607 (#{video}): New target rule.
33608 * genvideolist.sh: New file.
33609 * Makefile.in (pkglib_DATA): Add video.lst.
33610 (video.lst): New target rule.
33611 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33612 `video.lst'.
33613 * util/grub.d/30_os-prober.in: Replace `vbe' with
33614 ${GRUB_VIDEO_BACKEND}.
33615
33616 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33617
33618 * THANKS: Add David Miller.
33619
33620 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33621
33622 libpciaccess support.
33623
33624 * Makefile.in (LIBPCIACCESS): New variable.
33625 (enable_grub_emu_pci): Likewise.
33626 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33627 util/pci.c and commands/lspci.c.
33628 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33629 * configure.ac (grub-emu-pci): New option.
33630 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33631 (grub_pci_device_unmap_range): Likewise.
33632 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33633 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33634 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33635 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33636 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33637 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33638 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33639 * include/grub/pciutils.h: New file.
33640 * util/pci.c: Likewise.
33641
33642 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33643
33644 * util/misc.c: Don't include <errno.h> twice.
33645
33646 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33647
33648 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33649 name in an error message.
33650 (grub_biosdisk_rw): Likewise.
33651
33652 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33653
33654 Eliminate NTFS 4Gib barrier.
33655
33656 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33657 (read_run_data): Likewise.
33658 (grub_ntfs_read_run_list): Likewise.
33659 (grub_ntfs_read_block): Likewise.
33660 (grub_ntfs_iterate_dir): Likewise.
33661 (read_mft): Likewise.
33662 (read_data): Likewise.
33663 Use COM_LOG_LEN.
33664 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33665 to avoid 64-bit division
33666 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33667 (grub_ntfs_rlst): Use grub_disk_addr_t.
33668
33669 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33670
33671 Eliminate grub-fstest 4Gib barrier.
33672
33673 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33674 (read_file): Fix error reporting.
33675
33676 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33677
33678 Eliminate hexdump 4Gib barrier.
33679
33680 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33681 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33682
33683 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33684
33685 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33686 Fixes amarsh bug.
33687
33688 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33689
33690 Remove miscellaneous files in distclean target.
33691
33692 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33693
33694 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33695
33696 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33697 if they're already set. This resolves the conflict between my
33698 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33699 fixing the --grub-probe option again.
33700 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33701 change on 2009-10-06, so that we now once again source
33702 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33703
33704 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33705
33706 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33707 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33708 `util/devicemap.c'.
33709
33710 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33711
33712 * include/grub/misc.h (grub_printf_): New declaration.
33713 * kern/misc.c (grub_printf_): New definition.
33714 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33715 instead of `grub_printf' and `_'.
33716 * normal/menu_entry.c (store_completion): Likewise.
33717 (run): Likewise.
33718 (grub_menu_entry_run): Likewise.
33719 * normal/menu_text.c (grub_wait_after_message): Likewise.
33720 (notify_booting): Likewise.
33721 (notify_fallback): Likewise.
33722 (notify_execution_failure): Likewise.
33723
33724 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33725
33726 * configure.ac: Check for vasprintf.
33727 * util/misc.c (asprintf): Move allocation from here ...
33728 (vasprintf): ... to here. New function.
33729 (xasprintf): New function.
33730 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33731 prototypes.
33732 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33733 * util/grub-mkfont.c (write_font): Likewise.
33734 * util/grub-probe.c (probe): Likewise.
33735 * util/hostdisk.c (make_device_name): Likewise.
33736
33737 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33738
33739 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33740 anything even prefixed with 'cdrom' as a cdrom.
33741
33742 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33743
33744 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33745 mount points.
33746
33747 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33748
33749 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33750 grub_gettext_msg_list.
33751 (grub_gettext_gettranslation_from_position): Return const char *
33752 and not char *.
33753 (grub_gettext_translate): Add the translated strings into a list,
33754 returns from the list if existing there.
33755 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33756 (grub_gettext_delete_list): Delete the list.
33757 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33758 lang environment variable is changed.
33759 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33760
33761 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33762
33763 Rename kernel.mod to kernel.img.
33764
33765 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33766 (kernel_mod_EXPORTS): Rename to ...
33767 (kernel_img_EXPORTS): ... this.
33768 (kernel_mod_SOURCES): Rename to ...
33769 (kernel_img_SOURCES): ... this.
33770 (kernel_mod_HEADERS): Rename to ...
33771 (kernel_img_HEADERS): ... this. All users updated.
33772 (kernel_mod_CFLAGS): Rename to ...
33773 (kernel_img_CFLAGS): ... this.
33774 (kernel_mod_ASFLAGS): Rename to ...
33775 (kernel_img_ASFLAGS): ... this.
33776 (kernel_mod_LDFLAGS): Rename to ...
33777 (kernel_img_LDFLAGS): ... this.
33778 * conf/x86_64-efi.rmk: Likewise.
33779 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33780 (read_kernel_image): ... this. All users updated.
33781 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33782
33783 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33784
33785 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33786 (print_spaces): New function.
33787 (grub_print_ucs4): New function.
33788 (getstringwidth): New function.
33789 (print_message_indented): New function.
33790 (print_message): Gettexttize strings using print_message_indented.
33791 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33792 width.
33793 (get_entry_number): Gettextize and uses dynamic terminal width.
33794 (notify_booting, notify_fallback, notify_execution_failure):
33795 Gettextize.
33796 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33797 string.
33798 (run): Likewise.
33799 (grub_menu_entry_run): Likewise.
33800 * PO/POTFILES: Add normal/menu_entry.c.
33801
33802 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33803
33804 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33805
33806 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33807
33808 * util/grub-install.in: Install gettext .mo files.
33809 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33810
33811 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33812
33813 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33814 grub_dprintf.
33815
33816 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33817
33818 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33819 non-firmware-dependant one in realmode.S takes precedence.
33820
33821 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33822
33823 * commands/halt.c: Replace misc arch-specific headers with
33824 `<grub/misc.h>'.
33825 * commands/reboot.c: Likewise.
33826 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33827 `<grub/misc.h>'.
33828 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33829 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33830 (kernel_img_SOURCES): ... to here.
33831
33832 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33833 * include/grub/i386/pc/init.h: Likewise.
33834 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33835 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33836
33837 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33838
33839 * include/grub/i386/halt.h: Remove.
33840 * include/grub/i386/reboot.h: Likewise.
33841
33842 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33843
33844 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33845
33846 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33847 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33848 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33849 "progname.h"
33850 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33851 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33852 (usage): Add missing comma in printf.
33853
33854 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33855
33856 Use the same reboot approach on i386 coreboot and qemu as we do on
33857 BIOS.
33858
33859 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33860 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33861 * kern/i386/reboot.c: Remove.
33862 * include/grub/i386/reboot.h (grub_reboot): Export function.
33863 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33864 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33865 0xf000:0xfff0 instead of 0xffff:0x0000.
33866 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33867 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33868
33869 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33870
33871 Fix $srcdir != $objdir build.
33872
33873 * Makefile.in (po/%.po): Rewrite as ...
33874 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33875
33876 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33877
33878 Fix GNU/Hurd grub-install crash.
33879 * util/grub-probe.c (probe): Try to access `path' only when it is not
33880 NULL.
33881
33882 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33883
33884 Correct module naming.
33885
33886 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33887 (GRUB_MOD_INIT(efi_uga)): ... to this
33888 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33889 (GRUB_MOD_FINI(efi_uga)): ... to this
33890 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33891 (GRUB_MOD_INIT(efi_gop)): ... to this
33892 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33893 (GRUB_MOD_FINI(efi_gop)): ... to this
33894
33895 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33896
33897 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33898 translatable.
33899 (usage): Translate `arg' strings using gettext().
33900 Thanks to Jordi Mallach for the suggestion.
33901
33902 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33903
33904 GOP support. Based on patch from Bean
33905 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33906
33907 * video/efi_gop.c: New file.
33908 * include/grub/efi/graphics_output.h: Likewise.
33909 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33910 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33911 variables.
33912 * conf/x86_64-efi.rmk: Likewise.
33913
33914 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33915
33916 Rename efi_fb to efi_uga.
33917
33918 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33919 'efi_uga.mod'.
33920 (efi_fb_mod_SOURCES): Rename this ...
33921 (efi_uga_mod_SOURCES): ... to this.
33922 (efi_fb_mod_CFLAGS): Rename this ...
33923 (efi_uga_mod_CFLAGS): ... to this.
33924 (efi_fb_mod_LDFLAGS): Rename this ...
33925 (efi_uga_mod_LDFLAGS): ... to this.
33926 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33927 'efi_uga.mod'.
33928 (efi_fb_mod_SOURCES): Rename this ...
33929 (efi_uga_mod_SOURCES): ... to this.
33930 (efi_fb_mod_CFLAGS): Rename this ...
33931 (efi_uga_mod_CFLAGS): ... to this.
33932 (efi_fb_mod_LDFLAGS): Rename this ...
33933 (efi_uga_mod_LDFLAGS): ... to this.
33934 * video/efi_fb.c: Move this ...
33935 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33936
33937 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33938
33939 * po/README: New file. Explain our PO file workflow.
33940
33941 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33942
33943 * po/ChangeLog: Remove. Move relevant entries back to ...
33944 * ChangeLog: ... here.
33945 * po/ca.po: Remove (now handled by TLP).
33946 * po/id.po: Likewise.
33947 * po/zh_CN.po: Likewise.
33948 * Makefile.in (LINGUAS): Initialize in a way that supports
33949 empty set.
33950
33951 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33952
33953 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33954 reliing on po/LINGUAS.
33955 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33956 (po/%.po): ... this.
33957
33958 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33959
33960 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33961 (main): Use `program_name' instead of nonexistent `progname'.
33962
33963 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33964
33965 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33966 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33967
33968 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33969
33970 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33971 commit.
33972 * conf/i386-efi.rmk: Likewise.
33973 * conf/i386-ieee1275.rmk: Likewise.
33974 * conf/powerpc-ieee1275.rmk: Likewise.
33975 * conf/sparc64-ieee1275.rmk: Likewise.
33976 * conf/x86_64-efi.rmk: Likewise.
33977
33978 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33979
33980 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33981
33982 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33983
33984 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33985
33986 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33987
33988 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33989 (grub_mkdevicemap_SOURCES): New variable.
33990 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33991 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33992 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33993 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33994 (grub_mkdevicemap_SOURCES): Remove.
33995 * conf/i386-efi.rmk: Likewise.
33996 * conf/i386-ieee1275.rmk: Likewise.
33997 * conf/i386-pc.rmk: Likewise.
33998 * conf/powerpc-ieee1275.rmk: Likewise.
33999 * conf/sparc64-ieee1275.rmk: Likewise.
34000 * conf/x86_64-efi.rmk: Likewise.
34001 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34002 (usage): Fix strings to use `program_name'.
34003 (main): Initialize gettext.
34004 * util/grub-editenv.c: Likewise.
34005 * util/grub-emu.c: Likewise.
34006 * util/grub-fstest.c: Likewise.
34007 * util/grub-mkdevicemap.c: Likewise.
34008 * util/grub-mkfont.c: Likewise.
34009 * util/grub-mkrelpath.c: Likewise.
34010 * util/grub-pe2elf.c: Likewise.
34011 * util/grub-probe.c: Likewise.
34012 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34013 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34014 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34015
34016 * util/misc.c: Include `"progname.h"'.
34017 (progname): Remove variable.
34018 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34019
34020 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34021
34022 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34023 printf and print a newline after the menuentry header line.
34024 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34025
34026 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34027
34028 autoconf >= 2.60 support $(localedir).
34029
34030 * INSTALL: Note that autoconf 2.60 is required.
34031 * configure.ac (AC_PREREQ): Bump to 2.60.
34032 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34033 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34034
34035 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34036
34037 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34038 aclocal is run.
34039
34040 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34041
34042 * normal/main.c (grub_normal_read_line): Fix off-by-one
34043 buffer overflow.
34044
34045 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34046
34047 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34048 "parser.grub" in grub_command_execute() call.
34049
34050 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34051
34052 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34053 * conf/i386-efi.rmk: Likewise.
34054 * conf/i386-ieee1275.rmk: Likewise.
34055 * conf/i386-pc.rmk: Likewise.
34056 * conf/powerpc-ieee1275.rmk: Likewise.
34057 * conf/sparc64-ieee1275.rmk: Likewise.
34058 * conf/x86_64-efi.rmk: Likewise.
34059 * gettext/gettex.c: Include <grub/i18n.h>.
34060 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34061 here ...
34062 * include/grub/i18n.h: ... to here
34063 * include/grub/i18n.h: ... to here.
34064 * kern/misc.c: Include <grub/i18n.h>
34065 (grub_gettext_dummy): Move above user.
34066
34067 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34068
34069 * util/Makefile.in (install-local): Convert a `for' into a normal
34070 shell expansion.
34071
34072 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34073
34074 * autogen.sh: Add automake call.
34075 * config.guess: Remove.
34076 * config.sub: Likewise.
34077 * install-sh: Likewise.
34078
34079 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34080
34081 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34082
34083 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34084
34085 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34086 function to a normal shell `for'.
34087
34088 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34089
34090 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34091
34092 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34093
34094 * util/grub-mkrelpath.c: New file.
34095 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34096 (grub_mkrelpath_SOURCES): New variable.
34097 * include/grub/util/misc.h: New function prototype.
34098 * util/misc.c (make_system_path_relative_to_its_root): New function.
34099
34100 * util/grub-mkconfig_lib.in (bindir): New variable.
34101 (grub_mkrelpath): Likewise.
34102 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34103
34104 * util/probe.c (probe): Make the file path relative to its root.
34105 Change a info message to use the GRUB path. Enable again the
34106 check if we can read the file with GRUB facilities.
34107
34108 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34109 to its root.
34110
34111 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34112
34113 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34114 platform.
34115
34116 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34117
34118 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34119 strncmp().
34120
34121 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34122
34123 * util/getroot.c (grub_util_is_dmraid): New function.
34124 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34125 devices as normal ones, not as LVM.
34126
34127 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34128
34129 * conf/common.rmk: Add grub-gettext_lib target and updates
34130 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34131 LDFLAGS.
34132 * gettext/gettext.c: New file. (Reads mo files).
34133 * include/grub/file.h (grub_file_pread): New prototype.
34134 * include/grub/i18n.h (_): New prototype.
34135 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34136 prototypes.
34137 * kern/misc.c (grub_gettext_dummy): New function.
34138 * normal/menu_text.c: Include <grub/i18n.h>.
34139 * normal/menu_text.c (print_timeout): Gettexttize string.
34140 * normal/menu_text.c (print_message): Gettexttize string.
34141 * po/POTFILES: Add `normal/menu_text.c'.
34142 * po/ca.po: Add new translations.
34143 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34144 gettext module and defines locale_dir and lang in grub.cfg.
34145 * NEWS: Add gettext support.
34146
34147 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34148
34149 * util/hostdisk.c: Include `<grub/i18n.h>'.
34150 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34151 (make_device_name): Rewrite using asprintf.
34152 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34153 (find_system_device): If a device is not found, generate one just
34154 by reusing the OS path name.
34155 (read_device_map): Make it permissible for device.map not to exist.
34156
34157 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34158
34159 * script/sh/execute.c: Move from here ...
34160 * script/execute.c: ... to here. Update all users.
34161 * script/sh/function.c: Move from here ...
34162 * script/function.c: ... to here. Update all users.
34163 * script/sh/lexer.c: Move from here ...
34164 * script/lexer.c: ... to here. Update all users.
34165 * script/sh/main.c: Move from here ...
34166 * script/main.c: ... to here. Update all users.
34167 * script/sh/parser.y: Move from here ...
34168 * script/parser.y: ... to here. Update all users.
34169 * script/sh/script.c: Move from here ...
34170 * script/script.c: ... to here. Update all users.
34171
34172 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34173
34174 * configure.ac: Detect all `emu' platforms. Define
34175 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34176 --enable-grub-emu logic. Disable include/grub/machine
34177 symlink on `emu' platforms.
34178
34179 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34180 * gensymlist.sh.in: Likewise.
34181
34182 * include/grub/i386/coreboot/machine.h: Remove file.
34183 * include/grub/i386/efi/machine.h: Likewise.
34184 * include/grub/i386/ieee1275/machine.h: Likewise.
34185 * include/grub/i386/pc/machine.h: Likewise.
34186 * include/grub/i386/qemu/machine.h: Likewise.
34187 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34188 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34189 * include/grub/x86_64/efi/machine.h: Likewise.
34190
34191 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34192 * commands/halt.c: Likewise.
34193 * commands/reboot.c: Likewise.
34194 * include/grub/autoefi.h: Likewise.
34195 * include/grub/i386/at_keyboard.h: Likewise.
34196 * include/grub/i386/kernel.h: Likewise.
34197 * include/grub/i386/loader.h: Likewise.
34198 * include/grub/i386/pc/memory.h: Likewise.
34199 * kern/dl.c: Likewise.
34200 * kern/i386/coreboot/init.c: Likewise.
34201 * loader/i386/bsd.c: Likewise.
34202 * loader/i386/linux.c: Likewise.
34203 * loader/multiboot_loader.c: Likewise.
34204 * term/i386/pc/serial.c: Likewise.
34205 * term/usb_keyboard.c: Likewise.
34206
34207 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34208 `<grub/machine/machine.h>'
34209 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34210 * util/misc.c: Remove `<grub/machine/machine.h>' and
34211 `<grub/machine/time.h>'.
34212
34213 * Makefile.in (enable_grub_emu): Remove variable.
34214 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34215
34216 * conf/any-emu.rmk: New file.
34217 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34218 (grub_emu_init.c): Move from here ...
34219 * conf/any-emu.rmk: ... to here.
34220
34221 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34222 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34223 * conf/any-emu.rmk: ... to here.
34224
34225 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34226
34227 * include/grub/parser.h (grub_parser_register): Document need
34228 of `name' parameter.
34229 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34230 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34231 "sh" to "grub".
34232
34233 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34234
34235 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34236 `$(XGETTEXT)'.
34237 * include/grub/i18n.h (N_): New macro.
34238 * util/mkisofs/mkisofs.h: Likewise.
34239 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34240 around N_().
34241 (usage): Use gettext() to translate help strings when printing them.
34242
34243 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34244
34245 Based on patch from Bean
34246 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34247
34248 * video/efi_fb.c: New file.
34249 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34250 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34251 variables.
34252 * conf/x86_64-efi.rmk: Likewise.
34253
34254 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34255
34256 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34257 * util/i386/pc/grub-setup.c: Likewise.
34258
34259 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34260
34261 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34262 <hurd/fs.h>
34263 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34264 file_get_storage_info to implement grub_guess_root_device.
34265
34266 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34267
34268 * Makefile.in (target): Use make's builtin $(shell) function
34269 instead of calling directly $(SHELL) to create the locale directories,
34270 inside the $(foreach) function.
34271
34272 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34273
34274 * util/grub-mkrescue.in: Print an error and usage if output option
34275 has not been given.
34276
34277 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34278
34279 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34280 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34281 root and /boot are on different devices.
34282
34283 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34284
34285 Fix build for srcdir != objdir.
34286
34287 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34288 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34289 $(srcdir).
34290 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34291 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34292 reference for input.
34293
34294 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34295
34296 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34297 or hardlinking it). Remove -J option, Joliet is not compatible with
34298 multiple source directories.
34299
34300 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34301 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34302
34303 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34304 (process_input_dir): New function. Process an arbitrary input
34305 directory.
34306 Misc adjustments to support both "override mode" and system-wide mode.
34307
34308 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34309
34310 * configure.ac (UNIFONT_BDF): Rename to ...
34311 (FONT_SOURCE): ... this. Update all users.
34312
34313 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34314
34315 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34316 to the list of unifont files to look for.
34317
34318 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34319
34320 Patch from Joe Auricchio <jauricchio@gmail.com>
34321 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34322 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34323 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34324
34325 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34326
34327 * Makefile.in (install-local): Add a missing backslash.
34328
34329 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34330
34331 * include/grub/x86_64/io.h: New file.
34332
34333 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34334
34335 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34336 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34337 Include `"progname.h"'.
34338 (main): Initialize gettext.
34339 * util/i386/pc/grub-setup.c: Gettexttize.
34340 * util/i386/pc/grub-mkimage.c: Likewise.
34341
34342 * Makefile.in (po/*.po): Redefine as ...
34343 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34344
34345 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34346
34347 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34348
34349 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34350 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34351 (program_name): Remove.
34352 (main): Initialize gettext support.
34353 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34354 Include `<libintl.h>'.
34355 (_): New macro.
34356
34357 * util/mkisofs/eltorito.c: Gettexttize.
34358 * util/mkisofs/joliet.c: Likewise.
34359 * util/mkisofs/mkisofs.c: Likewise.
34360 * util/mkisofs/multi.c: Likewise.
34361 * util/mkisofs/rock.c: Likewise.
34362 * util/mkisofs/tree.c: Likewise.
34363 * util/mkisofs/write.c: Likewise.
34364
34365 * po/POTFILES: Update with new files.
34366
34367 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34368
34369 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34370 * util/mkisofs/iso9660.h: Likewise.
34371 * util/mkisofs/joliet.c: Likewise.
34372 * util/mkisofs/mkisofs.c: Likewise.
34373 * util/mkisofs/mkisofs.h: Likewise.
34374 * util/mkisofs/rock.c: Likewise.
34375 * util/mkisofs/tree.c: Likewise.
34376 * util/mkisofs/write.c: Likewise.
34377
34378 * util/mkisofs/eltorito.c (rcsid): Remove.
34379 * util/mkisofs/hash.c: Likewise.
34380 * util/mkisofs/joliet.c: Likewise.
34381 * util/mkisofs/name.c: Likewise.
34382 * util/mkisofs/rock.c: Likewise.
34383 * util/mkisofs/tree.c: Likewise.
34384 * util/mkisofs/write.c: Likewise.
34385
34386 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34387
34388 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34389 instead of static allocation.
34390 * util/mkisofs/match.h: Likewise.
34391
34392 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34393
34394 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34395 and `util/grub.d/10_linux.in'.
34396 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34397 translatable Shell files.
34398
34399 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34400
34401 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34402
34403 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34404
34405 * INSTALL: Document Automake is needed for bootstrap.
34406 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34407 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34408 Add gettext initialization.
34409 (kfreebsd_entry): Make menuentry output translatable.
34410
34411 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34412
34413 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34414 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34415 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34416 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34417 (LINGUAS): Auto-generate using `po/LINGUAS'.
34418 * po/LINGUAS: New file.
34419
34420 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34421
34422 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34423 other things).
34424 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34425 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34426 bindtextdomain() calls for gettext initialization.
34427
34428 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34429
34430 * gnulib/progname.c: New file (imported from Gnulib).
34431 * gnulib/progname.h: Likewise.
34432 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34433 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34434 (usage): Replace `progname' with `program_name'.
34435 (main): Use set_program_name() for program name initialization.
34436
34437 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34438
34439 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34440 from here ...
34441 * Makefile.in (CPPFLAGS): ... to here.
34442
34443 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34444
34445 * aclocal.m4: Move from here ...
34446 * acinclude.m4: ... to here.
34447 * autogen.sh: Add call to `aclocal'.
34448 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34449
34450 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34451
34452 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34453 (LINGUAS): New variable.
34454 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34455 (install-local): Install MO files.
34456 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34457 * include/grub/i18n.h: New file.
34458 * po/POTFILES: New file.
34459 * po/ca.po: New file.
34460 * util/grub.d/10_linux.in (bindir): New variable.
34461 Add gettext initialization.
34462 (linux_entry): Make menuentry output translatable.
34463 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34464 (usage): Make --help output translatable.
34465 (main): Initialize gettext.
34466
34467 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34468
34469 * import_gcry.py: New file (written by Vladimir with minor
34470 adjustments).
34471 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34472 ciphers.
34473 * INSTALL: Document that Python is required for bootstrap.
34474
34475 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34476
34477 Import ciphers from libgcrypt 1.4.4.
34478
34479 * lib/libgcrypt/cipher/ChangeLog
34480 * lib/libgcrypt/cipher/ac.c
34481 * lib/libgcrypt/cipher/arcfour.c
34482 * lib/libgcrypt/cipher/bithelp.h
34483 * lib/libgcrypt/cipher/blowfish.c
34484 * lib/libgcrypt/cipher/camellia-glue.c
34485 * lib/libgcrypt/cipher/camellia.c
34486 * lib/libgcrypt/cipher/camellia.h
34487 * lib/libgcrypt/cipher/cast5.c
34488 * lib/libgcrypt/cipher/cipher.c
34489 * lib/libgcrypt/cipher/crc.c
34490 * lib/libgcrypt/cipher/des.c
34491 * lib/libgcrypt/cipher/dsa.c
34492 * lib/libgcrypt/cipher/ecc.c
34493 * lib/libgcrypt/cipher/elgamal.c
34494 * lib/libgcrypt/cipher/hash-common.c
34495 * lib/libgcrypt/cipher/hash-common.h
34496 * lib/libgcrypt/cipher/hmac-tests.c
34497 * lib/libgcrypt/cipher/md.c
34498 * lib/libgcrypt/cipher/md4.c
34499 * lib/libgcrypt/cipher/md5.c
34500 * lib/libgcrypt/cipher/primegen.c
34501 * lib/libgcrypt/cipher/pubkey.c
34502 * lib/libgcrypt/cipher/rfc2268.c
34503 * lib/libgcrypt/cipher/rijndael-tables.h
34504 * lib/libgcrypt/cipher/rijndael.c
34505 * lib/libgcrypt/cipher/rmd.h
34506 * lib/libgcrypt/cipher/rmd160.c
34507 * lib/libgcrypt/cipher/rsa.c
34508 * lib/libgcrypt/cipher/seed.c
34509 * lib/libgcrypt/cipher/serpent.c
34510 * lib/libgcrypt/cipher/sha1.c
34511 * lib/libgcrypt/cipher/sha256.c
34512 * lib/libgcrypt/cipher/sha512.c
34513 * lib/libgcrypt/cipher/tiger.c
34514 * lib/libgcrypt/cipher/twofish.c
34515 * lib/libgcrypt/cipher/whirlpool.c
34516
34517 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34518
34519 Fix build for systems without error().
34520
34521 * gnulib/error.c: New file (imported from Gnulib).
34522 * gnulib/error.h: Likewise.
34523 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34524 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34525 (this variable is now used by error()).
34526
34527 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34528
34529 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34530 instead of relying that char is signed.
34531
34532 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34533
34534 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34535 blocksize different from specified.
34536 (grub_pxefs_read): Likewise.
34537
34538 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34539
34540 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34541
34542 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34543 (grub_ata_readwrite): Likewise. Update 2 format strings.
34544 (grub_atapi_read): Likewise.
34545
34546 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34547 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34548 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34549 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34550 (ata_mod_LDFLAGS): Move from here ...
34551 * conf/i386.rmk: ... to here ...
34552 * conf/x86_64-efi.rmk: ... and here.
34553 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34554 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34555
34556 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34557
34558 Relicense multiboot.h, with RMS' blessing.
34559
34560 * include/multiboot.h: Change to X11 license.
34561
34562 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34563
34564 Support --version in grub-mkisofs.
34565
34566 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34567 (OPTION_VERSION): New macro.
34568 (ld_options): Recognize --version.
34569 (usage): Move `program_name' from here ...
34570 (program_name): ... to here. Add `static' qualifier.
34571 (main): Recognize `OPTION_VERSION'.
34572
34573 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34574
34575 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34576 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34577
34578 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34579
34580 Fix help2man generation for mkisofs.
34581
34582 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34583 (usage): Send output to stdout (rather than stderr).
34584
34585 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34586
34587 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34588 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34589 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34590 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34591 (bin_SCRIPTS): Add `grub-mkfloppy'.
34592 (grub_mkfloppy_SOURCES): New variable.
34593
34594 * util/grub-mkrescue.in: New file.
34595 * util/i386/pc/grub-mkfloppy.in: New file.
34596
34597 * util/i386/coreboot/grub-mkrescue.in: Remove.
34598 * util/i386/pc/grub-mkrescue.in: Remove.
34599
34600 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34601
34602 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34603 from here ...
34604 * include/multiboot.h (struct multiboot_header): ... to here. Update
34605 all users.
34606 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34607 from here ...
34608 * include/multiboot.h (struct multiboot_info): ... to here. Update
34609 all users.
34610 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34611 from here ...
34612 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34613 Update all users.
34614 * include/grub/multiboot.h (struct grub_mod_list): Move
34615 from here ...
34616 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34617 Update all users.
34618
34619 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34620
34621 * include/multiboot2.h (multiboot_word): Rename from this ...
34622 (multiboot2_word): ... to this. Update all users.
34623 (multiboot_header): Rename from this ...
34624 (multiboot2_header): ... to this. Update all users.
34625 (multiboot_tag_header): Rename from this ...
34626 (multiboot2_tag_header): ... to this. Update all users.
34627 (multiboot_tag_start): Rename from this ...
34628 (multiboot2_tag_start): ... to this. Update all users.
34629 (multiboot_tag_name): Rename from this ...
34630 (multiboot2_tag_name): ... to this. Update all users.
34631 (multiboot_tag_module): Rename from this ...
34632 (multiboot2_tag_module): ... to this. Update all users.
34633 (multiboot_tag_memory): Rename from this ...
34634 (multiboot2_tag_memory): ... to this. Update all users.
34635 (multiboot_tag_unused): Rename from this ...
34636 (multiboot2_tag_unused): ... to this. Update all users.
34637 (multiboot_tag_end): Rename from this ...
34638 (multiboot2_tag_end): ... to this. Update all users.
34639
34640 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34641
34642 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34643 this platform we should support Multiboot1 first.
34644
34645 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34646 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34647 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34648
34649 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34650
34651 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34652 of write calls (converting them to fwrite() if they aren't already).
34653 (get_torito_desc): Likewise.
34654 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34655
34656 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34657
34658 * util/i386/pc/grub-install.in: Move from here ...
34659 * util/grub-install.in: ... to here. Update all users.
34660
34661 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34662
34663 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34664
34665 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34666
34667 Support for El Torito without floppy emulation.
34668
34669 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34670 (init_boot_catalog): Improve error handling.
34671 (get_torito_desc): Don't use floppy emulation unless requested by
34672 user. Patch boot information table when requested via
34673 `-boot-info-table'.
34674 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34675 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34676 (use_boot_info_table): New variables.
34677 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34678 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34679 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34680 `--eltorito-emul-floppy'.
34681 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34682 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34683 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34684 (use_boot_info_table, get_731): New prototypes.
34685 * util/mkisofs/write.c (get_731): New function.
34686
34687 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34688
34689 Fix the generation of the man page.
34690
34691 * util/pc/i386/grub-install.in: Source
34692 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34693
34694 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34695
34696 Large file support for grub-mkisofs.
34697
34698 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34699 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34700 (session_start): Upgrade type to `uint64_t'. Update all users.
34701 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34702 (struct directory_entry): Upgrade type of `starting_block' and
34703 `size' to `uint64_t'. Update all users.
34704 (struct deferred): Remove unused structure.
34705 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34706 Update all users.
34707 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34708 file is larger than `UINT32_MAX'.
34709 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34710 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34711 return value.
34712 (struct deferred_write): Upgrade type of `extent' and `size' to
34713 `uint64_t'. Update all users.
34714 (last_extent_written): Upgrade type to `uint64_t'. Update all
34715 users.
34716 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34717 Update all users. Upgrade type of `remain' to `int64_t' and
34718 `use' to `size_t'. Use error() to handle fread() errors.
34719 (write_files): Rely on write_one_file() rather than calling
34720 xfwrite() directly.
34721
34722 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34723
34724 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34725
34726 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34727
34728 * util/mkisofs/fnmatch.c: Remove.
34729 * util/mkisofs/getopt1.c: Likewise.
34730 * util/mkisofs/getopt.c: Likewise.
34731 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34732 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34733 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34734 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34735 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34736
34737 * configure.ac: Detect `mingw32msvc' host_os.
34738 Check for lstat(), getuid() and getgid().
34739
34740 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34741 instances of `u_char' with `uint8_t'.
34742
34743 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34744 [!HAVE_GETUID] (getuid): New function (stub).
34745 [!HAVE_GETGID] (getgid): Likewise.
34746 [!HAVE_LSTAT] (lstat): Likewise.
34747 [!S_IROTH] (S_IROTH): New macro (dummy).
34748 [!S_IRGRP] (S_IRGRP): Likewise.
34749
34750 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34751
34752 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34753 conditional expression).
34754
34755 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34756
34757 Import from Gnulib.
34758
34759 * gnulib/fnmatch.c: New file.
34760 * gnulib/fnmatch.h: Likewise.
34761 * gnulib/fnmatch_loop.c: Likewise.
34762 * gnulib/getopt.c: Likewise.
34763 * gnulib/getopt.h: Likewise.
34764 * gnulib/getopt1.c: Likewise.
34765 * gnulib/getopt_int.h: Likewise.
34766 * gnulib/gettext.h: Likewise.
34767
34768 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34769
34770 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34771 * normal/handler.c (read_handler_list): Likewise.
34772
34773 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34774
34775 Misc cleanup.
34776
34777 * kern/command.c (grub_register_command_prio): Use
34778 grub_zalloc() instead of explicitly zeroing data.
34779 * kern/list.c: Include `<grub/mm.h>'.
34780 (grub_named_list_find): Replace `0' with `NULL'.
34781 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34782 (fs_module_list): Change type to `grub_named_list_t'. Update all
34783 users.
34784 * normal/dyncmd.c (read_command_list): Add space between function
34785 call and parenthesis.
34786 * normal/handler.c (read_handler_list): Likewise.
34787
34788 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34789
34790 * normal/auth.c (punishment_delay): Moved from here ...
34791 (grub_auth_strcmp): ... to here (inside function).
34792
34793 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34794
34795 * include/grub/list.h (struct grub_named_list): Remove `const'
34796 qualifier from `name'.
34797 (struct grub_prio_list): Likewise.
34798
34799 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34800
34801 * normal/auth.c: Include `<grub/time.h>'.
34802 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34803
34804 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34805
34806 * normal/auth.c (punishment_delay): New variable.
34807 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34808 (grub_auth_check_authentication): Punish failed login attempts with
34809 an incremental (2^N) delay.
34810
34811 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34812
34813 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34814 path with $(srcdir).
34815
34816 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34817
34818 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34819
34820 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34821
34822 * util/i386/coreboot/grub-mkrescue.in: New file.
34823 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34824 variables.
34825
34826 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34827 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34828 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34829 requirements.
34830 * util/mkisofs/defaults.h: New file.
34831 * util/mkisofs/eltorito.c: Likewise.
34832 * util/mkisofs/exclude.h: Likewise.
34833 * util/mkisofs/fnmatch.c: Likewise.
34834 * util/mkisofs/getopt.c: Likewise.
34835 * util/mkisofs/getopt1.c: Likewise.
34836 * util/mkisofs/hash.c: Likewise.
34837 * util/mkisofs/include/fctldefs.h: Likewise.
34838 * util/mkisofs/include/mconfig.h: Likewise.
34839 * util/mkisofs/include/prototyp.h: Likewise.
34840 * util/mkisofs/include/statdefs.h: Likewise.
34841 * util/mkisofs/iso9660.h: Likewise.
34842 * util/mkisofs/joliet.c: Likewise.
34843 * util/mkisofs/match.c: Likewise.
34844 * util/mkisofs/match.h: Likewise.
34845 * util/mkisofs/mkisofs.c: Likewise.
34846 * util/mkisofs/mkisofs.h: Likewise.
34847 * util/mkisofs/multi.c: Likewise.
34848 * util/mkisofs/name.c: Likewise.
34849 * util/mkisofs/rock.c: Likewise.
34850 * util/mkisofs/tree.c: Likewise.
34851 * util/mkisofs/write.c: Likewise.
34852
34853 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34854
34855 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34856 being insecure.
34857
34858 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34859
34860 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34861 `grub-mkimage' (and use $0 when possible).
34862
34863 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34864
34865 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34866 error message for excessively large memory map.
34867
34868 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34869
34870 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34871 executable bit.
34872
34873 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34874
34875 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34876 message for coreboot users.
34877
34878 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34879
34880 Fix build with GNU gold.
34881
34882 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34883 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34884 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34885 link addresses.
34886 * aclocal.m4: Likewise.
34887
34888 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34889
34890 * configure.ac (AC_PREREQ): Bump to 2.59d.
34891 * INSTALL: Make it more clear when Autoconf and Ruby are
34892 needed and when to run `./autogen.sh'.
34893
34894 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34895
34896 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34897 OSes.
34898
34899 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34900
34901 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34902
34903 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34904
34905 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34906 giving it to GNU Mach.
34907
34908 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34909
34910 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34911 GNU partition number to get internal GRUB partition number.
34912
34913 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34914
34915 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34916 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34917
34918 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34919
34920 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34921 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34922 case.
34923
34924 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34925
34926 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34927
34928 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34929
34930 Fix build problem.
34931
34932 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34933 `-isystem=$(srcdir)/include'.
34934
34935 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34936
34937 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34938 checked (grub-install doesn't currently rely on it).
34939
34940 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34941
34942 Revert SVN r2660.
34943
34944 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34945 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34946 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34947 * conf/i386-ieee1275.rmk: Likewise.
34948 * conf/i386-pc.rmk: Likewise.
34949 * conf/powerpc-ieee1275.rmk: Likewise.
34950 * conf/sparc64-ieee1275.rmk: Likewise.
34951 * conf/x86_64-efi.rmk: Likewise.
34952
34953 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34954
34955 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34956
34957 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34958
34959 * include/grub/misc.h: Stop checking for APPLE_CC.
34960
34961 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34962
34963 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34964 doesn't cause an infinite call loop.
34965
34966 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34967
34968 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34969 strings.
34970
34971 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34972
34973 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34974 variable.
34975 * Makefile.in: Likewise.
34976
34977 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34978
34979 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34980
34981 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34982
34983 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34984
34985 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34986
34987 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34988
34989 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34990
34991 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34992 from here ...
34993 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34994
34995 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34996
34997 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34998 in $(MAKEINFO) invocation. This makes it clear in output that
34999 errors are being ignored.
35000
35001 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35002
35003 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35004 from here ...
35005 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35006 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35007 * conf/i386-ieee1275.rmk: Likewise.
35008 * conf/i386-pc.rmk: Likewise.
35009 * conf/powerpc-ieee1275.rmk: Likewise.
35010 * conf/sparc64-ieee1275.rmk: Likewise.
35011 * conf/x86_64-efi.rmk: Likewise.
35012
35013 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35014
35015 * util/grub-editenv.c (main): If only a command is given, use
35016 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35017 (usage): FILENAME is now optional and has a default.
35018
35019 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35020
35021 Improve grub-mkconfig performance when there are several menu
35022 entries on a single filesystem.
35023
35024 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35025 prepare_grub_to_access_device.
35026 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35027 * util/grub.d/30_os-prober.in: Likewise.
35028
35029 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35030
35031 * util/grub.d/10_freebsd.in: Remove.
35032 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35033 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35034
35035 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35036
35037 * docs/grub.cfg: Fix example usage of *BSD loaders.
35038
35039 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35040
35041 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35042 grub_util_error() call.
35043
35044 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35045
35046 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35047 `reserved_first_sector' member.
35048 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35049 `reserved_first_sector' to 1.
35050 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35051 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35052 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35053 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35054 filesystems which begin at first sector.
35055 (options): New option --skip-fs-probe.
35056 (main): Handle --skip-fs-probe and pass it to setup().
35057
35058 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35059
35060 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35061 (memset): Fix function prototype.
35062
35063 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35064 2009-10-25 Vasily Averin <vvs@parallels.com>
35065
35066 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35067 `dirent.direntlen == 0'.
35068
35069 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35070
35071 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35072 `cpio'.
35073 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35074
35075 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35076
35077 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35078 `__trampoline_setup' and `__ucmpdi2'.
35079 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35080 that libgcc provides.
35081
35082 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35083
35084 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35085 * include/grub/sparc64/libgcc.h (memset): Likewise.
35086 * include/grub/misc.h (memset, memcmp): New function prototypes.
35087
35088 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35089
35090 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35091 `cpio'.
35092 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35093
35094 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35095
35096 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35097 * docs/grub.cfg: Compensate for recent change in multiboot
35098 loader (since 2009-08-14 it won't pass filename to payload).
35099 * util/grub.d/10_hurd.in: Likewise.
35100
35101 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35102
35103 * config.guess: Update to latest version from config git
35104 repository.
35105 * config.sub: Likewise.
35106
35107 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35108
35109 Fix build on sparc64.
35110
35111 * configure.ac: Perform checks for libgcc symbols before
35112 adding `-nostdlib' to LDFLAGS.
35113
35114 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35115
35116 Let user specify OpenBSD root device.
35117
35118 * loader/i386/bsd.c (openbsd_root): New variable.
35119 (openbsd_opts): New option 'root'.
35120 (OPENBSD_ROOT_ARG): New macro.
35121 (grub_openbsd_boot): Use 'openbsd_root'.
35122 (grub_cmd_openbsd): Fill 'openbsd_root'.
35123
35124 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35125
35126 * NEWS: Misc adjustments.
35127
35128 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35129
35130 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35131
35132 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35133
35134 * configure.ac: Bump version to 1.97.
35135
35136 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35137
35138 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35139 -mno-3dnow on x86 architectures. Some toolchains enable these
35140 features by default, but they rely on registers that aren't enabled
35141 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35142
35143 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35144
35145 Make entry text a bit more readable.
35146
35147 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35148
35149 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35150
35151 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35152
35153 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35154
35155 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35156 operations.
35157
35158 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35159
35160 * configure.ac: Add missing dollar.
35161
35162 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35163
35164 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35165
35166 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35167 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35168 exports.
35169 * include/grub/sparc64/libgcc.h: Likewise. Use
35170 preprocessor conditionals.
35171
35172 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35173
35174 * conf/common.rmk (grub-dumpbios): Remove rule.
35175 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35176 * util/grub-dumpbios.in: Remove file.
35177
35178 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35179
35180 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35181 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35182
35183 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35184 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35185 users.
35186
35187 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35188 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35189 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35190 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35191 users.
35192
35193 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35194
35195 * term/tparm.c: Switch to GPLv3.
35196
35197 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35198
35199 * include/grub/i386/cpuid.h: Add header protection.
35200
35201 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35202
35203 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35204
35205 * include/grub/i386/cpuid.h: New file.
35206 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35207 (has_longmode): Rename to ...
35208 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35209 `static' attribute.
35210 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35211 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35212 on a CPU that doesn't implement AMD64 instruction set.
35213
35214 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35215
35216 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35217 that version.texi is rebuilt on version number changes.
35218
35219 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35220
35221 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35222 Fixes bug #27602.
35223
35224 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35225
35226 * util/i386/pc/grub-install.in: Source
35227 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35228 that the --grub-probe option will work.
35229 * util/sparc64/ieee1275/grub-install.in: Likewise.
35230
35231 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35232
35233 * configure.ac: Bump version to 1.97~beta4.
35234
35235 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35236
35237 Resync grub-mkdevicemap in x86_64-efi.
35238
35239 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35240 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35241 `util/devicemap.c'.
35242
35243 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35244
35245 * util/grub-editenv.c (create_envblk_file): Write new block with a
35246 .new suffix and then rename it into place, to ensure atomic
35247 creation.
35248
35249 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35250
35251 Do not automatically install headers.
35252
35253 * Makefile.in (include_DATA): Remove. Update all users.
35254
35255 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35256
35257 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35258 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35259
35260 * util/osdetect.lua: Remove.
35261 * script/lua/lauxlib.c: Likewise.
35262 * script/lua/ldebug.c: Likewise.
35263 * script/lua/grub_main.c: Likewise.
35264 * script/lua/lauxlib.h: Likewise.
35265 * script/lua/ldebug.h: Likewise.
35266 * script/lua/ltablib.c: Likewise.
35267 * script/lua/liolib.c: Likewise.
35268 * script/lua/lstrlib.c: Likewise.
35269 * script/lua/lualib.h: Likewise.
35270 * script/lua/ldo.c: Likewise.
35271 * script/lua/ldump.c: Likewise.
35272 * script/lua/ldo.h: Likewise.
35273 * script/lua/loslib.c: Likewise.
35274 * script/lua/lundump.c: Likewise.
35275 * script/lua/grub_lib.c: Likewise.
35276 * script/lua/ldblib.c: Likewise.
35277 * script/lua/lundump.h: Likewise.
35278 * script/lua/lmem.c: Likewise.
35279 * script/lua/grub_lib.h: Likewise.
35280 * script/lua/lmathlib.c: Likewise.
35281 * script/lua/lstate.c: Likewise.
35282 * script/lua/ltm.c: Likewise.
35283 * script/lua/lvm.c: Likewise.
35284 * script/lua/lmem.h: Likewise.
35285 * script/lua/lstate.h: Likewise.
35286 * script/lua/ltm.h: Likewise.
35287 * script/lua/ltable.c: Likewise.
35288 * script/lua/lvm.h: Likewise.
35289 * script/lua/llex.c: Likewise.
35290 * script/lua/lgc.c: Likewise.
35291 * script/lua/grub_lua.h: Likewise.
35292 * script/lua/loadlib.c: Likewise.
35293 * script/lua/lfunc.c: Likewise.
35294 * script/lua/lopcodes.c: Likewise.
35295 * script/lua/lparser.c: Likewise.
35296 * script/lua/ltable.h: Likewise.
35297 * script/lua/llex.h: Likewise.
35298 * script/lua/lgc.h: Likewise.
35299 * script/lua/lfunc.h: Likewise.
35300 * script/lua/lbaselib.c: Likewise.
35301 * script/lua/lopcodes.h: Likewise.
35302 * script/lua/lparser.h: Likewise.
35303 * script/lua/lzio.c: Likewise.
35304 * script/lua/linit.c: Likewise.
35305 * script/lua/lobject.c: Likewise.
35306 * script/lua/llimits.h: Likewise.
35307 * script/lua/lstring.c: Likewise.
35308 * script/lua/lzio.h: Likewise.
35309 * script/lua/lapi.c: Likewise.
35310 * script/lua/lcode.c: Likewise.
35311 * script/lua/lua.h: Likewise.
35312 * script/lua/lobject.h: Likewise.
35313 * script/lua/lstring.h: Likewise.
35314 * script/lua/lapi.h: Likewise.
35315 * script/lua/lcode.h: Likewise.
35316 * script/lua/luaconf.h: Likewise.
35317
35318 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35319
35320 * docs/grub.texi (Command-line and menu entry commands): Document
35321 date and echo commands.
35322
35323 2009-09-24 Pavel Roskin <proski@gnu.org>
35324
35325 * include/grub/kernel.h (struct grub_module_header): Remove
35326 `grub_module_header_types'. Make `type' unsigned. Make `size'
35327 32-bit on all platforms.
35328 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35329 8-bit field. Use grub_host_to_target32() for `size'.
35330 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35331 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35332 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35333
35334 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35335
35336 Fix "lost keypress" bug in at_keyboard.
35337
35338 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35339 Checks for readyness of input buffer (without flushing it).
35340 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35341 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35342
35343 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35344
35345 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35346 size check within GRUB_MACHINE_PCBIOS section.
35347
35348 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35349
35350 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35351 return value.
35352 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35353 KEYBOARD_ISREADY check.
35354 (grub_at_keyboard_checkkey): Rename to ...
35355 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35356 Remove gratuitous cast.
35357
35358 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35359
35360 * configure.ac: Call AC_PROG_MKDIR_P.
35361 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35362 version.texi in $(builddir) rather than $(srcdir).
35363 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35364 to makeinfo's @include search path.
35365
35366 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35367
35368 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35369
35370 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35371
35372 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35373 for `*.dpkg-new'.
35374
35375 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35376
35377 Build info documentation. Some code borrowed from Automake.
35378
35379 * configure.ac: Check for makeinfo.
35380 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35381 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35382 docs/version.texi.
35383 (MOSTLYCLEANFILES): Add vti.tmp.
35384 (docs/version.texi, docs/stamp-vti): Update automatically.
35385 (docs/grub.info): Build info documentation. Use --force and ignore
35386 errors for now.
35387 (all-local): Add $(INFOS).
35388 (install-local): Install info files.
35389 (uninstall): Uninstall info files.
35390 * docs/version.texi: Remove from revision control. This file is
35391 automatically generated on build now.
35392 * gendistlist.sh: Add `*.info'.
35393
35394 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35395
35396 * kern/term.c: Fix indentation.
35397
35398 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35399
35400 * util/hostdisk.c: Fix a comment.
35401
35402 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35403
35404 Fix regression introduced in r2539.
35405
35406 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35407 to 0xA1.
35408
35409 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35410
35411 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35412 os-prober. Under normal operation, it does not print anything to
35413 stderr; if it does, we need to debug it, and throwing away stderr
35414 makes that excessively difficult.
35415
35416 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35417
35418 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35419
35420 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35421
35422 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35423 AC_LANG_PROGRAM from autoconf.
35424 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35425 prototypes (fixes warning).
35426
35427 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35428 `--disable-werror' was used.
35429
35430 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35431
35432 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35433 uninitialized `lastaddr'.
35434
35435 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35436
35437 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35438
35439 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35440
35441 * commands/test.c (get_fileinfo): Return immediately if
35442 grub_fs_probe fails.
35443
35444 2009-09-14 José Martínez <xosemp@gmail.com>
35445
35446 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35447
35448 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35449
35450 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35451 output.
35452
35453 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35454
35455 * configure.ac: Remove --enable-grub-pe2elf. Only build
35456 grub-pe2elf when needed by the build system itself.
35457 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35458
35459 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35460
35461 * configure.ac: Bump version to 1.97~beta3.
35462 * docs/version.texi: Likewise.
35463
35464 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35465
35466 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35467 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35468 from here ...
35469 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35470 (grub_linux_setup_video): ... to here (with some adjustments).
35471
35472 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35473
35474 Fix memory corruption issue (spotted by Colin Watson).
35475
35476 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35477 causing returned size to be stored in an incorrect memory location.
35478 Fix use of uninitialized value when storing the returned size.
35479
35480 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35481
35482 Change clean rules to properly remove files
35483
35484 * genmk.rb: add new clean rules
35485 * Makefile.in (clean): add the new targets
35486 (mostlyclean): likewise
35487
35488 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35489
35490 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35491 to grub_uint64_t.
35492 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35493 non-resident files.
35494
35495 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35496
35497 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35498 part of bug #27349.
35499
35500 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35501
35502 * util/grub-mkconfig.in: Make the created config mode 400 and
35503 print a warning if it fails.
35504
35505 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35506
35507 * util/grub.d/40_custom.in: Ask user to type custom entries below
35508 comment, rather than below 'exec tail' line.
35509
35510 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35511
35512 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35513 visible in grub.cfg.
35514
35515 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35516
35517 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35518 file.
35519
35520 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35521
35522 * docs/grub.cfg: Add an example menu entry for memtest86+.
35523
35524 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35525
35526 * config.guess: Update to latest version from config git.
35527 * config.sub: Likewise.
35528
35529 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35530
35531 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35532 unknown-command case. Fixes bug #27320.
35533
35534 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35535
35536 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35537 `help' if the command exists.
35538
35539 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35540
35541 * INSTALL: Require GCC 4.1.3 or later.
35542
35543 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35544
35545 * Makefile.in (RMKFILES): add i386-qemu.rmk
35546 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35547 $(srcdir)/stamp-h.in
35548
35549 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35550
35551 * util/grub-probe.c (probe): Comment out buggy codepath, which
35552 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35553 should be re-enabled after 1.97.
35554
35555 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35556
35557 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35558 find searches for.
35559
35560 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35561
35562 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35563 unnecessary calls to grub_error.
35564
35565 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35566
35567 * NEWS: Mention `keystatus' and Unicode fonts.
35568
35569 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35570
35571 * configure.ac: Bump version to 1.97~beta2.
35572 * docs/version.texi: Likewise.
35573
35574 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35575
35576 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35577 containing unwind information in some cases where it previously did
35578 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35579 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35580 discussion.
35581
35582 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35583
35584 Embedding loadenv module into grub-emu
35585
35586 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35587 commands/loadenv.c
35588 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35589 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35590 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35591 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35592 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35593 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35594
35595 2009-09-03 Magnus Granberg <zorry@ume.nu>
35596
35597 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35598 include -fPIE in the default specs.
35599 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35600 to TARGET_CFLAGS.
35601
35602 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35603
35604 * INSTALL: Note that GNU Bison 2.3 or later is required.
35605
35606 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35607
35608 * kern/i386/pc/startup.S: Fix typo.
35609
35610 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35611
35612 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35613 according to GCS.
35614
35615 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35616
35617 * docs/grub.texi (Naming convention): Describe one-based partition
35618 numbering.
35619 (Device syntax): Likewise.
35620 (File name syntax): Likewise.
35621 (Block list syntax): Likewise.
35622 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35623 menu.lst.
35624 (File name syntax): Likewise.
35625 (Command-line and menu entry commands): Document acpi, blocklist,
35626 crc, export, insmod, keystatus, ls, set, and unset commands.
35627
35628 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35629
35630 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35631 to avoid implying that only one of --shift, --ctrl, or --alt may be
35632 used.
35633
35634 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35635
35636 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35637 rather than comparing against S_IFREG, which will almost never work.
35638
35639 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35640
35641 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35642 (write_blocklists): Likewise.
35643
35644 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35645
35646 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35647 argument to grub_printf.
35648
35649 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35650
35651 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35652 non GNU test.
35653
35654 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35655
35656 * kern/file.c (grub_file_read): Spelling fix
35657
35658 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35659
35660 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35661 loading of headers in some cases.
35662
35663 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35664
35665 * configure.ac: Bump version to 1.97~beta1.
35666 * docs/version.texi: Likewise.
35667
35668 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35669
35670 * include/grub/i386/xnu.h: Add license header.
35671 include grub/err.h explicitly.
35672
35673 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35674
35675 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35676 to `ufs' in the vfs.root.mountfrom kernel parameter.
35677
35678 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35679
35680 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35681
35682 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35683 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35684
35685 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35686 `ARRAY_SIZE' macro.
35687
35688 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35689
35690 * kern/file.c (grub_file_read): Check offset.
35691 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35692 * fs/jfs.c (grub_jfs_read_file): Likewise.
35693 * fs/ntfs.c (grub_ntfs_read): Likewise.
35694 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35695 * fs/minix.c (grub_minix_read_file): Correct offset check.
35696 * fs/ufs.c (grub_ufs_read_file): Likewise.
35697
35698 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35699
35700 * term/i386/pc/console.c (bios_data_area): Cast
35701 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35702
35703 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35704
35705 1-bit optimised blitters.
35706
35707 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35708 prototype.
35709 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35710 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35711 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35712 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35713 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35714 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35715 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35716 function.
35717 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35718 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35719 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35720 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35721 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35722 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35723 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35724 when possible.
35725 * video/video.c (grub_video_get_blit_format): Return
35726 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35727
35728 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35729
35730 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35731 the first argument to grub_printf.
35732
35733 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35734 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35735
35736 Add `getkeystatus' terminal method. Add a new `keystatus' command
35737 to query it.
35738
35739 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35740 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35741 modifier key bitmasks.
35742 (struct grub_term_input): Add `getkeystatus' member.
35743 (grub_getkeystatus): Add prototype.
35744 * kern/term.c (grub_getkeystatus): New function.
35745
35746 * include/grub/i386/pc/memory.h
35747 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35748 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35749 Data Area layout.
35750 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35751 (grub_console_term_input): Set `getkeystatus' member.
35752 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35753 constants.
35754 (grub_usb_keyboard_getreport): Likewise.
35755 (grub_usb_keyboard_checkkey): Likewise.
35756 (grub_usb_keyboard_getkeystatus): New function.
35757 (grub_usb_keyboard_term): Set `getkeystatus' member.
35758
35759 * commands/keystatus.c: New file.
35760 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35761 (keystatus_mod_SOURCES): New variable.
35762 (keystatus_mod_CFLAGS): Likewise.
35763 (keystatus_mod_LDFLAGS): Likewise.
35764 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35765 commands/keystatus.c.
35766 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35767 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35768 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35769 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35770 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35771 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35772
35773 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35774
35775 Split befs.mod and afs.mod into *_be.mod and *.mod
35776
35777 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35778 (grub_fstest_SOURCES): Likewise.
35779 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35780 (afs_be_mod_SOURCES): New variable.
35781 (afs_be_mod_CFLAGS): Likewise.
35782 (afs_be_mod_LDFLAGS): Likewise.
35783 (befs_be_mod_SOURCES): Likewise.
35784 (befs_be_mod_CFLAGS): Likewise.
35785 (befs_be_mod_LDFLAGS): Likewise.
35786 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35787 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35788 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35789 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35790 (grub_emu_SOURCES): Likewise.
35791 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35792 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35793 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35794 * fs/afs_be.c: New file.
35795 * fs/befs_be.c: New file.
35796 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35797 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35798 (U16): Replaced with ...
35799 (grub_afs_to_cpu16): ...this. All users updated.
35800 (U32): Replaced with ...
35801 (grub_afs_to_cpu32): ...this. All users updated.
35802 (U64): Replaced with ...
35803 (grub_afs_to_cpu64): ...this. All users updated.
35804 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35805 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35806 (grub_afs_validate_sblock): Check only one endianness.
35807 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35808 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35809 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35810 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35811 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35812 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35813 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35814 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35815
35816 2009-08-26 Bean <bean123ch@gmail.com>
35817
35818 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35819 64-bit number.
35820 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35821 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35822 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35823
35824 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35825
35826 NetBSD memory map support.
35827
35828 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35829 (grub_netbsd_btinfo_mmap_header): New structure.
35830 (grub_netbsd_btinfo_mmap_entry): Likewise.
35831 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35832
35833 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35834
35835 Enable bsd.mod on coreboot.
35836
35837 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35838 (bsd_mod_SOURCES): New variable.
35839 (bsd_mod_CFLAGS): Likewise.
35840 (bsd_mod_LDFLAGS): Likewise.
35841 (bsd_mod_ASFLAGS): Likewise.
35842 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35843 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35844
35845 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35846
35847 Cleanup NetBSD root support.
35848
35849 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35850 grub_bsd_get_device.
35851 Fix typo.
35852
35853 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35854
35855 * util/grub.d/00_header.in: Move check for the video backend of
35856 gfxterm from here ...
35857 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35858 a suitable video backend.
35859
35860 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35861
35862 Fix breakage in grub-setup.
35863
35864 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35865 "msdos_partition_map".
35866
35867 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35868
35869 Fix breakage in normal/auth.c.
35870
35871 * normal/auth.c (grub_iswordseparator): New function.
35872
35873 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35874
35875 Authentication support.
35876
35877 * commands/password.c: New file.
35878 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35879 (password_mod_SOURCES): New variable.
35880 (password_mod_CFLAGS): Likewise.
35881 (password_mod_LDFLAGS): Likewise.
35882 (normal_mod_SOURCES): Add normal/auth.c.
35883 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35884 normal/auth.c.
35885 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35886 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35887 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35888 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35889 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35890 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35891 * include/grub/auth.h: New file.
35892 * include/grub/err.h (grub_err_t): New enum value
35893 GRUB_ERR_ACCESS_DENIED.
35894 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35895 'users'.
35896 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35897 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35898 users updated.
35899 * normal/auth.c: New file.
35900 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35901 (grub_cmdline_run): Don't allow to go to command line without
35902 authentication.
35903 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35904 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35905 menuentry without superuser rights.
35906 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35907 user isn't a superuser.
35908
35909 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35910
35911 Save space by inlining misc.c functions.
35912
35913 * kern/misc.c (grub_iswordseparator): Made static.
35914 * kern/misc.c (grub_strcat): Moved from here ...
35915 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35916 * kern/misc.c (grub_strncat): Moved from here ...
35917 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35918 * kern/misc.c (grub_strcasecmp): Moved from here ...
35919 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35920 * kern/misc.c (grub_strncasecmp): Moved from here ...
35921 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35922 * kern/misc.c (grub_isalpha): Moved from here ...
35923 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35924 * kern/misc.c (grub_isdigit): Moved from here ...
35925 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35926 * kern/misc.c (grub_isgraph): Moved from here ...
35927 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35928 * kern/misc.c (grub_tolower): Moved from here ...
35929 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35930
35931 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35932
35933 * script/sh/function.c (grub_script_function_find): Cut error message
35934 not to flood terminal.
35935 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35936 limit.
35937 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35938
35939 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35940
35941 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35942 `report' grub_uint8_t *.
35943 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35944 Use a 50-millisecond timeout rather than just repeating
35945 grub_usb_keyboard_getreport 50 times.
35946 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35947
35948 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35949
35950 Rename *_partition_map to part_*
35951
35952 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35953 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35954 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35955 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35956 All users updated.
35957 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35958 All users updated.
35959 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35960 * util/grub-probe.c (probe_partmap): Don't transform partition name
35961 to get module name.
35962
35963 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35964
35965 Fix OpenBSD and NetBSD support.
35966
35967 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35968 memory address conflict.
35969 (OPENBSD_MMAP_ACPI): New definition.
35970 (OPENBSD_MMAP_NVS): Likewise.
35971 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35972 and OPENBSD_MMAP_NVS.
35973 Add memory map terminator
35974 Explicit cast when calling grub_unix_real_boot.
35975 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35976
35977 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35978
35979 Let user specify NetBSD root device.
35980
35981 * loader/i386/bsd.c (netbsd_root): New variable.
35982 (netbsd_opts): New option 'root'.
35983 (NETBSD_ROOT_ARG): New macro.
35984 (grub_netbsd_boot): Use 'netbsd_root'.
35985 (grub_bsd_unload): Free 'netbsd_root'.
35986 (grub_cmd_netbsd): Fill 'netbsd_root'.
35987
35988 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35989
35990 Support for 64-bit NetBSD.
35991
35992 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35993 point when booting non-FreeBSD.
35994
35995 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35996
35997 Support --no-smp and --no-acpi for NetBSD.
35998
35999 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36000 (NETBSD_AB_NOACPI): Likewise.
36001 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36002 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36003
36004 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36005
36006 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36007 errors.
36008 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36009 errors. Call grub_error when needed.
36010
36011 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36012
36013 * commands/search.c (search_fs): Try searching without autoload first.
36014 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36015 filesystem module explicitly for faster booting.
36016
36017 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36018
36019 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36020
36021 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36022
36023 * util/grub.d/30_os-prober.in: Disable os-prober if
36024 `GRUB_DISABLE_OS_PROBER' was set to true.
36025
36026 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36027
36028 * partmap/pc.c: Rename to ...
36029 * partmap/msdos.c: ... this. Update all users.
36030 (grub_pc_partition_map): Rename to ...
36031 (grub_msdos_partition_map): ... this. Update all users.
36032
36033 * parttool/pcpart.c: Rename to ...
36034 * parttool/msdospart.c: ... this. Update all users.
36035
36036 * include/grub/pc_partition.h: Rename to ...
36037 * include/grub/msdos_partition.h: ... this. Update all users.
36038 (grub_pc_partition_bsd_entry): Rename to ...
36039 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36040 (grub_pc_partition_disk_label): Rename to ...
36041 (grub_msdos_partition_disk_label): ... this. Update all users.
36042 (grub_pc_partition_entry): Rename to ...
36043 (grub_msdos_partition_entry): ... this. Update all users.
36044 (grub_pc_partition_mbr): Rename to ...
36045 (grub_msdos_partition_mbr): ... this. Update all users.
36046 (grub_pc_partition): Rename to ...
36047 (grub_msdos_partition): ... this. Update all users.
36048 (grub_pc_partition_is_empty): Rename to ...
36049 (grub_msdos_partition_is_empty): ... this. Update all users.
36050 (grub_pc_partition_is_extended): Rename to ...
36051 (grub_msdos_partition_is_extended): ... this. Update all users.
36052 (grub_pc_partition_is_bsd): Rename to ...
36053 (grub_msdos_partition_is_bsd): ... this. Update all users.
36054
36055 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36056 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36057 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36058 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36059 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36060 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36061 (gpt_mod_LDFLAGS): Rename to ...
36062 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36063 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36064 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36065 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36066 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36067 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36068 (part_gpt_mod_LDFLAGS): ... this.
36069 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36070 `pcpart.mod' to `msdospart.mod'.
36071 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36072 to ...
36073 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36074 (msdospart_mod_LDFLAGS): ... this.
36075
36076 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36077
36078 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36079 (openbsd_opts): Likewise.
36080 (netbsd_opts): Likewise.
36081 (freebsd_flags): Added 0 terminator.
36082 (openbsd_flags): Likewise.
36083 (netbsd_flags): Likewise.
36084 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36085 (grub_cmd_freebsd): Transformed into extended command.
36086 (grub_cmd_openbsd): Likewise.
36087 (grub_cmd_netbsd): Likewise.
36088 (cmd_freebsd): Changed type to grub_extcmd_t.
36089 (cmd_openbsd): Likewise.
36090 (cmd_netbsd): Likewise.
36091 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36092 grub_cmd_openbsd as extended commands.
36093 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36094 cmd_netbsd and cmd_openbsd
36095
36096 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36097
36098 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36099
36100 2009-08-21 Pavel Roskin <proski@gnu.org>
36101
36102 * Makefile.in (install-local): When checking if a file is in the
36103 build directory, use "test -e" to detect symlinks.
36104
36105 * Makefile.in (install-local): Remove all files in
36106 $(DESTDIR)$(pkglibdir) before installing new files there.
36107
36108 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36109
36110 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36111 grub-mkelfimage.
36112
36113 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36114
36115 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36116 explicitly specified by the user.
36117
36118 2009-08-18 Pavel Roskin <proski@gnu.org>
36119
36120 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36121 grub_uint8_t pointer for data.
36122 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36123 Likewise.
36124 * video/fb/fbutil.c: Remove unnecessary casts.
36125
36126 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36127
36128 VBE cleanup.
36129
36130 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36131 (grub_vbe_set_video_mode): Save active mode info
36132 only after setting the mode.
36133 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36134 second argument.
36135
36136 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36137
36138 Rename variables for clarity.
36139
36140 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36141 (active_vbe_mode_info): ... this. All users updated.
36142 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36143 All users updated.
36144 (initial_mode): Rename to ...
36145 (initial_vbe_mode): ... this. All users updated.
36146 (mode_in_use): Rename to ..
36147 (vbe_mode_in_use): ... this. All users updated.
36148 (mode_list): Rename to ..
36149 (vbe_mode_list): ... this. All users updated.
36150 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36151 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36152 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36153 'mode_list_size' to 'vbe_mode_list_size'.
36154 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36155 'best_mode_info' to 'best_vbe_mode_info' and
36156 'best_mode' to 'best_vbe_mode'
36157
36158 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36159
36160 Remove duplicate grub_video_fb_get_video_ptr.
36161
36162 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36163 (grub_video_fb_get_video_ptr): ... this.
36164 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36165 * video/fb/fbutil.c: Add comment about addressing.
36166 (get_data_ptr): Rename to ...
36167 (grub_video_fb_get_video_ptr): ... this. All users updated.
36168 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36169
36170 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36171
36172 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36173 grub_dprintf() that was just added.
36174
36175 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36176
36177 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36178 (DEFAULT_VIDEO_MODE): Remove macros.
36179 (grub_linux_boot): Remove assumption that Linux has FB support,
36180 and use "text" as default video mode.
36181
36182 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36183
36184 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36185 grub_dprintf.
36186 * fs/fat.c (grub_fat_read_data): Likewise.
36187
36188 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36189
36190 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36191 payload.
36192 (grub_module): Likewise.
36193
36194 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36195
36196 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36197 mbi->cmdline but free playground.
36198
36199 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36200
36201 Handle group offset on UFS1.
36202
36203 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36204 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36205
36206 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36207
36208 Split ufs.mod into ufs1.mod and ufs2.mod.
36209
36210 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36211 (grub_fstest_SOURCES): Likewise.
36212 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36213 (ufs_mod_SOURCES): Remove.
36214 (ufs_mod_CFLAGS): Likewise.
36215 (ufs_mod_LDFLAGS): Likewise.
36216 (ufs1_mod_SOURCES): New variable.
36217 (ufs1_mod_CFLAGS): Likewise.
36218 (ufs1_mod_LDFLAGS): Likewise.
36219 (ufs2_mod_SOURCES): New variable.
36220 (ufs2_mod_CFLAGS): Likewise.
36221 (ufs2_mod_LDFLAGS): Likewise.
36222 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36223 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36224 Likewise.
36225 (grub_emu_SOURCES): Likewise.
36226 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36227 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36228 (grub_setup_SOURCES): Likewise.
36229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36230 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36231 (grub_setup_SOURCES): Likewise.
36232 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36233 Likewise.
36234 * fs/ufs2.c: New file.
36235 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36236
36237 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36238
36239 Framebuffer split.
36240
36241 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36242 subsystem at the end.
36243 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36244 (video_fb_mod_SOURCES): New variable.
36245 (video_fb_mod_CFLAGS): Likewise.
36246 (video_fb_mod_LDFLAGS): Likewise.
36247 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36248 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36249 * video/i386/pc/vbeblit.c: Moved from here ...
36250 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36251 * video/i386/pc/vbefill.c: Moved from here ...
36252 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36253 * video/i386/pc/vbeutil.c: Moved from here ...
36254 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36255 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36256 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36257 * include/grub/i386/pc/vbefill.h: Moved from here ...
36258 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36259 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36260 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36261 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36262 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36263 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36264 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36265 (grub_video_adapter): Added 'get_info_and_fini'.
36266 (grub_video_get_info_and_fini): New prototype.
36267 (grub_video_set_mode): make modestring const char *.
36268 * loader/i386/linux.c (grub_linux_setup_video): Use
36269 grub_video_get_info_and_fini.
36270 (grub_linux_boot): Move modesetting just before booting.
36271 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36272 grub_video_get_info_and_fini.
36273 * video/i386/pc/vbe.c: Moved framebuffer part ...
36274 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36275 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36276 grub_video_fbstd_colors and grub_video_fb_set_palette.
36277 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36278 grub_video_fb_init.
36279 (grub_video_vbe_fini): Use grub_video_fb_fini.
36280 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36281 render_target and use grub_video_fb_set_active_render_target and
36282 grub_video_fb_set_palette.
36283 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36284 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36285 (grub_video_vbe_adapter): Use framebuffer.
36286 * video/video.c (grub_video_get_info_and_fini): New function.
36287 (grub_video_set_mode): Make modestring const char *.
36288 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36289 values are already initialised.
36290
36291 2009-08-14 Pavel Roskin <proski@gnu.org>
36292
36293 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36294 ABS and APPLE_CC.
36295 * boot/i386/pc/diskboot.S: Likewise.
36296 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36297 sectors allow compilation on MacOSX.
36298 * conf/i386-pc.rmk: Enable unconditional compilation of
36299 lnxboot.img.
36300
36301 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36302
36303 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36304 * util/grub.d/00_header.in: Enter interruptible sleep if
36305 GRUB_HIDDEN_TIMEOUT is set.
36306
36307 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36308
36309 * include/grub/symbol.h: Add the LOCAL macro.
36310 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36311 starting with "L_".
36312
36313 2009-08-13 Pavel Roskin <proski@gnu.org>
36314
36315 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36316 any modern compilers we support.
36317
36318 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36319 Use local labels starting with "L_" so that Apple assembler
36320 knows they are local.
36321
36322 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36323
36324 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36325 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36326 (bsd_kernel_types): ... this enum.
36327
36328 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36329 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36330 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36331
36332 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36333 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36334 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36335 messages.
36336
36337 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36338
36339 * util/grub-dumpdevtree: Moved from here ...
36340 * util/i386/efi/grub-dumpdevtree: ... to here.
36341 (hexify): New function. Converts a string to its hex version.
36342 Generate hex versions of "efi" and "device-properties" by calling
36343 hexify() on the ASCII strings rather than by hardcoding numbers.
36344
36345 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36346
36347 * fs/jfs.c: Update copyright year.
36348
36349 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36350
36351 * util/grub.d/00_header.in: Fix a comment.
36352 * util/grub.d/10_linux.in: Likewise.
36353 * util/grub.d/10_windows.in: Likewise.
36354 * util/grub.d/10_hurd.in: Likewise.
36355
36356 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36357
36358 * util/grub-mkconfig.in: Allow the user to specify the used font
36359 with GRUB_FONT.
36360
36361 2009-08-08 Pavel Roskin <proski@gnu.org>
36362
36363 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36364 available, xfs.mod needs it now.
36365
36366 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36367 the "g" modifier in sed when the intention is to strip something
36368 once. This fixes comparison of kernels with multiple dashes.
36369
36370 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36371 on it. Add missing space before closing bracket. Fix
36372 misleading formatting.
36373
36374 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36375
36376 * docs/grub.texi: Major overhaul. Remove all sections that are
36377 specific to GRUB Legacy, or mostly composed of Legacy-specific
36378 information.
36379
36380 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36381
36382 * docs/version.texi: New file. Provides version information for
36383 grub.texi.
36384
36385 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36386
36387 * docs/grub.texi: Update CVS information to SVN.
36388 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36389
36390 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36391
36392 * util/grub-mkconfig.in: Remove a wrong `fi'.
36393
36394 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36395
36396 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36397 (grub_jfs_uuid): New function.
36398 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36399
36400 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36401
36402 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36403 of it to ...
36404 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36405 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36406
36407 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36408
36409 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36410 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36411 Update all users.
36412
36413 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36414 not just "vmlinu[zx]".
36415 Moved from here ...
36416 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36417 all users.
36418
36419 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36420 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36421 all users.
36422
36423 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36424
36425 * util/grub.d/10_freebsd.in: Use an absolute device path for
36426 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36427
36428 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36429
36430 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36431 handling of multiple abstraction modules.
36432
36433 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36434
36435 Fix a bug resulting in black screen when loading Linux using a
36436 packed video mode.
36437
36438 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36439 function.
36440
36441 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36442 (grub_vbe_bios_getset_dac_palette_width): New function.
36443 (grub_vbe_bios_get_dac_palette_width)
36444 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36445 grub_vbe_bios_getset_dac_palette_width()).
36446
36447 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36448 check for return status.
36449 (grub_vbe_get_video_mode_info): When getting information for a packed
36450 mode (<= 8 bpp), obtain DAC palette width using
36451 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36452 {red,green,blue}_mark_size.
36453
36454 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36455
36456 * commands/search.c (options): Fix help output to match actual code.
36457
36458 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36459
36460 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36461 of homegrown code.
36462
36463 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36464
36465 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36466 on XFS or ReiserFS.
36467
36468 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36469
36470 Support Apple partition map with sector size different from 512 bytes.
36471
36472 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36473 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36474 and 'apart.partmap_size'.
36475
36476 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36477 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36478
36479 Fix cpuid command.
36480
36481 * commands/i386/cpuid.c (options): New variable.
36482 (grub_cmd_cpuid): Return real error.
36483 (GRUB_MOD_INIT(cpuid)): Declare options.
36484
36485 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36486
36487 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36488 valid.
36489
36490 2009-07-31 Bean <bean123ch@gmail.com>
36491
36492 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36493 log2_inode.
36494 (grub_fshelp_node): Move inode field to the end.
36495 (grub_xfs_data): Remove inode field.
36496 (grub_xfs_inode_block): Calculate inode size using sblock.
36497 (grub_xfs_inode_offset): Likewise.
36498 (grub_xfs_read_inode): Calculate inode size using sblock.
36499 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36500 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36501 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36502 to match inode size.
36503 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36504 not accessible when data is null.
36505 (grub_xfs_open): Likewise.
36506
36507 2009-07-31 Bean <bean123ch@gmail.com>
36508
36509 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36510 Don't change pv->disk if it's already set.
36511
36512 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36513 (grub_raid_register): ... here.
36514 (grub_raid_rescan): Removed.
36515
36516 * include/grub/raid.h (grub_raid_rescan): Removed.
36517
36518 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36519 (fstest): Replace grub_raid_rescan with module fini function followed
36520 by init function.
36521
36522 * util/grub-probe.c: Add include file <grub/raid.h>.
36523 (probe_raid_level): New function.
36524 (probe): Detect abstraction by walking the disk device, support two
36525 level of abstraction (LVM on RAID) when detecting partition map.
36526
36527 2009-07-31 Pavel Roskin <proski@gnu.org>
36528
36529 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36530 to grub_zalloc(), it was erroneous.
36531 Reported by Bean <bean123ch@gmail.com>
36532
36533 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36534
36535 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36536 embedding zone, not only the first one.
36537
36538 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36539
36540 * term/gfxterm.c (clear_char): New function.
36541 (grub_virtual_screen_setup): Use clear_char.
36542 (scroll_up): Likewise.
36543 (grub_virtual_screen_cls): Likewise.
36544
36545 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36546
36547 * util/deviceiter.c (get_acceleraid_disk_name): New static
36548 function.
36549 (grub_util_iterate_devices): Handle Accelraid devices.
36550 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36551
36552 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36553
36554 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36555 separator for the suggested gfxpayload string (';' collides with the
36556 parser and needs escaping).
36557
36558 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36559
36560 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36561 Clear direction flag before jumping to OS.
36562 (grub_multiboot2_real_boot): Likewise.
36563
36564 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36565
36566 * util/i386/pc/grub-install: Fix parsing of --disk-module
36567 option.
36568
36569 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36570
36571 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36572 when embedding.
36573
36574 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36575
36576 * util/grub-mkconfig.in (package_version): New variable.
36577 Use it do display the version.
36578
36579 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36580
36581 * kern/file.c (grub_file_open): Revert to previous check with
36582 grub_errno.
36583
36584 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36585
36586 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36587 from help line. It's out of sync with code.
36588
36589 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36590
36591 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36592 entries on failed boot.
36593
36594 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36595
36596 * kern/file.c (grub_file_open): Fix an error check.
36597
36598 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36599
36600 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36601 partition map couldn't be identified.
36602
36603 2009-07-23 Pavel Roskin <proski@gnu.org>
36604
36605 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36606 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36607 case of little endian words becomes just an optimization.
36608 Respect const modifier.
36609 (md5_final): Use code that doesn't depend on endianness.
36610
36611 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36612 to avoid loss of upper bits if align is unsigned and shorter
36613 than addr.
36614
36615 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36616
36617 UUID support for UFS
36618
36619 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36620 (grub_ufs_uuid): New function.
36621 (grub_ufs_fs): add .uuid
36622
36623 2009-07-21 Pavel Roskin <proski@gnu.org>
36624
36625 * kern/dl.c (grub_dl_check_header): Make static.
36626
36627 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36628
36629 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36630 add drivemap for Vista. It breaks Windows 7.
36631
36632 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36633
36634 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36635 128 bytes
36636
36637 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36638
36639 Add BFS support
36640
36641 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36642 (grub_fstest_SOURCES): Likewise.
36643 (pkglib_MODULES): Add befs.mod.
36644 (befs_mod_SOURCES): New variable.
36645 (befs_mod_CFLAGS): Likewise.
36646 (befs_mod_LDFLAGS): Likewise.
36647 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36648 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36649 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36650 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36651 (grub_setup_SOURCES): Likewise.
36652 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36653 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36654 (grub_setup_SOURCES): Likewise.
36655 * fs/befs.c: New file.
36656 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36657 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36658 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36659 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36660 (B_KEY_INDEX_ALIGN): New declaration.
36661 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36662 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36663 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36664 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36665 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36666 (grub_afs_mount) [MODE_BFS]: Likewise.
36667 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36668 (grub_afs_fs): Use GRUB_AFS_FSNAME
36669 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36670 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36671 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36672 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36673
36674 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36675
36676 * util/getroot.c (find_root_device): Add support for MacOSX.
36677 * util/hostdisk.c: Likewise.
36678
36679 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36680
36681 * font/font.c (find_glyph): Check whether a font is present to avoid
36682 segmentation fault.
36683
36684 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36685
36686 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36687
36688 2009-07-20 Pavel Roskin <proski@gnu.org>
36689
36690 * configure.ac: Trim excessively wordy excuses.
36691
36692 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36693
36694 Add symlink, mtime and label support to AtheFS.
36695
36696 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36697 (grub_afs_iterate_dir): Handle symlinks.
36698 (grub_afs_open): Use grub_afs_read_symlink.
36699 (grub_afs_dir): Likewise.
36700 Pass mtime.
36701 (grub_afs_label): New function.
36702 (grub_afs_fs): Add grub_afs_label.
36703 (grub_afs_read_symlink): New function.
36704
36705 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36706
36707 Fix AtheFS support.
36708
36709 * fs/afs.c: Fix comments style.
36710 (grub_afs_blockrun): Declare as packed.
36711 (grub_afs_datastream): Likewise.
36712 (grub_afs_bnode): Likewise.
36713 (grub_afs_btree): Likewise.
36714 (grub_afs_sblock): Likewise.
36715 Declare `name' as char.
36716 (grub_afs_inode): Declare as packed.
36717 Change void *vnode to grub_uint32_t unused.
36718 (grub_afs_iterate_dir): Check that key_size is positive.
36719 (grub_afs_mount): Don't read superblock twice.
36720 (grub_afs_dir): Don't free node in case of error,
36721 grub_fshelp_find_file already handles this.
36722 (grub_afs_open): Likewise.
36723
36724 2009-07-19 Pavel Roskin <proski@gnu.org>
36725
36726 * Makefile.in: Remove LIBLZO and enable_lzo.
36727 * conf/i386-pc.rmk: Remove lzo support.
36728 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36729 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36730 support.
36731 * kern/i386/pc/lzo1x.S: Remove.
36732 * kern/i386/pc/startup.S: Remove lzo support.
36733 * util/i386/pc/grub-mkimage.c: Likewise.
36734
36735 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36736
36737 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36738 * fs/xfs.c (grub_xfs_dir): Likewise.
36739 * fs/afs.c (grub_afs_dir): Likewise.
36740 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36741 (grub_iso9660_open): Likewise.
36742 * fs/jfs.c (grub_jfs_open): Likewise.
36743 * fs/ext2.c (grub_ext2_dir): Likewise.
36744 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36745 * script/sh/lexer.c (grub_script_yylex): Likewise.
36746
36747 2009-07-16 Pavel Roskin <proski@gnu.org>
36748
36749 * configure.ac: Never add "-c" to CFLAGS.
36750
36751 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36752
36753 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36754 grub_cv_cc_efiemu should be used.
36755
36756 * configure.ac: Typo fixes.
36757
36758 * kern/mm.c (grub_zalloc): New function.
36759 (grub_debug_zalloc): Likewise.
36760 * include/grub/mm.h: Declare grub_zalloc() and
36761 grub_debug_zalloc().
36762 * util/misc.c (grub_zalloc): New function.
36763 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36764 instead of grub_malloc(), remove unneeded initializations.
36765 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36766 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36767 * commands/parttool.c (grub_cmd_parttool): Likewise.
36768 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36769 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36770 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36771 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36772 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36773 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36774 (grub_cmd_efiemu_pnvram): Likewise.
36775 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36776 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36777 (grub_iso9660_iterate_dir): Likewise.
36778 * fs/jfs.c (grub_jfs_opendir): Likewise.
36779 * fs/ntfs.c (list_file): Likewise.
36780 (grub_ntfs_mount): Likewise.
36781 * kern/disk.c (grub_disk_open): Likewise.
36782 * kern/dl.c (grub_dl_load_core): Likewise.
36783 * kern/elf.c (grub_elf_file): Likewise.
36784 * kern/env.c (grub_env_context_open): Likewise.
36785 (grub_env_set): Likewise.
36786 (grub_env_set_data_slot): Likewise.
36787 * kern/file.c (grub_file_open): Likewise.
36788 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36789 * loader/i386/multiboot.c (grub_module): Likewise.
36790 * loader/xnu.c (grub_xnu_create_key): Likewise.
36791 (grub_xnu_create_value): Likewise.
36792 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36793 (read_config_file): Likewise.
36794 * normal/menu_entry.c (make_screen): Likewise.
36795 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36796 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36797 * script/sh/script.c (grub_script_parse): Likewise.
36798 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36799 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36800 * video/readers/png.c (grub_png_output_byte): Likewise.
36801 (grub_video_reader_png): Likewise.
36802
36803 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36804
36805 Enable all targets that can be built by default
36806
36807 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36808 grub-mkfont and grub-fstest if they can be built
36809
36810 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36811
36812 Fix hang and segmentation fault in grub-emu-usb
36813
36814 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36815 * util/usb.c (grub_libusb_devices): likewise
36816 (grub_libusb_init): rename to ...
36817 (GRUB_MOD_INIT (libusb)):...this
36818 (grub_libusb_fini): rename to ..
36819 (GRUB_MOD_FINI (libusb)):...this
36820 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36821 * include/grub/disk.h (grub_raid_init): removed, it's useless
36822 (grub_raid_fini): likewise
36823 (grub_lvm_init): likewise
36824 (grub_lvm_fini): likewise
36825 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36826 by grub_init_all
36827
36828 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36829
36830 Fix libusb
36831
36832 * Makefile.in (LIBUSB): new macro
36833 * genmk.rb (Utility/print_tail): new method
36834 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36835 (top level): call util.print_tail at the end.
36836
36837 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36838
36839 Make FreeBSD accept zpool.cache
36840
36841 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36842 type is /boot/zfs/zpool.cache
36843
36844 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36845
36846 Fix 64-bit efiemu
36847
36848 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36849 correct wrong typedef
36850 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36851
36852 2009-07-15 Pavel Roskin <proski@gnu.org>
36853
36854 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36855 * kern/disk.c (struct grub_disk_cache): Likewise.
36856
36857 * commands/probe.c (options): Typo fix.
36858
36859 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36860 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36861 accordingly.
36862 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36863
36864 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36865 the end of "Error" to make the message more readable.
36866
36867 * boot/i386/pc/boot.S (kernel_segment): Remove.
36868 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36869 for destination.
36870
36871 * boot/i386/pc/boot.S (boot_version): Remove.
36872 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36873 Remove.
36874
36875 * include/grub/i386/pc/boot.h: Sort all offsets.
36876 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36877 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36878 * boot/i386/pc/boot.S: Assert location of every offset listed in
36879 include/grub/i386/pc/boot.h.
36880
36881 2009-07-13 Pavel Roskin <proski@gnu.org>
36882
36883 * include/grub/i386/coreboot/machine.h: Rename
36884 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36885 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36886 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36887
36888 * kern/dl.c: Force native word size to suppress warnings when
36889 compiling grub-emu.
36890
36891 * kern/device.c (grub_device_iterate): Change struct part_ent to
36892 hold the name, not a pointer to it. Use one grub_malloc() per
36893 partition, not two. Free partition_name if grub_malloc() fails.
36894 Set ents to NULL only before grub_partition_iterate() is called.
36895
36896 2009-07-11 Bean <bean123ch@gmail.com>
36897
36898 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36899 childname.
36900
36901 2009-07-10 Bean <bean123ch@gmail.com>
36902 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36903
36904 * kern/ieee1275/openfw.c (grub_children_iterate)
36905 (grub_devalias_iterate): Fix size evaluation for property or path
36906 strings, which was broken since r2132.
36907
36908 2009-07-07 Pavel Roskin <proski@gnu.org>
36909
36910 * commands/search.c (search_file): Merge into ...
36911 (search_fs): ... this. Accept search type as argument.
36912 (grub_cmd_search): Pass search type to search_fs().
36913
36914 * include/grub/util/console.h: New file.
36915 * util/console.c: Use it instead of grub/machine/console.h.
36916 * util/grub-emu.c: Likewise.
36917
36918 * lib/arg.c (find_long_option): Remove.
36919 (find_long): Add `len' argument, make `s' const char *.
36920 (grub_arg_parse): Parse long options in place, not in a
36921 temporary buffer.
36922
36923 2009-07-06 Pavel Roskin <proski@gnu.org>
36924
36925 * commands/search.c (search_fs): Fix potential NULL pointer
36926 dereference.
36927
36928 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36929 function pointer.
36930
36931 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36932
36933 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36934 comparison.
36935
36936 2009-07-05 Pavel Roskin <proski@gnu.org>
36937
36938 * include/grub/i386/linux.h (struct linux_kernel_params):
36939 Restore padding3, it's still needed.
36940
36941 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36942 FreeBSD.
36943 * util/osdetect.lua: Likewise.
36944
36945 2009-07-05 Bean <bean123ch@gmail.com>
36946
36947 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36948
36949 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36950 (grub_lua_getenv): Likewise.
36951 (grub_lua_setenv): Likewise.
36952 (save_errno): New function.
36953 (push_result): Likewise.
36954 (grub_lua_enum_device): Likewise.
36955 (grub_lua_enum_file): Likewise.
36956 (grub_lua_file_open): Likewise.
36957 (grub_lua_file_close): Likewise.
36958 (grub_lua_file_seek): Likewise.
36959 (grub_lua_file_read): Likewise.
36960 (grub_lua_file_getline): Likewise.
36961 (grub_lua_file_getsize): Likewise.
36962 (grub_lua_file_getpos): Likewise.
36963 (grub_lua_file_eof): Likewise.
36964 (grub_lua_file_exist): Likewise.
36965 (grub_lua_add_menu): Likewise.
36966
36967 * script/lua/grub_lua.h (isupper): New inline function.
36968 (islower): Likewise.
36969 (ispunct): Likewise.
36970 (isxdigit): Likewise.
36971 (strcspn): Change to normal function.
36972 (strpbkr): New function declaration.
36973 (memchr): Likewise.
36974
36975 * script/lua/grub_main.c (scan_str): New function.
36976 (strcspn): Likewise.
36977 (strpbrk): Likewise.
36978 (memchr): Likewise.
36979
36980 * script/lua/linit.c (lualibs): Enable the string library.
36981
36982 * util/osdetect.lua: New file.
36983
36984 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36985
36986 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36987 `capabilities' member.
36988
36989 2009-07-02 Pavel Roskin <proski@gnu.org>
36990
36991 * genparttoollist.sh: Add missing newline at the end.
36992
36993 2009-07-01 Pavel Roskin <proski@gnu.org>
36994
36995 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36996
36997 * util/hostdisk.c (open_device): Remove `const' from
36998 `sysctl_size', as sysctlbyname() can change it (in this case it
36999 doesn't actually happen).
37000
37001 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37002 using signed long int constants.
37003
37004 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37005 constant to avoid a warning on FreeBSD.
37006
37007 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37008 where it's needed.
37009
37010 * Makefile.in: Install include/grub/machine symlink.
37011
37012 * Makefile.in: When installing symlinks, use "cp -fR", which
37013 works on FreeBSD and MacOSX.
37014 From Yves Blusseau <cl7m42e02@sneakemail.com>
37015
37016 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37017 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37018
37019 * util/misc.c: Move grub_reboot() and grub_halt() ...
37020 * util/grub-emu.c: ... here. Make main_env static.
37021 * include/grub/util/misc.h: Remove main_env.
37022
37023 * kern/mm.c: Use correct format to print size_t.
37024
37025 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37026 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37027 * kern/powerpc/dl.c: Likewise.
37028 * kern/sparc64/dl.c: Likewise.
37029 * kern/x86_64/dl.c: Likewise.
37030
37031 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37032
37033 Fix grub-emu build on sparc64-ieee1275.
37034
37035 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37036 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37037
37038 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37039
37040 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37041 (grub_reboot, grub_halt): New functions.
37042
37043 * util/i386/pc/misc.c: Delete. Update all users.
37044 * util/sparc64/ieee1275/misc.c: Likewise.
37045 * util/powerpc/ieee1275/misc.c: Likewise.
37046
37047 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37048
37049 * conf/i386.rmk (setjmp_mod_SOURCES)
37050 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37051 * conf/common.rmk (setjmp_mod_SOURCES)
37052 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37053 to use $(target_cpu).
37054 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37055 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37056 * conf/powerpc-ieee1275.rmk: Likewise.
37057 * conf/sparc64-ieee1275.rmk: Likewise.
37058
37059 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37060 $(target_cpu) for kern/$(target_cpu)/dl.c.
37061 * conf/i386-efi.rmk: Likewise.
37062 * conf/i386-ieee1275.rmk: Likewise.
37063 * conf/x86_64-efi.rmk: Likewise.
37064 * conf/i386-coreboot.rmk: Likewise.
37065 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37066 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37067 kern/$(target_cpu)/cache.S.
37068 * conf/sparc64-ieee1275.rmk: Likewise.
37069
37070 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37071
37072 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37073 type to `grub_uint8_t', and adjust `padding9' accordingly.
37074
37075 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37076
37077 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37078
37079 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37080 assembly in final jump, using register constraints.
37081
37082 (grub_linux_boot): For text mode, initialize `have_vga' using
37083 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37084
37085 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37086 right before the final jump.
37087
37088 Set `video_mode' to 0x3.
37089
37090 Document initialization of `video_page', `video_mode' and
37091 `video_ega_bx'.
37092
37093 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37094
37095 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37096 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37097 and set GRUB_LINUX_FLAG_QUIET appropriately.
37098
37099 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37100
37101 Fix build on Debian / sparc.
37102
37103 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37104
37105 2009-06-28 Pavel Roskin <proski@gnu.org>
37106
37107 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37108 fix a warning.
37109
37110 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37111
37112 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37113
37114 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37115 `err'.
37116
37117 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37118
37119 Revert r2338.
37120
37121 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37122 file can't be opened. grub_file_open() is already supposed to set
37123 grub_errno / grub_errmsg appropriately.
37124 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37125
37126 2009-06-27 Pavel Roskin <proski@gnu.org>
37127 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37128
37129 * include/grub/dl.h: Include grub/elf.h.
37130 (struct grub_dl): Add symtab field.
37131 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37132 GRUB_MODULES_MACHINE_READONLY.
37133 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37134 of the header for read-only modules.
37135 (grub_dl_unload): Free mod->symtab for read-only modules.
37136 * kern/i386/dl.c: Use mod->symtab.
37137 * kern/powerpc/dl.c: Likewise.
37138 * kern/sparc64/dl.c: Likewise.
37139 * kern/x86_64/dl.c: Likewise.
37140
37141 * conf/i386-qemu.rmk: New file.
37142 * kern/i386/qemu/startup.S: Likewise.
37143 * kern/i386/qemu/mmap.c: Likewise.
37144 * boot/i386/qemu/boot.S: Likewise.
37145 * include/grub/i386/qemu/time.h: Likewise.
37146 * include/grub/i386/qemu/serial.h: Likewise.
37147 * include/grub/i386/qemu/kernel.h: Likewise.
37148 * include/grub/i386/qemu/console.h: Likewise.
37149 * include/grub/i386/qemu/boot.h: Likewise.
37150 * include/grub/i386/qemu/init.h: Likewise.
37151 * include/grub/i386/qemu/machine.h: Likewise.
37152 * include/grub/i386/qemu/loader.h: Likewise.
37153 * include/grub/i386/qemu/memory.h: Likewise.
37154
37155 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37156 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37157 [qemu] (pkglib_IMAGES): Add `boot.img'.
37158 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37159 [qemu] (boot_img_FORMAT): New variables.
37160 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37161 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37162 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37163 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37164 [qemu] (kernel_img_FORMAT): New variables.
37165
37166 * configure.ac: Recognise `i386-qemu'.
37167
37168 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37169 (for no compression).
37170 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37171 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37172 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37173 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37174 ifdefs).
37175
37176 2009-06-27 Pavel Roskin <proski@gnu.org>
37177
37178 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37179 read.
37180 * efiemu/prepare32.c: Likewise.
37181 * efiemu/prepare64.c: Likewise.
37182
37183 2009-06-26 Pavel Roskin <proski@gnu.org>
37184
37185 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37186 * include/grub/elf.h: Define symbols without "32" or "64" based
37187 on GRUB_TARGET_WORDSIZE.
37188 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37189 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37190 ELF definitions.
37191 * efiemu/loadcore64.c: Likewise.
37192 * loader/i386/bsd32.c: Likewise.
37193 * loader/i386/bsd64.c: Likewise.
37194 * kern/dl.c: Remove own ELF definitions.
37195 * util/i386/efi/grub-mkimage.c: Likewise.
37196
37197 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37198
37199 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37200 segment 0x0 unconditionally, because the reference generated by
37201 GAS is an absolute address.
37202
37203 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37204
37205 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37206 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37207
37208 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37209
37210 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37211 indexes. Check for -f explicitly.
37212 (search_file): Improve error message.
37213 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37214
37215 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37216
37217 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37218 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37219
37220 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37221
37222 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37223 * conf/i386-ieee1275.rmk: Likewise.
37224 * conf/i386-coreboot.rmk: Likewise.
37225
37226 * kern/i386/pc/startup.S (grub_stop): Remove function.
37227 * kern/i386/ieee1275/startup.S: Likewise.
37228 * kern/i386/coreboot/startup.S: Likewise.
37229 * kern/i386/misc.S (grub_stop): New function.
37230
37231 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37232
37233 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37234 * kern/i386/realmode.S (real_to_prot): ... to here.
37235
37236 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37237
37238 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37239 with `kernel.img'.
37240 (kernel_elf_SOURCES): Rename to ...
37241 (kernel_img_SOURCES): ... this.
37242 (kernel_elf_HEADERS): Rename to ...
37243 (kernel_img_HEADERS): ... this. Update all users.
37244 (kernel_elf_ASFLAGS): Rename to ...
37245 (kernel_img_ASFLAGS): ... this.
37246 (kernel_elf_CFLAGS): Rename to ...
37247 (kernel_img_CFLAGS): ... this.
37248 (kernel_elf_LDFLAGS): Rename to ...
37249 (kernel_img_LDFLAGS): ... this.
37250 * conf/i386-coreboot.rmk: Likewise.
37251 * conf/powerpc-ieee1275.rmk: Likewise.
37252
37253 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37254 with "kernel.img".
37255
37256 2009-06-21 Pavel Roskin <proski@gnu.org>
37257
37258 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37259 to match nested functions.
37260 * loader/sparc64/ieee1275/linux.c: Likewise.
37261
37262 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37263
37264 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37265
37266 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37267 all i386 platforms.
37268
37269 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37270
37271 Fix asm file handling on ELF, and remove workarounds.
37272
37273 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37274 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37275 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37276 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37277
37278 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37279
37280 Load BSD ELF modules
37281
37282 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37283 and loader/i386/bsd64.c
37284 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37285 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37286 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37287 (grub_freebsd_load_elfmodule32): New declaration
37288 (grub_freebsd_load_elfmoduleobj64): Likewise
37289 (grub_freebsd_load_elf_meta32): Likewise
37290 (grub_freebsd_load_elf_meta64): Likewise
37291 (grub_freebsd_add_meta): Likewise
37292 (grub_freebsd_add_meta_module): Likewise
37293 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37294 (grub_freebsd_add_meta_module): Likewise and move module-specific
37295 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37296 (grub_cmd_freebsd): Add elf-kernel specific parts
37297 based on grub_freebsd_add_meta_module
37298 (grub_cmd_freebsd_module): Add type parsing moved from
37299 grub_freebsd_add_meta_module
37300 (grub_cmd_freebsd_module_elf): New function
37301 (cmd_freebsd_module_elf): New variable
37302 (GRUB_MOD_INIT): Register freebsd_module_elf
37303 * loader/i386/bsd32.c: New file
37304 * loader/i386/bsd64.c: Likewise
37305 * loader/i386/bsdXX.c: Likewise
37306 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37307 (grub_elf64_load): Likewise
37308 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37309 All users updated
37310 (grub_elf64_load_hook_t): Likewise
37311
37312 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37313
37314 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37315 variable.
37316 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37317 don't write a menu entry for recovery mode.
37318
37319 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37320
37321 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37322 after it's no longer needed.
37323
37324 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37325
37326 * include/grub/i386/loader.h (grub_linux_prot_size)
37327 (grub_linux_tmp_addr, grub_linux_real_addr)
37328 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37329 GRUB_MACHINE_PCBIOS.
37330 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37331 common grub_util_info() call to ...
37332 (generate_image): ... here.
37333 Fix use of uninitialized memory, comparison of signed with
37334 unsigned integers and memory leak.
37335 Remove bogus module address message.
37336
37337 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37338
37339 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37340 grub_raid_register
37341 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37342
37343 2009-06-19 Pavel Roskin <proski@gnu.org>
37344
37345 * configure.ac: Remove stray AC_MSG_CHECKING.
37346
37347 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37348
37349 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37350
37351 2009-06-18 Pavel Roskin <proski@gnu.org>
37352
37353 * conf/common.rmk: Add fs_file.mod.
37354 * disk/fs_file.c: New file.
37355 * include/grub/disk.h (enum grub_disk_dev_id): Add
37356 GRUB_DISK_DEVICE_FILE_ID.
37357
37358 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37359
37360 Fix build with Apple's toolchain. Part 2
37361
37362 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37363 a fake start
37364
37365 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37366
37367 Fix build with Apple's toolchain. Part 1
37368
37369 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37370 for long calls
37371 * configure.ac: remove a leftover AC_MSG_RESULT
37372 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37373 Apple's toolchain
37374
37375 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37376
37377 Fix warnings
37378
37379 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37380 (decomp_block): initialize ch
37381 use grub_memcpy instead of memcpy
37382
37383 2009-06-17 Pavel Roskin <proski@gnu.org>
37384
37385 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37386 version, use declarations needed to use vga_text as the startup
37387 console.
37388
37389 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37390 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37391 the kernel.
37392 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37393 and grub_at_keyboard_fini(), it's done on module load and
37394 unload.
37395
37396 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37397
37398 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37399 file can't be found.
37400 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37401
37402 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37403
37404 Fix newline handling
37405
37406 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37407 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37408 (grub_script_yylex): don't segfault on unterminated script
37409 newline terminates command and variable
37410
37411 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37412
37413 avoid double grub_adjust_range call. Bug reported by David Simner
37414
37415 * kern/disk.c (grub_disk_write): change to raw disk access before
37416 calling disk_read
37417
37418 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37419
37420 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37421 spaces, for the benefit of help2man.
37422 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37423
37424 2009-06-16 Pavel Roskin <proski@gnu.org>
37425
37426 * kern/i386/halt.c: Include grub/machine/init.h.
37427 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37428
37429 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37430
37431 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37432 drivemap menuentry.
37433
37434 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37435
37436 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37437 `echo' command.
37438
37439 2009-06-16 Pavel Roskin <proski@gnu.org>
37440
37441 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37442 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37443 save %dx, we only need %dl and we never change it.
37444 * boot/i386/pc/cdboot.S: Don't set the root drive.
37445 * boot/i386/pc/pxeboot.S: Likewise.
37446 * include/grub/i386/pc/boot.h: Remove
37447 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37448 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37449 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37450 * kern/i386/pc/init.c (make_install_device): Remove references
37451 to grub_root_drive.
37452 * kern/i386/pc/startup.S: Likewise.
37453 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37454
37455 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37456
37457 xnu_uuid command
37458
37459 * commands/xnu_uuid.c: new file
37460 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37461 (xnu_uuid_mod_SOURCES): new variable
37462 (xnu_uuid_mod_CFLAGS): likewise
37463 (xnu_uuid_mod_LDFLAGS): likewise
37464 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37465 * conf/i386-ieee1275.rmk: likewise
37466 * conf/i386-pc.rmk: likewise
37467 * conf/powerpc-ieee1275.rmk: likewise
37468 * conf/sparc64-ieee1275.rmk: likewise
37469 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37470
37471 2009-06-16 Pavel Roskin <proski@gnu.org>
37472
37473 * configure.ac: Avoid '==' in test command, it's not portable.
37474
37475 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37476
37477 Probe command
37478
37479 * commands/probe.c: new file
37480 * conf/common.rmk (pkglib_MODULES): add probe.mod
37481 (probe_mod_SOURCES): new variable
37482 (probe_mod_CFLAGS): likewise
37483 (probe_mod_LDFLAGS): likewise
37484 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37485 * conf/i386-ieee1275.rmk: likewise
37486 * conf/i386-pc.rmk: likewise
37487 * conf/powerpc-ieee1275.rmk: likewise
37488 * conf/sparc64-ieee1275.rmk: likewise
37489
37490 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37491
37492 Fix handling of string like \"hello\" and "a
37493 b"
37494
37495 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37496 (grub_script_yylex): fix parsing of quoting, escaping and newline
37497
37498 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37499
37500 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37501 handling
37502
37503 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37504
37505 * util/grub-mkconfig.in: Fix parsing of --output option.
37506
37507 2009-06-12 Pavel Roskin <proski@gnu.org>
37508
37509 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37510 genmk.rb don't need to be generated or installed.
37511
37512 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37513
37514 * commands/i386/pc/drivemap_int13h.S: add more comments
37515
37516 2009-06-11 Pavel Roskin <proski@gnu.org>
37517
37518 * Makefile.in (uninstall): Uninstall manuals.
37519
37520 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37521 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37522 and update-grub_lib in two places.
37523 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37524
37525 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37526 a compiler warning.
37527
37528 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37529 `entry_lo' to fix variable shadowing.
37530
37531 2009-06-11 Christian Franke <franke@computer.org>
37532
37533 * kern/misc.c (__enable_execute_stack): Add missing return type
37534 to prevent gcc warning.
37535
37536 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37537
37538 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37539
37540 2009-06-11 Pavel Roskin <proski@gnu.org>
37541
37542 * Makefile.in: Don't rely on any scripts being executable.
37543 Always use $(SHELL) to run shell scripts.
37544
37545 * configure.ac: Always define ___main if using -nostdlib. This
37546 fixes tests on Cygwin.
37547
37548 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37549
37550 UDF fix
37551
37552 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37553 is in bytes and not in blocks
37554
37555 2009-06-11 Pavel Roskin <proski@gnu.org>
37556
37557 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37558 warning.
37559
37560 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37561
37562 * util/grub.d/30_os-prober.in: Fix a comment. Source
37563 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37564 to set the root device. Place drivemap command in the generated
37565 chain entry.
37566
37567 2009-06-11 Pavel Roskin <proski@gnu.org>
37568
37569 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37570 have long been resolved.
37571
37572 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37573
37574 * util/grub.d/10_linux.in: Capitalise "Linux".
37575
37576 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37577
37578 2009-06-11 Pavel Roskin <proski@gnu.org>
37579
37580 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37581 fix a gcc warning and ensure that the function won't ever exit.
37582
37583 * kern/i386/ieee1275/init.c: Add missing prototype for
37584 grub_stop_floppy().
37585
37586 * loader/ieee1275/multiboot2.c [__i386__]: Include
37587 grub/cpu/multiboot.h.
37588
37589 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37590 casts to short - they are not portable and cause warnings. Fix
37591 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37592
37593 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37594
37595 Drivemap fixes
37596
37597 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37598 new function
37599 (grub_get_root_biosnumber_saved): new variable
37600 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37601 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37602 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37603 %dx after the call if necessary
37604 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37605 (boot_mod_SOURCES): remove
37606 (boot_mod_CFLAGS): remove
37607 (boot_mod_LDFLAGS): remove
37608 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37609 (boot_mod_SOURCES): new variable
37610 (boot_mod_CFLAGS): likewise
37611 (boot_mod_LDFLAGS): likewise
37612 * conf/i386-efi.rmk: likewise
37613 * conf/i386-ieee1275.rmk: likewise
37614 * conf/i386-pc.rmk: likewise
37615 * conf/powerpc-ieee1275.rmk: likewise
37616 * conf/sparc64-ieee1275.rmk: likewise
37617 * conf/x86_64-efi.rmk: likewise
37618 * include/grub/i386/pc/biosnum.h: new file
37619 * lib/i386/pc/biosnum.c: likewise
37620 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37621 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37622 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37623
37624 2009-06-10 Pavel Roskin <proski@gnu.org>
37625
37626 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37627 Use separate variables. Read only the file size at the end, but
37628 not the checksum that we don't use.
37629
37630 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37631 Adjust all callers.
37632
37633 * kern/ieee1275/openfw.c: Remove libc includes.
37634 * kern/ieee1275/cmain.c: Likewise.
37635 * include/grub/ieee1275/ieee1275.h: Likewise.
37636
37637 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37638 compiler warnings.
37639
37640 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37641
37642 * Makefile.in: Remove all trailing whitespace.
37643 * conf/i386-pc.rmk: Likewise.
37644 * conf/powerpc-ieee1275.rmk: Likewise.
37645 * conf/sparc64-ieee1275.rmk: Likewise.
37646 * docs/grub.texi: Likewise.
37647 * docs/texinfo.tex: Likewise.
37648 * disk/fs_uuid.c: Likewise.
37649 * disk/lvm.c: Likewise.
37650 * disk/scsi.c: Likewise.
37651 * disk/ata.c: Likewise.
37652 * disk/ieee1275/ofdisk.c: Likewise.
37653 * disk/i386/pc/biosdisk.c: Likewise.
37654 * disk/host.c: Likewise.
37655 * disk/raid.c: Likewise.
37656 * disk/efi/efidisk.c: Likewise.
37657 * disk/usbms.c: Likewise.
37658 * disk/memdisk.c: Likewise.
37659 * disk/loopback.c: Likewise.
37660 * kern/powerpc/dl.c: Likewise.
37661 * kern/device.c: Likewise.
37662 * kern/dl.c: Likewise.
37663 * kern/sparc64/dl.c: Likewise.
37664 * kern/ieee1275/ieee1275.c: Likewise.
37665 * kern/term.c: Likewise.
37666 * kern/fs.c: Likewise.
37667 * kern/i386/dl.c: Likewise.
37668 * kern/i386/pc/startup.S: Likewise.
37669 * kern/i386/pc/init.c: Likewise.
37670 * kern/i386/pc/mmap.c: Likewise.
37671 * kern/i386/pc/lzo1x.S: Likewise.
37672 * kern/i386/ieee1275/init.c: Likewise.
37673 * kern/i386/realmode.S: Likewise.
37674 * kern/i386/tsc.c: Likewise.
37675 * kern/partition.c: Likewise.
37676 * kern/corecmd.c: Likewise.
37677 * kern/file.c: Likewise.
37678 * kern/efi/efi.c: Likewise.
37679 * kern/efi/init.c: Likewise.
37680 * kern/efi/mm.c: Likewise.
37681 * kern/main.c: Likewise.
37682 * kern/err.c: Likewise.
37683 * kern/env.c: Likewise.
37684 * kern/disk.c: Likewise.
37685 * kern/generic/millisleep.c: Likewise.
37686 * kern/generic/rtc_get_time_ms.c: Likewise.
37687 * kern/misc.c: Likewise.
37688 * kern/parser.c: Likewise.
37689 * genmk.rb: Likewise.
37690 * configure.ac: Likewise.
37691 * boot/i386/pc/diskboot.S: Likewise.
37692 * boot/i386/pc/pxeboot.S: Likewise.
37693 * boot/i386/pc/boot.S: Likewise.
37694 * boot/i386/pc/lnxboot.S: Likewise.
37695 * boot/i386/pc/cdboot.S: Likewise.
37696 * parttool/pcpart.c: Likewise.
37697 * video/readers/tga.c: Likewise.
37698 * video/video.c: Likewise.
37699 * video/bitmap.c: Likewise.
37700 * lib/envblk.c: Likewise.
37701 * lib/i386/setjmp.S: Likewise.
37702 * fs/xfs.c: Likewise.
37703 * fs/afs.c: Likewise.
37704 * fs/fat.c: Likewise.
37705 * fs/ntfs.c: Likewise.
37706 * fs/udf.c: Likewise.
37707 * fs/affs.c: Likewise.
37708 * fs/iso9660.c: Likewise.
37709 * fs/hfs.c: Likewise.
37710 * fs/fshelp.c: Likewise.
37711 * fs/ext2.c: Likewise.
37712 * fs/jfs.c: Likewise.
37713 * fs/reiserfs.c: Likewise.
37714 * fs/hfsplus.c: Likewise.
37715 * fs/minix.c: Likewise.
37716 * fs/cpio.c: Likewise.
37717 * fs/sfs.c: Likewise.
37718 * fs/ufs.c: Likewise.
37719 * efiemu/prepare.c: Likewise.
37720 * efiemu/loadcore_common.c: Likewise.
37721 * efiemu/runtime/efiemu.sh: Likewise.
37722 * efiemu/runtime/efiemu.S: Likewise.
37723 * efiemu/runtime/efiemu.c: Likewise.
37724 * efiemu/pnvram.c: Likewise.
37725 * efiemu/main.c: Likewise.
37726 * efiemu/i386/pc/cfgtables.c: Likewise.
37727 * efiemu/i386/loadcore64.c: Likewise.
37728 * efiemu/i386/loadcore32.c: Likewise.
37729 * efiemu/loadcore.c: Likewise.
37730 * efiemu/symbols.c: Likewise.
37731 * efiemu/mm.c: Likewise.
37732 * include/grub/autoefi.h: Likewise.
37733 * include/grub/datetime.h: Likewise.
37734 * include/grub/term.h: Likewise.
37735 * include/grub/hfs.h: Likewise.
37736 * include/grub/lvm.h: Likewise.
37737 * include/grub/i386/tsc.h: Likewise.
37738 * include/grub/i386/linux.h: Likewise.
37739 * include/grub/i386/xnu.h: Likewise.
37740 * include/grub/i386/efiemu.h: Likewise.
37741 * include/grub/i386/pc/biosdisk.h: Likewise.
37742 * include/grub/i386/pc/memory.h: Likewise.
37743 * include/grub/i386/pc/vbe.h: Likewise.
37744 * include/grub/parttool.h: Likewise.
37745 * include/grub/video.h: Likewise.
37746 * include/grub/memory.h: Likewise.
37747 * include/grub/fs.h: Likewise.
37748 * include/grub/partition.h: Likewise.
37749 * include/grub/xnu.h: Likewise.
37750 * include/grub/efi/api.h: Likewise.
37751 * include/grub/efi/pe32.h: Likewise.
37752 * include/grub/efi/memory.h: Likewise.
37753 * include/grub/multiboot.h: Likewise.
37754 * include/grub/usbdesc.h: Likewise.
37755 * include/grub/multiboot2.h: Likewise.
37756 * include/grub/acpi.h: Likewise.
37757 * include/grub/efiemu/efiemu.h: Likewise.
37758 * include/grub/disk.h: Likewise.
37759 * include/grub/ieee1275/ieee1275.h: Likewise.
37760 * include/grub/net.h: Likewise.
37761 * include/grub/machoload.h: Likewise.
37762 * include/grub/macho.h: Likewise.
37763 * include/multiboot.h: Likewise.
37764 * genmoddep.awk: Likewise.
37765 * normal/main.c: Likewise.
37766 * normal/menu_entry.c: Likewise.
37767 * normal/menu_viewer.c: Likewise.
37768 * normal/completion.c: Likewise.
37769 * normal/cmdline.c: Likewise.
37770 * normal/misc.c: Likewise.
37771 * normal/datetime.c: Likewise.
37772 * bus/usb/usbtrans.c: Likewise.
37773 * bus/usb/ohci.c: Likewise.
37774 * bus/usb/uhci.c: Likewise.
37775 * bus/usb/usb.c: Likewise.
37776 * mmap/efi/mmap.c: Likewise.
37777 * mmap/i386/pc/mmap_helper.S: Likewise.
37778 * mmap/i386/pc/mmap.c: Likewise.
37779 * mmap/i386/mmap.c: Likewise.
37780 * mmap/i386/uppermem.c: Likewise.
37781 * mmap/mmap.c: Likewise.
37782 * commands/acpi.c: Likewise.
37783 * commands/echo.c: Likewise.
37784 * commands/blocklist.c: Likewise.
37785 * commands/loadenv.c: Likewise.
37786 * commands/usbtest.c: Likewise.
37787 * commands/boot.c: Likewise.
37788 * commands/parttool.c: Likewise.
37789 * commands/search.c: Likewise.
37790 * commands/cat.c: Likewise.
37791 * commands/i386/pc/play.c: Likewise.
37792 * commands/i386/pc/drivemap.c: Likewise.
37793 * commands/i386/pc/vbeinfo.c: Likewise.
37794 * commands/i386/pc/acpi.c: Likewise.
37795 * commands/i386/pc/vbetest.c: Likewise.
37796 * commands/ls.c: Likewise.
37797 * commands/cmp.c: Likewise.
37798 * commands/test.c: Likewise.
37799 * commands/efi/acpi.c: Likewise.
37800 * commands/gptsync.c: Likewise.
37801 * commands/help.c: Likewise.
37802 * partmap/amiga.c: Likewise.
37803 * partmap/apple.c: Likewise.
37804 * partmap/acorn.c: Likewise.
37805 * partmap/pc.c: Likewise.
37806 * partmap/sun.c: Likewise.
37807 * partmap/gpt.c: Likewise.
37808 * script/sh/lexer.c: Likewise.
37809 * script/sh/function.c: Likewise.
37810 * font/font.c: Likewise.
37811 * font/font_cmd.c: Likewise.
37812 * loader/powerpc/ieee1275/linux.c: Likewise.
37813 * loader/efi/chainloader.c: Likewise.
37814 * loader/multiboot_loader.c: Likewise.
37815 * loader/macho.c: Likewise.
37816 * loader/i386/multiboot.c: Likewise.
37817 * loader/i386/linux.c: Likewise.
37818 * loader/i386/pc/linux.c: Likewise.
37819 * loader/i386/pc/multiboot2.c: Likewise.
37820 * loader/i386/pc/chainloader.c: Likewise.
37821 * loader/i386/pc/xnu.c: Likewise.
37822 * loader/i386/bsd_trampoline.S: Likewise.
37823 * loader/i386/efi/linux.c: Likewise.
37824 * loader/i386/multiboot_elfxx.c: Likewise.
37825 * loader/i386/bsd_helper.S: Likewise.
37826 * loader/i386/bsd.c: Likewise.
37827 * loader/i386/linux_trampoline.S: Likewise.
37828 * loader/i386/xnu_helper.S: Likewise.
37829 * loader/i386/xnu.c: Likewise.
37830 * loader/i386/bsd_pagetable.c: Likewise.
37831 * loader/i386/multiboot_helper.S: Likewise.
37832 * loader/xnu.c: Likewise.
37833 * loader/xnu_resume.c: Likewise.
37834 * io/gzio.c: Likewise.
37835 * term/efi/console.c: Likewise.
37836 * term/terminfo.c: Likewise.
37837 * term/ieee1275/ofconsole.c: Likewise.
37838 * term/i386/pc/serial.c: Likewise.
37839 * term/i386/pc/vesafb.c: Likewise.
37840 * term/i386/pc/vga.c: Likewise.
37841 * term/usb_keyboard.c: Likewise.
37842 * term/gfxterm.c: Likewise.
37843 * aclocal.m4: Likewise.
37844 * util/lvm.c: Likewise.
37845 * util/grub.d/30_os-prober.in: Likewise.
37846 * util/grub.d/10_hurd.in: Likewise.
37847 * util/console.c: Likewise.
37848 * util/grub-macho2img.c: Likewise.
37849 * util/grub-probe.c: Likewise.
37850 * util/hostfs.c: Likewise.
37851 * util/i386/pc/grub-mkimage.c: Likewise.
37852 * util/i386/pc/grub-setup.c: Likewise.
37853 * util/i386/efi/grub-mkimage.c: Likewise.
37854 * util/grub-mkconfig.in: Likewise.
37855 * util/raid.c: Likewise.
37856 * util/resolve.c: Likewise.
37857 * util/grub-mkdevicemap.c: Likewise.
37858 * util/grub-emu.c: Likewise.
37859 * util/getroot.c: Likewise.
37860 * util/hostdisk.c: Likewise.
37861 * util/usb.c: Likewise.
37862 * util/grub-editenv.c: Likewise.
37863 * util/misc.c: Likewise.
37864
37865 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37866
37867 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37868 `genparttoollist.sh'.
37869 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37870 Add `*.sh' to the list find searches for and change `mdate.sh'
37871 to `mdate-sh'.
37872
37873 2009-06-10 Pavel Roskin <proski@gnu.org>
37874
37875 * include/grub/multiboot2.h: Provide compatibility defines for
37876 multiboot2.h.
37877 * include/multiboot2.h: Include stdint.h only if needed, using
37878 angle brackets.
37879 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37880 grub/multiboot2.h.
37881 * loader/ieee1275/multiboot2.c: Likewise.
37882 * loader/multiboot2.c: Likewise.
37883 * loader/multiboot_loader.c: Likewise.
37884
37885 * configure.ac: Use -nostdlib when probing for the target. It
37886 should not be required to have libc for the target.
37887
37888 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37889 they fail without libc headers for the target.
37890 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37891 exports.
37892 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37893 preprocessor conditionals.
37894
37895 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37896 build system doesn't need to be aware of the tar.c internals.
37897
37898 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37899
37900 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37901
37902 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37903
37904 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37905 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37906
37907 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37908
37909 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37910 aren't available if ata.mod gets used.
37911
37912 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37913
37914 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37915 initialising controller.
37916 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37917
37918 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37919
37920 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37921 to choose between ata and biosdisk module on i386-pc.
37922
37923 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37924
37925 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37926 Subclass and Programming Interface fields in terms of the 3 byte
37927 Class Code register.
37928 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37929
37930 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37931 interface is OHCI. Add grub_dprintf for symmetry with
37932 bus/usb/uhci.c.
37933 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37934 interface is UHCI. Add interf variable for programming
37935 interface. Print interface with class/subclass.
37936
37937 * bus/usb/ohci.c: Set interf with correct field.
37938
37939 * bus/usb/uhci.c: Remove unneeded doubled lines.
37940 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37941 Remove whitespace inside comment.
37942
37943 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37944
37945 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37946 as fallback an equivalent option without depth.
37947
37948 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37949
37950 Not fail if unable to retrieve C/H/S on LBA disks
37951
37952 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37953 if unable to retrieve C/H/S on LBA disks
37954
37955 2009-06-08 Pavel Roskin <proski@gnu.org>
37956
37957 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37958 about aliasing.
37959
37960 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37961
37962 * Makefile.in (uninstall): Remove all $lib_DATA files.
37963
37964 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37965
37966 Bugfix: install on partitionless device
37967
37968 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37969 is a whole disk
37970
37971 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37972
37973 * Makefile.in (uninstall): Remove all $include_DATA files.
37974
37975 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37976
37977 * commands/true.c: New file. Implement the true and false commands.
37978 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37979 (true_mod_SOURCES): New variable.
37980 (true_mod_CFLAGS): Likewise.
37981 (true_mod_LDFLAGS): Likewise.
37982
37983 2009-06-05 Colin D Bennett <colin@gibibit.com>
37984
37985 Optimized font character lookup using binary search instead of linear
37986 search. Fonts now are required to have the character index ordered by
37987 code point.
37988
37989 * font/font.c (load_font_index): Verify that fonts have ordered
37990 character indices.
37991 (find_glyph): Use binary search instead of linear search to find a
37992 character in a font.
37993
37994 2009-06-05 Michael Scherer <misc@mandriva.org>
37995
37996 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37997 uses case sensitive btree.
37998 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37999 only for case insensitive filesystems.
38000
38001 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38002
38003 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38004 * conf/common.rmk (search_mod_CFLAGS): likewise
38005
38006 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38007
38008 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38009 compensate a compiler bug
38010
38011 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38012
38013 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38014 instead of '\b'
38015
38016 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38017
38018 Definitions for creating asm symbols with Apple's CC
38019
38020 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38021 [APPLE_CC] (VARIABLE): likewise
38022
38023 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38024
38025 Disable lnxboot.img when compiled
38026 with Apple's CC
38027
38028 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38029 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38030 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38031 [! APPLE_CC] (CODE_LENG): skip
38032 [! APPLE_CC] (setup_sects): likewise
38033 [! APPLE_CC]: skip filling
38034
38035 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38036
38037 Address in trampolines based on 32-bit registers when compiled
38038 with Apple's CC
38039
38040 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38041 for addresses
38042 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38043
38044 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38045
38046 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38047
38048 * kern/misc.c [APPLE_CC] (memcpy): new function
38049 [APPLE_CC] (memmove): likewise
38050 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38051 (memcpy): define alias conditionally on !APPLE_CC
38052 (memset): likewise
38053 (abort): likewise
38054 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38055 APPLE_CC are defined
38056 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38057 (grub_assert_fail): make prototype conditional
38058
38059 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38060
38061 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38062
38063 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38064 grub-macho2img
38065 (CLEANFILES): add grub-macho2img
38066 (grub_macho2img_SOURCES): new variable
38067 * kern/i386/pc/startup.S (bss_start): new variable
38068 (bss_end): likewise
38069 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38070 * util/grub-macho2img.c: new file
38071
38072 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38073
38074 Use objconv when compiling with Apple's CC
38075
38076 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38077 (efiemu64.o): likewise
38078 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38079 when compiling with Apple's CC
38080 (efiemu64_s.o): likewise
38081 * configure.ac: check for objconv when compiling with Apple's CC
38082 * genmk.rb: use objconv for modules when compiled with Apple's CC
38083
38084 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38085
38086 Define segment as well as section when compiling with
38087 Apple's CC
38088
38089 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38090 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38091 (efiemu_convert_pointer): likewise
38092 (efiemu_set_virtual_address_map): likewise
38093 (efiemu_convert_pointer): likewise
38094 (efiemu_getcrc32): likewise
38095 (init_crc32_table): likewise
38096 (reflect): likewise
38097 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38098 (GRUB_MOD_DEP): likewise
38099
38100 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38101
38102 Allow a compilation without -mcmodel=large
38103
38104 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38105 when compiled without -mcmodel=large
38106 (filter_memory_map): remove memory post 4 GiB when compiled
38107 without -mcmodel=large
38108 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38109 TARGET_CFLAGS when -mcmodel=large isn't supported
38110
38111 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38112
38113 Remove nested functions in efiemu core
38114
38115 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38116
38117 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38118
38119 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38120
38121 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38122 temporary storage
38123 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38124 using Apple's CC
38125 (grub_cpu_is_tsc_supported): likewise
38126 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38127
38128 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38129
38130 Absolute addressing through constant with Apple's cc
38131
38132 * kern/i386/pc/startup.S: Define necessary constants
38133 and address through it when using ABS with Apple's CC
38134 * boot/i386/pc/diskboot.S: likewise
38135 * boot/i386/pc/boot.S: likewise
38136 * boot/i386/pc/lnxboot.S: likewise
38137 * boot/i386/pc/cdboot.S: likewise
38138 * mmap/i386/pc/mmap_helper.S: likewise
38139 * commands/i386/pc/drivemap_int13h.S: likewise
38140
38141 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38142
38143 Check if compiler is apple cc
38144
38145 * Makefile.in (ASFLAGS): new variable
38146 (TARGET_ASFLAGS): likewise
38147 (TARGET_MODULE_FORMAT): likewise
38148 (TARGET_APPLE_CC): likewise
38149 (OBJCONV): likewise
38150 (TARGET_IMG_CFLAGS): likewise
38151 (TARGET_CPPFLAGS): add includedir
38152 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38153 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38154 Check for linker script only if compiler isn't Apple's CC
38155 (TARGET_MODULE_FORMAT): set
38156 (TARGET_APPLE_CC): likewise
38157 (TARGET_ASFLAGS): likewise
38158 (ASFLAGS): likewise
38159 Check for objcopy only if compiler isn't Apple's CC
38160 Check for BSS symbol only if compiler isn't Apple's CC
38161 * genmk.rb: adapt nm options if we use Apple's utils
38162 * aclocal.m4 (grub_apple_cc): new test
38163 (grub_apple_target_cc): likewise
38164
38165 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38166
38167 Simplify sed expressions and improve awk
38168
38169 * Makefile.in (install-local): simplify sed expression
38170 * gencmdlist.sh: likewise
38171 * genmoddep.awk: avoid adding module as a dependency of itself
38172
38173 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38174
38175 Add missing start symbols
38176
38177 * boot/i386/pc/boot.S: add start
38178 * boot/i386/pc/pxeboot.S: likewise
38179
38180 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38181
38182 Fix wrong assumptions with grub-mkimage on EFI
38183
38184 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38185 (relocate_addresses): consider both r_addend and value at offset
38186 (make_mods_section): zerofill modinfo and header
38187 (convert_elf): write prefix here
38188
38189 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38190
38191 Use .asciz instead of .string
38192
38193 * i386/pc/diskboot.S: use .asciz instead of .string
38194 * i386/pc/boot.S: likewise
38195 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38196 (GRUB_MOD_NAME): likewise
38197
38198 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38199
38200 gfxpayload support
38201
38202 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38203 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38204 (grub_video_setup): remove
38205 (grub_video_set_mode): new prototype
38206 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38207 (vid_mode): remove
38208 (linux_vesafb_res): compile only on PCBIOS
38209 (grub_linux_boot): support gfxpayload
38210 * loader/i386/pc/xnu.c (video_hook): new function
38211 (grub_xnu_set_video): support gfxpayload
38212 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38213 (DEFAULT_VIDEO_HEIGHT): likewise
38214 (DEFAULT_VIDEO_FLAGS): likewise
38215 (DEFAULT_VIDEO_MODE): new definition
38216 (video_hook): new function
38217 (grub_gfxterm_init): use grub_video_set_mode
38218 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38219 loading xnu
38220 * video/video.c (grub_video_setup): removed
38221 (grub_video_set_mode): new function based on grub_gfxterm_init and
38222 grub_video_setup
38223
38224 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38225
38226 Avoid calling biosdisk in drivemap
38227
38228 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38229 (revparse_biosdisk): likewise
38230 (list_mappings): derive name from id directly
38231 (grub_cmd_drivemap): use tryparse_diskstring
38232
38233 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38234
38235 Script fixes
38236
38237 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38238 (grub_lexer_param): add tokenonhold
38239 (grub_script_create_cmdline): remove cmdline. All callers updated
38240 (grub_script_function_create): make functionname
38241 grub_script_arg. All callers updated
38242 (grub_script_execute_argument_to_string): new prototype
38243 * kern/parser.c (state_transitions): reorder
38244 (grub_parser_cmdline_state): fix a bug and make more compact
38245 * script/sh/execute.c (grub_script_execute_argument_to_string):
38246 make global
38247 (grub_script_execute_cmdline): use new format
38248 * script/sh/function.c (grub_script_function_create): make functionname
38249 grub_script_arg. All callers updated
38250 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38251 (grub_script_yylex): remove
38252 (grub_script_yylex2): renamed to ...
38253 (grub_script_yylex): ...renamed
38254 parse the expressions like a${b}c
38255 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38256 (GRUB_PARSER_TOKEN_VAR): remove
38257 (GRUB_PARSER_TOKEN_NAME): likewise
38258 ("if"): declare as typeless
38259 ("while"): likewise
38260 ("function"): likewise
38261 ("else"): likewise
38262 ("then"): likewise
38263 ("fi"): likewise
38264 (text): remove
38265 (argument): likewise
38266 (script): accept empty scripts and make exit on error
38267 (arguments): use GRUB_PARSER_TOKEN_ARG
38268 (function): likewise
38269 (command): move error handling to script
38270 (menuentry): move grub_script_lexer_ref before
38271 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38272 argument. All callers updated
38273
38274 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38275
38276 Prevent GRUB from probing floppies during boot.
38277
38278 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38279 * commands/search.c (options): Add --no-floppy.
38280 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38281 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38282 --no-floppy when searching for UUIDs.
38283
38284 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38285
38286 Simplify the code duplication in commands/search.c.
38287
38288 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38289 (search_fs): ... this. Update all users.
38290
38291 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38292
38293 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38294
38295 2009-05-28 Pavel Roskin <proski@gnu.org>
38296
38297 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38298 Remove the original symlink explicitly.
38299
38300 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38301 just one slash. That's how grub_fshelp_find_file() does it.
38302
38303 2009-05-26 Pavel Roskin <proski@gnu.org>
38304
38305 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38306 to `str'.
38307
38308 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38309 possibly unused.
38310
38311 2009-05-25 Christian Franke <franke@computer.org>
38312
38313 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38314 register.
38315 (grub_atapi_identify): Add wait after drive select.
38316 (grub_ata_identify): Do more strict status register check before
38317 calling grub_atapi_identify (). Suppress error message if status
38318 register is 0x00 after command failure. Add status register
38319 check after PIO read to avoid bogus identify due to stuck DRQ.
38320 Thanks to Pavel Roskin for testing.
38321 (grub_device_initialize): Remove unsafe status register check.
38322 Thanks to 'phcoder' for problem report and patch.
38323 Prevent sign extension in debug message.
38324
38325 2009-05-23 Colin D Bennett <colin@gibibit.com>
38326
38327 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38328 definition file, and functions defined in `normal/menu.c' have had
38329 their prototypes moved to `include/grub/menu.h' for consistency.
38330
38331 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38332 from normal.h.
38333 (grub_menu_get_entry): Likewise.
38334 (grub_menu_get_timeout): Likewise.
38335 (grub_menu_set_timeout): Likewise.
38336 (grub_menu_execute_entry): Likewise.
38337 (grub_menu_execute_with_fallback): Likewise.
38338 (grub_menu_entry_run): Likewise.
38339
38340 * include/grub/normal.h: Re-ordered and grouped function
38341 prototypes by file that the function is defined in.
38342 (grub_menu_execute_callback): Removed; moved to menu.h.
38343 (grub_menu_get_entry): Likewise.
38344 (grub_menu_get_timeout): Likewise.
38345 (grub_menu_set_timeout): Likewise.
38346 (grub_menu_execute_entry): Likewise.
38347 (grub_menu_execute_with_fallback): Likewise.
38348 (grub_menu_entry_run): Likewise.
38349 (grub_menu_addentry): Renamed from this ...
38350 (grub_normal_add_menu_entry): ... to this.
38351
38352 * normal/main.c (grub_menu_addentry): Renamed from this ...
38353 (grub_normal_add_menu_entry): ... to this.
38354
38355 * script/sh/execute.c (grub_script_execute_menuentry): Update
38356 reference to renamed grub_menu_addentry function.
38357
38358 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38359
38360 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38361
38362 2009-05-22 Pavel Roskin <proski@gnu.org>
38363
38364 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38365 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38366 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38367 compiling for the i386 targets, but not for the utilities.
38368
38369 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38370 to grub_uint8_t.
38371 (grub_root_drive): Likewise.
38372 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38373 remove alignment.
38374 (grub_root_drive): Change size to byte.
38375 (grub_start_addr): Remove.
38376 (grub_end_addr): Likewise.
38377 (grub_apm_bios_info): Likewise.
38378
38379 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38380
38381 * normal/i386: Remove.
38382 * normal/powerpc: Likewise.
38383 * normal/sparc64: Likewise.
38384 * normal/x86_64: Likewise.
38385
38386 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38387
38388 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38389 * loader/i386/linux_trampoline.S: Fix indentation
38390 * loader/i386/xnu_helper.S: Likewise
38391
38392 2009-05-18 Colin D Bennett <colin@gibibit.com>
38393
38394 Display error messages when parsing a Lua statement fails.
38395 Previously, executing a syntactically invalid statement like
38396 ")foo" or "bar;" would silently fail.
38397
38398 * script/lua/grub_main.c (handle_lua_error): New function.
38399 (grub_lua_parse_line): Improved reporting of Lua parser and
38400 execution errors.
38401
38402 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38403
38404 Remove -Werror which causes build to fail on some systems
38405
38406 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38407 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38408 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38409
38410 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38411
38412 trampoline for linux on 64-bit platform
38413
38414 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38415 loader/i386/efi/linux_trampoline.S
38416 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38417 declaration
38418 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38419 here
38420 * loader/i386/linux_trampoline.S: moved here
38421 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38422 trampoline
38423 (jumpvector): removed
38424 (grub_linux_trampoline_start): new declaration
38425 (grub_linux_trampoline_end): likewise
38426 (grub_linux_boot): use trampoline when on 64-bit platform
38427 * loader/i386/linux.c: likewise
38428
38429 2009-05-16 Pavel Roskin <proski@gnu.org>
38430
38431 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38432 const to avoid a warning.
38433 (grub_lua_setenv): Likewise.
38434 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38435 lmsg to fix a warning.
38436
38437 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38438
38439 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38440 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38441 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38442 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38443 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38444 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38445 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38446 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38447
38448 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38449
38450 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38451
38452 2009-05-16 Bean <bean123ch@gmail.com>
38453
38454 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38455 (lua_mod_SOURCES): New variable.
38456 (lua_mod_CFLAGS): Likewise.
38457 (lua_mod_LDFLAGS): Likewise.
38458
38459 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38460 (setjmp_mod_SOURCES): New variable.
38461 (setjmp_mod_CFLAGS): Likewise.
38462 (setjmp_LDFLAGS): Likewise.
38463
38464 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38465 (setjmp_mod_SOURCES): New variable.
38466 (setjmp_mod_CFLAGS): Likewise.
38467 (setjmp_LDFLAGS): Likewise.
38468
38469 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38470 (setjmp_mod_SOURCES): New variable.
38471 (setjmp_mod_CFLAGS): Likewise.
38472 (setjmp_LDFLAGS): Likewise.
38473
38474 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38475 (setjmp_mod_SOURCES): New variable.
38476 (setjmp_mod_CFLAGS): Likewise.
38477 (setjmp_LDFLAGS): Likewise.
38478
38479 * normal/i386/setjmp.S: Moved from here ...
38480 * lib/i386/setjmp.S: ... Moved here
38481 * normal/x86_64/setjmp.S: Moved from here ...
38482 * lib/x86_64/setjmp.S: ... Moved here
38483 * normal/powerpc/setjmp.S: Moved from here ...
38484 * lib/powerpc/setjmp.S: ... Moved here
38485 * normal/sparc64/setjmp.S: Moved from here ...
38486 * lib/sparc64/setjmp.S: ... Moved here
38487
38488 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38489 returns_twice in mingw.
38490
38491 * script/lua/grub_lib.c: New file.
38492 * script/lua/grub_lib.h: Likewise.
38493 * script/lua/grub_lua.h: Likewise.
38494 * script/lua/grub_main.c: Likewise.
38495 * script/lua/lapi.c: Likewise.
38496 * script/lua/lapi.h: Likewise.
38497 * script/lua/lauxlib.c: Likewise.
38498 * script/lua/lauxlib.h: Likewise.
38499 * script/lua/lbaselib.c: Likewise.
38500 * script/lua/lcode.c: Likewise.
38501 * script/lua/lcode.h: Likewise.
38502 * script/lua/ldblib.c: Likewise.
38503 * script/lua/ldebug.c: Likewise.
38504 * script/lua/ldebug.h: Likewise.
38505 * script/lua/ldo.c: Likewise.
38506 * script/lua/ldo.h: Likewise.
38507 * script/lua/ldump.c: Likewise.
38508 * script/lua/lfunc.c: Likewise.
38509 * script/lua/lfunc.h: Likewise.
38510 * script/lua/lgc.c: Likewise.
38511 * script/lua/lgc.h: Likewise.
38512 * script/lua/linit.c: Likewise.
38513 * script/lua/liolib.c: Likewise.
38514 * script/lua/llex.c: Likewise.
38515 * script/lua/llex.h: Likewise.
38516 * script/lua/llimits.h: Likewise.
38517 * script/lua/lmathlib.c: Likewise.
38518 * script/lua/lmem.c: Likewise.
38519 * script/lua/lmem.h: Likewise.
38520 * script/lua/loadlib.c: Likewise.
38521 * script/lua/lobject.c: Likewise.
38522 * script/lua/lobject.h: Likewise.
38523 * script/lua/lopcodes.c: Likewise.
38524 * script/lua/lopcodes.h: Likewise.
38525 * script/lua/loslib.c: Likewise.
38526 * script/lua/lparser.c: Likewise.
38527 * script/lua/lparser.h: Likewise.
38528 * script/lua/lstate.c: Likewise.
38529 * script/lua/lstate.h: Likewise.
38530 * script/lua/lstring.c: Likewise.
38531 * script/lua/lstring.h: Likewise.
38532 * script/lua/lstrlib.c: Likewise.
38533 * script/lua/ltable.c: Likewise.
38534 * script/lua/ltable.h: Likewise.
38535 * script/lua/ltablib.c: Likewise.
38536 * script/lua/ltm.c: Likewise.
38537 * script/lua/ltm.h: Likewise.
38538 * script/lua/lua.h: Likewise.
38539 * script/lua/luaconf.h: Likewise.
38540 * script/lua/lualib.h: Likewise.
38541 * script/lua/lundump.c: Likewise.
38542 * script/lua/lundump.h: Likewise.
38543 * script/lua/lvm.c: Likewise.
38544 * script/lua/lvm.h: Likewise.
38545 * script/lua/lzio.c: Likewise.
38546 * script/lua/lzio.h: Likewise.
38547
38548 2009-05-16 Bean <bean123ch@gmail.com>
38549
38550 * include/grub/kernel.h (grub_module_header_types): Add type
38551 OBJ_TYPE_CONFIG.
38552
38553 * kern/main.c (grub_load_config): New function.
38554 (grub_main): Call grub_load_config to read boot config.
38555
38556 * grub-mkimage (generate_image): New parameter config_path.
38557 (options): New option --config.
38558 (main): Parse --config option, and pass it to generate_image.
38559
38560 2009-05-14 Christian Franke <franke@computer.org>
38561
38562 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38563 This fixes build on Cygwin.
38564
38565 2009-05-14 Pavel Roskin <proski@gnu.org>
38566
38567 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38568 jump. This saves two bytes, so the typical case of 2 swapped
38569 drives would fit 32 bytes.
38570
38571 2009-05-13 Pavel Roskin <proski@gnu.org>
38572
38573 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38574 grub_uint32_t to avoid a warning.
38575
38576 * loader/i386/linux.c (allocate_pages): When assigning
38577 real_mode_mem, cast through grub_size_t to fix a warning. The
38578 code already makes sure that the value would fit a pointer.
38579 (grub_linux_setup_video): Cast render_target->data to
38580 grub_size_t to fix a warning.
38581
38582 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38583
38584 * commands/i386/pc/drivemap.c: New file - implement drivemap
38585 command.
38586 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38587 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38588
38589 2009-05-13 Pavel Roskin <proski@gnu.org>
38590
38591 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38592 embedding_area_exists.
38593
38594 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38595
38596 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38597 it easier to understand / work with.
38598 Improve warning messages for cases where there's no embedding area,
38599 or when it is too small (or core.img too large).
38600
38601 2009-05-13 Pavel Roskin <proski@gnu.org>
38602
38603 * loader/i386/pc/multiboot2.c: Add necessary includes for
38604 grub_multiboot2_real_boot().
38605
38606 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38607 PX record is always little-endian. We only need the lower 2
38608 bytes of the mode.
38609
38610 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38611 facilitate code reuse.
38612 (grub_cpio_mount): Use "struct head", not a char buffer. This
38613 fixes a warning reported by gcc 4.4.
38614
38615 * kernel/disk.c (grub_disk_read): Use void pointer for the
38616 buffer.
38617 (grub_disk_write): Use const void pointer for the buffer.
38618 Adjust all callers. Remove unnecessary casts.
38619
38620 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38621
38622 * util/i386/pc/grub-install.in: Update copyright year.
38623
38624 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38625
38626 gptsync
38627
38628 * commands/gptsync.c: new file
38629 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38630 (gptsync_mod_SOURCES): new variable
38631 (gptsync_mod_CFLAGS): likewise
38632 (gptsync_mod_LDFLAGS): likewise
38633 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38634 new definition
38635 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38636 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38637 * conf/i386-ieee1275.rmk: likewise
38638 * conf/i386-pc.rmk: likewise
38639 * conf/powerpc-ieee1275.rmk: likewise
38640
38641 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38642
38643 Fixed grub-emu
38644
38645 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38646 (grub_dl_ref): likewise
38647
38648 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38649
38650 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38651 split in two functions (one for msdos and one for gpt).
38652
38653 2009-05-08 Pavel Roskin <proski@gnu.org>
38654
38655 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38656 not modified.
38657
38658 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38659 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38660 Initialize them with -1. Add sanity check for bad1. Eliminate
38661 nerr variable.
38662
38663 2009-05-08 David S. Miller <davem@davemloft.net>
38664
38665 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38666
38667 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38668
38669 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38670 existence.
38671
38672 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38673
38674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38675 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38676
38677 2009-05-05 David S. Miller <davem@davemloft.net>
38678
38679 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38680
38681 2009-05-05 Pavel Roskin <proski@gnu.org>
38682
38683 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38684 of grub_dl_ref() and grub_dl_unref().
38685 * commands/parttool.c: Remove preprocessor conditionals around
38686 grub_dl_ref() and grub_dl_unref().
38687 * fs/affs.c: Likewise.
38688 * fs/afs.c: Likewise.
38689 * fs/cpio.c: Likewise.
38690 * fs/ext2.c: Likewise.
38691 * fs/fat.c: Likewise.
38692 * fs/hfs.c: Likewise.
38693 * fs/hfsplus.c: Likewise.
38694 * fs/iso9660.c: Likewise.
38695 * fs/jfs.c: Likewise.
38696 * fs/minix.c: Likewise.
38697 * fs/ntfs.c: Likewise.
38698 * fs/reiserfs.c: Likewise.
38699 * fs/sfs.c: Likewise.
38700 * fs/udf.c: Likewise.
38701 * fs/ufs.c: Likewise.
38702 * fs/xfs.c: Likewise.
38703 * include/grub/dl.h: Likewise.
38704 * loader/xnu.c: Likewise.
38705
38706 2009-05-04 Pavel Roskin <proski@gnu.org>
38707
38708 * commands/acpi.c: Remove unused variable my_mod.
38709 * partmap/amiga.c: Likewise.
38710 * partmap/apple.c: Likewise.
38711 * partmap/gpt.c: Likewise.
38712 * partmap/pc.c: Likewise.
38713 * partmap/sun.c: Likewise.
38714 * term/gfxterm.c: Likewise.
38715 * term/i386/pc/vesafb.c: Likewise.
38716 * term/i386/pc/vga.c: Likewise.
38717
38718 2009-05-04 David S. Miller <davem@davemloft.net>
38719
38720 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38721 pointer args to grub_ieee1275_get_property().
38722
38723 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38724
38725 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38726 devices, and do not traverse down under controller nodes.
38727
38728 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38729 (grub_ofdisk_open): Use it to un-escape "," characters.
38730 * kern/disk.c (find_part_sep): New.
38731 (grub_disk_open): Use it to find the first non-escaped ','
38732 character in the disk name.
38733 * util/ieee1275/devicemap.c (escape_of_path): New.
38734 (grub_util_emit_devicemap_entry): Use it.
38735 * util/sparc64/ieee1275/grub-install.in: Update script to
38736 strip partition specifiers properly by not triggering on
38737 '\' escaped ',' characters.
38738
38739 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38740
38741 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38742 to 0x300.
38743 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38744 resolutions.
38745 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38746 on documentation from Wikipedia).
38747
38748 2009-05-04 Pavel Roskin <proski@gnu.org>
38749
38750 * disk/ata.c: Spelling fixes.
38751 * disk/raid.c: Likewise.
38752 * disk/usbms.c: Likewise.
38753 * disk/dmraid_nvidia.c: Likewise.
38754 * kern/ieee1275/openfw.c: Likewise.
38755 * kern/ieee1275/init.c: Likewise.
38756 * kern/ieee1275/cmain.c: Likewise.
38757 * boot/i386/pc/cdboot.S: Likewise.
38758 * video/readers/png.c: Likewise.
38759 * video/i386/pc/vbe.c: Likewise.
38760 * fs/udf.c: Likewise.
38761 * fs/hfs.c: Likewise.
38762 * fs/reiserfs.c: Likewise.
38763 * efiemu/runtime/efiemu.c: Likewise.
38764 * efiemu/main.c: Likewise.
38765 * efiemu/mm.c: Likewise.
38766 * include/grub/elf.h: Likewise.
38767 * include/grub/xnu.h: Likewise.
38768 * include/grub/usbdesc.h: Likewise.
38769 * include/grub/usb.h: Likewise.
38770 * include/grub/script_sh.h: Likewise.
38771 * include/grub/lib/LzmaEnc.h: Likewise.
38772 * include/grub/efiemu/efiemu.h: Likewise.
38773 * include/grub/command.h: Likewise.
38774 * normal/menu.c: Likewise.
38775 * normal/main.c: Likewise.
38776 * normal/datetime.c: Likewise.
38777 * bus/usb/uhci.c: Likewise.
38778 * mmap/i386/uppermem.c: Likewise.
38779 * mmap/mmap.c: Likewise.
38780 * commands/acpi.c: Likewise.
38781 * commands/test.c: Likewise.
38782 * partmap/apple.c: Likewise.
38783 * font/font.c: Likewise.
38784 * loader/sparc64/ieee1275/linux.c: Likewise.
38785 * loader/macho.c: Likewise.
38786 * loader/i386/bsd_trampoline.S: Likewise.
38787 * loader/i386/bsd.c: Likewise.
38788 * loader/xnu.c: Likewise.
38789 * term/i386/pc/vesafb.c: Likewise.
38790 * term/usb_keyboard.c: Likewise.
38791 * util/resolve.c: Likewise.
38792 * util/getroot.c: Likewise.
38793
38794 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38795
38796 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38797
38798 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38799
38800 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38801 build error.
38802
38803 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38804
38805 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38806 parameter only available on BIOS.
38807
38808 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38809
38810 Removed wrong semicolon in declaration
38811
38812 * grub/misc.h (grub_dprintf): remove semicolon
38813
38814 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38815
38816 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38817 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38818 is done by grub_cmd_linux() now).
38819 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38820 restore video to text mode.
38821 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38822 indicates lack of "vga=" parameter. "vga=0" is mapped to
38823 `GRUB_LINUX_VID_MODE_NORMAL'.
38824
38825 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38826
38827 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38828 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38829 and `normal/script.c'. Add `kern/rescue_reader.c',
38830 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38831 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38832 `grub_script.tab.c'.
38833
38834 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38835 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38836 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38837 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38838 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38839
38840 * Makefile.in: Remove duplicated 2008 in Copyright line.
38841
38842 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38843
38844 * util/misc.c (grub_util_warn): New function. Emits a warning
38845 unconditionally.
38846 * include/grub/util/misc.h (grub_util_warn): New declaration.
38847
38848 * util/i386/pc/grub-install.in: Understand --force and pass it down
38849 to grub-setup.
38850
38851 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38852 down to setup().
38853 (setup): Improve error messages and add warnings when requested to
38854 install in odd layouts. Refuse to install using blocklists unless
38855 --force was set.
38856
38857 2009-05-04 martin f. krafft <madduck@madduck.net>
38858
38859 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38860
38861 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38862
38863 Updated copyright year
38864
38865 * fs/hfsplus.c: updated copyright year
38866
38867 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38868
38869 HFS+ UUID
38870
38871 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38872 in the space previously used by unused3
38873 (grub_hfsplus_uuid): new function
38874 (grub_hfsplus_fs): added uuid field
38875
38876 2009-05-03 Pavel Roskin <proski@gnu.org>
38877
38878 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38879 suppress warnings. It's no longer needed.
38880 * disk/host.c: Likewise.
38881 * disk/ata_pthru.c: Likewise.
38882 * disk/loopback.c: Likewise.
38883 * hook/datehook.c: Likewise.
38884 * parttool/pcpart.c: Likewise.
38885 * fs/i386/pc/pxe.c: Likewise.
38886 * fs/ntfscomp.c: Likewise.
38887 * efiemu/main.c: Likewise.
38888 * mmap/mmap.c: Likewise.
38889 * commands/crc.c: Likewise.
38890 * commands/hexdump.c: Likewise.
38891 * commands/hdparm.c: Likewise.
38892 * commands/acpi.c: Likewise.
38893 * commands/echo.c: Likewise.
38894 * commands/minicmd.c: Likewise.
38895 * commands/blocklist.c: Likewise.
38896 * commands/memrw.c: Likewise.
38897 * commands/loadenv.c: Likewise.
38898 * commands/usbtest.c: Likewise.
38899 * commands/lsmmap.c: Likewise.
38900 * commands/boot.c: Likewise.
38901 * commands/parttool.c: Likewise.
38902 * commands/configfile.c: Likewise.
38903 * commands/search.c: Likewise.
38904 * commands/ieee1275/suspend.c: Likewise.
38905 * commands/cat.c: Likewise.
38906 * commands/i386/pc/pxecmd.c: Likewise.
38907 * commands/i386/pc/play.c: Likewise.
38908 * commands/i386/pc/halt.c: Likewise.
38909 * commands/i386/pc/vbeinfo.c: Likewise.
38910 * commands/i386/pc/vbetest.c: Likewise.
38911 * commands/lspci.c: Likewise.
38912 * commands/date.c: Likewise.
38913 * commands/handler.c: Likewise.
38914 * commands/ls.c: Likewise.
38915 * commands/test.c: Likewise.
38916 * commands/cmp.c: Likewise.
38917 * commands/efi/loadbios.c: Likewise.
38918 * commands/efi/fixvideo.c: Likewise.
38919 * commands/halt.c: Likewise.
38920 * commands/help.c: Likewise.
38921 * commands/reboot.c: Likewise.
38922 * hello/hello.c: Likewise.
38923 * script/sh/main.c: Likewise.
38924 * loader/xnu.c: Likewise.
38925 * term/terminfo.c: Likewise.
38926 * term/i386/pc/serial.c: Likewise.
38927 * term/usb_keyboard.c: Likewise.
38928
38929 2009-05-03 David S. Miller <davem@davemloft.net>
38930
38931 * normal/menu.c: Include grub/parser.h
38932
38933 2009-05-03 Pavel Roskin <proski@gnu.org>
38934
38935 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38936 not char*.
38937 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38938 Suggested by Javier Martín <lordhabbit@gmail.com>
38939
38940 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38941 efiemu??.o doesn't exist.
38942 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38943 copying.
38944
38945 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38946
38947 FreeBSD 64-bit support
38948
38949 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38950 and loader/i386/bsd_trampoline.S
38951 (bsd_mod_ASFLAGS): new variable
38952 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38953 (FREEBSD_MODTYPE_KERNEL64): likewise
38954 (grub_bsd64_trampoline_start): likewise
38955 (grub_bsd64_trampoline_end): likewise
38956 (grub_bsd64_trampoline_selfjump): likewise
38957 (grub_bsd64_trampoline_gdt): likewise
38958 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38959 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38960 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38961 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38962 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38963 of "attrib" member
38964 * loader/i386/bsd_pagetable.c: new file
38965 * loader/i386/bsd_trampoline.S: likewise
38966 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38967 (ALIGN_VAR): likewise
38968 (entry_hi): new variable
38969 (kern_end_mdofs): likewise
38970 (is_64bit): likewise
38971 (grub_freebsd_add_meta): use ALIGN_VAR
38972 (grub_e820_mmap): new declaration
38973 (grub_freebsd_add_mmap): new function
38974 (grub_freebsd_add_meta_module): support 64 bit kernels
38975 (grub_freebsd_list_modules): use ALIGN_VAR
38976 (gdt_descriptor): new declaration
38977 (grub_freebsd_boot): support 64 bit kernels
38978 (grub_bsd_elf64_hook): new function
38979 (grub_bsd_load_elf): support elf64
38980
38981 2009-05-03 Bean <bean123ch@gmail.com>
38982
38983 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38984 after we get the result of if statement.
38985
38986 2009-05-03 Bean <bean123ch@gmail.com>
38987
38988 * Makefile.in (enable_efiemu): New variable.
38989
38990 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38991 set.
38992 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38993 path.
38994 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38995 path, add -mno-red-zone option.
38996 (efiemu64_s.o): Likewise.
38997 (efiemu64.o): Use macro $^ for source file.
38998
38999 * configure.ac (--enable-efiemu): New option.
39000
39001 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39002
39003 xnu support
39004
39005 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39006 (pkglib_MODULES): add xnu.mod
39007 (xnu_mod_SOURCES): new variable
39008 (xnu_mod_CFLAGS): likewise
39009 (xnu_mod_LDFLAGS): likewise
39010 (xnu_mod_ASFLAGS): likewise
39011 * conf/i386-pc.rmk: likewise
39012 * conf/x86_64-efi.rmk: likewise
39013 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39014 new declaration
39015 * include/grub/i386/macho.h: new file
39016 * include/grub/i386/xnu.h: likewise
39017 * include/grub/macho.h: likewise
39018 * include/grub/machoload.h: likewise
39019 * include/grub/x86_64/macho.h: likewise
39020 * include/grub/x86_64/xnu.h: likewise
39021 * include/grub/xnu.h: likewise
39022 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39023 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39024 * loader/i386/efi/xnu.c: new file
39025 * loader/i386/pc/xnu.c: likewise
39026 * loader/i386/xnu.c: likewise
39027 * loader/i386/xnu_helper.S: likewise
39028 * loader/macho.c: likewise
39029 * loader/xnu.c: likewise
39030 * loader/xnu_resume.c: likewise
39031 * util/grub-dumpdevtree: likewise
39032 * include/grub/i386/pit.h: include grub/err.h
39033 (grub_pit_wait): export
39034 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39035
39036 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39037
39038 Efiemu
39039
39040 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39041 _linux_efi, linux_efi.
39042 new files in grub-emu
39043 new targets efiemu32.o and efiemu64.o
39044 * loader/linux_normal_efiemu.c: likewise
39045 * loader/i386/efi/linux.c: added preliminary efiemu support
39046 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39047 files to copy
39048 * include/grub/autoefi.h: new file
39049 * include/grub/i386/efiemu.h: likewise
39050 * include/grub/i386/pc/efiemu.h: likewise
39051 * include/grub/efi/api.h: add LL suffix when necessary
39052 new definitions relating to tables
39053 * include/grub/efiemu/efiemu.h: new file
39054 * include/grub/efiemu/runtime.h: likewise
39055 * efiemu/prepare.c: likewise
39056 * efiemu/loadcore_common.c: likewise
39057 * efiemu/loadcore64.c: likewise
39058 * efiemu/runtime/efiemu.sh: likewise
39059 * efiemu/runtime/efiemu.S: likewise
39060 * efiemu/runtime/efiemu.c: likewise
39061 * efiemu/runtime/config.h: likewise
39062 * efiemu/prepare32.c: likewise
39063 * efiemu/main.c: likewise
39064 * efiemu/modules/pnvram.c: likewise
39065 * efiemu/modules/i386: likewise
39066 * efiemu/modules/i386/pc: likewise
39067 * efiemu/modules/acpi.c: likewise
39068 * efiemu/i386/pc/cfgtables.c: likewise
39069 * efiemu/i386/loadcore64.c: likewise
39070 * efiemu/i386/loadcore32.c: likewise
39071 * efiemu/prepare64.c: likewise
39072 * efiemu/loadcore.c: likewise
39073 * efiemu/symbols.c: likewise
39074 * efiemu/mm.c: likewise
39075 * efiemu/loadcore32.c: likewise
39076
39077 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39078
39079 ACPI spoofing
39080
39081 * commands/acpi.c: new file
39082 * commands/i386/pc/acpi.c: likewise
39083 * commands/efi/acpi.c: likewise
39084 * include/grub/acpi.h: likewise
39085 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39086 (acpi_mod_SOURCES): new variable
39087 (acpi_mod_CFLAGS): likewise
39088 (acpi_mod_LDFLAGS): likewise
39089 * conf/i386-efi.rmk: likewise
39090 * conf/x86_64-efi.rmk: likewise
39091
39092 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39093
39094 Missing part from mmap patch
39095
39096 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39097 (grub_mmap_unregister)
39098 (grub_mmap_free_and_unregister): use grub_mmap_register
39099
39100 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39101
39102 Mmap services
39103
39104 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39105 * loader/i386/linux.c (find_mmap_size): likewise
39106 (allocate_pages): likewise
39107 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39108 (grub_fill_multiboot_mmap): likewise
39109 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39110 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39111 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39112 (OPENBSD_MMAP_RESERVED): likewise
39113 * include/grub/i386/pc/memory.h: include grub/memory.h
39114 (grub_lower_mem): removed
39115 (grub_upper_mem): likewise
39116 (GRUB_MACHINE_MEMORY_ACPI): new definition
39117 (GRUB_MACHINE_MEMORY_NVS): likewise
39118 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39119 (GRUB_MACHINE_MEMORY_HOLE): likewise
39120 (grub_machine_mmap_register): likewise
39121 (grub_machine_mmap_unregister): likewise
39122 (grub_machine_get_upper): likewise
39123 (grub_machine_get_lower): likewise
39124 (grub_machine_get_post64): likewise
39125 * include/grub/i386/efi/memory.h: new file
39126 * include/grub/x86_64/efi/memory.h: likewise
39127 * include/grub/efi/memory.h: likewise
39128 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39129 (mmap_mod_SOURCES): new variable
39130 (mmap_mod_LDFLAGS): likewise
39131 (mmap_mod_ASFLAGS): likewise
39132 * conf/i386-coreboot.rmk: likewise
39133 * conf/i386-ieee1275.rmk: likewise
39134 * conf/i386-efi.rmk: likewise
39135 * conf/x86_64-efi.rmk: likewise
39136 * include/grub/types.h (UINT_TO_PTR): new macro
39137 (PTR_TO_UINT32): likewise
39138 (PTR_TO_UINT64): likewise
39139 * include/grub/memory.h: new file
39140 * mmap/i386/pc/mmap.c: likewise
39141 * mmap/i386/pc/mmap_helper.S: likewise
39142 * mmap/i386/uppermem.c: likewise
39143 * mmap/mmap.c: likewise
39144 * mmap/efi/mmap.c: likewise
39145 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39146 grub_upper_mem
39147 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39148 (grub_upper_mem): likewise
39149 (grub_machine_init): don't use grub_upper_mem,
39150 make grub_lower_mem local
39151 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39152 grub_mmap_iterate and grub_mmap_get_upper
39153 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39154
39155 2009-05-02 Bean <bean123ch@gmail.com>
39156
39157 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39158 script/sh/parser.y.
39159 (pkglib_MODULES): Add normal.mod and sh.mod.
39160 (normal_SOURCES): New variable.
39161 (normal_mod_CFLAGS): Likewise.
39162 (normal_mod_LDFLAGS): Likewise.
39163 (sh_mod_SOURCES): Likewise.
39164 (sh_mod_CFLAGS): Likewise.
39165 (sh_mod_LDFLAGS): Likewise.
39166
39167 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39168 script/sh/lexer.c_DEPENDENCIES.
39169 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39170 kern/rescue_reader.c and kern/rescue_parser.c.
39171 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39172 (grub_emu_SOURCES): Change source files.
39173 (pkglib_MODULES): Remove normal.mod.
39174 (normal_SOURCES): Removed.
39175 (normal_mod_CFLAGS): Likewise.
39176 (normal_mod_LDFLAGS): Likewise.
39177 * conf/i386-coreboot.rmk: Likewise.
39178 * conf/i386-efi.rmk: Likewise.
39179 * conf/i386-ieee1276.rmk: Likewise.
39180 * conf/powerpc-ieee1275.rmk: Likewise.
39181 * conf/sparc64-ieee1275.rmk: Likewise.
39182 * conf/x86_64-efi.rmk: Likewise.
39183
39184 * include/grub/command.h (grub_command_execute): New inline function.
39185
39186 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39187
39188 * include/grub/normal.h: Remove <grub/setjmp.h>.
39189 (grub_fs_module_list): Moved to normal/autofs.c.
39190 (grub_exit_env): Removed.
39191 (grub_command_execute): Likewise.
39192 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39193 parameter script.
39194 (read_command_list): New function declaration.
39195 (read_fs_list): Likewise.
39196
39197 * include/parser.h: Include <grub/reader.h>.
39198 (grub_parser_split_cmdline): Change type of getline parameter.
39199 (grub_parser): New structure.
39200 (grub_parser_class): New variable.
39201 (grub_parser_execute): New function declaration.
39202 (grub_register_rescue_parser): Likewise.
39203 (grub_parser_register): New inline function.
39204 (grub_parser_unregister): Likewise.
39205 (grub_parser_get_current): Likewise.
39206 (grub_parser_set_current): Likewise.
39207
39208 * include/grub/reader.h: New file.
39209 * kern/reader.c: Likewise.
39210 * kern/rescue_parser.c: Likewise.
39211 * kern/rescue_reader.c: Likewise.
39212 * normal/autofs.c: Likewise.
39213 * normal/dyncmd.c: Likewise.
39214
39215 * include/grub/rescue.h: Removed.
39216 * normal/command.h: Likewise.
39217
39218 * include/grub/script.h: Moved to ...
39219 * include/grub/script_sh.h: ... Moved here.
39220 * normal/execute.c: Moved to ...
39221 * script/sh/execute.c: ... Moved here.
39222 * normal/function.c: Moved to ...
39223 * script/sh/function.c: ... Moved here.
39224 * normal/lexer.c: Moved to ...
39225 * script/sh/lexer.c: ... Moved here.
39226 * normal/parser.y: Moved to ...
39227 * script/sh/parser.y: ... Moved here.
39228 * normal/script.c: Moved to ...
39229 * script/sh/script.c: ... Moved here.
39230
39231 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39232 <grub/reader.h>.
39233 (grub_exit_env): Removed.
39234 (fs_module_list): Moved to normal/autofs.c.
39235 (grub_file_getline): Don't handle comment here.
39236 (free_menu): Skip removed field entry->commands.
39237 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39238 script parameter.
39239 (read_config_file): Removed nested parameter, change getline function.
39240 (grub_enter_normal_mode): Removed.
39241 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39242 (read_command_list): Likewise.
39243 (autoload_fs_module): Moved to normal/autofs.c.
39244 (read_fs_list): Likewise.
39245 (reader_nested): New variable.
39246 (grub_normal_execute): Run parser.sh to switch to sh parser.
39247 (grub_cmd_rescue): Removed.
39248 (cmd_normal): Removed.
39249 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39250 rescue command.
39251 (grub_cmdline_run): New function.
39252 (grub_normal_reader_init): Likewise.
39253 (grub_normal_read_line): Likewise.
39254 (grub_env_write_pager): Likewise.
39255 (cmdline): New variable.
39256 (grub_normal_reader): Likewise.
39257 (GRUB_MOD_INIT): Register normal reader and set as current, register
39258 pager hook, register normal command with grub_register_command_prio,
39259 so that it won't show up in command.lst.
39260 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39261 grub_fs_autoload_hook.
39262
39263 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39264 (grub_menu_execute_entry): Replace grub_script_execute with
39265 grub_parser_execute, change parameter to grub_command_execute.
39266
39267 * normal/menu_text.c: Remove <grub/script.h>.
39268
39269 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39270 and <grub/parser.h>.
39271 (run): Change editor_getline to use new parser interface. Change
39272 parameter to grub_command_execute.
39273
39274 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39275 <grub/reader.h> and <grub/parser.h>.
39276 (grub_load_normal_mode): Execute normal command.
39277 (grub_main): Call grub_register_core_commands,
39278 grub_register_rescue_parser and grub_register_rescue_reader, use
39279 grub_reader_loop to enter input loop.
39280
39281 * kern/parser.c (grub_parser_split_cmdline): Change type of
39282 getline parameter.
39283 (grub_parser_class): New variable.
39284 (grub_parser_execute): New function.
39285
39286 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39287 * loader/multiboot2.c: Likewise.
39288 * loader/sparc64/ieee1275/linux.c: Likewise.
39289
39290 * util/grub-emu.c (read_command_list): New dummy function.
39291
39292 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39293
39294 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39295 count to 16 for CCISS and IDA.
39296
39297 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39298
39299 * normal/menu_text.c (grub_wait_after_message): Print a newline
39300 after waiting for user input.
39301
39302 * loader/i386/linux.c: Include `<grub/normal.h>'.
39303 (grub_cmd_linux): Improve the error message about `ask' mode, by
39304 waiting for user input so it's not missed (we can do this, since
39305 user requested interaction).
39306
39307 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39308
39309 Added missing lst to grub-mkrescue
39310
39311 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39312 and ${input_dir}/parttool.lst
39313
39314 2009-04-30 David S. Miller <davem@davemloft.net>
39315
39316 * util/hostdisk.c (device_is_wholedisk): New function.
39317 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39318 zero only if device_is_wholedisk() returns true.
39319
39320 * util/hostdisk.c (convert_system_partition_to_system_disk):
39321 Handle virtual disk devices named /dev/vdiskX as found on sparc
39322 and powerpc.
39323
39324 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39325 lettered partition specifier is found, convert to numbered.
39326
39327 2009-04-29 David S. Miller <davem@davemloft.net>
39328
39329 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39330 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39331
39332 * normal/command.c: Add missing newline at end of file.
39333
39334 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39335 warnings.
39336 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39337 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39338 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39339 ihandles have a 32-bit type but need to be stored in a "void *".
39340
39341 2009-04-28 Pavel Roskin <proski@gnu.org>
39342
39343 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39344 not disk. Adjust all dependencies.
39345 (grub_fs_uuid_close): Use grub_device_close(), not
39346 grub_disk_close().
39347
39348 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39349 parent's partition, don't copy it by reference, as it gets freed
39350 on close.
39351
39352 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39353
39354 Preboot hooks support
39355
39356 * commands/boot.c (struct grub_preboot_t): new declaration
39357 (preboots_head): new variable
39358 (preboots_tail): likewise
39359 (grub_loader_register_preboot_hook): new function
39360 (grub_loader_unregister_preboot_hook): likewise
39361 (grub_loader_set): launch preboot hooks
39362 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39363 (grub_loader_register_preboot_hook): new declaration
39364 (grub_loader_unregister_preboot_hook): likewise
39365
39366 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39367
39368 Warning fix
39369
39370 * disk/scsi.c (grub_scsi_open): added missing cast when
39371 calling grub_dprintf
39372
39373 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39374
39375 Bug and warning fixes
39376
39377 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39378 declaration
39379 * commands/test.c (test_parse): fixed bug with file tests and corrected
39380 declaration of find_file
39381
39382 2009-04-26 Pavel Roskin <proski@gnu.org>
39383
39384 * Makefile.in: Don't install empty manual pages if help2man is
39385 missing. Use help2man option for output, not shell redirection.
39386
39387 2009-04-26 David S. Miller <davem@davemloft.net>
39388
39389 * util/grub-mkdevicemap.c (make_device_map): Add missing
39390 NESTED_FUNC_ATTR to process_device().
39391
39392 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39393
39394 Test command
39395
39396 * commands/test.c: rewritten to use bash-like test
39397
39398 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39399
39400 Parttool autoloading and improvements
39401
39402 * Makefile.in (pkglib_DATA): add parttool.lst
39403 (parttool.lst): new target
39404 * genmk.rb: generate parttool-*
39405 (CLEANFILES): add #{parttool}
39406 (PARTTOOLFILES): new variable
39407 * genparttoollist.sh: new file
39408 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39409 (grub_pcpart_type): likewise
39410 * commands/parttool.c (helpmsg): new variable
39411 (grub_cmd_parttool): output help if not enough arguments are supplied
39412 autoload modules
39413 (GRUB_MOD_INIT(parttool)): use helpmsg
39414
39415 2009-04-24 David S. Miller <davem@davemloft.net>
39416
39417 Avoiding opening same device multiple times in device iterator.
39418
39419 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39420 and use it to build a list of partitions in iterate_disk() and
39421 iterate_partition().
39422
39423 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39424 on disk->data.
39425
39426 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39427 grub_devalias_iterate() result instead of unconditional 0.
39428 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39429 Also, capture hook return value, either directly or via
39430 grub_children_iterate(), and propagate to caller.
39431 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39432 grub_children_iterate): Return value is now 'int' instead of
39433 'grub_err_t'.
39434 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39435 like a proper iterator, stopping when hooks return non-zero.
39436 (grub_devalias_iterate): Likewise.
39437
39438 2009-04-23 David S. Miller <davem@davemloft.net>
39439
39440 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39441
39442 2009-04-22 David S. Miller <davem@davemloft.net>
39443
39444 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39445 is larger than address_cells, use that value for address_cells too.
39446
39447 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39448 IEEE1275_MAX_PATH_LEN): Define.
39449 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39450 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39451 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39452 'devtype'. Explicitly NULL terminate devalias expansion.
39453
39454 * util/sparc64/ieee1275/misc.c: New file.
39455 * util/sparc64/ieee1275/grub-setup.c: New file.
39456 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39457 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39458 * util/sparc64/ieee1275/grub-install.in: New file.
39459 * util/ieee1275/ofpath.c: New file.
39460 * util/ieee1275/devicemap.c: New file.
39461 * util/devicemap.c: New file.
39462 * util/deviceiter.c: New file.
39463 * kern/sparc64/ieee1275/init.c: New file.
39464 * include/grub/util/ofpath.h: New file.
39465 * include/grub/util/deviceiter.h: New file.
39466 * util/grub-mkdevicemap.c: Include deviceiter.h.
39467 Implement using grub_util_emit_devicemap_entry and
39468 grub_util_iterate_devices.
39469 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39470 util/devicemap.c into grub-mkdevicemap
39471 * conf/i386-efi.rmk: Likewise.
39472 * conf/i386-ieee1275.rmk: Likewise.
39473 * conf/i386-pc.rmk: Likewise.
39474 * conf/powerpc-ieee1275.rmk: Likewise.
39475 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39476 images and installation utilities. Build kernel as image
39477 instead of as elf binary. Use common rules as much as possible.
39478
39479 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39480
39481 Correct GPT definition
39482
39483 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39484 of "attrib" member
39485
39486 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39487
39488 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39489
39490 2009-04-19 David S. Miller <davem@davemloft.net>
39491
39492 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39493 (grub_rescue_cmd_linux): Rename to...
39494 (grub_cmd_linux): and fix prototype.
39495 (grub_rescue_cmd_initrd): Rename to...
39496 (grub_cmd_initrd): and fix prototype.
39497 (cmd_linux, cmd_initrd): New.
39498 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39499 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39500
39501 2009-04-17 Pavel Roskin <proski@gnu.org>
39502
39503 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39504 format.
39505 (grub_ohci_transfer): Likewise.
39506
39507 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39508
39509 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39510 return without a value. Fix inconsistent indentation.
39511
39512 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39513 match struct grub_fs.
39514
39515 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39516 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39517 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39518 * commands/lspci.c (grub_lspci_iter): Likewise.
39519
39520 2009-04-16 Bean <bean123ch@gmail.com>
39521
39522 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39523 value.
39524
39525 2009-04-15 Pavel Roskin <proski@gnu.org>
39526
39527 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39528 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39529 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39530 definitions.
39531
39532 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39533
39534 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39535 that no multiple data or metadata areas are supported and `Unknown
39536 metadata header'.
39537
39538 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39539
39540 Move loader out of the kernel
39541
39542 * kern/loader.c: moved to ...
39543 * commands/boot.c: ... moved here
39544 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39545 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39546 * include/grub/kernel.h (grub_machine_fini): export
39547 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39548 (grub_loader_set): likewise
39549 (grub_loader_unset): likewise
39550 (grub_loader_boot): likewise
39551 * conf/common.rmk: new module boot.mod
39552 (pkglib_MODULES): add boot.mod
39553 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39554 (grub_emu_SOURCES): likewise
39555 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39556 (grub_emu_SOURCES): likewise
39557 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39558 (grub_emu_SOURCES): likewise
39559 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39560 (grub_emu_SOURCES): likewise
39561 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39562 (grub_emu_SOURCES): likewise
39563 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39564 (grub_emu_SOURCES): likewise
39565 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39566 (grub_emu_SOURCES): likewise
39567
39568 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39569
39570 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39571
39572 * kern/misc.c (grub_itoa): Removed function
39573 (grub_ltoa): likewise
39574 (grub_vsprintf): use grub_lltoa
39575
39576 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39577
39578 Restore grub-emu
39579
39580 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39581 * conf/i386-coreboot.rmk: likewise
39582 * conf/i386-ieee1275.rmk: likewise
39583 * conf/powerpc-ieee1275.rmk: likewise
39584
39585 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39586
39587 * INSTALL: Add that `./autogen.sh' needs to be run before
39588 `./configure.'.
39589
39590 2009-04-14 Bean <bean123ch@gmail.com>
39591
39592 * Makefile.in (pkglib_DATA): Add handler.lst.
39593 (handler.lst): New rule.
39594
39595 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39596 * conf/i386-coreboot.rmk: Likewise.
39597 * conf/i386-ieee1275.rmk: Likewise.
39598 * conf/i386-efi.rmk: Likewise.
39599 * conf/x86_64-efi.rmk: Likewise.
39600 * conf/powerpc-ieee1275.rmk: Likewise.
39601 * conf/sparc64-ieee1275.rmk: Likewise.
39602
39603 * genhandlerlist.sh: New file.
39604
39605 * genmk.rb: Add rules to generate handler.lst.
39606
39607 * include/grub/normal.h (grub_file_getline): New function definition.
39608 (read_handler_list): Likewise.
39609 (free_handler_list): Likewise.
39610
39611 * include/grub/term.h (grub_term_register_input): Add name parameter
39612 for auto generation of handler.lst.
39613 (grub_term_register_output): Likewise.
39614
39615 * normal/handler.c: New file.
39616
39617 * normal/main.c (get_line): Renamed to grub_file_getline.
39618 (read_config_file): Use the newly renamed grub_file_getline.
39619 (read_command_list): Likewise.
39620 (read_fs_list): Likewise.
39621 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39622 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39623
39624 * term/efi/console.c (grub_console_init): Add name parameter for auto
39625 generation of handler.lst.
39626 * term/gfxterm.c: Likewise.
39627 * term/i386/pc/at_keyboard.c: Likewise.
39628 * term/i386/pc/console.c: Likewise.
39629 * term/i386/pc/serial.c: Likewise.
39630 * term/i386/pc/vesafb.c: Likewise.
39631 * term/i386/pc/vga.c: Likewise.
39632 * term/i386/pc/vga_text.c: Likewise.
39633 * term/ieee1275/ofconsole.c: Likewise.
39634 * term/usb_keyboard.c: Likewise.
39635
39636 2009-04-14 Bean <bean123ch@gmail.com>
39637
39638 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39639 properly with null character.
39640
39641 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39642
39643 * configure: Remove.
39644 * config.h.in: Likewise.
39645 * stamp-h.in: Likewise.
39646 * DISTLIST: Likewise.
39647 * conf/common.mk: Likewise.
39648 * conf/i386-coreboot.mk: Likewise.
39649 * conf/i386-efi.mk: Likewise.
39650 * conf/i386-ieee1275.mk: Likewise.
39651 * conf/i386.mk: Likewise.
39652 * conf/i386-pc.mk: Likewise.
39653 * conf/powerpc-ieee1275.mk: Likewise.
39654 * conf/sparc64-ieee1275.mk: Likewise.
39655 * conf/x86_64-efi.mk: Likewise.
39656
39657 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39658 develop on GRUB.
39659
39660 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39661 David S. Miller <davem@davemloft.net>
39662
39663 * util/hostdisk.c (make_device_name): Fix buffer length
39664 calculations.
39665
39666 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39667
39668 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39669 <sys/param.h> and <sys/sysctl.h>.
39670 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39671 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39672 opening the device and reset them afterwards.
39673
39674 2009-04-13 Pavel Roskin <proski@gnu.org>
39675
39676 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39677 Reported by John Stanley <jpsinthemix@verizon.net>
39678
39679 2009-04-13 Robert Millan <rmh@aybabtu.com>
39680
39681 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39682 that name for menuentries when appropriate.
39683
39684 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39685
39686 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39687
39688 2009-04-13 Robert Millan <rmh@aybabtu.com>
39689
39690 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39691 to Linux, simply abort telling the user it's no longer supported.
39692
39693 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39694
39695 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39696 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39697 `freebsd_loadenv' only when devices.hints exist.
39698
39699 2009-04-13 Pavel Roskin <proski@gnu.org>
39700
39701 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39702
39703 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39704
39705 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39706 partition number.
39707 (grub_drive): Likewise.
39708
39709 2009-04-13 David S. Miller <davem@davemloft.net>
39710
39711 * kern/sparc64/ieee1275/ieee1275.c: New file.
39712 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39713 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39714 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39715 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39716 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39717 grub_ieee1275_alloc_physmem): Declare new exported functions.
39718
39719 * include/grub/sparc64/ieee1275/loader.h: New file.
39720 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39721 * include/grub/sparc64/kernel.h: Likewise.
39722 * loader/sparc64/ieee1275/linux.c: Likewise.
39723
39724 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39725 (grub_fstest_SOURCES): Likewise.
39726
39727 * util/hostdisk.c (make_device_name): Do not make any assumptions
39728 about the length of drive names.
39729
39730 * kern/dl.c (grub_dl_load_file): Close file immediately when
39731 we are done using it.
39732
39733 2009-04-12 David S. Miller <davem@davemloft.net>
39734
39735 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39736 values. Noticed by Pavel Roskin.
39737
39738 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39739 target compiler.
39740
39741 * genmk.rb: Add more flexible image type specification, also
39742 pass --strip-unneeded to objcopy.
39743 * conf/i386-pc.rmk: Use *_FORMAT.
39744 * conf/i386-pc.mk: Rebuilt.
39745
39746 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39747 (OFDISK_HASH_SZ): Define.
39748 (ofdisk_hash): New hash table.
39749 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39750 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39751 instead of device phandle which is not unique.
39752
39753 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39754 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39755 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39756 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39757 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39758 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39759 GRUB_KERNEL_MACHINE_DATA_END): Define.
39760 (grub_kernel_image_size, grub_total_module_size): Declare.
39761
39762 2009-04-12 Pavel Roskin <proski@gnu.org>
39763
39764 * configure.ac: Change the logic when we check for target tools.
39765 Do it when the target is specified and it's different from the
39766 specified value of the host.
39767
39768 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39769
39770 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39771 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39772 GNU/kFreeBSD. Check if a device is a character device. Use
39773 DIOCGMEDIASIZE to get the size.
39774 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39775 support for GNU/kFreeBSD.
39776 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39777 is a character device instead of a block device. Add support for
39778 FreeBSD device names.
39779
39780 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39781 is a character device instead of a block device.
39782
39783 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39784 is a character device instead of a block device.
39785
39786 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39787
39788 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39789 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39790 FreeBSD. Check if a device is a character device. Use
39791 DIOCGMEDIASIZE to get the size.
39792 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39793 support for FreeBSD.
39794 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39795 is a character device instead of a block device. Add support for
39796 FreeBSD device names.
39797
39798 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39799 a character device instead of a block device.
39800 (grub_util_check_char_device): New function.
39801
39802 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39803 a character device instead of a block device.
39804
39805 * include/grub/util/getroot.h (grub_util_check_char_device): New
39806 prototype.
39807
39808 2009-04-11 David S. Miller <davem@davemloft.net>
39809
39810 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39811 static libgcc.
39812 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39813 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39814 function, if present.
39815 (__bswapdi2): Likewise.
39816
39817 * include/grub/sparc64/ieee1275/boot.h: New file.
39818 * boot/sparc64/ieee1275/boot.S: Likewise.
39819 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39820
39821 * kern/misc.c (grub_ltoa): New function.
39822 (grub_vsprintf): Use it to format 'long' integers.
39823
39824 2009-04-10 David S. Miller <davem@davemloft.net>
39825
39826 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39827 slots are of type grub_ieee1275_cell_t.
39828 (grub_nand_read): Likewise.
39829 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39830 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39831 macros are used to compare values in arg/ret block of the call.
39832 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39833 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39834 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39835 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39836 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39837 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39838 grub_ieee1275_close, grub_ieee1275_set_property,
39839 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39840 grub_ieee1275_cell_t.
39841 * kern/ieee1275/openfw.c (grub_map): Likewise.
39842 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39843 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39844
39845 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39846 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39847 (grub_devalias_iterate): Likewise.
39848
39849 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39850
39851 UFS improvements
39852
39853 * fs/ufs.c (INODE_NBLOCKS): new definition
39854 (struct grub_ufs_dirent): added fields for non-BSD dirents
39855 (grub_ufs_get_file_block): fixed double indirect handling
39856 (grub_ufs_lookup_symlink): use more robust way to determine whether
39857 symlink is inline
39858 (grub_ufs_find_file): support for non-BSD dirents
39859 (grub_ufs_dir): support for non-BSD dirents
39860
39861 2009-04-10 Bean <bean123ch@gnail.com>
39862
39863 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39864 attribute, otherwise the size would be wrong for i386 platform.
39865
39866 * include/grub/pci.h (grub_pci_read_word): New inline function.
39867 (grub_pci_read_byte): Likewise.
39868 (grub_pci_write): Likewise.
39869 (grub_pci_write_word): Likewise.
39870 (grub_pci_write_byte): Likewise.
39871
39872 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39873
39874 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39875 (find_framebuf): Scan pci to locate the frame buffer address.
39876
39877 * commands/efi/fixvideo.c: New file.
39878
39879 * commands/efi/loadbios.c: Likewise.
39880
39881 * commands/memrw.c: Likewise.
39882
39883 * util/grub-dumpbios.in: Likewise.
39884
39885 * conf/common.rmk (grub-dumpbios): New utility.
39886 (pkglib_MODULES): New module memrw.mod.
39887 (memrw_mod_SOURCE): New macro.
39888 (memrw_mod_CFLAGS): Likewise.
39889 (memrw_mod_LDFLAGS): Likewise.
39890
39891 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39892 fixvideo.mod.
39893 (loadbios_mod_SOURCE): New macro.
39894 (loadbios_mod_CFLAGS): Likewise.
39895 (loadbios_mod_LDFLAGS): Likewise.
39896 (fixvideo_mod_SOURCE): Likewise.
39897 (fixvideo_mod_CFLAGS): Likewise.
39898 (fixvideo_mod_LDFLAGS): Likewise.
39899
39900 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39901 fixvideo.mod.
39902 (loadbios_mod_SOURCE): New macro.
39903 (loadbios_mod_CFLAGS): Likewise.
39904 (loadbios_mod_LDFLAGS): Likewise.
39905 (fixvideo_mod_SOURCE): Likewise.
39906 (fixvideo_mod_CFLAGS): Likewise.
39907 (fixvideo_mod_LDFLAGS): Likewise.
39908
39909 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39910
39911 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39912
39913 2009-04-07 David S. Miller <davem@davemloft.net>
39914
39915 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39916 support for R_SPARC_OLO10 relocations. Fix compile warning for
39917 R_SPARC_WDISP30 case.
39918 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39919
39920 2009-04-06 Pavel Roskin <proski@gnu.org>
39921
39922 * include/grub/misc.h (ARRAY_SIZE): New macro.
39923 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39924 New macro.
39925 * loader/i386/linux.c (allocate_pages): Use free_pages().
39926 (grub_linux_unload): Don't use free_pages().
39927 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39928 wrong index. Treat all other modes as text modes.
39929 (grub_cmd_linux): Initialize vid_mode unconditionally to
39930 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39931
39932 * commands/help.c (print_command_help): Use cmd->prio, not
39933 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39934
39935 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39936
39937 Parttool
39938
39939 * parttool/pcpart.c: new file
39940 * commands/parttool.c: likewise
39941 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39942 (parttool_mod_SOURCES): new variable
39943 (parttool_mod_CFLAGS): likewise
39944 (parttool_mod_LDFLAGS): likewise
39945 (pcpart_mod_SOURCES): likewise
39946 (pcpart_mod_CFLAGS): likewise
39947 (pcpart_mod_LDFLAGS): likewise
39948 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39949 and parttool/pcpart.c
39950 * conf/i386-efi.rmk: likewise
39951 * conf/i386-ieee1275.rmk: likewise
39952 * conf/i386-pc.rmk: likewise
39953 * conf/powerpc-ieee1275.rmk: likewise
39954 * conf/sparc64-ieee1275.rmk: likewise
39955 * conf/x86_64-ieee1275.rmk: likewise
39956
39957 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39958
39959 Support for mtime and further expandability of dir command
39960
39961 * include/grub/lib/datetime.h: moved to ...
39962 * include/grub/datetime.h: ... moved here and added
39963 declaration of grub_unixtime2datetime. All users updated
39964 * include/grub/fs.h: new syntax for dir and mtime functions in
39965 struct grub_fs
39966 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39967 and GRUB_FSHELP_FLAGS_MASK
39968 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39969 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39970 (grub_ext2_mtime): new function
39971 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39972 (grub_hfsplus_mtime): new function
39973 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39974 (GRUB_UFS_ATTR_FILE): likewise
39975 (GRUB_UFS_ATTR_LNK): likewise
39976 (struct grub_ufs_sblock): new fields mtime
39977 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39978 all users updated
39979 (grub_ufs_dir): mtime support
39980 (grub_ufs_mtime): new function
39981 * fs/affs.c (grub_affs_dir): use new dir syntax
39982 * fs/afs.c (grub_afs_dir): likewise
39983 * fs/cpio.c (grub_cpio_dir): likewise
39984 * fs/fat.c (grub_fat_find_dir): likewise
39985 * fs/hfs.c (grub_hfs_dir): likewise
39986 * fs/iso9660.c (grub_iso9660_dir): likewise
39987 * fs/jfs.c (grub_jfs_dir): likewise
39988 * fs/minix.c (grub_minix_dir): likewise
39989 * fs/ntfs.c (grub_ntfs_dir): likewise
39990 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39991 * fs/sfs.c (grub_sfs_dir): likewise
39992 * fs/xfs.c (grub_xfs_dir): likewise
39993 * util/hostfs.c (grub_hostfs_dir): likewise
39994 * lib/datetime.c: moved to ...
39995 * normal/datetime.c: ... moved here
39996 (grub_unixtime2datetime): new function
39997 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39998 * normal/completion.c (iterate_dir): use new dir syntax
39999 * normal/misc.c (grub_normal_print_device_info): tell the
40000 last modification time of a volume
40001 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40002 * conf/common.rmk: added lib/datetime.c to ls.mod
40003 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40004 (normal_mod_SOURCES): likewise
40005 (datetime_mod_SOURCES): Removed lib/datetime.c
40006 * conf/i386-efi.rmk: likewise
40007 * conf/i386-ieee1275.rmk: likewise
40008 * conf/i386-pc.rmk: likewise
40009 * conf/powerpc-ieee1275.rmk: likewise
40010 * conf/sparc64-ieee1275.rmk: likewise
40011 * conf/x86_64-efi.rmk: likewise
40012
40013 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40014
40015 Trim trailing spaces in FAT label and support mtools-like labels
40016
40017 * fs/fat.c (grub_fat_iterate_dir): New function based
40018 on grub_fat_find_dir
40019 (grub_fat_find_dir): use grub_fat_iterate_dir
40020 (grub_fat_label): likewise
40021
40022 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40023
40024 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40025 and command.h
40026 remove extraneous kernel_elf_HEADERS
40027
40028 2009-04-04 Bean <bean123ch@gnail.com>
40029
40030 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40031
40032 * util/misc.c: Likewise.
40033
40034 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40035
40036 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40037 instead of grub_printf.
40038
40039 2009-04-03 Robert Millan <rmh@aybabtu.com>
40040
40041 * loader/i386/linux.c (grub_linux_setup_video): Fill
40042 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40043 values from `mode info' structure instead of hardcoded
40044 values.
40045
40046 2009-04-01 Pavel Roskin <proski@gnu.org>
40047
40048 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40049 unused now.
40050 * genmk.rb: Likewise.
40051 * configure.ac: Likewise.
40052
40053 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40054
40055 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40056 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40057
40058 2009-04-01 David S. Miller <davem@davemloft.net>
40059
40060 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40061 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40062 (grub_setjmp): Mark with 'returns_twice' attribute.
40063 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40064 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40065 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40066
40067 2009-04-01 Robert Millan <rmh@aybabtu.com>
40068
40069 Reapply fix from 2008-07-28 which was accidentally reverted; also
40070 perform the same fix to a similar check in same function.
40071
40072 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40073 with the same number are found, just use issue a warning with
40074 grub_dprintf(), as this error has been reported to be non-fatal.
40075
40076 2009-03-31 Pavel Roskin <proski@gnu.org>
40077
40078 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40079 for cross-compilation.
40080
40081 2009-03-30 Robert Millan <rmh@aybabtu.com>
40082
40083 Fix i386-ieee1275 build.
40084
40085 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40086 Remove declaration.
40087
40088 2009-03-30 Pavel Roskin <proski@gnu.org>
40089
40090 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40091 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40092 zero-terminated, rely only on the strlen value. Fix comparison
40093 of strings differing in length.
40094
40095 2009-03-30 Robert Millan <rmh@aybabtu.com>
40096
40097 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40098 checking for abi version. Improve error messages on BIOS to notify
40099 user about `linux16' command.
40100
40101 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40102
40103 Leak fixes
40104
40105 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40106 in case of collision
40107 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40108
40109 2009-03-29 Robert Millan <rmh@aybabtu.com>
40110
40111 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40112 set `vid_mode' accordingly.
40113 (grub_linux_boot): Process `vid_mode' and set video mode.
40114
40115 2009-03-29 Robert Millan <rmh@aybabtu.com>
40116
40117 * util/grub.d/10_linux.in (linux_entry): New function.
40118 Factorize generation of Linux boot entries.
40119
40120 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40121
40122 Make the format of Environment Block plain text. The boot loader
40123 part is not tested well yet.
40124
40125 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40126 (buffer): Removed.
40127 (envblk): Likewise.
40128 (usage): Remove "info" and "clear". Add "unset". Update the
40129 description of "set", as this does not delete variables any
40130 longer.
40131 (create_envblk_file): Complete rewrite.
40132 (open_envblk_file): Likewise.
40133 (cmd_info): Removed.
40134 (cmd_list): Likewise.
40135 (cmd_set): Likewise.
40136 (cmd_clear): Likewise.
40137 (list_variables): New function.
40138 (write_envblk): Likewise.
40139 (set_variables): Likewise.
40140 (unset_variables): Likewise.
40141 (main): Complete rewrite.
40142
40143 * commands/loadenv.c (buffer): Removed.
40144 (envblk): Likewise.
40145 (open_envblk_file): New function.
40146 (read_envblk_file): Complete rewrite.
40147 (grub_cmd_load_env): Likewise.
40148 (grub_cmd_list_env): Likewise.
40149 (struct blocklist): New struct.
40150 (free_blocklists): New function.
40151 (check_blocklists): Likewise.
40152 (write_blocklists): Likewise.
40153 (grub_cmd_save_env): Complete rewrite.
40154
40155 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40156 a plain text signature.
40157 (GRUB_ENVBLK_MAXLEN): Removed.
40158 (struct grub_envblk): Complete rewrite.
40159 (grub_envblk_find): Removed.
40160 (grub_envblk_insert): Likewise.
40161 (grub_envblk_open): New prototype.
40162 (grub_envblk_set): Likewise.
40163 (grub_envblk_delete): Put const to VALUE.
40164 (grub_envblk_iterate): Put const to NAME and VALUE.
40165 (grub_envblk_close): New prototype.
40166 (grub_envblk_buffer): New inline function.
40167 (grub_envblk_size): Likewise.
40168
40169 * lib/envblk.c: Include grub/mm.h.
40170 (grub_env_find): Removed.
40171 (grub_envblk_open): New function.
40172 (grub_envblk_close): Likewise.
40173 (escaped_value_len): Likewise.
40174 (find_next_line): Likewise.
40175 (grub_envblk_insert): Removed.
40176 (grub_envblk_set): New function.
40177 (grub_envblk_delete): Complete rewrite.
40178 (grub_envblk_iterate): Likewise.
40179
40180 2009-03-28 Robert Millan <rmh@aybabtu.com>
40181
40182 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40183 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40184 variables. Use 16-bit loader.
40185 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40186 loader.
40187 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40188 (grub_linux16_boot): ... this. Update all users.
40189 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40190 (grub_linux_boot): ... this. Update all users.
40191
40192 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40193 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40194 commands to `linux16' and `initrd16'.
40195 (GRUB_MOD_FINI(linux)): Rename to ...
40196 (GRUB_MOD_FINI(linux16)): ... this.
40197
40198 2009-03-24 Pavel Roskin <proski@gnu.org>
40199
40200 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40201 not just for compilation.
40202
40203 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40204
40205 Move multiboot helper out of kernel
40206
40207 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40208 `loader/i386/multiboot_helper.S'.
40209 * conf/i386-coreboot.rmk: Likewise
40210 * conf/i386-ieee1275.rmk: Likewise
40211
40212 * kern/i386/loader.S: Move multiboot helpers from here...
40213 * loader/i386/multiboot_helper.S: ...moved here
40214 * include/grub/i386/loader.h: Move declarations of multiboot
40215 helpers from here...
40216 * include/grub/i386/multiboot.h: ...moved here
40217 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40218
40219 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40220
40221 * kern/env.c (grub_env_context_open): Added an argument to specify
40222 whether a new context inherits exported variables from current
40223 one. This is useful when making a sandbox to interpret a config
40224 file.
40225 All callers updated.
40226
40227 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40228
40229 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40230
40231 * kern/env.c (grub_env_context_close): Fix memory leaks.
40232
40233 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40234
40235 * normal/main.c (grub_normal_execute): Added an argument
40236 BATCH to specify if an interactive interface should be provided
40237 after reading a config file.
40238 All callers updated.
40239 (read_command_list): Prevent being executed twice.
40240 (read_fs_list): Likewise.
40241
40242 * include/grub/normal.h (grub_normal_execute): Updated the
40243 prototype.
40244
40245 2009-03-22 Pavel Roskin <proski@gno.org>
40246
40247 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40248 _start.
40249 * kern/i386/pc/startup.S: Likewise.
40250 * kern/i386/efi/startup.S: Likewise.
40251 * kern/i386/ieee1275/startup.S: Likewise.
40252 * kern/i386/coreboot/startup.S: Likewise.
40253 * kern/x86_64/efi/startup.S: Likewise.
40254
40255 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40256 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40257 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40258
40259 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40260
40261 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40262
40263 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40264 limit detection.
40265 Use vaddr of correct segment for entry_point.
40266
40267 2009-03-21 Bean <bean123ch@gmail.com>
40268
40269 * commands/blocklist.c: Add include file <grub/command.h>, remove
40270 <grub/normal.h> and <grub/arg.h>.
40271 (grub_cmd_blocklist): Use the new command interface.
40272 (GRUB_MOD_INIT): Likewise.
40273 (GRUB_MOD_FINI): Likewise.
40274 * commands/boot.c: Likewise.
40275 * commands/cat.c: Likewise.
40276 * commands/cmp.c: Likewise.
40277 * commands/configfile.c: Likewise.
40278 * commands/crc.c: Likewise.
40279 * commands/echo.c: Likewise.
40280 * commands/halt.c: Likewise.
40281 * commands/handler.c: Likewise.
40282 * commands/hdparm.c: Likewise.
40283 * commands/help.c: Likewise.
40284 * commands/hexdump.c: Likewise.
40285 * commands/loadenv.c: Likewise.
40286 * commands/ls.c: Likewise.
40287 * commands/lsmmap.c: Likewise.
40288 * commands/lspci.c: Likewise.
40289 * commands/loadenv.c: Likewise.
40290 * commands/read.c: Likewise.
40291 * commands/reboot.c: Likewise.
40292 * commands/search.c: Likewise.
40293 * commands/sleep.c: Likewise.
40294 * commands/test.c: Likewise.
40295 * commands/usbtest.c: Likewise.
40296 * commands/videotest.c: Likewise.
40297 * commands/i386/cpuid.c: Likewise.
40298 * commands/i386/pc/halt.c: Likewise.
40299 * commands/i386/pc/play.c: Likewise.
40300 * commands/i386/pc/pxecmd.c: Likewise.
40301 * commands/i386/pc/vbeinfo.c: Likewise.
40302 * commands/i386/pc/vbetest.c: Likewise.
40303 * commands/ieee1275/suspend.c: Likewise.
40304 * disk/loopback.c: Likewise.
40305 * font/font_cmd.c: Likewise.
40306 * hello/hello.c: Likewise.
40307 * loader/efi/appleloader.c: Likewise.
40308 * loader/efi/chainloader.c: Likewise.
40309 * loader/i386/bsd.c: Likewise.
40310 * loader/i386/efi/linux.c: Likewise.
40311 * loader/i386/ieee1275/linux.c: Likewise.
40312 * loader/i386/linux.c: Likewise.
40313 * loader/i386/pc/chainloader.c: Likewise.
40314 * loader/i386/pc/linux.c: Likewise.
40315 * loader/powerpc/ieee1275/linux.c: Likewise.
40316 * loader/multiboot_loader.c: Likewise.
40317 * term/gfxterm.c: Likewise.
40318 * term/i386/pc/serial.c: Likewise.
40319 * term/terminfo.c: Likewise.
40320
40321 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40322 * term/i386/pc/vga.c: Likewise.
40323 * video/readers/jpeg.c: Likewise.
40324 * video/readers/png.c: Likewise.
40325 * video/readers/tga.c: Likewise.
40326
40327 * util/grub-fstest (cmd_loopback): Removed.
40328 (cmd_blocklist): Likewise.
40329 (cmd_ls): Likewise.
40330 (grub_register_command): Likewise.
40331 (grub_unregister_command): Likewise.
40332 (execute_command): Use grub_command_find to locate command and execute
40333 it.
40334
40335 * include/grub/efi/chainloader.h: Removed.
40336 * loader/efi/chainloader_normal.c: Likewise.
40337 * loader/i386/bsd_normal.c: Likewise.
40338 * loader/i386/pc/chainloader_normal.c: Likewise.
40339 * loader/i386/pc/multiboot_normal.c: Likewise.
40340 * loader/linux_normal.c: Likewise.
40341 * loader/multiboot_loader_normal.c: Likewise.
40342 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40343
40344 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40345 and grub_register_command_p1.
40346
40347 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40348 kern/command.c, lib/arg.c and commands/extcmd.c.
40349 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40350 (minicmd_mod_SOURCES): New variable.
40351 (minicmd_mod_CFLAGS): Likewise.
40352 (minicmd_mod_LDFLAGS): Likewise.
40353 (extcmd_mod_SOURCES): Likewise.
40354 (extcmd_mod_CFLAGS): Likewise.
40355 (extcmd_mod_LDFLAGS): Likewise.
40356 (boot_mod_SOURCES): Removed.
40357 (boot_mod_CFLAGS): Likewise.
40358 (boot_mod_LDFLAGS): Likewise.
40359
40360 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40361 kern/corecmd.c.
40362 (kernel_img_HEADERS): Add command.h.
40363 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40364 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40365 and lib/arg.c.
40366 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40367 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40368 remove the corresponding normal mode command.
40369 (normal_mod_SOURCES): Remove normal/arg.c.
40370 * conf/i386-coreboot.rmk: Likewise.
40371 * conf/i386-efi.rmk: Likewise.
40372 * conf/i386-ieee1275.rmk: Likewise.
40373 * conf/powerpc-ieee1275.rmk: Likewise.
40374 * conf/x86_64-efi.rmk: Likewise.
40375
40376 * include/grub/arg.h: Move from here ...
40377 * include/grub/lib/arg.h: ... to here.
40378
40379 * normal/arg.c: Move from here ...
40380 * lib/arg.c: ... to here.
40381
40382 * commands/extcmd.c: New file.
40383 * commands/minicmd.c: Likewise.
40384 * include/grub/command.h: Likewise.
40385 * include/grub/extcmd.h: Likewise.
40386 * kern/command.c: Likewise.
40387 * kern/corecmd.c: Likewise.
40388
40389 * kern/list.c (grub_list_iterate): Return int instead of void.
40390 (grub_list_insert): New function.
40391 (grub_prio_list_insert): Likewise.
40392
40393 * kern/rescue.c (grub_rescue_command): Removed.
40394 (grub_rescue_command_list): Likewise.
40395 (grub_rescue_register_command): Likewise.
40396 (grub_rescue_unregister_command): Likewise.
40397 (grub_rescue_cmd_boot): Move to minicmd.c
40398 (grub_rescue_cmd_help): Likewise.
40399 (grub_rescue_cmd_info): Likewise.
40400 (grub_rescue_cmd_boot): Likewise.
40401 (grub_rescue_cmd_testload): Likewise.
40402 (grub_rescue_cmd_dump): Likewise.
40403 (grub_rescue_cmd_rmmod): Likewise.
40404 (grub_rescue_cmd_lsmod): Likewise.
40405 (grub_rescue_cmd_exit): Likewise.
40406 (grub_rescue_print_devices): Moved to corecmd.c.
40407 (grub_rescue_print_files): Likewise.
40408 (grub_rescue_cmd_ls): Likewise.
40409 (grub_rescue_cmd_insmod): Likewise.
40410 (grub_rescue_cmd_set): Likewise.
40411 (grub_rescue_cmd_unset): Likewise.
40412 (attempt_normal_mode): Use grub_command_find to get normal module.
40413 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40414 commands, remove grub_rescue_register_command calls.
40415
40416 * normal/command.c (grub_register_command): Removed.
40417 (grub_unregister_command): Likewise.
40418 (grub_command_find): Likewise.
40419 (grub_iterate_commands): Likewise.
40420 (rescue_command): Likewise.
40421 (export_command): Moved to corecmd.c.
40422 (set_command): Removed.
40423 (unset_command): Likewise.
40424 (insmod_command): Likewise.
40425 (rmmod_command): Likewise.
40426 (lsmod_command): Likewise.
40427 (grub_command_init): Likewise.
40428
40429 * normal/completion.c (iterate_command): Use cmd->prio to check for
40430 active command.
40431 (complete_arguments): Use grub_extcmd_t structure to find options.
40432 (grub_normal_do_completion): Change function grub_iterate_commands to
40433 grub_command_iterate.
40434
40435 * normal/execute.c (grub_script_execute_cmd): No need to parse
40436 argument here.
40437
40438 * normal/main.c (grub_dyncmd_dispatcher): New function.
40439 (read_command_list): Register unload commands as dyncmd.
40440 (grub_cmd_normal): Use new command interface, register rescue,
40441 unregister normal at entry, register normal, unregister rescue at exit.
40442
40443 * include/grub/list.h (grub_list_test_t): New type.
40444 (grub_list_iterate): Return int instead of void.
40445 (grub_list_insert): New function.
40446 (GRUB_AS_NAMED_LIST_P): New macro.
40447 (GRUB_AS_PRIO_LIST): Likewise.
40448 (GRUB_AS_PRIO_LIST_P): Likewise.
40449 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40450 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40451 (grub_prio_list): New structure.
40452 (grub_prio_list_insert): New function.
40453 (grub_prio_list_remove): New inline function.
40454
40455 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40456 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40457 (GRUB_COMMAND_FLAG_MENU): Likewise.
40458 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40459 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40460 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40461 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40462 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40463 (grub_command): Likewise.
40464 (grub_register_command): Likewise.
40465 (grub_command_find): Likewise.
40466 (grub_iterate_commands): Likewise.
40467 (grub_command_init): Likewise.
40468 (grub_arg_parse): Likewise.
40469 (grub_arg_show_help): Likewise.
40470
40471 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40472 (grub_rescue_unregister_command): Likewise.
40473
40474 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40475 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40476 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40477
40478 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40479 grub_rescue_cmd_initrd.
40480 * include/grub/i386/loader.h: Likewise.
40481 * include/grub/x86_64/loader.h: Likewise.
40482
40483 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40484
40485 2009-03-21 Bean <bean123ch@gmail.com>
40486
40487 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40488 instead of stat in mingw environment.
40489
40490 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40491
40492 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40493
40494 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40495 AC_CONFIG_LINKS.
40496
40497 2009-03-21 Bean <bean123ch@gmail.com>
40498
40499 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40500 out of range error.
40501
40502 2009-03-18 Michel Dänzer <michel@daenzer.net>
40503
40504 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40505 checking inode flags for EXT4_EXTENTS_FLAG.
40506
40507 2009-03-18 Robert Millan <rmh@aybabtu.com>
40508
40509 * loader/i386/linux.c: Include `<grub/video.h>' and
40510 `<grub/i386/pc/vbe.h>'..
40511 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40512 (grub_linux32_boot): Attempt to configure video settings with
40513 grub_linux_setup_video().
40514 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40515 to avoid grub_console_fini() which would step out of graphical mode
40516 unconditionally.
40517
40518 2009-03-14 Robert Millan <rmh@aybabtu.com>
40519
40520 Fix build on powerpc.
40521 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40522
40523 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40524
40525 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40526 background image command.
40527
40528 2009-03-12 Colin D Bennett <colin@gibibit.com>
40529
40530 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40531 (grub_gfxterm_putchar): Extract pairs of identical calls to
40532 draw_cursor out of conditional blocks.
40533
40534 2009-03-11 Pavel Roskin <proski@gnu.org>
40535
40536 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40537 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40538
40539 2009-03-11 Robert Millan <rmh@aybabtu.com>
40540
40541 * loader/i386/multiboot_elfxx.c
40542 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40543
40544 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40545
40546 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40547 `kern/handler.c'.
40548
40549 2009-03-11 Robert Millan <rmh@aybabtu.com>
40550
40551 * loader/i386/multiboot.c (code_size): New variable.
40552 (grub_multiboot): Define offsets by adding to `code_size' rather
40553 than subtracting from `grub_multiboot_payload_size'. Provide
40554 4-byte alignment to MBI and others by increasing
40555 `boot_loader_name_length' appropriately.
40556
40557 * loader/i386/multiboot_elfxx.c
40558 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40559
40560 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40561
40562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40563 `fs/ext2.c'.
40564
40565 2009-03-08 Robert Millan <rmh@aybabtu.com>
40566
40567 Make loader/i386/linux.c usable on i386-pc again.
40568
40569 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40570 memory to heap.
40571 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40572 `#error' stanza.
40573
40574 2009-03-07 Bean <bean123ch@gmail.com>
40575
40576 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40577 allocation.
40578
40579 2009-03-06 Robert Millan <rmh@aybabtu.com>
40580
40581 Fix display issue on terminals with screen size other than 80x25
40582 (e.g. gfxterm with resolution higher than 640x480).
40583
40584 * normal/main.c (grub_normal_init_page): Display title text in a
40585 position relative to the center of the terminal instead of relying
40586 on a hardcoded offset.
40587
40588 2009-03-04 Robert Millan <rmh@aybabtu.com>
40589
40590 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40591 installed.
40592
40593 * Makefile.in (host_kernel): New variable.
40594 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40595 scripts instead of just the windows one.
40596 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40597
40598 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40599
40600 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40601 `kern/handler.c'.
40602 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40603 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40604 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40605 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40606 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40607 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40608
40609 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40610
40611 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40612 or if there's no space for the disk label and print the partition number on a
40613 invalid magic.
40614
40615 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40616
40617 * util/misc.c: Include <time.h>.
40618 (grub_millisleep): New function.
40619
40620 2009-03-04 Bean <bean123ch@gmail.com>
40621
40622 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40623 another option -mno-red-zone.
40624
40625 * commands/handler.c: Change module description.
40626
40627 * kern/handler.c: Add missing space at the end of description line.
40628
40629 * kern/list.c: Likewise.
40630
40631 2009-03-03 Robert Millan <rmh@aybabtu.com>
40632
40633 Move more components to the relocation area, and fix mbi pointer
40634 handling to use the destination rather than the origin (thanks to
40635 Vladimir Serbinenko for spotting).
40636
40637 * loader/i386/multiboot.c (mbi_dest): New variable.
40638 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40639 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40640 relocation area.
40641
40642 2009-03-01 Bean <bean123ch@gmail.com>
40643
40644 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40645 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40646 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40647 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40648
40649 * loader/i386/efi/linux.c (acpi_guid): New variable.
40650 (acpi_guid): Likewise.
40651 (EBDA_SEG_ADDR): New constant.
40652 (LOW_MEM_ADDR): Likewise.
40653 (FAKE_EBDA_SEG): Likewise.
40654 (fake_bios_data): New function.
40655 (grub_linux_boot): Call fake_bios_data.
40656
40657 2009-03-01 Bean <bean123ch@gmail.com>
40658
40659 * commands/terminal.c: Removed.
40660
40661 * commands/handler.c: New file.
40662
40663 * include/grub/list.h: Likewise.
40664
40665 * include/grub/handler.h: Likewise.
40666
40667 * kern/list.c: Likewise.
40668
40669 * kern/handler.c: Likewise.
40670
40671 * kern/term.h: Include header file <grub/handler.h>.
40672 (grub_term_input): Move next field to the beginning.
40673 (grub_term_output): Likewise.
40674 (grub_term_input_class): New variable.
40675 (grub_term_output_class): Likewise.
40676 (grub_term_register_input): Changed to inline function.
40677 (grub_term_register_output): Likewise.
40678 (grub_term_unregister_input): Likewise.
40679 (grub_term_unregister_output): Likewise.
40680 (grub_term_set_current_input): Likewise.
40681 (grub_term_set_current_output): Likewise.
40682 (grub_term_get_current_input): Likewise.
40683 (grub_term_get_current_output): Likewise.
40684 (grub_term_iterate_input): Removed.
40685 (grub_term_iterate_output): Likewise.
40686
40687 * kern/term.c (grub_term_list_input): Removed.
40688 (grub_term_list_output): Likewise.
40689 (grub_term_input_class): New variable.
40690 (grub_term_output_class): Likewise.
40691 (grub_cur_term_input): Change variable as macro.
40692 (grub_cur_term_output): Likewise.
40693 (grub_term_register_input): Removed.
40694 (grub_term_register_output): Likewise.
40695 (grub_term_unregister_input): Likewise.
40696 (grub_term_unregister_output): Likewise.
40697 (grub_term_set_current_input): Likewise.
40698 (grub_term_set_current_output): Likewise.
40699 (grub_term_iterate_input): Likewise.
40700 (grub_term_iterate_output): Likewise.
40701 (grub_term_get_current_input): Likewise.
40702 (grub_term_get_current_output): Likewise.
40703
40704 * util/grub-editenv.c: Include header file <grub/handler.h>.
40705 (grub_term_get_current_input): Removed.
40706 (grub_term_get_current_output): Likewise.
40707 (grub_term_input_class): New variable.
40708 (grub_term_output_class): Likewise.
40709
40710 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40711 (grub_term_get_current_output): Likewise.
40712 (grub_term_input_class): New variable.
40713 (grub_term_output_class): Likewise.
40714
40715 * util/grub-probe.c (grub_term_get_current_input): Removed.
40716 (grub_term_get_current_output): Likewise.
40717 (grub_term_input_class): New variable.
40718 (grub_term_output_class): Likewise.
40719
40720 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40721 (grub_term_get_current_output): Likewise.
40722 (grub_term_input_class): New variable.
40723 (grub_term_output_class): Likewise.
40724
40725 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40726 (terminal_mod_SOURCES): Likewise.
40727 (terminal_mod_CFLAGS): Likewise.
40728 (terminal_mod_LDFLAGS): Likewise.
40729
40730 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40731 handler.c.
40732 (kernel_img_SOURCES): Add list.c and handler.c.
40733 (kernel_img_HEADERS): Add list.h and handler.h.
40734
40735 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40736 handler.c.
40737 (kernel_mod_SOURCES): Add list.c and handler.c.
40738 (kernel_mod_HEADERS): Add list.h and handler.h.
40739
40740 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40741 handler.c.
40742 (kernel_elf_SOURCES): Add list.c and handler.c.
40743 (kernel_elf_HEADERS): Add list.h and handler.h.
40744
40745 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40746 handler.c.
40747 (kernel_elf_SOURCES): Add list.c and handler.c.
40748 (kernel_elf_HEADERS): Add list.h and handler.h.
40749
40750 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40751 handler.c.
40752 (kernel_mod_SOURCES): Add list.c and handler.c.
40753 (kernel_mod_HEADERS): Add list.h and handler.h.
40754
40755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40756 handler.c.
40757 (kernel_elf_SOURCES): Add list.c and handler.c.
40758 (kernel_elf_HEADERS): Add list.h and handler.h.
40759
40760 2009-02-27 Robert Millan <rmh@aybabtu.com>
40761
40762 Factorize elf32 / elf64 code in Multiboot loader. This will
40763 prevent it from getting out of sync again.
40764
40765 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40766 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40767 grub_multiboot_load_elf64): Move from here ...
40768 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40769 grub_multiboot_load_elf): ... to here (new file).
40770
40771 2009-02-27 Robert Millan <rmh@aybabtu.com>
40772
40773 * util/grub.d/10_linux.in: Rename "single-user mode" to
40774 "recovery mode".
40775
40776 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40777
40778 Don't leak in SCSI code.
40779 * disk/scsi.c (grub_scsi_close): free `scsi'.
40780
40781 2009-02-27 Robert Millan <rmh@aybabtu.com>
40782
40783 * loader/i386/pc/multiboot.c: Move from here ...
40784 * loader/i386/multiboot.c: ... to here. Update all users.
40785
40786 2009-02-27 Robert Millan <rmh@aybabtu.com>
40787
40788 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40789 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40790
40791 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40792
40793 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40794 b-tree.
40795
40796 2009-02-27 Robert Millan <rmh@aybabtu.com>
40797
40798 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40799 `0x' qualifier as 0 when base is specified as parameter).
40800
40801 2009-02-24 Bean <bean123ch@gmail.com>
40802
40803 * configure.ac: Check for -mcmodel=large in x86_64 target.
40804
40805 * include/grub/efi/api.h (efi_call_10): New macro.
40806 (efi_wrap_10): New function.
40807
40808 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40809 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40810 (GRUB_PE32_REL_BASED_LOW): Likewise.
40811 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40812 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40813 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40814 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40815 (GRUB_PE32_REL_BASED_REL): Likewise.
40816 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40817 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40818 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40819
40820 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40821 issue.
40822
40823 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40824 (efi_wrap_10): New function.
40825
40826 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40827
40828 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40829 MB/MBP model (NV chipset).
40830 (devdata_devs): Add devpath_5 to the list.
40831
40832 * load/i386/efi/linux.c (video_base): Remove variable.
40833 (RGB_MASK): New macro.
40834 (RGB_MAGIC): Likewise.
40835 (LINE_MIN): Likewise.
40836 (LINE_MAX): Likewise.
40837 (FBTEST_STEP): Likewise.
40838 (FBTEST_COUNT): Likewise.
40839 (fb_list): New variable.
40840 (grub_find_video_card): Remove function.
40841 (find_framebuf): New function.
40842 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40843 line length.
40844
40845 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40846 problem for x86_64.
40847
40848 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40849
40850 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40851
40852 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40853 coding tool name.
40854
40855 2009-02-22 Robert Millan <rmh@aybabtu.com>
40856
40857 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40858 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40859 in our relocation, instead of using it directly from heap. Also
40860 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40861
40862 2009-02-21 Robert Millan <rmh@aybabtu.com>
40863
40864 Implement USB keyboard support (based on patch by Marco Gerards)
40865
40866 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40867 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40868 (usb_keyboard_mod_LDFLAGS): New variables.
40869
40870 * term/usb_keyboard.c: New file.
40871
40872 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40873
40874 Corrected wrong declaration
40875
40876 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40877
40878 2009-02-14 Christian Franke <franke@computer.org>
40879
40880 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40881 (grub_lspci_iter): Print class code and programming interface byte.
40882
40883 2009-02-14 Christian Franke <franke@computer.org>
40884
40885 * gendistlist.sh: Ignore `.svn' directories.
40886
40887 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40888
40889 * fs/fat.c: Add 2009 to Copyright line.
40890
40891 2009-02-14 Christian Franke <franke@computer.org>
40892
40893 * commands/hdparm.c: New file. Provides `hdparm' command
40894 which sends ATA commands via grub_disk_ata_pass_through ().
40895
40896 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40897
40898 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40899 and <grub/cpu/io.h> to include/grub/ata.h.
40900 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40901 (GRUB_CDROM_SECTOR_SIZE): Remove.
40902 (GRUB_ATA_*): Move to include/grub/ata.h.
40903 (GRUB_ATAPI_*): Likewise.
40904 (enum grub_ata_commands): Likewise.
40905 (enum grub_ata_timeout_milliseconds): Likewise.
40906 (struct grub_ata_device): Likewise.
40907 (grub_ata_regset): Likewise.
40908 (grub_ata_regget): Likewise.
40909 (grub_ata_regset2): Likewise.
40910 (grub_ata_regget2): Likewise.
40911 (grub_ata_check_ready): Likewise.
40912 (grub_ata_wait_not_busy): Remove static, exported in
40913 include/grub/ata.h.
40914 (grub_ata_wait_drq): Likewise.
40915 (grub_ata_pio_read): Likewise.
40916
40917 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40918 function for hdparm.mod.
40919
40920 * include/grub/ata.h: New file, contains declarations from
40921 disk/ata.c.
40922 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40923
40924 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40925 (grub_disk_ata_pass_through): New exported variable.
40926
40927 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40928
40929 2009-02-13 Colin D Bennett <colin@gibibit.com>
40930
40931 Support multiple fallback entries, and provide an API to support
40932 executing default+fallback menu entries. Renamed the `terminal' menu
40933 viewer to `text'.
40934
40935 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40936 variable declaration.
40937 (grub_menu_execute_callback): New structure declaration.
40938 (grub_menu_execute_callback_t): New typedef.
40939 (grub_menu_execute_with_fallback): New function declaration.
40940 (grub_menu_get_entry): Likewise.
40941 (grub_menu_get_timeout): Likewise.
40942 (grub_menu_set_timeout): Likewise.
40943
40944 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40945
40946 * normal/menu.c (grub_wait_after_message): Moved to
40947 `normal/menu_text.c'.
40948 (draw_border): Likewise.
40949 (print_message): Likewise.
40950 (print_entry): Likewise.
40951 (print_entries): Likewise.
40952 (grub_menu_init_page): Likewise.
40953 (get_entry_number): Likewise.
40954 (print_timeout): Likewise.
40955 (run_menu): Likewise.
40956 (grub_menu_execute_entry): Likewise.
40957 (show_text_menu): Likewise.
40958 (get_and_remove_first_entry_number): New function.
40959 (grub_menu_execute_with_fallback): Likewise.
40960 (get_entry): Renamed to ...
40961 (grub_menu_get_entry): .. this and made it global.
40962 (get_timeout): Renamed to ...
40963 (grub_menu_get_timeout): ... this and made it global.
40964 (set_timeout): Renamed to ...
40965 (grub_menu_set_timeout): ... this and made it global.
40966 (grub_normal_terminal_menu_viewer): Renamed to ...
40967 (grub_normal_text_menu_viewer): ... this.
40968
40969 * normal/menu_text.c: New file. Extracted text-menu-specific code
40970 from normal/menu.c.
40971
40972 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40973 (normal_mod_SOURCES): Likewise.
40974
40975 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40976 (normal_mod_SOURCES): Likewise.
40977
40978 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40979 (normal_mod_SOURCES): Likewise.
40980
40981 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40982 (normal_mod_SOURCES): Likewise.
40983
40984 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40985 (normal_mod_SOURCES): Likewise.
40986
40987 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40988 (normal_mod_SOURCES): Likewise.
40989
40990 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40991 (normal_mod_SOURCES): Likewise.
40992
40993 2009-02-11 Robert Millan <rmh@aybabtu.com>
40994
40995 * util/grub.d/00_header.in: Update old reference to `font' command.
40996
40997 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40998
40999 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41000
41001 Based on patch from Javier Martín.
41002
41003 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41004
41005 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41006 to avoid false positives with FAT.
41007 (grub_fstest_SOURCES): Likewise.
41008 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41009 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41011 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41012 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41013 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41014
41015 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41016
41017 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41018 bpb.version_specific.fat12_or_fat16.fstype and
41019 bpb.version_specific.fat32.fstype.
41020
41021 2009-02-08 Robert Millan <rmh@aybabtu.com>
41022
41023 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41024
41025 2009-02-08 Robert Millan <rmh@aybabtu.com>
41026
41027 * Makefile.in (host_os, host_cpu): New variables.
41028 (target_os): Remove. Update all users.
41029
41030 2009-02-08 Marco Gerards <marco@gnu.org>
41031
41032 * Makefile.in (enable_grub_emu_usb): New variable.
41033 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41034 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41035 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41036 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41037 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41038 `usbtest.mod' and `usbms.mod'.
41039 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41040 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41041 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41042 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41043 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41044 variables.
41045
41046 * disk/usbms.c: New file.
41047
41048 * include/grub/usb.h: Likewise.
41049
41050 * include/grub/usbtrans.h: Likewise.
41051
41052 * include/grub/usbdesc.h: Likewise.
41053
41054 * bus/usb/usbtrans.c: Likewise.
41055
41056 * bus/usb/ohci.c: Likewise.
41057
41058 * bus/usb/uhci.c: Likewise.
41059
41060 * bus/usb/usbhub.c: Likewise.
41061
41062 * bus/usb/usb.c: Likewise.
41063
41064 * commands/usbtest.c: Likewise.
41065
41066 * util/usb.c: Likewise.
41067
41068 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41069
41070 * configure.ac: Test for libusb presence.
41071
41072 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41073
41074 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41075
41076 * kern/mm.c: Add more comments.
41077
41078 2009-02-08 Robert Millan <rmh@aybabtu.com>
41079
41080 Patch from Javier Martín.
41081 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41082 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41083
41084 2009-02-08 Robert Millan <rmh@aybabtu.com>
41085
41086 * fs/cpio.c: Split tar functionality to ...
41087 * fs/tar.c: ... here (new file). Update all users.
41088
41089 2009-02-07 Robert Millan <rmh@aybabtu.com>
41090
41091 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41092 backward-incompatible features.
41093
41094 Based on patch from Javier Martín, with some adjustments.
41095
41096 2009-02-07 Michael Scherer <misc@mandriva.org>
41097
41098 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41099
41100 2009-02-07 Robert Millan <rmh@aybabtu.com>
41101
41102 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41103 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41104 after the RAID stuff.
41105
41106 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41107
41108 Fixes problem when running vbetest command as reported by
41109 Vladimir Serbinenko <phcoder@gmail.com>.
41110
41111 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41112
41113 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41114
41115 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41116 /dev/md/NpN style mdraid devices.
41117
41118 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41119
41120 * util/unifont2pff.rb: Remove.
41121
41122 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41123
41124 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41125 `#'.
41126
41127 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41128
41129 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41130 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41131 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41132 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41134 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41135 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41136
41137 2009-02-02 Christian Franke <franke@computer.org>
41138
41139 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41140
41141 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41142
41143 * INSTALL: Note that we now require at least autoconf 2.59 and
41144 that LZO is optional.
41145
41146 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41147
41148 Base on patch on bug #24154 created by Tomas Tintera
41149 <trosos@seznam.cz>.
41150
41151 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41152
41153 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41154
41155 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41156 <bero@arklinux.org>.
41157
41158 * normal/parser.y (script_init): Add missing semicolon.
41159
41160 2009-01-31 Colin D Bennett <colin@gibibit.com>
41161
41162 * normal/main.c: Add include to grub/menu_viewer.h.
41163 (free_menu_entry_classes): Added.
41164 (grub_normal_menu_addentry): Added class property handling.
41165 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41166 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41167
41168 * normal/menu_viewer.c: New file.
41169
41170 * normal/menu.c (run_menu_entry): Renamed to ...
41171 (grub_menu_execute_entry): ... this and made it as global.
41172 (grub_menu_run): Renamed to ...
41173 (show_text_menu): ... this and made it local.
41174 (show_text_menu): Adapt to new function names.
41175 (grub_normal_terminal_menu_viewer): New global variable.
41176
41177 * include/grub/menu.h: New file.
41178
41179 * include/grub/menu_viewer.h: New file.
41180
41181 * include/grub/normal.h: Added include to grub/menu.h.
41182 (grub_menu_entry): Moved to include/grub/menu.h.
41183 (grub_menu_entry_t): Likewise.
41184 (grub_menu): Likewise.
41185 (grub_menu_t): Likewise.
41186 (grub_normal_terminal_menu_viewer): Added.
41187 (grub_menu_execute_entry): Likewise.
41188 (grub_menu_run): Removed.
41189
41190 * DISTLIST: Added include/grub/menu.h.
41191 Added include/grub/menu_viewer.h.
41192 Added normal/menu_viewer.c.
41193
41194 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41195
41196 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41197 arglist for menutitle arguments.
41198
41199 * normal/main.c (grub_normal_menu_addentry): Likewise.
41200
41201 * normal/parser.y (menuentry): Likewise.
41202
41203 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41204
41205 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41206 (grub_script_create_cmdmenu): Likewise.
41207
41208 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41209
41210 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41211 changes.
41212
41213 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41214
41215 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41216
41217 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41218
41219 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41220
41221 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41222
41223 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41224
41225 2009-01-30 Christian Franke <franke@computer.org>
41226
41227 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41228 in option help text.
41229
41230 2009-01-27 Pavel Roskin <proski@gnu.org>
41231
41232 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41233
41234 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41235
41236 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41237
41238 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41239
41240 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41241 unregister function.
41242
41243 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41244
41245 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41246
41247 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41248
41249 * util/grub-mkfont.c (usage): Fix typo.
41250
41251 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41252
41253 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41254
41255 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41256
41257 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41258
41259 * kern/misc.c (grub_strcasecmp): New function.
41260 (grub_strcasecmp): Use grub_size_t instead of int for length.
41261 Fix return value.
41262 * include/grub/misc.h: Update function prototypes.
41263
41264 2009-01-26 Robert Millan <rmh@aybabtu.com>
41265
41266 * configure.ac: Fix cross-compilation check.
41267
41268 2009-01-22 Christian Franke <franke@computer.org>
41269
41270 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41271 (precision) digit string. Allow `.format2' without `format1' (width).
41272 Limit input chars for `%s' output to `format2' if specified. This is
41273 compatible with standard printf ().
41274
41275 2009-01-22 Christian Franke <franke@computer.org>
41276
41277 * disk/ata.c (grub_ata_wait_status): Replace by ...
41278 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41279 other status bits may be invalid while BSY is asserted.
41280 (grub_ata_check_ready): New function.
41281 (grub_ata_cmd): Removed.
41282 (grub_ata_wait_drq): New function.
41283 (grub_ata_strncpy): Remove inline.
41284 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41285 and error check now done by grub_ata_wait_drq ().
41286 (grub_ata_pio_write): Likewise.
41287 (grub_atapi_identify): Set DEV before check for !BSY. Use
41288 grub_ata_wait_drq () to wait for data.
41289 (grub_ata_device_initialize): Add status register check to
41290 detect missing SATA slave devices. Add debug messages.
41291 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41292 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41293 transfer loop by grub_ata_pio_write ().
41294 (grub_ata_identify): Set DEV before check for !BSY. Use
41295 grub_ata_wait_drq () to wait for data.
41296 (grub_ata_setaddress): Set DEV before check for !BSY.
41297 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41298 read/write in one loop. Fix invalid command on write. Fix incomplete
41299 command on (size % batch) == 0. Add missing error check after write of
41300 last block. Add debug messages.
41301 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41302
41303 2009-01-19 Christian Franke <franke@computer.org>
41304
41305 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41306 (GRUB_ATAPI_IREASON_*): Likewise.
41307 (grub_ata_pio_write): Fix timeout error return.
41308 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41309 (grub_atapi_wait_drq): New function.
41310 (grub_atapi_packet): New parameter `size'.
41311 Use grub_atapi_wait_drq () and direct write instead of
41312 grub_ata_pio_write ().
41313 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41314 reads the number of bytes requested by the device for each DRQ
41315 assertion.
41316 (grub_atapi_write): Remove old implementation, return not
41317 implemented instead.
41318
41319 2009-01-19 Christian Franke <franke@computer.org>
41320
41321 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41322 of 512 to calculate data size.
41323 (grub_scsi_read12): Likewise.
41324 (grub_scsi_write10): Likewise.
41325 (grub_scsi_write12): Likewise.
41326 (grub_scsi_read): Adjust size according to blocksize.
41327 Add checks for invalid blocksize and unaligned transfer.
41328
41329 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41330
41331 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41332
41333 * term/gfxterm.c (write_char): Fix background rendering for wide
41334 width glyphs.
41335
41336 2009-01-19 Robert Millan <rmh@aybabtu.com>
41337
41338 * config.guess: Update to latest version from config git.
41339 * config.sub: Likewise.
41340
41341 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41342
41343 * Makefile.in: Change font compilation to use new grub-mkfont instead
41344 of java version.
41345
41346 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41347 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41348 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41349 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41350 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41351 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41352 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41353 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41354 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41355
41356 2009-01-16 Christian Franke <franke@computer.org>
41357
41358 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41359 (enum grub_ata_timeout_milliseconds): New enum.
41360 (grub_ata_wait_status): Add parameter milliseconds.
41361 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41362 recovery from timed-out commands.
41363 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41364 return grub_errno instead of REG_ERROR.
41365 (grub_ata_pio_write): Add parameter milliseconds.
41366 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41367 Pass milliseconds to grub_ata_wait_status () and
41368 grub_ata_pio_read ().
41369 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41370 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41371 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41372 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41373 It is not suitable for device detection, because DEV bit is ignored,
41374 the command may run too long, and not all devices set the signature
41375 properly.
41376 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41377 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41378 Fix device selection, DEV bit must be set first to address the registers
41379 of the correct device.
41380 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41381 grub_ata_pio_read/write ().
41382 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41383 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41384
41385 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41386
41387 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41388
41389 2009-01-13 Bean <bean123ch@gmail.com>
41390
41391 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41392
41393 2009-01-13 Bean <bean123ch@gmail.com>
41394
41395 * Makefile.in: (enable_grub_mkfont): New variable.
41396 (freetype_cflags): Likewise.
41397 (freetype_libs): Likewise.
41398
41399 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41400 (grub_mkfont_SOURCES): New variable.
41401 (grub_mkfont_CFLAGS): Likewise.
41402 (grub_mkfont_LDFLAGS): Likewise.
41403
41404 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41405 library if `--enable-grub-mkfont' is requested.
41406 (enable_grub_mkfont): New variable.
41407 (freetype_cflags): Likewise.
41408 (freetype_libs): Likewise.
41409
41410 * util/grub-mkfont.c: New file.
41411
41412 2009-01-12 Christian Franke <franke@computer.org>
41413
41414 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41415 mode check. Fix setting of compat_use[].
41416
41417 2009-01-10 Robert Millan <rmh@aybabtu.com>
41418
41419 Update a few copyright years which we forgot to do in 2008 (only for
41420 files whose changes made in 2008 were copyright-significant)
41421
41422 * Makefile.in: Add 2008 to Copyright line.
41423 * disk/ieee1275/ofdisk.c: Likewise.
41424 * disk/efi/efidisk.c: Likewise.
41425 * kern/dl.c: Likewise.
41426 * kern/sparc64/ieee1275/init.c: Likewise.
41427 * kern/mm.c: Likewise.
41428 * kern/efi/mm.c: Likewise.
41429 * boot/i386/pc/boot.S: Likewise.
41430 * genfslist.sh: Likewise.
41431 * fs/iso9660.c: Likewise.
41432 * fs/hfs.c: Likewise.
41433 * fs/jfs.c: Likewise.
41434 * fs/minix.c: Likewise.
41435 * fs/ufs.c: Likewise.
41436 * gensymlist.sh.in: Likewise.
41437 * genkernsyms.sh.in: Likewise.
41438 * include/grub/misc.h: Likewise.
41439 * include/grub/types.h: Likewise.
41440 * include/grub/symbol.h: Likewise.
41441 * include/grub/elf.h: Likewise.
41442 * include/grub/kernel.h: Likewise.
41443 * include/grub/disk.h: Likewise.
41444 * include/grub/dl.h: Likewise.
41445 * include/grub/i386/linux.h: Likewise.
41446 * include/grub/i386/pc/biosdisk.h: Likewise.
41447 * include/grub/efi/api.h: Likewise.
41448 * include/grub/efi/pe32.h: Likewise.
41449 * include/grub/util/misc.h: Likewise.
41450 * normal/execute.c: Likewise.
41451 * normal/arg.c: Likewise.
41452 * normal/completion.c: Likewise.
41453 * normal/lexer.c: Likewise.
41454 * normal/parser.y: Likewise.
41455 * normal/misc.c: Likewise.
41456 * commands/i386/pc/vbeinfo.c: Likewise.
41457 * commands/hexdump.c: Likewise.
41458 * commands/terminal.c: Likewise.
41459 * commands/ls.c: Likewise.
41460 * commands/help.c: Likewise.
41461 * partmap/pc.c: Likewise.
41462 * loader/efi/chainloader.c: Likewise.
41463 * loader/multiboot_loader.c: Likewise.
41464 * loader/i386/pc/multiboot2.c: Likewise.
41465 * term/efi/console.c: Likewise.
41466 * term/i386/pc/serial.c: Likewise.
41467 * util/lvm.c: Likewise.
41468 * util/console.c: Likewise.
41469 * util/i386/efi/grub-mkimage.c: Likewise.
41470 * util/raid.c: Likewise.
41471
41472 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41473
41474 * commands/videotest.c: Removed include to grub/machine/memory.h.
41475
41476 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41477 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41478 (video_mod_SOURCES): Removed.
41479 (video_mod_CFLAGS): Likewise.
41480 (video_mod_LDFLAGS): Likewise.
41481 (gfxterm_mod_SOURCES): Likewise.
41482 (gfxterm_mod_CFLAGS): Likewise.
41483 (gfxterm_mod_LDFLAGS): Likewise.
41484 (videotest_mod_SOURCES): Likewise.
41485 (videotest_mod_CFLAGS): Likewise.
41486 (videotest_mod_LDFLAGS): Likewise.
41487 (bitmap_mod_SOURCES): Likewise.
41488 (bitmap_mod_CFLAGS): Likewise.
41489 (bitmap_mod_LDFLAGS): Likewise.
41490 (tga_mod_SOURCES): Likewise.
41491 (tga_mod_CFLAGS): Likewise.
41492 (tga_mod_LDFLAGS): Likewise.
41493 (jpeg_mod_SOURCES): Likewise.
41494 (jpeg_mod_CFLAGS): Likewise.
41495 (jpeg_mod_LDFLAGS): Likewise.
41496 (png_mod_SOURCES): Likewise.
41497 (png_mod_CFLAGS): Likewise.
41498 (png_mod_LDFLAGS): Likewise.
41499
41500 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41501 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41502 (video_mod_SOURCES): Added.
41503 (video_mod_CFLAGS): Likewise.
41504 (video_mod_LDFLAGS): Likewise.
41505 (videotest_mod_SOURCES): Likewise.
41506 (videotest_mod_CFLAGS): Likewise.
41507 (videotest_mod_LDFLAGS): Likewise.
41508 (bitmap_mod_SOURCES): Likewise.
41509 (bitmap_mod_CFLAGS): Likewise.
41510 (bitmap_mod_LDFLAGS): Likewise.
41511 (tga_mod_SOURCES): Likewise.
41512 (tga_mod_CFLAGS): Likewise.
41513 (tga_mod_LDFLAGS): Likewise.
41514 (jpeg_mod_SOURCES): Likewise.
41515 (jpeg_mod_CFLAGS): Likewise.
41516 (jpeg_mod_LDFLAGS): Likewise.
41517 (png_mod_SOURCES): Likewise.
41518 (png_mod_CFLAGS): Likewise.
41519 (png_mod_LDFLAGS): Likewise.
41520 (gfxterm_mod_SOURCES): Likewise.
41521 (gfxterm_mod_CFLAGS): Likewise.
41522 (gfxterm_mod_LDFLAGS): Likewise.
41523
41524 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41525 grub/machine/console.h.
41526
41527 2009-01-04 Jerone Young <jerone@gmail.com>
41528
41529 Make on screen instructions clearer
41530
41531 Based on patch created by Jidanni <jidanni@jidanni.org>
41532
41533 * normal/menu.c: print clearer instructions on the screen
41534
41535 2009-01-02 Colin D Bennett <colin@gibibit.com>
41536
41537 New font engine.
41538
41539 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41540 build system and fixed gfxterm.c to work with different sized fonts.
41541
41542 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41543
41544 * configure: Re-generated.
41545
41546 * DISTLIST: Removed font/manager.c.
41547 Added font/font.c.
41548 Added font/font_cmd.c.
41549
41550 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41551 compilation.
41552
41553 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41554
41555 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41556
41557 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41558
41559 * normal/menu.c: Likewise.
41560
41561 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41562 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41563
41564 * include/grub/font.h: Replaced with new file.
41565
41566 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41567 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41568 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41569 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41570 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41571 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41572 fg_red, fg_green, fg_blue, fg_alpha.
41573 (grub_video_adapter): Removed blit_glyph.
41574 (grub_video_blit_glyph): Removed.
41575
41576 * font/manager.c: Removed file.
41577
41578 * font/font.c: New file.
41579
41580 * font/font_cmd.c: Likewise.
41581
41582 * video/video.c (grub_video_blit_glyph): Removed.
41583
41584 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41585 (grub_video_vbe_map_rgba): Likewise.
41586 (grub_video_vbe_unmap_color_int): Likewise.
41587 (grub_video_vbe_blit_glyph): Removed.
41588 (grub_video_vbe_adapter): Removed blit_glyph.
41589
41590 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41591 (get_pixel): Likewise.
41592 (set_pixel): Likewise.
41593
41594 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41595
41596 * term/gfxterm.c: Adapted to new font engine.
41597
41598 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41599
41600 * term/i386/pc/vga.c: Likewise.
41601
41602 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41603
41604 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41605
41606 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41607
41608 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41609
41610 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41611
41612 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41613
41614 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41615
41616 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41617
41618 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41619
41620 * util/grub.d/00_header.in: Changed to use new loadfont command.
41621
41622 * util/grub-mkconfig_lib.in: Changed font extension.
41623
41624 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41625
41626 * util/getroot.c (grub_util_get_grub_dev): Add support for
41627 /dev/md/dNNpNN style partitionable mdraid devices.
41628
41629 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41630
41631 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41632 at a time limit of the PXE TFTP API correctly.
41633 (grub_pxefs_close): Likewise.
41634
41635 2008-11-29 Robert Millan <rmh@aybabtu.com>
41636
41637 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41638 grub_ata_device_initialize() calls.
41639
41640 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41641
41642 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41643 iteration failed.
41644 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41645
41646 2008-11-28 Robert Millan <rmh@aybabtu.com>
41647
41648 Fix build on powerpc-ieee1275. Based on patch created by
41649 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41650 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41651 `kern/ieee1275/mmap.c'.
41652 * include/grub/powerpc/ieee1275/memory.h: New file.
41653
41654 Provide grub-install on coreboot.
41655 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41656 (grub_install_SOURCES): New variable.
41657 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41658 usable on coreboot.
41659
41660 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41661
41662 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41663 to `grub_term_input_t'.
41664 (grub_term_get_current_output): Change return type to
41665 `grub_term_output_t'.
41666
41667 2008-11-22 Robert Millan <rmh@aybabtu.com>
41668
41669 Fix breakage on coreboot due to declaration mismatch.
41670 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41671 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41672 grub_vga_text_cls().
41673
41674 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41675 comments. Avoid copying one more byte than necessary (just in case).
41676
41677 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41678 to 0x200000 (avoids trouble with some OFW implementations, and matches
41679 with the one in Yaboot).
41680 Reported by Manoel Abranches
41681
41682 2008-11-20 Robert Millan <rmh@aybabtu.com>
41683
41684 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41685 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41686
41687 * util/grub-mkconfig_lib.in (grub_warn): New function.
41688 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41689 warnings, to obtain consistent formatting.
41690 * util/grub.d/00_header.in: Likewise.
41691 * util/update-grub_lib.in: Likewise.
41692
41693 * loader/i386/linux.c (allocate_pages): Fix a warning.
41694 Move comment text to `#error' stanza.
41695
41696 Harmonize ieee1275's grub_available_iterate() with the generic
41697 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41698 build problem on i386-ieee1275):
41699 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41700 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41701 parameter `type'. Update all users of this function.
41702 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41703 `kern/ieee1275/mmap.c'.
41704 * kern/ieee1275/init.c
41705 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41706 with ...
41707 (grub_machine_mmap_iterate): ... this.
41708 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41709 return type to `grub_err_t'. Update all implementations of this
41710 function prototype.
41711 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41712 Likewise.
41713
41714 Add `lsmmap' command (lists firmware-provided memory map):
41715 * commands/lsmmap.c: New file.
41716 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41717 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41718 variables.
41719 * conf/powerpc-ieee1275.rmk: Likewise.
41720 * conf/i386-coreboot.rmk: Likewise.
41721 * conf/i386-ieee1275.rmk: Likewise.
41722
41723 2008-11-19 Robert Millan <rmh@aybabtu.com>
41724
41725 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41726 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41727 constraints to initrd allocation (based on code from
41728 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41729 for Linux to find it.
41730
41731 2008-11-14 Robert Millan <rmh@aybabtu.com>
41732
41733 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41734 order to cope with duplicate slashes.
41735
41736 2008-11-14 Robert Millan <rmh@aybabtu.com>
41737
41738 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41739 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41740 don't want to mess with lower memory, because it is used in the Linux
41741 loader.
41742
41743 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41744 an appropriate place in lower memory, between 0x10000 and 0x90000,
41745 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41746 is in our heap (probably as a result of it being corrupted during
41747 decompression). Add #error instance with comment to explain why this
41748 loader isn't currently usable on PC/BIOS.
41749
41750 2008-11-14 Robert Millan <rmh@aybabtu.com>
41751
41752 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41753 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41754
41755 2008-11-12 Robert Millan <rmh@aybabtu.com>
41756
41757 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41758
41759 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41760 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41761 from here ...
41762 * include/grub/i386/pc/memory.h: ... to here.
41763
41764 2008-11-12 Robert Millan <rmh@aybabtu.com>
41765
41766 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41767 split).
41768
41769 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41770 (grub_console_cur_color, grub_console_real_putchar)
41771 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41772 (grub_console_setcolorstate, grub_console_setcolor)
41773 (grub_console_getcolor): Move from here ...
41774 * include/grub/i386/vga_common.h: ... to here (new file).
41775
41776 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41777 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41778 `<grub/i386/io.h>'.
41779 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41780 `<grub/i386/vga_common.h>'.
41781
41782 2008-11-12 Robert Millan <rmh@aybabtu.com>
41783
41784 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41785 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41786 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41787 variables.
41788 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41789 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41790
41791 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41792 grub_console_init() with call to grub_vga_text_init().
41793 (grub_machine_fini): Replace call to
41794 grub_console_fini() with call to grub_vga_text_fini() and
41795 grub_at_keyboard_fini().
41796
41797 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41798 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41799 (grub_console_setcolorstate, grub_console_setcolor)
41800 (grub_console_getcolor): New function prototypes.
41801
41802 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41803 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41804 (grub_vga_text_setcursor): Static-ize.
41805 (grub_vga_text_term): New structure.
41806 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41807
41808 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41809 (grub_console_cur_color, grub_console_standard_color)
41810 (grub_console_normal_color, grub_console_highlight_color)
41811 (map_char, grub_console_putchar, grub_console_getcharwidth)
41812 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41813 (grub_console_getcolor): Move from here ...
41814 * term/i386/vga_common.c: ... to here (same function names).
41815
41816 2008-11-12 Robert Millan <rmh@aybabtu.com>
41817
41818 Use newly-added Multiboot support in coreboot.
41819
41820 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41821 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41822
41823 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41824 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41825 (codestart): Store the MBI in `startup_multiboot_info' when we're
41826 being loaded using Multiboot.
41827
41828 * kern/i386/coreboot/init.c (grub_machine_init): Move
41829 grub_at_keyboard_init() call to beginning of function (useful for
41830 debugging). Call grub_machine_mmap_init() before attempting to use
41831 grub_machine_mmap_iterate().
41832 (grub_lower_mem, grub_upper_mem): Move from here ...
41833 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41834 here (new file).
41835
41836 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41837 function prototype.
41838
41839 2008-11-12 Robert Millan <rmh@aybabtu.com>
41840
41841 Fix a regression introduced by the at_keyboard.mod split. Because
41842 some terminals are default on some platforms and non-default on
41843 others, the first terminal being registered determines which is
41844 going to be default.
41845
41846 * kern/term.c (grub_term_register_input): If this is the first
41847 terminal being registered, set it as the current one.
41848 (grub_term_register_output): Likewise.
41849
41850 * term/efi/console.c (grub_console_init): Do not call
41851 grub_term_set_current_output() or grub_term_set_current_input().
41852 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41853 * term/i386/pc/console.c (grub_console_init): Likewise.
41854 (grub_console_fini): Do not call grub_term_set_current_input()
41855 (but leave grub_term_set_current_output() to restore text mode).
41856
41857 2008-11-10 Robert Millan <rmh@aybabtu.com>
41858
41859 * util/grub.d/00_header.in: Add backward compatibility check for
41860 versions of terminal.mod that don't understand `terminal_input' or
41861 `terminal_output'.
41862
41863 2008-11-09 Robert Millan <rmh@aybabtu.com>
41864
41865 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41866 `terminal_input' / `terminal_output', not `terminal'.
41867
41868 2008-11-08 Robert Millan <rmh@aybabtu.com>
41869
41870 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41871 (DISTCLEANFILES): Add `build_env.mk'.
41872
41873 2008-11-08 Robert Millan <rmh@aybabtu.com>
41874
41875 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41876 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41877 members. Update all users.
41878 * util/console.c (grub_ncurses_term): Split in ...
41879 (grub_ncurses_term_input): ... this, and ...
41880 (grub_ncurses_term_output): ... this. Update all users.
41881 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41882
41883 2008-11-08 Robert Millan <rmh@aybabtu.com>
41884
41885 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41886 (PKGDATA): Add $(pkgdata_SRCDIR).
41887 (pkglib_BUILDDIR): New variable.
41888 (pkgdata_SRCDIR): New variable.
41889 (build_env.mk): New target.
41890 (include_DATA): New variable.
41891 (install-local): Install $(include_DATA) files in $(includedir).
41892
41893 2008-11-07 Pavel Roskin <proski@gnu.org>
41894
41895 * gendistlist.sh: Use C locale for sorting to ensure consistent
41896 output on all systems.
41897
41898 * util/grub.d/00_header.in: Remove incorrect space before
41899 "serial".
41900
41901 2008-11-07 Robert Millan <rmh@aybabtu.com>
41902
41903 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41904 per specification.
41905 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41906 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41907 (based on find_multi_boot1_header).
41908 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41909 using find_multi_boot2_header(), and abort if neither Multiboot or
41910 Multiboot headers were found.
41911
41912 2008-11-07 Robert Millan <rmh@aybabtu.com>
41913
41914 Modularize at_keyboard.mod:
41915
41916 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41917 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41918 (at_keyboard_mod_LDFLAGS): New variables.
41919
41920 Actual terminal split:
41921
41922 * include/grub/term.h (struct grub_term): Split in ...
41923 (struct grub_term_input): ... this, and ...
41924 (struct grub_term_output): ... this. Update all users.
41925 (grub_term_set_current): Split in ...
41926 (grub_term_set_current_input): ... this, and ...
41927 (grub_term_set_current_output): ... this.
41928 (grub_term_get_current): Split in ...
41929 (grub_term_get_current_input): ... this, and ...
41930 (grub_term_get_current_output): ... this.
41931 (grub_term_register): Split in ...
41932 (grub_term_register_input): ... this, and ...
41933 (grub_term_register_output): ... this.
41934 (grub_term_unregister): Split in ...
41935 (grub_term_unregister_input): ... this, and ...
41936 (grub_term_unregister_output): ... this.
41937 (grub_term_iterate): Split in ...
41938 (grub_term_iterate_input): ... this, and ...
41939 (grub_term_iterate_output): ... this.
41940
41941 * kern/term.c (grub_term_list): Split in ...
41942 (grub_term_list_input): ... this, and ...
41943 (grub_term_list_output): ... this. Update all users.
41944 (grub_cur_term): Split in ...
41945 (grub_cur_term_input): ... this, and ...
41946 (grub_cur_term_output): ... this. Update all users.
41947 (grub_term_set_current): Split in ...
41948 (grub_term_set_current_input): ... this, and ...
41949 (grub_term_set_current_output): ... this.
41950 (grub_term_get_current): Split in ...
41951 (grub_term_get_current_input): ... this, and ...
41952 (grub_term_get_current_output): ... this.
41953 (grub_term_register): Split in ...
41954 (grub_term_register_input): ... this, and ...
41955 (grub_term_register_output): ... this.
41956 (grub_term_unregister): Split in ...
41957 (grub_term_unregister_input): ... this, and ...
41958 (grub_term_unregister_output): ... this.
41959 (grub_term_iterate): Split in ...
41960 (grub_term_iterate_input): ... this, and ...
41961 (grub_term_iterate_output): ... this.
41962
41963 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41964 a check for input and one for output (and only attempt to get keys
41965 from user when input works).
41966
41967 * util/grub-probe.c (grub_term_get_current): Split in ...
41968 (grub_term_get_current_input): ... this, and ...
41969 (grub_term_get_current_output): ... this.
41970 * util/grub-fstest.c: Likewise.
41971 * util/i386/pc/grub-setup.c: Likewise.
41972 * util/grub-editenv.c: Likewise.
41973
41974 Portability adjustments:
41975
41976 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41977 `term/i386/pc/at_keyboard.c'.
41978 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41979 grub_keyboard_controller_init() (now handled by terminal .init).
41980 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41981 grub_at_keyboard_init().
41982 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41983 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41984 at_keyboard.mod via input terminal interface).
41985 * include/grub/i386/coreboot/console.h: Convert into a stub for
41986 `<grub/i386/pc/console.h>'.
41987
41988 Migrate full terminals to new API:
41989
41990 * term/efi/console.c (grub_console_term): Split into ...
41991 (grub_console_term_input): ... this, and ...
41992 (grub_console_term_output): ... this. Update all users.
41993 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41994 (grub_ofconsole_init): Split into ...
41995 (grub_ofconsole_init_input): ... this, and ...
41996 (grub_ofconsole_init_output): ... this.
41997 (grub_ofconsole_term): Split into ...
41998 (grub_ofconsole_term_input): ... this, and ...
41999 (grub_ofconsole_term_output): ... this. Update all users.
42000 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42001 (grub_serial_term_input): ... this, and ...
42002 (grub_serial_term_output): ... this. Update all users.
42003 * term/i386/pc/console.c (grub_console_term): Split into ...
42004 (grub_console_term_input): ... this, and ...
42005 (grub_console_term_output): ... this. Update all users.
42006 (grub_console_term_input): Only enable it on PC/BIOS platform.
42007 (grub_console_init): Remove grub_keyboard_controller_init() call.
42008
42009 Migrate input terminals to new API:
42010
42011 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42012 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42013 i386-specific anyway).
42014 (grub_console_checkkey): Rename to ...
42015 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42016 users.
42017 (grub_keyboard_controller_orig): New variable.
42018 (grub_console_getkey): Rename to ...
42019 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42020 users.
42021 (grub_keyboard_controller_init): Static-ize. Save original
42022 controller value so that it can be restored ...
42023 (grub_keyboard_controller_fini): ... here (new function).
42024 (grub_at_keyboard_term): New structure.
42025 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42026 functions.
42027
42028 Migrate output terminals to new API:
42029
42030 * term/i386/pc/vga.c (grub_vga_term): Change type to
42031 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42032 members. Update all users.
42033 * term/gfxterm.c (grub_video_term): Change type to
42034 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42035 members. Update all users.
42036 * include/grub/i386/pc/console.h (grub_console_checkkey)
42037 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42038 etc).
42039
42040 Migrate `terminal' command and userland tools to new API:
42041
42042 * commands/terminal.c (grub_cmd_terminal): Split into ...
42043 (grub_cmd_terminal_input): ... this, and ...
42044 (grub_cmd_terminal_output): ... this.
42045 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42046 `terminal_input' and `terminal_output'.
42047 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42048 `terminal_input' / `terminal_output' API.
42049 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42050 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42051 provided ${GRUB_TERMINAL}, convert it).
42052
42053 2008-11-04 Robert Millan <rmh@aybabtu.com>
42054
42055 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42056 for FreeBSD.
42057 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42058
42059 2008-11-03 Bean <bean123ch@gmail.com>
42060
42061 * kern/elf.c (grub_elf32_load): Revert to previous code.
42062 (grub_elf64_load): Likewise.
42063
42064 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42065
42066 2008-11-01 Robert Millan <rmh@aybabtu.com>
42067
42068 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42069 (TARGET_CPPFLAGS): Likewise.
42070 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42071
42072 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42073
42074 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42075
42076 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42077
42078 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42079 addition of objects until the code is not going to be able to fail.
42080
42081 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42082
42083 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42084 (add a missing NULL check, and correct them by moving the pointer
42085 operations after the actual check).
42086
42087 2008-10-29 Robert Millan <rmh@aybabtu.com>
42088
42089 * util/i386/pc/grub-install.in: Handle empty string as output from
42090 make_system_path_relative_to_its_root().
42091
42092 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42093
42094 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42095 circular metadata worst case scenario. If the metadata is circular
42096 then copy the wrap in place.
42097 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42098 project lib/format_text/layout.h
42099 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42100
42101 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42102
42103 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42104
42105 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42106
42107 * util/update-grub_lib.in: Mention filename in warning message.
42108
42109 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42110
42111 * NEWS: Update for rename of update-grub to grub-mkconfig.
42112
42113 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42114
42115 * util/update-grub_lib.in: Copy to ...
42116 * util/grub-mkconfig_lib.in: ... this. Update all users.
42117 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42118 * util/update-grub.in: Rename to ...
42119 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42120 option. Add `--output' option to allow users to specify the generated
42121 configuration file. Default to stdout.
42122 (update_grub_dir): Rename to ...
42123 (grub_mkconfig_dir): ... this.
42124 (grub_cfg): Default to an empty string.
42125 * conf/common.rmk (update-grub): Rename to ...
42126 (grub-mkconfig): ... this.
42127 (update-grub_lib): Copy to ...
42128 (grub-mkconfig_lib): ... this.
42129 (update-grub_SCRIPTS): Copy to ...
42130 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42131 (update-grub_DATA): Rename to ...
42132 (grub-mkconfig_DATA): ... this.
42133
42134 2008-09-28 Robert Millan <rmh@aybabtu.com>
42135
42136 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42137 to `modified'. Add the real `created' field.
42138 (grub_iso9660_uuid): Use `modified' rather than `created' for
42139 constructing the UUID.
42140
42141 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42142
42143 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42144 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42145
42146 2008-09-28 Bean <bean123ch@gmail.com>
42147
42148 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42149 Thanks to Christian Franke for finding this bug.
42150
42151 2008-09-25 Robert Millan <rmh@aybabtu.com>
42152
42153 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42154 instances of grub_util_get_disk_name() (see previous commit).
42155
42156 2008-09-25 Robert Millan <rmh@aybabtu.com>
42157
42158 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42159 `util/i386/get_disk_name.c'.
42160 * conf/i386-efi.rmk: Likewise.
42161 * conf/x86_64-efi.rmk: Likewise.
42162 * conf/i386-coreboot.rmk: Likewise.
42163 * conf/i386-ieee1275.rmk: Likewise.
42164 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42165 `util/ieee1275/get_disk_name.c'.
42166 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42167 * util/ieee1275/get_disk_name.c: Remove file.
42168 * util/i386/get_disk_name.c: Remove file.
42169 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42170 "hd%d" for device.map entries, rather than using
42171 grub_util_get_disk_name().
42172
42173 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42174
42175 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42176 warning.
42177 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42178
42179 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42180
42181 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42182 Changed to 0x5100.
42183 (GRUB_TERM_PPAGE): Changed to 0x4900.
42184
42185 2008-09-24 Robert Millan <rmh@aybabtu.com>
42186
42187 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42188 macros (they were i386-pc specific).
42189 * include/grub/sparc64/ieee1275/console.h: Likewise.
42190 * include/grub/efi/console.h: Likewise.
42191
42192 2008-09-22 Bean <bean123ch@gmail.com>
42193
42194 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42195 resident and in attribute list.
42196
42197 * include/grub/ntfs.h (BMP_LEN): Removed.
42198
42199 2008-09-22 Bean <bean123ch@gmail.com>
42200
42201 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42202 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42203
42204 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42205 error occurs, as grub_disk_open will call grub_disk_close, which will
42206 call p->close (scsi).
42207
42208 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42209
42210 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42211 (AC_PREREQ): Bumped to 2.59.
42212 (AC_TRY_COMPILE): Replace obsolete macro with ...
42213 (AC_COMPILE_IFELSE): ... this.
42214 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42215 (AC_LINK_IFELSE): ... this.
42216
42217 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42218
42219 * autogen.sh: Add a call to `gendistlist.sh'.
42220
42221 2008-09-19 Christian Franke <franke@computer.org>
42222
42223 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42224 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42225 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42226 Export __enable_execute_stack() to modules.
42227 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42228 New function.
42229
42230 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42231
42232 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42233 Sort the list.
42234
42235 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42236
42237 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42238 #include <grub/util/hostdisk.h>.
42239
42240 2008-09-08 Robert Millan <rmh@aybabtu.com>
42241
42242 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42243 segments when their filesz is zero (grub_file_read() interprets
42244 zero-size as "read until EOF", which results in memory corruption).
42245 Use `lowest_segment' rather than 0 for calculating the current
42246 segment load address.
42247
42248 2008-09-08 Robert Millan <rmh@aybabtu.com>
42249
42250 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42251 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42252 clobbered useful information.
42253
42254 2008-09-08 Robert Millan <rmh@aybabtu.com>
42255
42256 * include/grub/util/biosdisk.h: Move to ...
42257 * include/grub/util/hostdisk.h: ... here. Update all users.
42258 * util/biosdisk.c: Move to ...
42259 * util/hostdisk.c: ... here. Update all users.
42260
42261 2008-09-07 Robert Millan <rmh@aybabtu.com>
42262
42263 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42264 variables.
42265 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42266 and length can be stored directly in the `mbi->mmap_addr' and
42267 `mbi->mmap_length' struct fields.
42268
42269 2008-09-07 Robert Millan <rmh@aybabtu.com>
42270
42271 * conf/i386.rmk: New file. Provides declaration for building
42272 `cpuid.mod'.
42273 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42274 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42275 variables.
42276 Include `conf/i386.mk'.
42277 * conf/i386-efi.rmk: Likewise.
42278 * conf/x86_64-efi.rmk: Likewise.
42279 * conf/i386-coreboot.rmk: Likewise.
42280 * conf/i386-ieee1275.rmk: Likewise.
42281
42282 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42283
42284 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42285 Adds optimization support for BGR based modes.
42286
42287 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42288 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42289 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42290 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42291 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42292 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42293 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42294 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42295 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42296 (grub_video_i386_vbeblit_index_index): Likewise.
42297 (grub_video_i386_vbeblit_replace_directN): Added.
42298 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42299 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42300 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42301 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42302 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42303 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42304 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42305 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42306 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42307 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42308 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42309 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42310 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42311
42312 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42313 (grub_video_i386_vbefill_R8G8B8): Likewise.
42314 (grub_video_i386_vbefill_index): Likewise.
42315 (grub_video_i386_vbefill_direct32): Added.
42316 (grub_video_i386_vbefill_direct24): Likewise.
42317 (grub_video_i386_vbefill_direct16): Likewise.
42318 (grub_video_i386_vbefill_direct8): Likewise.
42319
42320 * include/grub/video.h (grub_video_blit_format): Removed
42321 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42322 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42323 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42324 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42325 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42326
42327 * video/video.c (grub_video_get_blit_format): Updated to use new
42328 blit formats. Added handling for 16 bit color modes.
42329
42330 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42331 fillers.
42332 (common_blitter): Updated to use new blitters.
42333
42334 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42335 Removed.
42336 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42337 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42338 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42339 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42340 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42341 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42342 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42343 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42344 (grub_video_i386_vbeblit_index_index): Likewise.
42345 (grub_video_i386_vbeblit_replace_directN): Added.
42346 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42347 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42348 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42349 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42350 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42351 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42352 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42353 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42354 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42355 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42356 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42357 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42358 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42359
42360 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42361 (grub_video_i386_vbefill_R8G8B8): Likewise.
42362 (grub_video_i386_vbefill_index): Likewise.
42363 (grub_video_i386_vbefill_direct32): Added.
42364 (grub_video_i386_vbefill_direct24): Likewise.
42365 (grub_video_i386_vbefill_direct16): Likewise.
42366 (grub_video_i386_vbefill_direct8): Likewise.
42367
42368 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42369 types.
42370
42371 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42372 types.
42373
42374 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42375 blitter types.
42376
42377 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42378 types.
42379
42380 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42381
42382 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42383 RAID level 1.
42384
42385 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42386
42387 * fs/iso9660.c (grub_iso9660_date): New structure.
42388 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42389 (grub_iso9660_uuid): New function.
42390
42391 2008-09-05 Bean <bean123ch@gmail.com>
42392
42393 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42394
42395 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42396 insensitive bit for names in Win32 and Win32 & DOS namespace.
42397
42398 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42399
42400 * include/grub/types.h (LONG_MAX): Likewise.
42401
42402 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42403
42404 * util/getroot.c: Include <config.h>.
42405 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42406 add support for /dev/md/N devices and handle LVM double dash escaping.
42407
42408 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42409
42410 * config.guess: Update to latest version from config git.
42411 * config.sub: Likewise.
42412
42413 2008-09-03 Robert Millan <rmh@aybabtu.com>
42414
42415 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42416 `disk->total_sectors'.
42417
42418 2008-09-01 Colin D Bennett <colin@gibibit.com>
42419
42420 * include/grub/normal.h: Fixed incorrect comment for
42421 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42422
42423 2008-09-01 Colin D Bennett <colin@gibibit.com>
42424
42425 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42426 values with defines.
42427
42428 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42429 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42430 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42431 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42432 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42433 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42434 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42435 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42436 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42437 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42438 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42439 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42440 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42441 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42442 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42443 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42444 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42445 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42446 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42447
42448 2008-08-31 Robert Millan <rmh@aybabtu.com>
42449
42450 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42451 declaration.
42452 (grub_multiboot): Fix a few warnings.
42453
42454 2008-08-31 Robert Millan <rmh@aybabtu.com>
42455
42456 * loader/i386/pc/multiboot.c: Update comment not to say that
42457 boot_device support is unimplemented.
42458
42459 2008-08-31 Robert Millan <rmh@aybabtu.com>
42460
42461 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42462 or memory map support are unimplemented.
42463
42464 2008-08-31 Colin D Bennett <colin@gibibit.com>
42465
42466 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42467
42468 2008-08-31 Colin D Bennett <colin@gibibit.com>
42469
42470 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42471 total video memory in 'vbeinfo' output; show color format details for
42472 each video mode.
42473
42474 2008-08-30 Pavel Roskin <proski@gnu.org>
42475
42476 * util/genmoddep.c: Remove for real this time.
42477 * DISTLIST: Remove util/genmoddep.c.
42478
42479 2008-08-30 Robert Millan <rmh@aybabtu.com>
42480
42481 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42482 as required by Multiboot spec (it was already 4-byte aligned, but
42483 only by chance).
42484
42485 2008-08-29 Pavel Roskin <proski@gnu.org>
42486
42487 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42488 * kern/powerpc/ieee1275/startup.S: ... this.
42489 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42490 * DISTLIST: Likewise.
42491
42492 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42493 grub/cpu/kernel.h. Add start label for consistency with other
42494 platforms. Add grub_prefix immediately after start. Add jump
42495 to the code after grub_prefix.
42496 * include/grub/powerpc/kernel.h: Provide valid values for
42497 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42498
42499 2008-08-29 Bean <bean123ch@gmail.com>
42500
42501 * configure.ac: Change host_os to cygwin for mingw.
42502 (asprintf): New check for function.
42503
42504 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42505 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42506
42507 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42508 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42509 sync, sleep and grub_util_get_disk_size for mingw.
42510
42511 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42512 to get size in mingw.
42513 (open_device): Use flag O_BINARY if it's defined.
42514 (find_root_device): Add dummy code for mingw.
42515
42516 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42517 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42518 (get_scsi_disk_name): Return 0 for mingw.
42519
42520 * util/hostfs.c: #include <grub/util/misc.h>.
42521 (grub_hostfs_open): Use "rb" flag to open file, use
42522 grub_util_get_disk_size to get disk size for mingw.
42523
42524 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42525 (asprintf): New function if HAVE_ASPRINTF is not set.
42526 (sync): New function for mingw.
42527 (sleep): Likewise.
42528 (grub_util_get_disk_size): Likewise.
42529
42530 2008-08-28 Pavel Roskin <proski@gnu.org>
42531
42532 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42533 kern/time.c.
42534
42535 2008-08-28 Robert Millan <rmh@aybabtu.com>
42536
42537 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42538
42539 2008-08-28 Robert Millan <rmh@aybabtu.com>
42540
42541 Change find_grub_drive() syntax so it doesn't prevent it from
42542 detecting NULL names as errors.
42543
42544 * util/biosdisk.c (find_grub_drive): Move free slot search code
42545 from here ...
42546 (find_free_slot): ... to here.
42547 (read_device_map): Use find_free_slot() to search for free slots.
42548
42549 2008-08-27 Marco Gerards <marco@gnu.org>
42550
42551 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42552 (scsi_mod_SOURCES): New variable.
42553 (scsi_mod_CFLAGS): Likewise
42554 (scsi_mod_LDFLAGS): Likewise.
42555
42556 * disk/scsi.c: New file.
42557
42558 * include/grub/scsi.h: Likewise.
42559
42560 * include/grub/scsicmd.h: Likewise.
42561
42562 * disk/ata.c: Include <grub/scsi.h>.
42563 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42564 instead.
42565 (grub_ata_iterate): Skip ATAPI devices.
42566 (grub_ata_open): Only handle ATAPI devices.
42567 (struct grub_atapi_read): Removed.
42568 (grub_atapi_readsector): Likewise.
42569 (grub_ata_read): No longer handle ATAPI devices.
42570 (grub_ata_write): Likewise.
42571 (grub_atapi_iterate): New function.
42572 (grub_atapi_read): Likewise.
42573 (grub_atapi_write): Likewise.
42574 (grub_atapi_open): Likewise.
42575 (grub_atapi_close): Likewise.
42576 (grub_atapi_dev): New variable.
42577 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42578 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42579
42580 * include/grub/disk.h (enum grub_disk_dev_id): Add
42581 `GRUB_DISK_DEVICE_SCSI_ID'.
42582
42583 2008-08-26 Robert Millan <rmh@aybabtu.com>
42584
42585 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42586 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42587 descriptive.
42588
42589 2008-08-23 Bean <bean123ch@gmail.com>
42590
42591 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42592 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42593 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42594 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42595 dm_nv.mod.
42596 (raid5rec_mod_SOURCES): New macro.
42597 (raid5rec_mod_CFLAGS): Likewise.
42598 (raid5rec_mod_LDFLAGS): Likewise.
42599 (raid6rec_mod_SOURCES): Likewise.
42600 (raid6rec_mod_CFLAGS): Likewise.
42601 (raid6rec_mod_LDFLAGS): Likewise.
42602 (mdraid_mod_SOURCES): Likewise.
42603 (mdraid_mod_CFLAGS): Likewise.
42604 (mdraid_mod_LDFLAGS): Likewise.
42605 (dm_nv_mod_SOURCES): Likewise.
42606 (dm_nv_mod_CFLAGS): Likewise.
42607 (dm_nv_mod_LDFLAGS): Likewise.
42608
42609 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42610 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42611 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42612
42613 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42614 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42615
42616 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42617
42618 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42619
42620 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42621
42622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42623
42624 * disk/raid5_recover.c: New file.
42625
42626 * disk/raid6_recover.c: Likewise.
42627
42628 * disk/mdraid_linux.c: Likewise.
42629
42630 * disk/dmraid_nvidia.c: Likewise.
42631
42632 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42633 ULONG_MAX.
42634
42635 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42636 calculate the size of raid device.
42637 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42638 different layout of raid5.
42639 (grub_raid_scan_device): Remove code specific to mdraid.
42640 (grub_raid_list): New variable.
42641 (free_array): New function.
42642 (grub_raid_register): Likewise.
42643 (grub_raid_unregister): Likewise.
42644 (grub_raid_rescan): Likewise.
42645 (GRUB_MOD_INIT): Don't iterate device here.
42646 (GRUB_MOD_FINI): Use free_array to release resource.
42647
42648 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42649 (grub_raid5_recover_func_t): New function variable type.
42650 (grub_raid6_recover_func_t): Likewise.
42651 (grub_raid5_recover_func): New variable.
42652 (grub_raid6_recover_func): Likewise.
42653 (grub_raid_register): New function.
42654 (grub_raid_unregister): Likewise.
42655 (grub_raid_rescan): Likewise.
42656 (grub_raid_block_xor): Likewise.
42657
42658 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42659 (CMD_CRC): New macro.
42660 (part): Removed.
42661 (read_file): Handle device as well as file.
42662 (cmd_crc): New function.
42663 (fstest): Handle multiple disks.
42664 (options): Remove part, raw and long, add root and diskcount.
42665 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42666 (main): Find the first non option entry and ignore subsequent options,
42667 add handling for the new options, support multiple disks.
42668
42669 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42670
42671 2008-08-23 Bean <bean123ch@gmail.com>
42672
42673 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42674
42675 * genfslist.sh: Ignore kernel.mod.
42676
42677 * genpartmaplist.sh: Likewise.
42678
42679 2008-08-23 Robert Millan <rmh@aybabtu.com>
42680
42681 * util/getroot.c (find_root_device): Skip anything that starts with
42682 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42683
42684 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42685
42686 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42687 * util/grub.d/00_header.in: Allow the administrator to change default
42688 gfxmode via ${GRUB_GFXMODE}.
42689
42690 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42691
42692 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42693
42694 2008-08-21 Robert Millan <rmh@aybabtu.com>
42695
42696 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42697 loader.
42698 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42699 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42700
42701 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42702
42703 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42704 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42705
42706 2008-08-19 Robert Millan <rmh@aybabtu.com>
42707
42708 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42709 (struct grub_virtual_screen): Remove `cursor_color'.
42710 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42711 initialization.
42712 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42713
42714 2008-08-18 Robert Millan <rmh@aybabtu.com>
42715
42716 Unify (identical) linux_normal.c files.
42717 * loader/i386/efi/linux_normal.c: Move from here ...
42718 * loader/linux_normal.c: ... to here. Update all users.
42719 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42720 * loader/i386/ieee1275/linux_normal.c: Likewise.
42721
42722 2008-08-18 Robert Millan <rmh@aybabtu.com>
42723
42724 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42725 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42726 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42727 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42728 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42729 New macros.
42730 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42731 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42732 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42733 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42734 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42735 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42736 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42737 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42738 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42739 portably using grub_getxy().
42740 Replace `-EFI' with `-bzImage' in boot message.
42741
42742 2008-08-17 Robert Millan <rmh@aybabtu.com>
42743
42744 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42745
42746 2008-08-17 Robert Millan <rmh@aybabtu.com>
42747
42748 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42749
42750 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42751 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42752 (grub_machine_mmap_iterate): New function declaration.
42753 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42754 structure.
42755 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42756 macros.
42757
42758 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42759 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42760 Move e820 parsing from here ...
42761 * kern/i386/pc/mmap.c: New file.
42762 (grub_machine_mmap_iterate): ... to here.
42763
42764 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42765 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42766 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42767 (grub_available_iterate): Redeclare to return `void', and redeclare
42768 its hook to use grub_uint64_t as addr and size parameters, and rename
42769 to ...
42770 (grub_machine_mmap_iterate): ... this. Update all users.
42771
42772 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42773 to make it more readable. Rename to ...
42774 (grub_machine_mmap_iterate): ... this.
42775
42776 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42777 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42778 (grub_multiboot): Allocate an extra region after the payload, and fill
42779 it with a Multiboot memory map. Adjust a.out loader to calculate size
42780 with the extra space.
42781 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42782 with the extra space.
42783
42784 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42785
42786 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42787
42788 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42789
42790 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42791 mdate-sh to the list `find' searches for.
42792 * DISTLIST: Regenerated.
42793
42794 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42795
42796 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42797 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42798 genmoddep.awk, gensymlist.sh.in.
42799 (DISTDIRS): Add bus, docs, hook, lib.
42800 * DISTLIST: Regenerated.
42801 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42802
42803 2008-08-16 Robert Millan <rmh@aybabtu.com>
42804
42805 * disk/raid.c (grub_raid_init): Handle/report errors set by
42806 grub_device_iterate().
42807 * disk/lvm.c (grub_lvm_init): Likewise.
42808
42809 2008-08-15 Bean <bean123ch@gmail.com>
42810
42811 * conf/i386-pc.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/i386-coreboot.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 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42836 and datehook.mod.
42837 (datetime_mod_SOURCES): New macro.
42838 (datetime_mod_CFLAGS): Likewise.
42839 (datetime_mod_LDFLAGS): Likewise.
42840 (date_mod_SOURCES): Likewise.
42841 (date_mod_CFLAGS): Likewise.
42842 (date_mod_LDFLAGS): Likewise.
42843 (datehook_mod_SOURCES): Likewise.
42844 (datehook_mod_CFLAGS): Likewise.
42845 (datehook_mod_LDFLAGS): Likewise.
42846
42847 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42848 and datehook.mod.
42849 (datetime_mod_SOURCES): New macro.
42850 (datetime_mod_CFLAGS): Likewise.
42851 (datetime_mod_LDFLAGS): Likewise.
42852 (date_mod_SOURCES): Likewise.
42853 (date_mod_CFLAGS): Likewise.
42854 (date_mod_LDFLAGS): Likewise.
42855 (datehook_mod_SOURCES): Likewise.
42856 (datehook_mod_CFLAGS): Likewise.
42857 (datehook_mod_LDFLAGS): Likewise.
42858
42859 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42860 and datehook.mod.
42861 (datetime_mod_SOURCES): New macro.
42862 (datetime_mod_CFLAGS): Likewise.
42863 (datetime_mod_LDFLAGS): Likewise.
42864 (date_mod_SOURCES): Likewise.
42865 (date_mod_CFLAGS): Likewise.
42866 (date_mod_LDFLAGS): Likewise.
42867 (datehook_mod_SOURCES): Likewise.
42868 (datehook_mod_CFLAGS): Likewise.
42869 (datehook_mod_LDFLAGS): Likewise.
42870
42871 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42872
42873 * commands/date.c: New file.
42874
42875 * hook/datehook.c: Likewise.
42876
42877 * include/grub/lib/datetime.h: Likewise.
42878
42879 * include/grub/i386/cmos.h: Likewise.
42880
42881 * lib/datetime.c: Likewise.
42882
42883 * lib/i386/datetime.c: Likewise.
42884
42885 * lib/efi/datetime.c: Likewise.
42886
42887 2008-08-14 Robert Millan <rmh@aybabtu.com>
42888
42889 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42890 (grub_mkelfimage_SOURCES): New variable.
42891 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42892
42893 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42894 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42895 * conf/powerpc-ieee1275.rmk: Likewise.
42896 * conf/i386-ieee1275.rmk: Likewise.
42897
42898 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42899 * kern/i386/coreboot/init.c: Likewise.
42900
42901 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42902 with `<grub/cpu/kernel.h>'.
42903 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42904 to ...
42905 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42906 * kern/i386/coreboot/startup.S: Likewise.
42907
42908 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42909 (GRUB_MOD_GAP): Remove.
42910 * include/grub/powerpc/kernel.h: New file.
42911 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42912 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42913 * include/grub/i386/kernel.h: New file.
42914 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42915 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42916 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42917
42918 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42919 `grub-mkelfimage'.
42920 Use --directory when invoking grub_mkimage.
42921
42922 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42923 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42924 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42925 and GRUB_KERNEL_CPU_PREFIX.
42926
42927 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42928
42929 * include/grub/err.h (grub_err_printf): New function prototype.
42930 * util/misc.c (grub_err_printf): New function.
42931 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42932 grub_printf.
42933 * kern/err.c (grub_print_error): Use grub_err_printf.
42934
42935 2008-08-13 Robert Millan <rmh@aybabtu.com>
42936
42937 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42938
42939 2008-08-13 Robert Millan <rmh@aybabtu.com>
42940
42941 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42942 boot entry.
42943
42944 2008-08-12 Robert Millan <rmh@aybabtu.com>
42945
42946 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42947 of the relocation code from here ...
42948 (grub_multiboot): ... to here.
42949 (forward_relocator, backward_relocator): Move from here ...
42950 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42951 (grub_multiboot_backward_relocator): ... to here.
42952 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42953 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42954 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42955 (grub_multiboot_forward_relocator_end)
42956 (grub_multiboot_backward_relocator)
42957 (grub_multiboot_backward_relocator_end): New variables.
42958
42959 2008-08-12 Bean <bean123ch@gmail.com>
42960
42961 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42962
42963 2008-08-11 Robert Millan <rmh@aybabtu.com>
42964
42965 * kern/i386/linuxbios/startup.S: Move from here ...
42966 * kern/i386/coreboot/startup.S: ... to here.
42967
42968 * kern/i386/linuxbios/init.c: Move from here ...
42969 * kern/i386/coreboot/init.c: ... to here.
42970
42971 * kern/i386/linuxbios/table.c: Move from here ...
42972 * kern/i386/coreboot/mmap.c: ... to here.
42973
42974 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42975
42976 2008-08-11 Robert Millan <rmh@aybabtu.com>
42977
42978 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42979 errors. Leave it to the upper layer to handle them.
42980
42981 2008-08-09 Christian Franke <franke@computer.org>
42982
42983 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42984 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42985 Install `grub.d/10_windows' only on Cygwin.
42986 * configure.ac: Add subst of `target_os'.
42987 Check `target_os' also before setting TARGET_OBJ2ELF.
42988 Add `--enable-grub-pe2elf'.
42989
42990 2008-08-08 Robert Millan <rmh@aybabtu.com>
42991
42992 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42993 (grub_last_time): Change type to grub_uint64_t.
42994 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42995 (grub_disk_close): Likewise.
42996
42997 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42998 (run_menu): Migrate code from to using grub_get_time_ms().
42999
43000 * util/misc.c (grub_get_time_ms): New function.
43001
43002 2008-08-08 Marco Gerards <marco@gnu.org>
43003
43004 * disk/ata.c (grub_ata_regget): Change return type to
43005 `grub_uint8_t'.
43006 (grub_ata_regget2): Likewise.
43007 (grub_ata_wait_status): New function.
43008 (grub_ata_wait_busy): Removed function, updated all users to use
43009 `grub_ata_wait_status'.
43010 (grub_ata_wait_drq): Likewise.
43011 (grub_ata_cmd): New function.
43012 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43013 error handling.
43014 (grub_ata_pio_write): Add error handling.
43015 (grub_atapi_identify): Likewise.
43016 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43017 handling.
43018 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43019 handling. Actually use the detected registers. Reorder the
43020 detection logic such that it is easier to read.
43021 (grub_ata_pciinit): Do not assign the same ID to each controller.
43022 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43023 handling.
43024 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43025
43026 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43027
43028 2008-08-08 Marco Gerards <marco@gnu.org>
43029
43030 * NEWS: Update.
43031
43032 2008-08-07 Bean <bean123ch@gmail.com>
43033
43034 * include/grub/x86_64/pci.h: New file.
43035
43036 2008-08-07 Christian Franke <franke@computer.org>
43037
43038 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43039 (TIMER2_GATE): Likewise.
43040 (grub_pit_wait): Add enable/disable of the timer2 gate
43041 bit of port 0x61. This fixes a possible infinite loop.
43042
43043 2008-08-07 Bean <bean123ch@gmail.com>
43044
43045 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43046 kern/i386/tsc.c and kern/i386/pit.c.
43047
43048 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43049 x86_64 platform.
43050
43051 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43052 <grub/i386/tsc.h>.
43053
43054 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43055
43056 2008-08-07 Bean <bean123ch@gmail.com>
43057
43058 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43059
43060 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43061
43062 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43063 multiple inclusion. Add #include <grub/types.h>.
43064
43065 2008-08-06 Christian Franke <franke@computer.org>
43066
43067 * conf/common.rmk: Build and install `10_windows'.
43068 * util/grub.d/10_windows.in: New script.
43069
43070 2008-08-06 Pavel Roskin <proski@gnu.org>
43071
43072 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43073
43074 2008-08-06 Robert Millan <rmh@aybabtu.com>
43075
43076 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43077 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43078
43079 2008-08-06 Bean <bean123ch@gmail.com>
43080
43081 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43082 (grub_pxefs_fs_int): Remove dummy definition.
43083 (grub_pxefs_open): Use data->block_size to store the current block
43084 size setting.
43085 (grub_pxefs_read): Use block size stored in data->block_size. As the
43086 value of grub_pxe_blksize can be changed after the file is opened.
43087
43088 2008-08-06 Bean <bean123ch@gmail.com>
43089
43090 * fs/i386/pc/pxe.c (curr_file): new variable.
43091 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43092 require the dummy internal file system anymore.
43093 (grub_pxefs_read): Removed.
43094 (grub_pxefs_close): Likewise.
43095 (grub_pxefs_fs_int): Likewise.
43096 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43097 connection when we switch file.
43098 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43099
43100 2008-08-06 Robert Millan <rmh@aybabtu.com>
43101
43102 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43103 `halt.mod'.
43104 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43105 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43106
43107 * kern/i386/halt.c: New file.
43108 * kern/i386/reboot.c: Likewise.
43109 * include/grub/i386/reboot.h: Likewise.
43110 * include/grub/i386/halt.h: Likewise.
43111
43112 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43113 Include `<grub/cpu/halt.h>'.
43114 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43115 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43116
43117 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43118 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43119 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43120 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43121 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43122 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43123 from here ...
43124 * include/grub/i386/at_keyboard.h: ... to here.
43125
43126 2008-08-05 Robert Millan <rmh@aybabtu.com>
43127
43128 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43129 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43130 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43131 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43132 `kern/generic/millisleep.c'.
43133
43134 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43135 instead of grub_get_rtc().
43136 (grub_tsc_init): Initialize `tsc_boot_time'.
43137
43138 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43139 (grub_machine_init): Use grub_tsc_init() rather than
43140 installing an RTC-based handler via grub_install_get_time_ms().
43141
43142 * kern/i386/pit.c: New file.
43143 * include/grub/i386/pit.h: Likewise.
43144
43145 2008-08-05 Bean <bean123ch@gmail.com>
43146
43147 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43148
43149 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43150 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43151 (pxe_mod_SOURCES): New macro.
43152 (pxe_mod_CFLAGS): Likewise.
43153 (pxe_mod_LDFLAGS): Likewise.
43154 (pxecmd_mod_SOURCES): Likewise.
43155 (pxecmd_mod_CFLAGS): Likewise.
43156 (pxecmd_mod_LDFLAGS): Likewise.
43157
43158 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43159 (grub_pxe_call): Likewise.
43160
43161 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43162
43163 * commands/i386/pc/pxecmd.c: New file.
43164
43165 * fs/i386/pc/pxe.c: Likewise.
43166
43167 * include/grub/i386/pc/pxe.h: Likewise.
43168
43169 2008-08-05 Bean <bean123ch@gmail.com>
43170
43171 * util/console.c (grub_console_cur_color): New variable.
43172 (grub_console_standard_color): Likewise.
43173 (grub_console_normal_color): Likewise.
43174 (grub_console_highlight_color): Likewise.
43175 (color_map): Likewise.
43176 (use_color): Likewise.
43177 (NUM_COLORS): New macro.
43178 (grub_ncurses_setcolorstate): Handle color properly.
43179 (grub_ncurses_setcolor): Don't change color here, just remember the
43180 settings, color will be set in grub_ncurses_setcolorstate.
43181 (grub_ncurses_getcolor): New function.
43182 (grub_ncurses_init): Initialize color pairs.
43183 (grub_ncurses_term): New member grub_ncurses_getcolor.
43184
43185 2008-08-05 Colin D Bennett <colin@gibibit.com>
43186
43187 High resolution timer support. Implemented for x86 CPUs using TSC.
43188 Extracted generic grub_millisleep() so it's linked in only as needed.
43189 This requires a Pentium compatible CPU; if the RDTSC instruction is
43190 not supported, then it falls back on the generic grub_get_time_ms()
43191 implementation that uses the machine's RTC.
43192
43193 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43194 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43195 `kern/generic/millisleep.c'.
43196
43197 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43198 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43199
43200 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43201 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43202
43203 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43204
43205 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43206 `kern/generic/millisleep.c'.
43207
43208 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43209
43210 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43211
43212 * kern/generic/rtc_get_time_ms.c: New file.
43213
43214 * kern/generic/millisleep.c: New file.
43215
43216 * kern/misc.c: Don't include
43217 <kern/time.h> anymore.
43218 (grub_millisleep_generic): Removed.
43219
43220 * commands/sleep.c (grub_interruptible_millisleep): Uses
43221 grub_get_time_ms() instead of grub_get_rtc().
43222
43223 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43224 function.
43225 (grub_cpu_is_cpuid_supported): New inline function.
43226 (grub_cpu_is_tsc_supported): New inline function.
43227 (grub_tsc_init): New function prototype.
43228 (grub_tsc_get_time_ms): New function prototype.
43229
43230 * kern/i386/tsc.c (grub_get_time_ms): New file.
43231
43232 * include/grub/time.h: Include <grub/types.h.
43233 (grub_millisleep_generic): Removed.
43234 (grub_get_time_ms): New prototype.
43235 (grub_install_get_time_ms): New prototype.
43236 (grub_rtc_get_time_ms): New prototype.
43237
43238 * kern/time.c (grub_get_time_ms): New function.
43239 (grub_install_get_time_ms): New function.
43240
43241 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43242 <grub/time.h> anymore.
43243 (grub_millisleep): Removed.
43244 (grub_machine_init): Call grub_tsc_init.
43245
43246 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43247 get_time_ms() implementation.
43248
43249 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43250 (ieee1275_get_time_ms): New function.
43251 (grub_machine_init): Install get_time_ms() implementation.
43252
43253 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43254 (grub_machine_init): Call grub_tsc_init().
43255 (grub_millisleep): Removed.
43256
43257 * kern/ieee1275/init.c (grub_millisleep): Removed.
43258 (grub_machine_init): Install ieee1275_get_time_ms()
43259 implementation.
43260 (ieee1275_get_time_ms): New function.
43261 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43262 real work.
43263
43264 2008-08-05 Marco Gerards <marco@gnu.org>
43265
43266 * disk/ata.c: Include <grub/pci.h>.
43267 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43268 (grub_ata_initialize): Rewritten.
43269 (grub_ata_device_initialize): New function.
43270
43271 2008-08-04 Pavel Roskin <proski@gnu.org>
43272
43273 * kern/main.c: Include grub/mm.h.
43274
43275 2008-08-04 Robert Millan <rmh@aybabtu.com>
43276
43277 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43278 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43279 corruption problem).
43280
43281 2008-08-04 Robert Millan <rmh@aybabtu.com>
43282
43283 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43284 warnings introduced in my last commit.
43285
43286 2008-08-03 Robert Millan <rmh@aybabtu.com>
43287
43288 Make PCI available on all i386 architectures.
43289
43290 * include/grub/i386/pc/pci.h: Move from here ...
43291 * include/grub/i386/pci.h: ... to here.
43292
43293 * include/grub/i386/pc/pci.h: Remove.
43294 * include/grub/i386/efi/pci.h: Remove.
43295 * include/grub/x86_64/efi/pci.h: Remove.
43296
43297 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43298 `<grub/cpu/pci.h>'.
43299
43300 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43301 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43302 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43303
43304 * conf/i386-ieee1275.rmk: Likewise.
43305
43306 2008-08-03 Robert Millan <rmh@aybabtu.com>
43307
43308 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43309 (grub_console_setcursor): Make it possible to set cursor off.
43310
43311 2008-08-03 Robert Millan <rmh@aybabtu.com>
43312
43313 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43314 of modules instead of assuming which platform provides what.
43315 * util/update-grub.in: Likewise.
43316
43317 2008-08-03 Robert Millan <rmh@aybabtu.com>
43318
43319 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43320 instead of `grub_install_dos_part' to determine whether a drive needs
43321 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43322 because it can be overridden when loading GRUB via Multiboot).
43323
43324 2008-08-02 Robert Millan <rmh@aybabtu.com>
43325
43326 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43327
43328 2008-08-02 Robert Millan <rmh@aybabtu.com>
43329
43330 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43331 of informational grub_dprintf() calls.
43332
43333 2008-08-02 Robert Millan <rmh@aybabtu.com>
43334
43335 * disk/memdisk.c (memdisk_size): Don't initialize.
43336 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43337
43338 * include/grub/i386/pc/kernel.h
43339 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43340 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43341 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43342 (grub_arch_memdisk_size): Remove.
43343
43344 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43345 field (was only used to transfer a constant). Add `type' field to
43346 support multiple module types.
43347 (grub_module_iterate): New function.
43348
43349 * kern/device.c (grub_device_open): Do not hide error messages
43350 when grub_disk_open() fails. Use grub_print_error() instead.
43351
43352 * kern/i386/pc/init.c (grub_arch_modules_addr)
43353 (grub_arch_memdisk_size): Remove functions.
43354 (grub_arch_modules_addr): Return the module address in high memory
43355 (now that it isn't copied anymore).
43356
43357 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43358 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43359 decompression routine (grub_total_module_size already includes that
43360 now). Don't copy modules back to low memory.
43361
43362 * kern/main.c: Include `<grub/mm.h>'.
43363 (grub_load_modules): Split out (and use) ...
43364 (grub_module_iterate): ... this function, which iterates through
43365 module objects and runs a hook.
43366 Comment out grub_mm_init_region() call, as it would cause non-ELF
43367 modules to be overwritten.
43368
43369 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43370 the memdisk image in its own region, make it part of the module list.
43371 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43372 (main): Parse --memdisk|-m option, and pass user-provided path as
43373 parameter to generate_image().
43374 (add_segments): Pass `memdisk_path' down to load_modules().
43375 (load_modules): Embed memdisk image in module section when requested.
43376 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43377 `header.type' instead of `header.offset'.
43378
43379 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43380 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43381 (memdisk_mod_LDFLAGS): New variables.
43382 * conf/i386-coreboot.rmk: Likewise.
43383 * conf/i386-ieee1275.rmk: Likewise.
43384
43385 2008-08-02 Robert Millan <rmh@aybabtu.com>
43386
43387 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43388 (backward_relocator): New variables. Used to allocate and relocate
43389 the payload, respectively.
43390 (grub_multiboot_load_elf32): Load into heap instead of requested
43391 address, install the appropriate relocator code in each bound of
43392 the payload, and set the entry point such that
43393 grub_multiboot_real_boot() will jump to one of them.
43394
43395 * kern/i386/loader.S (grub_multiboot_payload_size)
43396 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43397 (grub_multiboot_payload_entry_offset): New variables.
43398 (grub_multiboot_real_boot): Set cpu context to what the relocator
43399 expects, and jump to the relocator instead of the payload.
43400
43401 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43402 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43403 (grub_multiboot_payload_entry_offset): Export.
43404
43405 2008-08-01 Bean <bean123ch@gmail.com>
43406
43407 * normal/menu_entry.c (editor_getline): Don't return the original
43408 string as result, as it will be released by lexer once it has done
43409 using it.
43410
43411 2008-08-01 Robert Millan <rmh@aybabtu.com>
43412
43413 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43414 within menuentries, not before them.
43415 util/grub.d/10_hurd.in: Likewise.
43416
43417 2008-08-01 Bean <bean123ch@gmail.com>
43418
43419 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43420 (bufio_mod_SOURCES): New macro.
43421 (bufio_mod_CFLAGS): Likewise.
43422 (bufio_mod_LDFLAGS): Likewise.
43423
43424 * include/grub/bufio.h: New file.
43425
43426 * io/bufio.c: Likewise.
43427
43428 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43429 (grub_video_reader_png): Use grub_buffile_open to open file.
43430
43431 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43432 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43433
43434 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43435 (grub_video_reader_tga): Use grub_buffile_open to open file.
43436
43437 * font/manager.c: Include <grub/bufio.h>.
43438 (add_font): Use grub_buffile_open to open file.
43439
43440 2008-07-31 Robert Millan <rmh@aybabtu.com>
43441
43442 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43443 ELF segments, use a macro for arbitrarily accessing any of them instead
43444 of preparing a pointer that allows access to one at a time.
43445 (grub_multiboot_load_elf64): Likewise.
43446
43447 2008-07-31 Bean <bean123ch@gmail.com>
43448
43449 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43450 GRUB_KERNEL_MACHINE_DATA_END.
43451
43452 2008-07-30 Robert Millan <rmh@aybabtu.com>
43453
43454 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43455 Increase from 0x50 to 0x60.
43456 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43457 use UUIDs to identify the root drive for them. If that's not
43458 possible, abort.
43459 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43460 check, for cross-disk installs.
43461
43462 2008-07-30 Robert Millan <rmh@aybabtu.com>
43463
43464 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43465 is non-empty, use it to set the `prefix' environment variable instead
43466 of the usual approach.
43467 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43468 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43469 environment variable instead of dummy make_install_device().
43470
43471 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43472 (start): Insert a data section, with `grub_prefix' variable.
43473 * kern/i386/linuxbios/startup.S: Likewise.
43474
43475 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43476 New variable reference.
43477 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43478 New macro. Defines offset of `grub_prefix' within startup.S (relative
43479 to `start').
43480 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43481 section within startup.S (relative to `start').
43482 * include/grub/i386/coreboot/kernel.h: Likewise.
43483
43484 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43485 Overwrite grub_prefix with its contents, at the beginning of the
43486 first segment.
43487 (main): Understand -p|--prefix.
43488
43489 2008-07-30 Robert Millan <rmh@aybabtu.com>
43490
43491 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43492
43493 2008-07-30 Robert Millan <rmh@aybabtu.com>
43494
43495 * term/i386/pc/vga_text.c (grub_console_cls): Use
43496 grub_console_gotoxy() to go back to beginning of the screen.
43497 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43498
43499 2008-07-29 Christian Franke <franke@computer.org>
43500
43501 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43502 Add conversion of emulated mount points on Cygwin.
43503
43504 2008-07-29 Christian Franke <franke@computer.org>
43505
43506 * util/update-grub.in: Add a check for admin
43507 group on Cygwin.
43508 Remove old `grub.cfg.new' before creation.
43509 Add `-f' to `mv' to handle the different filesystem
43510 semantics of Windows.
43511
43512 2008-07-29 Bean <bean123ch@gmail.com>
43513
43514 * normal/main.c (get_line): Fix buffer overflow bug.
43515
43516 2008-07-28 Robert Millan <rmh@aybabtu.com>
43517
43518 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43519 (struct grub_apple_header): New struct. Describes the layout of
43520 the partmap header.
43521 (apple_partition_map_iterate): Check the header magic as well as the
43522 partition magic (which was already being checked).
43523
43524 2008-07-28 Pavel Roskin <proski@gnu.org>
43525
43526 * genmk.rb: Add a warning to the beginning of the output that
43527 it's a generated file and should not be edited.
43528
43529 2008-07-28 Robert Millan <rmh@aybabtu.com>
43530
43531 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43532 with the same number are found, just use issue a warning with
43533 grub_dprintf(), as this error has been reported to be non-fatal.
43534
43535 2008-07-27 Robert Millan <rmh@aybabtu.com>
43536
43537 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43538 information.
43539
43540 2008-07-27 Bean <bean123ch@gmail.com>
43541
43542 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43543 (grub_fat_find_dir): Ignore case when comparing filename.
43544
43545 2008-07-27 Bean <bean123ch@gmail.com>
43546
43547 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43548 smallino, as it's more descriptive, and i8count can be confused with
43549 the other field count.
43550 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43551 inode type.
43552
43553 2008-07-27 Bean <bean123ch@gmail.com>
43554
43555 * commands/crc.c: New file.
43556
43557 * lib/crc.c: Likewise.
43558
43559 * include/grub/lib/crc.h: Likewise.
43560
43561 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43562
43563 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43564 (hexdump): Move this function to ...
43565
43566 * lib/hexdump.c: ... here.
43567
43568 * include/grub/hexdump.h: Renamed to ...
43569
43570 * include/grub/lib/hexdump.h: ... this.
43571
43572 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43573
43574 * util/grub-editenv.c: Likewise.
43575
43576 * include/envblk.h: Renamed to ...
43577
43578 * include/lib/envblk.h: ... this.
43579
43580 * util/envblk.c: Renamed to ...
43581
43582 * lib/envblk.c: ... this.
43583
43584 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43585 lib/hexdump.c.
43586 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43587 (pkglib_MODULES): Add crc.mod.
43588 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43589 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43590 (crc_mod_SOURCES): New macro.
43591 (crc_mod_CFLAGS): Likewise.
43592 (crc_mod_LDFLAGS): Likewise.
43593
43594 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43595
43596 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43597
43598 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43599
43600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43601
43602 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43603
43604 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43605
43606 * commands/help.c: Include <grub/term.h>.
43607 (TERM_WIDTH): Removed. Updated all users.
43608
43609 2008-07-27 Pavel Roskin <proski@gnu.org>
43610
43611 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43612 spurious warnings about a comment within a comment.
43613
43614 2008-07-25 Robert Millan <rmh@aybabtu.com>
43615
43616 * util/getroot.c (find_root_device): Skip devices that match
43617 /dev/dm-[0-9]. This lets the real device be found for any type of
43618 abstraction (LVM, EVMS, RAID..).
43619 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43620 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43621 device is found first, find_root_device() will now skip it.
43622
43623 2008-07-24 Pavel Roskin <proski@gnu.org>
43624
43625 * include/grub/types.h: Use __builtin_bswap32() and
43626 __builtin_bswap64() with gcc 4.3 and newer.
43627
43628 2008-07-24 Christian Franke <franke@computer.org>
43629
43630 * util/i386/pc/grub-install.in: If `--debug' is specified,
43631 pass `--verbose' to grub-setup.
43632 Abort script if make_system_path_relative_to_its_root() fails.
43633
43634 2008-07-24 Bean <bean123ch@gmail.com>
43635
43636 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43637 variable `target_platform' should be `platform'.
43638
43639 2008-07-24 Bean <bean123ch@gmail.com>
43640
43641 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43642 (grub_png_init_fixed_block): New function.
43643 (grub_png_decode_image_data): Handle fixed huffman code compression.
43644
43645 2008-07-24 Bean <bean123ch@gmail.com>
43646
43647 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43648 (grub_pe2elf_SOURCES): New macro.
43649 (CLEANFILES): Add grub-pe2elf.
43650
43651 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43652 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43653 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43654 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43655 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43656 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43657 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43658 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43659 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43660 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43661 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43662 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43663 (GRUB_PE32_DT_FUNCTION): Likewise.
43664 (GRUB_PE32_REL_I386_DIR32): Likewise.
43665 (GRUB_PE32_REL_I386_REL32): Likewise.
43666 (grub_pe32_symbol): New structure.
43667 (grub_pe32_reloc): Likewise.
43668
43669 * util/grub-pe2elf.c: New file.
43670
43671 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43672 start symbol in non pc platform.
43673
43674 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43675
43676 The following patches are from Christian Franke.
43677
43678 * include/grub/dl.h: Remove .previous, gas supports this only
43679 for ELF format.
43680
43681 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43682 Remove .type, gas supports this only for ELF format.
43683
43684 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43685 nullbytes in symbol table. This fixes an infinite loop if table is
43686 zero filled.
43687
43688 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43689 TARGET_IMG_LDFLAGS and EXEEXT.
43690
43691 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43692 TARGET_IMG_LDFLAGS_AC.
43693 (grub_CHECK_STACK_ARG_PROBE): New function.
43694
43695 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43696
43697 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43698
43699 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43700 to set TARGET_IMG_LD* accordingly.
43701 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43702 Add call to grub_CHECK_STACK_ARG_PROBE.
43703 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43704
43705 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43706
43707 * genmk.rb: Add EXEEXT to CLEANFILES.
43708
43709 2008-07-23 Robert Millan <rmh@aybabtu.com>
43710
43711 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43712 define the codes for arrows and lines used for the menu).
43713 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43714 as well.
43715
43716 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43717 fonts, because the latter are too slow.
43718
43719 2008-07-21 Bean <bean123ch@gmail.com>
43720
43721 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43722 a20. Run keyboard test last, as it will cause macbook to halt.
43723
43724 2008-07-18 Pavel Roskin <proski@gnu.org>
43725
43726 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43727 load foreign architecture modules correctly anyway. Keep
43728 support for loading host architecture modules, whether we
43729 compile them or not.
43730
43731 2008-07-17 Pavel Roskin <proski@gnu.org>
43732
43733 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43734 change target_cpu. The compiler default can mismatch target_cpu
43735 in any case.
43736
43737 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43738 * kern/efi/efi.c: Likewise.
43739
43740 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43741 target compiler is functional.
43742 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43743 are set up.
43744
43745 * configure.ac: Default to efi platform for x86_64-apple. Allow
43746 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43747 adjustments from the rest, only do them if target is not
43748 explicitly given. Merge other adjustments with the final sanity
43749 check. Remove an extraneous check for supported CPU. Be
43750 specific which CPU and which platform is not supported.
43751
43752 * configure.ac: Default to pc platform for x86_64.
43753
43754 2008-07-17 Robert Millan <rmh@aybabtu.com>
43755
43756 Partial LinuxBIOS -> Coreboot rename.
43757
43758 * conf/i386-linuxbios.rmk: Renamed to ...
43759 * conf/i386-coreboot.rmk: ... this.
43760 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43761 * configure.ac: Accept "coreboot" as input platform (but maintain
43762 compatibility with "linuxbios").
43763 * include/grub/i386/linuxbios: Renamed to ...
43764 * include/grub/i386/coreboot: ... this.
43765
43766 2008-07-17 Bean <bean123ch@gmail.com>
43767
43768 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43769 (appleldr_mod_SOURCE): New variable.
43770 (appleldr_mod_CFLAGS): Likewise.
43771 (appleldr_mod_LDFLAGS): Likewise.
43772 (pci_mod_SOURCES): Likewise.
43773 (pci_mod_CFLAGS): Likewise.
43774 (pci_mod_LDFLAGS): Likewise.
43775 (lspci_mod_SOURCES): Likewise.
43776 (lspci_mod_CFLAGS): Likewise.
43777 (lspci_mod_LDFLAGS): Likewise.
43778
43779 * conf/x86_64-efi.rmk: New file.
43780
43781 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43782 macro.
43783 (grub_efidisk_write): Likewise.
43784
43785 * include/efi/api.h (efi_call_0): New macro.
43786 (efi_call_1): Likewise.
43787 (efi_call_2): Likewise.
43788 (efi_call_3): Likewise.
43789 (efi_call_4): Likewise.
43790 (efi_call_5): Likewise.
43791 (efi_call_6): Likewise.
43792
43793 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43794 grub_rescue_cmd_chainloader.
43795
43796 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43797 (grub_pe32_optional_header): Change some fields based on i386 or
43798 x86_64 platform.
43799 (GRUB_PE32_PE32_MAGIC): Likewise.
43800
43801 * include/grub/efi/uga_draw.h: New file.
43802
43803 * include/grub/elf.h (STN_ABS): New constant.
43804 (R_X86_64_NONE): Relocation constant for x86_64.
43805 (R_X86_64_64): Likewise.
43806 (R_X86_64_PC32): Likewise.
43807 (R_X86_64_GOT32): Likewise.
43808 (R_X86_64_PLT32): Likewise.
43809 (R_X86_64_COPY): Likewise.
43810 (R_X86_64_GLOB_DAT): Likewise.
43811 (R_X86_64_JUMP_SLOT): Likewise.
43812 (R_X86_64_RELATIVE): Likewise.
43813 (R_X86_64_GOTPCREL): Likewise.
43814 (R_X86_64_32): Likewise.
43815 (R_X86_64_32S): Likewise.
43816 (R_X86_64_16): Likewise.
43817 (R_X86_64_PC16): Likewise.
43818 (R_X86_64_8): Likewise.
43819 (R_X86_64_PC8): Likewise.
43820
43821 * include/grub/i386/efi/pci.h: New file.
43822
43823 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43824 Change it value based on platform.
43825 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43826 (GRUB_E820_RAM): Likewise.
43827 (GRUB_E820_RESERVED): Likewise.
43828 (GRUB_E820_ACPI): Likewise.
43829 (GRUB_E820_NVS): Likewise.
43830 (GRUB_E820_EXEC_CODE): Likewise.
43831 (GRUB_E820_MAX_ENTRY): Likewise.
43832 (grub_e820_mmap): New structure.
43833 (linux_kernel_header): Change the efi field according to different
43834 kernel version, also field from linux_kernel_header.
43835
43836 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43837
43838 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43839 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43840 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43841 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43842 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43843 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43844 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43845 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43846 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43847 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43848
43849 * include/grub/x86_64/efi/kernel.h: New file.
43850
43851 * include/grub/x86_64/efi/loader.h: Likewise.
43852
43853 * include/grub/x86_64/efi/machine.h: Likewise.
43854
43855 * include/grub/x86_64/efi/pci.h: Likewise.
43856
43857 * include/grub/x86_64/efi/time.h: Likewise.
43858
43859 * include/grub/x86_64/linux.h: Likewise.
43860
43861 * include/grub/x86_64/setjmp.h: Likewise.
43862
43863 * include/grub/x86_64/time.h: Likewise.
43864
43865 * include/grub/x86_64/types.h: Likewise.
43866
43867 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43868 GRUB_TARGET_SIZEOF_VOID_P.
43869
43870 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43871 (grub_efi_locate_handle): Likewise.
43872 (grub_efi_open_protocol): Likewise.
43873 (grub_efi_set_text_mode): Likewise.
43874 (grub_efi_stall): Likewise.
43875 (grub_exit): Likewise.
43876 (grub_reboot): Likewise.
43877 (grub_halt): Likewise.
43878 (grub_efi_exit_boot_services): Likewise.
43879 (grub_get_rtc): Likewise.
43880
43881 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43882 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43883 (grub_efi_allocate_pages): Wrap efi calls.
43884 (grub_efi_free_pages): Wrap efi calls.
43885 (grub_efi_get_memory_map): Wrap efi calls.
43886
43887 * kern/x86_64/dl.c: New file.
43888
43889 * kern/x86_64/efi/callwrap.S: Likewise.
43890
43891 * kern/x86_64/efi/startup.S: Likewise.
43892
43893 * loader/efi/appleloader.c: Likewise.
43894
43895 * loader/efi/chainloader.c (cmdline): New variable.
43896 (grub_chainloader_unload): Wrap efi calls.
43897 (grub_chainloader_boot): Likewise.
43898 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43899 command line.
43900
43901 * loader/efi/chainloader_normal.c (chainloader_command):
43902 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43903 command line.
43904
43905 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43906 method.
43907 (grub_e820_add_region): New function.
43908 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43909 booting.
43910 (grub_find_video_card): New function.
43911 (grub_linux_setup_video): New function.
43912 (grub_rescue_cmd_linux): Probe for video information.
43913
43914 * normal/x86_64/setjmp.S: New file.
43915
43916 * term/efi/console.c (map_char): New function.
43917 (grub_console_putchar): Map unicode char.
43918 (grub_console_checkkey): Wrap efi calls.
43919 (grub_console_getkey): Likewise.
43920 (grub_console_getwh): Likewise.
43921 (grub_console_gotoxy): Likewise.
43922 (grub_console_cls): Likewise.
43923 (grub_console_setcolorstate): Likewise.
43924 (grub_console_setcursor): Likewise.
43925
43926 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43927
43928 2008-07-16 Pavel Roskin <proski@gnu.org>
43929
43930 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43931 format strings.
43932
43933 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43934 pointer, not an integer. This fixes a warning and prevents
43935 precision loss on 64-bit systems.
43936 (relocate_addresses): Remove unneeded cast.
43937
43938 2008-07-15 Pavel Roskin <proski@gnu.org>
43939
43940 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43941
43942 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43943
43944 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43945 Fix comparison between signed and unsigned.
43946
43947 * include/grub/i386/ieee1275/console.h: Declare
43948 grub_console_init() and grub_console_fini().
43949
43950 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43951 It's empty and unused.
43952
43953 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43954 beginning to avoid warnings with some compilers.
43955
43956 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43957 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43958
43959 2008-07-14 Pavel Roskin <proski@gnu.org>
43960
43961 * kern/env.c (grub_register_variable_hook): Don't copy empty
43962 string, it leaks memory. Pass "" to grub_env_set(), it should
43963 handle constant strings.
43964
43965 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43966 * commands/cmp.c (grub_cmd_cmp): Likewise.
43967 * kern/dl.c (grub_dl_flush_cache): Likewise.
43968 (grub_dl_load_core): Likewise.
43969 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43970 (grub_elf64_load_phdrs): Likewise.
43971
43972 2008-07-13 Pavel Roskin <proski@gnu.org>
43973
43974 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43975 between signed and unsigned.
43976 (LzmaEnc_Finish): Fix warning about an unused parameter.
43977
43978 2008-07-13 Bean <bean123ch@gmail.com>
43979
43980 * Makefile.in (enable_lzo): New rule.
43981
43982 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43983
43984 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43985
43986 * boot/i386/pc/lnxboot.S: #include <config.h>.
43987
43988 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43989 its value according to the compression algorithm used, lzo or lzma.
43990
43991 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43992 compression algorithm according to configure macro.
43993
43994 * kern/i386/pc/startup.S (codestart): Likewise.
43995
43996 * kern/i386/pc/lzma_decode.S: New file.
43997
43998 * include/grub/lib/LzFind.h: Likewise.
43999
44000 * include/grub/lib/LzHash.h: Likewise.
44001
44002 * include/grub/lib/LzmaDec.h: Likewise.
44003
44004 * include/grub/lib/LzmaEnc.h: Likewise.
44005
44006 * include/grub/lib/LzmaTypes.h: Likewise.
44007
44008 * lib/LzFind.c: Likewise.
44009
44010 * lib/LzmaDec.c: Likewise.
44011
44012 * lib/LzmaEnc.c: Likewise.
44013
44014 2008-07-13 Bean <bean123ch@gmail.com>
44015
44016 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44017 (grub_ext4_extent_header): New structure.
44018 (grub_ext4_extent): Likewise.
44019 (grub_ext4_extent_idx): Likewise.
44020 (grub_ext4_find_leaf): New function.
44021 (grub_ext2_read_block): Handle extents.
44022
44023 2008-07-12 Robert Millan <rmh@aybabtu.com>
44024
44025 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44026
44027 2008-07-11 Robert Millan <rmh@aybabtu.com>
44028
44029 * util/grub.d/40_custom.in: New file. Example on how to add custom
44030 entries to /etc/grub.d.
44031 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44032 40_custom (implicitly, by merging all the grub.d rules).
44033
44034 2008-07-11 Pavel Roskin <proski@gnu.org>
44035
44036 * commands/read.c (grub_getline): Fix invalid memory access.
44037 Don't add newline to the variable value.
44038
44039 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44040 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44041 (serial_hw_get_port): Check validity of the port number.
44042 (grub_cmd_serial): Check return value of serial_hw_get_port().
44043
44044 2008-07-07 Pavel Roskin <proski@gnu.org>
44045
44046 * boot/i386/pc/diskboot.S (notification_string): Replace
44047 "Loading kernel" with just "loading". This is shorter, less
44048 confusing and saves a few bytes for possible future changes.
44049
44050 2008-07-05 Pavel Roskin <proski@gnu.org>
44051
44052 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44053 size for ATAPI devices, they are undefined. Output sector
44054 number in decimal form.
44055
44056 * disk/ata.c: Use named constants for status bits.
44057
44058 2008-07-04 Pavel Roskin <proski@gnu.org>
44059
44060 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44061 grub_addr_t before casting it to the void pointer to fix a
44062 warning. Non-addressable regions are discarded earlier.
44063 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44064 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44065 (check_signature): Don't shadow table_header.
44066 (grub_linuxbios_table_iterate): Cast numeric constants to
44067 grub_linuxbios_table_header_t.
44068 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44069 grub_stop().
44070
44071 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44072 prevent warnings.
44073
44074 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44075 pointer, which can cause warnings. Support 64-bit addresses.
44076
44077 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44078 of sizeof(long). This fixes PowerPC image generation on x86_64.
44079
44080 2008-07-04 Robert Millan <rmh@aybabtu.com>
44081
44082 This fixes a performance issue when pc & gpt partmap iterators
44083 didn't abort iteration even after our hook found what it was
44084 looking for (often causing expensive probes of non-existent drives).
44085
44086 Some callers relied on previous buggy behaviour, since they would
44087 raise an error when their own hooks caused early abortion of its
44088 iteration.
44089
44090 * kern/device.c (grub_device_open): Improve error message.
44091 * disk/lvm.c (grub_lvm_open): Likewise.
44092 * disk/raid.c (grub_raid_open): Likewise.
44093
44094 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44095 when hook requests it, independently of grub_errno.
44096 (pc_partition_map_probe): Do not fail when find_func() caused
44097 early abortion of pc_partition_map_iterate().
44098
44099 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44100 when hook requests it, independently of grub_errno.
44101 (gpt_partition_map_probe): Do not fail when find_func() caused
44102 early abortion of gpt_partition_map_iterate().
44103
44104 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44105 when hook requests it, independently of grub_errno. Do not fail when
44106 part_map_iterate_hook() caused early abortion of p->iterate().
44107
44108 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44109 when grub_partition_iterate() returned with non-zero.
44110
44111 2008-07-03 Pavel Roskin <proski@gnu.org>
44112
44113 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44114 like we do in grub_ata_pio_read().
44115 (grub_ata_readwrite): Always write individual sectors. Fix the
44116 sector count for the remainder.
44117 (grub_ata_write): Enable writing to ATA devices. Correctly
44118 report error for ATAPI devices.
44119
44120 2008-07-02 Pavel Roskin <proski@gnu.org>
44121
44122 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44123 warning.
44124
44125 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44126 for every read sector, we already increment it for the whole
44127 batch. This fixes reading more than 256 sectors at once.
44128
44129 * util/grub-editenv.c (cmd_info): Cast argument to long
44130 explicitly. ptrdiff_t reduces to int on i386.
44131
44132 * util/grub-editenv.c (main): Be specific which parameter is
44133 missing.
44134
44135 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44136 (memdisk): Make memdisk_orig_addr a pointer.
44137
44138 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44139 for file offsets, use grub_off_t instead. Fix printf format
44140 warnings.
44141
44142 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44143 there. Real unexpected warnings should not drown in the noise
44144 about known problems.
44145
44146 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44147 grub_disk_addr_t for memory addresses.
44148
44149 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44150 explicitly to fix a warning.
44151
44152 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44153
44154 * Makefile.in (MODULE_LDFLAGS): New variable.
44155 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44156 the linker accepts --build-id=none.
44157 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44158 MODULE_LDFLAGS.
44159 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44160
44161 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44162 those in Linux XFS code. Provide a way to access 64-bit parent
44163 inode.
44164 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44165 the end of struct grub_xfs_dir_header.
44166
44167 2008-07-02 Bean <bean123ch@gmail.com>
44168
44169 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44170 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44171 and GRUB_IEEE1275_FLAG_NO_ANSI.
44172
44173 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44174 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44175 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44176
44177 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44178 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44179
44180 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44181 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44182
44183 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44184 esc sequence on non ANSI terminal.
44185 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44186
44187 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44188 beginning of file.
44189
44190 2008-07-02 Bean <bean123ch@gmail.com>
44191
44192 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44193 (grub_editenv_SOURCES): New variable.
44194 (pkglib_MODULES): Add loadenv.mod.
44195 (loadenv_mod_SOURCES): New variable.
44196 (loadenv_mod_CFLAGS): Likewise.
44197 (loadenv_mod_LDFLAGS): Likewise.
44198
44199 * include/grub/envblk.h: New file.
44200
44201 * util/envblk.c: New file.
44202
44203 * util/grub-editenv.c: New file.
44204
44205 * commands/loadenv.c: New file.
44206
44207 2008-07-01 Pavel Roskin <proski@gnu.org>
44208
44209 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44210 not unsigned char. This fixes warnings and is consistent with
44211 other tags.
44212
44213 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44214
44215 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44216
44217 * term/tparm.c (analyze): Always set *popcount.
44218
44219 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44220 cast to fix a warning.
44221
44222 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44223 cast to suppress a warning.
44224
44225 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44226 grub_fshelp_read_file() expects.
44227
44228 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44229 write uuid as a 32-bit value in CPU byte order, so declare and
44230 use it as such.
44231
44232 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44233 long if the format specifier expects it.
44234 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44235 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44236 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44237 long to fix a warning.
44238 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44239 grub_dprintf() arguments to fix warnings.
44240
44241 2008-06-30 Pavel Roskin <proski@gnu.org>
44242
44243 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44244 install_bsd_part immediately before core.img is embedded or
44245 modified on disk. This fixes core.img verification if core.img
44246 cannot be embedded.
44247
44248 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44249 core_path to calculate the blocklist.
44250 Patch from Javier Martín <lordhabbit@gmail.com>
44251
44252 2008-06-29 Robert Millan <rmh@aybabtu.com>
44253
44254 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44255 block to disk block.
44256 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44257 Patch from Niels Böhm <bitbucket@arcor.de>
44258
44259 2008-06-29 Robert Millan <rmh@aybabtu.com>
44260
44261 * util/update-grub_lib.in (font_path): Search for fonts in
44262 /boot/grub first, which is more likely to be readable (we aren't
44263 deciding where fonts live, just looking for them).
44264
44265 2008-06-26 Pavel Roskin <proski@gnu.org>
44266
44267 * util/biosdisk.c (read_device_map): Don't leave dead map
44268 entries for devices failing stat() check.
44269
44270 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44271 core_path_dev for the core.img path on the target device.
44272
44273 2008-06-26 Robert Millan <rmh@aybabtu.com>
44274
44275 * disk/fs_uuid.c: New file.
44276 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44277 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44278 (fs_uuid_mod_LDFLAGS): New variables.
44279 * include/grub/disk.h (grub_disk_dev_id): Add
44280 `GRUB_DISK_DEVICE_UUID_ID'.
44281 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44282 implement iterate().
44283
44284 2008-06-26 Robert Millan <rmh@aybabtu.com>
44285
44286 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44287 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44288 Linux image includes no initrd.
44289
44290 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44291
44292 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44293 call to resolve the core image location that effectively appended the
44294 name twice.
44295
44296 2008-06-21 Robert Millan <rmh@aybabtu.com>
44297
44298 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44299 call from here ...
44300
44301 * util/grub.d/10_hurd.in: ... to here ...
44302 * util/grub.d/10_linux.in: ... and here.
44303
44304 2008-06-19 Robert Millan <rmh@aybabtu.com>
44305
44306 * kern/main.c (grub_main): Export `prefix' variable immediately
44307 after it has been set by grub_machine_set_prefix().
44308
44309 2008-06-19 Robert Millan <rmh@aybabtu.com>
44310
44311 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44312 search result when not saving to variable, not the other way around.
44313 When saving to variable, abort iteration as soon as a match is found.
44314
44315 2008-06-19 Robert Millan <rmh@aybabtu.com>
44316
44317 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44318 check for partition that provides /boot/grub. Its logic is flawed,
44319 as it prevents prepare_grub_to_access_device() from being called
44320 multiple times.
44321
44322 2008-06-19 Robert Millan <rmh@aybabtu.com>
44323
44324 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44325 "insmod" command directly when abstraction modules are needed,
44326 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44327 since it had already been processed).
44328
44329 2008-06-19 Pavel Roskin <proski@gnu.org>
44330
44331 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44332 changed. This is needed in case GRUB_LIBDIR changes.
44333 * conf/i386-ieee1275.rmk: Likewise.
44334 * conf/i386-linuxbios.rmk: Likewise.
44335 * conf/i386-pc.rmk: Likewise.
44336 * conf/powerpc-ieee1275.rmk: Likewise.
44337
44338 2008-06-18 Pavel Roskin <proski@gnu.org>
44339
44340 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44341 kernel_elf_symlist.c to symlist.c for consistency with other
44342 architectures. Update all users.
44343 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44344
44345 2008-06-18 Robert Millan <rmh@aybabtu.com>
44346
44347 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44348 it in prefix.
44349
44350 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44351 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44352 a RAID device, run setup() for all members independently on whether
44353 LVM abstraction is being used.
44354 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44355 If grub-mkimage has set `*install_dos_part == -2', don't override this
44356 value.
44357 Perform *install_dos_part adjustments independently on whether
44358 we're embedding or not.
44359 Clarify error message when image is too big for embedding.
44360 Remove duplicate *install_dos_part stanza.
44361
44362 2008-06-17 Robert Millan <rmh@aybabtu.com>
44363
44364 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44365 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44366 variables.
44367 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44368 values in grub_ofconsole_normal_color and
44369 grub_ofconsole_highlight_color (they're not directly related to
44370 background and foreground).
44371 (grub_ofconsole_setcolorstate): Extract background and foreground
44372 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44373
44374 2008-06-17 Robert Millan <rmh@aybabtu.com>
44375
44376 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44377 /boot/grub for the check in last commit, not /boot (they could be
44378 different partitions).
44379
44380 2008-06-16 Robert Millan <rmh@aybabtu.com>
44381
44382 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44383 asked to setup access for the same partition that provides /boot,
44384 don't bother using UUIDs since our root already has the value we
44385 want.
44386
44387 2008-06-16 Robert Millan <rmh@aybabtu.com>
44388
44389 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44390 I2O devices.
44391 Patch from Sven Mueller <sven@debian.org>.
44392
44393 2008-06-16 Robert Millan <rmh@aybabtu.com>
44394
44395 * util/update-grub.in: Check for $EUID instead of $UID.
44396 Reported by Vincent Zweije.
44397
44398 2008-06-16 Bean <bean123ch@gmail.com>
44399
44400 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44401 (grub_ext2_read_block): Likewise.
44402 (grub_ext2_read_inode): Likewise.
44403 (grub_ext2_mount): Likewise.
44404 (grub_ext2_close): Likewise.
44405 (grub_ext3_get_journal): Removed.
44406
44407 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44408 (grub_reiserfs_read_symlink): Likewise.
44409 (grub_reiserfs_mount): Likewise.
44410 (grub_reiserfs_open): Likewise.
44411 (grub_reiserfs_read): Likewise.
44412 (grub_reiserfs_close): Likewise.
44413 (grub_reiserfs_get_journal): Removed.
44414
44415 * fs/fshelp.c (grub_fshelp_read): Removed.
44416 (grub_fshelp_map_block): Likewise.
44417
44418 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44419 (grub_fshelp_journal): Likewise.
44420 (grub_fshelp_read): Likewise.
44421 (grub_fshelp_map_block): Likewise.
44422
44423 2008-06-16 Pavel Roskin <proski@gnu.org>
44424
44425 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44426 floating point anymore.
44427 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44428
44429 2008-06-15 Pavel Roskin <proski@gnu.org>
44430
44431 * commands/ls.c (grub_ls_list_files): Use integer calculations
44432 for human readable format, avoid floating point use.
44433 * kern/misc.c (grub_ftoa): Remove.
44434 (grub_vsprintf): Remove floating point support.
44435
44436 2008-06-15 Robert Millan <rmh@aybabtu.com>
44437
44438 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44439 devices.
44440 Reported by Max Vozeler.
44441
44442 2008-06-15 Robert Millan <rmh@aybabtu.com>
44443
44444 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44445 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44446 skipped later.
44447 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44448 the beginning of the prefix.
44449
44450 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44451 It is assumed that if we have a memdisk, grub-mkimage has set
44452 grub_prefix to include the "(memdisk)" drive in it.
44453
44454 2008-06-15 Robert Millan <rmh@aybabtu.com>
44455
44456 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44457 Initialize keyboard controller after registering the terminal, so that
44458 grub_printf() can be called from grub_keyboard_controller_init().
44459
44460 2008-06-15 Robert Millan <rmh@aybabtu.com>
44461
44462 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44463 extent-btree which is written as big endian on disk.
44464 Reported by Alain Greppin <al@chilibi.org>.
44465
44466 2008-06-14 Robert Millan <rmh@aybabtu.com>
44467
44468 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44469 * util/i386/pc/grub-install.in (modules): Likewise.
44470
44471 2008-06-13 Pavel Roskin <proski@gnu.org>
44472
44473 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44474
44475 2008-06-13 Bean <bean123ch@gmail.com>
44476
44477 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44478
44479 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44480
44481 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44482 to indicate sparse block.
44483
44484 2008-06-12 Pavel Roskin <proski@gnu.org>
44485
44486 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44487 number, grub_fshelp_read() does it for us.
44488
44489 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44490 linear disk read with journal translation.
44491 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44492 * include/grub/fshelp.h: Declare grub_fshelp_read().
44493
44494 2008-06-09 Pavel Roskin <proski@gnu.org>
44495
44496 * fs/minix.c (grub_minix_mount): Handle error reading
44497 superblock.
44498
44499 2008-06-08 Robert Millan <rmh@aybabtu.com>
44500
44501 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44502 don't append the RAID prefix afterwards.
44503 Reported by Clint Adams.
44504
44505 2008-06-08 Robert Millan <rmh@aybabtu.com>
44506
44507 Based on description from Pavel:
44508 * kern/disk.c (grub_disk_check_range): Rename to ...
44509 (grub_disk_adjust_range): ... this. Add a comment explaining the
44510 tasks performed by this function.
44511
44512 2008-06-08 Robert Millan <rmh@aybabtu.com>
44513
44514 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44515 `num_serial' (for consistency with other variables).
44516 (struct grub_ntfs_data): Add `uuid' member.
44517 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44518 (grub_ntfs_uuid): New function.
44519 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44520
44521 2008-06-07 Pavel Roskin <proski@gnu.org>
44522
44523 * util/biosdisk.c (open_device): Revert last change to the
44524 function, it broke installation. The sector needs to be
44525 different dependent on which device is opened.
44526
44527 2008-06-06 Robert Millan <rmh@aybabtu.com>
44528
44529 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44530 rest of GRUB, and breakage doesn't happen if its value were modified.
44531
44532 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44533 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44534 a constant (same value).
44535 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44536 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44537
44538 2008-06-06 Robert Millan <rmh@aybabtu.com>
44539
44540 * util/biosdisk.c (open_device): Do not modify sector offset when
44541 accessing a partition. kern/disk.c already handles this for us.
44542
44543 2008-06-06 Robert Millan <rmh@aybabtu.com>
44544
44545 * util/grub-emu.c (grub_machine_init): Move code in this function from
44546 here ...
44547 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44548 segfault in case grub_printf() is called).
44549
44550 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44551 grub_probe. Update all users not to explicitly add it again.
44552 (grub_device): New variable; contains corresponding device for grubdir.
44553 (fs_module, partmap_module, devabstraction_module): Pass
44554 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44555 every time.
44556
44557 2008-06-05 Robert Millan <rmh@aybabtu.com>
44558
44559 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44560 is found, print it (same layout as with labels).
44561
44562 2008-06-04 Robert Millan <rmh@aybabtu.com>
44563
44564 * util/biosdisk.c (get_drive): Rename to ...
44565 (find_grub_drive): ... this. Update all users.
44566
44567 (get_os_disk): Rename to ...
44568 (convert_system_partition_to_system_disk): ... this. Update all users.
44569
44570 (find_drive): Rename to ...
44571 (find_system_device): ... this. Update all users.
44572
44573 2008-06-04 Robert Millan <rmh@aybabtu.com>
44574
44575 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44576 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44577 (make_device_map): Likewise.
44578
44579 2008-06-01 Robert Millan <rmh@aybabtu.com>
44580
44581 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44582 before dereferencing it.
44583
44584 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44585 union with fat12/fat16-specific ones. Add some new fields, including
44586 `num_serial' for both versions.
44587 (struct grub_fat_data): Add `uuid' member.
44588 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44589 names. Initialize `data->uuid' using `num_serial'.
44590 (grub_fat_uuid): New function.
44591 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44592
44593 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44594 (grub_reiserfs_uuid): New function.
44595 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44596 member.
44597
44598 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44599 (grub_xfs_uuid): New function.
44600 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44601
44602 2008-06-01 Robert Millan <rmh@aybabtu.com>
44603
44604 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44605 code that is backward compatible with pre-uuid search command.
44606
44607 2008-05-31 Robert Millan <rmh@aybabtu.com>
44608
44609 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44610 floppies after everything else, to ensure floppy drive isn't accessed
44611 unnecessarily (patch from Bean).
44612
44613 2008-05-31 Robert Millan <rmh@aybabtu.com>
44614
44615 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44616 not print device names when we were asked to set a variable.
44617
44618 2008-05-31 Robert Millan <rmh@aybabtu.com>
44619
44620 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44621 using "cursor-on" and "cursor-off" commands (understood at least by
44622 the Open Firmware flavour on OLPC).
44623
44624 2008-05-31 Michael Gorven <michael@gorven.za.net>
44625
44626 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44627 on and off sequences.
44628
44629 2008-05-31 Robert Millan <rmh@aybabtu.com>
44630
44631 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44632 * util/update-grub.in: Likewise.
44633
44634 2008-05-30 Pavel Roskin <proski@gnu.org>
44635
44636 * util/biosdisk.c (linux_find_partition): Simplify logic and
44637 make the code more universal. Keep special processing for
44638 devfs, but use a simple rule for all other devices. If the
44639 device ends with a number, append 'p' and the partition number.
44640 Otherwise, append only the partition number.
44641
44642 2008-05-30 Robert Millan <rmh@aybabtu.com>
44643
44644 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44645 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44646 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44647 the `root' parameter to Linux.
44648
44649 2008-05-30 Robert Millan <rmh@aybabtu.com>
44650
44651 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44652 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44653 --fs_uuid with --fs-uuid.
44654 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44655 all filesystems support them).
44656
44657 2008-05-30 Robert Millan <rmh@aybabtu.com>
44658
44659 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44660 grub_printf() flags, since we're printing in units of 2 bytes.
44661
44662 2008-05-30 Robert Millan <rmh@aybabtu.com>
44663
44664 * util/grub.d/00_header.in: Remove obsolete comment referencing
44665 convert_system_path_to_grub_path().
44666 * util/update-grub.in: Likewise.
44667 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44668 (convert_system_path_to_grub_path): Add a warning message explaining
44669 that this function is deprecated. Rely on is_path_readable_by_grub()
44670 for the readability checks.
44671 (font_path): Use is_path_readable_by_grub() for the readability
44672 check rather than convert_system_path_to_grub_path().
44673
44674 2008-05-30 Robert Millan <rmh@aybabtu.com>
44675
44676 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44677 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44678 converting it first.
44679 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44680 grub.cfg for access to font file, and afterwards call it again to set
44681 the root device.
44682
44683 2008-05-30 Robert Millan <rmh@aybabtu.com>
44684
44685 * commands/search.c (options): Add --fs_uuid option.
44686 (search_fs_uuid): New function.
44687 (grub_cmd_search): Fix --set argument passing.
44688 Use search_fs_uuid() when requested via --fs_uuid.
44689 (grub_search_init): Update help message.
44690 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44691 and redeclare it as an array of 16-bit words.
44692 (grub_ext2_uuid): New function.
44693 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44694 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44695 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44696 (GRUB_DEVICE_BOOT_UUID): New variables.
44697 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44698 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44699 whenever possible.
44700 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44701 just assume `root' variable has the right value.
44702 * util/grub.d/10_linux.in: Likewise.
44703 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44704 via PRINT_FS_UUID.
44705 (main): Recognise `-t fs_uuid' argument.
44706
44707 2008-05-30 Robert Millan <rmh@aybabtu.com>
44708
44709 * util/biosdisk.c (map): Redefine structure to hold information
44710 about GRUB drive name.
44711 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44712 drive names.
44713 (call_hook): Remove.
44714 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44715 member. Assume drive has partitions.
44716 (grub_util_biosdisk_open): Access device names via `.device' struct
44717 member.
44718 (open_device): Likewise.
44719 (find_drive): Likewise.
44720 (read_device_map): Adjust map[] usage to match the new struct
44721 definition. Don't check for duplicates (still possible, but not cheap
44722 anymore).
44723 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44724 (make_device_name): Remove assumption of BIOS-like drive names.
44725
44726 2008-05-30 Pavel Roskin <proski@gnu.org>
44727
44728 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44729 compiling execute.c doesn't need grub_script.tab.h anymore.
44730 (normal/command.c_DEPENDENCIES): Likewise.
44731 (normal/function.c_DEPENDENCIES): Likewise.
44732 * conf/i386-ieee1275.rmk: Likewise.
44733 * conf/i386-linuxbios.rmk: Likewise.
44734 * conf/i386-pc.rmk: Likewise.
44735 * conf/powerpc-ieee1275.rmk: Likewise.
44736 * conf/sparc64-ieee1275.rmk: Likewise.
44737
44738 2008-05-29 Pavel Roskin <proski@gnu.org>
44739
44740 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44741 when scanning metadata for volume group name.
44742
44743 * include/grub/script.h: Don't include grub_script.tab.h. It's
44744 a generated file, which may only be included from the files with
44745 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44746 use union YYSTYPE, as the later allows forward declaration.
44747 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44748
44749 2008-05-29 Robert Millan <rmh@aybabtu.com>
44750
44751 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44752 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44753 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44754 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44755 scan codes.
44756
44757 2008-05-29 Robert Millan <rmh@aybabtu.com>
44758
44759 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44760 control key combinations.
44761
44762 2008-05-29 Robert Millan <rmh@aybabtu.com>
44763
44764 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44765 * util/ieee1275/grub-install.in: ... to here.
44766 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44767 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44768 (grub_install_SOURCES): Likewise.
44769
44770 2008-05-29 Robert Millan <rmh@aybabtu.com>
44771
44772 * fs/affs.c: Update copyright year.
44773 * fs/ext2.c: Likewise.
44774 * fs/fshelp.c: Likewise.
44775 * fs/hfsplus.c: Likewise.
44776 * fs/ntfs.c: Likewise.
44777 * fs/xfs.c: Likewise.
44778 * include/grub/fshelp.h: Likewise.
44779 * util/grub-mkdevicemap.c: Likewise.
44780
44781 2008-05-28 Robert Millan <rmh@aybabtu.com>
44782
44783 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44784 might need to be fatfs to support some firmware implementations
44785 (e.g. OFW or EFI).
44786
44787 2008-05-28 Robert Millan <rmh@aybabtu.com>
44788
44789 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44790 devices.
44791 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44792 (make_device_map): Likewise.
44793
44794 2008-05-20 Bean <bean123ch@gmail.com>
44795
44796 * fs/fshelp.c (grub_fshelp_map_block): New function.
44797 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44798 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44799
44800 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44801 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44802 (grub_fshelp_journal): New structure.
44803 (grub_fshelp_map_block): New function prototype.
44804 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44805 (grub_fshelp_map_block): Likewise.
44806
44807 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44808 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44809 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44810 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44811 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44812 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44813 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44814 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44815 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44816 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44817 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44818 (grub_ext2_sblock): New members for journal support.
44819 (grub_ext3_journal_header): New structure.
44820 (grub_ext3_journal_revoke_header): Likewise.
44821 (grub_ext3_journal_block_tag): Likewise.
44822 (grub_ext3_journal_sblock): Likewise.
44823 (grub_fshelp_node): New members logfile and journal.
44824 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44825 grub_fshelp_map_block to get real block number.
44826 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44827 number.
44828 (grub_ext2_read_inode): Likewise.
44829 (grub_ext3_get_journal): New function.
44830 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44831 (grub_ext2_close): Release memory used by journal.
44832
44833 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44834 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44835 (grub_reiserfs_transaction_header): Renamed to
44836 grub_reiserfs_description_block, replace field data with real_blocks.
44837 (grub_reiserfs_commit_block): New structure.
44838 (grub_reiserfs_data): New member journal.
44839 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44840 number.
44841 (grub_reiserfs_read_symlink): Likewise.
44842 (grub_reiserfs_iterate_dir): Likewise.
44843 (grub_reiserfs_open): Likewise.
44844 (grub_reiserfs_read): Likewise.
44845 (grub_reiserfs_get_journal): New function.
44846 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44847 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44848 using grub_reiserfs_get_journal.
44849 (grub_reiserfs_close): Release memory used by journal.
44850
44851 * fs/affs.c (grub_affs_read_block): Change block type to
44852 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44853
44854 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44855
44856 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44857
44858 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44859
44860 * fs/udf.c (grub_udf_read_block): Change block type to
44861 grub_disk_addr_t. Use type cast to avoid warning.
44862
44863 * fs/xfs.c (grub_xfs_read_block): Likewise.
44864
44865 2008-05-16 Christian Franke <franke@computer.org>
44866
44867 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44868 to ensure that break with ESC will always work.
44869 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44870 Remove ESC from keyboard queue.
44871
44872 2008-05-16 Christian Franke <franke@computer.org>
44873
44874 * util/biosdisk.c: [__CYGWIN__] Add includes.
44875 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44876 (get_os_disk): Move variable declarations to OS specific
44877 parts to avoid warning.
44878 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44879 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44880 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44881 Cygwin.
44882 * util/getroot.c: [__CYGWIN__] Add includes.
44883 (strip_extra_slashes): Fix "/" case.
44884 [__CYGWIN__] (get_win32_path): New function.
44885 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44886 [__CYGWIN__] (find_root_device): Disable.
44887 [__CYGWIN__] (get_bootsec_serial): New function.
44888 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44889 [__linux__] (grub_guess_root_device): Add early returns to simplify
44890 structure.
44891 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44892 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44893 check for Linux only.
44894
44895 2008-05-15 Bean <bean123ch@gmail.com>
44896
44897 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44898 keyboard hang problem in apple's intel mac.
44899
44900 2008-05-09 Robert Millan <rmh@aybabtu.com>
44901
44902 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44903 devices.
44904 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44905 (make_device_map): Likewise.
44906 Reported by Aurelien Jarno <aurel32@debian.org>
44907
44908 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44909
44910 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44911 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44912 (make_device_map): Output entries for xvd type disks.
44913
44914 2008-05-07 Robert Millan <rmh@aybabtu.com>
44915
44916 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44917 devices.
44918 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44919 (make_device_map): Likewise.
44920 Reported by Roland Dreier <rdreier@cisco.com>
44921
44922 2008-05-07 Robert Millan <rmh@aybabtu.com>
44923
44924 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44925 grub_strstr() call. Correct a few mistakes in failure path handling.
44926
44927 2008-05-06 Robert Millan <rmh@aybabtu.com>
44928
44929 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44930 Do not print a trailing slash (therefore, the root directory is an
44931 empty string).
44932 (convert_system_path_to_grub_path): Do not remove trailing slash
44933 from make_system_path_relative_to_its_root() output.
44934
44935 * util/i386/pc/grub-install.in: Add trailing slash to output from
44936 make_system_path_relative_to_its_root().
44937
44938 2008-05-06 Robert Millan <rmh@aybabtu.com>
44939
44940 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44941 ensures that output lines aren't intermangled with those sent to
44942 stderr (via grub_util_info()).
44943 * util/grub-probe.c (grub_refresh): Likewise.
44944 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44945
44946 2008-05-05 Christian Franke <franke@computer.org>
44947
44948 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44949 Add Cygwin device names.
44950 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44951 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44952 (check_device): Return error instead of success on empty name.
44953 (make_device_map): Move label inside linux specific code to
44954 prevent compiler warning.
44955
44956 2008-04-30 Robert Millan <rmh@aybabtu.com>
44957
44958 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44959 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44960 first boot option.
44961 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44962
44963 2008-04-29 Robert Millan <rmh@aybabtu.com>
44964
44965 * docs/grub.cfg: New file (example GRUB configuration).
44966
44967 2008-04-26 Robert Millan <rmh@aybabtu.com>
44968
44969 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44970 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44971 and `disk/ieee1275/nand.c'.
44972
44973 2008-04-25 Bean <bean123ch@gmail.com>
44974
44975 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44976 i386-linuxbios.
44977
44978 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44979 change the buffer size to 4096 for cdrom device.
44980
44981 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44982 and nand.mod.
44983 (_linux_mod_SOURCES): New variable.
44984 (_linux_mod_CFLAGS): Likewise.
44985 (_linux_mod_LDFLAGS): Likewise.
44986 (linux_mod_SOURCES): Likewise.
44987 (linux_mod_CFLAGS): Likewise.
44988 (linux_mod_LDFLAGS): Likewise.
44989 (nand_mod_SOURCES): Likewise.
44990 (nand_mod_CFLAGS): Likewise.
44991 (nand_mod_LDFLAGS): Likewise.
44992
44993 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44994 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44995 type property. (nand device in olpc don't have this property)
44996
44997 * include/grub/disk.h (grub_disk_dev_id): New macro
44998 GRUB_DISK_DEVICE_NAND_ID.
44999
45000 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45001 function prototype.
45002 (grub_rescue_cmd_initrd): Likewise.
45003
45004 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45005 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45006 ofw_cif_handler and ofw_idt, adjust padding number.
45007
45008 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45009 GRUB_MACHINE_IEEE1275 is defined.
45010
45011 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45012 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45013
45014 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45015 on nested function heap_init.
45016 (grub_upper_mem): New variable for i386-ieee1275.
45017 (grub_get_extended_memory): New function for i386-ieee1275.
45018 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45019
45020 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45021 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45022 property.
45023
45024 * loader/i386/ieee1275/linux.c: New file.
45025
45026 * loader/i386/ieee1275/linux_normal.c: New file.
45027
45028 * disk/ieee1275/nand.c: New file.
45029
45030 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45031
45032 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45033 value.
45034 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45035
45036 2008-04-18 Robert Millan <rmh@aybabtu.com>
45037
45038 Restructures early code path on ieee1275 to unify grub_main() as
45039 the first C function that is executed in every platform.
45040
45041 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45042 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45043 cmain().
45044 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45045 * kern/ieee1275/cmain.c (cmain): Rename to ...
45046 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45047 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45048 at the beginning.
45049
45050 2008-04-18 Robert Millan <rmh@aybabtu.com>
45051
45052 * util/update-grub.in: Fix syntax error when setting
45053 `GRUB_PRELOAD_MODULES'.
45054 Reported by Stephane Chazelas <stephane@artesyncp.com>
45055
45056 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45057
45058 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45059 section into account, newer toolchains generate unique build ids
45060 * configure.ac: remove the test for --build-id=none acceptance,
45061 we want build ids to be preserved
45062 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45063 far from other sections don't cause the raw binary images grow
45064 size
45065
45066 2008-04-15 Robert Millan <rmh@aybabtu.com>
45067
45068 * disk/lvm.c: Update copyright year.
45069 * kern/misc.c: Likewise.
45070
45071 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45072
45073 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45074 there is no memory left for physical volume name.
45075
45076 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45077
45078 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45079 volume name mapping to support bigger than 9 character names properly.
45080
45081 2008-04-13 Robert Millan <rmh@aybabtu.com>
45082
45083 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45084 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45085
45086 2008-04-13 Christian Franke <franke@computer.org>
45087
45088 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45089 to create a floppy emulation boot CD when non emulation mode
45090 does not work.
45091 Enable Joliet CD filesystem extension.
45092
45093 2008-04-13 Robert Millan <rmh@aybabtu.com>
45094
45095 * kern/misc.c (grub_strncat): Fix off-by-one error.
45096 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45097
45098 * kern/env.c (grub_env_context_close): Clear current context, not
45099 previous one.
45100 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45101
45102 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45103
45104 2008-04-13 Robert Millan <rmh@aybabtu.com>
45105
45106 Improve robustness when handling LVM.
45107
45108 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45109 (and leave `*p' unmodified).
45110 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45111 through it.
45112 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45113 iterating through it.
45114 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45115 through it.
45116 (grub_lvm_scan_device): Check the return value (and fail gracefully
45117 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45118 Don't assume `vg->pvs != NULL' when iterating through it.
45119
45120 2008-04-13 Robert Millan <rmh@aybabtu.com>
45121
45122 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45123 * genmk.rb (partmap): New variable.
45124 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45125 (#{partmap}): New target rule.
45126 * genpartmaplist.sh: New file.
45127 * Makefile.in (pkglib_DATA): Add partmap.lst.
45128 (partmap.lst): New target rule.
45129 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45130 modules (including all partition maps), instead of preloading them.
45131
45132 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45133
45134 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45135 `linux-boot-prober' (if installed) to detect other operating
45136 systems which are installed on the computer and add them to
45137 the boot menu.
45138 * conf/common.rmk: Build and install 30_os-prober.
45139
45140 2008-04-12 Robert Millan <rmh@aybabtu.com>
45141
45142 * kern/powerpc/ieee1275/init.c: Move from here ...
45143 * kern/ieee1275/init.c: ... to here. Update all users.
45144
45145 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45146 * kern/ieee1275/cmain.c: ... to here. Update all users.
45147
45148 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45149 * kern/ieee1275/openfw.c: ... to here. Update all users.
45150
45151 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45152 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45153
45154 2008-04-10 Pavel Roskin <proski@gnu.org>
45155
45156 * configure.ac: Always use "_cv_" in cache variables for
45157 compatibility with Autoconf 2.62.
45158
45159 2008-04-07 Robert Millan <rmh@aybabtu.com>
45160
45161 Revert grub/machine/init.h addition by Pavel (since it breaks on
45162 i386-ieee1275 and others):
45163 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45164 * util/powerpc/ieee1275/misc.c: Likewise.
45165
45166 2008-04-07 Robert Millan <rmh@aybabtu.com>
45167
45168 * util/grub-probe.c (probe): Improve error message.
45169
45170 2008-04-07 Robert Millan <rmh@aybabtu.com>
45171
45172 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45173 (this prevents the presence of a bogus entry from ruining the whole
45174 thing).
45175
45176 2008-04-06 Pavel Roskin <proski@gnu.org>
45177
45178 * util/biosdisk.c: Include grub/util/biosdisk.h.
45179 * util/grub-fstest.c (execute_command): Make static.
45180 * util/grub-mkdevicemap.c (check_device): Likewise.
45181 * util/i386/pc/misc.c: Include grub/machine/init.h.
45182 * util/powerpc/ieee1275/misc.c: Likewise.
45183 * util/lvm.c: Include grub/util/lvm.h.
45184 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45185 grub/cache.h.
45186 * util/raid.c: Include grub/util/raid.h.
45187 (grub_util_getdiskname): Make static.
45188
45189 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45190 grub_hostfs_fini(), as they are called from grub_init_all() and
45191 grub_fini_all() respectively. This fixes an infinite loop in
45192 grub-fstest due to double registration of hostfs.
45193 Reported by Christian Franke <Christian.Franke@t-online.de>
45194
45195 2008-04-05 Pavel Roskin <proski@gnu.org>
45196
45197 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45198 all 8 functions. Otherwise, probe function 0 only.
45199
45200 2008-04-04 Pavel Roskin <proski@gnu.org>
45201
45202 * commands/lspci.c (grub_lspci_iter): Print the bus number
45203 correctly.
45204
45205 * commands/lspci.c (grub_pci_classes): Fix typos.
45206 (grub_lspci_iter): Don't print func twice. Print vendor ID
45207 before device ID, as it's normally done.
45208
45209 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45210 Fix signedness warnings.
45211 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45212 Likewise.
45213 * util/ieee1275/get_disk_name.c: Include config.h so that
45214 _GNU_SOURCE is defined and getline() is declared. Mark an
45215 unused argument as such. Fix a signedness warning.
45216
45217 2008-04-02 Pavel Roskin <proski@gnu.org>
45218
45219 * genkernsyms.sh.in: Use more robust assignments for CC and
45220 srcdir. Quote srcdir.
45221 * gensymlist.sh.in: Likewise. Assert at the compile time that
45222 the symbol table is not empty.
45223
45224 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45225 * fs/cpio.c (grub_cpio_read): Likewise.
45226
45227 2008-04-01 Pavel Roskin <proski@gnu.org>
45228
45229 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45230 * disk/host.c (grub_host_open): Likewise.
45231 * disk/loopback.c (grub_loopback_open): Likewise.
45232 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45233 disk->id as in disk/host.c, not a multi-character constant.
45234
45235 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45236 later is obsolete, potentially dangerous and sets a bad example.
45237 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45238 * util/misc.c (grub_util_get_image_size): Likewise.
45239
45240 * disk/loopback.c (options): Improve help for "--partitions".
45241
45242 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45243 options to align them with the short options, e.g. "echo -e".
45244
45245 2008-03-31 Bean <bean123ch@gmail.com>
45246
45247 * video/reader/png.c (grub_png_data): New member is_16bit and
45248 image_data.
45249 (grub_png_decode_image_header): Detect 16 bit png image.
45250 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45251 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45252 (grub_video_reader_png): Release memory occupied by image_data.
45253
45254 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45255 4096 bytes.
45256 (grub_nfs_mount): Skip the test for sector per cluster.
45257
45258 * include/grub/ntfs.h (MAX_SPC): Removed.
45259
45260 2008-03-31 Bean <bean123ch@gmail.com>
45261
45262 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45263 (grub_probe_SOURCES): Add fs/afs.c.
45264 (grub_fstest_SOURCES): Likewise.
45265 (afs_mod_SOURCES): New variable.
45266 (afs_mod_CFLAGS): Likewise.
45267 (afs_mod_LDFLAGS): Likewise.
45268
45269 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45270 (grub_emu_SOURCES): Likewise.
45271
45272 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45273
45274 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45275
45276 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45277
45278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45279
45280 * fs/afs.c: New file.
45281
45282 2008-03-30 Pavel Roskin <proski@gnu.org>
45283
45284 * disk/host.c: Include grub/misc.h to fix a warning.
45285 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45286 warnings about implicit declarations.
45287
45288 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45289 variable.
45290 * include/grub/i386/loader.h: Change declaration of
45291 grub_linux_boot() to match what grub_loader_set() expects.
45292 * util/getroot.c (grub_guess_root_device): Return const char* to
45293 fix a warning.
45294 * util/grub-probe.c (probe): Fix a warning about uninitialized
45295 abstraction_name variable.
45296 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45297 second argument as unused to fix a warning.
45298
45299 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45300 missing grub_error() call.
45301
45302 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45303 2.60 and newer uses it to define datadir.
45304
45305 * commands/sleep.c: Fix warning about implicit declaration.
45306 * disk/memdisk.c: Likewise.
45307 * loader/aout.c: Likewise.
45308 * loader/i386/bsd_normal.c: Likewise.
45309 * util/grub-probe.c: Likewise.
45310
45311 * commands/i386/cpuid.c (has_longmode): Make static.
45312 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45313 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45314
45315 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45316 GDT. This is more robust, as %ds can change.
45317 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45318 calling real_to_prot().
45319 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45320
45321 2008-03-28 Pavel Roskin <proski@gnu.org>
45322
45323 * kern/i386/pc/startup.S: Assert that uncompressed functions
45324 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45325 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45326 code, as they push parts of the code (error handlers) beyond
45327 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45328 code as correctness and size.
45329
45330 2008-03-28 Pavel Roskin <proski@gnu.org>
45331
45332 * kern/i386/pc/startup.S
45333 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45334 data block address to the real mode, keep offset minimal. This
45335 works around a bug in AWARD BIOS on old Athlon systems, which
45336 makes CD detection hang.
45337
45338 2008-03-26 Pavel Roskin <proski@gnu.org>
45339
45340 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45341 const.
45342 * include/grub/normal.h: Add grub_parse_color_name_pair()
45343 declaration.
45344
45345 2008-03-24 Bean <bean123ch@gmail.com>
45346
45347 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45348 (cd_count): Removed.
45349 (cd_drive): New variable.
45350 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45351 (grub_biosdisk_call_hook): Likewise.
45352 (grub_biosdisk_iterate): Change cdrom detection method.
45353 (grub_biosdisk_open): Replace cd_start with cd_drive.
45354 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45355 detect cdrom device.
45356
45357 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45358 Removed.
45359 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45360 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45361 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45362 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45363 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45364 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45365 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45366 (grub_biosdisk_cdrp): New structure.
45367 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45368
45369 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45370
45371 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45372 device.
45373
45374 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45375 New function.
45376
45377 2008-03-20 Robert Millan <rmh@aybabtu.com>
45378
45379 Remove 2 TiB limit in ata.mod.
45380 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45381 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45382 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45383 grub_uint64_t instead of grub_uint32_t.
45384
45385 2008-03-05 Bean <bean123ch@gmail.com>
45386
45387 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45388 (grub_multiboot): Set boot device.
45389
45390 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45391
45392 2008-03-02 Bean <bean123ch@gmail.com>
45393
45394 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45395 symlink_buffer.
45396
45397 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45398
45399 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45400 texinfo.tex.
45401
45402 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45403 modified.
45404
45405 * docs/fdl.texi: New file.
45406
45407 * docs/mdate-sh: New file. Copied from gnulib.
45408 * docs/texinfo.tex: Likewise.
45409
45410 * config.guess: Updated from gnulib.
45411 * install-sh: Likewise.
45412
45413 2008-02-28 Robert Millan <rmh@aybabtu.com>
45414
45415 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45416 (aout_mod_SOURCES): New variable.
45417 (aout_mod_CFLAGS): Likewise.
45418 (aout_mod_LDFLAGS): Likewise.
45419
45420 * conf/i386-ieee1275.rmk: Likewise.
45421
45422 2008-02-28 Robert Millan <rmh@aybabtu.com>
45423
45424 * util/update-grub.in: Reorganise terminal validity check. Accept
45425 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45426 Based on suggestion by Franklin PIAT.
45427
45428 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45429
45430 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45431 function.
45432 * util/getroot.c (grub_util_check_block_device): New function that
45433 returns the given argument if it is a block device and returns NULL else.
45434 * util/grub-probe.c (argument_is_device): New variable.
45435 (probe): Promote device_name from a variable to an argument. Receive
45436 device_name from grub_util_check_block_device() if path is NULL and from
45437 grub_guess_root_device() else. Do not free() device_name anymore.
45438 (options): Introduce new parameter '-d, --device'.
45439 (main): Add description of the new parameter to the help screen.
45440 Rename path variable to argument. Set argument_is_device if the '-d'
45441 option is given. Pass argument to probe() depending on
45442 argument_is_device.
45443
45444 2008-02-24 Bean <bean123ch@gmail.com>
45445
45446 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45447 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45448 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45449 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45450 (GRUB_ISO9660_VOLDESC_END): Likewise.
45451 (grub_iso9660_primary_voldesc): New member escape.
45452 (grub_iso9660_data): New member joliet.
45453 (grub_iso9660_convert_string): New function.
45454 (grub_iso9660_mount): Detect joliet extension.
45455 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45456 (grub_iso9660_iso9660_label): Likewise.
45457
45458 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45459 (grub_setup_SOURCES): Add fs/udf.c.
45460 (grub_fstest_SOURCES): Likewise.
45461 (udf_mod_SOURCES): New variable.
45462 (udf_mod_CFLAGS): Likewise.
45463 (udf_mod_LDFLAGS): Likewise.
45464
45465 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45466 (grub_emu_SOURCES): Likewise.
45467
45468 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45469
45470 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45471
45472 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45473
45474 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45475
45476 * fs/udf.c: New file.
45477
45478 2008-02-24 Robert Millan <rmh@aybabtu.com>
45479
45480 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45481 (normal/lexer.c_DEPENDENCIES): New variables.
45482 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45483 (normal/lexer.c_DEPENDENCIES): Likewise.
45484 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45485 (normal/lexer.c_DEPENDENCIES): Likewise.
45486 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45487 (normal/lexer.c_DEPENDENCIES): Likewise.
45488 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45489 (normal/lexer.c_DEPENDENCIES): Likewise.
45490 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45491 (normal/lexer.c_DEPENDENCIES): Likewise.
45492
45493 2008-02-23 Robert Millan <rmh@aybabtu.com>
45494
45495 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45496 since they were intended to be in hex. This didn't break previously
45497 because of a bug in gpt_partition_map_iterate() (see below).
45498
45499 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45500 when checking the validity of GPT header.
45501 Remove `partno', since it always provides the same information as `i'.
45502
45503 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45504
45505 * include/grub/efi/time.h: Fix a wrong comment.
45506
45507 2008-02-19 Pavel Roskin <proski@gnu.org>
45508
45509 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45510 message.
45511
45512 2008-02-19 Bean <bean123ch@gmail.com>
45513
45514 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45515 (aout_mod_SOURCES): New variable.
45516 (aout_mod_CFLAGS): Likewise.
45517 (aout_mod_LDFLAGS): Likewise.
45518 (_bsd_mod_SOURCES): New variable.
45519 (_bsd_mod_CFLAGS): Likewise.
45520 (_bsd_mod_LDFLAGS): Likewise.
45521 (bsd_mod_SOURCES): New variable.
45522 (bsd_mod_CFLAGS): Likewise.
45523 (bsd_mod_LDFLAGS): Likewise.
45524
45525 * include/grub/aout.h: New file.
45526
45527 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45528
45529 * include/grub/i386/bsd.h: New file.
45530
45531 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45532 to make it public.
45533
45534 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45535 function is called, so that it's possible to change it inside the hook.
45536 (grub_elf64_load): Likewise.
45537 (grub_elf_file): Don't close the file if elf header is not found.
45538 (grub_elf_close): Close the file if grub_elf_file fails (The new
45539 grub_elf_file won't close it).
45540 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45541 (grub_elf64_size): Likewise.
45542
45543 * kern/i386/loader.S (grub_unix_real_boot): New function.
45544
45545 * loader/aout.c: New file.
45546
45547 * loader/i386/bsd.c: New file.
45548
45549 * loader/i386/bsd_normal.c: New file.
45550
45551 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45552
45553 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45554 can test other formats.
45555
45556 2008-02-19 Robert Millan <rmh@aybabtu.com>
45557
45558 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45559 (grub_gpt_partition_type_empty): Redefine with macro from
45560 `<grub/gpt_partition.h>'.
45561 (gpt_partition_map_iterate): Adjust partition type comparison.
45562
45563 Export `entry' as partmap-specific `part.data' struct.
45564 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45565
45566 * include/grub/gpt_partition.h (grub_gpt_header)
45567 (grub_gpt_partentry): ... to here (new file).
45568
45569 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45570
45571 (grub_gpt_partition_type_bios_boot): New const variable, defined
45572 with macro from `<grub/gpt_partition.h>'.
45573
45574 (setup): Replace `first_start' with `embed_region', which keeps
45575 track of the embed region (and is partmap-agnostic).
45576
45577 Replace find_first_partition_start() with find_usable_region(),
45578 which finds a usable region for embedding using partmap-specific
45579 knowledge (supports PC/MSDOS and GPT).
45580
45581 Fix all assumptions that the embed region start at sector 1, using
45582 `embed_region.start' from now on. Similarly, use `embed_region.end'
45583 rather than `first_start' to calculate available size.
45584
45585 In grub_util_info() message, replace "into after the MBR" with an
45586 indication of the specific sector our embed region starts at.
45587
45588 2008-02-19 Robert Millan <rmh@aybabtu.com>
45589
45590 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45591 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45592 `commands/reboot.c'.
45593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45594 (halt_mod_SOURCES): Likewise.
45595 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45596 (halt_mod_SOURCES): Likewise.
45597
45598 2008-02-17 Christian Franke <franke@computer.org>
45599
45600 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45601
45602 2008-02-17 Robert Millan <rmh@aybabtu.com>
45603
45604 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45605 set `first_start' to 0 for non-PC/MSDOS partition maps.
45606
45607 2008-02-16 Robert Millan <rmh@aybabtu.com>
45608
45609 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45610 do not assume partition map is PC/MSDOS before performing checks that
45611 are specific to that layout.
45612
45613 2008-02-13 Robert Millan <rmh@aybabtu.com>
45614
45615 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45616 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45617 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45618
45619 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45620
45621 * configure.ac: Only a cosmetic change on the handling of
45622 -fno-stack-protector.
45623
45624 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45625
45626 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45627 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45628 reboot.c.
45629 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45630 (halt_mod_SOURCES): New variable.
45631 (halt_mod_CFLAGS): Likewise.
45632 (halt_mod_LDFLAGS): Likewise.
45633 (reboot_mod_SOURCES): Likewise.
45634 (reboot_mod_CFLAGS): Likewise.
45635 (reboot_mod_LDFLAGS): Likewise.
45636
45637 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45638 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45639 reboot.c.
45640 (halt_mod_SOURCES): Likewise.
45641 (reboot_mod_SOURCES): Likewise.
45642
45643 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45644 commands/i386/pc/reboot.c by commands/reboot.c.
45645 (reboot_mod_SOURCES): Likewise.
45646
45647 * commands/i386/pc/reboot.c: merge this file ...
45648
45649 * commands/ieee1275/reboot.c: ... and this file ...
45650
45651 * commands/reboot.c: ... to this file.
45652 Add some precompiler directive to include the correct header for
45653 each machine.
45654
45655 * commands/ieee1275/halt.c: move this file ...
45656
45657 * commands/halt.c: ... to here.
45658 Add some precompiler directive to include the correct header for
45659 each machine.
45660
45661 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45662 (grub_halt): Likewise.
45663
45664 * kern/efi/efi.c (grub_reboot): New function.
45665 (grub_halt): Likewise.
45666
45667 2008-02-12 Robert Millan <rmh@aybabtu.com>
45668
45669 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45670 /dev (like it is done for /dev/mapper). This doesn't provide support
45671 for EVMS, but at least it is now easy to identify the problem when it
45672 arises.
45673
45674 2008-02-11 Robert Millan <rmh@aybabtu.com>
45675
45676 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45677 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45678 comparing it with -1, not 0.
45679
45680 2008-02-10 Robert Millan <rmh@aybabtu.com>
45681
45682 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45683 `disk/lvm.c'.
45684 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45685 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45686
45687 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45688 `disk/lvm.c' to the end of the list.
45689 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45690 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45691
45692 2008-02-10 Robert Millan <rmh@aybabtu.com>
45693
45694 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45695 grub_print_error() instead. This will let user know why we're entering
45696 rescue mode.
45697 Based on suggestions from Sam Morris.
45698
45699 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45700
45701 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45702 on remaining N args, instead of "--" arg N times.
45703
45704 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45705
45706 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45707 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45708 pattern for unknown glyphs.
45709
45710 2008-02-09 Robert Millan <rmh@aybabtu.com>
45711
45712 * configure.ac: Probe for `help2man'.
45713 * Makefile.in (builddir): New variable.
45714 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45715 or otherwise add a few flags/options to it.
45716 (install-local): For every executable utility or script that is
45717 installed, invoke $(HELP2MAN) to install a manpage based on --help
45718 output.
45719
45720 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45721 that it doesn't prevent --help from working in build tree.
45722
45723 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45724 with `bug-grub@gnu.org'.
45725 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45726 * util/update-grub.in (usage): New function.
45727 Implement proper argument check, with support for --help and --version
45728 (as well as existing -y).
45729
45730 2008-02-09 Christian Franke <franke@computer.org>
45731
45732 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45733 avoid overwriting previous output.
45734 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45735
45736 2008-02-09 Robert Millan <rmh@aybabtu.com>
45737
45738 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45739 drawing the menu.
45740
45741 2008-02-09 Robert Millan <rmh@aybabtu.com>
45742
45743 * commands/sleep.c: New file.
45744 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45745 (sleep_mod_SOURCES): New variable.
45746 (sleep_mod_CFLAGS): Likewise.
45747 (sleep_mod_LDFLAGS): Likewise.
45748
45749 2008-02-09 Robert Millan <rmh@aybabtu.com>
45750
45751 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45752 situations in which we can deduce the RAID size and the superblock
45753 doesn't match it.
45754
45755 2008-02-09 Robert Millan <rmh@aybabtu.com>
45756
45757 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45758 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45759 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45760
45761 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45762 and return a grub_diskmemberlist_t composed of physical array members.
45763 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45764
45765 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45766 prototype.
45767 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45768 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45769 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45770
45771 * util/grub-probe.c (probe): Move partmap probing code from here ...
45772 (probe_partmap): ... to here.
45773 (probe): Use probe_partmap() once for the disk we're probing, and
45774 additionally, when such disk contains a memberlist() struct member,
45775 once for each disk that is contained in the structure returned by
45776 memberlist().
45777
45778 2008-02-09 Robert Millan <rmh@aybabtu.com>
45779
45780 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45781 environment variable to 'all' in order to obtain debug output from
45782 non-util/ code.
45783 * util/i386/pc/grub-setup.c (main): Likewise.
45784
45785 2008-02-08 Robert Millan <rmh@aybabtu.com>
45786
45787 * disk/raid.c (grub_raid_scan_device): Check for
45788 `array->device[sb.this_disk.number]' rather than for
45789 `array->device[sb.this_disk.number]->name', since the latter is not
45790 guaranteed to be accessible.
45791
45792 2008-02-08 Robert Millan <rmh@aybabtu.com>
45793
45794 * disk/raid.c: Update copyright.
45795 * fs/cpio.c: Likewise.
45796 * include/grub/raid.h: Likewise.
45797 * loader/i386/pc/multiboot.c: Likewise.
45798 * util/hostfs.c: Likewise.
45799
45800 2008-02-08 Robert Millan <rmh@aybabtu.com>
45801
45802 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45803 to a grub_disk_t array.
45804 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45805 `device[x]'.
45806 (grub_raid_scan_device): Replace `device[x].name' accesses with
45807 `device[x]->name'. Simplify initialization of `array->device[x]'.
45808
45809 2008-02-08 Robert Millan <rmh@aybabtu.com>
45810
45811 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45812 grub_dprintf() calls.
45813 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45814 error message.
45815
45816 2008-02-07 Christian Franke <franke@computer.org>
45817
45818 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45819 instead of fseek and ftell to support large files.
45820 (grub_hostfs_read): Likewise.
45821
45822 2008-02-07 Robert Millan <rmh@aybabtu.com>
45823
45824 Patch from Jeroen Dekkers.
45825 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45826 failure, since successfully reading all array members might not be
45827 required.
45828
45829 2008-02-06 Robert Millan <rmh@aybabtu.com>
45830
45831 * util/grub-probe.c (probe): Simplify partmap probing (with the
45832 assumption that the first word up to the underscore equals to
45833 the module name).
45834
45835 2008-02-06 Christian Franke <franke@computer.org>
45836
45837 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45838 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45839 last block of a cpio or tar stream.
45840 Check for "TRAILER!!!" instead of any empty data
45841 block to detect last block of a cpio stream.
45842 (grub_cpio_dir): Fix constness of variable np.
45843 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45844 cpio or tar trailer is detected. This fixes a crash
45845 on open of a non existing file.
45846
45847 2008-02-05 Bean <bean123ch@gmail.com>
45848
45849 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45850 address of entry.
45851 (grub_multiboot_load_elf64): Likewise.
45852 (grub_multiboot): Initialize mbi structure.
45853
45854 * util/grub-fstest.c: Don't include unused header file script.h.
45855
45856 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45857 of file.
45858 (grub_fstest_SOURCES): Likewise.
45859
45860 2008-02-05 Robert Millan <rmh@aybabtu.com>
45861
45862 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45863 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45864 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45865 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45866
45867 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45868 (translation_table): Replace hardcoded values with macros
45869 provided by `<grub/term.h>'.
45870
45871 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45872 (keyboard_map): Correct/add a few values, with macros provided
45873 by `<grub/term.h>'.
45874 (keyboard_map_shift): Zero values that don't differ from their
45875 `keyboard_map' equivalents.
45876 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45877 Discard the second scan code that is always sent by Caps lock.
45878 Only use `keyboard_map_shift' when it provides a non-zero value,
45879 otherwise fallback to `keyboard_map'.
45880
45881 2008-02-04 Bean <bean123ch@gmail.com>
45882
45883 * Makefile.in (enable_grub_fstest): New variable.
45884
45885 * conf/common.rmk (grub_fstest_init.lst): New rule.
45886 (grub_fstest_init.h): Likewise.
45887 (grub_fstest_init.c): Likewise.
45888 (util/grub-fstest.c_DEPENDENCIES): New variable.
45889 (grub_fstest_SOURCES): Likewise.
45890
45891 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45892
45893 * util/grub-fstest.c: New file.
45894
45895 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45896
45897 Make grub-setup handle a separate root device.
45898
45899 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45900 so that the root device can be compared with the destination
45901 device.
45902 When embedding the core image, if the root and destination devices
45903 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45904 0xFF.
45905 When not embedding, set ROOT_DRIVE to 0xFF.
45906
45907 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45908
45909 Add support for having a grub directory in a different drive. This
45910 is still only the data handling part.
45911
45912 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45913 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45914 (grub_root_drive): New variable.
45915
45916 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45917 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45918 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45919 as it was.
45920
45921 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45922
45923 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45924 macro.
45925 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45926
45927 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45928 is bogus, because PXE booting does not specify any drive
45929 correctly.
45930
45931 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45932 am not sure if this is really correct.
45933
45934 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45935 is always identical to the boot drive when booting from a CD.
45936
45937 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45938 longer.
45939 (root_drive): New variable.
45940 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45941 (setup_sectors): Push %dx right after popping it, because %dh will
45942 be modified later.
45943 (copy_buffer): Restore %dx.
45944
45945 2008-02-03 Robert Millan <rmh@aybabtu.com>
45946
45947 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45948 use `cdboot.img' for cdrom images.
45949
45950 2008-02-03 Robert Millan <rmh@aybabtu.com>
45951
45952 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45953 only setup gfxterm when `font' command has succeeded.
45954
45955 2008-02-03 Robert Millan <rmh@aybabtu.com>
45956
45957 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45958 (grub_rescue_cmd_multiboot_loader)
45959 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45960
45961 2008-02-03 Pavel Roskin <proski@gnu.org>
45962
45963 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45964 %edx and %esi from stack only after grub_gate_a20() is called.
45965 grub_gate_a20() clobbers %edx.
45966
45967 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45968
45969 * configure.ac (AC_INIT): Bumped to 1.96.
45970
45971 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45972 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45973 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45974 video/readers/png.c.
45975
45976 2008-02-03 Bean <bean123ch@gmail.com>
45977
45978 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45979 (cdboot_img_SOURCES): New variable.
45980 (cdboot_img_ASFLAGS): New variable.
45981 (cdboot_img_LDFLAGS): New variable.
45982
45983 * boot/i386/pc/cdboot.S: New file.
45984
45985 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45986 (cd_count): Likewise.
45987 (grub_biosdisk_get_drive): Add support for cd device.
45988 (grub_biosdisk_call_hook): Likewise.
45989 (grub_biosdisk_iterate): Likewise.
45990 (grub_biosdisk_open): Likewise.
45991 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45992 (grub_biosdisk_rw): Support reading from cd device.
45993 (GRUB_MOD_INIT): Iterate cd devices.
45994
45995 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45996 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45997 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45998
45999 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46000
46001 2008-02-02 Robert Millan <rmh@aybabtu.com>
46002
46003 * commands/read.c: New file.
46004 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46005 (read_mod_SOURCES): New variable.
46006 (read_mod_CFLAGS): Likewise.
46007 (read_mod_LDFLAGS): Likewise.
46008
46009 2008-02-02 Robert Millan <rmh@aybabtu.com>
46010
46011 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46012 determining whether menu has to be displayed.
46013
46014 2008-02-02 Marco Gerards <marco@gnu.org>
46015
46016 * bus/pci.c: New file.
46017
46018 * include/grub/pci.h: Likewise.
46019
46020 * include/grub/i386/pc/pci.h: Likewise.
46021
46022 * commands/lspci.c: Likewise.
46023
46024 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46025 `lspci.mod'.
46026 (pci_mod_SOURCES): New variable.
46027 (pci_mod_CFLAGS): Likewise.
46028 (pci_mod_LDFLAGS): Likewise.
46029 (lspci_mod_SOURCES): Likewise.
46030 (lspci_mod_CFLAGS): Likewise.
46031 (lspci_mod_LDFLAGS): Likewise.
46032
46033 2008-02-02 Bean <bean123ch@gmail.com>
46034
46035 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46036 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46037
46038 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46039 (grub_xfs_btree_node): New structure.
46040 (grub_xfs_btree_root): New structure.
46041 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46042 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46043 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46044 (GRUB_XFS_EXTENT_SIZE): Likewise.
46045 (grub_xfs_read_block): Support btree format type.
46046 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46047 Use directory block as basic unit.
46048
46049 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46050
46051 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46052 __attribute__ ((__regparm__ (1))).
46053
46054 2008-02-01 Robert Millan <rmh@aybabtu.com>
46055
46056 Correct a mistake in previous commit.
46057
46058 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46059 top.
46060 (normal/command.c_DEPENDENCIES): New variable.
46061
46062 2008-02-01 Robert Millan <rmh@aybabtu.com>
46063
46064 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46065 top.
46066 (normal/command.c_DEPENDENCIES): New variable.
46067 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46068 * conf/i386-ieee1275.rmk: Likewise.
46069 * conf/i386-linuxbios.rmk: Likewise.
46070 * conf/i386-pc.rmk: Likewise.
46071 * conf/sparc64-ieee1275.rmk: Likewise.
46072 * conf/powerpc-ieee1275.rmk: Likewise.
46073 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46074
46075 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46076
46077 2008-02-01 Robert Millan <rmh@aybabtu.com>
46078
46079 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46080 call at beginning of function.
46081
46082 2008-01-31 Pavel Roskin <proski@gnu.org>
46083
46084 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46085 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46086 (grub_mkrescue_SOURCES): Likewise.
46087 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46088
46089 2008-01-30 Robert Millan <rmh@aybabtu.com>
46090
46091 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46092 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46093 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46094 (grub_probe_SOURCES): ... to here.
46095
46096 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46097 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46098 * conf/i386-ieee1275.rmk: Likewise.
46099 * conf/i386-linuxbios.rmk: Likewise.
46100 * conf/powerpc-ieee1275.rmk: Likewise.
46101
46102 2008-01-30 Tristan Gingold <gingold@free.fr>
46103
46104 * kern/rescue.c: Silently accept empty lines.
46105
46106 2008-01-29 Bean <bean123ch@gmail.com>
46107
46108 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46109 (real_code_2): Code cleanup and change comment style.
46110 (move_memory): Avoid using 32-bit address mode.
46111
46112 2008-01-29 Bean <bean123ch@gmail.com>
46113
46114 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46115 (png_mod_SOURCES): New variable.
46116 (png_mod_CFLAGS): Likewise.
46117 (png_mod_LDFLAGS): Likewise.
46118
46119 * video/readers/png.c: New file.
46120
46121 2008-01-28 Robert Millan <rmh@aybabtu.com>
46122
46123 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46124 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46125 `ifndef GRUB_MOD_GAP' hack.
46126 * util/elf/grub-mkimage.c (add_segments): Likewise.
46127
46128 2008-01-27 Robert Millan <rmh@aybabtu.com>
46129
46130 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46131 `GRUB_MOD_GAP' for platforms in which it's not defined.
46132 * util/elf/grub-mkimage.c (add_segments): Likewise.
46133
46134 2008-01-27 Robert Millan <rmh@aybabtu.com>
46135
46136 Get grub-emu to build again (including parallel builds).
46137
46138 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46139 Split into ...
46140 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46141 (normal/execute.c_DEPENDENCIES): ... this, ...
46142 (grub-emu_DEPENDENCIES): ... and this.
46143
46144 * conf/i386-efi.rmk: Likewise.
46145 * conf/i386-linuxbios.rmk: Likewise.
46146 * conf/i386-ieee1275.rmk: Likewise.
46147 * conf/powerpc-ieee1275.rmk: Likewise.
46148 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46149
46150 2008-01-27 Robert Millan <rmh@aybabtu.com>
46151
46152 * NEWS: Add a few items.
46153
46154 2008-01-27 Robert Millan <rmh@aybabtu.com>
46155
46156 Fix parallel builds with grub-emu. Based on earlier commit for
46157 grub-probe and grub-setup.
46158
46159 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46160 (util/grub-emu.c_DEPENDENCIES): ... this.
46161 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46162 (util/grub-emu.c_DEPENDENCIES): ... this.
46163 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46164 (util/grub-emu.c_DEPENDENCIES): ... this.
46165 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46166 (util/grub-emu.c_DEPENDENCIES): ... this.
46167 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46168 (util/grub-emu.c_DEPENDENCIES): ... this.
46169
46170 2008-01-27 Pavel Roskin <proski@gnu.org>
46171
46172 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46173 to create a gap between _end and the modules added to the image
46174 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46175 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46176 * util/elf/grub-mkimage.c (add_segments): Likewise.
46177
46178 2008-01-26 Pavel Roskin <proski@gnu.org>
46179
46180 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46181 just return an error.
46182
46183 2008-01-26 Bean <bean123ch@gmail.com>
46184
46185 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46186 (grub_reiserfs_get_item): Save offset of the next item.
46187 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46188
46189 2008-01-25 Robert Millan <rmh@aybabtu.com>
46190
46191 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46192 make all filesystem sources appear together (possibly fixing omissions
46193 while at it).
46194 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46195 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46196 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46197 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46198
46199 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46200 add `kern/file.c'.
46201 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46202 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46203 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46204 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46205
46206 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46207 (probe): Add a sanity check to make sure of our ability to read
46208 requested files when probing for filesystem type.
46209
46210 * genmk.rb: Update copyright year (2007).
46211
46212 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46213 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46214 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46215 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46216 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46217 : Remove function prototypes.
46218
46219 2008-01-25 Robert Millan <rmh@aybabtu.com>
46220
46221 Revert my previous commits (based on wrong assumption of how grub_errno
46222 works).
46223
46224 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46225 * kern/file.c (grub_file_open): Likewise.
46226
46227 2008-01-24 Pavel Roskin <proski@gnu.org>
46228
46229 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46230 that hang if GRUB tries to setup colors.
46231 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46232 colors for firmwares that don't support it.
46233 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46234 Recognize Open Hack'Ware, set flags to work around its
46235 limitations.
46236
46237 2008-01-24 Robert Millan <rmh@aybabtu.com>
46238
46239 * kern/file.c (grub_file_open): Do not account previous failures of
46240 unrelated functions when grub_errno is checked for.
46241 Reported by Oleg Strikov.
46242
46243 2008-01-24 Bean <bean123ch@gmail.com>
46244
46245 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46246 (grub_ufs_sblock): New member volume name.
46247 (grub_ufs_find_file): Fix string copy bug.
46248 (grub_ufs_label): Implement this function properly.
46249
46250 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46251 (grub_hfs_iterate_records): Use the correct file number for extents
46252 and catalog file. Fix problem in next index calculation.
46253 (grub_hfs_find_node): Replace recursive function call with loop.
46254 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46255
46256 2008-01-23 Robert Millan <rmh@aybabtu.com>
46257
46258 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46259 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46260 (grub_multiboot2_real_boot): New function prototype.
46261
46262 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46263 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46264
46265 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46266 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46267
46268 2008-01-23 Robert Millan <rmh@aybabtu.com>
46269
46270 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46271 #ifdef'ed out grub_printf().
46272
46273 2008-01-23 Robert Millan <rmh@aybabtu.com>
46274
46275 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46276 grub_dprintf calls, since they make "debug=all" mode unusable.
46277 (grub_console_checkkey): Likewise.
46278
46279 2008-01-23 Robert Millan <rmh@aybabtu.com>
46280
46281 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46282 `term/i386/pc/at_keyboard.c'.
46283 (pkglib_MODULES): Add `serial.mod'.
46284 (serial_mod_SOURCES): New variable.
46285 (serial_mod_CFLAGS): Likewise.
46286 (serial_mod_LDFLAGS): Likewise.
46287
46288 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46289 `<grub/powerpc/ieee1275/console.h>'.
46290 (grub_keyboard_controller_init): New function prototype.
46291 (grub_console_checkkey): Likewise.
46292 (grub_console_getkey): Likewise.
46293
46294 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46295 keyboard on i386.
46296
46297 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46298 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46299
46300 2008-01-23 Robert Millan <rmh@aybabtu.com>
46301
46302 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46303 present, "(memdisk)/boot/grub" becomes the default prefix.
46304
46305 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46306 a memdisk tarball with all the modules. Add --overlay=DIR option that
46307 allows users to overlay additional files into the image.
46308
46309 2008-01-23 Robert Millan <rmh@aybabtu.com>
46310
46311 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46312 and `machine/memory.h'.
46313 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46314 (_multiboot_mod_SOURCES): New variable.
46315 (_multiboot_mod_CFLAGS): Likewise.
46316 (_multiboot_mod_LDFLAGS): Likewise.
46317 (multiboot_mod_SOURCES): Likewise.
46318 (multiboot_mod_CFLAGS): Likewise.
46319 (multiboot_mod_LDFLAGS): Likewise.
46320
46321 * include/grub/i386/ieee1275/loader.h: New file.
46322
46323 * include/grub/i386/ieee1275/machine.h: Likewise.
46324
46325 * include/grub/i386/ieee1275/memory.h: Likewise.
46326
46327 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46328 variable declaration.
46329 (grub_os_area_size): Likewise.
46330
46331 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46332 (grub_lower_mem, grub_upper_mem): New variables.
46333 (grub_stop_floppy): New function (just to make
46334 grub_multiboot2_real_boot() happy).
46335
46336 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46337 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46338 (grub_stop): New function.
46339 Include `"../realmode.S"' and `"../loader.S"'.
46340
46341 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46342 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46343
46344 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46345 rely on grub_multiboot2_real_boot() for final boot.
46346
46347 2008-01-22 Robert Millan <rmh@aybabtu.com>
46348
46349 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46350 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46351 device that doesn't look like an SD card.
46352 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46353 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46354 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46355 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46356 found.
46357
46358 2008-01-22 Robert Millan <rmh@aybabtu.com>
46359
46360 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46361 avoid claiming over our own code.
46362
46363 2008-01-22 Bean <bean123ch@gmail.com>
46364
46365 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46366 (jpeg_mod_SOURCES): New variable.
46367 (jpeg_mod_CFLAGS): Likewise.
46368 (jpeg_mod_LDFLAGS): Likewise.
46369
46370 * video/readers/jpeg.c : New file.
46371
46372 2008-01-22 Bean <bean123ch@gmail.com>
46373
46374 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46375 there are no more items.
46376
46377 2008-01-21 Robert Millan <rmh@aybabtu.com>
46378
46379 * kern/mm.c (grub_mm_init_region): Improve debug message.
46380
46381 2008-01-21 Robert Millan <rmh@aybabtu.com>
46382
46383 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46384 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46385 address.
46386 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46387 a C macro.
46388 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46389 Indicates start of upper memory.
46390 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46391 (generate_image): Abort when image size is big enough to corrupt
46392 upper memory.
46393
46394 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46395 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46396 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46397 instead of hardcoding 0xA0000.
46398 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46399 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46400 instead of hardcoding 0xA0000.
46401
46402 2008-01-21 Robert Millan <rmh@aybabtu.com>
46403
46404 * disk/memdisk.c (memdisk_size): New variable.
46405 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46406 `memdisk_size'.
46407 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46408 image to dynamic memory.
46409 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46410 `memdisk_size'. Free memdisk block.
46411
46412 2008-01-21 Robert Millan <rmh@aybabtu.com>
46413
46414 Fix detection of very small filesystems (like tar).
46415
46416 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46417 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46418 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46419 a problem with this disk).
46420
46421 2008-01-21 Robert Millan <rmh@aybabtu.com>
46422
46423 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46424 on grub_biosdisk_rw_standard() error.
46425
46426 2008-01-21 Robert Millan <rmh@aybabtu.com>
46427
46428 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46429 recent changes.
46430 * kern/elf.c: Likewise.
46431 * kern/ieee1275/ieee1275.c: Likewise.
46432 * kern/powerpc/ieee1275/openfw.c: Likewise.
46433 * term/ieee1275/ofconsole.c: Likewise.
46434
46435 2008-01-21 Robert Millan <rmh@aybabtu.com>
46436
46437 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46438
46439 * include/grub/kernel.h (grub_arch_memdisk_addr)
46440 (grub_arch_memdisk_size): Moved from here ...
46441
46442 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46443 (grub_arch_memdisk_size): ... to here.
46444
46445 2008-01-21 Robert Millan <rmh@aybabtu.com>
46446
46447 Mostly based on bugfix from Bean.
46448
46449 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46450 attribute with hook() parameter.
46451 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46452 declaration.
46453 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46454 attribute with hook() parameter.
46455 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46456 declaration.
46457
46458 2008-01-21 Robert Millan <rmh@aybabtu.com>
46459
46460 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46461 (pkglib_MODULES): Add `memdisk.mod'.
46462 (memdisk_mod_SOURCES): New variable.
46463 (memdisk_mod_CFLAGS): Likewise.
46464 (memdisk_mod_LDFLAGS): Likewise.
46465
46466 * disk/memdisk.c: New file.
46467
46468 * include/grub/disk.h (grub_disk_dev_id): Add
46469 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46470
46471 * include/grub/i386/pc/kernel.h
46472 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46473 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46474 (grub_kernel_image_size): New variable declaration.
46475 (grub_total_module_size): Likewise.
46476 (grub_memdisk_image_size): Likewise.
46477
46478 * include/grub/i386/pc/memory.h
46479 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46480
46481 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46482 (grub_arch_memdisk_addr): New variable declaration.
46483 (grub_arch_memdisk_size): Likewise.
46484
46485 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46486 (grub_arch_memdisk_size): Likewise.
46487
46488 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46489 (codestart): Replace hardcoded `0x100000' with
46490 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46491
46492 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46493 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46494 not NULL, append the contents of the file it refers to, at the end of
46495 the compressed kernel image. Initialize `grub_memdisk_image_size'
46496 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46497 (options): Add "memdisk"|'m' option.
46498 (main): Parse --memdisk|-m option, and pass user-provided path as
46499 parameter to generate_image().
46500
46501 2008-01-20 Robert Millan <rmh@aybabtu.com>
46502
46503 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46504 grub_dprintf() calls from here ...
46505 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46506
46507 2008-01-20 Robert Millan <rmh@aybabtu.com>
46508
46509 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46510
46511 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46512 declaration.
46513 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46514 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46515 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46516 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46517 property).
46518 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46519 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46520
46521 2008-01-19 Robert Millan <rmh@aybabtu.com>
46522
46523 Get rid of confusing function (superseded by
46524 `grub_ieee1275_get_integer_property')
46525 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46526 prototype.
46527 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46528 function.
46529 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46530 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46531 in native endianness from grub_ieee1275_get_integer_property().
46532
46533 2008-01-19 Robert Millan <rmh@aybabtu.com>
46534
46535 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46536 command after "shut-down", since implementations differ on which
46537 the command for halt is.
46538
46539 2008-01-19 Robert Millan <rmh@aybabtu.com>
46540
46541 * include/grub/i386/linuxbios/console.h: Add header protection.
46542 (grub_keyboard_controller_init): New function prototype.
46543 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46544 (KEYBOARD_COMMAND_READ): Likewise.
46545 (KEYBOARD_COMMAND_WRITE): Likewise.
46546 (KEYBOARD_SCANCODE_SET1): Likewise.
46547 (grub_keyboard_controller_write): New function.
46548 (grub_keyboard_controller_read): Likewise.
46549 (grub_keyboard_controller_init): Likewise.
46550
46551 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46552 (grub_console_init): On coreboot/LinuxBIOS, call
46553 grub_keyboard_controller_init().
46554
46555 2008-01-19 Robert Millan <rmh@aybabtu.com>
46556
46557 PowerPC changes provided by Pavel Roskin.
46558
46559 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46560 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46561 don't rely on cmain() doing it.
46562 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46563 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46564
46565 2008-01-16 Robert Millan <rmh@aybabtu.com>
46566
46567 * include/grub/i386/linuxbios/memory.h
46568 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46569 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46570 receive `table_header' as argument. Instead, probe for it in the
46571 known memory ranges where it can be present.
46572 (grub_available_iterate): Do not pass a fixed `table_header' address
46573 to grub_linuxbios_table_iterate().
46574
46575 2008-01-15 Robert Millan <rmh@aybabtu.com>
46576
46577 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46578 * conf/i386-ieee1275.rmk: New file.
46579 * include/grub/i386/ieee1275/console.h: Likewise.
46580 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46581 * include/grub/i386/ieee1275/kernel.h: Likewise.
46582 * include/grub/i386/ieee1275/time.h: Likewise.
46583 * kern/i386/ieee1275/init.c: Likewise.
46584 * kern/i386/ieee1275/startup.S: Likewise.
46585
46586 2008-01-15 Robert Millan <rmh@aybabtu.com>
46587
46588 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46589 when pointers are 32-bit (but still do set it to one when they are
46590 64-bit).
46591
46592 2008-01-15 Robert Millan <rmh@aybabtu.com>
46593
46594 * include/grub/ieee1275/ieee1275.h
46595 (grub_ieee1275_get_integer_property): New function prototype.
46596
46597 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46598 (grub_ieee1275_get_integer_property): New function. Wraps around
46599 grub_ieee1275_get_property() to handle endianness.
46600
46601 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46602 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46603 where appropriate.
46604 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46605 (grub_map): Likewise.
46606 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46607
46608 2008-01-15 Bean <bean123ch@gmail.com>
46609
46610 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46611 (grub_script_execute_cmdline): Reset grub_errno.
46612
46613 * normal/main.c (read_config_file): Reset grub_errno.
46614
46615 * normal/parse.y (script_init): New.
46616 (script): Move function and menuentry here.
46617 (delimiter): New.
46618 (command): Add delimiter at the end of command.
46619 (commands): Adjust to match the new command.
46620 (commandblock): Remove grub_script_lexer_record_start.
46621 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46622 (if): Use the new commands.
46623
46624 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46625
46626 2008-01-15 Robert Millan <rmh@aybabtu.com>
46627
46628 * normal/menu.c (run_menu): Move timeout message from here ...
46629 (print_timeout): ... to here.
46630 (run_menu): Use print_timeout() once during initial draw to print
46631 the whole message, and again in every clock tick to update only
46632 the number of seconds.
46633
46634 2008-01-15 Robert Millan <rmh@aybabtu.com>
46635
46636 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46637 actual size of `available' from grub_ieee1275_get_property(), and
46638 restrict parsing to that bound.
46639
46640 2008-01-15 Christian Franke <franke@computer.org>
46641
46642 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46643 (argp_program_version): Remove variable.
46644 (argp_program_bug_address): Likewise.
46645 (options): Convert from struct argp_option to struct option.
46646 (struct arguments): Remove.
46647 (parse_opt): Remove.
46648 (usage): New function.
46649 (main): Replace struct args members by simple variables.
46650 Replace argp_parse() by getopt_long().
46651 Add switch to evaluate options.
46652 Add missing "(...)" around root_dev in prefix string.
46653
46654 2008-01-14 Robert Millan <rmh@aybabtu.com>
46655
46656 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46657 for grub_ieee1275_exit(), in order to improve portability.
46658
46659 2008-01-14 Robert Millan <rmh@aybabtu.com>
46660
46661 * util/grub.d/10_linux.in (prefix): Define.
46662 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46663
46664 2008-01-13 Pavel Roskin <proski@gnu.org>
46665
46666 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46667 grub_errno if no errors have been detected.
46668
46669 2008-01-12 Robert Millan <rmh@aybabtu.com>
46670
46671 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46672 (grub_util_get_dev_abstraction): New function prototype.
46673
46674 * util/getroot.c: Include `<grub/util/getroot.h>'
46675 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46676 (grub_util_get_dev_abstraction): ... here (new function).
46677
46678 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46679 `PRINT_ABSTRACTION'.
46680 (probe): Probe for abstraction type when requested.
46681 (main): Understand `--target=abstraction'.
46682
46683 * util/i386/efi/grub-install.in: Add abstraction module to core
46684 image when it is found to be necessary.
46685 * util/i386/pc/grub-install.in: Likewise.
46686 * util/powerpc/ieee1275/grub-install.in: Likewise.
46687
46688 * util/update-grub_lib.in (font_path): Return system path without
46689 converting to GRUB path.
46690 * util/update-grub.in: Convert system path returned by font_path()
46691 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46692 abstraction module is needed for loading fonts (if any). Export
46693 that as `GRUB_PRELOAD_MODULES'.
46694 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46695 insmod commands).
46696
46697 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46698
46699 Remove some unused code from reiserfs.
46700
46701 * fs/reiserfs.c (struct grub_reiserfs_key)
46702 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46703 (struct grub_reiserfs_node_body): Removed.
46704 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46705 Likewise.
46706 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46707 Likewise.
46708 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46709 Likewise.
46710 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46711 Likewise.
46712 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46713 Likewise.
46714 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46715 Likewise.
46716 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46717 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46718 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46719
46720 2008-01-10 Robert Millan <rmh@aybabtu.com>
46721
46722 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46723 Determines if a file is garbage left by packaging systems, etc.
46724 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46725 for processing /etc/grub.d scripts.
46726 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46727 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46728 as a condition for processing Linux images.
46729
46730 2008-01-10 Pavel Roskin <proski@gnu.org>
46731
46732 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46733 to compile reiserfs.c on PowerPC.
46734
46735 2008-01-10 Robert Millan <rmh@aybabtu.com>
46736
46737 * kern/device.c (grub_device_iterate): Do not abort device iteration
46738 when one of the devices cannot be opened.
46739 * kern/disk.c (grub_disk_open): Do not account previous failures of
46740 unrelated functions when grub_errno is checked for.
46741
46742 2008-01-08 Robert Millan <rmh@aybabtu.com>
46743
46744 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46745 `! grub_linux_is_bzimage', change order of address comparison to make
46746 it more intuitive, and improve "too big zImage" error message.
46747
46748 2008-01-08 Robert Millan <rmh@aybabtu.com>
46749
46750 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46751 `$(update-grub_DATA)'.
46752 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46753 targets.
46754
46755 2008-01-07 Robert Millan <rmh@aybabtu.com>
46756
46757 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46758 which instruction is modified by grub-setup during installation
46759 (since it wasn't obvious by only looking at this file).
46760
46761 2008-01-07 Robert Millan <rmh@aybabtu.com>
46762
46763 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46764 listing actual TODO items.
46765
46766 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46767
46768 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46769 correctly.
46770 (grub_reiserfs_get_key_offset): Likewise.
46771 (grub_reiserfs_set_key_offset): Likewise.
46772 (grub_reiserfs_set_key_type): Likewise.
46773 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46774
46775 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46776 better to remove the bitfield version completely.
46777
46778 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46779
46780 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46781 allocated from the heap, due to the fshelp implementation.
46782 (grub_reiserfs_dir): Free NODE, due to the same reason.
46783
46784 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46785
46786 Mostly from Vincent Pelletier:
46787
46788 * fs/reiserfs.c: New file.
46789
46790 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46791 (reiserfs_mod_SOURCES): New variable.
46792 (reiserfs_mod_CFLAGS): Likewise.
46793 (reiserfs_mod_LDFLAGS): Likewise.
46794
46795 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46796 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46797 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46798 normal/color.c.
46799
46800 2008-01-06 Robert Millan <rmh@aybabtu.com>
46801
46802 * normal/color.c: Remove `<grub/env.h>'.
46803
46804 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46805
46806 * include/grub/normal.h: Include <grub/env.h>.
46807
46808 2008-01-05 Robert Millan <rmh@aybabtu.com>
46809
46810 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46811 usage example with `(hd0,1)'.
46812 Reported by Samuel Thibault.
46813
46814 2008-01-05 Robert Millan <rmh@aybabtu.com>
46815
46816 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46817 (grub_linux_boot_zimage): Rename to ...
46818 (grub_linux_boot): ... this.
46819 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46820 (grub_linux_boot_zimage): Conditionalize zImage copy.
46821
46822 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46823 (grub_linux_boot_bzimage): Remove prototype.
46824 (grub_linux_boot_zimage): Rename to ...
46825 (grub_linux_boot): ... this.
46826
46827 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46828 (grub_linux_boot): Remove function.
46829
46830 2008-01-05 Robert Millan <rmh@aybabtu.com>
46831
46832 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46833 (grub_env_write_color_highlight): Likewise.
46834 (grub_wait_after_message): Likewise.
46835
46836 * normal/color.c: New file.
46837
46838 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46839 (normal_mod_DEPENDENCIES): Likewise.
46840
46841 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46842 (normal_mod_DEPENDENCIES): Likewise.
46843
46844 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46845 (normal_mod_DEPENDENCIES): Likewise.
46846
46847 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46848 (normal_mod_DEPENDENCIES): Likewise.
46849
46850 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46851 for waiting after a message is printed.
46852 * normal/main.c (read_config_file): Likewise.
46853 (grub_normal_init): Register grub_env_write_color_normal() and
46854 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46855 `color_highlight' variables as global.
46856
46857 * normal/menu.c (grub_wait_after_message): New function.
46858 (grub_color_menu_normal): New variable. Replaces ...
46859 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46860 (grub_color_menu_highlight): New variable. Replaces ...
46861 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46862 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46863 `GRUB_TERM_COLOR_STANDARD'.
46864 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46865 `normal_code' and `highlight_code' to `old_color_normal' and
46866 `old_color_highlight', respectively.
46867 (grub_menu_init_page): Update colors when drawing the menu, based on
46868 `menu_color_normal' and `menu_color_highlight' variables.
46869 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46870 a message is printed.
46871
46872 2008-01-05 Robert Millan <rmh@aybabtu.com>
46873
46874 * kern/env.c (grub_env_context_open): Propagate hooks for global
46875 variables to new context.
46876
46877 * kern/main.c (grub_set_root_dev): Export `root' variable.
46878
46879 2008-01-05 Robert Millan <rmh@aybabtu.com>
46880
46881 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46882 discs unconditionally, since udev and others have options to provide
46883 them.
46884
46885 2008-01-05 Robert Millan <rmh@aybabtu.com>
46886
46887 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46888
46889 2008-01-04 Christian Franke <franke@computer.org>
46890
46891 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46892 of eisa_mmap.
46893
46894 2008-01-03 Pavel Roskin <proski@gnu.org>
46895
46896 * kern/i386/linuxbios/init.c: Put "void" to all function
46897 declarations with no arguments.
46898 * kern/powerpc/ieee1275/init.c: Likewise.
46899 * term/i386/pc/at_keyboard.c: Likewise.
46900 * term/i386/pc/vga_text.c: Likewise.
46901 * util/grub-mkdevicemap.c: Likewise.
46902
46903 2008-01-02 Robert Millan <rmh@aybabtu.com>
46904
46905 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46906 message when loaded image is out of bounds.
46907 (grub_multiboot_load_elf64): Likewise.
46908
46909 2008-01-02 Pavel Roskin <proski@gnu.org>
46910
46911 * util/grub.d/10_linux.in: Try version without ".old" when
46912 looking for initrd. It's better to use initrd from the newer
46913 kernel of the same version than no initrd at all.
46914
46915 2008-01-01 Robert Millan <rmh@aybabtu.com>
46916
46917 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46918
46919 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46920
46921 * include/grub/video.h: Added grub_video_unmap_color and
46922 grub_video_get_active_render_target.
46923 (grub_video_adapter): Added unmap_color and get_active_render_target.
46924
46925 * video/video.c: Added grub_video_unmap_color and
46926 grub_video_get_active_render_target.
46927 (grub_video_get_info): Changed method to accept NULL pointer as an
46928 argument to allow detection of active video adapter.
46929
46930 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46931 grub_video_vbe_unmap_color_int.
46932 Added grub_video_vbe_unmap_color and
46933 grub_video_vbe_get_active_render_target.
46934 (grub_video_vbe_adapter): Added unmap_color and
46935 get_active_render_target.
46936
46937 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46938 with grub_video_vbe_unmap_color_int.
46939
46940 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46941 (DEFAULT_NORMAL_COLOR): Likewise.
46942 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46943 (DEFAULT_FG_COLOR): Removed.
46944 (DEFAULT_BG_COLOR): Likewise.
46945 (DEFAULT_CURSOR_COLOR): Changed value.
46946 (grub_virtual_screen): Added standard_color_setting,
46947 normal_color_setting, highlight_color_setting and term_color.
46948 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46949 (bitmap_width): Added.
46950 (bitmap_height): Likewise.
46951 (bitmap): Likewise.
46952 (set_term_color): Likewise.
46953 (grub_virtual_screen_setup): Changed to use new terminal coloring
46954 settings.
46955 (grub_gfxterm_init): Added init for bitmap.
46956 (grub_gfxterm_fini): Added destroy for bitmap.
46957 (redraw_screen_rect): Updated to use background bitmap and new
46958 terminal coloring.
46959 (scroll_up): Added optimization for case when there is no bitmap.
46960 (grub_gfxterm_cls): Fixed to use correct background color.
46961 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46962 coloring.
46963 (grub_virtual_screen_setcolor): Likewise.
46964 (grub_virtual_screen_getcolor): Added.
46965 (grub_gfxterm_background_image_cmd): Likewise.
46966 (grub_video_term): Added setcolor and getcolor.
46967 (MOD_INIT): Added registration of background_image command.
46968 (MOD_TERM): Added unregistration for background_image command.
46969
46970 2007-12-30 Pavel Roskin <proski@gnu.org>
46971
46972 * loader/multiboot_loader.c: Fix multiboot command
46973 unregistration. Fix all typos in the word "multiboot".
46974
46975 2007-12-29 Pavel Roskin <proski@gnu.org>
46976
46977 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46978 support for initrd names used in Fedora.
46979
46980 2007-12-26 Bean <bean123ch@gmail.com>
46981
46982 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46983 (cpio_mod_SOURCES): New variable.
46984 (cpio_mod_CFLAGS): Likewise.
46985 (cpio_mod_LDFLAGS): Likewise.
46986
46987 * fs/cpio.c: New file.
46988
46989 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46990
46991 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46992
46993 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46994
46995 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46996
46997 2007-12-25 Robert Millan <rmh@aybabtu.com>
46998
46999 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47000 (grub_getcolor): New function.
47001
47002 * kern/term.c (grub_getcolor): New function.
47003 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47004 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47005 (print_entry): Set normal and highlight colors to
47006 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47007 respectively, before printing and restore them to old
47008 values afterwards.
47009 (grub_menu_init_page): Likewise. Fill an additional colored space
47010 that would otherwise be left blank.
47011
47012 * term/efi/console.c (grub_console_getcolor): New function.
47013 (struct grub_console_term.getcolor): New variable.
47014 * term/i386/pc/console.c (grub_console_getcolor): New function.
47015 (struct grub_console_term.getcolor): New variable.
47016 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47017 (struct grub_console_term.getcolor): New variable.
47018
47019 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47020 (struct grub_console_term.setcolor): Remove variable.
47021 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47022 (struct grub_console_term.setcolor): Remove variable.
47023 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47024 (struct grub_console_term.setcolor): Remove variable.
47025 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47026 (struct grub_console_term.setcolor): Remove variable.
47027
47028 2007-12-25 Robert Millan <rmh@aybabtu.com>
47029
47030 * configure.ac: Search for possible unifont.hex locations, and
47031 define UNIFONT_HEX if found.
47032
47033 * Makefile.in (UNIFONT_HEX): Define variable.
47034 (DATA): Rename to ...
47035 (PKGLIB): ... this. Update all users.
47036 (PKGDATA): New variable.
47037 (pkgdata_IMAGES): Rename to ...
47038 (pkglib_IMAGES): ... this. Update all users.
47039 (pkgdata_MODULES): Rename to ...
47040 (pkglib_MODULES): ... this. Update all users.
47041 (pkgdata_PROGRAMS): Rename to ...
47042 (pkglib_PROGRAMS): ... this. Update all users.
47043 (pkgdata_DATA): Rename to ...
47044 (pkglib_DATA): ... this. Update all users.
47045 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47046 (unicode.pff, ascii.pff): New rules.
47047 (all-local): Add `$(PKGDATA)' dependency.
47048 (install-local): Process `$(PKGDATA)'.
47049
47050 * util/update-grub_lib.in (font_path): Search for *.pff files in
47051 a few more locations, including `${pkgdata}'.
47052
47053 2007-12-23 Robert Millan <rmh@aybabtu.com>
47054
47055 Patch from Bean <bean123ch@gmail.com>:
47056 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47057 `size'.
47058
47059 2007-12-21 Bean <bean123ch@gmail.com>
47060
47061 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47062 (ntfscomp_mod_SOURCES): New variable.
47063 (ntfscomp_mod_CFLAGS): Likewise.
47064 (ntfscomp_mod_LDFLAGS): Likewise.
47065
47066 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47067 (grub_probe_SOURCES): Likewise.
47068 (grub_emu_SOURCES): Likewise.
47069
47070 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47071 (grub_emu_SOURCES): Likewise.
47072
47073 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47074 (grub_emu_SOURCES): Likewise.
47075
47076 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47077 (grub_emu_SOURCES): Likewise.
47078
47079 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47080 (read_run_list): Renamed to grub_ntfs_read_run_list.
47081 (decomp_nextvcn): Moved to ntfscomp.c.
47082 (decomp_getch): Likewise.
47083 (decomp_get16): Likewise.
47084 (decomp_block): Likewise.
47085 (read_block): Likewise.
47086 (read_data): Partially moved to ntfscomp.c.
47087 (fixup): Change unsigned to grub_uint16_t.
47088 (read_mft): Change unsigned long to grub_uint32_t.
47089 (read_attr): Likewise.
47090 (read_data): Likewise.
47091 (read_run_data): Likewise.
47092 (read_run_list): Likewise.
47093 (read_mft): Likewise.
47094
47095 * fs/ntfscomp.c: New file.
47096
47097 * include/grub/ntfs.h: New file.
47098
47099 2007-12-16 Robert Millan <rmh@aybabtu.com>
47100
47101 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47102 IDE disk check, since Linux is known to support 20 IDE disks.
47103 Reported by Colin Watson.
47104
47105 2007-12-15 Bean <bean123ch@gmail.com>
47106
47107 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47108 (lnxboot_img_SOURCES): New variable.
47109 (lnxboot_img_ASFLAGS): Likewise.
47110 (lnxboot_img_LDFLAGS): Likewise.
47111
47112 * boot/i386/pc/lnxboot.S: New file.
47113
47114 2007-11-24 Pavel Roskin <proski@gnu.org>
47115
47116 * configure.ac: Test if '--build-id=none' is supported by the
47117 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47118 objcopy to generate incorrect binary files (binutils
47119 2.17.50.0.18-1 as shipped by Fedora 8).
47120 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47121 linking, so that build ID doesn't break the test.
47122
47123 2007-11-24 Pavel Roskin <proski@gnu.org>
47124
47125 * include/grub/i386/time.h: use "void" in the argument list
47126 of grub_cpu_idle().
47127 * include/grub/powerpc/time.h: Likewise.
47128 * include/grub/sparc64/time.h: Likewise.
47129
47130 2007-11-18 Christian Franke <franke@computer.org>
47131
47132 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47133 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47134 This fixes the problem that function keys did not work in grub-emu.
47135
47136 2007-11-18 Christian Franke <franke@computer.org>
47137
47138 * disk/host.c (grub_host_open): Remove attribute unused from
47139 name parameter. Add check for "host". This fixes the problem
47140 that grub-emu does not find partitions.
47141
47142 2007-11-18 Christian Franke <franke@computer.org>
47143
47144 * util/hostfs.c (is_dir): New function.
47145 (grub_hostfs_dir): Handle missing dirent.d_type case.
47146 (grub_hostfs_read): Add missing fseek().
47147 (grub_hostfs_label): Clear label pointer. This fixes a crash
47148 of grub-emu on "ls (host)".
47149
47150 2007-11-18 Christian Franke <franke@computer.org>
47151
47152 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47153 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47154 to 64 bit boundary by default.
47155
47156 2007-11-18 Bean <bean123ch@gmail.com>
47157
47158 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47159 (hexdump_mod_SOURCES): New variable.
47160 (hexdump_mod_CFLAGS): Likewise.
47161 (hexdump_mod_LDFLAGS): Likewise.
47162
47163 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47164
47165 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47166
47167 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47168
47169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47170
47171 * include/grub/hexdump.h: New file.
47172
47173 * commands/hexdump.c: New file.
47174
47175 2007-11-10 Robert Millan <rmh@aybabtu.com>
47176
47177 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47178 in grub_outb() calls.
47179 (beep_on): Likewise.
47180
47181 2007-11-10 Christian Franke <franke@computer.org>
47182
47183 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47184 (grub_menu_run): Likewise.
47185
47186 2007-11-10 Robert Millan <rmh@aybabtu.com>
47187
47188 * include/grub/i386/efi/machine.h: New file.
47189 * include/grub/i386/linuxbios/machine.h: Likewise.
47190 * include/grub/i386/pc/machine.h: Likewise.
47191 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47192 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47193
47194 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47195 (serial_hw_io_addr): New variable.
47196 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47197 instead of `(unsigned short *) 0x400'.
47198
47199 2007-11-10 Bean <bean123ch@gmail.com>
47200
47201 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47202
47203 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47204
47205 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47206 (vga_mod_SOURCES): Added.
47207 (vga_mod_CFLAGS): Likewise.
47208 (vga_mod_LDFLAGS): Likewise.
47209
47210 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47211 grub_outb() calls.
47212 (set_map_mask): Likewise.
47213 (set_read_map): Likewise.
47214 (set_read_address): Likewise.
47215 (vga_font): Removed variable.
47216 (get_vga_glyph): Removed function.
47217 (invalidate_char): Likewise.
47218 (write_char): Changed to use grub_font_get_glyph() for font
47219 information.
47220 (grub_vga_putchar): Likewise.
47221 (grub_vga_getcharwidth): Likewise.
47222
47223 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47224
47225 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47226 flags.
47227 (pxeboot_img_LDFLAGS): Likewise.
47228 (diskboot_img_LDFLAGS): Likewise.
47229 (kernel_img_LDFLAGS): Likewise.
47230
47231 2007-11-06 Robert Millan <rmh@aybabtu.com>
47232
47233 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47234 in grub_outb() calls.
47235 (serial_hw_init): Likewise.
47236
47237 2007-11-05 Robert Millan <rmh@aybabtu.com>
47238
47239 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47240 spaces. Skip non-regular files.
47241
47242 2007-11-05 Robert Millan <rmh@aybabtu.com>
47243
47244 * kern/disk.c (grub_disk_firmware_fini)
47245 (grub_disk_firmware_is_tainted): New variables.
47246
47247 * include/grub/disk.h (grub_disk_firmware_fini)
47248 (grub_disk_firmware_is_tainted): Likewise.
47249
47250 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47251 (grub_disk_biosdisk_fini): ... to here.
47252 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47253 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47254 is set. Register grub_disk_biosdisk_fini() in
47255 `grub_disk_firmware_fini'.
47256
47257 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47258 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47259 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47260 to finish existing firmware disk interface.
47261
47262 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47263 (ata_mod_SOURCES): New variable.
47264 (ata_mod_CFLAGS): Likewise.
47265 (ata_mod_LDFLAGS): Likewise.
47266
47267 2007-11-05 Robert Millan <rmh@aybabtu.com>
47268
47269 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47270 (grub_ata_wait): Reimplement using grub_millisleep().
47271
47272 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47273 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47274
47275 2007-11-03 Marco Gerards <marco@gnu.org>
47276
47277 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47278 (CRTC_ADDR_PORT): New macro.
47279 (CRTC_DATA_PORT): Likewise.
47280 (CRTC_CURSOR): Likewise.
47281 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47282 (CRTC_CURSOR_ADDR_LOW): Likewise.
47283 (update_cursor): New function.
47284 (grub_console_real_putchar): Call `update_cursor'.
47285 (grub_console_gotoxy): Likewise.
47286 (grub_console_cls): Set the default color when clearing the
47287 screen.
47288 (grub_console_setcursor): Implemented.
47289
47290 2007-11-03 Marco Gerards <marco@gnu.org>
47291
47292 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47293 become activate.
47294 (grub_ata_pio_write): Likewise.
47295
47296 (grub_atapi_identify): Wait after issuing an ATA command.
47297 (grub_atapi_packet): Likewise.
47298 (grub_ata_identify): Likewise.
47299 (grub_ata_readwrite): Likewise.
47300
47301 2007-11-03 Marco Gerards <marco@gnu.org>
47302
47303 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47304 (grub_ata_pio_write): Likewise.
47305 (grub_ata_readwrite): Use `grub_error', instead of
47306 returning `grub_errno'.
47307
47308 2007-11-03 Marco Gerards <marco@gnu.org>
47309
47310 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47311 grub_ata_pio_write once for every single sector, instead of for
47312 multiple sectors.
47313
47314 2007-10-31 Robert Millan <rmh@aybabtu.com>
47315
47316 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47317
47318 * conf/i386-linuxbios.rmk: New file.
47319
47320 * kern/i386/pc/hardware.c: Likewise.
47321 * term/i386/pc/at_keyboard.c: Likewise.
47322 * term/i386/pc/vga_text.c: Likewise.
47323
47324 * include/grub/i386/linuxbios/boot.h: Likewise.
47325 * include/grub/i386/linuxbios/console.h: Likewise.
47326 * include/grub/i386/linuxbios/init.h: Likewise.
47327 * include/grub/i386/linuxbios/kernel.h: Likewise.
47328 * include/grub/i386/linuxbios/loader.h: Likewise.
47329 * include/grub/i386/linuxbios/memory.h: Likewise.
47330 * include/grub/i386/linuxbios/serial.h: Likewise.
47331 * include/grub/i386/linuxbios/time.h: Likewise.
47332
47333 * kern/i386/linuxbios/init.c: Likewise.
47334 * kern/i386/linuxbios/startup.S: Likewise.
47335 * kern/i386/linuxbios/table.c: Likewise.
47336
47337 2007-10-31 Marco Gerards <marco@gnu.org>
47338
47339 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47340 (ata_mod_SOURCES): New variable.
47341 (ata_mod_CFLAGS): Likewise.
47342 (ata_mod_LDFLAGS): Likewise.
47343
47344 * disk/ata.c: New file.
47345
47346 * include/grub/disk.h (grub_disk_dev_id): Add
47347 `GRUB_DISK_DEV_ATA_ID'.
47348
47349 2007-10-31 Robert Millan <rmh@aybabtu.com>
47350
47351 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47352 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47353
47354 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47355 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47356
47357 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47358 `<grub/types.h>'.
47359
47360 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47361
47362 2007-10-27 Robert Millan <rmh@aybabtu.com>
47363
47364 * include/grub/types.h (ULONG_MAX): Define macro.
47365
47366 2007-10-22 Robert Millan <rmh@aybabtu.com>
47367
47368 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47369 `"../realmode.S"'.
47370 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47371
47372 2007-10-22 Robert Millan <rmh@aybabtu.com>
47373
47374 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47375 (pkgdata_MODULES): Add `biosdisk.mod'.
47376 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47377 variables.
47378
47379 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47380 (grub_biosdisk_init): Replace with ...
47381 (GRUB_MOD_INIT(biosdisk)): ... this.
47382 (grub_biosdisk_fini): Replace with ...
47383 (GRUB_MOD_FINI(biosdisk)): ... this.
47384
47385 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47386 (grub_machine_init): Remove call to grub_biosdisk_init().
47387 (grub_machine_fini): Remove call to grub_machine_fini().
47388
47389 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47390
47391 2007-10-22 Robert Millan <rmh@aybabtu.com>
47392
47393 * include/grub/time.h: New file.
47394 * include/grub/i386/time.h: Likewise.
47395 * include/grub/powerpc/time.h: Likewise.
47396 * include/grub/sparc64/time.h: Likewise.
47397
47398 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47399 instances to ...
47400 (KERNEL_MACHINE_TIME_HEADER): ... this.
47401 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47402 instances to ...
47403 (KERNEL_MACHINE_TIME_HEADER): ... this.
47404 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47405 instances to ...
47406 (KERNEL_MACHINE_TIME_HEADER): ... this.
47407
47408 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47409 (grub_millisleep): New function.
47410 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47411 (grub_millisleep): New function.
47412 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47413 Remove `grub/machine/time.h' include.
47414 (grub_millisleep): New function.
47415 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47416 Remove `grub/machine/time.h' include.
47417 (grub_millisleep): New function.
47418
47419 * include/grub/misc.h (grub_div_roundup): New function.
47420
47421 * kern/misc.c: Include `<grub/time.h>'.
47422 (grub_millisleep_generic): New function.
47423
47424 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47425 Add `time.h'.
47426 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47427 Add `time.h'.
47428 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47429 `machine/time.h'. Add `time.h'.
47430 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47431
47432 2007-10-21 Robert Millan <rmh@aybabtu.com>
47433
47434 * include/grub/misc.h (grub_max): New function.
47435
47436 2007-10-21 Robert Millan <rmh@aybabtu.com>
47437
47438 * util/misc.c (grub_util_info): Call fflush() before returning.
47439
47440 2007-10-20 Robert Millan <rmh@aybabtu.com>
47441
47442 * genmk.rb (Image): Copy `extra_flags' from here ...
47443 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47444
47445 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47446 to `argc' and `args' arguments.
47447
47448 2007-10-17 Robert Millan <rmh@aybabtu.com>
47449
47450 * kern/i386/loader.S: New file.
47451
47452 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47453 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47454 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47455 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47456 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47457 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47458 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47459 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47460 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47461 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47462 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47463 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47464 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47465 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47466
47467 * kern/i386/realmode.S: New file.
47468
47469 * kern/i386/pc/startup.S (protstack): Moved from here ...
47470 * kern/i386/realmode.S (protstack)... to here.
47471 * kern/i386/pc/startup.S (gdt): Moved from here ...
47472 * kern/i386/realmode.S (gdt)... to here.
47473 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47474 * kern/i386/realmode.S (prot_to_real)... to here.
47475
47476 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47477 `kern/i386/realmode.S'.
47478
47479 2007-10-17 Robert Millan <rmh@aybabtu.com>
47480
47481 * include/grub/i386/loader.h: New file.
47482
47483 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47484 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47485 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47486 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47487 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47488 * include/grub/i386/loader.h (grub_linux_prot_size)
47489 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47490 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47491 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47492 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47493
47494 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47495
47496 2007-10-15 Robert Millan <rmh@aybabtu.com>
47497
47498 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47499 filesystem when dev->disk is unset.
47500 Do probe for filesystem even when dev->disk->has_partitions is set.
47501 In case a filesystem is found, always report it.
47502 In case it isn't, if dev->disk->has_partitions is set, report that
47503 a partition table was found instead of reporting that no filesystem
47504 could be identified.
47505
47506 2007-10-12 Robert Millan <rmh@aybabtu.com>
47507
47508 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47509 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47510
47511 * include/grub/types.h (grub_host_to_target16): New macro.
47512 (grub_host_to_target32): Likewise.
47513 (grub_host_to_target64): Likewise.
47514 (grub_target_to_host16): Likewise.
47515 (grub_target_to_host32): Likewise.
47516 (grub_target_to_host64): Likewise.
47517
47518 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47519 Renamed from to ...
47520 (GRUB_MOD_ALIGN): ...this. Update all users.
47521
47522 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47523 grub_host_to_target32.
47524 Replace grub_be_to_cpu32 with grub_target_to_host32.
47525 (load_modules): Likewise.
47526 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47527 Replace grub_be_to_cpu32 with grub_target_to_host32.
47528 Replace grub_cpu_to_be16 with grub_host_to_target16.
47529 Replace grub_cpu_to_be32 grub_host_to_target32.
47530
47531 2007-10-12 Robert Millan <rmh@aybabtu.com>
47532
47533 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47534 * util/elf/grub-mkimage.c: ... here.
47535
47536 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47537 `util/powerpc/ieee1275/grub-mkimage.c'.
47538
47539 2007-10-07 Robert Millan <rmh@aybabtu.com>
47540
47541 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47542 and make it easier to figure out.
47543 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47544 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47545 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47546 leave us with less than HEAP_MIN_SIZE total heap.
47547 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47548
47549 2007-10-03 Robert Millan <rmh@aybabtu.com>
47550
47551 * include/grub/i386/io.h: New file.
47552 * commands/i386/pc/play.c (inb): Removed.
47553 (outb): Removed.
47554 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47555 with grub_outb().
47556 * term/i386/pc/serial.c (inb): Removed.
47557 (outb): Removed.
47558 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47559 with grub_outb().
47560 * term/i386/pc/vga.c (inb): Removed.
47561 (outb): Removed.
47562 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47563 with grub_outb().
47564
47565 2007-10-02 Robert Millan <rmh@aybabtu.com>
47566
47567 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47568 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47569 Reported by Marcin Kurek.
47570
47571 2007-09-07 Robert Millan <rmh@aybabtu.com>
47572
47573 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47574 SmartFirmware version updates (as released by Sven Luther), and avoid
47575 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47576 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47577 known broken.
47578
47579 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47580
47581 From Hitoshi Ozeki:
47582 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47583 when merging two regions.
47584
47585 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47586
47587 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47588 * normal/completion.c (grub_normal_do_completion): Likewise.
47589 Reported by Hitoshi Ozeki.
47590
47591 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47592
47593 Do not use devices at boot in chainloading.
47594
47595 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47596 (boot_part_addr): Likewise.
47597 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47598 with BOOT_DRIVE and BOOT_PART_ADDR.
47599 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47600 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47601
47602 2007-08-29 Robert Millan <rmh@aybabtu.com>
47603
47604 Patch from Simon Peter <dn.tlp@gmx.net>:
47605 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47606 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47607 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47608 util/i386/pc/grub-setup.c_DEPENDENCIES.
47609 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47610 util/grub-probe.c_DEPENDENCIES.
47611 * conf/powerpc-ieee1275.rmk: Likewise.
47612
47613 2007-08-28 Robert Millan <rmh@aybabtu.com>
47614
47615 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47616 to tell grub-mkdevicemap how to name devices.
47617 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47618 feature).
47619
47620 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47621 util/i386/get_disk_name.c.
47622 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47623 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47624 util/ieee1275/get_disk_name.c.
47625
47626 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47627
47628 * DISTLIST: Add util/i386/get_disk_name.c and
47629 util/ieee1275/get_disk_name.c.
47630
47631 * util/grub-mkdevicemap.c: Replace device naming logic with
47632 grub_util_get_disk_name() calls.
47633
47634 2007-08-20 Robert Millan <rmh@aybabtu.com>
47635
47636 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47637 (so that it works for both plural and singular quantities).
47638
47639 2007-08-05 Robert Millan <rmh@aybabtu.com>
47640
47641 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47642 so that [xz] isn't taken into account when determining order.
47643
47644 2007-08-02 Marco Gerards <marco@gnu.org>
47645
47646 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47647 `include/multiboot2.h', `include/grub/elfload.h',
47648 `include/multiboot.h', `include/grub/multiboot.h',
47649 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47650 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47651 `kern/elf.c', `loader/multiboot_loader.c',
47652 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47653 `loader/i386/pc/multiboot2.c',
47654 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47655 `util/i386/pc/grub-mkrescue.in'. Remove
47656 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47657 `include/grub/i386/pc/util/biosdisk.h' and
47658 `include/grub/powerpc/ieee1275/multiboot.h'.
47659
47660 2007-08-02 Bean <bean123ch@gmail.com>
47661
47662 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47663 (ntfs_mod_SOURCES): New variable.
47664 (ntfs_mod_CFLAGS): Likewise.
47665 (ntfs_mod_LDFLAGS): Likewise.
47666
47667 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47668 (grub_probe_SOURCES): Likewise.
47669 (grub_emu_SOURCES): Likewise.
47670
47671 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47672 (grub_emu_SOURCES): Likewise.
47673
47674 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47675 (grub_emu_SOURCES): Likewise.
47676
47677 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47678
47679 * fs/ntfs.c: New file.
47680
47681 2007-08-02 Bean <bean123ch@gmail.com>
47682
47683 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47684
47685 * file.h (grub_file): Likewise.
47686
47687 * fshelp.h (grub_fshelp_read_file): Likewise.
47688
47689 * util/i386/pc/grub-setup.c (setup): Likewise.
47690 (save_first_sector): Likewise.
47691 (save_blocklists): Likewise.
47692
47693 * fs/affs.c (grub_affs_read_file): Likewise.
47694
47695 * fs/ext2.c (grub_ext2_read_file): Likewise.
47696
47697 * fs/fat.c (grub_fat_read_data): Likewise.
47698
47699 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47700
47701 * fs/hfs.c (grub_hfs_read_file): Likewise.
47702
47703 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47704
47705 * fs/jfs.c (grub_jfs_read_file): Likewise.
47706
47707 * fs/minix.c (grub_minix_read_file): Likewise.
47708
47709 * fs/sfs.c (grub_sfs_read_file): Likewise.
47710
47711 * fs/ufs.c (grub_ufs_read_file): Likewise.
47712
47713 * fs/xfs.c (grub_xfs_read_file): Likewise.
47714
47715 * command/blocklist.c (read_blocklist): Likewise.
47716 (print_blocklist): Likewise.
47717
47718 2007-08-02 Marco Gerards <marco@gnu.org>
47719
47720 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47721 `util/hostfs.c'.
47722
47723 * disk/host.c: New file.
47724
47725 * util/hostfs.c: Likewise.
47726
47727 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47728 return `GRUB_ERR_BAD_FS'.
47729 * fs/sfs.c (grub_sfs_mount): Likewise.
47730 * fs/xfs.c (grub_xfs_mount): Likewise.
47731
47732 * include/grub/disk.h (enum grub_disk_dev_id): Add
47733 `GRUB_DISK_DEVICE_HOST_ID'.
47734
47735 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47736
47737 2007-07-24 Jerone Young <jerone@gmail.com>
47738
47739 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47740 modules for compilation.
47741 * conf/powerpc-ieee1275.rmk: Likewise.
47742
47743 * include/multiboot.h: Move multiboot definitions to one file. Rename
47744 many definitions to not get grub specific.
47745 * include/multiboot2.h: Create header with multiboot 2 definitions.
47746 * include/grub/multiboot.h: Header for grub specific function
47747 prototypes and definitions.
47748 * include/grub/multiboot2.h: Likewise.
47749 * include/grub/multiboot_loader.h: Likewise.
47750 * include/grub/i386/pc/multiboot.h: Removed.
47751 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47752
47753 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47754 and 2 to allow for one multiboot and module commands.
47755 * loader/multiboot2.c: Add multiboot2 functionality.
47756 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47757 and definition names.
47758 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47759 2 functions.
47760 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47761 ieee1275 specific multiboot2 code.
47762
47763 * kern/i386/pc/startup.S: Change headers and definition names for
47764 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47765
47766 2007-07-22 Robert Millan <rmh@aybabtu.com>
47767
47768 * geninitheader.sh: Process file specified in first parameter rather
47769 than hardcoding grub_modules_init.lst.
47770 * geninit.sh: Likewise. Also, construct header name dynamically rather
47771 than hardcoding grub_modules_init.h.
47772
47773 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47774 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47775 grub_probe_init.[ch] and grub_setup_init.[ch].
47776
47777 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47778 grub_modules_init.h with grub_emu_init.h.
47779 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47780 grub_probe_init.[ch] files.
47781 * conf/i386-efi.rmk: Likewise.
47782 * conf/i386-pc.rmk: Likewise.
47783 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47784 grub_setup_init.[ch] files.
47785
47786 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47787 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47788 to initialize modules rather than a list of hardcoded functions.
47789 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47790 grub_init_all() to initialize modules rather than a list of hardcoded
47791 functions.
47792
47793 2007-07-22 Robert Millan <rmh@aybabtu.com>
47794
47795 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47796 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47797
47798 2007-07-22 Robert Millan <rmh@aybabtu.com>
47799
47800 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47801 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47802 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47803 flag when running on SmartFirmware.
47804 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47805 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47806 was set.
47807
47808 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47809 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47810 rather than decreasing it.
47811
47812 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47813 there's not enough space to do it, fail in the same way as when it
47814 can't be done because there are no partitions.
47815
47816 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47817 when nvsetenv failed.
47818
47819 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47820
47821 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47822 because this rule is automatically generated.
47823 (grub-mkrescue): Removed for the same reason as above.
47824
47825 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47826
47827 Migrate to GNU General Public License Version 3.
47828
47829 * COPYING: Replaced with the plain text version of GPLv3.
47830
47831 * config.guess: Updated from gnulib.
47832 * config.sub: Likewise.
47833
47834 * geninit.sh: Output a GPLv3 copyright notice.
47835 * geninitheader.sh: Likewise.
47836 * genmodsrc.sh: Likewise.
47837 * gensymlist.sh.in: Likewise.
47838
47839 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47840 * boot/i386/pc/diskboot.S: Likewise.
47841 * boot/i386/pc/pxeboot.S: Likewise.
47842 * commands/blocklist.c: Likewise.
47843 * commands/boot.c: Likewise.
47844 * commands/cat.c: Likewise.
47845 * commands/cmp.c: Likewise.
47846 * commands/configfile.c: Likewise.
47847 * commands/echo.c: Likewise.
47848 * commands/help.c: Likewise.
47849 * commands/ls.c: Likewise.
47850 * commands/search.c: Likewise.
47851 * commands/terminal.c: Likewise.
47852 * commands/test.c: Likewise.
47853 * commands/videotest.c: Likewise.
47854 * commands/i386/cpuid.c: Likewise.
47855 * commands/i386/pc/halt.c: Likewise.
47856 * commands/i386/pc/play.c: Likewise.
47857 * commands/i386/pc/reboot.c: Likewise.
47858 * commands/i386/pc/vbeinfo.c: Likewise.
47859 * commands/i386/pc/vbetest.c: Likewise.
47860 * commands/ieee1275/halt.c: Likewise.
47861 * commands/ieee1275/reboot.c: Likewise.
47862 * commands/ieee1275/suspend.c: Likewise.
47863 * disk/loopback.c: Likewise.
47864 * disk/lvm.c: Likewise.
47865 * disk/raid.c: Likewise.
47866 * disk/efi/efidisk.c: Likewise.
47867 * disk/i386/pc/biosdisk.c: Likewise.
47868 * disk/ieee1275/ofdisk.c: Likewise.
47869 * font/manager.c: Likewise.
47870 * fs/affs.c: Likewise.
47871 * fs/ext2.c: Likewise.
47872 * fs/fat.c: Likewise.
47873 * fs/fshelp.c: Likewise.
47874 * fs/hfs.c: Likewise.
47875 * fs/hfsplus.c: Likewise.
47876 * fs/iso9660.c: Likewise.
47877 * fs/jfs.c: Likewise.
47878 * fs/minix.c: Likewise.
47879 * fs/sfs.c: Likewise.
47880 * fs/ufs.c: Likewise.
47881 * fs/xfs.c: Likewise.
47882 * hello/hello.c: Likewise.
47883 * include/grub/acorn_filecore.h: Likewise.
47884 * include/grub/arg.h: Likewise.
47885 * include/grub/bitmap.h: Likewise.
47886 * include/grub/boot.h: Likewise.
47887 * include/grub/cache.h: Likewise.
47888 * include/grub/device.h: Likewise.
47889 * include/grub/disk.h: Likewise.
47890 * include/grub/dl.h: Likewise.
47891 * include/grub/elfload.h: Likewise.
47892 * include/grub/env.h: Likewise.
47893 * include/grub/err.h: Likewise.
47894 * include/grub/file.h: Likewise.
47895 * include/grub/font.h: Likewise.
47896 * include/grub/fs.h: Likewise.
47897 * include/grub/fshelp.h: Likewise.
47898 * include/grub/gzio.h: Likewise.
47899 * include/grub/hfs.h: Likewise.
47900 * include/grub/kernel.h: Likewise.
47901 * include/grub/loader.h: Likewise.
47902 * include/grub/lvm.h: Likewise.
47903 * include/grub/misc.h: Likewise.
47904 * include/grub/mm.h: Likewise.
47905 * include/grub/net.h: Likewise.
47906 * include/grub/normal.h: Likewise.
47907 * include/grub/parser.h: Likewise.
47908 * include/grub/partition.h: Likewise.
47909 * include/grub/pc_partition.h: Likewise.
47910 * include/grub/raid.h: Likewise.
47911 * include/grub/rescue.h: Likewise.
47912 * include/grub/script.h: Likewise.
47913 * include/grub/setjmp.h: Likewise.
47914 * include/grub/symbol.h: Likewise.
47915 * include/grub/term.h: Likewise.
47916 * include/grub/terminfo.h: Likewise.
47917 * include/grub/tparm.h: Likewise.
47918 * include/grub/types.h: Likewise.
47919 * include/grub/video.h: Likewise.
47920 * include/grub/efi/api.h: Likewise.
47921 * include/grub/efi/chainloader.h: Likewise.
47922 * include/grub/efi/console.h: Likewise.
47923 * include/grub/efi/console_control.h: Likewise.
47924 * include/grub/efi/disk.h: Likewise.
47925 * include/grub/efi/efi.h: Likewise.
47926 * include/grub/efi/pe32.h: Likewise.
47927 * include/grub/efi/time.h: Likewise.
47928 * include/grub/i386/linux.h: Likewise.
47929 * include/grub/i386/setjmp.h: Likewise.
47930 * include/grub/i386/types.h: Likewise.
47931 * include/grub/i386/efi/kernel.h: Likewise.
47932 * include/grub/i386/efi/loader.h: Likewise.
47933 * include/grub/i386/efi/time.h: Likewise.
47934 * include/grub/i386/pc/biosdisk.h: Likewise.
47935 * include/grub/i386/pc/boot.h: Likewise.
47936 * include/grub/i386/pc/chainloader.h: Likewise.
47937 * include/grub/i386/pc/console.h: Likewise.
47938 * include/grub/i386/pc/init.h: Likewise.
47939 * include/grub/i386/pc/kernel.h: Likewise.
47940 * include/grub/i386/pc/loader.h: Likewise.
47941 * include/grub/i386/pc/memory.h: Likewise.
47942 * include/grub/i386/pc/multiboot.h: Likewise.
47943 * include/grub/i386/pc/serial.h: Likewise.
47944 * include/grub/i386/pc/time.h: Likewise.
47945 * include/grub/i386/pc/vbe.h: Likewise.
47946 * include/grub/i386/pc/vbeblit.h: Likewise.
47947 * include/grub/i386/pc/vbefill.h: Likewise.
47948 * include/grub/i386/pc/vbeutil.h: Likewise.
47949 * include/grub/i386/pc/vga.h: Likewise.
47950 * include/grub/ieee1275/ieee1275.h: Likewise.
47951 * include/grub/ieee1275/ofdisk.h: Likewise.
47952 * include/grub/powerpc/libgcc.h: Likewise.
47953 * include/grub/powerpc/setjmp.h: Likewise.
47954 * include/grub/powerpc/types.h: Likewise.
47955 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47956 * include/grub/powerpc/ieee1275/console.h: Likewise.
47957 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47958 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47959 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47960 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47961 * include/grub/powerpc/ieee1275/time.h: Likewise.
47962 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47963 * include/grub/sparc64/libgcc.h: Likewise.
47964 * include/grub/sparc64/setjmp.h: Likewise.
47965 * include/grub/sparc64/types.h: Likewise.
47966 * include/grub/sparc64/ieee1275/console.h: Likewise.
47967 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47968 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47969 * include/grub/sparc64/ieee1275/time.h: Likewise.
47970 * include/grub/util/biosdisk.h: Likewise.
47971 * include/grub/util/getroot.h: Likewise.
47972 * include/grub/util/lvm.h: Likewise.
47973 * include/grub/util/misc.h: Likewise.
47974 * include/grub/util/raid.h: Likewise.
47975 * include/grub/util/resolve.h: Likewise.
47976 * io/gzio.c: Likewise.
47977 * kern/device.c: Likewise.
47978 * kern/disk.c: Likewise.
47979 * kern/dl.c: Likewise.
47980 * kern/elf.c: Likewise.
47981 * kern/env.c: Likewise.
47982 * kern/err.c: Likewise.
47983 * kern/file.c: Likewise.
47984 * kern/fs.c: Likewise.
47985 * kern/loader.c: Likewise.
47986 * kern/main.c: Likewise.
47987 * kern/misc.c: Likewise.
47988 * kern/mm.c: Likewise.
47989 * kern/parser.c: Likewise.
47990 * kern/partition.c: Likewise.
47991 * kern/rescue.c: Likewise.
47992 * kern/term.c: Likewise.
47993 * kern/efi/efi.c: Likewise.
47994 * kern/efi/init.c: Likewise.
47995 * kern/efi/mm.c: Likewise.
47996 * kern/i386/dl.c: Likewise.
47997 * kern/i386/efi/init.c: Likewise.
47998 * kern/i386/efi/startup.S: Likewise.
47999 * kern/i386/pc/init.c: Likewise.
48000 * kern/i386/pc/lzo1x.S: Likewise.
48001 * kern/i386/pc/startup.S: Likewise.
48002 * kern/ieee1275/ieee1275.c: Likewise.
48003 * kern/powerpc/cache.S: Likewise.
48004 * kern/powerpc/dl.c: Likewise.
48005 * kern/powerpc/ieee1275/cmain.c: Likewise.
48006 * kern/powerpc/ieee1275/crt0.S: Likewise.
48007 * kern/powerpc/ieee1275/init.c: Likewise.
48008 * kern/powerpc/ieee1275/openfw.c: Likewise.
48009 * kern/sparc64/cache.S: Likewise.
48010 * kern/sparc64/dl.c: Likewise.
48011 * kern/sparc64/ieee1275/init.c: Likewise.
48012 * kern/sparc64/ieee1275/openfw.c: Likewise.
48013 * loader/efi/chainloader.c: Likewise.
48014 * loader/efi/chainloader_normal.c: Likewise.
48015 * loader/i386/efi/linux.c: Likewise.
48016 * loader/i386/efi/linux_normal.c: Likewise.
48017 * loader/i386/pc/chainloader.c: Likewise.
48018 * loader/i386/pc/chainloader_normal.c: Likewise.
48019 * loader/i386/pc/linux.c: Likewise.
48020 * loader/i386/pc/linux_normal.c: Likewise.
48021 * loader/i386/pc/multiboot.c: Likewise.
48022 * loader/i386/pc/multiboot_normal.c: Likewise.
48023 * loader/powerpc/ieee1275/linux.c: Likewise.
48024 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48025 * normal/arg.c: Likewise.
48026 * normal/cmdline.c: Likewise.
48027 * normal/command.c: Likewise.
48028 * normal/completion.c: Likewise.
48029 * normal/execute.c: Likewise.
48030 * normal/function.c: Likewise.
48031 * normal/lexer.c: Likewise.
48032 * normal/main.c: Likewise.
48033 * normal/menu.c: Likewise.
48034 * normal/menu_entry.c: Likewise.
48035 * normal/misc.c: Likewise.
48036 * normal/parser.y: Likewise.
48037 * normal/script.c: Likewise.
48038 * normal/i386/setjmp.S: Likewise.
48039 * normal/powerpc/setjmp.S: Likewise.
48040 * normal/sparc64/setjmp.S: Likewise.
48041 * partmap/acorn.c: Likewise.
48042 * partmap/amiga.c: Likewise.
48043 * partmap/apple.c: Likewise.
48044 * partmap/gpt.c: Likewise.
48045 * partmap/pc.c: Likewise.
48046 * partmap/sun.c: Likewise.
48047 * term/gfxterm.c: Likewise.
48048 * term/terminfo.c: Likewise.
48049 * term/efi/console.c: Likewise.
48050 * term/i386/pc/console.c: Likewise.
48051 * term/i386/pc/serial.c: Likewise.
48052 * term/i386/pc/vesafb.c: Likewise.
48053 * term/i386/pc/vga.c: Likewise.
48054 * term/ieee1275/ofconsole.c: Likewise.
48055 * util/biosdisk.c: Likewise.
48056 * util/console.c: Likewise.
48057 * util/genmoddep.c: Likewise.
48058 * util/getroot.c: Likewise.
48059 * util/grub-emu.c: Likewise.
48060 * util/grub-mkdevicemap.c: Likewise.
48061 * util/grub-probe.c: Likewise.
48062 * util/lvm.c: Likewise.
48063 * util/misc.c: Likewise.
48064 * util/raid.c: Likewise.
48065 * util/resolve.c: Likewise.
48066 * util/update-grub.in: Likewise.
48067 * util/update-grub_lib.in: Likewise.
48068 * util/grub.d/00_header.in: Likewise.
48069 * util/grub.d/10_hurd.in: Likewise.
48070 * util/grub.d/10_linux.in: Likewise.
48071 * util/i386/efi/grub-install.in: Likewise.
48072 * util/i386/efi/grub-mkimage.c: Likewise.
48073 * util/i386/pc/grub-install.in: Likewise.
48074 * util/i386/pc/grub-mkimage.c: Likewise.
48075 * util/i386/pc/grub-mkrescue.in: Likewise.
48076 * util/i386/pc/grub-setup.c: Likewise.
48077 * util/i386/pc/misc.c: Likewise.
48078 * util/powerpc/ieee1275/grub-install.in: Likewise.
48079 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48080 * util/powerpc/ieee1275/misc.c: Likewise.
48081 * video/bitmap.c: Likewise.
48082 * video/video.c: Likewise.
48083 * video/i386/pc/vbe.c: Likewise.
48084 * video/i386/pc/vbeblit.c: Likewise.
48085 * video/i386/pc/vbefill.c: Likewise.
48086 * video/i386/pc/vbeutil.c: Likewise.
48087 * video/readers/tga.c: Likewise.
48088
48089 2007-07-02 Robert Millan <rmh@aybabtu.com>
48090
48091 * conf/i386-efi.rmk: Replace obsolete reference to
48092 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48093 with util/getroot.c.
48094 * conf/powerpc-ieee1275.rmk: Likewise.
48095 * conf/sparc64-ieee1275.rmk: Likewise.
48096
48097 * util/grub-emu.c (main): Fix unchecked pointer handling.
48098
48099 2007-07-02 Robert Millan <rmh@aybabtu.com>
48100
48101 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48102 invocation to fail, in order to support partition-less media.
48103
48104 * util/i386/pc/grub-install.in: Likewise.
48105
48106 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48107 which fs or partmap modules are needed (akin to its sister scripts).
48108
48109 Also use grub-probe to get rid of unportable /proc/mounts check.
48110
48111 Print the same informational message that the other scripts do, before
48112 exiting.
48113
48114 2007-06-23 Robert Millan <rmh@aybabtu.com>
48115
48116 * util/update-grub_lib.in (font_path): New function. Determine whether
48117 a font file can be found and, if so, echo the GRUB path to it.
48118
48119 * util/update-grub.in: Handle multiple terminals depending on user
48120 input, platform availability and font file presence. Propagate
48121 variables of our findings to /etc/grub.d/ children.
48122
48123 * util/grub.d/00_header.in: Handle multiple terminals, based on
48124 environment setup by update-grub.
48125
48126 2007-06-23 Robert Millan <rmh@aybabtu.com>
48127
48128 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48129
48130 2007-06-21 Robert Millan <rmh@aybabtu.com>
48131
48132 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48133 indicate end of data section in kernel image.
48134 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48135 GRUB_KERNEL_MACHINE_DATA_END.
48136
48137 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48138 space for it.
48139 * kern/i386/efi/startup.S: Likewise.
48140
48141 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48142 during image generation. Implement --prefix option to override this
48143 patch.
48144 * util/i386/efi/grub-mkimage.c: Likewise.
48145
48146 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48147 code to make path relative to its root into a separate function.
48148
48149 * util/i386/pc/grub-install.in: Use newly provided
48150 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48151 pass the result to grub-install --prefix.
48152
48153 2007-06-13 Robert Millan <rmh@aybabtu.com>
48154
48155 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48156 DEFAULT_DEVICE_MAP.
48157 * util/grub-emu.c: Use above definitions from misc.h instead of
48158 defining them.
48159 * util/grub-mkdevicemap.c: Likewise.
48160 * util/i386/pc/grub-setup.c: Likewise.
48161 * util/grub-probe.c: Likewise.
48162 (probe): Abort with grub_util_error() when either
48163 grub_guess_root_device or grub_util_get_grub_dev fails.
48164
48165 2007-06-12 Robert Millan <rmh@aybabtu.com>
48166
48167 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48168 "pager" assignment.
48169 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48170 "pcdata".
48171 * util/grub-probe.c (probe): Likewise for "drive_name".
48172
48173 2007-06-11 Robert Millan <rmh@aybabtu.com>
48174
48175 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48176 not just the cdrom one.
48177
48178 2007-06-11 Robert Millan <rmh@aybabtu.com>
48179
48180 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48181 Add --pkglibdir=DIR option to override pkglibdir.
48182 Mention --image-type=TYPE in help output.
48183 Fix --grub-mkimage (it was a no-op).
48184 Abort gracefully when no parameter is given.
48185
48186 2007-06-11 Robert Millan <rmh@aybabtu.com>
48187
48188 * util/i386/pc/grub-mkrescue.in: New file.
48189 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48190 * Makefile.in: Handle bin_SCRIPTS.
48191
48192 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48193
48194 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48195 list of video modes.
48196
48197 2007-06-06 Robert Millan <rmh@aybabtu.com>
48198
48199 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48200 file doesn't exist, or if it is in a filesystem grub can't read.
48201
48202 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48203 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48204 header comment to fit in 80 columns when the variables are resolved.
48205
48206 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48207 could be identified by update-grub. Remove redundant check for
48208 unifont.pff existence (since convert_system_path_to_grub_path now
48209 handles that).
48210
48211 2007-06-04 Robert Millan <rmh@aybabtu.com>
48212
48213 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48214
48215 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48216
48217 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48218
48219 2007-06-04 Robert Millan <rmh@aybabtu.com>
48220
48221 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48222
48223 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48224 grub_apple_partition_map_fini.
48225
48226 * util/biosdisk.c
48227 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48228 to access >2 TiB disks).
48229
48230 Print disk->total_sectors with %llu instead of %lu, since this
48231 variable is always 64-bit (prevents wrong disk size from being displayed
48232 on either >2 TiB disk or big-endian CPU).
48233
48234 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48235 into a generic case that supports all (sane) partition maps.
48236
48237 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48238 breaks big-endian.
48239
48240 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48241 and grub_apple_partition_map_fini() after that.
48242
48243 2007-06-01 Robert Millan <rmh@aybabtu.com>
48244
48245 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48246
48247 * util/grub.d/00_header.in: Only enable gfxterm when
48248 convert_system_path_to_grub_path() succeeds.
48249
48250 2007-05-20 Robert Millan <rmh@aybabtu.com>
48251
48252 * util/update-grub_lib.in: New file.
48253 * DISTLIST: Add update-grub_lib.in.
48254 * conf/common.rmk: Generate update-grub_lib and install it in
48255 $(lib_DATA).
48256 * Makefile.in: Add install routine for $(lib_DATA).
48257
48258 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48259 function provided by update-grub_lib to support arbitrary paths of
48260 unifont.pff.
48261 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48262 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48263
48264 2007-05-19 Robert Millan <rmh@aybabtu.com>
48265
48266 * commands/i386/cpuid.c: New module.
48267 * DISTLIST: Add it.
48268 * conf/i386-efi.rmk: Enable cpuid.mod.
48269 * conf/i386-pc.rmk: Likewise.
48270
48271 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48272
48273 * kern/disk.c (grub_disk_read): Check return value of
48274 grub_realloc().
48275
48276 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48277
48278 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48279 arrays.
48280 * disk/raid.c (grub_raid_open): Likewise.
48281
48282 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48283
48284 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48285 stack instead of on the heap.
48286
48287 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48288 before doing a read on it.
48289
48290 * configure.ac: Only use -fno-stack-protector for the target
48291 environment.
48292
48293 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48294
48295 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48296 __attribute_ ((unused)) to mode_type argument.
48297
48298 * util/getroot.c (grub_guess_root_device): Fix #endif.
48299
48300 * kern/misc.c (memcmp): Fix prototype.
48301
48302 * include/grub/partition.h [GRUB_UTIL]
48303 (grub_gpt_partition_map_init): Add prototype.
48304 (grub_gpt_partition_map_fini): Likewise.
48305
48306 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48307 at the right place.
48308
48309 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48310 (grub_fat_read_data): Likewise.
48311 (grub_fat_find_dir): Likewise.
48312
48313 * font/manager.c (find_glyph): Make table a const.
48314 (grub_font_get_glyph): Remove bitmap from if statement.
48315
48316 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48317
48318 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48319 code, first search for device in /dev/mapper, then in /dev.
48320 (grub_util_get_grub_dev): New function.
48321 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48322 prototype.
48323 * util/grub-probe.c (probe): Remove check for RAID, call
48324 grub_util_get_grub_dev() instead of
48325 grub_util_biosdisk_get_grub_dev().
48326 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48327 grub_util_biosdisk_get_grub_dev().
48328 * util/i386/pc/grub-setup.c (main): Likewise.
48329
48330 2007-05-16 Robert Millan <rmh@aybabtu.com>
48331
48332 * DISTLIST: Update for the latest changes.
48333 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48334 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48335 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48336 grub/util/biosdisk.h.
48337 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48338 grub/util/biosdisk.h.
48339
48340 2007-05-16 Robert Millan <rmh@aybabtu.com>
48341
48342 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48343
48344 2007-05-16 Robert Millan <rmh@aybabtu.com>
48345
48346 * util/i386/efi/grub-install.in: New.
48347 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48348 newly added grub-install.
48349 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48350 include.
48351 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48352 grub/util/biosdisk.h.
48353 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48354 grub/util/biosdisk.h.
48355
48356 2007-05-16 Robert Millan <rmh@aybabtu.com>
48357
48358 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48359 * include/grub/util/biosdisk.h: ... here.
48360 * util/i386/pc/biosdisk.c: Moved to ...
48361 * util/biosdisk.c: ... here.
48362 * util/i386/pc/getroot.c: Moved to ...
48363 * util/getroot.c: ... here.
48364 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48365 * util/grub-mkdevicemap.c: ... here.
48366 * util/i386/pc/grub-probe.c: Moved to ...
48367 * util/grub-probe.c: ... here.
48368
48369 2007-05-15 Robert Millan <rmh@aybabtu.com>
48370
48371 * util/update-grub.in: Remove duplicated line in grub.cfg header
48372 message.
48373
48374 2007-05-13 Robert Millan <rmh@aybabtu.com>
48375
48376 * util/update-grub.in: Fix a few assumptions about the devices holding
48377 /, /boot and /boot/grub being the same.
48378 * util/grub.d/00_header.in: Likewise.
48379 * util/grub.d/10_hurd.in: Likewise.
48380 * util/grub.d/10_linux.in: Likewise.
48381
48382 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48383 patterns. Use that to define the `.old' suffix as older than `'.
48384
48385 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48386
48387 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48388 the grub.cfg header message.
48389
48390 2007-05-11 Robert Millan <rmh@aybabtu.com>
48391
48392 * util/update-grub.in: Create device.map if it doesn't already exist,
48393 before attempting to run grub-probe.
48394 Check for grub-probe and grub-mkdevicemap with the same code
48395 grub-install is using.
48396 Remove test mode.
48397
48398 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48399
48400 * Makefile.in: Add the datarootdir autoconf variable.
48401
48402 2007-05-09 Robert Millan <rmh@aybabtu.com>
48403
48404 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48405 fail gracefully if dev->disk->partition == NULL.
48406
48407 2007-05-07 Robert Millan <rmh@aybabtu.com>
48408
48409 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48410 determine partition map module.
48411 * util/i386/pc/grub-install.in: Use this feature to decide which
48412 partition module to load, instead of hardcoding pc and gpt.
48413
48414 2007-05-07 Robert Millan <rmh@aybabtu.com>
48415
48416 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48417 source directory differs from build directory.
48418
48419 2007-05-05 Robert Millan <rmh@aybabtu.com>
48420
48421 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48422 initialisation.
48423
48424 2007-05-05 Robert Millan <rmh@aybabtu.com>
48425
48426 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48427
48428 2007-05-05 Robert Millan <rmh@aybabtu.com>
48429
48430 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48431 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48432
48433 2007-05-05 Robert Millan <rmh@aybabtu.com>
48434
48435 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48436 (grub_probe_SOURCES): Likewise.
48437 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48438 GPT and initialize dos_part and bsd_part accordingly.
48439 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48440 install_bsd_part.
48441 (main): Activate gpt module for use during partition identification,
48442 and deactivate it afterwards.
48443 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48444 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48445 partition identification, and deactivate it afterwards.
48446
48447 2007-05-05 Robert Millan <rmh@aybabtu.com>
48448
48449 * term/i386/pc/console.c (grub_console_fini): Call
48450 grub_term_set_current() before grub_term_unregister().
48451
48452 2007-05-04 Robert Millan <rmh@aybabtu.com>
48453
48454 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48455 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48456 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48457 and update-grub_DATA.
48458 * conf/common.rmk: Build and install update-grub components.
48459 * conf/common.mk: Regenerate.
48460 * util/update-grub.in: New. Core of update-grub.
48461 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48462 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48463 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48464 * util/grub.d/README: New. Document grub.d directory layout.
48465
48466 2007-05-01 Robert Millan <rmh@aybabtu.com>
48467
48468 * util/grub-emu.c: Move initialization functions
48469 grub_util_biosdisk_init() and grub_init_all() before
48470 grub_util_biosdisk_get_grub_dev(), which relies on them.
48471
48472 2007-04-19 Robert Millan <rmh@aybabtu.com>
48473
48474 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48475 it is used later.
48476
48477 2007-04-18 Jerone Young <jerone@gmail.com>
48478
48479 * kernel/elf.c: Add missing parenthesis for conditional statement
48480 stanza.
48481
48482 2007-04-10 Jerone Young <jerone@gmail.com>
48483
48484 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48485 continue on and look for device node with real device name.
48486
48487 2007-04-10 Jerone Young <jerone@gmail.com>
48488
48489 * configure.ac: Add argument for autoconf to use transformation
48490 ability.
48491 * Makefile.in: Add autoconf package transformation code.
48492 * util/i386/pc/grub-install.in: Likewise.
48493 * util/powerpc/ieee1275/grub-install.in: Likewise.
48494
48495 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48496
48497 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48498 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48499 (EXT2_REVISION): Likewise.
48500 (EXT2_INODE_SIZE): Likewise.
48501 (struct grub_ext2_block_group): Added a missing member
48502 "used_dirs".
48503 (grub_ext2_read_inode): Divide by the inode size in a superblock
48504 instead of 128 to obtain INODES_PER_BLOCK.
48505 Use the macro EXT2_INODE_SIZE instead of directly using
48506 SBLOCK->INODE_SIZE.
48507
48508 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48509
48510 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48511 superblock instead of the structure size to compute an
48512 offset. This fixes the problem that GRUB could not read a
48513 filesystem when inode size is different from 128-byte.
48514
48515 2007-03-05 Marco Gerards <marco@gnu.org>
48516
48517 * normal/main.c (read_config_file): When "menu" is not set, create
48518 an initial context.
48519
48520 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48521
48522 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48523 (HEAP_LIMIT): New macro.
48524 (grub_claim_heap): Claim memory up to `heaplimit'.
48525
48526 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48527
48528 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48529 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48530 (_start): Likewise.
48531 (grub_arch_modules_addr): Return address after `_end'.
48532 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48533 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48534 (add_segments): Calculate `_end' from phdr size and location.
48535 (ALIGN_UP): Moved to ...
48536 * include/grub/misc.h: here.
48537 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48538 New macro.
48539 (GRUB_IEEE1275_MODULE_BASE): Removed.
48540
48541 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48542
48543 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48544 loop boundary.
48545
48546 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48547
48548 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48549 All users updated.
48550 (grub_elf64_load_hook_t): Likewise.
48551 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48552 debug output.
48553
48554 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48555
48556 * kern/mm.c: Update copyright.
48557 (grub_mm_debug): Correct syntax error.
48558 (grub_mm_dump_free): New function.
48559 (grub_debug_free): Call `grub_free'.
48560 * include/grub/mm.h: Update copyright.
48561 (grub_mm_dump_free): Add declaration.
48562
48563 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48564
48565 * include/grub/ieee1275/ieee1275.h: Update copyright.
48566 * kern/powerpc/ieee1275/init.c: Likewise.
48567 * kern/powerpc/ieee1275/openfw.c: Likewise.
48568
48569 * loader/powerpc/ieee1275/linux.c: Likewise.
48570 * include/grub/elfload.h: Likewise.
48571 * kern/elf.c: Likewise.
48572 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48573 callers.
48574 (grub_elf64_load): Likewise.
48575 (grub_elf32_load_segment): Move to a nested function.
48576 (grub_elf64_load_segment): Likewise.
48577
48578 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48579
48580 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48581 prototype.
48582 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48583 (grub_heap_len): Likewise.
48584 (HEAP_SIZE): New macro.
48585 (grub_claim_heap): New function.
48586 (grub_machine_init): Don't claim heap directly. Call
48587 `grub_claim_heap'.
48588 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48589 (grub_available_iterate): New function.
48590
48591 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48592
48593 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48594 * configure.ac: Use it for testing the HOST and TARGET compilers.
48595
48596 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48597
48598 * Makefile.in (enable_grub_emu): New variable.
48599 * configure.ac (--enable-grub-emu): New option.
48600 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48601 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48602 * conf/i386-pc.rmk: Likewise.
48603 * conf/powerpc-ieee1275.rmk: Likewise.
48604 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48605
48606 2006-12-12 Marco Gerards <marco@gnu.org>
48607
48608 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48609
48610 * kern/env.c (grub_env_unset): Don't free the member `value' when
48611 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48612 pointer.
48613
48614 * normal/main.c (current_menu): Removed.
48615 (free_menu): Unset the `menu' environment variable.
48616 (grub_normal_menu_addentry): Make use of the environment variable
48617 `menu', instead of using the global `current_menu'. Allocate
48618 memory for the sourcecode of this entry.
48619 (read_config_file): New argument `nested', changed all callers.
48620 Only in the case of a new context, initialize a new menu. Set the
48621 `menu' environment variable.
48622 (grub_normal_execute): Don't set and unset the environment
48623 variable `menu' here anymore. Only free the menu when leaving the
48624 context.
48625
48626 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48627 leak.
48628
48629 2006-12-11 Marco Gerards <marco@gnu.org>
48630
48631 * normal/menu_entry.c (run): Fix off by one bug so the last line
48632 is executed. Move the loader check to outside the loop.
48633
48634 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48635
48636 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48637
48638 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48639
48640 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48641 the number of sectors. Reported by Andrey Shuvikov
48642 <mr_hyro@yahoo.com>.
48643
48644 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48645
48646 * kern/disk.c (grub_disk_read): When there is a read error, always
48647 try to read only the necessary data.
48648
48649 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48650 disk/raid.c.
48651 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48652 prototype.
48653 [GRUB_UTIL] (grub_raid_fini): Likewise.
48654 [GRUB_UTIL] (grub_lvm_init): Likewise.
48655 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48656 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48657 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48658 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48659 and grub_raid_fini().
48660
48661 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48662
48663 * include/grub/types.h (__unused): Rename to UNUSED.
48664 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48665 (grub_elf64_size): Likewise.
48666
48667 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48668
48669 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48670 grub_error_push and grub_error_pop in the error-handling path.
48671 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48672 length.
48673
48674 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48675
48676 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48677 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48678 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48679 (kernel_elf_SOURCES): Likewise.
48680 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48681 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48682 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48683 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48684 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48685 (elf_mod_SOURCES): New variable.
48686 (elf_mod_CFLAGS): Likewise.
48687 (elf_mod_LDFLAGS): Likewise.
48688 * include/grub/types.h (__unused): New macro.
48689 * include/grub/elfload.h: New file.
48690 * kern/elf.c: Likewise.
48691 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48692 (ELF32_LOADMASK): New macro.
48693 (ELF64_LOADMASK): Likewise.
48694 (vmlinux): Removed.
48695 (grub_linux_load32): New function.
48696 (grub_linux_load64): Likewise.
48697 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48698 Use grub_elf_t instead of grub_file_t.
48699
48700 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48701
48702 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48703 `catch_result' to struct set_color_args.
48704
48705 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48706
48707 * normal/menu.c: Include grub/script.h.
48708 * normal/menu_entry.c: Likewise.
48709 * include/grub/normal.h: Do not include grub/script.h.
48710
48711 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48712
48713 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48714
48715 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48716
48717 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48718 disk.
48719 (grub_disk_close): Print debug messages when closing a disk.
48720 (grub_disk_read): Print debug messages when disk read fails.
48721 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48722 filesystem type.
48723 * kern/partition.c: Include misc.h.
48724 (grub_partition_iterate): Print debug messages when detecting
48725 partition type.
48726
48727 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48728
48729 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48730 is negative.
48731 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48732
48733 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48734
48735 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48736 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48737
48738 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48739
48740 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48741 instead of sizeof(lv). Patch by Michael Guntsche.
48742
48743 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48744
48745 * disk/lvm.c: Rename VGS to VG_LIST.
48746 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48747 (grub_lvm_open): Likewise.
48748 Thanks to Michael Guntsche for finding this bug.
48749
48750 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48751
48752 * configure.ac (AC_INIT): Bumped to 1.95.
48753
48754 2006-10-14 Robert Millan <rmh@aybabtu.com>
48755
48756 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48757 with "/dev/.static/dev/md".
48758
48759 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48760
48761 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48762 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48763 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48764 DRIVE_NAME are always freed.
48765
48766 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48767 DOS_PART, as a DOS partition is counted from one instead of zero
48768 now. Reported by Robert Millan.
48769
48770 2006-10-14 Robert Millan <rmh@aybabtu.com>
48771
48772 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48773 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48774 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48775 string returned by grub_guess_root_device.
48776 * util/i386/pc/grub-setup.c: Likewise.
48777 * util/i386/pc/grub-probefs.c: Likewise.
48778
48779 * util/i386/pc/grub-probefs.c: Rename to ...
48780 * util/i386/pc/grub-probe.c: ... this.
48781 * DISTLIST: Remove grub-probefs, add grub-probe.
48782 * conf/i386-efi.rmk: Likewise.
48783 * conf/i386-pc.rmk: Likewise.
48784 * util/i386/pc/grub-install.in: Likewise.
48785
48786 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48787 choose which information we want to print.
48788
48789 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48790
48791 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48792 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48793 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48794 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48795 video/readers/tga.c and video/i386/pc/vbeutil.c.
48796
48797 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48798
48799 Added support for RAID and LVM.
48800
48801 * disk/lvm.c: New file.
48802 * disk/raid.c: Likewise.
48803 * include/grub/lvm.h: Likewise.
48804 * include/grub/raid.h: Likewise.
48805 * include/grub/util/lvm.h: Likewise.
48806 * include/grub/util/raid.h: Likewise.
48807 * util/lvm.c: Likewise.
48808 * util/raid.c: Likewise.
48809
48810 * include/grub/disk.h (grub_disk_dev_id): Add
48811 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48812 (grub_disk_get_size): New prototype.
48813 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48814 returns a partition.
48815 (grub_disk_get_size): New function.
48816
48817 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48818 verbatim if grub_install_dos_part is -2.
48819
48820 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48821 and LVM devices.
48822
48823 * util/i386/pc/grub-setup.c (setup): New argument
48824 MUST_EMBED. Force embedding of GRUB when the argument is
48825 true. Close FILE before returning.
48826 (main): Add support for RAID and LVM.
48827
48828 * conf/common.rmk: Add RAID and LVM modules.
48829 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48830 util/lvm.c.
48831 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48832
48833 * kern/misc.c (grub_strstr): New function.
48834 * include/grub/misc.h (grub_strstr): New prototype.
48835
48836 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48837
48838 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48839
48840 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48841
48842 * kern/misc.c (grub_strtoull): Guess the base only if not
48843 specified.
48844
48845 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48846
48847 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48848 PowerMac support.
48849
48850 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48851
48852 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48853
48854 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48855 Remove `flags' argument. All callers changed.
48856 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48857 (IEEE1275_IHANDLE_INVALID): New variable.
48858 (IEEE1275_CELL_INVALID): New variable.
48859 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48860 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48861 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48862 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48863 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48864 codes from Open Firmware. All callers updated.
48865 (grub_ieee1275_next_property): Directly return Open Firmware return
48866 code.
48867 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48868 Standardize error checking from `grub_ieee1275_get_property'.
48869 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48870 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48871
48872 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48873
48874 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48875 `instance_to_package_args' to `instance_to_path_args'.
48876
48877 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48878 `grub_ieee1275_chosen'.
48879
48880 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48881 `grub_ieee1275_interpret'.
48882
48883 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48884
48885 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48886
48887 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48888
48889 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48890 (__cmpdi): Likewise.
48891
48892 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48893 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48894 `grub_ssize_t'.
48895
48896 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48897
48898 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48899 to type `grub_ssize_t'.
48900 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48901
48902 2006-09-22 Marco Gerards <marco@gnu.org>
48903
48904 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48905 newlines.
48906
48907 2006-09-22 Marco Gerards <marco@gnu.org>
48908
48909 * commands/echo.c: New file.
48910
48911 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48912
48913 * conf/common.rmk (echo_mod_SOURCES): New variable.
48914 (echo_mod_CFLAGS): Likewise.
48915 (echo_mod_LDFLAGS): Likewise.
48916
48917 2006-09-22 Marco Gerards <marco@gnu.org>
48918
48919 * normal/main.c (get_line): Malloc memory instead of using
48920 preallocated memory. Removed the arguments `cmdline' and
48921 `max_len'. Updated all callers.
48922
48923 2006-09-22 Marco Gerards <marco@gnu.org>
48924
48925 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48926 (normal_mod_DEPENDENCIES): Likewise.
48927
48928 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48929 (normal_mod_DEPENDENCIES): Likewise.
48930
48931 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48932
48933 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48934
48935 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48936 programs.
48937 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48938 (normal_mod_DEPENDENCIES): Likewise.
48939 * conf/i386-pc.mk: Regenerate.
48940 * conf/i386-efi.mk: Likewise
48941 * conf/common.mk: Likewise.
48942 * conf/powerpc-ieee1275.mk: Likewise.
48943 * conf/sparc64-ieee1275.mk: Likewise.
48944
48945 2006-09-22 Robert Millan <rmh@aybabtu.com>
48946
48947 Sync with i386 version.
48948 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48949 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48950
48951 2006-09-21 Robert Millan <rmh@aybabtu.com>
48952
48953 Import from GRUB Legacy (lib/device.c):
48954 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48955 (init_device_map) [__linux__]: Add support for I2O devices.
48956
48957 2006-09-14 Marco Gerards <marco@gnu.org>
48958
48959 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48960 `-melf_i386'.
48961
48962 2006-09-14 Robert Millan <rmh@aybabtu.com>
48963
48964 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48965 /boot/grub/*.lst.
48966
48967 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48968
48969 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48970 before adding it to device.map.
48971
48972 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48973
48974 * genmk.rb: Let GCC generate dependencies the first time it
48975 compiles a file; using the -MD option.
48976 * conf/common.mk: Regenerate.
48977 * conf/i386-pc.mk: Likewise.
48978 * conf/i386-efi.mk: Likewise.
48979 * conf/powerpc-ieee1275.mk: Likewise.
48980 * conf/sparc64-ieee1275.mk: Likewise.
48981
48982 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48983
48984 Move the prototypes of grub_setjmp and grub_longjmp to
48985 cpu/setjmp.h, so that each architecture may specify different
48986 attributes.
48987
48988 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48989 (grub_longjmp): Likewise.
48990 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48991 (grub_longjmp): Likewise.
48992 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48993 (grub_longjmp): Likewise.
48994
48995 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48996 [!GRUB_UTIL] (grub_longjmp): Removed.
48997
48998 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48999
49000 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49001 "color!" method does not return any value.
49002
49003 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49004
49005 * include/grub/bitmap.h: New file.
49006
49007 * include/grub/i386/pc/vbeutil.h: Likewise.
49008
49009 * video/bitmap.c: Likewise.
49010
49011 * video/readers/tga.c: Likewise.
49012
49013 * video/i386/pc/vbeutil.c: Likewise.
49014
49015 * commands/videotest.c: Code cleanup and updated to reflect to new
49016 video API.
49017
49018 * term/gfxterm.c: Likewise.
49019
49020 * video/video.c: Likewise.
49021
49022 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49023 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49024 (bitmap_mod_SOURCES): New entry.
49025 (bitmap_mod_CFLAGS): Likewise.
49026 (bitmap_mod_LDFLAGS): Likewise.
49027 (tga_mod_SOURCES): Likewise.
49028 (tga_mod_CFLAGS): Likewise.
49029 (tga_mod_LDFLAGS): Likewise.
49030
49031 * include/grub/video.h (grub_video_blit_operators): New enum type.
49032 (grub_video_render_target): Changed as forward declaration and moved
49033 actual definition to be video driver specific.
49034 (grub_video_adapter.blit_bitmap): Added blitting operator.
49035 (grub_video_adapter.blit_render_target): Likewise.
49036 (grub_video_blit_bitmap): Likewise.
49037 (grub_video_blit_render_target): Likewise.
49038
49039 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49040 driver specific render target definition.
49041 (grub_video_vbe_map_rgba): Added driver internal helper.
49042 (grub_video_vbe_unmap_color): Updated to use
49043 grub_video_i386_vbeblit_info.
49044 (grub_video_vbe_get_video_ptr): Likewise.
49045
49046 * include/grub/i386/pc/vbeblit.h
49047 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49048 grub_video_i386_vbeblit_info.
49049 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49050 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49051 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49052 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49053 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49054 (grub_video_i386_vbeblit_index_index): Likewise.
49055 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49056 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49057 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49058 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49059 operator.
49060 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49061 operator.
49062
49063 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49064 include/grub/i386/pc/vbeblit.h.
49065
49066 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49067 Updated to use grub_video_i386_vbeblit_info.
49068 (grub_video_i386_vbefill_R8G8B8): Likewise.
49069 (grub_video_i386_vbefill_index): Likewise.
49070 (grub_video_i386_vbefill): Added generic filler.
49071
49072 * video/i386/pc/vbefill.c: Updated to reflect changes on
49073 include/grub/i386/pc/vbefill.h.
49074
49075 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49076 grub_video_i386_vbeblit_info.
49077 (grub_video_vbe_unmap_color): Likewise.
49078 (grub_video_vbe_blit_glyph): Likewise.
49079 (grub_video_vbe_scroll): Likewise.
49080 (grub_video_vbe_draw_pixel): Removed function.
49081 (grub_video_vbe_get_pixel): Likewise.
49082 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49083 updated code to use it.
49084 (common_blitter): Added common blitter for render target and bitmap.
49085 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49086 (grub_video_vbe_blit_render_target): Likewise.
49087
49088 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49089
49090 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49091 is in text mode if there is no console control protocol instance
49092 available.
49093
49094 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49095
49096 * include/grub/video.h: Code cleanup.
49097
49098 * include/grub/i386/pc/vbe.h: Likewise.
49099
49100 * video/i386/pc/vbe.c: Likewise.
49101
49102 * video/i386/pc/vbeblit.c: Likewise.
49103
49104 * video/i386/pc/vbefill.c: Likewise.
49105
49106 * video/video.c: Likewise. Also added more comments.
49107
49108 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49109
49110 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49111 (struct grub_biosdisk_dap): Likewise.
49112
49113 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49114 linkage settings for all functions.
49115
49116 2006-07-12 Marco Gerards <marco@gnu.org>
49117
49118 * configure.ac (--enable-mm-debug): Fix typo.
49119
49120 * genkernsyms.sh.in: Use proper quoting for `CC'.
49121
49122 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49123
49124 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49125 (normal_mod_ASFLAGS): Remove "-m32".
49126
49127 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49128
49129 * util/misc.c: Include config.h.
49130 [!HAVE_MEMALIGN]: Do not include malloc.h.
49131 (grub_memalign): Use posix_memalign, if present. Then, use
49132 memalign, if present. Otherwise, emit an error.
49133
49134 * util/grub-emu.c: Do not include malloc.h.
49135
49136 * include/grub/util/misc.h: Include unistd.h. This is required for
49137 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49138 D. Eades III <hde@foobar-qux.org>.
49139
49140 * configure.ac (AC_GNU_SOURCE): Added.
49141 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49142 type.
49143
49144 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49145
49146 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49147 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49148
49149 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49150
49151 * include/grub/types.h (grub_host_addr_t): Rename to
49152 grub_target_addr_t.
49153 (grub_host_off_t): Rename to grub_target_off_t.
49154 (grub_host_size_t): Rename to grub_target_size_t.
49155 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49156 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49157
49158 * include/grub/kernel.h (struct grub_module_header): Change type
49159 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49160 (grub_module_info): Likewise.
49161
49162 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49163
49164 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49165 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49166 Velazquez <jesus.velazquez@gmail.com>.
49167
49168 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49169
49170 Count partitions from 1 instead of 0 in the string representation
49171 of partitions. Still use 0-based internally.
49172
49173 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49174 (sun_partition_map_iterate): Use grub_partition_t instead of
49175 struct grub_partition *. Cast DESC->START_CYLINDER to
49176 grub_uint64_t after converting the endian.
49177 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49178 (sun_partition_map_get_name): Add 1 to P->INDEX.
49179
49180 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49181 PCDATA->DOS_PART.
49182 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49183
49184 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49185 zero instead of one.
49186 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49187 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49188
49189 * partmap/apple.c (apple_partition_map_iterate): Change the type
49190 of POS to unsigned.
49191 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49192 (apple_partition_map_get_name): Add 1 into P->INDEX.
49193
49194 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49195 of POS to unsigned.
49196 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49197 calculate the offset of a partition.
49198 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49199 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49200
49201 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49202 SECTOR to grub_disk_addr_t.
49203 (acorn_partition_map_iterate): Likewise.
49204 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49205 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49206 top.
49207 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49208
49209 * kern/i386/pc/init.c (make_install_device): Add 1 into
49210 GRUB_INSTALL_DOS_PART.
49211
49212 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49213 conditional.
49214
49215 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49216
49217 Clean up the code to support 64-bit addressing in disks and
49218 files. This change is not enough for filesystems yet.
49219
49220 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49221 type of "start" to grub_uint64_t.
49222 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49223 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49224 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49225 convert addresses.
49226
49227 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49228 to grub_disk_addr_t.
49229
49230 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49231 string.
49232
49233 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49234
49235 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49236 to char *.
49237
49238 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49239
49240 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49241
49242 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49243
49244 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49245 to grub_off_t, to detect an error from grub_file_seek.
49246 (grub_multiboot_load_elf32): Likewise.
49247
49248 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49249 maximum unsigned long value when an overflow is detected.
49250 (grub_strtoull): New function.
49251 (grub_divmod64): Likewise.
49252 (grub_lltoa): use grub_divmod64.
49253
49254 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49255 grub_disk_addr_t.
49256 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49257 the pointer to next character. Use grub_strtoull instead of
49258 grub_strtoul.
49259 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49260 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49261 respectively.
49262
49263 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49264 return value is signed.
49265 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49266 test if OFFSET is less than zero, as OFFSET is unsigned now.
49267
49268 * kern/disk.c (struct grub_disk_cache): Change the type of
49269 "sector" to grub_disk_addr_t.
49270 (grub_disk_cache_get_index): Change the type of SECTOR to
49271 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49272 unsigned after shifting.
49273 (grub_disk_cache_invalidate): Change the type of SECTOR to
49274 grub_disk_addr_t.
49275 (grub_disk_cache_unlock): Likewise.
49276 (grub_disk_cache_store): Likewise.
49277 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49278 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49279 grub_disk_addr_t and grub_uint64_t, respectively.
49280 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49281 body, as the value of OFFSET is tweaked by
49282 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49283 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49284 respectively.
49285 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49286 body, as the value of OFFSET is tweaked by
49287 grub_disk_check_range. Change the types of LEN and N to
49288 grub_size_t.
49289
49290 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49291 and "saved_offset" to grub_off_t.
49292 (test_header): Cast BUF to char *.
49293 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49294 to char *.
49295 (grub_gzio_read): Change the types of OFFSET and SIZE to
49296 grub_off_t and grub_size_t, respectively.
49297
49298 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49299 Removed.
49300 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49301 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49302 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49303 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49304 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49305
49306 * include/grub/types.h (grub_off_t): Unconditionally set to
49307 grub_uint64_t.
49308 (grub_disk_addr_t): Changed to grub_uint64_t.
49309
49310 * include/grub/partition.h (struct grub_partition): Change the
49311 types of "start", "len" and "offset" to grub_disk_addr_t,
49312 grub_uint64_t and grub_disk_addr_t, respectively.
49313 (grub_partition_get_start): Return grub_disk_addr_t.
49314 (grub_partition_get_len): Return grub_uint64_t.
49315
49316 * include/grub/misc.h (grub_strtoull): New prototype.
49317 (grub_divmod64): Likewise.
49318
49319 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49320 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49321 grub_off_t, respectively.
49322 All callers and references changed.
49323
49324 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49325 grub_size_t in "read".
49326 All callers and references changed.
49327
49328 * include/grub/file.h (struct grub_file): Change the types of
49329 "offset" and "size" to grub_off_t and grub_off_t,
49330 respectively. Change the type of SECTOR to grub_disk_addr_t in
49331 "read_hook".
49332 (grub_file_read): Change the type of LEN to grub_size_t.
49333 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49334 grub_off_t.
49335 (grub_file_size): Return grub_off_t.
49336 (grub_file_tell): Likewise.
49337 All callers and references changed.
49338
49339 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49340 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49341 "write".
49342 (struct grub_disk): Change the type of "total_sectors" to
49343 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49344 "read_hook".
49345 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49346 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49347 (grub_disk_write): Likewise.
49348 All callers and references changed.
49349
49350 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49351 char * for grub_strncmp to silence gcc.
49352 (grub_iso9660_mount): Likewise.
49353 (grub_iso9660_mount): Likewise.
49354 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49355 return statement.
49356 (grub_iso9660_iterate_dir): Likewise.
49357 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49358
49359 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49360 LEN to grub_disk_addr_t and grub_size_t, respectively.
49361
49362 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49363
49364 * fs/jfs.c (grub_jfs_read_file): Likewise.
49365
49366 * fs/minix.c (grub_jfs_read_file): Likewise.
49367
49368 * fs/sfs.c (grub_jfs_read_file): Likewise.
49369
49370 * fs/ufs.c (grub_jfs_read_file): Likewise.
49371
49372 * fs/xfs.c (grub_jfs_read_file): Likewise.
49373
49374 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49375 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49376 respectively.
49377
49378 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49379 BLKNR to -1 instead of returning GRUB_ERRNO.
49380 (grub_ext2_read_file): Change the types of SECTOR and
49381 LEN to grub_disk_addr_t and grub_size_t, respectively.
49382
49383 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49384 LEN to grub_disk_addr_t and grub_size_t, respectively.
49385
49386 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49387 grub_file_read.
49388
49389 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49390 string. Do not cast SECTOR explicitly.
49391
49392 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49393 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49394 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49395 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49396 over 2TB and LBA mode is not supported, raise an error.
49397 (get_safe_sectors): New function.
49398 (grub_biosdisk_read): Use get_safe_sectors.
49399 (grub_biosdisk_write): Likewise.
49400
49401 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49402 (grub_efidisk_write): Likewise.
49403
49404 * disk/loopback.c (delete_loopback): Cosmetic changes.
49405 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49406 correctly.
49407 (grub_loopback_open): Likewise.
49408 (grub_loopback_read): Likewise. Also, change the type of POS to
49409 grub_off_t, and fix the usage of grub_memset.
49410
49411 * commands/i386/pc/play.c: Include grub/machine/time.h.
49412
49413 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49414 print FILE->SIZE.
49415
49416 * commands/configfile.c: Include grub/env.h.
49417
49418 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49419 GRUB_ERRNO directly instead. Change the type of POS to
49420 grub_off_t. Follow the coding standard.
49421
49422 * commands/blocklist.c: Include grub/partition.h.
49423 (grub_cmd_blocklist): Return an error if the underlying device is
49424 not a disk. Take the starting sector of a partition into account,
49425 if a partition is used.
49426
49427 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49428 a length field.
49429 (lba_mode): Support 64-bit addresses.
49430 (chs_mode): Likewise.
49431 (copy_buffer): Adapted to the new offsets of a length field and a
49432 segment field.
49433 (blocklist_default_start): Allocate 64-bit space.
49434
49435 * boot/i386/pc/boot.S (force_lba): Removed.
49436 (boot_drive): Moved to under KERNEL_SECTOR.
49437 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49438 space.
49439 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49440 is useless.
49441 (lba_mode): Refactored to support a 64-bit address. More size
49442 optimization.
49443 (setup_sectors): Likewise.
49444
49445 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49446
49447 * DISTLIST: Added include/grub/i386/linux.h. Removed
49448 include/grub/i386/pc/linux.h
49449
49450 * configure.ac (AC_INIT): Bumped to 1.94.
49451
49452 * config.guess: Updated from gnulib.
49453 * config.sub: Likewise.
49454 * install-sh: Likewise.
49455 * mkinstalldirs: Likewise.
49456
49457 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49458
49459 * conf/common.rmk (grub_modules_init.lst): Depended on
49460 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49461 MODSRCFILES.
49462
49463 * genmk.rb (PModule::rule): Reverted the previous change.
49464
49465 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49466
49467 * conf/common.rmk (grub_modules_init.lst): Depends on
49468 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49469 that the target does not exist before producing.
49470 (grub_modules_init.h): Remove the target before generating.
49471 (grub_emu_init.c): Likewise.
49472
49473 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49474
49475 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49476
49477 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49478 for the target-specific tests. Make sure that we also have the
49479 up-to-date target variables for those tests.
49480
49481 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49482
49483 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49484 (PModule::rule): Likewise.
49485
49486 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49487
49488 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49489 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49490 target-specific flags should be prefixed.
49491 (PModule::rule): Likewise.
49492
49493 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49494
49495 * configure.ac (CMP): Check if cmp is available explicitly.
49496
49497 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49498
49499 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49500 (target_cpu): New variable.
49501 (pkglibdir): Use target_cpu instead of host_cpu.
49502
49503 * util/i386/pc/grub-install.in (host_cpu): Removed.
49504 (target_cpu): New variable.
49505 (pkglibdir): Use target_cpu instead of host_cpu.
49506
49507 * util/genmoddep.c: Removed.
49508
49509 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49510 instead of GRUB_HOST_SIZEOF_VOID_P.
49511 * kern/dl.c: Likewise.
49512
49513 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49514 ...
49515 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49516 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49517 (GRUB_TARGET_SIZEOF_LONG): ... this.
49518 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49519 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49520 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49521 to ...
49522 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49523 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49524 (GRUB_TARGET_SIZEOF_LONG): ... this.
49525 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49526 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49527 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49528 to ...
49529 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49530 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49531 (GRUB_TARGET_SIZEOF_LONG): ... this.
49532 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49533 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49534
49535 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49536 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49537 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49538 instead of GRUB_HOST_SIZEOF_LONG.
49539 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49540 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49541 GRUB_CPU_WORDS_BIGENDIAN.
49542 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49543 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49544 grub_host_ssize_t.
49545
49546 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49547 (genmoddep_SOURCES): Likewise.
49548 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49549 (genmoddep_SOURCES): Likewise.
49550 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49551 (genmoddep_SOURCES): Likewise.
49552 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49553 Likewise.
49554 (genmoddep_SOURCES): Likewise.
49555
49556 * genmoddep.awk: New file.
49557
49558 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49559 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49560 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49561 (PModule::rule): Likewise.
49562 (Program::rule): Likewise.
49563 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49564 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49565 respectively.
49566
49567 * configure.ac: Rewritten intensively to use host and target
49568 instead of build and host, respectively.
49569
49570 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49571 (host_cpu): Removed.
49572 (target_cpu): New variable.
49573 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49574 (BUILD_CC): Removed.
49575 (BUILD_CFLAGS): Likewise.
49576 (BUILD_CPPFLAGS): Likewise.
49577 (TARGET_CC): New variable.
49578 (TARGET_CFLAGS): Likewise.
49579 (TARGET_CPPFLAGS): Likewise.
49580 (TARGET_LDFLAGS): Likewise.
49581 (AWK): Likewise.
49582 (include): Use target_cpu instead of host_cpu.
49583 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49584
49585 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49586
49587 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49588
49589 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49590 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49591 field 'false' to 'exec_on_false'.
49592 (grub_script_create_cmdif): Renamed argument names to reflect above
49593 changes.
49594
49595 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49596
49597 * normal/script.c (grub_script_create_cmdif): Likewise.
49598
49599 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49600
49601 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49602 top.
49603 (grub_hfsplus_btree_recptr): Likewise.
49604 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49605 FILEBLOCK both to pass a block number and store next block
49606 number.
49607 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49608 overflow file correctly. Specify errors appropriately, because
49609 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49610 grub_hfsplus_btree_recptr to get the pointer to a found key.
49611 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49612 is found.
49613
49614 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49615 linux.mod.
49616 (_linux_mod_SOURCES): New variable.
49617 (_linux_mod_CFLAGS): Likewise.
49618 (_linux_mod_LDFLAGS): Likewise.
49619 (linux_mod_SOURCES): Likewise.
49620 (linux_mod_CFLAGS): Likewise.
49621 (linux_mod_LDFLAGS): Likewise.
49622
49623 * DISTLIST: Added loader/i386/efi/linux.c,
49624 loader/i386/efi/linux_normal.c and
49625 include/grub/i386/efi/loader.h.
49626
49627 * loader/i386/efi/linux.c: New file.
49628 * loader/i386/efi/linux_normal.c: Likewise.
49629 * include/grub/i386/efi/loader.h: Likewise.
49630
49631 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49632
49633 * commands/blocklist.c: New file.
49634
49635 * DISTLIST: Added commands/blocklist.c.
49636
49637 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49638 color for the background, and a darker color for the foreground.
49639 (grub_console_checkkey): Return READ_KEY.
49640 (grub_console_cls): Set the background to
49641 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49642
49643 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49644
49645 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49646 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49647
49648 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49649 prototype.
49650
49651 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49652 BG. The spec is wrong again.
49653
49654 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49655 prototype.
49656 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49657
49658 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49659 commands/blocklist.c.
49660 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49661
49662 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49663 (blocklist_mod_SOURCES): New variable.
49664 (blocklist_mod_CFLAGS): Likewise.
49665 (blocklist_mod_LDFLAGS): Likewise.
49666
49667 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49668
49669 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49670 duplication.
49671 (lba_mode): Use %eax more intensively to reduce the code size.
49672
49673 2006-05-20 Marco Gerards <marco@gnu.org>
49674
49675 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49676
49677 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49678 for `menuentry'.
49679 (script): Accept leading newlines.
49680 (newlines): New rule to describe 0 or more newlines.
49681 (commands): Accept `command' with trailing newline. Fixed the
49682 order in which arguments were passed to `grub_script_add_cmd'.
49683 Accept commands separated by newlines.
49684 (function): Changed to accept newlines.
49685 (menuentry) Rewritten.
49686
49687 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49688 front of the list, instead of to the end.
49689
49690 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49691
49692 * util/i386/pc/grub-install.in (bindir): New variable.
49693 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49694 Shaver <lbgwjl@gmail.com>.
49695
49696 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49697
49698 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49699 grub/machine/linux.h
49700 * loader/i386/pc/linux.c: Likewise.
49701
49702 * include/grub/i386/pc/linux.h: Moved to ...
49703 * include/grub/i386/linux.h: ... here.
49704
49705 * include/grub/i386/linux.h (struct linux_kernel_params): New
49706 struct.
49707
49708 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49709
49710 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49711 checking.
49712 (grub_video_vbe_blit_glyph): Likewise.
49713 (grub_video_vbe_blit_bitmap): Likewise.
49714 (grub_video_vbe_blit_render_target): Likewise.
49715
49716 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49717
49718 * configure.ac (--with-platform): Properly quote the square
49719 brackets.
49720
49721 2006-05-08 Marco Gerards <marco@gnu.org>
49722
49723 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49724 this...
49725 (kernel_elf_HEADERS): ...to this. Updated all users.
49726 (grubof_symlist.c): Renamed from this...
49727 (kernel_elf_symlist.c): ...to this. Updated all users.
49728 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49729 (grubof_SOURCES): Renamed from this...
49730 (kernel_elf_SOURCES): ...to this.
49731 (grubof_HEADERS): Renamed from this...
49732 (kernel_elf_HEADERS): ...to this.
49733 (grubof_CFLAGS): Renamed from this...
49734 (kernel_elf_CFLAGS): ...to this.
49735 (grubof_ASFLAGS): Renamed from this...
49736 (kernel_elf_ASFLAGS): ...to this.
49737 (grubof_LDFLAGS): Renamed from this...
49738 (kernel_elf_LDFLAGS): ...to this.
49739
49740 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49741 this...
49742 (kernel_elf_HEADERS): ...to this. Updated all users.
49743 (grubof_symlist.c): Renamed from this...
49744 (kernel_elf_symlist.c): ...to this. Updated all users.
49745 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49746 (grubof_SOURCES): Renamed from this...
49747 (kernel_elf_SOURCES): ...to this.
49748 (grubof_HEADERS): Renamed from this...
49749 (kernel_elf_HEADERS): ...to this.
49750 (grubof_CFLAGS): Renamed from this...
49751 (kernel_elf_CFLAGS): ...to this.
49752 (grubof_ASFLAGS): Renamed from this...
49753 (kernel_elf_ASFLAGS): ...to this.
49754 (grubof_LDFLAGS): Renamed from this...
49755 (kernel_elf_LDFLAGS): ...to this.
49756
49757 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49758 `kernel.elf' instead of `grubof'.
49759
49760 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49761
49762 Add --with-platform to configure. Use pkglibdir instead of
49763 pkgdatadir. This is reported by Roger Leigh.
49764
49765 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49766 (host_vendor): Likewise.
49767 (host_os): Likewise.
49768 (pkgdatadir): Likewise.
49769 (platform): New variable.
49770 (pkglibdir): Likewise.
49771 Use PKGLIBDIR instead of PKGDATADIR.
49772
49773 * util/i386/pc/grub-install.in (datadir): Removed.
49774 (host_vendor): Likewise.
49775 (host_os): Likewise.
49776 (pkgdatadir): Likewise.
49777 (platform): New variable.
49778 (pkglibdir): Likewise.
49779 Use PKGLIBDIR instead of PKGDATADIR.
49780
49781 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49782 instead of GRUB_DATADIR.
49783 (main): Likewise.
49784 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49785 (main): Likewise.
49786 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49787 (main): Likewise.
49788
49789 * configure.ac (--with-platform): New option.
49790 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49791
49792 * Makefile.in: Include a makefile based on PLATFORM instead of
49793 HOST_VENDOR.
49794 (pkgdatadir): Not appended by the machine type.
49795 (pkglibdir): Appended by the machine type.
49796 (host_vendor): Removed.
49797 (platform): New variable.
49798 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49799 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49800 (uninstall): Likewise.
49801
49802 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49803
49804 Use the environment context in the menu. Remove the commands
49805 "default" and "timeout", and use variables instead.
49806
49807 * normal/menu.c: Include grub/env.h.
49808 (print_entry): Cast TITLE to silence gcc.
49809 (get_timeout): New function.
49810 (set_timeout): Likewise.
49811 (get_entry_number): Likewise.
49812 (run_menu): Use a default entry, a fallback entry and a timeout
49813 in the environment variables "default", "fallback" and
49814 "timeout". Also, tweak the default entry if it is not within the
49815 current menu entries.
49816 (grub_menu_run): Use a fallback entry in the environment variable
49817 "fallback".
49818
49819 * normal/main.c (read_config_file): Do not initialize
49820 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49821 NEWMENU->TIMEOUT.
49822 (grub_normal_execute): Use a data slot to store the menu.
49823
49824 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49825 fallback_entry and timeout.
49826 (struct grub_menu_list): Removed.
49827 (grub_menu_list_t): Likewise.
49828 (struct grub_context): Likewise.
49829 (grub_context_t): Likewise.
49830 (grub_context_get): Likewise.
49831 (grub_context_get_current_menu): Likewise.
49832 (grub_context_push_menu): Likewise.
49833 (grub_context_pop_menu): Likewise.
49834 (grub_default_init): Likewise.
49835 (grub_default_fini): Likewise.
49836 (grub_timeout_init): Likewise.
49837 (grub_timeout_fini): Likewise.
49838
49839 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49840 and timeout.mod.
49841 (normal_mod_SOURCES): Removed normal/context.c.
49842
49843 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49844 commands/default.c, commands/timeout.c and normal/context.c.
49845 (normal_mod_SOURCES): Removed normal/context.c.
49846
49847 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49848 commands/timeout.c and normal/context.c.
49849 (normal_mod_SOURCES): Removed normal/context.c.
49850
49851 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49852 commands/default.c, commands/timeout.c and normal/context.c.
49853 (normal_mod_SOURCES): Removed normal/context.c.
49854
49855 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49856 timeout.mod.
49857 (default_mod_SOURCES): Removed.
49858 (default_mod_CFLAGS): Likewise.
49859 (default_mod_LDFLAGS): Likewise.
49860 (timeout_mod_SOURCES): Removed.
49861 (timeout_mod_CFLAGS): Likewise.
49862 (timeout_mod_LDFLAGS): Likewise.
49863
49864 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49865 normal/context.c.
49866
49867 * commands/default.c: Removed.
49868 * commands/timeout.c: Likewise.
49869 * normal/context.c: Likewise.
49870
49871 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49872
49873 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49874
49875 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49876
49877 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49878 "next" to "prev" for readability.
49879 (struct grub_env_sorted_var): New struct.
49880 (grub_env_context): Renamed to ...
49881 (initial_context): ... this.
49882 (grub_env_var_context): Renamed to ...
49883 (current_context): ... this.
49884 (grub_env_find): Look only at CURRENT_CONTEXT.
49885 (grub_env_context_open): Rewritten to copy exported variables from
49886 previous context.
49887 (grub_env_context_close): Rewritten according to the new
49888 scheme. Also, add an assertion to prevent the initial context from
49889 removed.
49890 (grub_env_insert): Removed the code for the sorted list.
49891 (grub_env_remove): Likewise.
49892 (grub_env_export): Simply mark the variable with
49893 GRUB_ENV_VAR_GLOBAL.
49894 (grub_env_set): A cosmetic change for naming consistency.
49895 (grub_env_get): Likewise.
49896 (grub_env_unset): Likewise.
49897 (grub_env_iterate): Rewritten to sort variables within this
49898 function.
49899 (grub_register_variable_hook): Fixed for naming consistency. Call
49900 grub_env_find again, only if NAME is not found at the first time.
49901 (mangle_data_slot_name): New function.
49902 (grub_env_set_data_slot): Likewise.
49903 (grub_env_get_data_slot): Likewise.
49904 (grub_env_unset_data_slot): Likewise.
49905
49906 * include/grub/env.h (grub_env_var_type): New enum.
49907 (GRUB_ENV_VAR_LOCAL): New constant.
49908 (GRUB_ENV_VAR_GLOBAL): Likewise.
49909 (GRUB_ENV_VAR_DATA): Likewise.
49910 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49911 "type".
49912 (grub_env_set): Replace VAR with NAME for consistency.
49913 (grub_register_variable_hook): Likewise.
49914 (grub_env_export): Specify the name of the argument.
49915 (grub_env_set_data_slot): New prototype.
49916 (grub_env_get_data_slot): Likewise.
49917 (grub_env_unset_data_slot): Likewise.
49918
49919 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49920
49921 Extend the loader so that GRUB can accept a loader which comes
49922 back to GRUB when a loaded image exits. Also, this change adds
49923 support for a chainloader on EFI.
49924
49925 * term/efi/console.c: Include grub/misc.h.
49926 (grub_console_checkkey): Display a scan code on the top for
49927 debugging. This will be removed once the EFI port gets stable.
49928 Correct the scan code mapping.
49929
49930 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49931 allocate memory from larger regions, in order to reduce the number
49932 of allocated regions. Otherwise, the MacOSX loader panics.
49933 (filter_memory_map): Avoid less than 1MB for compatibility with
49934 other loaders.
49935 (add_memory_regions): Allocate from the tail of a region, if
49936 possible, to avoid allocating a region near to 1MB, for the MacOSX
49937 loader.
49938
49939 * kern/efi/init.c (grub_efi_set_prefix): Specify
49940 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49941
49942 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49943 argument IMAGE_HANDLE and specify it to get a loaded image.
49944 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49945 grub_efi_get_loaded_image.
49946 (grub_efi_get_filename): Divide the length by the size of
49947 grub_efi_char16_t.
49948 (grub_efi_get_device_path): New function.
49949 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49950 the length by the size of grub_efi_char16_t for a file path device
49951 path node.
49952
49953 * kern/loader.c (grub_loader_noreturn): New variable.
49954 (grub_loader_set): Accept a new argument NORETURN. Set
49955 GRUB_LOADER_NORETURN to NORETURN.
49956 All callers changed.
49957 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49958 grub_machine_fini.
49959
49960 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49961 prototype.
49962 (grub_efi_get_loaded_image): Take an argument to specify an image
49963 handle.
49964
49965 * include/grub/loader.h (grub_loader_set): Added one more argument
49966 NORETURN.
49967
49968 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49969 instead of grub_efi_open_protocol.
49970 (grub_efidisk_get_device_name): Likewise.
49971 (grub_efidisk_close): Print a newline.
49972 (grub_efidisk_get_device_handle): Fixed to use
49973 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49974 GRUB_EFI_DEVICE_PATH_TYPE.
49975
49976 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49977 * kern/efi/efi.c (device_path_guid): ... here.
49978
49979 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49980 chain.mod.
49981 (kernel_mod_HEADERS): Added efi/disk.h.
49982 (_chain_mod_SOURCES): New variable.
49983 (_chain_mod_CFLAGS): Likewise.
49984 (_chain_mod_LDFLAGS): Likewise.
49985 (chain_mod_SOURCES): Likewise.
49986 (chain_mod_CFLAGS): Likewise.
49987 (chain_mod_LDFLAGS): Likewise.
49988
49989 * DISTLIST: Added include/grub/efi/chainloader.h,
49990 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49991
49992 * include/grub/efi/chainloader.h: New file.
49993 * loader/efi/chainloader.c: Likewise.
49994 * loader/efi/chainloader_normal.c: Likewise.
49995
49996 2006-04-30 Marco Gerards <marco@gnu.org>
49997
49998 * commands/configfile.c (grub_cmd_source): New function.
49999 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50000 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50001
50002 2006-04-30 Marco Gerards <marco@gnu.org>
50003
50004 * normal/execute.c (grub_script_execute_cmd): Change the return
50005 type to `grub_err_t'. Correctly return the error.
50006 (grub_script_execute_cmdline): In case a command line is not a
50007 command or a function, try to interpret it as an assignment.
50008
50009 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50010
50011 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50012 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50013 skip a node whose name is obviously invalid as UTF-16,
50014 i.e. contains a NUL character. Stop the iteration when the last
50015 directory entry is found. Instead of using the return value of
50016 grub_hfsplus_btree_iterate_node, store the value in RET and use
50017 it, because the iterator can be stopped by the last directory
50018 entry.
50019
50020 2006-04-30 Marco Gerards <marco@gnu.org>
50021
50022 * include/grub/env.h (grub_env_export): New prototype. Reported
50023 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50024
50025 2006-04-30 Marco Gerards <marco@gnu.org>
50026
50027 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50028 size of the extents in a catalog file record.
50029
50030 2006-04-29 Marco Gerards <marco@gnu.org>
50031
50032 * commands/configfile.c (grub_cmd_configfile): Execute the
50033 configfile within its own context.
50034
50035 * include/grub/env.h (grub_env_context_open): New prototype.
50036 (grub_env_context_close): Likewise.
50037
50038 * kern/env.c (grub_env): Removed.
50039 (grub_env_sorted): Likewise.
50040 (grub_env_context): New variable.
50041 (grub_env_var_context): Likewise.
50042 (grub_env_find): Search both the active context and the global
50043 context.
50044 (grub_env_context_open): New function.
50045 (grub_env_context_close): Likewise.
50046 (grub_env_insert): Likewise.
50047 (grub_env_remove): Likewise.
50048 (grub_env_export): Likewise.
50049 (grub_env_set): Changed to use helper functions to avoid code
50050 duplication.
50051 (grub_env_iterate): Rewritten so both the current context and the
50052 global context are being used.
50053
50054 * normal/command.c (export_command): New function.
50055 (grub_command_init): Register the `export' function.
50056
50057 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50058
50059 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50060 explicitly to suppress gcc's warnings.
50061 * fs/fat.c (grub_fat_find_dir): Likewise.
50062 (grub_fat_label): Likewise.
50063 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50064 (grub_xfs_mount): Likewise.
50065 (grub_xfs_label): Likewise.
50066 * fs/affs.c (grub_affs_mount): Likewise.
50067 (grub_affs_label): Likewise.
50068 (grub_affs_iterate_dir): Likewise.
50069 * fs/sfs.c (grub_sfs_mount): Likewise.
50070 (grub_sfs_iterate_dir): Likewise.
50071 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50072 * fs/hfs.c (grub_hfs_mount): Likewise.
50073 (grub_hfs_cmp_catkeys): Likewise.
50074 (grub_hfs_find_dir): Likewise.
50075 (grub_hfs_dir): Likewise.
50076 (grub_hfs_label): Likewise.
50077 * fs/jfs.c (grub_jfs_mount): Likewise.
50078 (grub_jfs_opendir): Likewise.
50079 (grub_jfs_getent): Likewise.
50080 (grub_jfs_lookup_symlink): Likewise.
50081 (grub_jfs_label): Likewise.
50082 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50083 (grub_hfsplus_iterate_dir): Likewise.
50084 (grub_hfsplus_btree_iterate_node): Made static.
50085
50086 * util/grub-emu.c (prefix): New variable.
50087 (grub_machine_set_prefix): New function.
50088 (main): Do not set the environment variable "prefix" here. Only
50089 set PREFIX, which is used later by grub_machine_set_prefix.
50090
50091 * include/grub/video.h: Do not include grub/symbol.h.
50092 (grub_video_register): Not exported. This symbol is not defined in
50093 the kernel.
50094 (grub_video_unregister): Likewise.
50095 (grub_video_iterate): Likewise.
50096 (grub_video_setup): Likewise.
50097 (grub_video_restore): Likewise.
50098 (grub_video_get_info): Likewise.
50099 (grub_video_get_blit_format): Likewise.
50100 (grub_video_set_palette): Likewise.
50101 (grub_video_get_palette): Likewise.
50102 (grub_video_set_viewport): Likewise.
50103 (grub_video_get_viewport): Likewise.
50104 (grub_video_map_color): Likewise.
50105 (grub_video_map_rgb): Likewise.
50106 (grub_video_map_rgba): Likewise.
50107 (grub_video_fill_rect): Likewise.
50108 (grub_video_blit_glyph): Likewise.
50109 (grub_video_blit_bitmap): Likewise.
50110 (grub_video_blit_render_target): Likewise.
50111 (grub_video_scroll): Likewise.
50112 (grub_video_swap_buffers): Likewise.
50113 (grub_video_create_render_target): Likewise.
50114 (grub_video_delete_render_target): Likewise.
50115 (grub_video_set_active_render_target): Likewise.
50116
50117 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50118 Undefined.
50119 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50120
50121 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50122 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50123 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50124 instead of $(srcdir)/genkernsyms.sh.
50125
50126 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50127 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50128 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50129 instead of $(srcdir)/genkernsyms.sh.
50130
50131 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50132 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50133 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50134 instead of $(srcdir)/genkernsyms.sh.
50135
50136 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50137 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50138 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50139 instead of $(srcdir)/genkernsyms.sh.
50140
50141 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50142 genkernsyms.sh.
50143
50144 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50145 genkernsyms.sh.
50146 (gensymlist.sh): New target.
50147 (genkernsyms.sh): Likewise.
50148
50149 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50150 genkernsyms.sh.in and gensymlist.sh.in.
50151
50152 * genkernsyms.sh: Removed.
50153 * gensymlist.sh: Likewise.
50154
50155 * genkernsyms.sh.in: New file.
50156 * gensymlist.sh.in: Likewise.
50157
50158 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50159
50160 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50161 clobber "prefix", since we may have already set it manually.
50162
50163 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50164
50165 * kern/misc.c (abort): New alias for grub_abort.
50166
50167 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50168
50169 A new machine-specific function "grub_machine_set_prefix" is
50170 defined. This is called after loading modules, so that a prefix
50171 initialization can use modules. Also, this change adds an
50172 intensive debugging feature for the memory manager via the
50173 configure option "--enable-mm-debug".
50174
50175 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50176 PART.LEN.
50177
50178 * kern/sparc64/ieee1275/init.c (abort): Removed.
50179 (grub_stop): Likewise.
50180 (grub_exit): New function.
50181 (grub_set_prefix): Renamed to ...
50182 (grub_machine_set_prefix): ... this.
50183 (grub_machine_init): Do not call grub_set_prefix.
50184
50185 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50186 (grub_machine_set_prefix): ... this.
50187 (grub_machine_init): Do not call grub_set_prefix.
50188
50189 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50190 (grub_machine_init): Do not set the prefix here.
50191
50192 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50193
50194 * kern/efi/init.c: Include grub/mm.h.
50195 (grub_efi_set_prefix): New function.
50196
50197 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50198 (grub_efi_get_filename): New function.
50199 (grub_print_device_path): Renamed to ...
50200 (grub_efi_print_device_path): ... this.
50201
50202 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50203 [MM_DEBUG] (grub_realloc): Likewise.
50204 [MM_DEBUG] (grub_free): Likewise.
50205 [MM_DEBUG] (grub_memalign): Likewise.
50206 [MM_DEBUG] (grub_mm_debug): New variable.
50207 [MM_DEBUG] (grub_debug_malloc): New function.
50208 [MM_DEBUG] (grub_debug_free): New function.
50209 [MM_DEBUG] (grub_debug_realloc): New function.
50210 [MM_DEBUG] (grub_debug_memalign): New function.
50211
50212 * kern/misc.c (grub_abort): Print a newline to distinguish
50213 the message.
50214
50215 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50216 grub_set_root_dev after loading modules. This is necessary when
50217 setting a prefix depends on modules.
50218
50219 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50220 (grub_efi_print_device_path): ... this.
50221 (grub_efi_get_filename): New prototype.
50222 (grub_efi_set_prefix): Likewise.
50223
50224 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50225 and grub/disk.h.
50226 (grub_efidisk_get_device_handle): New prototype.
50227 (grub_efidisk_get_device_name): Likewise.
50228
50229 * include/grub/mm.h: Include config.h.
50230 (MM_DEBUG): Removed.
50231 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50232 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50233 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50234 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50235 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50236 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50237 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50238 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50239 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50240
50241 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50242
50243 * disk/efi/efidisk.c: Include grub/partition.h.
50244 (iterate_child_devices): New function.
50245 (add_device): First, compare only last device path nodes, so that
50246 devices are sorted by the types.
50247 (grub_efidisk_get_device_handle): New function.
50248 (grub_efidisk_get_device_name): Likewise.
50249
50250 * configure.ac (--enable-mm-debug): New option to enable the
50251 memory manager debugging feature. This makes the binary much
50252 bigger, so is disabled by default.
50253
50254 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50255
50256 Use grub_abort instead of grub_stop, and grub_exit must be
50257 define in each architecture now. Also, this change adds support
50258 for EFI disks.
50259
50260 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50261 (grub_getkey): New function.
50262 (grub_term_get_current): Likewise.
50263
50264 * util/i386/pc/grub-setup.c: Include grub/term.h.
50265 (grub_getkey): New function.
50266 (grub_term_get_current): Likewise.
50267
50268 * util/misc.c (grub_stop): Renamed to ...
50269 (grub_exit): ... this.
50270
50271 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50272 (grub_exit): ... this.
50273 (grub_machine_init): Use grub_abort instead of abort.
50274 (grub_stop): Removed.
50275
50276 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50277 abort.
50278
50279 * kern/i386/pc/startup.S (grub_exit): New function.
50280 (cold_reboot): New label.
50281
50282 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50283 (grub_efi_init): Call grub_efidisk_init.
50284 (grub_efi_fini): Call grub_efidisk_fini.
50285
50286 * kern/efi/efi.c: Include grub/mm.h.
50287 (grub_efi_console_control_guid): Renamed to ...
50288 (console_control_guid): ... this.
50289 (grub_efi_loaded_image_guid): Renamed to ...
50290 (loaded_image_guid): ... this.
50291 (grub_efi_locate_handle): New function.
50292 (grub_efi_open_protocol): Likewise.
50293 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50294 GRUB_EFI_CONSOLE_CONTROL_GUID.
50295 (grub_efi_exit): Removed.
50296 (grub_stop): Likewise.
50297 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50298 (grub_exit): New function.
50299 (grub_print_device_path): Likewise.
50300
50301 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50302 (grub_enter_rescue_mode): Register "exit".
50303
50304 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50305 (grub_abort): New function.
50306
50307 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50308
50309 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50310
50311 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50312
50313 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50314 (grub_print_device_path): New prototype.
50315 (grub_efi_locate_handle): Likewise.
50316 (grub_efi_open_protocol): Likewise.
50317
50318 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50319 * disk/efi/efidisk.c: Likewise.
50320
50321 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50322
50323 * include/grub/efi/console_control.h
50324 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50325
50326 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50327 last 8 bytes as an array.
50328 (GRUB_EFI_DISK_IO_GUID): New macro.
50329 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50330 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50331 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50332 grub_uint8_t.
50333 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50334 (struct grub_efi_device_path): Rename the member "sub_type" to
50335 "subtype".
50336 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50337 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50338 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50339 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50340 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50341 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50342 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50343 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50344 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50345 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50346 (struct grub_efi_pci_device_path): New structure.
50347 (grub_efi_pci_device_path_t): New type.
50348 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50349 (struct grub_efi_pccard_device_path): New structure.
50350 (grub_efi_pccard_device_path_t): New type.
50351 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50352 (struct grub_efi_memory_mapped_device_path): New structure.
50353 (grub_efi_memory_mapped_device_path_t): New type.
50354 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50355 (struct grub_efi_vendor_device_path): New structure.
50356 (grub_efi_vendor_device_path_t): New type.
50357 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50358 (struct grub_efi_controller_device_path): New structure.
50359 (grub_efi_controller_device_path_t): New type.
50360 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50361 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50362 (struct grub_efi_acpi_device_path): New structure.
50363 (grub_efi_acpi_device_path_t): New type.
50364 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50365 (struct grub_efi_expanded_acpi_device_path): New structure.
50366 (grub_efi_expanded_acpi_device_path_t): New type.
50367 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50368 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50369 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50370 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50371 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50372 (struct grub_efi_atapi_device_path): New structure.
50373 (grub_efi_atapi_device_path_t): New type.
50374 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50375 (struct grub_efi_fibre_channel_device_path): New structure.
50376 (grub_efi_fibre_channel_device_path_t): New type.
50377 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50378 (struct grub_efi_1394_device_path): New structure.
50379 (grub_efi_1394_device_path_t): New type.
50380 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50381 (struct grub_efi_usb_device_path): New structure.
50382 (grub_efi_usb_device_path_t): New type.
50383 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50384 (struct grub_efi_usb_class_device_path): New structure.
50385 (grub_efi_usb_class_device_path_t): New type.
50386 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50387 (struct grub_efi_i2o_device_path): New structure.
50388 (grub_efi_i2o_device_path_t): New type.
50389 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50390 (struct grub_efi_mac_address_device_path): New structure.
50391 (grub_efi_mac_address_device_path_t): New type.
50392 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50393 (struct grub_efi_ipv4_device_path): New structure.
50394 (grub_efi_ipv4_device_path_t): New type.
50395 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50396 (struct grub_efi_ipv6_device_path): New structure.
50397 (grub_efi_ipv6_device_path_t): New type.
50398 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50399 (struct grub_efi_infiniband_device_path): New structure.
50400 (grub_efi_infiniband_device_path_t): New type.
50401 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50402 (struct grub_efi_uart_device_path): New structure.
50403 (grub_efi_uart_device_path_t): New type.
50404 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50405 (struct grub_efi_vendor_messaging_device_path): New structure.
50406 (grub_efi_vendor_messaging_device_path_t): New type.
50407 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50408 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50409 (struct grub_efi_hard_drive_device_path): New structure.
50410 (grub_efi_hard_drive_device_path_t): New type.
50411 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50412 (struct grub_efi_cdrom_device_path): New structure.
50413 (grub_efi_cdrom_device_path_t): New type.
50414 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50415 (struct grub_efi_vendor_media_device_path): New structure.
50416 (grub_efi_vendor_media_device_path_t): New type.
50417 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50418 (struct grub_efi_file_path_device_path): New structure.
50419 (grub_efi_file_path_device_path_t): New type.
50420 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50421 (struct grub_efi_protocol_device_path): New structure.
50422 (grub_efi_protocol_device_path_t): New type.
50423 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50424 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50425 (struct grub_efi_bios_device_path): New structure.
50426 (grub_efi_bios_device_path_t): New type.
50427 (struct grub_efi_disk_io): New structure.
50428 (grub_efi_disk_io_t): New type.
50429 (struct grub_efi_block_io_media): New structure.
50430 (grub_efi_block_io_media_t): New type.
50431 (struct grub_efi_block_io): New structure.
50432 (grub_efi_block_io_t): New type.
50433
50434 * include/grub/misc.h (grub_stop): Removed.
50435 (grub_exit): New prototype.
50436 (grub_abort): Likewise.
50437
50438 * include/grub/disk.h (enum grub_disk_dev_id): Added
50439 GRUB_DISK_DEVICE_EFIDISK_ID.
50440
50441 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50442 disk/efi/efidisk.c.
50443 (kernel_syms.lst): Remove the target if an error occurs.
50444
50445 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50446
50447 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50448 as it was simply too buggy.
50449
50450 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50451
50452 * kern/misc.c (grub_lltoa): New function.
50453 (grub_vsprintf): Added support for the long long suffix,
50454 i.e. "ll".
50455
50456 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50457
50458 * Makefile.in (LDFLAGS): Add variable.
50459 (LD): Remove variable.
50460 * configure.ac: Add -m32 to LDFLAGS.
50461 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50462 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50463 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50464 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50465 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50466 variables.
50467 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50468 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50469 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50470
50471 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50472
50473 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50474 length for unknown glyph.
50475
50476 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50477
50478 Add support for pre-loaded modules into the EFI port.
50479
50480 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50481 completely. Accept one more argument DIR. The caller has changed.
50482
50483 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50484
50485 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50486 (grub_efi_loaded_image_guid): New variable.
50487 (grub_efi_get_loaded_image): New function.
50488 (grub_arch_modules_addr): Likewise.
50489
50490 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50491 prototype.
50492
50493 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50494 (struct grub_efi_loaded_image): New structure.
50495 (grub_efi_loaded_image_t): New type.
50496
50497 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50498
50499 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50500 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50501 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50502
50503 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50504
50505 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50506
50507 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50508
50509 * DISTLIST: Added include/grub/efi/console.h,
50510 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50511 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50512
50513 * include/grub/efi/console.h: New file.
50514 * include/grub/efi/time.h: Likewise.
50515 * include/grub/i386/efi/kernel.h: Likewise.
50516 * kern/efi/init.c: Likewise.
50517 * kern/efi/mm.c: Likewise.
50518 * term/efi/console.c: Likewise.
50519
50520 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50521 (grub_stop): Removed.
50522 (grub_get_rtc): Likewise.
50523 (grub_machine_init): Simply call grub_efi_init.
50524 (grub_machine_fini): Call grub_efi_fini.
50525
50526 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50527 (grub_efi_output_string): Removed.
50528 (grub_efi_stall): New function.
50529 (grub_stop): Likewise.
50530 (grub_get_rtc): Likewise.
50531
50532 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50533 (grub_efi_stall): New prototype.
50534 (grub_efi_allocate_pages): Likewise.
50535 (grub_efi_free_pages): Likewise.
50536 (grub_efi_get_memory_map): Likewise.
50537 (grub_efi_mm_init): Likewise.
50538 (grub_efi_mm_fini): Likewise.
50539 (grub_efi_init): Likewise.
50540 (grub_efi_fini): Likewise.
50541
50542 * include/grub/i386/efi/time.h: Do not include
50543 grub/symbol.h. Include grub/efi/time.h.
50544 (GRUB_TICKS_PER_SECOND): Removed.
50545 (grub_get_rtc): Likewise.
50546
50547 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50548 Added padding. The EFI spec is buggy.
50549 (GRUB_EFI_BLACK): New macro.
50550 (GRUB_EFI_BLUE): Likewise.
50551 (GRUB_EFI_GREEN): Likewise.
50552 (GRUB_EFI_CYAN): Likewise.
50553 (GRUB_EFI_RED): Likewise.
50554 (GRUB_EFI_MAGENTA): Likewise.
50555 (GRUB_EFI_BROWN): Likewise.
50556 (GRUB_EFI_LIGHTGRAY): Likewise.
50557 (GRUB_EFI_BRIGHT): Likewise.
50558 (GRUB_EFI_DARKGRAY): Likewise.
50559 (GRUB_EFI_LIGHTBLUE): Likewise.
50560 (GRUB_EFI_LIGHTGREEN): Likewise.
50561 (GRUB_EFI_LIGHTCYAN): Likewise.
50562 (GRUB_EFI_LIGHTRED): Likewise.
50563 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50564 (GRUB_EFI_YELLOW): Likewise.
50565 (GRUB_EFI_WHITE): Likewise.
50566 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50567 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50568 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50569 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50570 (GRUB_EFI_BACKGROUND_RED): Likewise.
50571 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50572 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50573 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50574 (GRUB_EFI_TEXT_ATTR): Likewise.
50575
50576 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50577 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50578 (kernel_mod_HEADERS): Added efi/time.h.
50579
50580 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50581
50582 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50583 include/grub/efi/api.h, include/grub/efi/console_control.h,
50584 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50585 include/grub/i386/efi/time.h, kern/efi/efi.c,
50586 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50587 and util/i386/efi/grub-mkimage.c.
50588
50589 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50590
50591 * genmk.rb (PModule#rule): Do not export symbols if
50592 #{prefix}_EXPORTS is set to "no".
50593
50594 * conf/i386-efi.mk: New file.
50595 * conf/i386-efi.rmk: Likewise.
50596 * include/grub/efi/api.h: Likewise.
50597 * include/grub/efi/console_control.h: Likewise.
50598 * include/grub/efi/efi.h: Likewise.
50599 * include/grub/efi/pe32.h: Likewise.
50600 * include/grub/i386/efi/time.h: Likewise.
50601 * kern/efi/efi.c: Likewise.
50602 * kern/i386/efi/init.c: Likewise.
50603 * kern/i386/efi/startup.S: Likewise.
50604 * util/i386/efi/grub-mkimage.c: Likewise.
50605
50606 2006-04-17 Marco Gerards <marco@gnu.org>
50607
50608 * include/grub/script.h: Include <grub/parser.h> and
50609 "grub_script.tab.h".
50610 (struct grub_lexer_param): New struct.
50611 (struct grub_parser_param): Likewise.
50612 (grub_script_create_arglist): Pass the state in an argument.
50613 (grub_script_add_arglist): Likewise.
50614 (grub_script_create_cmdline): Likewise.
50615 (grub_script_create_cmdblock): Likewise.
50616 (grub_script_create_cmdif): Likewise.
50617 (grub_script_create_cmdmenu): Likewise.
50618 (grub_script_add_cmd): Likewise.
50619 (grub_script_arg_add): Likewise.
50620 (grub_script_lexer_ref): Likewise.
50621 (grub_script_lexer_deref): Likewise.
50622 (grub_script_lexer_record_start): Likewise.
50623 (grub_script_lexer_record_stop): Likewise.
50624 (grub_script_mem_record): Likewise.
50625 (grub_script_mem_record_stop): Likewise.
50626 (grub_script_malloc): Likewise.
50627 (grub_script_yylex): Likewise.
50628 (grub_script_yyparse): Likewise.
50629 (grub_script_yyerror): Likewise.
50630 (grub_script_yylex): Likewise.
50631 (grub_script_lexer_init): Return the state.
50632
50633 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50634 (grub_script_lexer_done): Likewise.
50635 (grub_script_lexer_getline): Likewise.
50636 (grub_script_lexer_refs): Likewise.
50637 (script): Likewise.
50638 (newscript): Likewise.
50639 (record): Likewise.
50640 (recording): Likewise.
50641 (recordpos): Likewise.
50642 (recordlen): Likewise.
50643 (grub_script_lexer_init): Return the state instead of setting
50644 global variables.
50645 (grub_script_lexer_ref): Use the newly added argument for state
50646 instead of globals.
50647 (grub_script_lexer_deref): Likewise.
50648 (grub_script_lexer_record_start): Likewise.
50649 (grub_script_lexer_record_stop): Likewise.
50650 (recordchar): Likewise.
50651 (nextchar): Likewise.
50652 (grub_script_yylex2): Likewise.
50653 (grub_script_yylex): Likewise.
50654 (grub_script_yyerror): Likewise.
50655
50656 * normal/parser.y (func_mem): Removed variable.
50657 (menu_entry): Likewise.
50658 (err): Likewise.
50659 (%lex-param): New parser option.
50660 (%parse-param): Likewise.
50661 (script): Always return the AST.
50662 (argument): Pass the state around.
50663 (arguments): Likewise.
50664 (grubcmd): Likewise.
50665 (commands): Likewise.
50666 (function): Likewise.
50667 (menuentry): Likewise.
50668 (if_statement): Likewise.
50669 (if): Likewise.
50670
50671 * normal/script.c (grub_script_memused): Removed variable.
50672 (grub_script_parsed): Likewise.
50673 (grub_script_malloc): Added a state argument. Use that instead of
50674 global variables.
50675 (grub_script_mem_record): Likewise.
50676 (grub_script_mem_record_stop): Likewise.
50677 (grub_script_arg_add): Likewise.
50678 (grub_script_add_arglist): Likewise.
50679 (grub_script_create_cmdline): Likewise.
50680 (grub_script_create_cmdif): Likewise.
50681 (grub_script_create_cmdmenu): Likewise.
50682 (grub_script_add_cmd): Likewise.
50683 (grub_script_parse): Setup the state before calling the parser.
50684
50685 2006-04-16 Marco Gerards <marco@gnu.org>
50686
50687 * normal/command.c (grub_command_init): Remove the title command.
50688
50689 * normal/lexer.c (grub_script_yylex): Renamed from this...
50690 (grub_script_yylex2): ... to this.
50691 (grub_script_yylex): New function. Temporary
50692 introduced to filter some tokens.
50693 (grub_script_yyerror): Print a newline.
50694
50695 * normal/main.c (read_config_file): Output information about the
50696 lines that contain errors. Wait for a key after all lines have
50697 been processed. Don't return an empty menu.
50698
50699 * normal/parser.y (func_mem): Don't initialize.
50700 (menu_entry): Likewise.
50701 (err): New variable.
50702 (script): Don't return anything when an error was encountered.
50703 (ws, returns): Removed rules.
50704 (argument): Disabled concatenated variable support.
50705 (arguments): Remove explicit separators.
50706 (grubcmd): Likewise.
50707 (function): Likewise.
50708 (menuentry): Likewise.
50709 (if): Likewise.
50710 (commands): Likewise. Add error handling.
50711
50712 * normal/script.c (grub_script_create_cmdline): If
50713 `grub_script_parsed' is 0, assume the parser encountered an error.
50714
50715 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50716
50717 * configure.ac: Add support for EFI. Fix the typo
50718 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50719
50720 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50721
50722 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50723 foreign multibyte characters should be shown correctly.
50724
50725 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50726
50727 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50728 calculation.
50729 (read_config_file): Made it to close file before returning.
50730
50731 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50732
50733 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50734 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50735 video/i386/pc/vbefill.c.
50736
50737 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50738 video/i386/pc/vbefill.c.
50739
50740 * include/grub/video.h (grub_video_blit_format): New enum.
50741 (grub_video_mode_info): Added new member blit_format.
50742 (grub_video_get_blit_format): New function prototype.
50743
50744 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50745 function prototype.
50746 (grub_video_vbe_map_rgb): Likewise.
50747 (grub_video_vbe_unmap_color): Likewise.
50748
50749 * include/grub/i386/pc/vbeblit.h: New file.
50750
50751 * include/grub/i386/pc/vbefill.h: New file.
50752
50753 * video/video.c (grub_video_get_blit_format): New function.
50754 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50755 (grub_video_vbe_map_rgb): Likewise.
50756 (grub_video_vbe_unmap_color): Likewise.
50757
50758 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50759 optimized fills.
50760 (grub_video_vbe_blit_render_target): Changed to use more optimized
50761 blits.
50762 (grub_video_vbe_setup): Added detection for optimized settings.
50763 (grub_video_vbe_create_render_target): Likewise.
50764
50765 * video/i386/pc/vbeblit.c: New file.
50766
50767 * video/i386/pc/vbefill.c: New file.
50768
50769 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50770
50771 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50772 here...
50773
50774 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50775 parsing to support both hex and dec ranges. If filename was missing
50776 show usage information.
50777
50778 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50779
50780 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50781 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50782
50783 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50784 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50785 (video_mod_SOURCES): Added.
50786 (video_mod_CFLAGS): Likewise.
50787 (video_mod_LDFLAGS): Likewise.
50788 (gfxterm_mod_SOURCES): Likewise.
50789 (gfxterm_mod_CFLAGS): Likewise.
50790 (gfxterm_mod_LDFLAGS): Likewise.
50791 (videotest_mod_SOURCES): Likewise.
50792 (videotest_mod_CFLAGS): Likewise.
50793 (videotest_mod_LDFLAGS): Likewise.
50794 (vesafb_mod_SOURCES): Removed.
50795 (vesafb_mod_CFLAGS): Likewise.
50796 (vesafb_mod_LDFLAGS): Likewise.
50797 (vga_mod_SOURCES): Likewise.
50798 (vga_mod_CFLAGS): Likewise.
50799 (vga_mod_LDFLAGS): Likewise.
50800
50801 * commands/videotest.c: New file.
50802
50803 * font/manager.c (fill_with_default_glyph): Modified to use
50804 grub_font_glyph.
50805 (grub_font_get_glyph): Likewise.
50806 (fontmanager): Renamed from this...
50807 (font_manager): ... to this.
50808
50809 * include/grub/font.h (grub_font_glyph): Added new structure.
50810 (grub_font_get_glyph): Modified to use grub_font_glyph.
50811
50812 * include/grub/misc.h (grub_abs): Added as inline function.
50813
50814 * include/grub/video.h: New file.
50815
50816 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50817 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50818 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50819 (grub_vbe_get_controller_info): Renamed from this...
50820 (grub_vbe_bios_get_controller_info): ... to this.
50821 (grub_vbe_get_mode_info): Renamed from this...
50822 (grub_vbe_bios_get_mode_info): ... to this.
50823 (grub_vbe_set_mode): Renamed from this...
50824 (grub_vbe_bios_set_mode): ... to this.
50825 (grub_vbe_get_mode): Renamed from this...
50826 (grub_vbe_bios_get_mode): ... to this.
50827 (grub_vbe_set_memory_window): Renamed from this...
50828 (grub_vbe_bios_set_memory_window): ... to this.
50829 (grub_vbe_get_memory_window): Renamed from this...
50830 (grub_vbe_bios_get_memory_window): ... to this.
50831 (grub_vbe_set_scanline_length): Renamed from this...
50832 (grub_vbe_set_scanline_length): ... to this.
50833 (grub_vbe_get_scanline_length): Renamed from this...
50834 (grub_vbe_bios_get_scanline_length): ... to this.
50835 (grub_vbe_set_display_start): Renamed from this...
50836 (grub_vbe_bios_set_display_start): ... to this.
50837 (grub_vbe_get_display_start): Renamed from this...
50838 (grub_vbe_bios_get_display_start): ... to this.
50839 (grub_vbe_set_palette_data): Renamed from this...
50840 (grub_vbe_bios_set_palette_data): ... to this.
50841 (grub_vbe_set_pixel_rgb): Removed.
50842 (grub_vbe_set_pixel_index): Likewise.
50843
50844 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50845 from this...
50846 (grub_vbe_bios_get_controller_info): ... to this.
50847 (grub_vbe_get_mode_info): Renamed from this...
50848 (grub_vbe_bios_get_mode_info): ... to this.
50849 (grub_vbe_set_mode): Renamed from this...
50850 (grub_vbe_bios_set_mode): ... to this.
50851 (grub_vbe_get_mode): Renamed from this...
50852 (grub_vbe_bios_get_mode): ... to this.
50853 (grub_vbe_set_memory_window): Renamed from this...
50854 (grub_vbe_bios_set_memory_window): ... to this.
50855 (grub_vbe_get_memory_window): Renamed from this...
50856 (grub_vbe_bios_get_memory_window): ... to this.
50857 (grub_vbe_set_scanline_length): Renamed from this...
50858 (grub_vbe_set_scanline_length): ... to this.
50859 (grub_vbe_get_scanline_length): Renamed from this...
50860 (grub_vbe_bios_get_scanline_length): ... to this.
50861 (grub_vbe_set_display_start): Renamed from this...
50862 (grub_vbe_bios_set_display_start): ... to this.
50863 (grub_vbe_get_display_start): Renamed from this...
50864 (grub_vbe_bios_get_display_start): ... to this.
50865 (grub_vbe_set_palette_data): Renamed from this...
50866 (grub_vbe_bios_set_palette_data): ... to this.
50867 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50868 getting corrupted after calling it. Added more pushes and pops.
50869 (grub_vbe_bios_set_mode): Likewise.
50870 (grub_vbe_bios_get_mode): Likewise.
50871 (grub_vbe_bios_get_memory_window): Likewise.
50872 (grub_vbe_bios_set_scanline_length): Likewise.
50873 (grub_vbe_bios_get_scanline_length): Likewise.
50874 (grub_vbe_bios_get_display_start): Likewise.
50875 (grub_vbe_bios_set_palette_data): Likewise.
50876
50877 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50878 (cl_insert): Likewise.
50879 (cl_delete): Likewise.
50880
50881 * term/gfxterm.c: New file.
50882
50883 * term/i386/pc/vesafb.c: Removed file.
50884
50885 * video/video.c: New file.
50886
50887 * video/i386/pc/vbe.c (real2pm): Added new function.
50888 (grub_video_vbe_draw_pixel): Likewise.
50889 (grub_video_vbe_get_video_ptr): Likewise.
50890 (grub_video_vbe_get_pixel): Likewise
50891 (grub_video_vbe_init): Likewise.
50892 (grub_video_vbe_fini): Likewise.
50893 (grub_video_vbe_setup): Likewise.
50894 (grub_video_vbe_get_info): Likewise.
50895 (grub_video_vbe_set_palette): Likewise.
50896 (grub_video_vbe_get_palette): Likewise.
50897 (grub_video_vbe_set_viewport): Likewise.
50898 (grub_video_vbe_get_viewport): Likewise.
50899 (grub_video_vbe_map_color): Likewise.
50900 (grub_video_vbe_map_rgb): Likewise.
50901 (grub_video_vbe_map_rgba): Likewise.
50902 (grub_video_vbe_unmap_color): Likewise.
50903 (grub_video_vbe_fill_rect): Likewise.
50904 (grub_video_vbe_blit_glyph): Likewise.
50905 (grub_video_vbe_blit_bitmap): Likewise.
50906 (grub_video_vbe_blit_render_target): Likewise.
50907 (grub_video_vbe_scroll): Likewise.
50908 (grub_video_vbe_swap_buffers): Likewise.
50909 (grub_video_vbe_create_render_target): Likewise.
50910 (grub_video_vbe_delete_render_target): Likewise.
50911 (grub_video_vbe_set_active_render_target): Likewise.
50912 (grub_vbe_set_pixel_rgb): Remove function.
50913 (grub_vbe_set_pixel_index): Likewise.
50914 (index_color_mode): Remove static variable.
50915 (active_mode): Likewise.
50916 (framebuffer): Likewise.
50917 (bytes_per_scan_line): Likewise.
50918 (grub_video_vbe_adapter): Added new static variable.
50919 (framebuffer): Likewise.
50920 (render_target): Likewise.
50921 (initial_mode): Likewise.
50922 (mode_in_use): Likewise.
50923 (mode_list): Likewise.
50924
50925 2006-03-10 Marco Gerards <marco@gnu.org>
50926
50927 * configure.ac (AC_INIT): Bumped to 1.93.
50928
50929 * DISTLIST: Added `include/grub/hfs.h'.
50930
50931 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50932
50933 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50934 18H, which might help the BIOS falling back to next boot media.
50935
50936 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50937
50938 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50939 Poe Chen <poe.poechen@gmail.com>.
50940
50941 2006-01-17 Marco Gerards <marco@gnu.org>
50942
50943 * include/grub/normal.h: Include <grub/script.h>.
50944 (grub_command_list): Removed struct.
50945 (grub_command_list_t): Removed type.
50946 (grub_menu_entry): Remove members `num' and `command_list'. Add
50947 members `commands' and `sourcecode'.
50948 * include/grub/script.h: Add inclusion guards.
50949 (grub_script_cmd_menuentry): New struct.
50950 (grub_script_execute_menuentry): New prototype.
50951 (grub_script_lexer_record_start): Likewise.
50952 (grub_script_lexer_record_stop): Likewise.
50953 * normal/execute.c (grub_script_execute_menuentry): New function.
50954 * normal/lexer.c (record, recording, recordpos, recordlen): New
50955 variables.
50956 (grub_script_lexer_record_start): New function.
50957 (grub_script_lexer_record_stop): Likewise.
50958 (recordchar): Likewise.
50959 (nextchar): Likewise.
50960 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50961 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50962 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50963 (current_menu): New variable.
50964 (free_menu): Mainly rewritten.
50965 (grub_normal_menu_addentry): New function.
50966 (read_config_file): Rewritten.
50967 * normal/menu.c (run_menu_entry): Mainly rewritten.
50968 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50969 the menu entry.
50970 (run): Mainly rewritten.
50971 * normal/parser.y (menu_entry): New variable.
50972 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50973 (menuentry): New rule.
50974 (command): Add `menuentry'.
50975 (if_statement): Allow additional returns before `fi'.
50976 * normal/script.c (grub_script_create_cmdmenu): New function.
50977
50978 2006-01-03 Marco Gerards <marco@gnu.org>
50979
50980 * INSTALL: GNU Bison is required.
50981 * configure.ac: Rewritten the test to detect Bison.
50982 * Makefile.in (YACC): New variable. Reported by Xun Sun
50983 <xun.sun.cn@gmail.com>.
50984
50985 2006-01-03 Marco Gerards <marco@gnu.org>
50986
50987 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50988 the HFS+ filesystem to filesystem blocks.
50989 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50990 GCC warning is silenced.
50991
50992 2006-01-03 Marco Gerards <marco@gnu.org>
50993
50994 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50995 read from disk from big endian to host byte order.
50996
50997 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50998
50999 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51000 documentation.
51001 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51002 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51003 embedded HFS+ filesystem.
51004 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51005 (grub_hfs_sblock): Move from here...
51006 * include/grub/hfs.h: To here... New file.
51007 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51008 documentation.
51009 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51010 New macros.
51011 (grub_hfsplus_volheader): Change type of member `magic' to
51012 `grub_uint16_t'.
51013 (grub_hfsplus_data): Add new member `embedded_offset'.
51014 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51015 returned block.
51016 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51017 Calculate the offset.
51018
51019 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51020
51021 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51022 Removed.
51023 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51024
51025 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51026
51027 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51028 ENV->NAME is NULL after allocating ENV->VALUE.
51029
51030 2005-12-25 Marco Gerards <marco@gnu.org>
51031
51032 * kern/env.c (grub_env_set): Rewritten the error handling code.
51033
51034 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51035
51036 * geninit.sh: Made more robust, and more portable.
51037
51038 2005-12-25 Marco Gerards <marco@gnu.org>
51039
51040 Add support for Apple HFS+ filesystems.
51041
51042 * fs/hfsplus.c: New file.
51043
51044 * DISTLIST: Added `fs/hfsplus.c'.
51045
51046 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51047 (hfsplus_mod_SOURCES): New variable.
51048 (hfsplus_mod_CFLAGS): Likewise.
51049 (hfsplus_mod_LDFLAGS): Likewise.
51050 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51051 (grub_setup_SOURCES): Likewise.
51052 (grub_mkdevicemap_SOURCES): Likewise.
51053 (grub_emu_SOURCES): Likewise.
51054 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51055
51056 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51057
51058 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51059
51060 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51061
51062 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51063 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51064 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51065 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51066 normal/lexer.c, normal/parser.y, normal/script.c, and
51067 partmap/gpt.c.
51068 Removed kern/sparc64/cache.c.
51069
51070 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51071 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51072 grub_emu_init.c.
51073
51074 * configure.ac (AC_INIT): Bumped to 1.92.
51075
51076 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51077
51078 * kern/err.c (grub_error_push): Added new function to support error
51079 stacks.
51080 (grub_error_pop): Likewise.
51081 (grub_error_stack_items): New local variable to support error stacks.
51082 (grub_error_stack_pos): Likewise.
51083 (grub_error_stack_assert): Likewise.
51084 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51085 stack depth.
51086 (grub_print_error): Added support to print errors from error stack.
51087
51088 * include/grub/err.h (grub_error_push): Added function prototype.
51089 (grub_error_pop): Likewise.
51090
51091 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51092
51093 * configure.ac: Accept `powerpc64' as host_cpu.
51094 (amd64): Rename to `biarch32'.
51095
51096 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51097 non-cacheline-aligned addresses.
51098
51099 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51100 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51101 if `size' is non-zero.
51102
51103 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51104
51105 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51106 and `cd' to make sure the filename is not prefixed with a
51107 directory name.
51108 (pkgdata_MODULES): Add `gpt.mod'.
51109 (gpt_mod_SOURCES): New variable.
51110 (gpt_mod_CFLAGS): Likewise.
51111 (gpt_mod_LDFLAGS): Likewise.
51112
51113 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51114
51115 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51116 New macro.
51117
51118 * partmap/gpt.c: New file.
51119
51120 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51121 GPT partition map is detected.
51122
51123 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51124
51125 * commands/i386/pc/play.c: New file.
51126 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51127 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51128 macros.
51129
51130 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51131
51132 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51133 ((unused))' to silence gcc warning.
51134
51135 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51136
51137 * configure.ac: Correct `AC_PROG_YACC' test.
51138
51139 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51140
51141 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51142 check before installing files.
51143
51144 2005-11-22 Mike Small <smallm@panix.com>
51145
51146 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51147 number regex so multidigit numbers are recognized correctly.
51148
51149 2005-11-22 Mike Small <smallm@panix.com>
51150
51151 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51152 debugging message before attempting to claim memory.
51153 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51154 multiple addresses in case of failure.
51155
51156 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51157
51158 * term/tparm.c (get_space): Remove empty `if' statement.
51159
51160 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51161
51162 * kern/parser.c (check_varstate): Rename `state' to 's'.
51163
51164 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51165
51166 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51167 variable definitions to the beginning of each function. Sort stack
51168 variables by size.
51169 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51170 `buf' argument to `char *'.
51171
51172 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51173
51174 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51175 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51176 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51177 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51178 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51179 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51180 configfile.mod, search.mod, gzio.mod and test.mod.
51181 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51182 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51183 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51184 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51185 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51186 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51187 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51188 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51189 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51190 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51191 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51192 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51193 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51194 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51195 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51196 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51197 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51198 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51199 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51200 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51201 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51202 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51203 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51204
51205 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51206 `grep --include'.
51207 (pkgdata_MODULES): Add test.mod.
51208
51209 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51210
51211 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51212 appending to variables with "+=".
51213 (PModule): Use full pathname to generate *.lst filenames.
51214
51215 * Makefile.in: Fixed list rules moved from genmk.rb.
51216 (.DELETE_ON_ERROR): New special target.
51217 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51218
51219 * conf/i386-pc.rmk: Include conf/common.mk.
51220 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51221 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51222 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51223 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51224 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51225 configfile.mod, search.mod, gzio.mod and test.mod.
51226 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51227 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51228 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51229 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51230 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51231 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51232 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51233 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51234 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51235 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51236 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51237 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51238 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51239 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51240 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51241 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51242 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51243 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51244 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51245 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51246 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51247 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51248 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51249 here...
51250 * conf/common.rmk: ... to here. New file.
51251
51252 * conf/common.mk: New file.
51253
51254 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51255
51256 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51257 (grub_script.tab.c): ... here.
51258
51259 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51260 (grub_script.tab.c): ... here.
51261
51262 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51263 (grub_script.tab.c): ... here.
51264
51265 * normal/command.c (grub_command_find): Fixed a memory leak of
51266 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51267
51268 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51269
51270 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51271 "@" which marks the start of a comment on ARM.
51272 (VARIABLE): Likewise.
51273
51274 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51275
51276 Add support for Linux/ADFS partition tables.
51277
51278 * partmap/acorn.c: New file.
51279
51280 * include/grub/acorn_filecore.h: Likewise.
51281
51282 * DISTLIST: Added `partmap/acorn.c' and
51283 `include/grub/acorn_filecore.h'.
51284
51285 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51286 `partmap/acorn.c'.
51287 (pkgdata_MODULES): Add `acorn.mod'.
51288 (acorn_mod_SOURCES): New variable.
51289 (acorn_mod_CFLAGS): Likewise.
51290
51291 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51292 `partmap/acorn.c'.
51293 (pkgdata_MODULES): Add `acorn.mod'.
51294 (acorn_mod_SOURCES): New variable.
51295 (acorn_mod_CFLAGS): Likewise.
51296
51297 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51298 (pkgdata_MODULES): Add `acorn.mod'.
51299 (acorn_mod_SOURCES): New variable.
51300 (acorn_mod_CFLAGS): Likewise.
51301 (acorn_mod_LDFLAGS): Likewise.
51302
51303 * include/types.h (grub_disk_addr_t): New typedef.
51304
51305 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51306
51307 * geninit.sh: New file.
51308
51309 * geninitheader.sh: Likewise.
51310
51311 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51312 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51313 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51314 * commands/configfile.c (grub_configfile_init)
51315 (grub_configfile_fini): Likewise.
51316 * commands/default.c (grub_default_init, grub_default_fini):
51317 Likewise.
51318 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51319 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51320 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51321 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51322 Likewise.
51323 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51324 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51325 Likewise.
51326 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51327 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51328 Likewise.
51329 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51330 Likewise.
51331 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51332 Likewise.
51333 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51334 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51335 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51336 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51337 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51338 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51339 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51340 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51341 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51342 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51343 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51344 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51345 * partmap/amiga.c (grub_amiga_partition_map_init)
51346 (grub_amiga_partition_map_fini): Likewise.
51347 * partmap/apple.c (grub_apple_partition_map_init)
51348 (grub_apple_partition_map_fini): Likewise.
51349 * partmap/pc.c (grub_pc_partition_map_init)
51350 (grub_pc_partition_map_fini): Likewise.
51351 * partmap/sun.c (grub_sun_partition_map_init,
51352 grub_sun_partition_map_fini): Likewise.
51353 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51354 Likewise.
51355
51356 * util/grub-emu.c: Include <grub_modules_init.h>.
51357 (main): Don't initialize and de-initialize any modules directly,
51358 use `grub_init_all' and `grub_fini_all' instead.
51359
51360 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51361 `grub_vesafb_mod_init'.
51362 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51363 all users.
51364 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51365 `grub_vga_mod_init'. Updated all users.
51366 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51367
51368 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51369 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51370 rules.
51371
51372 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51373 Generate a function to initialize the module in utilities.
51374 Updated all callers.
51375 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51376 initialize the module in utilities. Updated all callers.
51377
51378 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51379
51380 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51381 escape sequence and a literal ^L to clear the screen.
51382
51383 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51384 when returning from Open Firmware.
51385
51386 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51387
51388 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51389 (grub_ofconsole_height): Likewise.
51390 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51391 manually insert a '\n'.
51392 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51393 `grub_ofconsole_height'. Return early if these are already set.
51394
51395 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51396
51397 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51398 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51399 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51400 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51401 and `normal/script.c'.
51402 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51403 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51404 (test_mod_SOURCES): New variable.
51405 (test_mod_CFLAGS): Likewise.
51406 (test_mod_LDFLAGS): Likewise.
51407 (pkgdata_MODULES): Add `test.mod'.
51408 (grub_script.tab.c): New rule.
51409 (grub_script.tab.h): Likewise.
51410
51411 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51412
51413 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51414 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51415 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51416 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51417 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51418 (test_mod_SOURCES): New variable.
51419 (test_mod_CFLAGS): Likewise.
51420 (pkgdata_MODULES): Add `test.mod'.
51421 (grub_script.tab.c): New rule.
51422 (grub_script.tab.h): Likewise.
51423
51424 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51425
51426 Add initial scripting support.
51427
51428 * commands/test.c: New file.
51429 * include/grub/script.h: Likewise.
51430 * normal/execute.c: Likewise.
51431 * normal/function.c: Likewise.
51432 * normal/lexer.c: Likewise.
51433 * normal/parser.y: Likewise.
51434 * normal/script.c: Likewise.
51435
51436 * configure.ac: Add `AC_PROG_YACC' test.
51437
51438 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51439 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51440 `normal/function.c' and `normal/script.c'.
51441 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51442 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51443 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51444 variables.
51445 (pkgdata_MODULES): Add `test.mod'.
51446 (grub_script.tab.c): New rule.
51447 (grub_script.tab.h): Likewise.
51448
51449 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51450
51451 * include/grub/normal.h (grub_test_init): New prototype.
51452 (grub_test_fini): Likewise.
51453
51454 * normal/command.c: Include <grub/script.h>.
51455 (grub_command_execute): Rewritten.
51456
51457 * util/grub-emu.c (main): Call `grub_test_init' and
51458 `grub_test_fini'.
51459
51460 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51461
51462 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51463 to 0.
51464 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51465 there are no pending characters.
51466
51467 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51468
51469 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51470 `grub_strndup' to drop device arguments. Replace unnecessary
51471 `grub_strndup' with `grub_strdup'.
51472
51473 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51474
51475 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51476 `debug' environment variable has been set.
51477
51478 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51479
51480 * Makefile.in (install-local): Use $(DATA).
51481 (uninstall): Likewise.
51482 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51483 (sbin_UTILITIES): ... to here.
51484 (sbin_SCRIPTS): New variable.
51485 (grub_install_SOURCES): New variable.
51486 * util/powerpc/ieee1275/grub-install.in: New file.
51487 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51488 variable.
51489 (add_segments): Call `grub_util_get_path'.
51490
51491 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51492
51493 From Timothy Baldwin:
51494 * commands/ls.c (grub_ls_list_files): Close FILE with
51495 grub_file_close.
51496 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51497
51498 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51499
51500 * include/grub/parser.h: New file.
51501
51502 * kern/parser.c: Likewise.
51503
51504 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51505 (grub_setup_SOURCES): Likewise.
51506 (grub_probefs_SOURCES): Likewise.
51507 (grub_emu_SOURCES): Likewise.
51508 (kernel_img_HEADERS): Add `parser.h'.
51509
51510 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51511 (grub_emu_SOURCES): Add `kern/parser.c'.
51512 (grubof_SOURCES): Likewise.
51513
51514 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51515 (grubof_SOURCES): Add `kern/parser.c'.
51516
51517 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51518
51519 * kern/misc.c (grub_split_cmdline): Removed function.
51520
51521 * kern/rescue.c: Include <grub/parser.h>.
51522 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51523 of `grub_split_cmdline'.
51524
51525 * normal/command.c: Include <grub/parser.h>.
51526 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51527 of `grub_split_cmdline'.
51528
51529 * normal/completion.c: Include <grub/parser.h>.
51530 (cmdline_state): New variable.
51531 (iterate_dir): End the filename with a quote depending on the
51532 command line state.
51533 (get_state): new function.
51534 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51535 split the arguments and determine the current argument. When the
51536 argument string is not quoted, escape all spaces.
51537
51538 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51539
51540 * normal/sparc64/setjmp.S: New file.
51541
51542 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51543
51544 * include/grub/sparc64/libgcc.h: New file.
51545 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51546 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51547 normal/sparc64/setjmp.c.
51548
51549 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51550
51551 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51552 * kern/sparc64/cache.S: New file.
51553 * kern/sparc64/cache.c: Removed.
51554 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51555 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51556 -mtune=ultrasparc.
51557 (COMMON_LDFLAGS): Add -melf64_sparc.
51558 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51559 (grubof_SOURCES): Use cache.S instead of cache.c.
51560 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51561 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51562 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51563 commented though.
51564 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51565 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51566 (linux_mod_CFLAGS): Commented out.
51567 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51568 out because module isn't built.
51569 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51570 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51571 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51572 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51573 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51574 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51575 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51576 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51577 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51578 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51579 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51580 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51581 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51582 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51583
51584 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51585
51586 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51587 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51588 longer, because HFS should not be used on PC.
51589
51590 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51591
51592 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51593 consistently within the loop.
51594
51595 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51596
51597 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51598 directory can not be read.
51599
51600 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51601
51602 * configure.ac (AC_INIT): Increase the version number to 1.91.
51603
51604 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51605 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51606 term/i386/pc/serial.c.
51607
51608 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51609
51610 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51611 file size must be permitted.
51612
51613 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51614 between %ah and %al.
51615
51616 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51617
51618 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51619 grub_uint64_t.
51620 Call the hook with a NUL-terminated filename.
51621 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51622 grub_cpu_to_be32.
51623
51624 * kern/term.c (cursor_state): New variable.
51625 (grub_term_set_current): Reset the cursor state on a new
51626 terminal.
51627 (grub_setcursor): Rewritten to use CURSOR_STATE.
51628 (grub_getcursor): New function.
51629
51630 * include/grub/term.h (grub_getcursor): New prototype.
51631
51632 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51633 integers on ARM. Reported by Timothy Baldwin
51634 <T.E.Baldwin99@members.leeds.ac.uk>.
51635
51636 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51637
51638 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51639 allocated.
51640 (grub_sfs_dir): Likewise.
51641
51642 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51643
51644 Add support for the SFS filesystem.
51645
51646 * fs/sfs.c: New file.
51647
51648 * DISTLIST: Added `fs/sfs.c'.
51649
51650 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51651 (grub_probefs_SOURCES): Likewise.
51652 (grub_emu_SOURCES): Likewise.
51653 (pkgdata_MODULES): Add `sfs.mod'.
51654 (sfs_mod_SOURCES): New variable.
51655 (sfs_mod_CFLAGS): Likewise.
51656 (sfs_mod_LDFLAGS): Likewise.
51657
51658 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51659 (pkgdata_MODULES): Add `sfs.mod'.
51660 (sfs_mod_SOURCES): New variable.
51661 (sfs_mod_CFLAGS): Likewise.
51662
51663 * util/grub-emu.c (main): Call `grub_sfs_init' and
51664 `grub_sfs_fini'.
51665
51666 * include/grub/fs.h (grub_sfs_init): New prototype.
51667 (grub_sfs_fini): Likewise.
51668
51669 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51670
51671 Add support for the AFFS filesystem.
51672
51673 * fs/affs.c: New file.
51674
51675 * DISTLIST: Added `fs/affs.c'.
51676
51677 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51678 (grub_probefs_SOURCES): Likewise.
51679 (grub_emu_SOURCES): Likewise.
51680 (pkgdata_MODULES): Add `affs.mod'.
51681 (affs_mod_SOURCES): New variable.
51682 (affs_mod_CFLAGS): Likewise.
51683 (affs_mod_LDFLAGS): Likewise.
51684
51685 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51686 (pkgdata_MODULES): Add `affs.mod'.
51687 (affs_mod_SOURCES): New variable.
51688 (affs_mod_CFLAGS): Likewise.
51689
51690 * util/grub-emu.c (main): Call `grub_affs_init' and
51691 `grub_affs_fini'.
51692
51693 * include/grub/fs.h (grub_affs_init): New prototype.
51694 (grub_affs_fini): Likewise.
51695
51696 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51697
51698 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51699
51700 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51701
51702 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51703 `-m32' to CFLAGS.
51704
51705 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51706 linking.
51707
51708 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51709 (COMMON_LDFLAGS): New variable.
51710 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51711 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51712 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51713 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51714 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51715 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51716 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51717 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51718 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51719 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51720 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51721 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51722 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51723 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51724 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51725 variables.
51726 (normal_mod_ASFLAGS): Add `-m32'.
51727
51728 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51729 (grub_host_size_t, grub_host_ssize_t): New types.
51730 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51731 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51732 `GRUB_HOST_SIZEOF_VOID_P'.
51733
51734 * include/grub/kernel.h (struct grub_module_header): Type of
51735 member offset changed to `grub_host_off_t'. Type of member size
51736 changed to `grub_host_size_t'.
51737 (struct grub_module_info): Type of member offset changed to
51738 `grub_host_off_t'. Type of member size changed to
51739 `grub_host_size_t'.
51740
51741 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51742
51743 Make GRUB's kernel compliant to Multiboot Specification.
51744
51745 * kern/i386/pc/startup.S (multiboot_header): New label.
51746 (multiboot_entry): Likewise.
51747 (multiboot_trampoline): Likewise.
51748
51749 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51750 Increased to 0x4A0.
51751
51752 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51753 put parentheses after a question mark.
51754 [!GRUB_UTIL] (my_mod): New variable.
51755
51756 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51757
51758 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51759
51760 Adds support for the XFS filesystem. Btrees are not supported
51761 yet.
51762
51763 * fs/xfs.c: New file.
51764
51765 * DISTLIST: Added `fs/xfs.c'.
51766
51767 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51768 (grub_probefs_SOURCES): Likewise.
51769 (grub_emu_SOURCES): Likewise.
51770 (pkgdata_MODULES): Add `xfs.mod'.
51771 (xfs_mod_SOURCES): New variable.
51772 (xfs_mod_CFLAGS): Likewise.
51773
51774 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51775 (pkgdata_MODULES): Add `xfs.mod'.
51776 (xfs_mod_SOURCES): New variable.
51777 (xfs_mod_CFLAGS): Likewise.
51778
51779 * util/grub-emu.c (main): Call `grub_xfs_init' and
51780 `grub_xfs_fini'.
51781
51782 * include/grub/fs.h (grub_xfs_init): New prototype.
51783 (grub_xfs_fini): Likewise.
51784
51785
51786 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51787
51788 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51789 color modes, allow greater than 16 colors to be configured as
51790 a default palette.
51791
51792 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51793
51794 * normal/completion.c (complete_arguments): Add the qualifier
51795 const into OPTIONS.
51796
51797 From Omniflux <omniflux+lists@omniflux.com>:
51798 * include/grub/terminfo.h: New file.
51799 * include/grub/tparm.h: Likewise.
51800 * include/grub/i386/pc/serial.h: Likewise.
51801 * term/terminfo.c: Likewise.
51802 * term/tparm.c: Likewise.
51803 * term/i386/pc/serial.c: Likewise.
51804 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51805 serial.mod.
51806 (terminfo_mod_SOURCES): New variable.
51807 (terminfo_mod_CFLAGS): Likewise.
51808 (serial_mod_SOURCES): Likewise.
51809 (serial_mod_CFLAGS): Likewise.
51810
51811 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51812
51813 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51814 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51815 and kern/powerpc/ieee1275/cmain.c, respectively.
51816
51817 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51818 * kern/powerpc/ieee1275/crt0.S: ... here.
51819
51820 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51821 * kern/powerpc/ieee1275/cmain.c: ... here.
51822
51823 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51824 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51825 instead of boot/powerpc/ieee1275/crt0.S and
51826 boot/powerpc/ieee1275/cmain.c, respectively.
51827
51828 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51829 sectors. It was not used anyway.
51830
51831 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51832
51833 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51834 `unused parameter' warning.
51835
51836 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51837
51838 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51839 function.
51840 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51841 getcharwidth.
51842
51843 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51844
51845 * include/grub/normal.h (enum grub_completion_type): Added
51846 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51847
51848 * normal/cmdline.c (print_completion): Handle
51849 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51850 * normal/menu_entry.c (store_completion): Likewise.
51851
51852 * normal/completion.c (complete_arguments): New function.
51853 (grub_normal_do_completion): Call `complete_arguments' when the
51854 current words start with a dash.
51855
51856 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51857
51858 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51859 `gzio.mod' instead of `io.mod').
51860
51861 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51862
51863 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51864 (DISTDIRS): Added io and video.
51865 Rewrite the search routine to make an output consistently.
51866
51867 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51868 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51869 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51870 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51871 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51872 util/powerpc/ieee1275/misc.c.
51873
51874 * include/grub/gzio.h: New file.
51875 * io/gzio.c: Likewise.
51876
51877 * kern/file.c (grub_file_close): Call grub_device_close only if
51878 FILE->DEVICE is not NULL.
51879
51880 * include/grub/mm.h [!NULL] (NULL): New macro.
51881
51882 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51883
51884 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51885 (pkgdata_MODULES): Added gzio.mod.
51886 (gzio_mod_SOURCES): New variable.
51887 (gzio_mod_CFLAGS): Likewise.
51888
51889 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51890 (pkgdata_MODULES): Added gzio.mod.
51891 (gzio_mod_SOURCES): New variable.
51892 (gzio_mod_CFLAGS): Likewise.
51893
51894 * commands/cat.c: Include grub/gzio.h.
51895 (grub_cmd_cat): Use grub_gzfile_open instead of
51896 grub_file_open.
51897
51898 * commands/cmp.c: Include grub/gzio.h.
51899 (grub_cmd_cmp): Use grub_gzfile_open instead of
51900 grub_file_open.
51901
51902 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51903 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51904 grub_file_open.
51905 (grub_rescue_cmd_module): Likewise.
51906
51907 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51908
51909 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51910 kern/sparc64/ieee1275/init.c because it contains _start.
51911 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51912
51913 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51914
51915 * configure.ac: Add support for sparc64 host with ieee1275
51916 firmware.
51917 * configure: Generated from configure.ac.
51918 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51919 instead of int.
51920 (grub_ofdisk_read): Likewise.
51921 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51922 pointers as (void *) to remove a warning.
51923 (grub_ofdisk_close): Likewise.
51924 (grub_ofdisk_read): Likewise.
51925 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51926 returns, so make it return void to remove a warning.
51927 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51928 Corresponding prototype change.
51929 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51930 values, and cast the pointers as (void *) to remove a warning.
51931 (grub_mm_dump): Likewise.
51932 * conf/sparc64-ieee1275.mk: New file.
51933 * conf/sparc64-ieee1275.rmk: Likewise.
51934 * include/grub/sparc64/setjmp.h: Likewise.
51935 * include/grub/sparc64/types.h: Likewise.
51936 * include/grub/sparc64/ieee1275/console.h: Likewise.
51937 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51938 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51939 * include/grub/sparc64/ieee1275/time.h: Likewise.
51940 * kern/sparc64/cache.c: Likewise.
51941 * kern/sparc64/dl.c: Likewise.
51942 * kern/sparc64/ieee1275/init.c: Likewise.
51943 * kern/sparc64/ieee1275/openfw.c: Likewise.
51944
51945 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51946
51947 * util/console.c (grub_ncurses_putchar): If C is greater than
51948 0x7f, set C to a question mark.
51949 (grub_ncurses_getcharwidth): New function.
51950 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51951 getcharwidth.
51952
51953 * normal/menu.c (print_entry): Made aware of Unicode. First,
51954 convert TITLE to UCS-4, and predict the cursor position by
51955 grub_getcharwidth.
51956
51957 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51958 const to SRC.
51959 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51960
51961 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51962
51963 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51964 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51965 grub_strcat.
51966
51967 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51968 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51969 grub_strcpy and grub_strlen. Take it into account that a space
51970 character is inserted as a delimiter.
51971
51972 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51973
51974 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51975 invalid magic in the error.
51976
51977 * commands/search.c: New file.
51978
51979 * util/grub-emu.c (main): Call grub_search_init and
51980 grub_search_fini.
51981
51982 * kern/rescue.c (grub_rescue_print_disks): Removed.
51983 (grub_rescue_print_devices): New function.
51984 (grub_rescue_cmd_ls): Use grub_device_iterate with
51985 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51986 grub_rescue_print_disks.
51987
51988 * kern/partition.c (grub_partition_iterate): Return the result of
51989 PARTMAP->ITERATE instead of GRUB_ERRNO.
51990
51991 * kern/device.c: Include grub/partition.h.
51992 (grub_device_iterate): New function.
51993
51994 * include/grub/partition.h (grub_partition_iterate): Return int
51995 instead of grub_err_t.
51996
51997 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51998 prototype.
51999 [GRUB_UTIL] (grub_search_fini): Likewise.
52000
52001 * include/grub/device.h (grub_device_iterate): New prototype.
52002
52003 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52004 commands/search.c.
52005 (pkgdata_MODULES): Added search.mod.
52006 (search_mod_SOURCES): New variable.
52007 (search_mod_CFLAGS): Likewise.
52008
52009 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52010 (pkgdata_MODULES): Added search.mod.
52011 (search_mod_SOURCES): New variable.
52012 (search_mod_CFLAGS): Likewise.
52013
52014 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52015 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52016 All callers changed.
52017
52018 * DISTLIST: Added commands/search.c.
52019
52020 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52021
52022 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52023 conversion.
52024 (grub_getcharwidth): New function.
52025
52026 * kern/misc.c (grub_utf8_to_ucs4): New function.
52027
52028 * include/grub/term.h (struct grub_term): Added a new member
52029 "getcharwidth".
52030 (grub_getcharwidth): New prototype.
52031
52032 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52033
52034 * term/i386/pc/console.c (map_char): New function. Segregated from
52035 grub_console_putchar.
52036 (grub_console_putchar): Use map_char.
52037 (grub_console_getcharwidth): New function.
52038 (grub_console_term): Specified grub_console_getcharwidth as
52039 getcharwidth.
52040
52041 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52042 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52043
52044 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52045 GRUB_ERRNO.
52046 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52047 on grub_strtoul completely.
52048 (write_char): Declare local variables in the beginning of the
52049 function.
52050 (grub_vesafb_getcharwidth): New function.
52051 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52052 getcharwidth.
52053
52054 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52055
52056 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52057 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52058 commands/i386/pc/vbetest.c.
52059
52060 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52061 call grub_vbe_get_controller_info again, because the returned
52062 information is volatile.
52063 (grub_vbe_set_video_mode): Mostly rewritten.
52064 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52065 grub_vbe_status_t correctly.
52066 (grub_vbe_get_video_mode_info): Likewise.
52067 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52068 several if statements.
52069
52070 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52071 * commands/i386/pc/vbeinfo.c: ... this.
52072
52073 * commands/i386/pc/vbe_test.c: Renamed to ...
52074 * commands/i386/pc/vbetest.c: ... this.
52075
52076 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52077 ...
52078 (grub_cmd_vbeinfo): ... this. Save video modes before
52079 iterating. Skip a video mode, if it is not available, not enough
52080 information is given or it is monochrome. Show the memory
52081 model. Leave the interpretation of MODEVAR to grub_strtoul
52082 completely.
52083 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52084 (GRUB_MOD_FINI): Likewise.
52085
52086 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52087 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52088 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52089 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52090 grub_strtoul completely.
52091 (real2pm): Removed.
52092 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52093 (GRUB_MOD_FINI): Likewise.
52094
52095 * normal/misc.c: Include grub/mm.h.
52096
52097 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52098 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52099 (vbe_list_modes_mod_SOURCES): Removed.
52100 (vbe_list_modes_mod_CFLAGS): Likewise.
52101 (vbe_test_mod_SOURCES): Likewise.
52102 (vbe_test_mod_CFLAGS): Likewise.
52103 (vbeinfo_mod_SOURCES): New variable.
52104 (vbeinfo_mod_CFLAGS): Likewise.
52105 (vbetest_mod_SOURCES): Likewise.
52106 (vbetest_mod_CFLAGS): Likewise.
52107
52108 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52109
52110 * normal/misc.c: New file.
52111
52112 * DISTLIST: Added normal/misc.c.
52113
52114 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52115 DISK to HOOK. Call HOOK with DISK.
52116 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52117 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52118 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52119
52120 * normal/menu_entry.c (struct screen): Added a new member
52121 "completion_shown".
52122 (completion_buffer): New global variable.
52123 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52124 (store_completion): New function.
52125 (complete): Likewise.
52126 (clear_completions): Likewise.
52127 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52128 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52129 a tab, call complete.
52130
52131 * normal/completion.c (disk_dev): Removed.
52132 (print_simple_completion): Likewise.
52133 (print_partition_completion): Likewise.
52134 (print_func): New global variable.
52135 (add_completion): Do not take the arguments WHAT or PRINT any
52136 longer. Added a new argument TYPE. Instead of printing directly,
52137 call PRINT_FUNC if not NULL.
52138 All callers changed.
52139 (complete_device): Use a local variable DEV instead of
52140 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52141 (grub_normal_do_completion): Take a new argument HOOK. Do not
52142 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52143 empty string, return NULL instead.
52144 All callers changed.
52145
52146 * normal/cmdline.c (print_completion): New function.
52147
52148 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52149 to HOOK.
52150 All callers changed.
52151
52152 * kern/disk.c (grub_print_partinfo): Removed.
52153
52154 * include/grub/partition.h (struct grub_partition_map): Add a new
52155 argument DISK into HOOK of ITERATE.
52156 (grub_partition_iterate): Add a new argument DISK to HOOK.
52157
52158 * include/grub/normal.h (enum grub_completion_type): New enum.
52159 (grub_completion_type_t): New type.
52160 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52161 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52162 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52163 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52164 (grub_normal_do_completion): Added a new argument HOOK.
52165 (grub_normal_print_device_info): New prototype.
52166
52167 * include/grub/disk.h (grub_print_partinfo): Removed.
52168
52169 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52170 (normal_mod_SOURCES): Likewise.
52171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52172 (normal_mod_SOURCES): Likewise.
52173
52174 * commands/ls.c (grub_ls_list_disks): Use
52175 grub_normal_print_device_info instead of grub_print_partinfo. Free
52176 PNAME.
52177 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52178 duplicating the code.
52179
52180 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52181
52182 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52183 follow GCS more precisely.
52184 * commands/i386/pc/vbe_test.c: Likewise.
52185 * include/grub/i386/pc/vbe.h: Likewise.
52186 * term/i386/pc/vesafb.c: Likewise.
52187 * video/i386/pc/vbe.c: Likewise.
52188
52189 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52190
52191 * DISTLIST: Added term/i386/pc/vesafb.c
52192 DISTLIST: Added video/i386/pc/vbe.c
52193 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52194 DISTLIST: Added commands/i386/pc/vbe_test.c.
52195 * commands/i386/pc/vbe_list_modes.c: New file.
52196 * commands/i386/pc/vbe_test.c: Likewise.
52197 * term/i386/pc/vesafb.c: Likewise.
52198 * video/i386/pc/vbe.c: Likewise.
52199 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52200 (grub_vbe_probe) Added prototype.
52201 (grub_vbe_set_video_mode) Likewise.
52202 (grub_vbe_get_video_mode) Likewise.
52203 (grub_vbe_get_video_mode_info) Likewise.
52204 (grub_vbe_set_pixel_rgb) Likewise.
52205 (grub_vbe_set_pixel_index) Likewise.
52206 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52207 (pkgdata_MODULES): Added vesafb.mod.
52208 (pkgdata_MODULES): Added vbe_list_modes.mod.
52209 (pkgdata_MODULES): Added vbe_test.mod.
52210 (vbe_mod_SOURCES): Added.
52211 (vbe_mod_CFLAGS): Likewise.
52212 (vesafb_mod_SOURCES): Likewise.
52213 (vesafb_mod_CFLAGS): Likewise.
52214 (vbe_list_modes_mod_SOURCES): Likewise.
52215 (vbe_list_modes_mod_CFLAGS): Likewise.
52216 (vbe_test_mod_SOURCES): Likewise.
52217 (vbe_test_mod_CFLAGS): Likewise.
52218
52219 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52220
52221 * normal/command.c (grub_command_execute): If INTERACTIVE is
52222 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52223 CMDLINE. Disable the pager if INTERACTIVE is true.
52224 All callers are changed.
52225
52226 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52227 before reading a config file.
52228 * normal/main.c (read_config_file): Even if a command is not
52229 found, register it if it is within an entry.
52230
52231 * util/grub-emu.c: Include sys/types.h and unistd.h.
52232 (options): Added --hold.
52233 (struct arguments): Added a new member "hold".
52234 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52235 missing.
52236 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52237 cleared by a debugger, if it is not zero.
52238
52239 * include/grub/normal.h (grub_command_execute): Add an argument
52240 INTERACTIVE.
52241
52242 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52243
52244 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52245
52246 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52247
52248 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52249 program with another one, because the old one didn't detect a bug
52250 in gcc-3.4. Always use regparm 2, because the new test is still
52251 not enough for gcc-4.0. Someone must investigate a simple test
52252 case which detects a bug in gcc-4.0.
52253
52254 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52255
52256 * DISTLIST: Added normal/completion.c.
52257
52258 * normal/completion.c: New file.
52259
52260 * term/i386/pc/console.c (grub_console_getwh): New function.
52261 (grub_console_term): Assign grub_console_getwh to getwh.
52262
52263 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52264 function is defined in normal/completion.c as
52265 grub_normal_do_completion.
52266 (grub_cmdline_get): Use grub_normal_do_completion instead of
52267 grub_tab_complete.
52268
52269 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52270 returns non-zero, otherwise return 0.
52271 (grub_partition_iterate): First, probe the partition map. Then,
52272 call ITERATE only for this partition map.
52273
52274 * kern/misc.c (grub_strncmp): Rewritten.
52275
52276 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52277 returns non-zero. Otherwise return 0.
52278
52279 * include/grub/partition.h (grub_partition_map_iterate): Return
52280 int instead of void.
52281
52282 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52283
52284 * include/grub/misc.h (grub_strncmp): Change the type of N to
52285 grub_size_t.
52286
52287 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52288 of void.
52289
52290 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52291 unsigned explicitly before comparing it with I.
52292
52293 * kern/main.c (grub_env_write_root): Add the attribute unused into
52294 VAR.
52295
52296 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52297 normal/completion.c.
52298 (normal_mod_SOURCES): Likewise.
52299 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52300 (normal_mod_SOURCES): Likewise.
52301
52302 * normal/command.c (grub_iterate_commands): If ITERATE returns
52303 non-zero, return one immediately.
52304
52305 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52306
52307 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52308 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52309 descriptions.
52310 (grub_vbe_get_controller_info): New function.
52311 (grub_vbe_get_mode_info): Likewise.
52312 (grub_vbe_set_mode): Likewise.
52313 (grub_vbe_get_mode): Likewise.
52314 (grub_vbe_set_memory_window): Likewise.
52315 (grub_vbe_get_memory_window): Likewise.
52316 (grub_vbe_set_scanline_length): Likewise.
52317 (grub_vbe_get_scanline_length): Likewise.
52318 (grub_vbe_set_display_start): Likewise.
52319 (grub_vbe_get_display_start): Likewise.
52320 (grub_vbe_set_palette_data): Likewise.
52321 * include/grub/i386/pc/vbe.h: New file.
52322
52323 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52324
52325 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52326 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52327 * DISTLIST: Likewise.
52328 * kern/ieee1275/of.c: Moved to ...
52329 * kern/ieee1275/ieee1275.c: ... here.
52330
52331 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52332
52333 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52334 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52335 Pass 0 as `end' parameter to grub_strtoul().
52336
52337 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52338
52339 * include/grub/powerpc/ieee1275/console.h: Do not include
52340 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52341 ifdef.
52342 (grub_console_cur_color): Remove i386-specific prototype.
52343 (grub_console_real_putchar): Likewise.
52344 (grub_console_checkkey): Likewise.
52345 (grub_console_getkey): Likewise.
52346 (grub_console_getxy): Likewise.
52347 (grub_console_gotoxy): Likewise.
52348 (grub_console_cls): Likewise.
52349 (grub_console_setcursor): Likewise.
52350 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52351 Include <grub/machine/console.h>.
52352 * term/ieee1275/ofconsole.c: Likewise.
52353
52354 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52355
52356 * Makefile.in (LIBLZO): New variable.
52357
52358 * configure.ac: Check for LZO version 2.
52359
52360 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52361 lzo/lzo1x.h instead of lzo1x.h.
52362
52363 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52364 of -llzo.
52365
52366 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52367 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52368
52369 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52370 copying the data from PARTITION to P.
52371
52372 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52373
52374 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52375 negative, unload the module.
52376
52377 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52378 map is "pc_partition_map" but not "pc".
52379 (usage): Fix the description. The options are --boot-image and
52380 --core-image but not --boot-file or --core-file.
52381 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52382 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52383 DEFAULT_DIRECTORY.
52384
52385 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52386 --core-file. Specify INSTALL_DEVICE as an argument.
52387
52388 * util/console.c: Include config.h.
52389 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52390 [HAVE_NCURSES_H]: Include ncurses.h.
52391 [HAVE_CURSES_H]: Include curses.h.
52392 [!A_NORMAL] (A_NORMAL): Defined as zero.
52393 [!A_STANDOUT] (A_STANDOUT): Likewise.
52394
52395 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52396 -lncurses.
52397 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52398
52399 * configure.ac: Check for curses libraries and headers.
52400
52401 * Makefile.in (LIBCURSES): New variable.
52402
52403 * genmk.rb (Script::rule): Set the executable bits.
52404
52405 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52406 name of the PC partition map is "pc_partition_map" but not "pc".
52407
52408 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52409
52410 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52411 (modules): Likewise.
52412 (usage): Added descriptions for --modules and --grub-probefs.
52413 Handle --modules and --grub-probefs. Save the arguments in MODULES
52414 and GRUB_PROBEFS, respectively.
52415 Auto-detect a filesystem module against GRUBDIR. If the result is
52416 empty and modules are not specified explicitly, abort the
52417 installation. Add the result to MODULES.
52418
52419 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52420 disk/powerpc/ieee1275/ofdisk.c,
52421 include/grub/powerpc/ieee1275/init.h and
52422 term/powerpc/ieee1275/ofconsole.c.
52423 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52424 term/ieee1275/ofconsole.c.
52425
52426 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52427
52428 * COPYING: Upgraded to the latest version. Only the address of the
52429 FSF office has changed.
52430
52431 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52432
52433 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52434 kern/ieee1275.c with kern/ieee1275/of.c.
52435
52436 * kern/ieee1275.c: Moved to ...
52437 * kern/ieee1275/of.c: ... here.
52438
52439 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52440
52441 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52442 readability.
52443
52444 * config.guess: Updated to the latest version from gnulib.
52445 * config.sub: Likewise.
52446 * install.sh: Likewise.
52447 * mkinstalldirs: Likewise.
52448
52449 * include/grub/console.h: Removed. This file is arch-specific. Do
52450 not put this in include/grub.
52451
52452 * include/grub/i386/pc/console.h: Resurrected.
52453
52454 * util/console.c: Include grub/machine/console.h instead of
52455 grub/console.h.
52456 * util/grub-emu.c: Likewise.
52457
52458 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52459
52460 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52461 hardcoded value.
52462
52463 From Vincent Pelletier <subdino2004@yahoo.fr>
52464 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52465 Redefined to use grub_getwh.
52466 (grub_term): New member named getwh.
52467 (grub_getwh): New prototype.
52468 * kern/term.c (grub_getwh): New function.
52469 * term/i386/pc/console.c (grub_console_getwh): New function.
52470 (grub_console_term): New member `getwh'.
52471 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52472 (grub_vga_term): New member `getwh'.
52473 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52474 grub_ssize_t.
52475 (grub_ofconsole_getw): New function.
52476 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52477 (grub_ofconsole_term): New field named getwh and new initial
52478 value.
52479
52480 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52481
52482 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52483 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52484 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52485 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52486 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52487 of <grub/machine/ieee1275.h>.
52488 * commands/ieee1275/reboot.c: Likewise.
52489 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52490 * kern/ieee1275.c: ... to here. All users updated. Change all
52491 parameter structs to use new type `grub_ieee1275_cell_t'.
52492 * term/powerpc/ieee1275/ofconsole.c: Move ...
52493 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52494 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52495 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52496 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52497 to return int.
52498 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52499 Remove unused prototypes. All users updated.
52500 * include/grub/powerpc/ieee1275/console.h: Removed.
52501 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52502 `grub_ieee1275_cell_t'.
52503 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52504 Cast comparisons with -1 to the correct type.
52505 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52506 type to match `grub_ieee1275_entry_fn'.
52507
52508 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52509
52510 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52511
52512 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52513 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52514 partmap/sun.c.
52515 (grub_probefs_SOURCES): New variable.
52516
52517 * util/i386/pc/grub-probefs.c: New file.
52518
52519 * util/i386/pc/grub-setup.c (main): Call
52520 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52521 grub_hfs_init and grub_jfs_init to initialize the system. Call
52522 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52523 grub_pc_partition_map_fini to finish the system.
52524
52525 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52526
52527 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52528 function.
52529 (grub_multiboot_load_elf32): Likewise.
52530 (grub_multiboot_is_elf64): Likewise.
52531 (grub_multiboot_load_elf64): Likewise.
52532 (grub_multiboot_load_elf): Likewise.
52533 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52534 an ELF32 or ELF64 file.
52535 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52536
52537 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52538 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52539 NULL before calling FS->LABEL.
52540 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52541 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52542 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52543 before calling FS->LABEL.
52544
52545 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52546
52547 * util/i386/pc/grub-install.in (datadir): New variable.
52548 (libdir): Removed.
52549 (pkgdatadir): New variable.
52550 (pkglibdir): Removed.
52551
52552 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52553
52554 * DISTLIST: Added util/i386/pc/grub-install.in.
52555
52556 * util/i386/pc/grub-install.in: New file.
52557
52558 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52559 (grub_install_SOURCES): Likewise.
52560
52561 * genmk.rb: Added support for scripts.
52562 (Script): New class.
52563 (scripts): New variable.
52564
52565 * Makefile.in (install-local): Install sbin_SCRIPTS by
52566 INSTALL_SCRIPT.
52567 (uninstall): Remove sbin_SCRIPTS.
52568
52569 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52570 device, try to get a GRUB device by
52571 grub_util_biosdisk_get_grub_dev.
52572 Free DEST_DEV.
52573
52574 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52575 description for --device-map.
52576
52577 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52578
52579 Change the semantics of variable hooks. They now return strings
52580 instead of error values.
52581
52582 * util/i386/pc/grub-setup.c: Include grub/env.h.
52583 (setup): Use grub_device_set_root instead of grub_env_set.
52584
52585 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52586 grub_env_get instead of grub_device_set_root and
52587 grub_device_get_root, respectively.
52588
52589 * kern/main.c (grub_env_write_root): New function.
52590 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52591 grub_env_set instead of grub_device_set_root.
52592
52593 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52594 many variables.
52595 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52596 rather than calling ENV->WRITE_HOOK afterwards.
52597 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52598 passing a pointer of a pointer.
52599 (grub_register_variable_hook): Change the types of "read_hook" and
52600 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52601 respectively.
52602 Allocate the default empty string on the heap, because this string
52603 may be freed later.
52604
52605 * kern/device.c: Include grub/env.h.
52606 (grub_device_set_root): Removed.
52607 (grub_device_get_root): Likewise.
52608 (grub_device_open): Use grub_env_get instead of
52609 grub_device_get_root.
52610
52611 * include/grub/env.h (grub_env_read_hook_t): New type.
52612 (grub_env_write_hook_t): Likewise.
52613 (grub_env_var): Change the types of "read_hook" and "write_hook"
52614 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52615 (grub_register_variable_hook): Likewise.
52616
52617 * include/grub/device.h (grub_device_set_root): Removed.
52618 (grub_device_set_root): Likewise.
52619
52620 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52621 make sure that DIRNAME terminates with '/', so that
52622 grub_fat_find_dir will fail if PATH is not a directory.
52623
52624 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52625 from DIRNAME.
52626 Use the qualifier auto for print_files and print_files_long.
52627 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52628 as a regular file.
52629 Put a newline only if there is no error.
52630 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52631 used.
52632
52633 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52634
52635 * kern/partition.c (grub_partition_probe): Initialize PART to
52636 NULL. Otherwise, when no partition map is registered, this returns
52637 a garbage.
52638
52639 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52640
52641 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52642 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52643 valid.
52644
52645 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52646
52647 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52648 information on each device, if it does not have partitions. Print
52649 "Device" instead of "Disk", because this function is not specific
52650 to disk devices.
52651
52652 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52653 static to ensure that it is put on the memory rather than a
52654 register.
52655
52656 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52657
52658 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52659 (grub_cat_init): Likewise.
52660 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52661 (options): Likewise.
52662 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52663 (grub_configfile_init): Likewise.
52664 * font/manager.c (GRUB_MOD_INIT): Likewise.
52665 * commands/help.c (GRUB_MOD_INIT): Likewise.
52666 (grub_help_init): Likewise.
52667 * normal/command.c (grub_command_init): Likewise.
52668 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52669 * disk/loopback.c (grub_loop_init): Likewise.
52670 (GRUB_MOD_INIT): Likewise.
52671 * commands/ls.c (grub_ls_init): Likewise.
52672 (GRUB_MOD_INIT): Likewise.
52673 (options): Likewise.
52674 * commands/boot.c (grub_boot_init): Likewise.
52675 (GRUB_MOD_INIT): Likewise.
52676 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52677 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52678 (GRUB_MOD_INIT): Likewise.
52679 * commands/cmp.c (grub_cmp_init): Likewise.
52680 (GRUB_MOD_INIT): Likewise.
52681
52682 * normal/arg.c: Use <> instead of "" to include header files.
52683 (SHORT_ARG_HELP): New macro.
52684 (SHORT_ARG_USAGE): Likewise.
52685 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52686 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52687 descriptions.
52688 (find_short): Check if C is 'h' or 'u' explicitly.
52689 (grub_arg_show_help): Use space characters instead of tabs. Treat
52690 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52691 are shown with --help and --usage only if they are not used for
52692 the command itself.
52693 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52694 'h' and 'u'.
52695
52696 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52697 const into "longarg". Change the type of "shortarg" to int.
52698
52699 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52700
52701 * boot/i386/pc/boot.S (boot_drive_check): New label.
52702
52703 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52704 macro.
52705
52706 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52707 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52708
52709 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52710
52711 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52712 When turning off Gate A20, skip the check and return immediately,
52713 because this is not fatal usually.
52714
52715 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52716
52717 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52718 be 0x7C00 instead of 0x8000.
52719
52720 * boot/i386/pc/pxeboot.S: Rewritten.
52721
52722 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52723 EXT_C.
52724 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52725 result.
52726
52727 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52728
52729 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52730 robustness. This routine now supports a BIOS call and System
52731 Control Port A to modify the gate A20.
52732
52733 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52734 Increased to 0x440.
52735
52736 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52737
52738 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52739 device path and resulting ihandle.
52740 (grub_ofdisk_close): dprintf the ihandle being closed.
52741 (grub_ofdisk_read): dprintf function parameters.
52742 * kern/mm.c (grub_mm_init_region): Likewise.
52743 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52744 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52745 size, and boot arguments.
52746 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52747 before loading into memory.
52748 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52749 before loading into memory.
52750
52751 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52752
52753 * kern/mm.c: Added much documentation.
52754 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52755 8, set to 5 instead of 8.
52756
52757 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52758
52759 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52760
52761 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52762 (grub_mkdevicemap_SOURCES): New variable.
52763
52764 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52765 lib/device.c of GRUB Legacy.
52766
52767 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52768
52769 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52770 instead of PATH is NULL.
52771
52772 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52773
52774 * commands/cmp.c (BUFFER_SIZE): New macro.
52775 (grub_cmd_cmp): Close the right file at the right time. Compare
52776 only data just read. Don't report files of different size as
52777 identical. Dynamically allocate buffers. Move variable
52778 declarations at the beginning of function.
52779
52780 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52781
52782 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52783 reverse.
52784
52785 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52786
52787 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52788 when backspace is pressed at beginning of line.
52789
52790 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52791
52792 * DISTLIST: Added genfslist.sh.
52793
52794 * normal/main.c (fs_module_list): New variable.
52795 (autoload_fs_module): New function.
52796 (read_fs_list): Likewise.
52797 (grub_normal_execute): Call read_fs_list.
52798
52799 * kern/fs.c (grub_fs_autoload_hook): New variable.
52800 (grub_fs_probe): Added support for auto-loading.
52801
52802 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52803 (grub_fs_module_list_t): New type.
52804
52805 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52806 (grub_fs_autoload_hook): New prototype.
52807
52808 * genfslist.sh: New file.
52809
52810 * genmk.rb: Added a rule to generate a filesystem list.
52811
52812 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52813
52814 * configure.ac: Fix the test for cross-compiling.
52815
52816 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52817 define GRUB_UTIL anymore.
52818
52819 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52820 so this function works on other systems than just big endian.
52821 (load_modules): Likewise.
52822 (add_segments): Likewise.
52823
52824 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52825
52826 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52827 contains `l' modifier, get a long from va_arg().
52828
52829 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52830
52831 * kern/mm.c (grub_free): If the next free block which is being
52832 merged is the first free block, set the first block to the block
52833 being freed.
52834 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52835
52836 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52837
52838 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52839 `grub_ieee1275_chosen'.
52840
52841 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52842
52843 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52844 (grub_ieee1275_chosen): New variable.
52845 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52846 `chosen'.
52847 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52848 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52849 Rename first argument to `phandle' for consistency.
52850 (grub_ieee1275_get_property_length): Likewise.
52851 (grub_ieee1275_next_property): Likewise. Change type of first argument
52852 to grub_ieee1275_phandle_t.
52853 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52854 Move export next to declaration.
52855 (grub_ieee1275_chosen): New variable.
52856 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52857 Correct cosmetic typo.
52858 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52859 `grub_ieee1275_chosen'.
52860 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52861 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52862 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52863 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52864 `grub_ieee1275_chosen'.
52865
52866 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52867
52868 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52869 /chosen/bootargs.
52870 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52871 /chosen/bootargs as "variable=value" pairs.
52872
52873 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52874
52875 * include/grub/misc.h (grub_dprintf): New macro.
52876 (grub_real_dprintf): New prototype.
52877 (grub_strword): Likewise.
52878 (grub_iswordseparator): Likewise.
52879 * kern/misc.c (grub_real_dprintf): New function.
52880 (grub_strword): Likewise.
52881 (grub_iswordseparator): Likewise.
52882
52883 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52884
52885 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52886 (roundup): Remove macro.
52887 (grub_ieee1275_flags): Make static.
52888 (grub_ieee1275_realmode): Remove.
52889 (grub_ieee1275_test_flag): New function.
52890 (grub_ieee1275_set_flag): Likewise.
52891 (find_options): Rename to `grub_ieee1275_find_options'; update
52892 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52893 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52894 (cmain): New prototype.
52895 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52896 `grub_ieee1275_flags' directly.
52897 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52898 machine/biosdisk.h.
52899 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52900 Don't include grub/machine/init.h.
52901 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52902 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52903 Remove prototype.
52904 (grub_ieee1275_realmode): Likewise.
52905 (grub_ieee1275_flag): New enum.
52906 (grub_ieee1275_test_flag): New prototype.
52907 (grub_ieee1275_set_flag): New prototype.
52908 * include/grub/powerpc/ieee1275/init.h: Remove file.
52909 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52910 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52911 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52912 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52913 comment.
52914 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52915 `grub_ieee1275_test_flag'.
52916 (grub_ieee1275_encode_devname): Likewise.
52917
52918 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52919
52920 * include/grub/powerpc/ieee1275/ieee1275.h
52921 (grub_ieee1275_encode_devname): New prototype.
52922 (grub_ieee1275_get_filename): Likewise.
52923 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52924 function.
52925 (grub_set_prefix): Likewise.
52926 (grub_machine_init): Call grub_set_prefix.
52927 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52928 (grub_parse_type): New enum.
52929 (grub_ieee1275_get_devargs): New function.
52930 (grub_ieee1275_get_devname): Likewise.
52931 (grub_ieee1275_parse_args): Likewise.
52932 (grub_ieee1275_get_filename): Likewise.
52933 (grub_ieee1275_encode_devname): Likewise.
52934
52935 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52936
52937 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52938 `grub_loader_unset'.
52939
52940 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52941
52942 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52943 instead of grub_ieee1275_interpret.
52944 (grub_halt_init): New function.
52945 (grub_halt_fini): Likewise.
52946 (GRUB_MOD_INIT): Correct message grammar.
52947 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52948 instead of grub_ieee1275_interpret.
52949 (grub_reboot_init): New function.
52950 (grub_reboot_fini): Likewise.
52951 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52952 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52953 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52954 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52955 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52956 function.
52957 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52958 Add prototype.
52959 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52960 prototype.
52961 (grub_halt): Likewise.
52962 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52963 (cmain): Remove __attribute__((unused)).
52964 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52965 (grub_heap_len): Likewise.
52966 (grub_machine_fini): New function.
52967 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52968 (grub_halt): Likewise.
52969 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52970 function.
52971 * util/powerpc/ieee1275/misc.c: New file.
52972
52973 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52974
52975 * DISTLIST: New file.
52976 * gendistlist.sh: Likewise.
52977
52978 * Makefile.in (COMMON_DISTFILES): Removed.
52979 (BOOT_DISTFILES): Likewise.
52980 (CONF_DISTFILES): Likewise.
52981 (DISK_DISTFILES): Likewise.
52982 (FS_DISTFILES): Likewise.
52983 (INCLUDE_DISTFILES): Likewise.
52984 (KERN_DISTFILES): Likewise.
52985 (LOADER_DISTFILES): Likewise.
52986 (TERM_DISTFILES): Likewise.
52987 (UTIL_DISTFILES): Likewise.
52988 (DISTFILES): Likewise.
52989 (uninstall): Uninstall files in $(pkgdata_DATA).
52990 (DISTLIST): New target.
52991 (distdir): Use the contents of the file DISTLIST to get a list of
52992 distributed files.
52993
52994 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52995
52996 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52997 descriptor. This is ported from GRUB Legacy.
52998
52999 * gencmdlist.sh: Added an extra semicolon to make it work with
53000 old sed versions. Reported by Robert Bihlmeyer
53001 <robbe@orcus.priv.at>.
53002
53003 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53004
53005 Automatic loading of commands is supported.
53006
53007 * normal/main.c (read_command_list): New function.
53008 (grub_normal_execute): Call read_command_list.
53009
53010 * normal/command.c (grub_register_command): Return zero or CMD.
53011 Allocate CMD->NAME from the heap.
53012 Initialize CMD->MODULE_NAME to zero.
53013 Find the same name as well. If the same command is found and it is
53014 a dummy command, overwrite members. If it is not a dummy command,
53015 return zero.
53016 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53017 (grub_command_find): If a dummy command is found, load a module
53018 and retry to find a command only once.
53019
53020 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53021 make sure that each command is loaded.
53022
53023 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53024 macro.
53025 (struct grub_command): Remove const from the member `name'.
53026 Add a new member `module_name'.
53027 (grub_register_command): Return grub_command_t.
53028
53029 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53030 sure that each command is loaded.
53031
53032 * genmk.rb (PModule::rule): Specify a module name without the
53033 suffix ".mod" to gencmdlist.sh.
53034
53035 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53036
53037 * gencmdlist.sh: New file.
53038
53039 * genmk.rb (PModule::rule): Generate a rule for a command list.
53040 Clean command.lst.
53041 Generate command.lst from $(COMMANDFILES).
53042
53043 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53044 (DATA): Added $(pkgdata_DATA).
53045 (install-local): Install files in $(pkgdata_DATA).
53046
53047 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53048
53049 * term/i386/pc/vga.c (debug_command): Removed.
53050 (GRUB_MOD_INIT): Do not register the command "debug".
53051
53052 From Hollis Blanchard:
53053 * commands/configfile.c: New file.
53054 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53055 commands/configfile.c.
53056 (pkgdata_MODULES): Added configfile.mod.
53057 (configfile_mod_SOURCES): New variable.
53058 (configfile_mod_CFLAGS): Likewise.
53059 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53060 commands/configfile.c.
53061 (pkgdata_MODULES): Added configfile.mod.
53062 (configfile_mod_SOURCES): New variable.
53063 (configfile_mod_CFLAGS): Likewise.
53064 * util/grub-emu.c (main): Call grub_configfile_init and
53065 grub_configfile_fini.
53066 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53067 prototype.
53068 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53069
53070 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53071
53072 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53073 address.
53074
53075 * commands/help.c (grub_cmd_help): Do not print newlines after
53076 the last command in print_command_help.
53077
53078 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53079
53080 * commands/default.h: New file.
53081 * commands/timeout.h: Likewise.
53082 * normal/context.c: Likewise.
53083
53084 * util/misc.c: Do not include sys/times.h.
53085 Include sys/time.h and grub/machine/time.h.
53086 (grub_get_rtc): Rewritten with gettimeofday.
53087
53088 * util/grub-emu.c (main): Call grub_default_init and
53089 grub_timeout_init before grub_normal_init, and call
53090 grub_timeout_fini and grub_default_fini after grub_main.
53091
53092 * util/console.c (grub_ncurses_checkkey): Return the read
53093 character or -1.
53094
53095 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53096 timeouts.
53097
53098 * normal/main.c (read_config_file): Push MENU. If this fails,
53099 print an error and wait for a user input.
53100 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53101 If a menu is empty or an error occurs, pop MENU.
53102 (grub_normal_execute): Pop and free MENU after grub_menu_run
53103 returns.
53104
53105 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53106
53107 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53108 include time.h.
53109 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53110 without GRUB_UTIL.
53111 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53112 time.h.
53113 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53114 without GRUB_UTIL.
53115
53116 * include/grub/normal.h (struct grub_menu_list): New struct.
53117 (grub_menu_list_t): New type.
53118 (struct grub_context): New struct.
53119 (grub_context_t): New type.
53120 (grub_register_command): Got rid of EXPORT_FUNC.
53121 (grub_unregister_command): Likewise.
53122 (grub_context_get): New prototype.
53123 (grub_context_get_current_menu): Likewise.
53124 (grub_context_push_menu): Likewise.
53125 (grub_context_pop_menu): Likewise.
53126 [GRUB_UTIL] (grub_default_init): Likewise.
53127 [GRUB_UTIL] (grub_default_fini): Likewise.
53128 [GRUB_UTIL] (grub_timeout_init): Likewise.
53129 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53130
53131 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53132 commands/timeout.c and normal/context.c.
53133 (pkgdata_MODULES): Added default.mod and timeout.mod.
53134 (normal_mod_SOURCES): Added normal/context.c.
53135 (default_mod_SOURCES): New variable.
53136 (default_mod_CFLAGS): Likewise.
53137 (timeout_mod_SOURCES): Likewise.
53138 (timeout_mod_CFLAGS): Likewise.
53139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53140 conf/i386-pc.rmk.
53141 (pkgdata_MODULES): Added default.mod and timeout.mod.
53142 (normal_mod_SOURCES): Added normal/context.c.
53143 (default_mod_SOURCES): New variable.
53144 (default_mod_CFLAGS): Likewise.
53145 (timeout_mod_SOURCES): Likewise.
53146 (timeout_mod_CFLAGS): Likewise.
53147
53148 * Makefile.in (all-local): Added $(MKFILES).
53149
53150 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53151
53152 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53153 (grub_emu_SOURCES): Likewise.
53154 (pkgdata_MODULES): Add `sun.mod'.
53155 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53156 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53157 `partmap/sun.c'.
53158 (pkgdata_MODULES): Add `sun.mod'.
53159 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53160 * include/grub/partition.h (grub_sun_partition_map_init): New
53161 prototype.
53162 (grub_sun_partition_map_fini): Likewise.
53163 * partmap/sun.c: New file.
53164 * util/grub-emu.c (main): Initialize and de-initialize the sun
53165 partitionmap support.
53166
53167 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53168
53169 This implements an Emacs-like menu entry editor.
53170
53171 * normal/menu_entry.c: New file.
53172
53173 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53174 characters to ASCII.
53175 (saved_char): New variable.
53176 (grub_ncurses_checkkey): Rewritten completely.
53177 (grub_ncurses_getkey): Likewise.
53178 (grub_ncurses_init): Call raw instead of cbreak.
53179
53180 * normal/menu.c (print_entry): Do not put a space.
53181 (init_page): Renamed to ...
53182 (grub_menu_init_page): ... this. All callers changed.
53183 (edit_menu_entry): Removed.
53184 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53185
53186 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53187
53188 * kern/misc.c (grub_vprintf): Call grub_refresh.
53189
53190 * normal/menu.c (DISP_LEFT): Renamed to ...
53191 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53192 * normal/menu.c (DISP_UP): Renamed to ...
53193 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53194 * normal/menu.c (DISP_RIGHT): Renamed to ...
53195 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53196 * normal/menu.c (DISP_DOWN): Renamed to ...
53197 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53198 * normal/menu.c (DISP_HLINE): Renamed to ...
53199 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53200 * normal/menu.c (DISP_VLINE): Renamed to ...
53201 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53202 * normal/menu.c (DISP_UL): Renamed to ...
53203 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53204 * normal/menu.c (DISP_UR): Renamed to ...
53205 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53206 * normal/menu.c (DISP_LL): Renamed to ...
53207 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53208 * normal/menu.c (DISP_LR): Renamed to ...
53209 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53210 * normal/menu.c (TERM_WIDTH): Renamed to ...
53211 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53212 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53213 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53214 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53215 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53216 * normal/menu.c (TERM_MARGIN): Renamed to ...
53217 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53218 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53219 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53220 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53221 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53222 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53223 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53224 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53225 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53226 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53227 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53228 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53229 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53230 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53231 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53232 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53233 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53234 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53235 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53236 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53237 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53238 All callers changed.
53239
53240 * include/grub/normal.h: New prototype.
53241
53242 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53243 normal/menu_entry.c.
53244 (normal_mod_SOURCES): Likewise.
53245 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53246 (normal_mod_SOURCES): Likewise.
53247
53248 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53249
53250 * include/grub/normal.h (grub_halt_init): New prototype.
53251 (grub_halt_fini): Likewise.
53252 (grub_reboot_init): Likewise.
53253 (grub_reboot_fini): Likewise.
53254
53255 * util/grub-emu.c: Include signal.h.
53256 (main_env): New global variable.
53257 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53258 catch C-c.
53259 (grub_machine_fini): New function.
53260 (main): Call grub_halt_init and grub_reboot_init before
53261 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53262 Call setjmp with MAIN_ENV to go back afterwards.
53263 Call grub_machine_fini right before return.
53264
53265 * include/grub/util/misc.h: Include setjmp.h.
53266 (main_env): New prototype.
53267
53268 * include/grub/kernel.h (grub_machine_fini): New prototype.
53269 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53270 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53271
53272 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53273 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53274 * term/i386/pc/console.c (grub_console_fini): Likewise.
53275
53276 * util/i386/pc/misc.c: New file.
53277
53278 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53279 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53280 commands/i386/pc/reboot.c.
53281
53282 2005-02-14 Guillem Jover <guillem@hadrons.org>
53283
53284 * include/grub/dl.h (grub_dl_check_header): New prototype.
53285 (grub_arch_dl_check_header): Change return type to grub_err_t,
53286 remove size parameter and export function. Update all callers.
53287 * kern/dl.c (grub_dl_check_header): New function.
53288 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53289 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53290 are inside the core.
53291 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53292 independent ELF header checks.
53293 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53294 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53295 `grub_dl_check_header' instead of explicit checks. Check for the
53296 ELF type.
53297 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53298 `grub_dl_check_header' instead of explicit checks. Remove arch
53299 specific ELF header checks.
53300
53301 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53302 argument SIZE.
53303
53304 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53305
53306 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53307 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53308
53309 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53310
53311 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53312 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53313 (part_map_iterate): Clear `grub_errno' and return 0 if
53314 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53315 * partmap/amiga.c (amiga_partition_map_iterate): Return
53316 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53317 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53318
53319 2005-02-01 Guillem Jover <guillem@hadrons.org>
53320
53321 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53322 help info.
53323
53324 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53325
53326 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53327 Removed prototype.
53328 (grub_rescue_cmd_linux): New prototype.
53329 (grub_rescue_cmd_initrd): Likewise.
53330 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53331 `bi_rec'.
53332 (grub_linux_release_mem): Release the memory for the initrd.
53333 (grub_load_linux): Renamed from this...
53334 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53335 Changed `entry' not to be static. Loop over memory regions to
53336 find another one when the default fails.
53337 (grub_rescue_cmd_initrd): New function.
53338 (grub_linux_init): Remove function.
53339 (grub_linux_fini): Likewise.
53340 (GRUB_MOD_INIT): Register `initrd'.
53341 (GRUB_MOD_FINI): Unregister `initrd'.
53342 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53343 Function removed.
53344 (grub_linux_normal_fini): Likewise.
53345 (GRUB_MOD_INIT): Register `initrd'.
53346 (GRUB_MOD_FINI): Unregister `initrd'.
53347
53348 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53349
53350 * commands/help.c: New file.
53351 * normal/arg.c (show_help): Renamed to...
53352 (grub_arg_show_help): ... this.
53353 * commands/i386/pc/halt.c: New file.
53354 * commands/i386/pc/reboot.c: Likewise.
53355 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53356 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53357 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53358 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53359 variables.
53360 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53361 `commands/help.c'.
53362 (pkgdata_MODULES): Add `help.mod'.
53363 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53364 * grub/i386/pc/init.h (grub_reboot): New prototype.
53365 (grub_halt): Likewise.
53366 * include/grub/normal.h (grub_arg_show_help): New prototype.
53367 (grub_help_init): Likewise.
53368 (grub_help_fini): Likewise.
53369 * util/grub-emu.c (main): Initialize and deinitialize the help
53370 command.
53371
53372 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53373
53374 * normal/command.c (grub_command_init): Fixed the description of
53375 the `set' and `unset' commands.
53376
53377 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53378
53379 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53380 function.
53381 * commands/ieee1275/halt.c: New file.
53382 * commands/ieee1275/reboot.c: Likewise.
53383 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53384 `__attribute__ ((unused))'. Some GCS related fixed.
53385 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53386 (grub_suspend_fini): Likewise.
53387 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53388 and `halt.mod'.
53389 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53390 (halt_mod_CFLAGS): New variables.
53391 * include/grub/powerpc/ieee1275/ieee1275.h
53392 (grub_ieee1275_interpret): New prototype.
53393
53394 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53395
53396 * include/grub/misc.h (memmove): New prototype.
53397 (memcpy): Likewise.
53398
53399 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53400
53401 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53402 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53403
53404 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53405
53406 * kern/misc.c (grub_strndup): Function rewritten.
53407
53408 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53409
53410 * normal/menu.c (TERM_WIDTH): Macro redefined.
53411 (TERM_TOP_BORDER_Y): Likewise.
53412 (draw_border): Replaced while-loop by a for-loop. Make the number
53413 of lines consistent with the number of lines displayed in
53414 print_entries. Added a margin below the rectangle.
53415 (print_entry): Make the entry fit in the rectangle.
53416 (print_entries): Display the scroll arrows next to the right
53417 border.
53418
53419 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53420
53421 * fs/minix.c (grub_minix_find_file): Reserve more space for
53422 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53423 `grub_strncpy' to copy `path' into it.
53424
53425 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53426
53427 Add the loopback device, a device via which files can be accessed
53428 as devices.
53429
53430 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53431 (pkgdata_MODULES): Add loopback.mod.
53432 (loopback_mod_SOURCES): New variable.
53433 (loopback_mod_CFLAGS): Likewise.
53434 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53435 `disk/loopback.c'.
53436 (pkgdata_MODULES): Add loopback.mod.
53437 (loopback_mod_SOURCES): New variable.
53438 (loopback_mod_CFLAGS): Likewise.
53439 * disk/loopback.c: new file.
53440 * include/grub/normal.h (grub_loop_init): New prototype.
53441 (grub_loop_fini): New prototype.
53442 * util/grub-emu.c (main): Initialize and de-initialize loopback
53443 support.
53444 * include/grub/disk.h (grub_disk_dev_id): Add
53445 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53446
53447 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53448
53449 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53450 function.
53451 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53452 (suspend_mod_SOURCES): New variable.
53453 (suspend_mod_CFLAGS): Likewise.
53454 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53455 New prototype.
53456 * commands/ieee1275/suspend.c: New file.
53457
53458 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53459
53460 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53461 ((unused))' to `__attribute__ ((used))'.
53462 (GRUB_MOD_FINI): Likewise.
53463 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53464 * genmk.rb (PModule): Assign space to common symbols when linking
53465 modules.
53466
53467 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53468
53469 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53470 `unsigned' arguments to `grub_size_t'.
53471 (grub_malloc): Likewise.
53472 (grub_realloc): Likewise.
53473 (grub_memalign): Likewise.
53474 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53475 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53476 * util/misc.c (grub_malloc): Likewise.
53477 (grub_realloc): Likewise.
53478 * kern/mm.c (get_header_from_pointer): Change the casts to
53479 `unsigned' into a cast to `grub_size_t'.
53480
53481 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53482 point to `currnode' when `currnode' is changed.
53483
53484 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53485 Schottelius <nico-linux@schottelius.org>.
53486
53487 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53488
53489 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53490 (note_path): Remove variable.
53491 (GRUB_IEEE1275_NOTE_NAME): New macro.
53492 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53493 (grub_ieee1275_note_hdr): New structure.
53494 (grub_ieee1275_note_desc): Likewise.
53495 (grub_ieee1275_note): Likewise.
53496 (load_note): Remove `dir' argument. All callers updated. Remove
53497 `note_img' and `path'. Do not load a file from `note_path'.
53498 Initialize a struct grub_ieee1275_note and write that to `out'.
53499 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53500
53501 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53502
53503 * util/misc.c (grub_util_read_image): Revert last change. It
53504 called `grub_util_read_at', which seeks from the beginning of the
53505 file.
53506
53507 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53508
53509 * TODO: Add note about endianness in grub-mkimage.
53510 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53511 section.
53512 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53513 (grub_mkimage_SOURCES): New target.
53514 * include/grub/kernel.h (grub_start_addr): Remove variable.
53515 (grub_end_addr): Likewise.
53516 (grub_total_module_size): Likewise.
53517 (grub_kernel_image_size): Likewise.
53518 (GRUB_MODULE_MAGIC): New constant.
53519 (grub_module_info): New structure.
53520 (grub_arch_modules_addr): New prototype.
53521 (grub_get_end_addr): Remove prototype.
53522 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53523 * include/grub/powerpc/ieee1275/kernel.h: New file.
53524 * include/grub/util/misc.h (grub_util_get_fp_size): New
53525 prototype.
53526 (grub_util_read_at): Likewise.
53527 (grub_util_write_image_at): Likewise.
53528 * kern/main.c (grub_get_end_addr): Remove function.
53529 (grub_load_modules): Call grub_arch_modules_addr instead of using
53530 grub_end_addr. Look for a grub_module_info struct in memory. Use
53531 the grub_module_info fields instead of calling grub_get_end_addr
53532 as loop conditions. Move grub_add_unused_region code here.
53533 (grub_add_unused_region): Remove function.
53534 * kern/i386/pc/init.c: Include grub/cache.h.
53535 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53536 one call to add_mem_region.
53537 (grub_arch_modules_addr): New function.
53538 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53539 (grub_total_module_size): Likewise.
53540 Include grub/machine/kernel.h.
53541 (grub_arch_modules_addr): New function.
53542 * util/grub-emu.c (grub_end_addr): Remove variable.
53543 (grub_total_module_size): Likewise.
53544 (grub_arch_modules_addr): New function.
53545 * util/misc.c: Include unistd.h.
53546 (grub_util_get_fp_size): New function.
53547 (grub_util_read_at): Likewise.
53548 (grub_util_write_image_at): Likewise.
53549 (grub_util_read_image): Call grub_util_read_at.
53550 (grub_util_write_image): Call grub_util_write_image_at.
53551 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53552 additional memory in kernel_img for a struct grub_module_info.
53553 Fill in that grub_module_info.
53554 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53555
53556 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53557
53558 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53559 New function.
53560 * include/grub/powerpc/ieee1275/ieee1275.h
53561 (grub_ieee1275_milliseconds): New prototype.
53562 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53563 Change to 1000.
53564 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53565 grub_ieee1275_milliseconds.
53566
53567 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53568
53569 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53570 variable.
53571 (find_options): New function.
53572 (cmain): Call find_options.
53573 * include/grub/powerpc/ieee1275/ieee1275.h
53574 (grub_ieee1275_realmode): New extern variable.
53575 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53576 grub_map if grub_ieee1275_realmode is false.
53577
53578 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53579
53580 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53581 lines are inserted and make it work like readline. Reported by
53582 Vincent Pelletier <subdino2004@yahoo.fr>.
53583
53584 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53585
53586 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53587
53588 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53589 `kern/powerpc/cache.S'.
53590
53591 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53592
53593 * genmk.rb: Handle the `Program' class in the main loop. Written
53594 by Johan Rydberg <jrydberg@gnu.org>.
53595 (Program): New class.
53596 (programs): New variable.
53597 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53598 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53599 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53600 (help_arch): Function removed.
53601 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53602 `powerpc/libgcc.h' and `loader.h'.
53603 (pkgdata_PROGRAMS): New variable.
53604 (sbin_UTILITIES): Variable removed.
53605 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53606 (grubof_SOURCES): Variable re-defined so it only includes the
53607 core functionality.
53608 (grubof_CFLAGS): Remove `-DGRUBOF'.
53609 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53610 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53611 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53612 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53613 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53614 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53615 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53616 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53617 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53618 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53619 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53620 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53621 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53622 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53623 (pc_mod_CFLAGS): New variables.
53624 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53625 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53626 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53627 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53628 Moved from here...
53629 * include/grub/i386/pc/init.h (grub_os_area_addr)
53630 (rub_os_area_size): ... to here.
53631 * include/grub/powerpc/ieee1275/ieee1275.h
53632 (grub_ieee1275_entry_fn): Export symbol.
53633 * include/grub/powerpc/ieee1275/init.h: New file.
53634 * include/grub/powerpc/libgcc.h: Likewise.
53635 * include/grub/cache.h: Likewise.
53636 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53637 <hollis@penguinppc.org>.
53638 * kern/dl.c: Include <grub/cache.h>.
53639 (grub_dl_flush_cache): New function.
53640 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53641 for this module.
53642 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53643 (grub_console_init): Removed prototypes.
53644 (grub_machine_init): Don't initialize the modules anymore.
53645 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53646 static.
53647 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53648 Macro undef removed.
53649 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53650 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53651 relocation `R_PPC_REL32'. Return an error when the relocation is
53652 unknown.
53653 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53654 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53655 * util/misc.c (grub_arch_sync_caches): Likewise.
53656
53657 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53658
53659 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53660 `symlist.c', add `grubof_symlist.c'.
53661 (symlist.c): Variable removed.
53662 (grubof_HEADERS): Variable added.
53663 (grubof_symlist.c): New target.
53664 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53665 `kernel_img_HEADERS'.
53666 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53667 * kern/powerpc/dl.c: New file.
53668 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53669 Function removed.
53670 (grub_arch_dl_relocate_symbols): Likewise.
53671 (grub_register_exported_symbols): Likewise.
53672
53673 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53674
53675 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53676 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53677 to fail instead. Reported by Vincent Pelletier
53678 <subdino2004@yahoo.fr>.
53679
53680 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53681 it is not allocated. Reported by Vincent Pelletier
53682 <subdino2004@yahoo.fr>.
53683
53684 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53685 output so the output looks better.
53686
53687 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53688
53689 Modulize the partition map support and add support for the amiga
53690 partition map.
53691
53692 * commands/ls.c: Include <grub/partition.h> instead of
53693 <grub/machine/partition.h>.
53694 * kern/disk.c: Likewise.
53695 * kern/rescue.c: Likewise.
53696 * loader/i386/pc/chainloader.c: Likewise.
53697 * normal/cmdline.c: Likewise.
53698 * kern/powerpc/ieee1275/init.c: Likewise.
53699 (grub_machine_init): Call `grub_pc_partition_map_init',
53700 `grub_amiga_partition_map_init' and
53701 `grub_apple_partition_map_init'.
53702 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53703 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53704 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53705 `partition.h' and `pc_partition.h'.
53706 (grub_setup_SOURCES): Remove
53707 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53708 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53709 (grub_emu_SOURCES): Likewise.
53710 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53711 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53712 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53713 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53714 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53715 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53716 (grubof_SOURCES): Likewise.
53717 * disk/i386/pc/partition.c: File removed.
53718 * disk/powerpc/ieee1275/partition.c: Likewise.
53719 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53720 * include/grub/i386/pc/partition.h: Likewise.
53721 * kern/partition.c: New file.
53722 * partmap/amiga.c: Likewise.
53723 * partmap/apple.c: Likewise.
53724 * partmap/pc.c: Likewise.
53725 * include/grub/partition.h: Likewise..
53726 * include/grub/pc_partition.h: Likewise.
53727 * util/grub-emu.c: Include <grub/partition.h> instead of
53728 <grub/machine/partition.h>.
53729 (main): Call `grub_pc_partition_map_init',
53730 `grub_amiga_partition_map_init' and
53731 `grub_apple_partition_map_init' and deinitialize afterwards.
53732 * util/i386/pc/biosdisk.c: Include `#include
53733 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53734 `<grub/machine/partition.h>'.
53735 * util/i386/pc/grub-setup.c: Likewise.
53736 * util/i386/pc/biosdisk.c: Likewise.
53737 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53738 partition information in case of a PC partition.
53739 * util/i386/pc/grub-setup.c: Include `#include
53740 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53741 `<grub/machine/partition.h>'.
53742 (setup): Only access the PC specific partition information in case
53743 of a PC partition.
53744
53745 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53746
53747 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53748 (grub_longjmp): Likewise.
53749 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53750 20.
53751 * normal/powerpc/setjmp.S: New file.
53752 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53753 `normal/powerpc/setjmp.S'.
53754 (grubof_CFLAGS): Add `-DGRUBOF'.
53755 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53756 [GRUB_UTIL && !GRUBOF].
53757
53758 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53759
53760 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53761 property named `name'. Correctly handle the error returned by
53762 `grub_ieee1275_finddevice' if a device can not be opened.
53763
53764 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53765
53766 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53767 `actual' for negativity.
53768 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53769 kern/fshelp.c.
53770
53771 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53772
53773 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53774 (PAGE_OFFSET): New macro.
53775 (CRTC_ADDR_PORT): Likewise.
53776 (CRTC_DATA_PORT): Likewise.
53777 (START_ADDR_HIGH_REGISTER): Likewise.
53778 (START_ADDR_LOW_REGISTER): Likewise.
53779 (GRAPHICS_ADDR_PORT): Likewise.
53780 (GRAPHICS_DATA_PORT): Likewise.
53781 (READ_MAP_REGISTER): Likewise.
53782 (INPUT_STATUS1_REGISTER): Likewise.
53783 (INPUT_STATUS1_VERTR_BIT): Likewise.
53784 (page): New variable.
53785 (wait_vretrace): New function.
53786 (set_read_map): Likewise.
53787 (set_start_address): Likewise.
53788 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53789 the right page.
53790 (check_vga_mem): Take the page into account.
53791 (write_char): Likewise.
53792 (write_cursor): Likewise.
53793 (scroll_up): Likewise. Copy the page to the page that is not
53794 shown and switch between both pages.
53795 (grub_vga_putchar): Fix off by one error.
53796 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53797 account.
53798
53799 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53800
53801 Add support for iso9660 (including rockridge).
53802
53803 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53804 (iso9660_mod_SOURCES): New variable.
53805 (iso9660_mod_CFLAGS): Likewise.
53806 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53807 * include/grub/fs.h (grub_iso9660_init): New prototype.
53808 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53809 * fs/iso9660.c: New file.
53810
53811 * include/grub/misc.h (grub_strncat): New prototype.
53812 * kern/misc.c (grub_strncat): New function.
53813
53814 * fs/hfs.c (grub_hfs_mount): Translate the error
53815 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53816 * fs/jfs.c (grub_jfs_mount): Likewise.
53817 * fs/ufs.c (grub_ufs_mount): Likewise.
53818
53819 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53820
53821 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53822 which initialized BAT registers.
53823 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53824 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53825 Move from here...
53826 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53827 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53828 ... to here.
53829 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53830 (grub_mapclaim): Likewise.
53831 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53832 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53833 hand.
53834
53835 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53836
53837 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53838 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53839 -ffreestanding and -msoft-float.
53840
53841 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53842
53843 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53844 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53845 set in grub_ieee1275_flags.
53846
53847 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53848
53849 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53850 prototype.
53851 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53852 grub_console_init first.
53853 Change the memory range used for grub_ieee1275_claim and
53854 grub_mm_init_region.
53855 Print an error message if the claim fails.
53856 Include <grub/misc.h>.
53857
53858 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53859
53860 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53861 Call grub_children_iterate for device nodes of type `scsi',
53862 `ide', or `ata'.
53863 (grub_ofdisk_open): Remove manual device alias resolution.
53864 Fix memory leak when device cannot be opened.
53865 * include/grub/powerpc/ieee1275/ieee1275.h
53866 (grub_children_iterate): New prototype.
53867 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53868 New function.
53869 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53870 Return -1 if args.size was -1.
53871
53872 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53873
53874 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53875 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53876 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53877 Open Firmware's memory for it; claim memory from _start to _end.
53878 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53879 (_end): New extern.
53880 (_start): Zero BSS from __bss_start to _end.
53881 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53882 New extern.
53883 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53884
53885 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53886
53887 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53888 -1 if args.base was -1.
53889
53890 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53891
53892 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53893 escape sequence instead of a literal ^L. Also call
53894 grub_ofconsole_gotoxy.
53895
53896 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53897
53898 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53899 void * arguments to grub_addr_t. All callers updated. Also make
53900 the `result' argument optional.
53901 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53902 All callers updated.
53903
53904 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53905
53906 * commands/ls.c (grub_ls_list_files): Use the string following the
53907 initial ')', if present, as the filesystem path.
53908 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53909
53910 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53911
53912 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53913
53914 Make the source code of the menu interface more readable.
53915
53916 * normal/menu.c: Include grub/mm.h.
53917 (TERM_WIDTH): New macro.
53918 (TERM_HEIGHT): Likewise.
53919 (TERM_INFO_HEIGHT): Likewise.
53920 (TERM_MARGIN): Likewise.
53921 (TERM_SCROLL_WIDTH): Likewise.
53922 (TERM_TOP_BORDER_Y): Likewise.
53923 (TERM_LEFT_BORDER_X): Likewise.
53924 (TERM_BORDER_WIDTH): Likewise.
53925 (TERM_MESSAGE_HEIGHT): Likewise.
53926 (TERM_BORDER_HEIGHT): Likewise.
53927 (TERM_NUM_ENTRIES): Likewise.
53928 (TERM_FIRST_ENTRY_Y): Likewise.
53929 (TERM_ENTRY_WIDTH): Likewise.
53930 (TERM_CURSOR_X): Likewise.
53931 (draw_border): Use macros instead of magic numbers.
53932 (print_entry): Likewise.
53933 (print_entries): Likewise.
53934 (run_menu): Likewise. Also, handle the key 'e'.
53935 (run_menu_entry): Ignore empty command lines.
53936 (print_message): Added a new argument EDIT. If EDIT is true,
53937 print a different message.
53938 (init_page): Likewise.
53939 (edit_menu_entry): New function. Not implemented yet.
53940
53941 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53942
53943 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53944 can be loaded from normal mode.
53945
53946 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53947 `multiboot.mod'.
53948 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53949 (multiboot_mod_CFLAGS): New variables.
53950 * loader/i386/pc/linux_normal.c: New file.
53951 * loader/i386/pc/multiboot_normal.c: Likewise.
53952
53953 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53954 attribute `unused'.
53955
53956 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53957 `fdiro' to read the mode information from instead of `diro'.
53958
53959 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53960 looking up a symlink.
53961
53962 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53963 macro.
53964 * normal/command.c (grub_command_execute): Don't parse the
53965 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53966 flags of the command.
53967
53968 * normal/menu.c (grub_menu_run): Fix typo.
53969
53970 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53971
53972 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53973
53974 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53975 `y + 1' instead of `y - 1'.
53976
53977 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53978
53979 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53980
53981 From Hollis Blanchard <hollis@penguinppc.org>:
53982 * kern/misc.c (memmove): New alias for grub_memmove.
53983 (memcmp): New alias for grub_memcmp.
53984 (memset): New alias for grub_memset.
53985 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53986 Change "int handle" to "grub_ieee1275_phandle_t handle".
53987 * include/grub/powerpc/ieee1275/ieee1275.h
53988 (grub_ieee1275_get_property): Likewise.
53989
53990 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53991
53992 Added normal mode command `chainloader' as module chain.mod, which
53993 depends on normal.mod and _chain.mod.
53994
53995 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53996 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53997 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53998 Deleted prototype.
53999 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54000 but arguments parsing moved to ...
54001 (grub_chainloader_cmd): ... here. New function.
54002 * include/grub/i386/pc/chainloader.h: New file.
54003 * loader/i386/pc/chainloader_normal.c: Likewise.
54004
54005 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54006
54007 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54008 (grub_mkimage_LDFLAGS): Likewise.
54009 (grub_emu_SOURCES): Likewise.
54010 (kernel_img_HEADERS): Added fshelp.h.
54011 * fs/ext2.c: Include <grub/fshelp.h>.
54012 (FILETYPE_REG): New macro.
54013 (FILETYPE_INO_REG): Likewise.
54014 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54015 Changed all users.
54016 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54017 all users.
54018 (grub_fshelp_node): New struct.
54019 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54020 to a pointer.
54021 (grub_ext2_get_file_block): Removed function.
54022 (grub_ext2_read_block): New function.
54023 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54024 This function was written.
54025 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54026 (grub_ext2_find_file): Removed function.
54027 (grub_ext2_read_symlink): New function.
54028 (grub_ext2_iterate_dir): Likewise.
54029 (grub_ext2_open): Rewritten.
54030 (grub_ext2_dir): Rewritten.
54031 * include/grub/fshelp.h: New file.
54032 * fs/fshelp.c: Likewise.
54033
54034 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54035
54036 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54037 (print_message): Add a missing newline.
54038 (run_menu): Added timeout support.
54039 (run_menu_entry): New local function.
54040 (grub_menu_run): Added support for booting.
54041
54042 * kern/loader.c (grub_loader_is_loaded): New function.
54043
54044 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54045 (grub_get_rtc): Exported.
54046
54047 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54048 (grub_get_rtc): Exported.
54049
54050 * include/grub/normal.h (struct grub_command_list): Remove
54051 constant from the member `command'.
54052
54053 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54054
54055 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54056
54057 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54058
54059 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54060
54061 Add support for the JFS filesystem.
54062
54063 * fs/jfs.c: New file.
54064 * include/grub/fs.h (grub_jfs_init): New prototype.
54065 (grub_jfs_fini): New prototype.
54066 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54067 (grub_emu_SOURCES): Likewise.
54068 (pkgdata_MODULES): Add jfs.mod.
54069 (jfs_mod_SOURCES): New variable.
54070 (jfs_mod_CFLAGS): Likewise.
54071 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54072 (grubof_SOURCES): Likewise.
54073 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54074
54075 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54076 endian to the host endian.
54077 (grub_fat_utf16_to_utf8): Move function from there...
54078 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54079 the endianness of the source string anymore.
54080 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54081
54082 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54083
54084 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54085 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54086 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54087 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54088
54089 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54090 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54091 for `node_found' and `it_dir'.
54092 (grub_hfs_dir): Add prototype for `dir_hook'.
54093
54094 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54095 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54096 and `indir32' to silence a gcc warning.
54097
54098 * include/grub/fs.h (grub_hfs_init): New prototype.
54099 (grub_hfs_fini): Likewise.
54100
54101
54102 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54103
54104 Each disk device has its own id now. This is useful to make use
54105 of multiple disk devices.
54106
54107 * include/grub/disk.h (grub_disk_dev_id): New enum.
54108 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54109 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54110
54111 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54112 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54113
54114 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54115 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54116
54117 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54118 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54119
54120 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54121 "id" which is used by the cache manager.
54122
54123 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54124 of just "GRUB".
54125
54126 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54127
54128 * fs/hfs.c: New file.
54129 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54130 (grub_emu_SOURCES): Likewise.
54131 (pkgdata_MODULES): Add hfs.mod.
54132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54133 (grubof_SOURCES): Likewise.
54134 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54135
54136 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54137 * kern/misc.c (grub_strncasecmp): Add function.
54138
54139 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54140
54141 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54142 with parentheses.
54143
54144 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54145 (grub_ext2_dir): In case the directory entry type is unknown, read
54146 it from the inode.
54147
54148 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54149
54150 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54151 grub_load_linux instead of grub_rescue_cmd_linux as second
54152 argument of grub_rescue_register_command.
54153
54154 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54155
54156 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54157
54158 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54159 function.
54160 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54161 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54162 `loader/powerpc/ieee1275/linux.c',
54163 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54164 * include/grub/powerpc/ieee1275/ieee1275.h
54165 (grub_ieee1275_release): New prototype.
54166 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54167 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54168 normal, boot, linux and linux_normal.
54169 * loader/powerpc/ieee1275/linux.c: New file.
54170 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54171
54172 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54173
54174 * normal/arg.c (grub_arg_parse): Correct error handling after
54175 reallocating the argumentlist (check if `argl' is not null instead
54176 of checking if `args' is not null).
54177 * kern/mm.c (grub_realloc): Return the same pointer when using the
54178 same region, instead of returning the header address.
54179
54180 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54181
54182 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54183 one block instead of two when looking for the initial partition.
54184 (grub_partition_probe): Initialize the local variable `p' with 0.
54185 Use base 10 for the grub_strtoul call.
54186 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54187 need for one local variable.
54188 (grub_strtoul): Don't add the new value to `num', instead of that
54189 just assign it.
54190
54191 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54192
54193 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54194 (pxeboot_img_SOURCES): New variable.
54195 (pxeboot_img_ASFLAGS): Likewise.
54196 (pxeboot_img_LDFLAGS): Likewise.
54197 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54198 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54199 <lode_leroy@hotmail.com>.
54200
54201 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54202
54203 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54204 there was no input.
54205
54206 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54207
54208 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54209 the history buffer logic.
54210
54211 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54212
54213 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54214 (FILETYPE_INO_SYMLINK): New macros.
54215 (grub_ext2_find_file): Check if the node is a directory using the
54216 inode stat information instead of using the filetype in the
54217 dirent. Exclude the first character of an absolute symlink.
54218 (grub_ext2_dir): Mask out the filetype part of the mode member of
54219 the inode.
54220
54221 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54222
54223 Add support for UFS version 1 and 2. Add support for the minix
54224 filesystem version 1 and 2, both the variants with 14 and 30 long
54225 filenames.
54226
54227 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54228 fs/minix.c.
54229 (grub_emu_SOURCES): Likewise.
54230 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54231 (ufs_mod_SOURCES): New variable.
54232 (ufs_mod_CFLAGS): Likewise.
54233 (minix_mod_SOURCES): Likewise.
54234 (minix_mod_CFLAGS): Likewise.
54235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54236 fs/minix.c.
54237 (grubof_SOURCES): Likewise.
54238 * fs/ufs.c: New file.
54239 * fs/minix.c: New file.
54240 * include/grub/fs.h (grub_ufs_init): New prototype.
54241 (grub_ufs_fini): Likewise.
54242 (grub_minix_init): Likewise.
54243 (grub_minix_fini): Likewise.
54244 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54245 minix fs.
54246
54247 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54248
54249 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54250 commands/ls.c, commands/terminal.c, commands/boot.c,
54251 commands/cmp.c and commands/cat.c.
54252 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54253
54254 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54255 "env.h"
54256
54257 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54258
54259 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54260 and grub_, respectively. Because the conversion is trivial and
54261 mechanical, I omit the details here. Please refer to the CVS
54262 if you need more information.
54263
54264 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54265
54266 * include/pupa: Renamed to ...
54267 * include/grub: ... this.
54268 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54269 * util/i386/pc/grub-mkimage.c: ... this.
54270 * util/i386/pc/pupa-setup.c: Renamed to ...
54271 * util/i386/pc/grub-setup.c: ... this.
54272 * util/pupa-emu.c: Renamed to ...
54273 * util/grub-emu.c: ... this.
54274
54275 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54276
54277 Add support for the newworld apple macintosh (PPC). This has been
54278 tested on the powerbook 2000 only. It only adds support for
54279 generic ieee1275 functions, console and disk support. This should
54280 be easy to port to other architectures with support for Open
54281 Firmware.
54282
54283 * configure.ac: Accept the powerpc as host_cpu. In the case of
54284 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54285 specific tests are only executed while building for the i386.
54286 Inverse test for crosscompile.
54287 * genmk.rb (Utility): Allow assembler files.
54288 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54289 * conf/powerpc-ieee1275.rmk: New file.
54290 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54291 * disk/powerpc/ieee1275/partition.c: Likewise.
54292 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54293 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54294 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54295 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54296 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54297 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54298 * include/pupa/powerpc/ieee1275/loader.h
54299 * include/pupa/powerpc/setjmp.h: Likewise.
54300 * include/pupa/powerpc/types.h: Likewise.
54301 * kern/powerpc/ieee1275/init.c: Likewise.
54302 * kern/powerpc/ieee1275/openfw.c: Likewise.
54303 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54304
54305 These files were written by Johan Rydberg
54306 (jrydberg@night.trouble.net) and I only modified them slightly.
54307
54308 * boot/powerpc/ieee1275/cmain.c: New file.
54309 * boot/powerpc/ieee1275/crt0.S: Likewise.
54310 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54311 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54312
54313 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54314
54315 * Makefile.in: Update copyright.
54316 * genmodsrc.sh: Likewise.
54317 * gensymlist.sh: Likewise.
54318 * term/i386/pc/vga.c: Indent correctly.
54319
54320 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54321 bugreporting address.
54322 * util/i386/pc/pupa-setup.c (usage): Likewise,
54323 (main): Call pupa_ext2_init and pupa_ext2_fini.
54324
54325 * fs/fat.c (log2): Renamed to ...
54326 (fat_log2): ... this.
54327 All callers changed.
54328 * kern/misc.c (memcpy): Alias to pupa_memmove.
54329 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54330 lvalue cast.
54331 * util/console.c (pupa_ncurses_fini): Return 0.
54332
54333 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54334 Move fail label here.
54335 [__GNU__]: Don't warn when using stat.
54336 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54337 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54338 long int. Use strtol instead of strtoul.
54339
54340 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54341
54342 * commands/boot.c: New file.
54343 * commands/cat.c: Likewise.
54344 * commands/cmp.c: Likewise.
54345 * commands/ls.c: Likewise.
54346 * commands/terminal.c: Likewise.
54347 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54348 (pupa_register_command): Changed interface to match the new
54349 argument parser.
54350 (pupa_command_execute): Changed (almost rewritten) so it uses
54351 pupa_split_command. Added support for setting variables using the
54352 syntax `foo=bar'.
54353 (rescue_command): Changed to work with the new argument parser.
54354 (terminal_command): Moved from here to commands/terminal.c.
54355 (set_command): New function.
54356 (unset_command): New function.
54357 (insmod_command): New function.
54358 (rmmod_command): New function.
54359 (lsmod_command): New function.
54360 (pupa_command_init): Don't initialize the command terminal
54361 anymore. Initialize the commands set, unset, insmod, rmmod and
54362 lsmod.
54363 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54364 (kernel_img_HEADERS): Add arg.h and env.h.
54365 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54366 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54367 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54368 normal/arg.c.
54369 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54370 terminal.mod.
54371 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54372 (boot_mod_SOURCES): New variable.
54373 (terminal_mod_SOURCES): Likewise.
54374 (ls_mod_SOURCES): Likewise.
54375 (cmp_mod_SOURCES): Likewise.
54376 (cat_mod_SOURCES): Likewise.
54377
54378 * normal/arg.c: New file.
54379 * kern/env.c: Likewise.
54380 * include/pupa/arg.h: Likewise.
54381 * include/pupa/env.h: Likewise.
54382 * font/manager.c (font_command): Changed to match argument parsing
54383 interface changes.
54384 (PUPA_MOD_INIT): Likewise.
54385 * hello/hello.c (pupa_cmd_hello): Likewise.
54386 (PUPA_MOD_INIT): Likewise.
54387 * include/pupa/disk.h: Include <pupa/device.h>.
54388 (pupa_print_partinfo): New prototype.
54389 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54390 (pupa_dl_get_prefix): Likewise.
54391 * include/pupa/misc.h: Include <pupa/err.h>.
54392 (pupa_isgraph): New prototype.
54393 (pupa_isdigit): Likewise.
54394 (pupa_split_cmdline): Likewise.
54395 * include/pupa/normal.h: Include <pupa/arg.h>.
54396 (pupa_command): Changed the prototype of the member `func' to
54397 match the argument parsing interface. Added member `options'.
54398 (pupa_register_command): Updated to match function.
54399 (pupa_arg_parse): New prototype.
54400 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54401 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54402 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54403 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54404 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54405 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54406 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54407 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54408 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54409 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54410 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54411 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54412 * kern/disk.c: Include <pupa/file.h>.
54413 (pupa_print_partinfo): New function.
54414 * kern/dl.c: Include <pupa/env.h>.
54415 (pupa_dl_dir): Variable removed.
54416 (pupa_dl_load): Use the environment variable `prefix' instead of
54417 the variable pupa_dl_dir.
54418 (pupa_dl_set_prefix): Function removed.
54419 (pupa_dl_get_prefix): Likewise.
54420 * kern/i386/pc/init.c: Include <pupa/env.h>.
54421 (pupa_machine_init): Use the environment variable `prefix' instead of
54422 using pupa_dl_set_prefix to set the prefix.
54423 * kern/main.c: Include <pupa/env.h>.
54424 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54425 using pupa_dl_get_prefix to get the prefix.
54426 * kern/misc.c: Include <pupa/env.h>.
54427 (pupa_isdigit): New function.
54428 (pupa_isgraph): Likewise.
54429 (pupa_ftoa): Likewise.
54430 (pupa_vsprintf): Added support for printing values of the type
54431 `double'. Make it possible to format variable output when using
54432 formatting like `%1.2%f'.
54433 (pupa_split_cmdline): New function.
54434 * kern/rescue.c: Include <pupa/env.h>.
54435 (next_word): Removed function.
54436 (pupa_rescue_cmd_prefix): Likewise.
54437 (pupa_rescue_cmd_set): New function.
54438 (pupa_rescue_cmd_unset): New function.
54439 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54440 split the command line instead of splitting it here. Added
54441 support for setting variables using the syntax `foo=bar'. Don't
54442 initialize the prefix command anymore. Initialized the set and
54443 unset commands.
54444 * normal/cmdline.c: Include <pupa/env.h>.
54445 (pupa_tab_complete): Added prototypes for print_simple_completion,
54446 print_partition_completion, add_completion, iterate_commands,
54447 iterate_dev, iterate_part and iterate_dir. Moved code to print
54448 partition information from here to kern/disk.c.
54449 (pupa_cmdline_run): Don't check if the function exists anymore.
54450 * normal/main.c: Include <pupa/env.h>.
54451 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54452 instead of using pupa_dl_get_prefix to get the prefix.
54453 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54454 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54455 warning.
54456 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54457 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54458 ((unused))' to silence a gcc warning.
54459 (pupa_vga_setcolor): Likewise.
54460 (debug_command): Changed to match argument parsing
54461 interface changes.
54462 * util/pupa-emu.c: Include <pupa/env.h>.
54463 (options): Added 0's for unused fields to silence a gcc warning.
54464 (argp): Likewise.
54465 (main): Use the environment variable `prefix' instead of using
54466 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54467 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54468 and terminal.
54469
54470 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54471 * util/misc.c: Include <malloc.h>.
54472 (pupa_malloc): Rewritten so errors are correctly reported.
54473 (pupa_realloc): Likewise.
54474 (pupa_memalign): Likewise.
54475 (pupa_mm_init_region): Declare unused variables with
54476 `__attribute__ ((unused))' to silence a gcc warning.
54477 * normal/i386/setjmp.S: Remove tab at the end of the file to
54478 silence a gcc warning.
54479 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54480 variables with `__attribute__ ((unused))' to silence a gcc
54481 warning.
54482 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54483 local variable i unsigned to silence a gcc warning.
54484
54485 * kern/term.c: Include <pupa/misc.h>.
54486 (pupa_more_lines): New variable.
54487 (pupa_more): Likewise.
54488 (pupa_putcode): When the pager is active pause at the end of every
54489 screen.
54490 (pupa_set_more): New function.
54491 * include/pupa/term.h (pupa_set_more): New prototype.
54492
54493
54494 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54495
54496 Now this project is GRUB 2 rather than PUPA. The location of
54497 the CVS repository was moved to GRUB's.
54498
54499 * configure.ac: Use bug-grub as the reporting address.
54500 Use GRUB instead of PUPA.
54501 Change the version number to 1.90.
54502
54503 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54504
54505 * genkernsyms.sh: Updated copyright information.
54506 * genmk.rb: Likewise.
54507 * genmodsrc.sh: Likewise.
54508 * gensymlist.sh: Likewise.
54509 * boot/i386/pc/boot.S: Likewise.
54510 * boot/i386/pc/diskboot.S: Likewise.
54511 * disk/i386/pc/biosdisk.c: Likewise.
54512 * disk/i386/pc/partition.c: Likewise.
54513 * font/manager.c: Likewise.
54514 * fs/ext2.c: Likewise.
54515 * fs/fat.c: Likewise.
54516 * include/pupa/boot.h: Likewise.
54517 * include/pupa/device.h: Likewise.
54518 * include/pupa/disk.h: Likewise.
54519 * include/pupa/dl.h: Likewise.
54520 * include/pupa/elf.h: Likewise.
54521 * include/pupa/err.h: Likewise.
54522 * include/pupa/file.h: Likewise.
54523 * include/pupa/font.h: Likewise.
54524 * include/pupa/fs.h: Likewise.
54525 * include/pupa/kernel.h: Likewise.
54526 * include/pupa/loader.h: Likewise.
54527 * include/pupa/misc.h: Likewise.
54528 * include/pupa/mm.h: Likewise.
54529 * include/pupa/net.h: Likewise.
54530 * include/pupa/normal.h: Likewise.
54531 * include/pupa/rescue.h: Likewise.
54532 * include/pupa/setjmp.h: Likewise.
54533 * include/pupa/symbol.h: Likewise.
54534 * include/pupa/term.h: Likewise.
54535 * include/pupa/types.h: Likewise.
54536 * include/pupa/i386/setjmp.h: Likewise.
54537 * include/pupa/i386/types.h: Likewise.
54538 * include/pupa/i386/pc/biosdisk.h: Likewise.
54539 * include/pupa/i386/pc/boot.h: Likewise.
54540 * include/pupa/i386/pc/console.h: Likewise.
54541 * include/pupa/i386/pc/init.h: Likewise.
54542 * include/pupa/i386/pc/kernel.h: Likewise.
54543 * include/pupa/i386/pc/linux.h: Likewise.
54544 * include/pupa/i386/pc/loader.h: Likewise.
54545 * include/pupa/i386/pc/memory.h: Likewise.
54546 * include/pupa/i386/pc/multiboot.h: Likewise.
54547 * include/pupa/i386/pc/partition.h: Likewise.
54548 * include/pupa/i386/pc/time.h: Likewise.
54549 * include/pupa/i386/pc/vga.h: Likewise.
54550 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54551 * include/pupa/util/getroot.h: Likewise.
54552 * include/pupa/util/misc.h: Likewise.
54553 * include/pupa/util/resolve.h: Likewise.
54554 * kern/device.c: Likewise.
54555 * kern/disk.c: Likewise.
54556 * kern/dl.c: Likewise.
54557 * kern/err.c: Likewise.
54558 * kern/file.c: Likewise.
54559 * kern/fs.c: Likewise.
54560 * kern/loader.c: Likewise.
54561 * kern/main.c: Likewise.
54562 * kern/misc.c: Likewise.
54563 * kern/mm.c: Likewise.
54564 * kern/rescue.c: Likewise.
54565 * kern/term.c: Likewise.
54566 * kern/i386/dl.c: Likewise.
54567 * kern/i386/pc/init.c: Likewise.
54568 * kern/i386/pc/lzo1x.S: Likewise.
54569 * kern/i386/pc/startup.S: Likewise.
54570 * loader/i386/pc/chainloader.c: Likewise.
54571 * loader/i386/pc/linux.c: Likewise.
54572 * loader/i386/pc/multiboot.c: Likewise.
54573 * normal/cmdline.c: Likewise.
54574 * normal/command.c: Likewise.
54575 * normal/main.c: Likewise.
54576 * normal/menu.c: Likewise.
54577 * normal/i386/setjmp.S: Likewise.
54578 * term/i386/pc/console.c: Likewise.
54579 * term/i386/pc/vga.c: Likewise.
54580 * util/console.c: Likewise.
54581 * util/genmoddep.c: Likewise.
54582 * util/misc.c: Likewise.
54583 * util/pupa-emu.c: Likewise.
54584 * util/resolve.c: Likewise.
54585 * util/unifont2pff.rb: Likewise.
54586 * util/i386/pc/biosdisk.c: Likewise.
54587 * util/i386/pc/getroot.c: Likewise.
54588 * util/i386/pc/pupa-mkimage.c: Likewise.
54589 * util/i386/pc/pupa-setup.c: Likewise.
54590
54591 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54592
54593 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54594 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54595 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54596 reading and reset it after reading.
54597 (pupa_ext2_close): Return PUPA_ERR_NONE.
54598
54599 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54600 Correct value.
54601 (struct linux_kernel_header): Add kernel_version and
54602 initrd_addr_max.
54603 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54604 pupa_file_read succeeds.
54605 (pupa_rescue_cmd_initrd): Implement.
54606
54607 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54608
54609 * fs/ext2.c (pupa_ext2_label): New function.
54610 (pupa_ext2_fs): Added label.
54611 * fs/fat.c (pupa_fat_label): New function.
54612 (pupa_fat_fs): Added label.
54613 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54614
54615 * kern/misc.c (pupa_strndup): New function.
54616 * include/pupa/misc.h (pupa_strndup): New prototype.
54617
54618 * include/pupa/normal.h: Include <pupa/err.h>.
54619 (pupa_set_history): New prototype.
54620 (pupa_iterate_commands): New prototype.
54621 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54622 <pupa/disk.h>, <pupa/file.h>.
54623 (hist_size): New variable.
54624 (hist_lines): Likewise.
54625 (hist_end): Likewise.
54626 (hist_used): Likewise.
54627 (pupa_set_history): New function.
54628 (pupa_history_get): Likewise.
54629 (pupa_history_add): Likewise.
54630 (pupa_history_replace): Likewise.
54631 (pupa_tab_complete): Likewise.
54632 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54633 completion shows partitionnames while completing partitions, this
54634 feature was suggested by Jeff Bailey.
54635 * normal/command.c (pupa_iterate_commands): New function.
54636 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54637 (pupa_normal_init): Initialize history buffer.
54638 (PUPA_MOD_INIT): Likewise.
54639 (pupa_normal_fini): Free the history buffer.
54640 (PUPA_MOD_FINI): Likewise.
54641
54642 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54643 key.
54644
54645 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54646 * configure.ac [i386]: Check for regparam bug.
54647 (NESTED_FUNC_ATTR) [! i386]: Defined.
54648
54649 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54650
54651 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54652 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54653 (pupa_emu_SOURCES): New variable.
54654 (pupa_emu_LDFLAGS): Likewise.
54655 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54656 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54657 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54658 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54659 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54660 (pupa_jmp_buf): New typedef.
54661 (pupa_setjmp) [PUPA_UTIL]: New macro.
54662 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54663 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54664 (pupa_refresh): New prototype.
54665 * include/pupa/util/getroot.h: New file.
54666 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54667 it.
54668 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54669 (pupa_rescue_cmd_cat): Likewise.
54670 (pupa_rescue_cmd_ls): Likewise.
54671 (pupa_rescue_cmd_testload): Likewise.
54672 (pupa_rescue_cmd_lsmod): Likewise.
54673 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54674 * normal/menu.c (run_menu): Likewise.
54675 * kern/term.c (pupa_cls): Likewise.
54676 (pupa_refresh): New function.
54677 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54678 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54679 * util/console.c: New file.
54680
54681 * util/i386/pc/getroot.c: New file.
54682 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54683 (pupa_putchar): New function.
54684 (pupa_refresh): Likewise.
54685 (xgetcwd): Function moved to ...
54686 (strip_extra_slashes): Likewise.
54687 (get_prefix): Likewise.
54688 * util/i386/pc/getroot.c: ... here.
54689 (find_root_device): Function moved and renamed to...
54690 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54691 Changed all callers.
54692 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54693 and renamed to...
54694 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54695 Changed all callers.
54696 * util/misc.c (pupa_memalign): New function.
54697 (pupa_mm_init_region): Likewise.
54698 (pupa_register_exported_symbols): Likewise.
54699 (pupa_putchar): Function removed.
54700 * util/pupa-emu.c: New file.
54701
54702 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54703
54704 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54705 (_multiboot_mod_SOURCES): New variable.
54706 (_multiboot_mod_CFLAGS): Likewise.
54707 * loader/i386/pc/multiboot.c: New file.
54708 * include/pupa/i386/pc/multiboot.h: Likewise.
54709 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54710 (pupa_multiboot_real_boot): New function.
54711 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54712 (pupa_multiboot_real_boot): New prototype.
54713 (pupa_rescue_cmd_multiboot): Likewise
54714 (pupa_rescue_cmd_module): Likewise.
54715
54716 * kern/loader.c (pupa_loader_set): Continue when
54717 pupa_loader_unload_func() fails.
54718 (pupa_loader_unset): New function.
54719 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54720
54721 * kern/misc.c (pupa_stpcpy): New function.
54722 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54723
54724 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54725
54726 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54727 for available extensions.
54728
54729 * include/pupa/i386/pc/time.h: New file.
54730 * kern/disk.c: Include <pupa/machine/time.h>.
54731 (PUPA_CACHE_TIMEOUT): New macro.
54732 (pupa_last_time): New variable.
54733 (pupa_disk_open): Flush the cache when there was a timeout.
54734 (pupa_disk_close): Reset the timer.
54735 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54736 pupa_currticks.
54737 * util/misc.c: Include <sys/times.h>
54738 (pupa_get_rtc): New function.
54739
54740 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54741
54742 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54743 as blocks.
54744 (pupa_ext2_get_file_block): Use blocks member.
54745
54746 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54747 first block. Return -1 instead of pupa_errno on error.
54748
54749 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54750
54751 * README: In the pupa-mkimage example use _chain instead of chain
54752 and ext2 instead of fat.
54753 * TODO: Replace ext2fs with jfs as an example. Add an item for
54754 adding journal playback for ext2fs.
54755 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54756 (pkgdata_MODULES): Added ext2.mod.
54757 (ext2_mod_SOURCES): New variable.
54758 (ext2_mod_CFLAGS): Likewise.
54759 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54760 * include/pupa/misc.h (pupa_strncpy): New prototype.
54761 (pupa_strcat): Likewise.
54762 (pupa_strncmp): Likewise.
54763 * kern/misc.c (pupa_strcat): Enable function.
54764 (pupa_strncpy): New function.
54765 (pupa_strncmp): Likewise.
54766 * fs/ext2.c: New file.
54767
54768 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54769 when the read failed before retrying.
54770 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54771 (_FILE_OFFSET_BITS): Likewise.
54772 * configure.ac: Added AC_SYS_LARGEFILE.
54773
54774 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54775
54776 * genmk.rb (PModule#rule): Make sure to get only symbol names
54777 from the output of nm.
54778 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54779
54780 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54781
54782 I forgot to check in these changes for a long time. This adds
54783 incomplete support for VGA console, and this is still very
54784 buggy. Also, a lot of consideration is required for I18N,
54785 UNICODE, and VGA font issues. Therefore, assume that this is
54786 such that "better than nothing".
54787
54788 * font/manager.c: New file.
54789 * include/pupa/font.h: Likewise.
54790 * include/pupa/i386/pc/vga.h: Likewise.
54791 * term/i386/pc/vga.c: Likewise.
54792 * util/unifont2pff.rb: Likewise.
54793
54794 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54795 (pkgdata_MODULES): Added vga.mod and font.mod.
54796 (vga_mod_SOURCES): New variables.
54797 (vga_mod_CFLAGS): Likewise.
54798 (font_mod_SOURCES): Likewise.
54799 (font_mod_CFLAGS): Likewise.
54800
54801 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54802
54803 * include/pupa/term.h: Include pupa/err.h.
54804 (struct pupa_term): Added init and fini.
54805 Changed the argument of putchar to pupa_uint32_t.
54806
54807 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54808 (pupa_console_real_putchar): New prototype.
54809 (pupa_console_putchar): Removed.
54810 (pupa_console_checkkey): Exported.
54811 (pupa_console_getkey): Likewise.
54812
54813 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54814 characters.
54815
54816 * kern/term.c (pupa_term_set_current): Rewritten.
54817 (pupa_putchar): Likewise.
54818 (pupa_putcode): New function.
54819
54820 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54821 (pupa_console_real_putchar): ... this.
54822 (pupa_vga_set_mode): New function.
54823 (pupa_vga_get_font): Likewise.
54824
54825 * normal/command.c: Include pupa/term.h.
54826 (terminal_command): New function.
54827 (pupa_command_init): Register the command "terminal".
54828
54829 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54830 (DISP_UP): Likewise.
54831 (DISP_RIGHT): Likewise.
54832 (DISP_DOWN): Likewise.
54833 (DISP_HLINE): Likewise.
54834 (DISP_VLINE): Likewise.
54835 (DISP_UL): Likewise.
54836 (DISP_UR): Likewise.
54837 (DISP_LL): Likewise.
54838 (DISP_LR): Likewise.
54839
54840 * term/i386/pc/console.c (pupa_console_putchar): New function.
54841
54842 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54843
54844 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54845 FIX. Reverse the path_list.
54846
54847 * include/pupa/normal.h: Export pupa_register_command and
54848 pupa_unregister_command.
54849
54850 * hello/hello.c (pupa_cmd_hello): New module.
54851 * conf/i386-pc.rmk: Added hello.mod.
54852
54853 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54854
54855 * kern/i386/pc/lzo1x.S: New file.
54856
54857 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54858 (compress_kernel): New variable.
54859 (generate_image): Heavily modified to support compressing a
54860 large part of the core image.
54861
54862 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54863 leak.
54864 (pupa_util_load_image): New function.
54865
54866 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54867 (pupa_compressed_size): New variable.
54868 (codestart): Enable Gate A20 here.
54869 Decompress the compressed part of the core image.
54870 Rearrange the code to put functions and variables which are
54871 required for initialization in the non-compressed part.
54872 Include lzo1x.S.
54873
54874 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54875 here.
54876
54877 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54878
54879 * include/pupa/i386/pc/kernel.h
54880 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54881 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54882 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54883 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54884 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54885
54886 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54887
54888 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54889 (Utility#rule): Likewise.
54890
54891 * configure.ac: Check if LZO is available.
54892
54893 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54894
54895 * include/pupa/normal.h: New file.
54896 * include/pupa/setjmp.h: Likewise.
54897 * include/pupa/i386/setjmp.h: Likewise.
54898 * normal/cmdline.c: Likewise.
54899 * normal/command.c: Likewise.
54900 * normal/main.c: Likewise.
54901 * normal/menu.c: Likewise.
54902 * normal/i386/setjmp.S: Likewise.
54903
54904 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54905 (pupa_rescue_cmd_initrd): Likewise.
54906
54907 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54908 Likewise.
54909
54910 * kern/i386/pc/startup.S (translation_table): New variable.
54911 (translate_keycode): New function.
54912 (pupa_console_getkey): Call translate_keycode.
54913
54914 * kern/rescue.c (attempt_normal_mode): New function.
54915 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54916 it failed, print a message.
54917
54918 * kern/mm.c (pupa_real_malloc): Print more information when a
54919 free magic is broken.
54920 (pupa_free): If the first free header is not free actually, set
54921 it to P.
54922
54923 * kern/main.c (pupa_load_normal_mode): Just load the module
54924 "normal".
54925 (pupa_main): Don't print the message
54926 "Entering into rescue mode..." here.
54927
54928 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54929 Declared.
54930 (pupa_rescue_cmd_initrd): Likewise.
54931 (pupa_rescue_cmd_initrd): Likewise.
54932
54933 * include/pupa/symbol.h (FUNCTION): Specify the type.
54934 (VARIABLE): Likewise.
54935
54936 * include/pupa/err.h (pupa_err_t): Added
54937 PUPA_ERR_UNKNOWN_COMMAND.
54938
54939 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54940 (pupa_dl_get_prefix): Likewise.
54941
54942 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54943 Added _chain.mod and _linux.mod instead of chain.mod and
54944 linux.mod.
54945 (chain_mod_SOURCES): Renamed to ...
54946 (_chain_mod_SOURCES): ... this.
54947 (chain_mod_CFLAGS): Renamed to ...
54948 (_chain_mod_CFLAGS): ... this.
54949 (linux_mod_SOURCES): Renamed to ...
54950 (_linux_mod_SOURCES): ... this.
54951 (linux_mod_CFLAGS): Renamed to ...
54952 (_linux_mod_CFLAGS): ... this.
54953 (normal_mod_SOURCES): New variable.
54954 (normal_mod_CFLAGS): Likewise.
54955 (normal_mod_ASFLAGS): Likewise.
54956
54957 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54958
54959 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54960 possible.
54961
54962 * kern/dl.c (pupa_dl_ref): Refer depending modules
54963 recursively.
54964 (pupa_dl_unref): Unrefer depending modules recursively.
54965 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54966 a module is unloaded before one depending on that module is
54967 unloaded.
54968 (pupa_dl_unload): Unload depending modules explicitly,
54969 if possible.
54970
54971 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54972
54973 * include/pupa/i386/pc/linux.h: New file.
54974 * loader/i386/pc/linux.c: Likewise.
54975
54976 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54977 Removed.
54978 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54979 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54980 of PUPA_CHAINLOADER_BOOT_SECTOR.
54981
54982 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54983 (pupa_linux_prot_size): New variable.
54984 (pupa_linux_tmp_addr): Likewise.
54985 (pupa_linux_real_addr): Likewise.
54986 (pupa_linux_boot_zimage): New function.
54987 (pupa_linux_boot_bzimage): Likewise.
54988
54989 * kern/i386/pc/init.c (struct mem_region): New structure.
54990 (MAX_REGIONS): New macro.
54991 (mem_regions): New variable.
54992 (num_regions): Likewise.
54993 (pupa_os_area_addr): Likewise.
54994 (pupa_os_area_size): Likewise.
54995 (pupa_lower_mem): Likewise.
54996 (pupa_upper_mem): Likewise.
54997 (add_mem_region): New function.
54998 (compact_mem_regions): Likewise.
54999 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55000 the size of the conventional memory and that of so-called upper
55001 memory (before the first memory hole).
55002 Instead of adding each found region to free memory, use
55003 add_mem_region and add them after removing overlaps.
55004 Also, add only 1/4 of the upper memory to free memory. The rest
55005 is used for loading OS images. Maybe this is ad hoc, but this
55006 makes it much easier to relocate OS images when booting.
55007
55008 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55009 (pupa_enter_rescue_mode): Don't register initrd and module.
55010
55011 * kern/mm.c: Include pupa/dl.h.
55012
55013 * kern/main.c: Include pupa/file.h and pupa/device.h.
55014
55015 * kern/loader.c (pupa_loader_load_module_func): Removed.
55016 (pupa_loader_load_module): Likewise.
55017
55018 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55019 ``.o''.
55020
55021 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55022 (pupa_linux_tmp_addr): Likewise.
55023 (pupa_linux_real_addr): Likewise.
55024 (pupa_linux_boot_zimage): Likewise.
55025 (pupa_linux_boot_bzimage): Likewise.
55026
55027 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55028 (pupa_upper_mem): Likewise.
55029 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55030 module is too dangerous.
55031
55032 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55033 (pupa_os_area_size): Likewise.
55034 (pupa_loader_set): Remove the first argument. Loader doesn't
55035 manage modules or initrd any longer.
55036 (pupa_loader_load_module): Removed.
55037
55038 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55039 (linux_mod_SOURCES): New variable.
55040 (linux_mod_CFLAGS): Likewise.
55041
55042 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55043
55044 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55045 the length of a blocklist correctly.
55046
55047 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55048 Use ioctl only if the OS file is a block device.
55049 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55050 not very useful for normal files.
55051
55052 * kern/main.c (pupa_set_root_dev): New function.
55053 (pupa_load_normal_mode): Likewise.
55054 (pupa_main): Call those above.
55055
55056 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55057 pupa_uint16_t.
55058
55059 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55060
55061 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55062
55063 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55064 (setup): Configure the installed partition information and the
55065 dl prefix.
55066
55067 * loader/i386/pc/chainloader.c (my_mod): New variable.
55068 (pupa_chainloader_unload): New function.
55069 (pupa_rescue_cmd_chainloader): Refer itself.
55070 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55071
55072 * kern/i386/pc/startup.S (install_partition): Removed.
55073 (version_string): Likewise.
55074 (config_file): Likewise.
55075 (pupa_install_dos_part): New variable.
55076 (pupa_install_bsd_part): Likewise.
55077 (pupa_prefix): Likewise.
55078 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55079
55080 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55081 and pupa/misc.h.
55082 (make_install_device): New function.
55083 (pupa_machine_init): Set the dl prefix.
55084
55085 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55086 (buf): Renamed to ...
55087 (linebuf): ... this.
55088 (pupa_rescue_cmd_prefix): New function.
55089 (pupa_rescue_cmd_insmod): Likewise.
55090 (pupa_rescue_cmd_rmmod): Likewise.
55091 (pupa_rescue_cmd_lsmod): Likewise.
55092 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55093 rmmod and lsmod.
55094
55095 * kern/mm.c (pupa_memalign): If failed even after invalidating
55096 disk caches, unload unneeded modules and retry.
55097
55098 * kern/misc.c (pupa_memmove): New function.
55099 (pupa_memcpy): Removed.
55100 (pupa_strcpy): New function.
55101 (pupa_itoa): Made static.
55102
55103 * kern/dl.c (pupa_dl_iterate): New function.
55104 (pupa_dl_ref): Likewise.
55105 (pupa_dl_unref): Likewise.
55106 (pupa_dl_unload): Return if succeeded or not.
55107 (pupa_dl_unload_unneeded): New function.
55108 (pupa_dl_unload_all): Likewise.
55109 (pupa_dl_init): Renamed to ...
55110 (pupa_dl_set_prefix): ... this.
55111 (pupa_dl_get_prefix): New function.
55112
55113 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55114 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55115 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55116 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55117 (pupa_install_dos_part): Declared.
55118 (pupa_install_bsd_part): Likewise.
55119 (pupa_prefix): Likewise.
55120 (pupa_boot_drive): Likewise.
55121
55122 * include/pupa/types.h: Fix a typo.
55123
55124 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55125 pupa_memmove.
55126 (pupa_memmove): Declared.
55127 (pupa_strcpy): Likewise.
55128
55129 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55130 pupa_mod_init takes one argument, its own module.
55131 (pupa_dl_unload_unneeded): Declared.
55132 (pupa_dl_unload_all): Likewise.
55133 (pupa_dl_ref): Likewise.
55134 (pupa_dl_unref): Likewise.
55135 (pupa_dl_iterate): Likewise.
55136 (pupa_dl_init): Renamed to ...
55137 (pupa_dl_set_prefix): ... this.
55138 (pupa_dl_get_prefix): Declared.
55139
55140 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55141 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55142 unloaded.
55143 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55144 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55145
55146 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55147 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55148
55149 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55150
55151 * util/i386/pc/pupa-setup.c (setup): Define the internal
55152 function find_first_partition_start at the top level, because GCC
55153 3.0.x cannot compile internal functions in deeper scopes
55154 correctly.
55155 (find_root_device): Use lstat instead of stat.
55156 Don't follow symbolic links.
55157 Fix the path-constructing code.
55158
55159 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55160 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55161 by a BLKGETSIZE ioctl first, because block devices don't fill
55162 the member st_mode of the structure stat on Linux.
55163 [__linux__] (linux_find_partition): Use a temporary buffer
55164 REAL_DEV for the working space. Copy it to DEV before returning.
55165 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55166 buffer cache consistent.
55167 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55168 strncmp. The previous value was merely wrong.
55169 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55170
55171 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55172 FAT size is 12. The previous value was merely wrong.
55173
55174 * kern/main.c (pupa_main): Don't split the starting message from
55175 newlines.
55176
55177 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55178 LF, because BIOS goes crazy about character attributes in this
55179 case.
55180
55181 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55182
55183 * include/i386/pc/util/biosdisk.h: New file.
55184 * util/i386/pc/biosdisk.c: Likewise.
55185 * util/i386/pc/pupa-setup.c: Likewise.
55186
55187 * Makefile.in (INCLUDE_DISTFILES): Added
55188 include/pupa/i386/pc/util/biosdisk.h.
55189 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55190 directory util/i386/pc.
55191 (install-local): Added a rule for sbin_UTILITIES.
55192 (uninstall): Likewise.
55193
55194 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55195
55196 * util/misc.c (xrealloc): New function.
55197 (pupa_malloc): Likewise.
55198 (pupa_free): Likewise.
55199 (pupa_realloc): Likewise.
55200 (pupa_stop): Likewise.
55201 (pupa_putchar): Likewise.
55202
55203 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55204
55205 * include/pupa/util/misc.h (xrealloc): Declared.
55206
55207 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55208 macro.
55209 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55210 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55211
55212 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55213 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55214
55215 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55216 way should be implemented.
55217 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55218
55219 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55220 the size of NAME for safety.
55221 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55222 0x88.
55223
55224 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55225 (pupa_setup_SOURCES): Likewise.
55226
55227 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55228
55229 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55230
55231 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55232 bunch of pushl's from pusha, because this destroys the return
55233 value.
55234
55235 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55236
55237 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55238 This means that any missing prototypes could be fatal. Also, you
55239 must take care when writing assembly code. See the comments at
55240 the beginning of startup.S, for more details.
55241
55242 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55243 compilation mechanism.
55244 (pupa_chainloader_real_boot): Likewise.
55245 (pupa_biosdisk_rw_int13_extensions): Likewise.
55246 (pupa_biosdisk_rw_standard): Likewise.
55247 (pupa_biosdisk_check_int13_extensions): Likewise.
55248 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55249 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55250 (pupa_get_memsize): Likewise.
55251 (pupa_get_mmap_entry): Likewise.
55252 (pupa_console_putchar): Likewise.
55253 (pupa_console_setcursor): Likewise.
55254 (pupa_getrtsecs): Use pushl instead of push.
55255
55256 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55257 memory instead of the stack for a mmap entry, because some
55258 BIOSes may ignore the maximum size and overflow.
55259
55260 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55261
55262 * genmk.rb (PModule#rule): Compile automatically generated
55263 sources with module-specific CFLAGS as well as other sources.
55264
55265 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55266
55267 * configure.ac: Check ld.
55268 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55269 respectively, before checking endianness and sizes.
55270
55271 * Makefile.in (LD): New variable.
55272
55273 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55274
55275 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55276
55277 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55278
55279 * Changelog: New file.
55280