]> git.proxmox.com Git - grub2.git/blame - ChangeLog
grub-core/disk/luks.c: fix use after free and memory leaks
[grub2.git] / ChangeLog
CommitLineData
478b5675
AB
12014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
2
ea44693f
AB
3 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
4 and use after free (Coverity CID 73813, 73710, 73730)
5 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
6 CID 73854)
0415dbe2
AB
7 * util/grub-install-common.c (grub_install_get_target): Check return
8 value of grub_util_fd_read (Coverity CID 73819).
478b5675
AB
9 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
10 to hd.magic (Coverity CID 73587, 73888, bug 43690).
11
e2dd6daa
AB
122014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
13
14 * tests/util/grub-fs-tester.in: Consistently print output
15 of grub ls if test fails.
16
2ccaa3b9 172014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
004a2b1e
LL
18
19 * grub-core/kern/efi/init.c: check value of *path before
20 dereferencing.
21
72ec399a
MC
222014-11-03 Michael Chang <mchang@suse.com>
23
24 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
25 of neighbor solicitation packet in grub_netbuff_pull.
26
9a67e1ac
AB
272014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
28
29 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
30 avoid fatal warnings with older gcc (probably before 4.7).
31 * grub-core/loader/arm64/linux.c: Likewise.
32 * grub-core/loader/i386/linux.c: Likewise.
33 * grub-core/loader/i386/pc/linux.c: Likewise.
34 * grub-core/loader/ia64/efi/linux.c: Likewise.
35 * grub-core/loader/mips/linux.c: Likewise.
36 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
37 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
38
77063f4c
CW
392014-09-25 Colin Watson <cjwatson@ubuntu.com>
40
41 Fix in-tree --platform=none
42
43 * configure.ac: Only remove include/grub/cpu and
44 include/grub/machine in the --platform=none case, not all of
45 include/grub.
46
5d90f6e5
CW
472014-09-23 Colin Watson <cjwatson@ubuntu.com>
48
49 Add a new "none" platform that only builds utilities
50
51 * configure.ac: Add "none" platform. Default to it for unsupported
52 CPUs rather than stopping with a fatal error. Don't downgrade
53 x86_64-none to i386. Define COND_real_platform Automake conditional
54 if the platform is anything other than "none". Don't do any include
55 directory linking for "none".
56 * Makefile.am: Skip building grub-core and all bootcheck targets if
57 !COND_real_platform.
58 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
59 is defined.
60
954fe771
AB
612014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
62
63 Use grub_cpu_to_XXX_compile_time for constants.
64
0f1f95c7
VD
652014-09-21 Valentin Dornauer <valentin@unimplemented.org>
66
67 The AML parser implements only a small subset of possible AML
68 opcodes. On the Fujitsu Lifebook E744 this and another bug in
69 the parser (incorrect handling of TermArg data types) would lead
70 to the laptop not turning off (_S5 not found).
71
72 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
73 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
74 aren't always simply strings!); Add function to skip TermArgs
75 * include/grub/acpi.h: Add new opcodes
76
41c6f91f
VS
772014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
78
79 * grub-core/normal/main.c: Don't drop to rescue console in
80 case of password-protected prompt and no menu entries.
81
7c378c39
VS
822014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
83
84 * grub-core/commands/keylayouts.c: Ignore unknown keys.
85
2988a849
VS
862014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
87
88 * grub-core/gmodule.pl.in: Accept newer binutils which output
89 empty column rather than 0x0.
90
0aece00c
MC
912014-09-21 Michael Chang <mchang@suse.com>
92
93 * grub-core/osdep/unix/config.c: Remove extraneous comma.
94
952014-09-21 Peter Jones <pjones@redhat.com>
631a8200
PJ
96
97 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
98 we don't free a random pointer from the stack.
99 * grub-core/loader/arm64/linux.c: Likewise.
100 * grub-core/loader/i386/linux.c: Likewise.
101 * grub-core/loader/i386/pc/linux.c: Likewise.
102 * grub-core/loader/ia64/efi/linux.c: Likewise.
103 * grub-core/loader/mips/linux.c: Likewise.
104 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
105 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
106
60049a0e
CW
1072014-09-15 Khem Raj <raj.khem@gmail.com>
108
a276b840
KR
109 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
110 _BSD_SOURCE to avoid warnings under glibc 2.20+.
111
54bd9a06
MC
1122014-09-08 Michael Chang <mchang@suse.com>
113
114 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
115 check; comparing &data->extent against addresses in the region it
116 points to is unpredictable.
117
2a5a532c
CW
1182014-09-07 Colin Watson <cjwatson@ubuntu.com>
119
120 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
121
122 * configure.ac: Remove -m64 from checks for -mcmodel=large and
123 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
124 already in TARGET_CFLAGS at this point, and they produce incorrect
125 results when building for x32.
126 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
127 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
128 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
129 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
130
4d94b2db
CW
1312014-09-07 Colin Watson <cjwatson@ubuntu.com>
132
133 * configure.ac: Remove several unnecessary semicolons.
134
1de3a480
CW
1352014-08-25 Colin Watson <cjwatson@ubuntu.com>
136
137 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
138 Initialise pend to pacify GCC.
139
c291f47b
AB
1402014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
141
142 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
143 gettext_printf).
144
3c058332
VS
1452014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
146
147 * grub-core/term/at_keyboard.c: Retry probing keyboard if
148 scancode setup failed.
149
d1224d20
VS
1502014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
151
152 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
153
0af3ae2d
VS
1542014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
155
156 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
157 safety to avoid triggerring VirtualBox bug.
158
33f6ce67
VS
1592014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
160
161 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
162
79c80b06
VS
163 Fixes hang on virtualbox.
164
0901e785
CW
1652014-07-08 Colin Watson <cjwatson@ubuntu.com>
166
167 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
168 kernels whose paths contain regex metacharacters.
169 * util/grub.d/10_kfreebsd.in: Likewise.
170 * util/grub.d/10_linux.in: Likewise.
171 * util/grub.d/20_linux_xen.in: Likewise.
172
173 Reported by: Heimo Stranner.
174
4250f552
CW
1752014-06-26 Colin Watson <cjwatson@ubuntu.com>
176
177 * docs/grub-dev.texi (Finding your way around): The build system no
178 longer uses AutoGen directly.
179
1f6af2a9
РП
1802014-06-21 Роман Пехов <roman_pekhov>
181
182 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
183
fa335308
GW
1842014-06-21 Glenn Washburn <development@efficientek.com>
185
186 * util/grub-install.c: Fix handling of --disk-module.
187
15bd333e
SR
1882014-06-21 Stephane Rochoy <sheda>
189
190 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
191 EFI system table.
192
3f3ec8ef
SR
1932014-06-21 Stephane Rochoy <sheda>
194
195 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
196 EFI system table physical address.
197
87de66d9
TW
1982014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
199
200 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
201
2c2c5c72
VS
2022014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
203
204 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
205
480c8985
VS
2062014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
207
208 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
209 check.
210
4b8b9135
VS
2112014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
212
213 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
214
215 Reported by: Yves Blusseau <blusseau@zetam.org>.
216
5a6db38d
PK
2172014-04-20 Piotr Krysiuk <piotras@gmail.com>
218
219 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
220 GDT in conventional memory.
221
3a310e84
CW
2222014-04-10 Colin Watson <cjwatson@ubuntu.com>
223
224 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
225 UUID. Other parts of grub-mkconfig tolerate these, they were
226 previously allowed here up to commit
227 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
228 practice when the system has active LVM snapshots.
229 Fixes Ubuntu bug #1287436.
230
c4badfe8
CW
2312014-04-10 Colin Watson <cjwatson@ubuntu.com>
232
233 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
234 "logical_volumes" block a little more accurately.
235
a72fc329
VS
2362014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
237
238 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
239
6f6d4aa0
VS
2402014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
241
242 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
243 pulled from libgcc.
244
8063ce19
VS
2452014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
246
247 Replace few instances of memcmp/memcpy in the code that should be
248 grub_memcmp/grub_memcpy.
249
97060667
VS
2502014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
251
252 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
253 device names.
254
4afd0107
TF
2552014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
256
257 btrfs: fix get_root key comparison failures due to endianness
258
259 * grub-core/fs/btrfs.c (get_root): Convert
260 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
261
24024dac
CW
2622014-03-31 Colin Watson <cjwatson@ubuntu.com>
263
264 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
265
266 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
267 no longer to be forgiving of trailing spaces on grub-probe output
268 lines, which among other things means that util/grub.d/10_linux.in
269 no longer detects LVM. To fix this, make grub-probe's output
270 delimiting more consistent. As a bonus, this improves the coverage
271 of the -0 option.
272
273 Fixes Debian bug #735935.
274
275 * grub-core/disk/cryptodisk.c
276 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
277 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
278 Likewise.
279 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
280 Update prototype.
281 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
282 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
283 probe_mods): Adjust for extra user-data arguments.
284 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
285 probe_abstraction): Use configured delimiter. Update callers.
286
9b35fe81
CW
2872014-03-31 Colin Watson <cjwatson@ubuntu.com>
288
289 * util/grub-probe,c (options): Make -0 work again (broken by
290 conversion to argp).
291 (main): Simplify logic.
292
46b74dd3
VS
2932014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
294
295 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
296
68f17b2b
FW
2972014-03-26 Fu Wei <fu.wei@linaro.org>
298
299 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
300
86402b4e
VS
3012014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
302
303 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
304 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
305
306 Suggested by: Markus Müller.
307
bec35dad
VS
3082014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
309
310 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
311 if E820 failed to return any regions.
312
dfc5ccfa
VS
3132014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
314
315 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
316 tables for low memory calculations.
317
4a70fed8
VS
3182014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
321 location to 640K.
322
f94b2b4e
VS
3232014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
324
325 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
326 region.
327
d0949e37
VS
3282014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
329
330 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
331 exclusively.
332
9585647a
PFS
3332014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
334
335 Add bootpath parser for open firmware.
336
337 It enables net boot even when there is no bootp/dhcp server.
338
339 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
340 and call it at grub_ieee1275_net_config_real.
341 * grub-core/kern/ieee1275/init.c: Add bootpath to
342 grub_ieee1275_net_config.
343 * include/grub/ieee1275/ieee1275.h: Likewise.
344
345
e4dbf247
PFS
3462014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
347
348 Add grub_env_set_net_property function.
349
350 * grub-core/net/bootp.c: Remove set_env_limn_ro.
351 * grub-core/net/net.c: Add grub_env_set_net_property.
352 * include/grub/net.h: Likewise.
353
006c78f3
VS
3542014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
355
356 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
357
511ece7c
VS
3582014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
359
360 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
361
9abbaae7
VS
3622014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
363
364 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
365 7 seconds to recover if last poweroff was bad.
366
d6b94c5e
VS
3672014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
368
369 * grub-core/disk/ahci.c: Properly handle transactions with no
370 transferred data.
371
07ea8daa
VS
3722014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
373
374 * grub-core/disk/ahci.c: Add safety cleanups.
375
3142b2fe
VS
3762014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
377
378 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
379 slots to avoid pointing to uninited area.
380
4686e163
VS
3812014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
382
383 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
384 enabling busmaster for the end.
385
ba424f37
VS
3862014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
387
388 * util/grub-mkfont.c: Downgrade warnings about unhandled features
389 to debug.
390
3beabdc8 3912014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7f64fb59
VS
392
393 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
394
ba584da1
PFS
3952014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
396
397 * .gitignore: add missing files and .exe variants.
398
35f2d96c
MG
3992014-01-26 Mike Gilbert <floppym@gentoo.org>
400
401 grub-install: support for partitioned partx loop devices.
402
403 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
404 /dev/loopX as being the parent of /dev/loopXpY.
405
9afe2053
VS
4062014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
407
408 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
409 Ensure that pointers are inited to NULL and that pointers are not
410 accessed after free.
5ae584c0
AB
411
4122014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
413
414 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
415 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
416 * include/grub/emu/misc.h: ... and here.
417 * include/grub/err.h: ... and here.
418 * util/import_gcry.py: ... and here (in files g10lib.h).
419
1440b7eb
AB
4202014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
421
422 * util/grub-mkimage.c: Make prefix argument mandatory.
423
61c8482b
VS
4242014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
425
426 Fix several translatable strings.
427
428 Suggested by: D. Prévot.
429
95cd131e
VS
4302014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
431
432 * util/grub-install.c: List available targets.
433
d0805930
CW
4342014-01-23 Colin Watson <cjwatson@ubuntu.com>
435
436 * util/grub-install.c (write_to_disk): Add an info message.
437
eec4237a
AB
4382014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
439
440 * Makefile.am: Allow adding extra files to generated Windows ZIP
441 archive by setting GRUB_WINDOWS_EXTRA_DIST.
442
36387ece
AB
4432014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
444
445 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
443b3222 446 Show detected font path in summary.
36387ece 447
6f65e36c
PFS
4482014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
449
450 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
451 interval gradually.
452 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
453 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
454 * grub-core/net/tftp.c (tftp_open): Likewise.
455 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
456
d99d2f84
PFS
4572014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
458
459 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
460 infinite loops.
461
462 In net/net.c there is a while (1) that only exits if there is a stop
463 condition and more then 10 packages or if there is no package received.
464
465 If GRUB is idle and enter in this loop, the only condition to leave is
466 if it doesn't have incoming packages. In a network with heavy traffic
467 this never happens.
468
049f6382
CW
4692014-01-19 Colin Watson <cjwatson@ubuntu.com>
470
471 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
472 EPERM when modifying kern.geom.debugflags. It is only a problem for
473 such things as installing GRUB to the MBR, in which case there'll be
474 an error later anyway, not for opening files during tests.
475
01504547
AB
4762014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
477
478 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
479 instead of MOD_FILES.
480 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
481 both with and without .exe.
482 * grub-core/genemuinitheader.sh: Same.
483
b204b718
VS
4842014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
485
486 * util/grub-install.c: Fix a typo.
487
41155a57
VS
4882014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
489
490 * grub-core/normal/main.c (read_config_file): Buffer config file.
491 Reduces boot time.
492
e0a85094
AB
4932014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
494
495 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
496 symbolic link to directory. It fails in Msys shell on Windows 2003.
497
0b47c57a
VS
4982014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
499
500 * Makefile.am (default_payload.elf): Add modules
501 multiboot cbmemc linux16 gzio echo help.
502
5032014-01-18 Mike Gilbert <floppym@gentoo.org>
6ba98355
MG
504
505 * Makefile.util.def: Link grub-ofpathname with zfs libs.
506
6c519b5c
VS
5072014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
508
509 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
510 conflicts.
511
512 Reported by: Andrey Borzenkov.
513
f371dd5d
AB
5142014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
515
516 * include/grub/misc.h: Move macros for compiler features to ...
517 * include/grub/compiler.h: ... new file.
518 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
519 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
520 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
521 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
522 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
523 * grub-core/video/capture.c: Include <grub/misc.h>.
524 * include/grub/command.h: Include <grub/misc.h>.
525 * include/grub/dl.h: Include <grub/misc.h>.
526 * include/grub/procfs.h: Include <grub/misc.h>.
527
1ecf96fc
AB
5282014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
529
530 * configure.ac: Add support for BUILD_EXEEXT and use it ...
531 * Makefile.am: ... here.
532 * Makefile.util.def: ... and here.
533 * grub-core/Makefile.am: ... and here.
534
5ef569df
AB
5352014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
536
537 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
538 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
539
3abb9563
VS
5402014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
541
542 * grub-core/term/terminfo.c: Recognize keys F1-F12.
543
9b9c4686 5442014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
dcecae1a
AB
545
546 * configure.ac: Add support for BUILD_LDFLAGS.
547 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
548 * grub-core/Makefile.am: ... and here.
549 * INSTALL: Mention BUILD_LDFLAGS.
550
ae80f312
VS
5512014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
552
553 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
554
7e7293d7
VS
5552014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
556
557 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
558 and has no //.
559
5acc8020
VS
5602014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
561
562 * NEWS: Add few missing entries.
563
ff66b8e7
CW
5642014-01-17 Colin Watson <cjwatson@ubuntu.com>
565
566 * util/grub.d/00_header.in (make_timeout): Use && rather than test
567 -a.
568 * util/grub.d/10_windows.in: Likewise.
569 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
570 than test -o.
571 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
572 rather than test -o.
573
5742014-01-17 Colin Watson <cjwatson@ubuntu.com>
09a836e5
CW
575
576 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
577 redundant preprocessor conditional.
578
ccd21a65
CW
5792014-01-08 Colin Watson <cjwatson@ubuntu.com>
580
581 * Makefile.util.def (grub-macbless): Change mansection to 8.
582
4d21c101
LL
5832014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
584
585 * grub-core/loader/arm64/linux.c: correctly set device path end length.
586
e7cfa8d5
AB
5872014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
588
589 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
590 arm64 to comply with EFI specification. Also use grubaa64.efi for
591 consistency.
592 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
593
94cee4a4
AB
5942014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
595
596 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
597 on MinGW-64 when compiling for 32 bits.
598
668add25
AB
5992013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
600
601 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
602
0e309454
VS
6032013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
604
605 * NEWS: Add few missing entries. Correct existing ones.
606
093dec73
VS
6072013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
608
609 Don't abort() on unavailable coreboot tables if not running on coreboot.
610
989af025
AB
6112013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
612
613 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
614 on mingw.
615
8442d3e9
CW
6162013-12-28 Colin Watson <cjwatson@ubuntu.com>
617
618 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
619 mention of it from 2.02.
620
645ff636 6212013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5bda44d7
VS
622
623 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
624
625 As these functions are used on pre-ARMv6 CPUs as well we don't want
626 to make assembler assume that architecture is higher than default one.
627
30a33846
CW
6282013-12-27 Colin Watson <cjwatson@ubuntu.com>
629
630 * NEWS: First draft of 2.02 entry.
631
51f941a0
CW
6322013-12-27 Colin Watson <cjwatson@ubuntu.com>
633
634 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
635 * docs/grub.texi (Getting the source code): Likewise.
636
a6e7719b
AB
6372013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
638
639 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
640 detection.
641
e8f07821
VS
6422013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
643
644 * configure.ac: Set version to 2.02~beta2.
645
dc3286ad
VS
6462013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
647
648 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
649
46f8d358
AB
6502013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
651
652 * util/grub-probe.c: Improve help message and simplify list handling.
653
09c47900
VS
6542013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
655
656 Fix buffer overflow in grub_efi_print_device_path.
657
4d6c6953
VS
6582013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
659
660 Show SATA device path.
661
faf4a65e
VS
6622013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
663
664 Revert grub-file usage in grub-mkconfig.
665
e5fa26e5
VS
6662013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
667
668 Make newly-created files other than grub.cfg world-readable.
669
569766e4
AB
6702013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
671
672 * util/grub.d/00_header.in: Improve compatibility with old config.
673
41272068
VS
6742013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
675
676 Make rijndael.c respect aliasing rules.
677
678 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
679
f7c7c4d4
VS
6802013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
681
682 Make grub_util_device_is_mapped_stat available in grub-emu core.
683
57bc5d43
VS
6842013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
685
686 Add -Qn to TARGET_CFLAGS if it's supported.
687 Fixes compilation on cygwin.
688
689 Reported by: Andrey Borzenkov.
690 Suggested by: Andrey Borzenkov.
691
6a7957f9
VS
6922013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
693
694 Save TARGET_CC version in modinfo.sh.
695
696 Suggested by: Andrey Borzenkov.
697
e88f0420
VS
6982013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
699
700 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
701 follow the same algorithm to avoid method mismatch. Don't assume
702 DMRAID- UUID to mean full disk but instead check that mapping is linear.
703
da986226
VS
7042013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
705
706 Declare GRUB_EFI_VENDOR_APPLE_GUID.
707
fba31b5f
VS
7082013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
709
710 Dump type and vendor specific data when printing device path.
711
3d369a01
CW
7122013-12-23 Colin Watson <cjwatson@debian.org>
713
714 Update some documentation to refer to Git rather than Bazaar.
715
716 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
717 than Bazaar.
718 * po/README: Likewise. Fix spelling mistake.
719
5b83ef97
CW
7202013-12-23 Colin Watson <cjwatson@ubuntu.com>
721
722 Don't distribute config.h.
723
724 * Makefile.am (platform_HEADERS): Move to ...
725 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
726 failure when building from a distributed tarball.
727
16f7455b
CW
7282013-12-23 Colin Watson <cjwatson@ubuntu.com>
729
730 * configure.ac: Fix spelling.
731 * grub-core/commands/parttool.c: Fix grammar.
732 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
733 Embedding Partition".
734
808e97c4
VS
7352013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
736
737 ARM64 support for grub-mkrescue.
738
e388db90
VS
7392013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
740
741 Install modinfo.sh to keep build information around.
742
cef39403
VS
7432013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
744
745 * grub-core/modinfo.sh.in: Add build config information.
746
a4d61002
VS
7472013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
748
749 ARM64 grub-file and grub-mkconfig support.
750
0c930a84
VS
7512013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
752
753 Remove leftover options defines.
754
74fa9ac1
VS
7552013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
756
757 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
758
62956fe7
VS
7592013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
760
761 * grub-core/loader/arm64/linux.c: Add missing bracket.
762
26063216
VS
7632013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
764
765 Add arm64-efi recognition to grub-file.
766
4cd0b55f
VS
7672013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
768
769 Fix ia64-efi recognition in grub-file.
770
95b56e3a
VS
7712013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
772
773 Recognize raspberry pi kernel in grub-file.
774
bbc52c22
VS
7752013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
776
777 Enable cache on ARM U-Boot port.
778
779 Without it the port is reidiculously slow.
780
943981ff
VS
7812013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
782
783 Fix ARM cache maintainance.
784
785 More code was converted from ASM to C for easier handling.
786
adabfb54
VS
7872013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
788
789 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
790 algorithm on v5.
791
792 Suggested by: Leif Lindholm.
793
77ec462a
AB
7942013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
795
796 * util/grub-mkconfig.in: Fix Xen platform conditions.
797
3bf2db89
AB
7982013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
799
800 * util/grub-mkrescue.c: Split single help message string in several
801 strings used in previous shell version.
802
30a9ab95
LL
8032013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
804
805 Add arm64 Linux loader.
806
c415eaa9
LL
8072013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
808
809 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
810
313fb3ce
VS
8112013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
812
813 Add module loading and parsing boot time checkpoints.
814
37f617c0
VS
8152013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
816
817 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
818 platforms.
819
3deedfc0
LW
8202013-12-22 Lars Wendler <polynomial-c@gentoo.org>
821
822 * util/grub-mkconfig.in: Skip non-executable files.
823
5ad9f728
VS
8242013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
825
826 Workaround buggy timer in raspberry pie by using our own timer
827 implementation.
828
eeb84997
VS
8292013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
830
831 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
832 Increase to 16 MiB to allow loading the whole memdisk.
833
0d8b81f8
VS
8342013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
835
836 Fix ARM Linux Loader on non-FDT platforms.
837
bf082198
VS
8382013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
839
840 * configure.ac: Choose link format based on host_os on emu.
841
0b602bf9
VS
8422013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
843
844 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
845
96650a82
VS
8462013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
847
848 * grub-core/kern/emu/main.c: Build fix for emu.
849
ca3e2088
VS
8502013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
851
852 Build fixes for argp.h with older gcc.
853
27db1a9b
VS
8542013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
855
856 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
857 in strings.
858
859 Suggested by: David Prévot.
860
8a913e66
VS
8612013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
862
863 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
864
ae558c2c
VS
8652013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
866
867 Enable -Wformat=2 if it's supported.
868
bbac6789
VS
8692013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
870
871 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
872 -Wmissing-declarations if supported.
873
ab216512
VS
8742013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
875
876 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
877 u32 as both HFS and HFS+ have 32-bit inodes.
878
0d4aa91d
VS
8792013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
880
881 * include/grub/misc.h (grub_strtol): Fix overflow.
882
a997af68
VS
8832013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
884
885 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
886 as return type in both conditionals.
887
36bcaf29
VS
8882013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
889
890 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
891 to use uint8_t for color.
892
74763e96
VS
8932013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
894
895 * util/misc.c (grub_util_get_image_size): Check for overflow.
896
80b29fc9
VS
8972013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
898
899 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
900 for size.
901
6e327fcd
VS
9022013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
905 for pointer difference.
906
62ce03cf
VS
9072013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
908
909 * util/import_gcry.py: Skip sample keys.
910
f4d70fd0
VS
9112013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
912
913 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
914
93bf55e6
VS
9152013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
916
917 * configure.ac: Remove duplicate warning arguments.
918
579ee114
VS
9192013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
920
921 Add missing static qualifiers.
922
ee5283d6
VS
9232013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
924
925 Add missing includes.
926
5dbde526
VS
9272013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
928
929 Inline printf templates when possible to enable format checking.
930
d88ae4f0
VS
9312013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
932
933 * include/grub/crypto.h: Don't discard const attribute.
934
17b43559
VS
9352013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
936
937 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
938 was intended.
939
76a2a430
VS
9402013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
941
942 * grub-core/lib/crypto.c: Don't discard const attribute.
943
0d26164e
VS
9442013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * grub-core/lib/disk.c: Fix potential overflow.
947
2622b1e8
VS
9482013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
949
950 * grub-core/lib/arg.c: Don't discard const attribute.
951
05126706
VS
9522013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
953
954 * grub-core/kern/dl.c: Don't discard const attribute.
955
2f9c4804
VS
9562013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
957
958 * grub-core/kern/disk.c: Fix potential overflow.
959
0438ebf1
VS
9602013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
961
962 * conf/Makefile.common: Don't include non-existing directory
963 grub-core/lib/libgcrypt-grub/include.
964
065adc34
VS
9652013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
966
967 Clarify several translatable messages.
968
496a6b30
DP
9692013-12-21 David Prévot <david@tilapin.org>
970
971 Correct some translatable strings.
972
971038be
CW
9732013-12-21 Colin Watson <cjwatson@ubuntu.com>
974
975 * util/grub-mkrescue.c: Rephrase mkrescue description.
976
bfdfeb25
VS
9772013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
9782013-12-21 Colin Watson <cjwatson@ubuntu.com>
979
980 Clarify several translatable messages.
981
d642d761
CW
9822013-12-20 Colin Watson <cjwatson@ubuntu.com>
983
984 Be more verbose about some configure failures.
985
3bc1b2da
CW
9862013-12-20 Colin Watson <cjwatson@ubuntu.com>
987
988 Fix various build problems on GNU/Hurd.
989
990 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
991 !defined (__GNU__).
992 (xgetcwd): Likewise.
993 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
994 [__GNU__]: Add prototype.
995 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
996 long int using %ld rather than %d.
997
871aa709
VS
9982013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 * util/grub-install.c: Inform user about install platform.
1001
2fa5a58c
VS
10022013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1003
1004 * configure.ac: Set version to 2.02~beta1.
1005
ee281fd0
AP
10062013-12-18 Allen Pais <allen.pais@oracle.com>
10072013-12-18 Bob Picco <bob.picco@oracle.com>
1008
1009 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1010
2e238b37
VS
10112013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 Make grub_zlib_decompress handle incomplete chunks.
1014
1015 Fixes squash4.
1016
2984035e
VS
10172013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1020 on i386-multiboot.
1021
b9f03772
AN
10222013-12-18 Aleš Nesrsta <starous@volny.cz>
1023
1024 * grub-core/disk/usbms.c: Retry on unknown errors.
1025 Reuse the same tag on retries.
1026
e3ef0d30
AN
10272013-12-18 Aleš Nesrsta <starous@volny.cz>
1028
1029 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1030
1031 Avoid confusing them with already completed transfers.
1032
72c9a507
VS
10332013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 Remove xen VFB.
1036
1037 Due to XEN bug it prevents Linux boot. Remove it at least, until
1038 workaround is found.
1039
84455670
VS
10402013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * po/exclude.pot: Add 2 missing excludes.
1043
64dd5fdc
VS
10442013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1045
1046 Add missing license section in macbless.mod and macho.mod.
1047
a29f317a
VS
10482013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 Allow compilation without thumb-interwork as long as no thumb is
1051 involved or only thumb2 is used.
1052
113f7869
VS
10532013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1054
1055 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1056
eba2afed
VS
10572013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1058
1059 Add __attribute__ ((sysv_abi)) only if it's really needed.
1060
1061 Some compilers don't support it.
1062
1962ed95
VS
10632013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1066
c2be6f7e
VS
10672013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 Remove -Wold-style-definition.
1070
1071 Not very useful and interaction of it with regexp depends on GCC
1072 version.
1073
7a7f5238
VS
10742013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1075
1076 Make grub_util_get_windows_path_real static.
1077
9246d5c8
VS
10782013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1079
1080 * grub-core/commands/fileXX.c: Silence cast-align.
1081 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1082
b3aea1bc
VS
10832013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1084
1085 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1086 rather than LL suffix.
1087
bc8dd119
VS
10882013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1089
e8c360ca
VS
1090 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1091
10922013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 * grub-core/loader/arm/linux.c: Use common initrd functions.
bc8dd119 1095
57a691b7
VS
10962013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 Decrease number of strings to translate.
1099
74fa9417
VS
11002013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1103
636977b0
VS
11042013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1105
1106 Mark strings for translation and add remaining ones to exclude list.
1107
ee4450eb
VS
11082013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1109
1110 * util/grub-file.c (main): Fix sizeof usage.
1111
11122013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
a43b3e5d
VS
1113
1114 Silence spurious warning.
1115
ee4450eb 11162013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
81294aff
VS
1117
1118 Remove check_nt_hiberfil as it's been superseeded by file command.
1119
a99c0a32
VS
11202013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1121
1122 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1123
8f5add13
VS
11242013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 Implement syslinux parser.
1127
8ff35d0a
VS
11282013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1131
ba144760
VS
11322013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1133
1134 Support cpuid --pae.
1135
daaa89db
VS
11362013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1137
1138 Use AT keyboard on Yeeloong 3A.
1139
25a7863d
VS
11402013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1141
1142 Add Yeeloong 3A reboot and halt.
1143
184c61dd
VS
11442013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1145
1146 Add Radeon Yeeloong 3A support.
1147
fd4650a5
VS
11482013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1149
1150 Add bonito 3A support.
1151
3e88fbfa
VS
11522013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1155
1123bed9
VS
11562013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1159
ebda165f
VS
11602013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1161
1162 * grub-core/loader/macho.c: Fix compilation on non-i386.
1163
fe7c20bf
VS
11642013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 Add missing format_arg attribute to check that printf with translated
1167 messages has proper arguments.
1168
f4dab3d1
VS
11692013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1170
1171 Use grub_xasprintf to format translated error messages containing
1172 64-bit quantity.
1173
24d5934d
JM
11742013-12-17 Jon McCune <jonmccune@google.com>
1175
1176 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1177
d6c2782a
VS
11782013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1179
1180 Unify message for unsupported relocation.
1181
50d2e959
VS
11822013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 Mark miscompile error for translation.
1185
18e76955
VS
11862013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 Use %I64 and not %ll when using OS printf if compiling for windows.
1189
d218ec97
VS
11902013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1191
1192 Update Mac code to match new register_efi prototype.
1193
b8765fa0
VS
11942013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1195
1196 Implement better integration with Mac firmware.
1197
1f032575
VS
11982013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1201 load_addr.
1202
14829755
VS
12032013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 Include serial module in default_payload.elf.
1206
d45067a2
VS
12072013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 Add explicit thumb interwork bx in asm files.
1210
1211 Shouldn't matter for armv >= 5 but let's be safe.
1212
30861754
VS
12132013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 Implement Truecrypt ISO loader.
1216
e14d409b
VS
12172013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1218
1219 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1220
ec824e0f
VS
12212013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1222
1223 Implement grub_file tool and use it to implement generating of config
1224 in separate root.
1225
296f7606
VS
12262013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1227
1228 Change to v1 xen grants.
1229
2c384f1e
VS
12302013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1233
1234 GRUB relied on %ebx being preserved across hypercall which isn't true.
1235
d16ff589
VS
12362013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1237
1238 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1239
1240 GRUB relied on %rdi being preserved across hypercall which isn't true.
1241
71669c3b
VS
12422013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 Implement XEN VFB support.
1245
60d1dd3d
VS
12462013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1247
1248 Remove grub_bios_interrupt on coreboot.
1249
1250 It's not used currently and cannot be used safely currently.
1251
a8201050
VS
12522013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1253
1254 Update exclude.pot and mark few strings for translation.
1255
6cc89597
VS
12562013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1257
1258 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1259
1260 Reported by: Jon McCune
1261
840a2c05
AB
12622013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1263
1264 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1265 Add verbose information which firmware directories were tried.
1266
35248820
AB
12672013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1268
1269 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1270 function to optionally redirect all three standard descriptors.
1271 Redefine grub_util_exec, grub_util_exec_redirect and
1272 grub_util_exec_redirect_null to use it.
1273 * include/grub/emu/exec.h: Define it.
1274 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1275 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1276 Use grub_util_exec_redirect_all to redirect error to NULL.
1277
2a123f4c
VS
12782013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1279
1280 * grub-core/tests/sleep_test.c: Silence spurious warning.
1281
316c8d9a
VS
12822013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1285 linker trying to "fixup" the code.
1286
8fcce8d5
VS
12872013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1288
1289 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1290
6f1f6a0c
VS
12912013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1292
1293 Add support for converting PE+ to Elf64.
1294
66a07ce2
VS
12952013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1296
1297 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1298
cc6fb517
VS
12992013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 Remove practice of assigning random const pointers to device id.
1302
1303 This is not required as cache code already checks driver id as well.
1304
f009f07c
VS
13052013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1306
1307 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1308 with mingw.
1309
9fdec226
VS
13102013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1311
1312 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1313 mingw or cygwin as API already matches.
1314
d87cb3ae
VS
13152013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1316
1317 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1318
3e38c31a
VS
13192013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1322 not on long.
1323
f4171ebd
VS
13242013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1325
1326 Handle X86_64_PC64 relocation.
1327
1328 Those are generated by some cygwin compilers.
1329
252a289c
VS
13302013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 Determine the need for mingw-related stubs at compile time rather than
1333 using not very significant $target_os.
1334
23d2abc3
VS
13352013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1336
1337 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1338 may not work with ELF.
1339
4f979ccb
VS
13402013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 Use unix functions for temporary files and special files on cygwin.
1343
37378f74
VS
13442013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 Define functions explicitly rather than using --defsym in tests
1347 whenever possible. Respect locality in remaining cases.
1348
6a09d83e
VS
13492013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1352
e477187b
AB
13532013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1354
1355 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1356 unlikely errors when getting EFI variables and make exhaustive search
1357 for all BootNNNN variables to find matching one.
1358
80b865bd
IC
13592013-12-15 Ian Campbell <ijc@hellion.org.uk>
1360
1361 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1362
04b02857
VS
13632013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1364
1365 New functional test for sleep function.
1366
1367 This test allows to check sleep without qemu. Keep qemu version as
1368 well as functional test won't notice if all clocks are going too fast
1369 or too slow.
1370
39711101
VS
13712013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1372
1373 Add explicit sysv_abi on amd64 asm routines.
1374
d99af4f0
VS
13752013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1376
1377 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1378 num_table_entries.
1379
71043684
VS
13802013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1381
1382 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1383 functions.
1384
111bf5db
VS
13852013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1386
1387 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1388 appropriate.
1389
24ca71c9
VS
13902013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1391
1392 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1393
48ba5c0c
VS
13942013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1395
1396 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1397 appropriate.
1398
8ae67045
VS
13992013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1400
1401 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1402
1403 In case of quick removal of loopback and adding another one it may
1404 get same ID, confusing the cache system.
1405
ed559310
VS
14062013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1407
1408 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1409 appropriate.
1410
8fa26279
VS
14112013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1412
1413 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1414 than converting to long.
1415
6f5f3337
VS
14162013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1417
1418 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1419
e7c418c5
VS
14202013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1423 than almost useless pointer.
1424
7e47e27b
VS
14252013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1426
1427 Add gcc_struct to all packed structures when compiling with mingw.
1428
1429 Just "packed" doesn't always pack the way we expect.
1430
ae8159b9
VS
14312013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1432
1433 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1434
74e7ad66
VS
14352013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1436
1437 * util/grub-pe2elf.c: Fix handling of .bss.
1438
814442ba
VS
14392013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1440
1441 Implement windows flavour of EFI install routines.
1442
5f5bb107
VS
14432013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1446
a24725cc
VS
14472013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1448
1449 Change grub_install_register_efi interface to pass GRUB device.
1450
1451 This allows grub_install_register_efi to request partition info
1452 directly.
1453
38933cee
VS
14542013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1457
6d3cfe50
VS
14582013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1459
1460 Do not use TCHAR string functions as they are not available on cygwin.
1461
4bad23a1
VS
14622013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1463
1464 Workaround windows bug when querying EFI system partition parameters.
1465
6a5fe132
VS
14662013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1467
1468 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1469 by using bitfields.
1470
bc8fcf4b
VS
14712013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1474
60b967be
VS
14752013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1476
1477 Make i386-* other than i386-pc compileable under cygwin.
1478
6dc33377
VS
14792013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1480
1481 Fix definition of grub_efi_hard_drive_device_path. Take care that
1482 existing code would work even if by some reason bogus definition is
1483 used by EFI implementations.
1484
f2c6ff15
VS
14852013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1486
1487 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1488
6b8a1625
VS
14892013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1492 invocation.
1493
954c723a
VS
14942013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * util/config.c: Remove trailing newline from distributor in simple
1497 parsing.
1498
607a39f9
VS
14992013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 * include/grub/efi/api.h: Rename protocol and interface to avoid
1502 conflict.
1503
df6fedca
VS
15042013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1505
ba584da1 1506 * .gitignore: add .exe variants. add missing files. remove few outdated
df6fedca
VS
1507 entries.
1508
f684d7e1
VS
15092013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * grub-core/osdep/exec.c: Use unix version on cygwin.
1512
0df77d79
VS
15132013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 Implement multiboot2 EFI BS specification.
1516
dafff9ce
VS
15172013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1518
1519 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1520 Crash happened only in some cases like a string starting at the
1521 half of the screen of same length.
1522
6644d973
VS
15232013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1524
1525 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1526 with EFI counterpart.
1527
44bbfa33
VS
15282013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1529
1530 Propagate the EFI commits to x86-efi specific parts.
1531
3e3dff24
VS
15322013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1535
316dda71
VS
15362013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1537
1538 Introduce grub_efi_packed_guid and use it where alignment is not
1539 guaranteed.
1540
219401b8
VS
15412013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1544 unaligned u16 rather than u8[2].
1545
30d00537
VS
15462013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1547
1548 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1549 for relocation range.
1550
979742bc
VS
15512013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1552
1553 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1554 non-function pcrel21b relocation. It happens with .text.unlikely
1555 section.
1556
16c8f785
LL
15572013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1558
1559 * make MAX_USABLE_ADDRESS platform-specific
1560 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1561
3f1423e7
LL
15622013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1563
1564 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1565
dd73313c
JM
15662013-12-09 Jon McCune <jonmccune@google.com>
1567
1568 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1569 in grub-install and grub-bios-setup for x86 BIOS targets.
1570
eaf01c25
VS
15712013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1572
1573 Add missing compile and link options for sparc64-emu.
1574
7a148da6
VS
15752013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1576
1577 Implement sparc64 trampolines (needed for sparc64-emu).
1578
21eee750
VS
15792013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1582 range of R_SPARC_HI22.
1583 Implement R_SPARC_LM22.
1584
7b54b626
VS
15852013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1586
1587 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1588 Do not explicitly check for symbol table as it's already checked in
1589 platform-independent layer.
1590
9a945e2a
VS
15912013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1594 on ia64 as __clear_cache is a dummy on ia64.
1595
4f4ea1b4
VS
15962013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1599 Do not explicitly check for symbol table as it's already checked in
1600 platform-independent layer.
1601
fe4ae213
CW
16022013-12-09 Colin Watson <cjwatson@ubuntu.com>
1603
1604 * util/grub-mkconfig.in: Add missing newline to output.
1605
78b2b0a1
VS
16062013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1609 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1610
d14772c4
VS
16112013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1614 compilation with GCC <= 4.2.
1615 * grub-core/kern/emu/argp_common.c: Likewise.
1616
388f3cd0
VS
16172013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1618
1619 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1620 right platform rather than leaking to sparc64-emu.
1621
11e4167a
VS
16222013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1625 But ensure that the variables in question are indeed unsigned.
1626
fa7eb63d
VS
16272013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1628
1629 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1630
50b3a68d
VS
16312013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1632
1633 Remove grub_memalign on emu.
1634
fbbfb6ab
VS
16352013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1636
1637 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1638 truncate incomplete lines but instead flushes them.
1639
a19293cb
VS
16402013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1641
1642 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1643 and implement windows variant.
1644
d5c14e1e
VS
16452013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1646
1647 Fix mips-emu compilation.
1648
b75db69a
VS
16492013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1650
1651 * configure.ac: Check for freetype library usability.
1652
c311ced5
VS
16532013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1654
1655 Make arm-emu work.
1656
c8fd2ddf
VS
16572013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1658
1659 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1660
c50e5f45
AB
16612013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1662
1663 * docs/grub.texi (Environment): Update color_normal and color_highlight
1664 defaults (light-gray instead of white).
1665
bb05e313
AB
16662013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1667
1668 * grub-core/normal/main.c (INIT): Set default color to light-gray
1669 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1670 and apparently BIOS defaults.
1671
f23bc651
VS
16722013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1673
1674 Transform -C option to grub-mkstandalone to --core-compress available
1675 in all grub-install flavours.
1676
4c4ea9c7
VS
16772013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 Merge GRUBFS and GRUB_FS variables.
1680
92e9352d
AB
16812013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1682
1683 Revert commit 69ca97c820, it caused failures when using OS device name
1684 in grub-install. Instead just strip off parenthesis in grub-install
1685 if (hdX) was passed.
1686
f585c905
AB
16872013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1688
1689 * util/grub-install.c (push_partmap_module): Add helper to convert
1690 partmap names to module names and use it in probe_mods(). Fixes
1691 failure to find partmap modules in diskfilter case.
1692
5ff24907
VS
16932013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1694
1695 * configure.ac: Make unifont mandatory on coreboot.
1696
0277eab7
VS
16972013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 * configure.ac: Skip unifont 6.3 pcf and bdf.
1700
4861b6c8
VS
17012013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 * Makefile.am: Remove partial font files if generation failed.
1704
3100cdc7
AB
17052013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1706
1707 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1708 strings.
1709 * include/grub/util/misc.h: Define it ...
1710 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1711
ad73cc33
AB
17122013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1713
1714 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1715 ${grub_probe}.
1716
41822625
VS
17172013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1718
1719 Don't add -mlong-calls when compiling with clang.
1720
896f483d
VS
17212013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1722
1723 * configure.ac: Fix a typo.
1724
8c534b85
VS
17252013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 Revamp relocation handling.
1728
1729 Move more code to common dl.c. Add missing veneers for arm and arm64.
1730 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1731
a846dd4b
VS
17322013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1733
1734 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1735
aa437b58
MG
17362013-12-05 Mike Gilbert <floppym@gentoo.org>
1737
1738 * INSTALL: Raise minimum python version to 2.6.
1739 * gentpl.py: Use python3-style print function.
1740
b0f311f4
VS
17412013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 * util/grub-install.c: Mention Boot* variable.
1744
59b38922
CW
17452013-12-05 Colin Watson <cjwatson@ubuntu.com>
1746
1747 * grub-core/osdep/linux/hostdisk.c
1748 (grub_util_find_partition_start_os): Initialise start to avoid
1749 spurious compiler warning.
1750
0480665b
CW
17512013-12-05 Colin Watson <cjwatson@ubuntu.com>
1752
1753 On Linux, read partition start offsets from sysfs if possible, to
1754 cope with block device drivers that don't implement HDIO_GETGEO.
1755 Fixes Ubuntu bug #1237519.
1756
1757 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1758 function.
1759 (sysfs_partition_start): Likewise.
1760 (grub_util_find_partition_start_os): Try sysfs_partition_start
1761 before HDIO_GETGEO.
1762
bbeee1c4
LL
17632013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1764
1765 * grub-core/kern/fdt.c: Update struct size when adding node.
1766
e5ed2f69
VS
17672013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1768
1769 Handle unaligned .bss on sparc64.
1770
1771 Current code improperly assumes that both __bss_start and _end are
1772 aligned to 8-bytes. Eliminating this assumption and explicitly align
1773 modules.
1774
4a73746a
VS
17752013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1776
1777 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1778 so it doesn't land in the middle of loaded image.
1779
382b500e
VS
17802013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1781
1782 * configure.ac: Move all warning options that may be absent in
1783 gcc >= 3.1 to optional.
1784
1785 Note: while this allows to compile with older GCC, official requirements
1786 remain the same and no support for older GCC.
1787
3a82f8bb
CW
17882013-12-04 Colin Watson <cjwatson@ubuntu.com>
1789
1790 Copying the themes directory in grub-shell isn't
1791 parallel-test-friendly and breaks on the second test when the source
1792 directory is read-only (as in "make distcheck"). Instead, add a
1793 hidden --themes-directory option to grub-mkrescue et al, and use it
1794 in grub-shell.
1795
e3046431
VS
17962013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1799 as it's no longer necessarry.
1800
bdb6090d
VS
18012013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 * configure.ac: Allow compilation with older GCC for ARM.
1804
b73b70eb
VS
18052013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1806
1807 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1808 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1809 ppc.
1810
8a3f0a24
VS
18112013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1812
1813 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1814
6f07c4e4
VS
18152013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 Pass font config to config.h and not by TARGET_CFLAGS as adding
1818 arguments doesn't work if TARGET_CFLAGS is specified on command
1819 line.
1820
60d5e9cb
VS
18212013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 * configure.ac: Add -Wvla if compiler supports it.
1824
cd15c394
VS
18252013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1828 Remove variable length arrays.
1829 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1830
bb6e299c
VS
18312013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1832
1833 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1834
85eb579a
VS
18352013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 * include/grub/types.h: Declare all byteswaps as inline functions
1838 except compile-time ones.
1839
1840 Solves variable shadowing in constructions like
1841 cpu_to_le (le_to_cpu(x) + 1).
1842
47f88cc9
VS
18432013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1844
1845 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1846
40b5739f
VS
18472013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1850 minutes.
1851
234d9346
VS
18522013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1853
1854 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1855 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1856
0c0eab52
CW
18572013-12-03 Colin Watson <cjwatson@ubuntu.com>
1858
1859 * grub-core/Makefile.core.def (setjmp): Distribute
1860 lib/arm64/setjmp.S.
1861
44d48847 18622013-12-03 Colin Watson <cjwatson@ubuntu.com>
8f236c14
CW
1863
1864 Add a new timeout_style environment variable and a corresponding
1865 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1866 controls hidden-timeout handling more simply than the previous
1867 arrangements, and pressing any hotkeys associated with menu entries
1868 during the hidden timeout will now boot the corresponding menu entry
1869 immediately.
1870
1871 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1872 generates a warning, and if it shows the menu it will do so as if
1873 the second timeout were not present. Other combinations are
1874 translated into reasonable equivalents.
1875
10955cda
CW
1876 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1877
9e4e6ddf
VS
18782013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1879
1880 * util/config.c: Add missing pointer adjustment.
1881 Reported by: qwertial
1882
5037aa9a
AB
18832013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1884
1885 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1886 directly, not via `cpu' link, to fix libgrub.pp generation.
1887
8a952d20
VS
18882013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1889
1890 New port arm64-efi.
1891
be0d4555
AB
18922013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1893
1894 * docs/grub.texi (sleep): Document exit codes.
1895
d74b9a1d
VS
18962013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 Ensure that -mno-unaligned-access or some equivalent option is used.
1899
35de6d4b
VS
19002013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1903 -march=armv3.
1904
ce55ed03
VS
19052013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1906
1907 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1908
8ddf84bf
CW
19092013-11-29 Colin Watson <cjwatson@ubuntu.com>
1910
1911 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1912 builds, since we don't have an EPS version of font_char_metrics.png.
1913 Add leading dot to image extension per the Texinfo documentation.
1914
fd0df6d0
CW
19152013-11-29 Colin Watson <cjwatson@ubuntu.com>
1916
1917 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1918 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1919 * util/grub-gen-widthspec.c: Likewise.
1920 * util/grub-mkfont.c: Likewise.
1921
69ca97c8
AB
19222013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1923
1924 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1925 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1926 failed to install on (hdX).
1927 * util/grub-setup.c (get_device_name): Remove, not needed after
1928 above change.
1929
eec893ae
VS
19302013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1933
621e167f
VS
19342013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 * util/grub-fstest.c: Remove variable length arrays.
1937
d54f647a
VS
19382013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1941
c8a0f1b2
VS
19422013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1943
1944 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1945 computing crc32 rather than handling with md fundtions directly.
1946
726409a5
VS
19472013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1948
1949 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1950 checking fwstart.img rather than md fundtions directly.
1951
422e6e88
VS
19522013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1953
1954 * util/grub-mkrescue.c (main): Check that fread succeeded.
1955
af1faca3
VS
19562013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1957
1958 * conf/Makefile.common: Remove -mexplicit-relocs and
1959 -DUSE_ASCII_FALLBACK on yeeloong.
1960
1961 -DUSE_ASCII_FALLBACK is already added by font snippets.
1962 -mexplicit-relocs isn't needed is compiler/assemblera are
1963 configured properly.
1964 If they're not we shouldn't attempt to fix it by ourselves.
1965 Binary compare between before and after shows no difference.
1966
469021b4
VS
19672013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1968
1969 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1970 sources in dependencies directly.
1971
1972 This was the only instance of "library" in core config. A bug was
1973 reported that -fno-stack-protector wasn't passed to it. Instead of
1974 figuring out why it failed just remove this construction used
1975 needlessly.
1976
83c256ba
VS
19772013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1978
1979 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1980 fgets succeeded.
1981
b67422d3
FL
19822013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1983
1984 * docs/grub.texi (ls): Fix command description in case of a device name
1985 passed as argument.
1986
2d76b4d8
VS
19872013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1988
1989 Eliminate variable length arrays in grub_vsnprintf_real.
1990
1991 A bit tricky because this function has to continue to work without
1992 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1993 but make all stack references use 32-bit offset rather than 8-bit one.
1994 So split va_args preparsing to separate function and put the prealloc
1995 into the caller.
1996
4f954122
VS
19972013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1998
1999 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2000 Fixes build for windows.
2001
b1f742c1
VS
20022013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2003
2004 * gentpl.py: Don't generate platform-dependent conditionals for
2005 platform-independent targets.
2006
16ef26fd
CW
20072013-11-27 Colin Watson <cjwatson@ubuntu.com>
2008
2009 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2010 references to mdadm from otherwise generic code.
2011 (grub_util_exec_pipe): Likewise.
2012 (grub_util_exec_pipe_stderr): Likewise.
2013 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2014 This function calls vgs, not mdadm; adjust variable names
2015 accordingly.
2016
cf8c80ff 20172013-11-27 Colin Watson <cjwatson@ubuntu.com>
ab4f1501
CW
2018
2019 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2020 of Autogen. The Autogen definitions files remain intact as they
2021 offer a useful abstraction.
2022
5c7206e4
CW
20232013-11-27 Colin Watson <cjwatson@ubuntu.com>
2024
2025 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2026 into no-ops, and use it in programs that copy files but do not need
2027 to take special care to sync writes (grub-mknetdir, grub-rescue,
2028 grub-mkstandalone).
2029
fc3f2b72
CW
20302013-11-26 Colin Watson <cjwatson@ubuntu.com>
2031
2032 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2033 than hardcoding /usr/local/bin/xorriso.
2034
1e4b3587
VS
20352013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 Add PCI command activation to all PCI drivers as required for coreboot
2038 and maybe some other firmwares.
2039
9208367d
VS
20402013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2043 and non-Apple variants of efiemu compile.
2044
67b9b7af
AB
20452013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2046
2047 * configure.ac: Add explicit check for linking format of
2048 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2049 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2050 hardcoding linking format.
2051
bee1b5ce
VS
20522013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2053
2054 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2055 and not pkgdatadir.
2056
07e3b047
CW
20572013-11-25 Colin Watson <cjwatson@ubuntu.com>
20582013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2059
2060 Add a --locale-directory option to grub-install and related tools.
2061
2062 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2063 --locale-directory option.
2064 (enum grub_install_options): Add
2065 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2066 * util/grub-install-common.c (grub_install_help_filter): Handle
2067 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2068 (grub_install_parse): Likewise.
2069 (get_localedir): New function to check for a user-provided option
2070 before trying grub_util_get_localedir.
2071 (copy_locales): Use get_localedir rather than
2072 grub_util_get_localedir. Handle differing locale directory layouts.
2073 (grub_install_copy_files): Likewise.
2074
61e1b9a4
VS
20752013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2076
2077 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2078 Don't rely on PATH_MAX.
2079
c98dd165
VS
20802013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2081
2082 * grub-core/genmoddep.awk: Use more portable && rather than and.
2083
ff1c277e
VS
20842013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2085
2086 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2087 an object after data. While it doesn't seem right solution, it
2088 works well enough and OSX isn't main compilation platform.
2089
c8f7614b
VS
20902013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2093 While it doesn't seem right solution, it works well enough and
2094 OSX isn't main compilation platform.
2095
246a434f
VS
20962013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 * configure.ac: Add -static to LDFLAGS when using apple linker to
2099 prevent it from pulling in dynamic linker.
2100
5c066a81
VS
21012013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2102
2103 Apple assembly doesn't handle symbol arithmetic well. So define an
2104 offset symbol in boot.S and use it.
2105
78f961ef
VS
21062013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 Apple assembly doesn't handle symbol arithmetic well. So instead
2109 of getting addres of kernel_sector + 4 define kernel_sector_high.
2110 It also makes code more readable.
2111
09bc0a57
VS
21122013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 With Apple assembly in .macro environvemnt you have to use $$ instead
2115 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2116 to $$x on Apple and to $x on everything else.
2117
b700a427
VS
21182013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2121 OBJCONV.
2122
4480b95d
VS
21232013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2124
2125 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2126 and non-Apple. This instruction is shorter and faster,
2127 so no reason not to use it on both.
2128
e77c81f6
VS
21292013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2132 .text when compiling for Apple.
2133
971dbee5
VS
21342013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2135
2136 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2137
6f2e82be
VS
21382013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2141 %dx restore the probe worked on non-existant drive. Reorganize the
2142 code a little bit to free 2 bytes necessary for push/pop.
2143
9eec9699
VS
21442013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2147 Add missing cast to silence warning.
2148
5ae5c54c
KPA
21492013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2150
2151 * util/grub-install.c (update_nvram): Support --no-nvram flag
2152 for EFI targets.
2153
7b04fe6c
VS
21542013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2155
2156 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2157
e67566ce
VS
21582013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2159
2160 * util/garbage-gen.c: Add missing include of sys/time.h.
2161
f93ddcfd
VS
21622013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 Don't add -mflush-func if it's not supported by compiler.
2165
1bba40f5
VS
21662013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2167
2168 Move common BIOS/coreboot memory map declarations to
2169 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2170
f65e14dc
AB
21712013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2172
2173 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2174
14a94bba
VS
21752013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2176
2177 * INSTALL: Document why older clang versions aren't appropriate.
2178
8109c5d4
VS
21792013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 * INSTALL: Document about clang for mips.
2182
a92b5cb8
VS
21832013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2184
2185 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2186 clang.
2187
4a23e2fe
VS
21882013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2189
2190 Add *-xen to the list of grub-install-common platforms.
2191
a3ba7410
VS
21922013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2195 3 last commits.
2196
e1c22419
VS
21972013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2198
2199 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2200
189090ce
VS
22012013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2202
2203 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2204 with -mcmodel=large.
2205
1a5b7b40
VS
22062013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2207
2208 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2209 range-checking for 32-bit quantities.
2210
9cf12b20
VS
22112013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2212
2213 * configure.ac: Compile with -fPIC when compiling with clang on
2214 mips.
2215
63a45330
VS
22162013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2219 when compiling with clang.
2220
4a0aaad0
VS
22212013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 clang emits calls to abort () under some unknown conditions.
2224 Export abort () when compiling with clang.
2225
095bb1bf
VS
22262013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * docs/grub-dev.texi: Document stack and heap sizes.
2229
3937bd96
VS
22302013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 * include/grub/i386/pc/memory.h: Decrease
2233 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2234 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2235 The binary doesn't change (checked). It's more to better reflect actual
2236 usage.
2237
ddb3efc9
VS
22382013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2239
2240 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2241 at compile time that enough of scratch size is available.
2242
4e42521d
VS
22432013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2246 Previously we misaligned stack by 8 in startup.S and compensated
2247 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2248 right behaviour is to align stack in startup.S and keep it aligned
2249 in callwrap.S. startup.S part was committed few commits before. This
2250 takes care of callwrap.S.
2251 Reported by: Gary Lin.
2252
054efe54
VS
22532013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2254
2255 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2256 .data and .bss. May happen if compiler and assembly use different
2257 alignment.
2258
a0e1befb
VS
22592013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2262 way.
2263
c36c73f6
VS
22642013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2265
2266 Add support for a new magic symbol _gp_disp on mips to handle PIC
2267 binaries.
2268
6f4a19f5
VS
22692013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2270
2271 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2272
0d8f04cd
VS
22732013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2276 when rest of GRUB is compiled for hisher stepping. Instead use
2277 .set mips3/.set mips1 around cache and sync opcodes.
2278
49060520
VS
22792013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2280
2281 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2282 do essentially the same thing, do it in similar way.
2283
c6a823e2
CW
22842013-11-21 Colin Watson <cjwatson@ubuntu.com>
2285
2286 * util/grub-mkrescue.c (main): If a source directory is not
2287 specified, read platform-specific files from subdirectories of
2288 pkglibdir, not pkgdatadir.
2289
b7f9aedf
CW
22902013-11-21 Colin Watson <cjwatson@ubuntu.com>
2291
2292 * grub-core/normal/progress.c: Remove unused file.
2293
7dd0a303
VS
22942013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2297 array.
2298
ca120e31
VS
22992013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2300
2301 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2302 than grub.cfg.
2303
48eb35cd
VS
23042013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2305
2306 * coreboot.cfg: Add missing file.
2307
7f20dbbc
VS
23082013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2311
55e706c9
AK
23122013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2313
2314 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2315 selectively skipping systems.
2316
4e7d433d
CW
23172013-11-19 Colin Watson <cjwatson@ubuntu.com>
2318
2319 * Makefile.util.def (grub-mkimage): Add
2320 grub-core/osdep/aros/config.c to extra_dist.
2321 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2322 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2323 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2324 grub-core/gnulib-no-gets.diff.
2325
7d44ff7d
VS
23262013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2327
2328 Add automated filesystem checking based on scripts I've used now for
2329 quite some time locally. Most of the test require root so they are
2330 skipped when run without necessarry privelegies.
2331
a8c3e5e3
CW
23322013-11-19 Colin Watson <cjwatson@ubuntu.com>
2333
2334 * util/grub-install.c (main): Adjust info messages to match
2335 installed paths of grub-bios-setup and grub-sparc64-setup.
2336
4402db3e
CW
23372013-11-19 Colin Watson <cjwatson@ubuntu.com>
2338
2339 * util/grub-install-common.c (copy_locales): Consistently use
2340 grub_util_get_localedir () rather than LOCALEDIR.
2341 (grub_install_copy_files): Likewise.
2342
7960d3e1
JT
23432013-11-19 Josh Triplett <josh@joshtriplett.org>
2344
2345 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2346 16-byte boundary, as required by the x86-64 ABI, before calling
2347 grub_main. In some cases, GCC emits code that assumes this
2348 alignment, which crashes if not aligned. The EFI firmware is also
2349 entitled to assume that stack alignment without checking.
2350
d53f4900
JT
23512013-11-18 Josh Triplett <josh@joshtriplett.org>
2352
2353 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2354 4k page boundaries as expected by firmware rather than 1k
2355 boundaries.
2356 (grub_mmap_malign_and_register): Likewise.
2357
bb2b275b
VS
23582013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2359
2360 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2361 fragmentation 512M is enough.
2362
45bf8b3a
VS
23632013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2364
2365 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2366 pointer to 32K. This is the size of cache element which is the most
2367 common allocation >1K. This way the pointer is always around blocks
2368 of 32K and so we keep performance while decreasing fragmentation.
2369
39ff43c5
VS
23702013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2373 current memory when allocating large chunks. This significantly
2374 decreases memory fragmentation.
2375
60870be8
CW
23762013-11-18 Colin Watson <cjwatson@ubuntu.com>
2377
2378 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2379 but for symmetry).
2380 * tests/lzocompress_test.in: Skip if lzop is not installed.
2381 * tests/xzcompress_test.in: Skip if xz is not installed.
2382
a1f00cc5
CW
23832013-11-18 Colin Watson <cjwatson@ubuntu.com>
2384
2385 * util/grub-mkrescue.c (main): Fix typo.
2386
74e632fe
VS
23872013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2388
2389 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2390 clock frequency to 200 MHz,
2391
efb8de49
VS
23922013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2393
2394 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2395
b7526e78
VS
23962013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2399 Load config file from (cbfsdisk)/etc/grub.cfg.
2400
b40ce651
VS
24012013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * util/grub-install-common.c (grub_install_copy_files): Fix module
2404 destination directory.
2405
1e8e2e78
CW
24062013-11-18 Colin Watson <cjwatson@ubuntu.com>
2407
2408 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2409 files have not been built.
2410
3bf4088b
CW
24112013-11-18 Colin Watson <cjwatson@ubuntu.com>
2412
2413 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2414 Handle errors from mkstemp.
2415 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2416
35c2851c
VS
24172013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2418
2419 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2420 on primary master on pseries.
2421
ea7c1a7d
VS
24222013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2423
2424 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2425 already loaded. This saves memory needed for tests,
2426
96adefdb
VS
24272013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2428
2429 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2430 work again.
2431
5e3cb8a7
VS
24322013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2433
2434 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2435 work again.
2436
256ee7ac
VS
24372013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2440 master since with some combinations of qemu and firmware only primary
2441 IDE channel is available.
2442
f8b4c3b6
VS
24432013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2446 low-memory platforms where we don't have enough memory for them.
2447 * grub-core/tests/videotest_checksum.c: Likewise.
2448
4bf70320
VS
24492013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2450
2451 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2452 already loaded. This saves memory needed for tests,
2453
a284320e
VS
24542013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2455
2456 Fix handling of install lists.
2457
2df8f43d
VS
24582013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2459
2460 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2461
6f1bc8bc
VS
24622013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2465 the devices before accessing them.
2466
04f39f6d
VS
24672013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2468
2469 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2470 as file argument.
2471
35d4761c
VS
24722013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2473
2474 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2475
33d02a42
VS
24762013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2477
2478 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2479 (grub_file_close): Free file->name.
2480
7bbb60cf
VS
24812013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2482
2483 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2484 (grub_load_public_key): Likewise.
2485 (grub_verify_signature_real): Likewise.
2486 (grub_cmd_verify_signature): Likewise.
2487
da93d675
VS
24882013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2489
2490 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2491 memory leak.
2492
59c943ec
VS
24932013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2494
2495 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2496 (grub_longjmp): Restore r31.
2497 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2498
4336b5d8
VS
24992013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2502 modules to be in line with make_image_abs.
2503
44ce3a93
VS
25042013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2505
2506 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2507
2508 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2509
7d400406
IC
25102013-11-17 Ian Campbell <ijc@hellion.org.uk>
2511
2512 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2513
77dae919
VS
25142013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2515
2516 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2517 to leave some memory to firmware.
2518
0ab8e025
VS
25192013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2520
2521 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2522 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2523 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2524 Load gfxmenu.
2525
b80c2d6d
VS
25262013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2529 now needs full arguments.
2530
6aa6077b
VS
25312013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2532
2533 * util/grub-mkrescue.c (main): Add trailing \n in
2534 .disk_label.contentDetails to be in line with previous shell script.
2535
66c00cb1
VS
25362013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2537
2538 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2539
3a129dba
VS
25402013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 * util/grub-install-common.c (grub_install_parse): Recognize
2543 --compress=none like shell script did.
2544
8df6eff6
VS
25452013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2546
2547 * include/grub/misc.h: Replace check for __sparc64__ with one for
2548 __sparc__ as __sparc64__ isn't actually defined.
2549
889ebe92
VS
25502013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2551
2552 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2553 counterpart of fixing the naming of escc ports.
2554
d4d55b29
VS
25552013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2556
2557 * util/grub-install-common.c (platforms): Fix the order of entries and
2558 remove useless field val.
2559
55e2c84f
VS
25602013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2561
2562 * util/grub-install.c: Add new option --no-bootsector to skip
2563 installing of bootsector. Accept --grub-setup=/bin/true as
2564 backwards-compatible synonym.
2565
cd46aa6c
VS
25662013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2567
2568 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2569 order of qsort arguments (number of elements vs. element size).
2570
25712013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2574 the function of these files exceeds what can be sanely handled in shell
2575 in posix-comaptible way. Also writing it in C extends the functionality
2576 to non-UNIX-like OS and minimal environments.
2577
9ef81064
VS
25782013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2579
2580 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2581 compiling to thumb2.
2582 * grub-core/kern/arm/cache_armv7.S: Likewise.
2583 * grub-core/lib/arm/setjmp.S: Likewise.
2584
11a77932
LL
25852013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2586
2587 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2588 in grub_uboot_syscall
2589
080603f0
VS
25902013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2591
2592 Decrease stack usage in lexer.
2593
2594 We have only 92K of stack and using over 4K per frame is wasteful
2595
2596 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2597 as macros so that compiler would remove useless structure on stack.
2598 Better solution would be to fix flex not to put this structure on
2599 the stack but flex is external program.
2600
4f84ae0e
VS
26012013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2602
2603 Decrease stack usage in signature verification.
2604
2605 We have only 92K of stack and using over 4K per frame is wasteful
2606
2607 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2608 rather than stack.
2609 (grub_verify_signature_real): Likewise.
2610
e6a6182d
VS
26112013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 Decrease stack usage in mdraid 0.9x.
2614
2615 We have only 92K of stack and using over 4K per frame is wasteful
2616
2617 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2618 rather than stack.
2619
1a454efe
VS
26202013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2621
2622 Decrease stack usage in BtrFS.
2623
2624 We have only 92K of stack and using over 4K per frame is wasteful
2625
2626 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2627 rather than stack.
2628
7b5d51d8
VS
26292013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2630
2631 Decrease stack usage in JFS.
2632
2633 We have only 92K of stack and using over 4K per frame is wasteful
2634
2635 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2636 stack. Note: this function is recursive.
2637 (grub_jfs_read_inode): Read only part we care about.
2638
593865b9
LL
26392013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2640
2641 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2642 handling
7b5d51d8 2643
31c0cd43
AB
26442013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2645
2646 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2647
c2fdb331
AB
26482013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2649
2650 * docs/grub.texi (Environment): Document cmdpath.
2651
9e18dfe2
AB
26522013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2653
2654 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2655 Remove "unused" attribute from arguments, they are used.
2656
59ba9d14
CW
26572013-11-15 Colin Watson <cjwatson@debian.org>
2658
2659 * .gitignore: Only ignore grub-mk* at the top level.
2660
23012db9
CW
26612013-11-15 Colin Watson <cjwatson@ubuntu.com>
2662
2663 * util/grub-reboot.in (usage): Fix a typo.
2664
6fcec439
VS
26652013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2666
2667 Replace libgcc version of ctz with our own.
2668
2669 On upcoming arm64 port libgcc ctz* are not usable in standalone
2670 environment. Since we need ctz* for this case and implementation is
2671 in C we may as well use it on all concerned platforms.
2672
a9f25a08
VS
26732013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2674
2675 * configure.ac: Probe for linking format rather than guessing it based
2676 on target_os.
2677
c7995256
VS
26782013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2679
2680 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2681 "1" prior to handoff.
2682
2683 Reported by: M A Young.
2684
e1aa5b66
VS
26852013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2686
2687 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2688 \0 to all files.
2689
2690 Reported by: M A Young.
2691
da5ed5cf
VS
26922013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2695 compilation on NetBSD.
2696
5757a93e
VS
26972013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 * acinclude.m4: Don't add -P on initial nm test.
2700
2701 Note: even though this patch postdates Andrey's it bears 14 Nov as
2702 date due to timezone difference.
2703
a5986276
AB
27042013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2705
2706 * grub-core/Makefile.core.def (signature_test): Add missing
2707 tests/signatures.h.
2708
0de172a0
CW
27092013-11-14 Colin Watson <cjwatson@ubuntu.com>
2710
2711 * util/grub-install_header: Set localedir here, since this file is
2712 where it's used.
2713 * util/grub-install.in: Remove setting of localedir.
2714 * util/grub-mkrescue.in: Likewise.
2715
da45f43c
VS
27162013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2719
20aea949
VS
27202013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * configure.ac: Move nm checks to the end.
2723 Call grub_PROG_NM_WORKS.
2724 * acinclude.m4: New check grub_PROG_NM_WORKS.
2725 Use $TARGET_CFLAGS -c when compiling test binary.
2726
1326b9ae
CW
27272013-11-14 Colin Watson <cjwatson@ubuntu.com>
2728
2729 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2730 unused variables.
2731
1fe26ab4
MG
27322013-11-14 Matthew Garrett <mjg@redhat.com>
2733
2734 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2735 cmdpath to firmware directory.
2736
83e9c273
VS
27372013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2740 at the start of second iteration.
2741
ec525c18
VS
27422013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2743
2744 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2745
93fcc7ad
VS
27462013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * Makefile.am (default_payload.elf): New target for easier coreboot
2749 build.
2750
57ffe934
VS
27512013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2754 clang (not necessarry with -no-integrated-as).
2755 * include/grub/symbol.h [__arm__]: Likewise.
2756
2312f06c
VS
27572013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 * configure.ac: Use -no-integrated-as on arm with clang.
2760 * INSTALL: Mention ARM compilation with clang.
2761
2416415c
VS
27622013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2765 -mthumb-interwork.
2766
5da55172
CW
27672013-11-14 Colin Watson <cjwatson@ubuntu.com>
2768
2769 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2770 code for indirect block handling.
2771
2772 Saves 185 bytes on compressed image.
2773
da770328
PFS
27742013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2775
2776 Fix make clean.
2777
2778 * Makefile.am: Remove build-grub-* in make clean.
2779
f02e6b56
PFS
27802013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2781
2782 New files to gitignore.
2783
2784 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2785 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2786
035a26c1
LL
27872013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2788
2789 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2790
bc8a6137
LL
27912013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2792
2793 * .gitignore: fix rules for .dep* and add *.a post git migration
2794
6fe506b0
CW
27952013-11-13 Colin Watson <cjwatson@ubuntu.com>
2796
2797 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2798 to match INSTALL.
2799
81a2e438
CW
28002013-11-13 Colin Watson <cjwatson@ubuntu.com>
2801
2802 * grub-core/kern/misc.c: Don't redirect divisions in the
2803 GRUB_UTIL case.
2804 * include/grub/misc.h: Likewise.
2805
9b45c073
CW
28062013-11-13 Colin Watson <cjwatson@ubuntu.com>
2807
2808 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2809 systems that require checking the return value of write.
2810
11b2a9b7
CW
28112013-11-13 Colin Watson <cjwatson@ubuntu.com>
2812
2813 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2814 efibootmgr quiet when --debug is not used, rather than when it is.
2815
d743d22d
CW
28162013-11-13 Colin Watson <cjwatson@ubuntu.com>
2817
2818 * gentpl.py (define_macro_for_platform_dependencies): Remove
2819 first (and thus unused) of two definitions for this function.
2820 (platform_dependencies): Likewise.
2821
11da14b5
CW
28222013-11-13 Colin Watson <cjwatson@ubuntu.com>
2823
2824 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2825 functions, we only need to check this for the target, not the host.
2826 * configure.ac (grub_apple_cc): Likewise.
2827
2bdd0719
VS
28282013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2831 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2832 asm to stay in arm even if surrounding is thumb.
2833
5e77d9cf
VS
28342013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2835
2836 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2837 helper functions are needed for thumb.
2838
7d511625
VS
28392013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2840
2841 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2842 level / 3 division explicitly unsigned. Saves few bytes.
2843
81023dbd
VS
28442013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2847
b2e9294f
VS
28482013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2851 division.
2852
16a22c38
VS
28532013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2856 grub_uboot_boot_data to asm part.
2857
c9cd02c9
VS
28582013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2861 literal load.
2862 (grub_uboot_syscall): Save/restore r9 and align stack.
2863
81498615
VS
28642013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2865
2866 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2867
ea57de18
VS
28682013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2871 occurencies with END.
2872
d0d1e3da
CW
28732013-11-13 Colin Watson <cjwatson@ubuntu.com>
2874
2875 * util/grub-editenv.c (help_filter, argp): Document how to delete
2876 the whole environment block.
2877 Reported by Dan Jacobson. Fixes Debian bug #726265.
2878
3809f016
CW
28792013-11-13 Colin Watson <cjwatson@ubuntu.com>
2880
2881 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2882 sectioning.
2883
46d8a203
JT
28842013-11-13 Josh Triplett <josh@joshtriplett.org>
2885
2886 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2887 increment/decrement.
2888
513eeb61
VS
28892013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2890
2891 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2892 compiling with clang.
2893
bc379c1a
VS
28942013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2895
2896 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2897 ".".
2898
28992013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
286551b4 2900
16057d6b
VS
2901 Redirect all divisions to grub_divmod64.
2902
f649a6a8
VS
29032013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2906
ef28ee8b
VS
29072013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 Add missing includes of loader.h.
2910
300f48c5
VS
29112013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 * configure.ac: Allow disabling themes.
2914
2d357558
LS
29152013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2916
2917 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2918
0c62a5b2
VS
29192013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2920
2921 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2922 until it becomes operational.
2923
b0720b49
VS
29242013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * grub-core/Makefile.core.def (legacy_password_test): Disable
2927 on platforms where no legacycfg is compiled.
2928 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2929 load legacy_password_test.
2930
d5bab2c0
VS
29312013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2934
3ea0ccb3
VS
29352013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2938
08772054
VS
29392013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2940
2941 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2942 strict-aliasing warning.
2943 (fsync): Silence cast warning.
2944
1dcb2715
VS
29452013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2946
2947 * grub-core/commands/verify.c: Remove variable length arrays.
2948 Load gcry_dsa/gcry_rsa automatically.
2949
61c22fdf
VS
29502013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2951
2952 * grub-core/tests/signature_test.c: New test.
2953
431e57a7
VS
29542013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2955
2956 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2957 API.
2958
b521bb81
VS
29592013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2960
2961 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2962 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2963
7d06b24e
VS
29642013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2967
3bbeade4
VS
29682013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2969
2970 * grub-core/fs/proc.c: Allow \0 in proc files.
2971
ba82db7a
VS
29722013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2973
2974 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2975
801564c8
VS
29762013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2977
2978 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2979
ac8cac1d
VS
29802013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2981
2982 * grub-core/fs/ext2.c: Remove variable length arrays.
2983
4b85f122
VS
29842013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2987 length arrays.
2988
c35fcdc0
VS
29892013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2990
2991 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2992 * grub-core/disk/cryptodisk.c: Likewise.
2993 * grub-core/disk/geli.c: Likewise.
2994 * grub-core/disk/luks.c: Likewise.
2995
15decd26
VS
29962013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * grub-core/tests/legacy_password_test.c: New test.
2999 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3000
9c6482b8
VS
30012013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3004
41f26e0e
VS
30052013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 * grub-core/tests/pbkdf2_test.c: New test.
3008
2def6616
VS
30092013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3012
9e34a34e
VS
30132013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * grub-core/io/lzopio.c: Remove variable length arrays.
3016
5ccaf904
VS
30172013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3018
3019 * include/grub/crypto.h: Add maximums on hash size and cipher block
3020 size.
3021
44a387e0
VS
30222013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3025
a388e255
VS
30262013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3027
3028 * grub-core/tests/xnu_uuid_test.c: New test.
3029
a1ef7718
VS
30302013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3031
3032 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3033 covers it).
3034
65ddb300
VS
30352013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * grub-core/commands/hashsum.c: Remove variable length arrays.
3038
31747dd5
VS
30392013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3042 condition.
3043 * tests/grub_func_test.in: Increase memory allocation.
3044
6a74c4df
VS
30452013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3046
3047 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3048 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3049 sys/mount.h.
3050
394c3e0a
VS
30512013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3054 (grub_util_get_fd_size_os): ...this.
3055 (grub_hostdisk_flush_initial_buffer): New empty function.
3056
60d31116
VS
30572013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3060 without --defined-only.
3061
8445b011
VS
30622013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3063
3064 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3065 rip-relative addressing in prologue.
3066
8506a641
VS
30672013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3068
3069 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3070 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3071
66acd9d6
VS
30722013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3075 Add missing semicolon.
3076
348d0535
VS
30772013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3080
0d2d30bb
VS
30812013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3082
3083 * configure.ac: Check for lzma.h for enabling liblzma and allow
3084 manual disabling.
3085
631187be
VS
30862013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 Add missing includes of loader.h.
3089
e756ec82
FZ
30902013-11-11 Fam Zheng <famcool@gmail.com>
3091
3092 * util/grub.d/30_os-prober.in: Add minix entry.
3093
87d62d7d
VS
30942013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3095
3096 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3097 right buffer for temporary load.
3098
5460cfeb
VS
30992013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3102
89977306
VS
31032013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3106 payload.
3107
3617c59b
VS
31082013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3109
3110 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3111 not Types.h.
3112 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3113 environment.
3114 (LzmaDec_InitDicAndState): Make static.
3115
881c6a10
VS
31162013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3119
2024ade2
VS
31202013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3121
3122 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3123
3124 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3125
674ad4f6
VS
31262013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 * docs/grub-dev.texi: Replace bzr references with git ones.
3129
5b99970e
AB
31302013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3131
3132 * docs/grub.texi (Simple configuration): Remove reference to
3133 grub-reboot from saved default entry description - grub-default
3134 does not use it anymore.
3135
3c2304d5
VS
31362013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3139 compiled with.
3140
80cfd940
AB
31412013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3142
3143 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3144
33690255
VS
31452013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 Fix grub_machine_fini bitrot.
3148
3149 Reported by: Glenn Washburn.
3150
c61471fc
VS
31512013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3152
3153 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3154
54da019f
VS
31552013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3156
3157 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3158 -DELF.
3159 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3160 instead of ELF*.
3161
31622013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
28668d80
VS
3163
3164 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3165 Add -march=core2 when testing compile of efiemu64.
3166
3167 Thanks Andrey Borzenkov for spotting this.
3168
9612ebc0
VS
31692013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3170
3171 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3172 XEN PV environment and load kernels.
3173
1a46a3a4
VS
31742013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3177 * grub-core/loader/multiboot_mbi2.c: Likewise.
3178
2df12551
VS
31792013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3182 handling.
3183
3c980381
VS
31842013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3187
3188 Tested by: Denis 'GNUtoo' Carikli.
3189
800f63d3
VS
31902013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3193
9f8acdaa
VS
31942013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3195
5620eb53
VS
3196 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3197 Use to get rounded angle rather than truncated.
3198
31992013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 * grub-core/term/serial.c: Add option for enabling/disabling
9f8acdaa
VS
3202 RTS/CTS flow control.
3203
2dc1eb6c
VS
32042013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3205
3206 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3207 divisions.
3208
b9563c94
VS
32092013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3210
3211 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3212 Use grub_fatal rather than divide by zero.
3213 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3214
d6d8e9a9
VS
32152013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3218 truncate.
3219 (grub_fixed_fsf_divide): Likewise.
3220
d06de6c8
VS
32212013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3222
3223 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3224 division by-zero and senseless negative divisions.
3225
6af7d49b
VS
32262013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3227
3228 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3229 division by-zero and senseless negative divisions.
3230 (circprog_set_property): Don't accept negative num_ticks.
3231
bcfa6d72
VS
32322013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3235 division by-zero and senseless negative divisions.
3236
dd7f792c
VS
32372013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 * configure.ac: Use elf_*_fbsd on kfreebsd.
3240
d061fda7
VS
32412013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3242
3243 * grub-core/tests/div_test.c: New test.
3244
4db22500
VT
32452013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3246
3247 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3248 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3249 * grub-core/gfxmenu/view.c: Likewise.
3250 * grub-core/video/fb/video_fb.c: Introduce new functions:
3251 grub_video_set_area_status, grub_video_get_area_status,
3252 grub_video_set_region, grub_video_get_region.
3253 * grub-core/video/bochs.c: Likewise.
3254 * grub-core/video/capture.c: Likewise.
3255 * grub-core/video/video.c: Likewise.
3256 * grub-core/video/cirrus.c: Likewise.
3257 * grub-core/video/efi_gop.c: Likewise.
3258 * grub-core/video/efi_uga.c: Likewise.
3259 * grub-core/video/emu/sdl.c: Likewise.
3260 * grub-core/video/radeon_fuloong2e.c: Likewise.
3261 * grub-core/video/sis315pro.c: Likewise.
3262 * grub-core/video/sm712.c: Likewise.
3263 * grub-core/video/i386/pc/vbe.c: Likewise.
3264 * grub-core/video/i386/pc/vga.c: Likewise.
3265 * grub-core/video/ieee1275.c: Likewise.
3266 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3267 * include/grub/video.h: Likewise.
3268 * include/grub/video_fb.h: Likewise.
3269 * include/grub/fbfill.h: Updated render_target structure.
3270 grub_video_rect_t viewport, region, area
3271 int area_offset_x, area_offset_y, area_enabled
3272 * include/grub/gui.h: New helper function
3273 grub_video_bounds_inside_region.
3274 * docs/grub-dev.texi: Added information about new functions.
3275
c6b755df
VS
32762013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3279 for alignment.
3280
e2a68100
VS
32812013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3284 missing attribute.
3285 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3286
c4f11a2a
VS
32872013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3288
3289 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3290 simple division on arm and ia64.
3291
e0a7bffa
VS
32922013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3295 link with libgcc.
3296
38b864ea
VS
32972013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3298
3299 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3300
12359faf
VS
33012013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3304 prefix symbol, not @.
3305
9fdc64a9
VS
33062013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3307
3308 * INSTALL: Add note about older gcc and clang.
3309
665c575b
VS
33102013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3313
47dcf7b1
VS
33142013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3315
3316 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3317 NULL pointer dereference.
3318
d59849b2
VS
33192013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3320
3321 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3322 clang.
3323
7a3f4a18
VS
33242013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3327 warnings.
3328
7f084087
VS
33292013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3330
3331 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3332 function.
3333 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3334 * grub-core/disk/geli.c (ascii2hex): Likewise.
3335
d5524ca8
VS
33362013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3337
3338 * configure.ac: Run linker tests without -Werror.
3339 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3340 Change all occurences of -static-libgcc resp -lgcc to
3341 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3342
390cd7ca
VS
33432013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3344
3345 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3346
60375a88
VS
33472013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3348
3349 Allow compiling with clang (not really supported though).
3350
3351 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3352 unconditionally.
3353 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3354 Add -mrtd -mregparm=3 on i386 when not using clang.
3355 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3356
dd07e0c4
VS
33572013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3360 bindings.
3361 * grub-core/lib/reed_solomon.c: Likewise.
3362 * include/grub/i386/gdb.h: Likewise.
3363 * include/grub/i386/pc/int.h: Likewise.
3364 * include/grub/i386/pc/pxe.h: Likewise.
3365 * include/grub/ieee1275/ieee1275.h: Likewise.
3366
9d3ae8ec
VS
33672013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3368
3369 Import libgcrypt 1.5.3.
3370
c12936c5
VS
33712013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3372
3373 * configure.ac: Don't add -Wcast-align on x86.
3374
cdc17f60
VS
33752013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3376
3377 * configure.ac: Add -freg-struct-return on all platforms that
3378 support it.
3379
b35ec299
VS
33802013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3381
3382 * acinclude.m4: Use -Werror on parameter tests.
3383 * configure.ac: Likewise.
3384
05f3a0d7
VS
33852013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3388
c966a489
VS
33892013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3390
3391 * configure.ac: Check that -malign-loops works rather than assuming that
3392 either -falign-loops or -malign-loops work.
3393
bb0c57ec
VS
33942013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3395
3396 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3397
24f4e57c
VS
33982013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 * configure.ac: Prevent cflags leaking to subsequent tests by always
3401 resetting cflags to target_cflags in target tests.
3402
ac319fbc
VS
34032013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3404
3405 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3406 function.
3407
4bfe934c
VS
34082013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3411
40a5bfde
VS
34122013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3413
3414 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3415
a67c755e
VS
34162013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3417
3418 * grub-core/normal/cmdline.c (grub_cmdline_get):
3419 Remove nested functions.
3420
87a04a2d
VS
34212013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3422
3423 * tests/test_sha512sum.in: Make it work on emu.
3424
c03995d2
VS
34252013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3426
3427 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3428 functions.
3429 (grub_bidi_line_logical_to_visual): Likewise.
3430
ec0ebb3f
VS
34312013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 Remove vestiges of -Wunsafe-loop-optimisations.
3434
3435 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3436 -Wno-unsafe-loop-optimisations.
3437 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3438 pragma.
3439 * grub-core/io/gzio.c: Likewise.
3440 * grub-core/script/parser.y: Likewise.
3441 * grub-core/script/yylex.l: Likewise.
3442 * util/grub-mkfont.c: Likewise.
3443
6ab537e3
VS
34442013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * util/grub-mkfont.c (process_cursive): Remove nested function.
3447
e6c368d4
VS
34482013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3449
3450 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3451 (grub_boot_time): Likewise.
3452
4f1cfd22
VS
34532013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3454
3455 * include/grub/symbol.h (FUNCTION): Use @function rather than
3456 "function".
3457 (VARIABLE): Likewise.
3458
6d5a4cee
VS
34592013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3460
3461 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3462
f06c2172
VS
34632013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3466 (parse_dhcp_vendor): Likewise.
3467
7cb24eb5
VS
34682013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3471
f30c692c
VS
34722013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3475 Define after defining type and not before.
3476
8b66bb5d
VS
34772013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3480 type.
3481 (grub_gcm_decrypt): Likewise.
3482 (algo_decrypt): Likewise.
3483 (grub_zfs_decrypt_real): Transform error type.
3484
5d17fd0f
VS
34852013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3488
ac35a0f7
VS
34892013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3492 (grub_usbms_cbi_reset): Likewise.
3493 (grub_usbms_bo_reset): Likewise.
3494 (grub_usbms_reset): Likewise.
3495 (grub_usbms_attach): Likewise.
3496 (grub_usbms_transfer_cbi): Likewise.
3497
3ee08697
VS
34982013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3501 "checksum = checksum;".
3502
70bb6c85
VS
35032013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3504
3505 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3506 entry_type.
3507
c7f34744
VS
35082013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3511 BIOS disk check.
3512
3f63b4d8
VS
35132013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3514
3515 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3516 type.
3517 (grub_ehci_fini_hw): Likewise.
3518 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3519
dac6ce73
VS
35202013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3521
3522 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3523 return grub_usb_err_t for cosistency. All users updated.
3524
5701750c
VS
35252013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3526
3527 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3528 assigning to itself.
3529
9e236169
GLD
35302013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
35312013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3532
3533 Issue separate DNS queries for ipv4 and ipv6
3534
3535 Adding multiple questions on a single DNS query is not supportted by
3536 most DNS servers. This patch issues two separate DNS queries
3537 sequentially for ipv4 and then for ipv6.
3538
3539 Fixes: https://savannah.gnu.org/bugs/?39710
3540
3541 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3542 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3543 * (grub_net_dns_lookup): Now using separated dns packages.
3544 * (grub_cmd_nslookup): Add error condition.
3545 * (grub_cmd_list_dns): Print DNS option.
3546 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3547 --prefer-ipv4, and --prefer-ipv6.
3548 * include/grub/net.h (grub_dns_option_t): New enum.
3549 * (grub_net_network_level_address): option added.
3550
339eacce
VT
35512013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3552
3553 * grub-core/video/fb/video_fb.c: Merge two blit functions
3554 into one.
3555
810f991b
VS
35562013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3557
3558 * grub-core/term/terminfo.c: Add sequences for home and end.
3559
386571a2
VS
35602013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3561
3562 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3563 graphics console.
3564
3fe63754
VS
35652013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3566
3567 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3568 add mode 0x12.
3569
76681e71
VS
35702013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3573 e-mail by Per Öberg.
3574
46522fb7
VS
35752013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3578 name.
3579
e7d09ac4
AB
35802013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3581
3582 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3583 emu platforms.
3584 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3585
67508925
VS
35862013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * docs/grub.texi: Document usage of menuentry id.
3589
0c62124e
VS
35902013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3591
3592 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3593
9b5d4eed
PL
35942013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3595
3596 * grub-core/commands/i386/nthibr.c: New command.
3597
79054c1d
VS
35982013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3601
44d47bbe
VS
36022013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3605 coordinate.
3606
323de05b
VS
36072013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3608
3609 Support GRUB_DISABLE_SUBMENU config.
3610
3611 Inspired by patch from Prarit Bhargava.
3612
5a01722e
VS
36132013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * docs/grub.texi: Mention RSA support.
3616
1106c3f0
VS
36172013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 * grub-core/commands/verify.c: Add RSA support.
3620
a1dcc2cb
VS
36212013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3624 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3625 device is known to be ATAPI.
3626
ee7fb780
MF
36272013-11-03 Mike Frysinger <vapier>
3628
3629 * configure.ac: Don't add target-prefix.
3630
5ade4a42
VS
36312013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3632
3633 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3634 variables.
3635
6cd66043
VS
36362013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3639 if language is English.
3640
090d7c81
VS
36412013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3644
dd614590
VS
36452013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 * configure.ac: Don't add -m32/-m64 on emu.
3648
a8686589 36492013-11-02 neil
3650
3651 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3652 broken linux headers.
3653
fb9f12a0
VS
36542013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3657
e25f8e1f
VS
36582013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3659
3660 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3661 Reed-Solomon recovery if more than half of redundancy info is 0.
3662
4685200f
VS
36632013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * util/grub-mount.c: Handle symlinks to directories.
3666
1397f0b5
VS
36672013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3668
3669 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3670 find_file recursively for symlink.
3671
8b3e6eb6
VS
36722013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3673
3674 * tests/util/grub-shell.in: Copy themes.
3675
a0c9d5c6
VS
36762013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3677
3678 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3679
5cf9459c
VS
36802013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3681
3682 * configure.ac: Use 0x8000 for address instead of 8000.
3683
e7b66a28
VS
36842013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3685
3686 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3687 signature.
3688
203f53fb
VS
36892013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3690
3691 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3692 variable.
3693
02663ee9
VS
36942013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3697
f169f65e
VS
36982013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3701 file_progress_read_hook.
3702 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3703
2855a0fc
VS
37042013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3705
3706 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3707 and double.
3708
bf0f3a8c
VS
37092013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3710
3711 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3712
cb72aa18
VS
37132013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3714
3715 Rewrite blocklist functions in order to get progress when
3716 reading large extents and decrease amount of blocklist hook calls.
3717
896f9135
VS
37182013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3721 of SI suffixes.
3722
89295a06
VS
37232013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3724
3725 Support --base-clock for serial command to handle weird cards with
3726 non-standard base clock.
3727
eb03ede0
VS
37282013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3729
3730 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3731 strncpy.
3732 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3733 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3734 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3735 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3736 + strcpy rather than strncpy.
3737
8fbe5c7d
VS
37382013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3741 (check_pool_label): Likewise. Fixes overflow.
3742 (nvlist_find_value): Fix comparison.
3743
e54b8f53
VS
37442013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3745
3746 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3747 more appropriate functions.
3748
fa9b3dca
VS
37492013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3750
3751 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3752 realloc.
3753
9a021c55
VS
37542013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3757
80e8b13a
VS
37582013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3759
3760 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3761 on core size.
3762
b61599ac
VS
37632013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3766
a602dc54
VS
37672013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3770 (initialize_tables): reset tl and td to NULL after freeing.
3771
93c12075
VS
37722013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3775
1ca4b75e
VS
37762013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3779 of supported tags.
3780
329550c4
VS
37812013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3782
3783 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3784
00bfa988
VS
37852013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3786
3787 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3788 quirks.
3789
81afc5cc
VS
37902013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3791
3792 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3793 a page in protected space.
3794
cb3c4a47
VS
37952013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3798 allocate space for zero-sized modules.
3799
954f7bf5
VS
38002013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3803
526d3d25
FL
38042013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3805
3806 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3807
74124c34
VS
38082013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3811 safeguards. Fixes a crash with i386/pc/console.c.
3812
5177391e
VS
38132013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3814
3815 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3816 and grub_hostfs_init.
3817
64db14b0
VS
38182013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3821 windows method on other platforms without good stat as well.
3822
effe2036
VS
38232013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3826
82591fa6 38272013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 3828
82591fa6
VS
3829 Make / in btrfs refer to real root, not the default volume.
3830 Modify mkrelpath to work even if device is mounted with subvolid option.
3831
38322013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3833
3834 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
3835 extra_dist.
3836 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3837 extra_dist.
3838
30fd7198
VS
38392013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3842 fails.
3843
8d179dae
BC
38442013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3845
3846 * docs/autoiso.cfg: New file.
3847
3bc9c8cf
VS
38482013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3851 COND_GRUB_PE2ELF conditions.
3852
8b46b0ea
VS
38532013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3856 "vnd", "rd" and "fd" disks.
3857
442b86de
VS
38582013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3859
3860 Move grub_disk_write out of kernel into disk.mod.
3861
04dea7e6
VS
38622013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3863
3864 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3865 handling.
3866
38672013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
3868
3869 * grub-core/kern/misc.c (grub_abort): Make static
3870
04dea7e6 38712013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
3872
3873 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3874 transform invalid unicode codepoints.
3875
04dea7e6 38762013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
3877
3878 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3879 \0 checking.
3880
03dcac7f
VS
38812013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3884
c81acb7f
VS
38852013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3886
3887 Consolidate cpuid code.
3888
c1bee646
VS
38892013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3890
3891 Move cpuid code to cpuid.h and TSC code to tsc.c.
3892
f37bf9c7
GS
38932013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3894
3895 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3896
4021132b
GS
38972013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3898
3899 * util/grub-mkconfig.in: Replace $0 with $self.
3900 * util/grub-reboot.in: Likewise.
3901 * util/grub-set-default.in: Likewise.
3902
3ace8d75
BC
39032013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3904
3905 * docs/osdetect.cfg: New file.
3906
1e6ad6a6
BC
39072013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3908
3909 * tests/util/grub-shell.in: Add new --debug option.
3910
188929eb
BC
39112013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3912
3913 * tests/test_unset.in: New test.
3914
7994a09a
BC
39152013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3916
3917 * tests/test_sha512sum.in: New test.
3918
2a8a7585
VS
39192013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3920
3921 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3922 * include/grub/misc.h: Remove strncat.
3923 * grub-core/lib/posix_wrap/string.h: Likewise.
3924
cf8d6bbd
VS
39252013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3926
3927 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3928 Try to handle more than 0xFFFF packets.
3929 Reported by: Bernhard Übelacker <bernhardu>.
3930 He also spotted few overflows in first version of this patch.
3931
6d1fc99a
VS
39322013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * tests/date_unit_test.c: New test.
3935
10bafa1c
VS
39362013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3937
3938 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3939 of first three years after start of validity of unixtime.
3940
b1c6d037
VS
39412013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3944 division as the one making more sense.
3945 (update_screen): Likewise.
3946 (complete): Likewise.
3947
5f4028d4
VS
39482013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3949
3950 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3951
a2856736
VS
39522013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 Make char and string width grub_size_t rather than grub_ssize_t.
3955
0a7e52b2
VS
39562013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3957
3958 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3959 unsigned.
3960 (grub_history_replace): Likewise.
3961
42829573
VS
39622013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3963
3964 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3965 appropriate.
3966
3523b8d8
VS
39672013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3970 appropriate.
3971
d43c6489
VS
39722013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3973
3974 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3975 Use unsigned divisions rather than signed variants.
3976
f690f8b0
VS
39772013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3978
3979 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3980 unsigned arithmetics.
3981 Add missing break.
3982
74ff2c05
VS
39832013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3986
fb56391e
VS
39872013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3988
3989 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3990 rather than signed one.
3991 (recovery): Likewise.
3992
40f29060
VS
39932013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3996
c64577a5
VS
39972013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3998
3999 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4000 than signed.
4001
c16535a8
JM
40022013-10-25 Jon McCune <jonmccune@google.com>
4003
4004 * docs/grub.texi: Cleanup security documentation around signatures.
4005
6673d8e7
VS
40062013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4007
4008 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4009
a105d375
VS
40102013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4013 than int.
4014
af81ed88
VS
40152013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4016
4017 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4018 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4019 functions when compiling for kernel.
4020
ea899a57
VS
40212013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4022
4023 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4024 unsigned long long when using %llu.
4025
c6dc6fa1
VS
40262013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4029 terminal after updating progress.
4030
ad2dc003
VS
40312013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4034 argument. We don't disable Gate A20 in this code.
4035
b46684ae
VS
40362013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4037
4038 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4039 Conceptually based on change in branch "vbe-on-coreboot".
4040
f70d5c07
RM
40412013-10-24 Robert Millan <rmh@gnu.org>
4042
4043 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4044 numeric constants with their symbolic equivalent.
4045 Taken from branch "vbe-on-coreboot".
4046
bca274b4
VS
40472013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4048
4049 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4050
238f0489
VS
40512013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4052
4053 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4054 divmod64 for offset division.
4055
863c590b
PFS
40562013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4057
4058 Rename .bzrignore to .gitignore. Add "*.o" rule.
4059
4060 * .bzrignore: Renamed to...
4061 * .gitignore: ...this.
4062
84a0e969
PFS
40632013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4064
4065 Add new progress module that displays the load progress of files.
4066
4067 * grub-core/lib/progress.c: New file.
4068 * grub-core/Makefile.core.def (progress): New module.
4069 * grub-core/kern/file.c (grub_file_open): File name added.
4070 * (grub_file_read): Progress hook added.
4071 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4072 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4073 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4074 * include/grub/file.h (struct grub_file): Add progress module members.
4075 * include/grub/term.h (struct grub_term_output): Likewise.
4076 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4077 Terminal velocity added.
4078 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4079 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4080 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4081 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4082 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4083 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4084 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4085 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4086 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4087 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4088 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4089 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4090
0d711431
VS
40912013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 Verify signatures of signatures unless --skip-sig is specified.
4094
f8401f76
VS
40952013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4096
4097 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4098 \0 checking.
4099
4100 Saves 70 bytes on compressed image.
4101
ac1feb61
VS
41022013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4103
4104 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4105 check.
4106
4107 Saves 10 bytes on compressed image.
4108
00f72e89
VS
41092013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4110
4111 * grub-core/kern/misc.c (grub_isprint): Move to ...
4112 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4113
4114 Saves 20 bytes on compressed image due to remving exporting.
4115
067e6ae7
VS
41162013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4117
4118 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4119
4120 Saves 5 bytes on compressed image.
4121
64a6c791
VS
41222013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4123
4124 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4125 function get_utf8.
4126
4127 Saves 379 bytes on compressed image.
4128
979d9f52
VS
41292013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4132
1437da54
VS
41332013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4134
4135 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4136
4137 Saves 40 bytes on compressed image.
4138
d9ee2269
VS
41392013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4140
4141 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4142 mask rather than 64-bit type.
4143
4144 Saves 20 bytes on compressed image.
4145
63efa602
VS
41462013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4147
4148 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4149 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4150
47601ffe
VS
4151 Saves 273 bytes on compressed image.
4152
2cc679ad
VS
41532013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4154
4155 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4156 variable length arrays.
4157
4158 Saves 50 bytes on compressed image.
4159
2e4659b8
VS
41602013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4161
4162 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4163
2a40badf
VS
41642013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4165
4166 * grub-core/fs/ufs.c: Remove variable length arrays.
4167
1ba6b9b9
VS
41682013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4169
4170 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4171
f3e39341
VS
41722013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * grub-core/fs/zfs.c: Remove variable length arrays.
4175 Reduces zfs.mod by 160 bytes (208 compressed).
4176
71523935
VS
41772013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4180
28153eb8
VS
41812013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4182
4183 * grub-core/net/arp.c: Remove variable length arrays.
4184 * grub-core/net/bootp.c: Likewise.
4185 * grub-core/net/dns.c: Likewise.
4186 * grub-core/net/icmp6.c: Likewise.
4187 * grub-core/net/net.c: Likewise.
4188
88ce4cd7
VS
41892013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4190
4191 * grub-core/fs/ntfs.c: Remove variable length arrays.
4192 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4193 compressed).
4194
66123940
VS
41952013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4196
4197 * grub-core/fs/hfs.c: Remove variable length arrays.
4198 Reduces hfs.mod by 8 bytes (52 compressed).
4199
0927e5bd
VS
42002013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 4203 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
4204 compressed).
4205
9c12ac97
VS
42062013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 4209 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
4210 compressed).
4211
97ec2d71
VS
42122013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4213
4214 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 4215 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
4216 compressed).
4217
156e4ea0
VS
42182013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 * grub-core/fs/xfs.c: Remove variable length arrays.
4221 Reduces xfs.mod by 40 bytes (43 compressed).
4222
3b502c29
VS
42232013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4224
4225 * grub-core/fs/fshelp.c: Remove variable length arrays.
4226 Reduces fshelp.mod by 116 bytes (23 compressed).
4227
c7037f1d
VS
42282013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4229
4230 * grub-core/normal/completion.c: Remove variable length arrays.
4231 * grub-core/normal/menu_entry.c: Likewise.
4232
4233 Reduces normal.mod by 496 bytes.
4234
a07e6ad0
VS
42352013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4236
4237 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4238 by 356 bytes (158 compressed).
4239
2359bf88
VS
42402013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4243 by 364 bytes (169 compressed).
4244
d28e1163
VS
42452013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4248 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4249 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4250
e89c2d48
VS
42512013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4254 bitmasks to small structures of size chosen to fit in registers.
4255
7abdac8e
VS
42562013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 * conf/Makefile.common: Use -freg-struct-return on i386. This
4259 decreases code size and improves performance.
4260
518864c0
VS
42612013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4262
4263 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4264
bbd2b539
VS
42652013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4268 "(null)" string.
4269 Simplify expressions to save around 256 bytes in kernel.img.
4270 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4271
99519c15
VS
42722013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4275 Use GRUB_UTIL_FD_O_* rather than O_*.
4276
20285765
VS
42772013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4278
4279 Add haiku-specific functions.
4280
887c0bb6
VS
42812013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4284
cd78a56f
VS
42852013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 Move stat () and device mode checking into OS-dependent files as
4288 long as performance doesn't suffer.
4289
a4012f07
VS
42902013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 Split make_system_path_relative_to_its_root into separate file
4293 relpath.c from getroot.c as it's common between unix and haiku
4294 but otherwise haiku doesn't use any functions from unix getroot.c.
4295
31de274d
VS
42962013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4299 New function.
4300 (grub_util_is_special_file): Likewise.
4301
40346de6
VS
43022013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4303
4304 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4305 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4306
d3923ab9
VS
43072013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4308
4309 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4310 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4311
663f6eb1
VS
43122013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4313
4314 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4315 (load_image): Likewise.
4316
44d1c20a
VS
43172013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4318
4319 * util/grub-render-label.c: Move backend part to ...
4320 * util/render-label.c: ... here.
4321
d0a116ee
VS
43222013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4323
4324 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4325 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4326
b47fcae6
VS
43272013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4328
4329 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4330
0f7c00c1
VS
43312013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4332
4333 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4334 CD-ROM in case when it's declared as having subpartitions.
4335
29013cba
VS
43362013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4337
4338 Don't add -lm on haiku.
4339
4340 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4341 and empty on haiku.
4342 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4343 -lm.
4344
e8559d24
VS
43452013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 * configure.ac: Use -melf_*_haiku as target on haiku.
4348
8104063c
VS
43492013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4350
4351 * Makefile.util.def: Add util/setup.c to extra_dist.
4352
fc3182c7
VS
43532013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4354
4355 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4356 unknown types through.
4357
f90a3cc0
VS
43582013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4361 (grub_util_check_char_device): Likewise.
4362 * include/grub/emu/getroot.h: Likewise.
4363
1e3e7419
VS
43642013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4367 memset rather than inline static function.
4368
92c88fc8
VS
43692013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4370
4371 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4372 not doing embedded decompressor.
4373
3cd910a2
VS
43742013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4375
4376 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4377 shadowing.
4378 * grub-core/kern/disk.c: Likewise.
4379 * grub-core/kern/misc.c: Likewise.
4380 * include/grub/parser.h: Likewise.
4381 * include/grub/script_sh.h: Likewise.
4382 * include/grub/zfs/zfs.h: Likewise.
4383
7b3aca00
VS
43842013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4385
4386 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4387
97dfe7e4
VS
43882013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4389
4390 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4391 defined before trying to use it.
4392
bf919aa9
VS
43932013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4394
4395 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4396 warning.
4397
f4ccf29d
VS
43982013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4399
4400 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4401 Use __unused__ rather than __used__ on gcc < 3.2.
4402
0d3a6f85
VS
44032013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4404
4405 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4406 gcc < 4.0.
4407 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4408
757e3eb7
VS
44092013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4410
4411 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4412
fb320faf
VS
44132013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4414
4415 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4416 * include/grub/emu/misc.h: Likewise.
4417
ea73acd2
VS
44182013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4421 cur_color.
4422
71237a6f
VT
44232013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4424
4425 * grub-core/tests/checksums.h: Regenerated due to progress bar
4426 get_minimal_size changes.
4427
3d46c22f
BC
44282013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4429
4430 Added `tr' command support.
4431
4432 * grub-core/commands/tr.c: New file.
4433 * grub-core/Makefile.core.def: Build rules for new module.
4434
4435 * tests/grub_cmd_tr.in: New test.
4436 * Makefile.util.def: Build rules for new test.
4437
47e0a61f
VT
44382013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4439
4440 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4441
946fd073
VT
44422013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4443
4444 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4445 * docs/gurb.texi: Likewise.
4446
9c13c576
VT
44472013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4448
4449 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4450 Pixmap highlighted section with east and west slices was displayed
4451 incorrectly due to negative width of the central slice.
4452
ad543f12
VT
44532013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4454
4455 * docs/grub.texi: Graphical options information update.
4456 Removed outdated. Updated current. Inserted missed.
4457
6176a0cd
VS
44582013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4459
4460 * docs/grub.texi: Mention few new platform-specific commands.
4461
9688cae2
VS
44622013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4463
4464 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4465 currently used so this doesn't really have any effect.
4466 Reported by: Douglas Ray <dougray>
4467
f7b69a3f
VS
44682013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4469
4470 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4471 compilation but prevents gcc from displaying messages in non-Latin
4472 alphabets.
4473 * conf/Makefile.common: Likewise.
4474
ceca6ddf
HY
44752013-10-16 Hiroyuki YAMAMORI
4476
4477 Handle Japanese special keys.
4478 Reported by: Hiroyuki YAMAMORI.
4479 Codes supplied by: Hiroyuki YAMAMORI.
4480
ac48d334
VT
44812013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4482
4483 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4484
b2b71bff
VT
44852013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4486
4487 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4488 * docs/grub.texi: Likewise.
4489
669fc449
VS
44902013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4493 value in case of incomplete read.
4494 (grub_util_fd_write): Likewise.
4495
59381678
VS
44962013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4499
bacfefbb
VS
45002013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4501
4502 * util/grub-editenv.c (create_envblk_file): More from here ...
4503 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4504
f7c49570
VS
45052013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4506
4507 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4508 canonicalize file name before doing the rest.
4509
7b83ca44
VS
45102013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4513 mingw32.
4514
df1e64c9
VS
45152013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 Define grub_util_is_directory/regular/special_file and
4518 use OS-dependent versions rather than to rely on stat().
4519
ec16e026
VS
45202013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 * util/grub-mkimage.c: Move backend part to ...
4523 * util/mkimage.c: ... here.
4524
4b4eeb3c
VS
45252013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4526
4527 Allow compilation with mingw64 albeit with warnings due to lack of
4528 %llx/%llu.
4529
4530 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4531 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4532 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4533 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4534 on mingw64.
4535 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4536
f4e0adc0
VS
45372013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4538
4539 Remove leftover references to some of the system headers.
4540
e0127364
VS
45412013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4542
4543 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4544 read.
4545
20d53541
VS
45462013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4547
4548 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4549 of strerror.
4550
5a869940
VS
45512013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4552
4553 Split out blocklist retrieving from setup.c to
4554 grub-core/osdep/blocklist.c and add windows implementation since
4555 generic version doesn't work on NTFS on Windows due to aggressive
4556 unflushable cache.
4557
c06c7520
VS
45582013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4561 files.
4562
8f53bb3f
VS
45632013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4566 Cut tailing newline. Remove arbitrary limitation. Always use
4567 grub_util_tchar_to_utf8.
4568
148f1007
VS
45692013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4572 * tests/printf_unit_test.c (printf_test): Add %% tests.
4573 Reported by: Paulo Flabiano Smorigo.
4574
af3b06be
VS
45752013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4576
4577 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4578 implement fsync.
4579
27f9d02e
VS
45802013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4581
4582 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4583 use nvlist_lookup_string and don't use nvlist_print.
4584
f6a81f0a
VS
45852013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4586
4587 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4588 closedir to handle filename charset translation.
4589
d7750b32
VS
45902013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4591
4592 * include/grub/emu/hostdisk.h: Move file operations to
4593 * include/grub/emu/hostfile.h: ... here.
4594
2859196e
VS
45952013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4596
4597 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4598 unicode path.
4599
c018c968
VS
46002013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4601
4602 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4603
7e45abce
VS
46042013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4605
4606 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4607 and remove export.h.
4608
23934da2
VS
46092013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4610
4611 * grub-core/kern/emu/error.c: Removed.
4612 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4613 explicitly as it's already in libgnu.a.
4614
c11ebcc8
VS
46152013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4616
4617 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4618 config-util.h include.
4619
70671037
VS
46202013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4621
4622 Split emunet into platform-dependent and GRUB-binding parts. Keep
4623 platform-dependent part in kernel for easy access to OS functions.
4624
25ac643a
VS
46252013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4626
4627 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4628 open/read/write.
4629
69ca5876
VS
46302013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4631
4632 * grub-core/osdep/windows/emuconsole.c: New file.
4633
d9d68ef0
AB
46342013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4635
4636 * conf/Makefile.extra-dist: Add osdep/*/init.c
4637
58e211cc
VS
46382013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4641
588744d0
VS
46422013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4643
4644 * util/grub-probe.c (probe): Separate different drives in hint-str
4645 by spaces and not newlines.
4646 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4647
44016e52
AB
46482013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4649
4650 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4651 Handle CD-ROMs.
4652
6de9ee86
VS
46532013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4654
4655 Pass-through unknown E820 types. It required reorganisation of mmap
4656 module.
4657
f8f3f155
AB
46582013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4659
4660 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4661
b73249d2
VS
46622013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4663
4664 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4665 fseeko.
4666
dac86b18 46672013-10-14 qwertial <qwertial>
4668
4669 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4670
17614b84
JM
46712013-10-14 Jon McCune <jonmccune@google.com>
4672
4673 * docs/grub.texi: Document new signatures possibility.
4674
6de292cb
VS
46752013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4676
4677 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4678
84379b61
VS
46792013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4680
4681 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4682 missing prototype.
4683 (grub_util_tchar_to_utf8): Likewise.
4684
21d85db1
VS
46852013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4688 * grub-core/kern/emu/main.c: Add missing include.
4689 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4690 Don't call grub_util_init_nls.
4691 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4692 Likewise.
4693
66a1b3ee
VS
46942013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4697 stat.
4698
e19bec17
VS
46992013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4702
ee8c1b29
VS
47032013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4704
4705 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4706
bb338aaf
VS
47072013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4708
4709 Add a wrapper for fopen. On unix-like systems just pass-through. On
4710 windows use unicode version.
4711
ae5540d3
VS
47122013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4713
4714 Move set_program_name and init_nls to host_init. On windows
4715 fix in this fuction console and argument charset as well.
4716
4cd3c4fe
AB
47172013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4718
4719 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4720 GRUB_ENABLE_CRYPTODISK.
4721
4722 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4723 GRUB_ENABLE_CRYPTODISK.
4724 * util/grub-mkconfig_lib.in: Likewise.
4725
78170f3e
CCZ
47262013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4727
4728 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4729
3414b6c0
MC
47302013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4731
4732 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4733 error when enabling debug.
4734
6d0740e8
IB
47352013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4736
4737 * configure.ac: Use -melf_*_obsd on openbsd.
4738
ff2d4dc4
VS
47392013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4740
4741 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4742
eac6ae82
VS
47432013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4744
4745 * include/grub/misc.h: Use gnu_printf rather than printf as format
4746 template since our functions are independent of libc.
4747
ba9baabe
VS
47482013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4749
4750 * util/grub-setup.c (setup): Move copying of partition table as
4751 futher up as possible to avoid possible overwrite by floppy routines.
4752
47532013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
4754
4755 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4756
145e2369
VT
47572013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4758
4759 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4760 * docs/grub.texi: Likewise.
4761
3530bc9d
VS
47622013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4763
4764 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4765 it's mostly unused. Move vestiges to the callers.
4766
fb9f59c3
VS
47672013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4768
4769 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4770 version of salt and hash. Use grub_snprintf rather than snprintf.
4771
9be1c255
VS
47722013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4773
4774 * docs/grub.texi: Fix problem with braces.
4775
ed8c0887
VS
47762013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4777
4778 * conf/Makefile.extra-dist: Fix extra-dist list.
4779 * grub-core/Makefile.core.def: Likewise.
4780
f72ab14e
VS
47812013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4782
4783 * docs/grub.texi: Document disk names used on Windows and AROS.
4784
2fe53a22
VS
47852013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4786
4787 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4788 with AROS devs.
4789 * grub-core/osdep/aros/hostdisk.c: Likewise.
4790
71c1d67a
VS
47912013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4792
4793 Avoid including hostfile.h when not necessarry as it pulls
4794 in OS-specific headers which may redefine generic names
4795 like "far".
4796
ad297ec7
VT
47972013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4798
4799 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4800 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4801 scrollbar_bottom_pad
4802 * docs/grub.texi: Likewise.
4803
6e9e5dc9
VT
48042013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4805
4806 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4807
761c718b
VS
48082013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4811
37149a2f
VS
48122013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4813
4814 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4815 Removed.
4816 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4817 Made static.
4818
3837a151
VS
48192013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4822 leftover.
4823
caca1c70
VS
48242013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 Move OS-specific driver configuration to grub_util_fd_open. This
4827 moves OS-dependent parts from kern/emu/hostdisk.c to
4828 grub-core/osdep/*/hostdisk.c.
4829
f7676b70
VS
48302013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4831
4832 * util/grub-mkimage.c (generate_image): Use size_t instead of
4833 grub_size_t.
4834 * util/grub-mkimagexx.c (locate_sections): Likewise.
4835 (load_image): Likewise.
4836
22f98db2
VS
48372013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4840 size_t.
4841 (grub_util_write_image): Likewise.
4842
b102ce69
VS
48432013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4844
4845 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4846 get random when no RNG is available.
4847 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4848
acbbe5cb
VS
48492013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4850
4851 * include/grub/util/lvm.h: Removed.
4852
2112fb3f
VS
48532013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4854
4855 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4856 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4857
79f78fbf
VS
48582013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4859
4860 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4861
c2e6f705
VS
48622013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4863
4864 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4865
aabe433a
VS
48662013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4867
4868 * grub-core/net/drivers/emu/emunet.c: Move to ..
4869 * grub-core/osdep/linux/emunet.c: ..here.
4870
9a2c903f
VS
48712013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4872
4873 * util/ieee1275/ofpath.c: Move to ...
4874 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4875 * grub-core/osdep/basic/ofpath.c: ..here.
4876
4a445f58
VS
48772013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4878
4879 Move password-querying (util-version) routines to grub-core/osdep.
4880
c1ca4244
VS
48812013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 Move sleep routines to grub-core/osdep.
4884
672fa55e
VS
48852013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 Move OS-dependent files to grub-core/osdep and document it.
4888
a5b0365a
VS
48892013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4892 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4893
29072e99
VS
48942013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4895
4896 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4897
f8772ea7
VS
48982013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4899
4900 * util/misc.c: Remove leftover inclusion of malloc.h.
4901
a1a315e7
VS
49022013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4903
4904 * include/grub/setjmp.h: Remove leftover GRUBOF.
4905
cef86fef
VS
49062013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 * util/raid.c: Fold into ...
4909 * util/getroot_linux.c: ... here. Make all functions static.
4910
c4cf25ee
VS
49112013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4912
4913 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4914 macros to GRUB ones.
4915
53a5f5c2
VT
49162013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4917
4918 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4919 occasional bug. If there are too many boot entries or too low
4920 scrollbar height then we need to use another formula to calculate
4921 the position and size of the scrollbar thumb.
4922
de300af2
VS
49232013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4924
c4cf25ee 4925 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 4926
c5827364
VT
49272013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4928
4929 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4930 * docs/grub.texi: Likewise.
4931
dd2ed8b0
VT
49322013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4933
4934 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4935 viewport.
4936
7286c384
VT
49372013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4938
ffdfc1f3
VT
4939 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4940 minimal width calculations.
7286c384 4941
ea547e14
VS
49422013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4943
4944 * docs/grub.texi: Update note on colors on emu console.
4945
b726be76
VS
49462013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4947
4948 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4949 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4950 it's FS and not GRUB limitation.
4951
a5f6ade6
VS
49522013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4953
4954 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4955
3b0f3aa2
VS
49562013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4959
1db38304
ST
49602013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4961
4962 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4963 kernels by version order.
4964
fb295fc0
VS
49652013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4968
47345010
VS
49692013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4970
4971 Add AROS hostdisk and getroot routines.
4972
bf25f879
VS
49732013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4974
4975 Make cryptodisk and diskfilter probe data retrievable programmatically
4976 and not just printable.
4977
24ca4512
VS
49782013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4979
4980 Split random retrieving code into separate files.
4981
c7c177f0
VS
49822013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4983
4984 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4985 R_ARM_V4BX.
4986
d71b45ae
VS
49872013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4990 condition.
4991 * grub-core/tests/fake_input.c: Likewise.
4992 * grub-core/tests/cmdline_cat_test.c: Likewise.
4993
e44b9a83
VS
49942013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 * grub-core/video/capture.c: Do not do finalization when .fini
4997 is called as there is explicit capture_end.
4998
4fa60739
VS
49992013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5000
5001 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5002 changing windows to avoid crash.
5003
17c8bc37
VS
50042013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5005
5006 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5007
9d4d7977
VS
50082013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5009
5010 * po/exclude.pot: Add several strings to exclude.
5011
0caa407c
VS
50122013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5013
5014 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5015
9ae393da
VS
50162013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5017
5018 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5019 ./util/grub-gen-asciih.c to exclude list.
5020
498d5033
VS
50212013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5022
5023 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5024 and don't mark error strings for translation.
5025
7d93298f
VS
50262013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5029 properly in case of missing block size.
5030
b2cae20c
VS
50312013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 * grub-core/lib/arm/setjmp.S: Add missing license section.
5034
3896d6b4
VS
50352013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5036
5037 * po/swiss.sed: Add replacement for key names and for term computer.
5038
ebc1da55
VT
50392013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5040
5041 * grub-core/gfxmenu/theme_loader.c: New global options for the
5042 theme background image handling. desktop-image-scale-method,
5043 desktop-image-h-align, desktop-image-v-align.
5044 * grub-core/gfxmenu/view.c: Likewise.
5045 * include/gfxmenu_view.h: Likewise.
5046 * include/bitmap_scale.h: Proportional scale functions introduced.
5047 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5048 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5049 cases of unexpected input variables for scale functions.
5050 * docs/grub.texi: Updated documentation for new options.
5051
c5739143
VS
50522013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5053
5054 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5055
be74aeb3
VT
50562013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5057
5058 * grub-core/tests/checksums.h: Corrected due to changes in
5059 bilinear interpolation function.
5060
d999ac72
VT
50612013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5062
5063 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5064 to eliminate artefacts in bilinear interpolation.
5065
2b131610
VS
50662013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5067
5068 * grub-core/video/readers/tga.c: Support paletted tga.
5069
de6e5ff8
VS
50702013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5071
5072 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5073 incorrect cbcr setting when in color mode.
5074
fa31ee9c
VS
50752013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5076
5077 * grub-core/video/readers/png.c: Support paletted images and clean up
5078 greyscale support.
5079
e84f8188
VS
50802013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5081
5082 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5083 usage of wrong table which resulted in mishandling of 4-byte
5084 sequences.
5085
50862013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
5087
5088 * grub-core/term/terminfo.c: Add Home and End key sequences.
5089
d72bff09
VS
50902013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5093 Fix formula for computing total number of bytes.
5094
29648c5d
VS
50952013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5096
5097 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5098 image processing, fix big-endian and support grayscale.
5099
4a876492
VS
51002013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5101
5102 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5103 Correctly will with maximum transparency when using index color.
5104
3ccf16df
VS
51052013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5106
5107 * grub-core/video/readers/png.c: Support grayscale
5108
51092013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
5110
5111 * grub-core/video/readers/jpeg.c: Support grayscale.
5112
3ccf16df 51132013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
5114
5115 * grub-core/commands/loadenv.c: Support skipping signature check
5116 and variable names filtering.
5117
30b7f58f
VS
51182013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5119
5120 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5121 * grub-core/kern/emu/hostfs.c: Likewise.
5122 * util/getroot_unix.c: Likewise.
5123
bab7b1eb
VS
51242013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5125
5126 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5127 Migrate all explicit defines to this new one.
5128
43b1c99d
VS
51292013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5132 grub_util_fd_strerror when using grub_util_fd_*.
5133 (grub_util_fd_open_device): Likewise.
5134 (grub_util_biosdisk_read): Likewise.
5135 (grub_util_biosdisk_write): Likewise.
5136 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5137 (grub_util_fd_strerror): Likewise.
5138 (grub_util_fd_sync): Likewise.
5139 (grub_util_fd_close): Likewise.
5140 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5141 (grub_util_fd_close): Likewise.
5142 (grub_util_fd_strerror): Likewise.
5143 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5144 function proto rather than macro.
5145 (grub_util_fd_sync): Likewise.
5146 (grub_util_fd_open): Likewise.
5147 (grub_util_fd_strerror): New proto.
5148
e8fd80bc
VS
51492013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5150
5151 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5152 platforms on which it doesn't work.
5153
bf645fda
VS
51542013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5155
5156 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5157 stat immediately to where it's used.
5158
5177ba14
VS
51592013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 * util/getroot.c (grub_util_check_block_device): Move to ...
5162 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5163 * util/getroot.c (grub_util_check_char_device): Move to ...
5164 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5165
9db826e1
VS
51662013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5167
5168 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5169 disk closing logic.
5170
49120085
AB
51712013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5172
5173 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5174
b3328b68
AB
51752013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5176
5177 * docs/grub.texi (File name syntax): Document ZFS filenames
5178 (/volume@snapshot/...).
5179
3fff48ab
VS
51802013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5181
5182 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5183 Always return full path. Fixes a problem with mkrelpath.
5184
39cfdaa9
PFS
51852013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5186
5187 * util/grub-install.in: Add GPT PReP support.
5188 * util/grub-probe.c (probe): Support GPT partition type.
5189 (main): Support -t gpt_parttype.
5190
7c680e1f 51912013-09-23 Aleš Nesrsta <starous@volny.cz>
5192
5193 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5194
890bdabe
MM
51952013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5196
5197 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5198
9c262ff9
TH
51992013-09-23 Tim Hardeck <thardeck>
5200
5201 * util/grub.d/10_hurd.in: Filter out character for the class.
5202 * util/grub.d/10_kfreebsd.in: Likewise.
5203 * util/grub.d/10_linux.in: Likewise.
5204 * util/grub.d/20_linux_xen.in: Likewise.
5205
d755342a
MC
52062013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5207
5208 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5209 "changed".
5210
68b77707
JT
52112013-09-23 Josh Triplett <josh@joshtriplett.org>
5212
5213 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5214 boot partition.
5215
efa68bfa
VS
52162013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5217
5218 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5219 doesn't use posix_wrap. Keep literal -fno-builtin however.
5220
d9104204
VS
52212013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5222
5223 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5224
c248781a 52252013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
52262013-09-23 neil
5227
5830df88 5228 * configure.ac: Do not enable -Wmissing-noreturn as its
5229 usefulness is limited and creates problems on some OS notably with
5230 code generated by bison.
5231
52322013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
52332013-09-23 neil
5234
5235 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 5236 supported by all gcc and when it is, it's already enabled by -Wall.
5237
621bed69
VS
52382013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5239
5240 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5241 desactivated use of EDID at all.
5242
71764dc8 52432013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
52442013-09-23 neil
5245
5246 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5247 video if no text is available.
5248
affce7d4 52492013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
52502013-09-23 neil
5251
5252 * configure.ac: Substitute TARGET_RANLIB.
5253
52542013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
52552013-09-23 neil
affce7d4
VS
5256
5257 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5258
5259 Based on patches from AROS.
5260
0e8daad0 52612013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 52622013-09-23 neil
0e8daad0
VS
5263
5264 * grub-core/Makefile.am: Override STRIP and RANLIB.
5265 * configure.ac: compute TARGET_RANLIB.
5266 * INSTALL: Document TARGET_RANLIB
5267
5268 Based on patches from AROS.
5269
3f7d9c82
VS
52702013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5273 that floppies are unpartitioned.
5274
bca8873a
VS
52752013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5276
5277 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5278 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5279
52802013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5281
5282 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5283 less nice but more portable.
5284 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5285
a47a78be
VS
52862013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5287
5288 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5289 for cheat_fd.
5290 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5291 functions.
5292 (grub_cryptodisk_cheat_insert): Likewise.
5293 (grub_cryptodisk_close): Likewise.
5294
e85a5d5c
VS
52952013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5296
5297 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5298 Use windows path for DEFAULT_DIRECTORY.
5299
dad9fa6b
VS
53002013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5301
5302 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5303 difference was likely just gcc version, not anything mingw-related.
5304
7e518ca8
VS
53052013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5306
5307 Use Winapi on both cygwin and mingw32 to share more code between both.
5308
d68d0157
AB
53092013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5310
5311 * util/grub-install.in: Add --grub-editenv option.
5312 * util/grub-install_header (grub_compress_file): Explicitly check for
5313 plain file to avoid cp error.
5314
775b284d
AB
53152013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5316
5317 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5318 names; fix LVM driver name (lvm, not lv).
5319 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5320 names.
5321
3ff4063d
VS
53222013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5323
5324 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5325 files rather than one file with loads of #if's.
5326 * util/getroot.c: Likewise.
5327
287faafe
VS
53282013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5329
5330 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5331
d1983764
VS
53322013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5333
5334 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5335 GNU/Hurd to the list of checked PRNG.
5336
15ce95c4
VS
53372013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5338
5339 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5340
207862dd 53412013-09-21 Ales Nesrsta <starous@volny.cz>
5342
7c680e1f 5343 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 5344
63653cfd
VS
53452013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5346
5347 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5348 * grub-core/disk/lvm.c: Add LVM UUIDs.
5349 * util/getroot.c: Use LVM UUIDs whenever possible.
5350
f5d3e7ef
AB
53512013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5352
5353 * docs/grub.texi (Networking commands): Add documentation for
5354 network related commands.
5355
53c6b7d6
VS
53562013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5357
5358 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5359 to determine if device is handled by devmapper.
5360 (convert_system_partition_to_system_disk): Likewise.
5361 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5362 already done in grub_util_open_dm.
5363
e70d6736
LL
53642013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5365
5366 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5367 Clean up stack manipulation (sync_caches_armv*)
5368
90379808
VS
53692013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5370
5371 * util/lvm.c: Remove since unused. Remove remaining references.
5372
386701a8
VS
53732013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 Handle the case of partitioned LVM properly.
5376
5377 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5378 Stop on meeting LVM, mpath or DMRAID.
5379 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5380 (read_device_map): Likewise.
5381 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5382 device is full disk rather than erroring out on LVM and similar cases.
5383
53070787
VS
53842013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5385
5386 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5387
1bc783bd
VS
53882013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5391 4K before the end.
5392 Reported by: Leif Lindholm
5393
436ad5c3
PW
53942013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
53952013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5396
5397 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5398 codes.
5399
607319c9
CW
54002013-09-18 Colin Watson <cjwatson@ubuntu.com>
5401
5402 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5403 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5404
d404d154
DR
54052013-09-18 Douglas Ray <dougray@cpan.org>
5406
5407 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5408 as secure.
5409
28851ef6
AN
54102013-09-18 Aleš Nesrsta <starous@volny.cz>
5411
5412 * docs/grub.texi: Fix broken link.
5413
897c3bc6
MC
54142013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5415
5416 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5417 to break endless loop.
5418
f1630459
VS
54192013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5420
5421 * util/grub-fstest.c: Fix several printf formats.
5422 * util/grub-mkimage.c: Likewise.
5423 * util/grub-mkimagexx.c: Likewise.
5424 * util/grub-script-check.c: Likewise.
5425
64463dfd
VS
54262013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5427
5428 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5429 error.
5430
48972495
VS
54312013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5432
5433 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5434
5dd5e64b
VS
54352013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5436
5437 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5438 removed in current versions cygwin_conv_*.
5439
1c1f31e5
VS
54402013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5441
5442 * configure.ac: Disable efiemu runtime on cygwin.
5443
c546a259
VS
54442013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5445
5446 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5447 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5448
81690478
VS
54492013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5450
5451 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5452 error message.
5453
6b87c10a
VS
54542013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5455
5456 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5457 windows variant.
5458 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5459 data.
5460
8f0baaac
VS
54612013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5462
5463 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5464 when on x86 and not cygwin.
5465 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5466 -Wl,-melf_x86_64.
5467
b224c266
VS
54682013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * configure.ac: Set CPP to build one when checkoing for freetype for
5471 build.
5472
506b336b
VS
54732013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5474
5475 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5476 [!GRUB_BUILD]: Remove has_argument.
5477
8c8c87b7
VS
54782013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5479
5480 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5481 Replace with a dummy.
5482
7dc5ca13
VS
54832013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5484
5485 * configure.ac: Don't change host_os from mingw to cygwin.
5486
c3302aa5
VS
54872013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5488
5489 * configure.ac: Change target_os from windows to cygwin.
5490
7b780018
VS
54912013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5492
5493 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5494
5495 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5496 (build-grub-gen-asciih): Likewise.
5497 (build-grub-gen-widthspec): Likewise.
5498 * Makefile.util.def (grub-pe2elf): Remove.
5499 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5500 * configure.ac: Separate tests for build.
5501 Move ./build-grub-pe2elf to grub-core.
5502 Fix typo.
5503 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5504 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5505 defined.
5506 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5507 constants.
5508 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5509 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5510 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5511
984cfd8a
VS
55122013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5515 mingw32 as well based on grub_util_get_disk_size.
5516 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5517 grub_util_get_fd_size.
5518 (sync): Removed.
5519 (fsync): Moved to ...
5520 * grub-core/kern/emu/misc.c (fsync): ... here.
5521
f82d79c9
VS
55222013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5523
5524 * include/grub/mm.h (grub_extend_alloc): Remove.
5525 * grub-core/loader/i386/pc/plan9.c: Use own version of
5526 grub_extend_alloc with appropriate types.
5527
fd7dd66d
VS
55282013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5531
43ffba7c
VS
55322013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5533
5534 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5535
3c7eac44
VS
55362013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5537
5538 Fix dependencies on cygwin.
5539
5540 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5541 dependencies when used and defined.
5542 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5543
bdb5ba47
VS
55442013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5545
5546 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5547 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5548
ed7fbf43
VS
55492013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5550
5551 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5552 implementation available to cause compile-time rather than runtime
5553 error.
5554
fc46e9fc
VS
55552013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5556
5557 * util/grub-fstest.c: Don't check for symlinks on windows.
5558
7f68269a
VS
55592013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5560
5561 * INSTALL: Mention unavailability of man pages when cross-compiling.
5562
8ed358e0
VS
55632013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5564
5565 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5566 and gcry_log_bug.
5567 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5568
fc97214f
VS
55692013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5570
5571 * INSTALL: Document cross-compilation.
5572 * acinclude.m4: Determine whether nm support -P and --defined-only.
5573 * configure.ac: Add TARGET_ to all variables pertaining to target
5574 that don't have it yet.
5575 * gentpl.py: Likewise.
5576 * grub-core/Makefile.am: Likewise.
5577 * grub-core/genmod.sh.in: Likewise.
5578 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5579 as well.
5580
ca1fb563
IB
55812013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5582
5583 * configure.ac: Remove -Wempty-body. It's not essential and needs
5584 recent gcc.
5585
0031b229
IB
55862013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5587
5588 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5589 * util/getroot.c: Likewise.
5590
54ea2f44
VS
55912013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5592
5593 * grub-core/disk/ahci.c: Add needed explicit cast.
5594 * grub-core/lib/backtrace.c: Likewise.
5595 * grub-core/net/ip.c: Likewise.
5596 * grub-core/net/tcp.c: Likewise.
5597 * grub-core/net/udp.c: Likewise.
5598
3c601f8c
VS
55992013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5600
5601 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5602
1d679dda
VS
56032013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5604
5605 * util/import_gcry.py: Add final newline in visibility.h.
5606
00c28dd9
VS
56072013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5608
5609 * conf/Makefile.common: Fix typo.
5610
32af299a
VS
56112013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5612
5613 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5614
e733cf52
VS
56152013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * Makefile.am (widthspec.h): Fix typo.
5618 * util/grub-gen-widthspec.c: Likewise.
5619
c6b066f2
VS
56202013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 Move ascii.h and widthspec.h generation to a separate build-time-only
5623 tool.
5624
ad1fe3f9 56252013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5626
5627 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5628 Always fill bootdisk info and improve check for NetBSD disklabel.
5629
92a52dd4
VS
56302013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 * conf/Makefile.extra-dist: Add util/bin2h.c.
5633 Reported by: floppym.
5634
b2e9d276
VS
56352013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5636
5637 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5638
7b966834
VS
56392013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5640
5641 * configure.ac: Disable unifont and starfield if no freetype was found.
5642
d5c1eef1
VS
56432013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5644
5645 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5646 on NetBSD and OpenBSD.
5647
66345b50 56482013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
5649
5650 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5651
66345b50 56522013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
5653
5654 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5655 reduced. Inheritant options are processed during the theme loading.
5656
66345b50 56572013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
5658
5659 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5660
369508b3
AS
56612013-08-14 Avik Sil <aviksil@in.ibm.com>
5662
5663 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5664
56652013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
5666
5667 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5668 using qemu.
5669
6f27a3f6
PFS
56702013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5671
5672 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5673 remove-potcdate.sed.
5674
c6ed362a
AB
56752013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5676
5677 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5678 unused attribute from pull argument.
5679
5e7d9464
AB
56802013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5681
5682 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5683 memory leak.
5684
dea55e2a
AB
56852013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5686
5687 * util/getroot.c (pull_lvm_by_command): add --separator option
5688 to vgs call to disable padding of output to 10 characters.
5689
f0b94ded
VS
56902013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5691
5692 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5693 here ...
5694 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5695 here.
5696
b828fb5d
VS
56972013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5698
5699 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5700 length.
5701
7c9d0c39
VS
57022013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5703
5704 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5705 full Canadian cross. Tested with build=x86_64, host=arm,
5706 target=ppc-ieee1275.
5707
816719c8
VS
57082013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5709
5710 * configure.ac: Error if no $BUILD_CC could be found.
5711 Reported by: DevHC.
5712
2af2353b
VS
57132013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5714
5715 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5716 i386-multiboot.
5717
797abd0a
VS
57182013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5719
5720 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5721 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5722
36e87d25
CW
57232013-08-13 Colin Watson <cjwatson@ubuntu.com>
5724
5725 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5726 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5727 falling back to the partition device, otherwise a later call to this
5728 function may fail spuriously.
5729 Reported by Axel Beckert. Fixes Debian bug #708614.
5730
273349fe
GS
57312013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5732
5733 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5734
418f86c6
GS
57352013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5736
5737 Prevent shadowing of stdlib's devname(3) on BSD.
5738
5739 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5740 and devlast to diskname and disklast, respectively.
5741
c137aea0
CW
57422013-08-11 Colin Watson <cjwatson@ubuntu.com>
5743
5744 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5745
272dc8df 57462013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
5747
5748 * docs/grub.texi: Introduce terminal window position options:
5749 terminal-left: terminal window's left position
5750 terminal-top: terminal window's top position
5751 terminal-width: terminal window's width
5752 terminal-height: terminal window's height
5753 terminal-border: terminal window's border width
5754 * grub-core/gfxmenu/theme-loader.c: Likewise.
5755 * include/grub/gfxmenu_view.h: Likewise.
5756 * po/exlude.pot: Likewise.
5757 * grub-core/gfxmenu/view.c: Likewise.
5758 Also updated minimal window size.
5759 Also terminal_sanity_check function has been introduced.
272dc8df
VT
5760 * grub-core/tests/checksums.h: Update (terminal window height
5761 is adjusted now for low resolution screen)
b4743461 5762
748a4533
VS
57632013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5764
5765 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5766 position).
5767
fca5f944
VS
57682013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5769
5770 * po/exclude.pot: Add few recent exceptions.
5771
4f47d809
VS
57722013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5773
5774 * tests/grub_func_test.in: Add unicode.pf2.
5775
a62ae90c
VS
57762013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5777
5778 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5779 standard rather than noral color, in line with other terminals.
5780
4ed41392
VS
57812013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5784 analysis.
5785
3719fbc5
VS
57862013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5787
5788 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5789
459b1d91
VS
57902013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5791
5792 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5793 inappropriate printf.
5794
f4e1ab9d
AB
57952013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5796
5797 * .bzrignore: Remove grub-core/lib/dtc-grub,
5798 grub-core/Makefile.libfdt.def
5799 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5800
fa471bfa
VS
58012013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 * include/grub/video.h (grub_video_register): Keep double-linked as
5804 well as single-linked invariants.
5805 Reported by: qwertial.
5806
d65be02b
VS
58072013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5808
5809 * grub-core/commands/nativedisk.c (get_uuid): Handle
5810 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5811
ba8bc620
VT
58122013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5813
5814 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5815 maximum of NW, N, NE heights instead of N's height and maximum of
5816 NW, W, SW widths instead of W's width. (So the box will be always
5817 correctly drawn)
5818
4f0ad029
GS
58192013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5820
5821 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5822 Fix misuse of variable count.
5823
43d53b72
LL
58242013-07-18 Leif Lindholm <leif.lindholm@arm.com>
58252013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
58262013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 5827
43d53b72
LL
5828 New ports to arm-uboot and arm-efi.
5829 Mostly by Leif Lindholm with some additions from
5830 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 5831
88f8d146
VS
58322013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5833
5834 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5835 and not before.
5836 Reported by: Leon Drugi.
5837
3f42504c
VS
58382013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5839
5840 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5841 Reported by: Paulo Flabiano Smorigo.
5842
d110499b
VT
58432013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5844
5845 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5846
a8674ad3
VT
58472013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5848
5849 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5850
286fe4b3
VS
58512013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5852
5853 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5854
1bd57aa3
VS
58552013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5856
5857 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5858
7a87d69f
AB
58592013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5860
5861 * grub-core/net/bootp.c: Export net_* variables.
5862 * grub-core/net/net.c: Likewise.
5863
b2182299
VS
58642013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5865
5866 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5867
795b3dc0
VS
58682013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5869
5870 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5871
68714c43
VS
58722013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5873
5874 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5875
af211bab
VS
58762013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5877
5878 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5879
0036f02d
MM
58802013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5881
5882 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5883 <= 0.
5884
6d0ddff3
MM
58852013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5886
5887 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5888 functions.
5889
038016f4
MM
58902013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5891
5892 * grub-core/fs/zfs/zfs_lz4.c: New file.
5893 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5894
776bdce2
MM
58952013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5896
5897 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5898
c71dbd40
MM
58992013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5900
5901 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5902 (check_pool_label): Likewise.
5903 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5904
59052013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
5906
5907 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5908
8e67b50f
AB
59092013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5910
5911 * docs/grub.texi (Commands): Document postition parameters
5912 for menuentry command.
5913
f5ae3717
AB
59142013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5915
5916 * util/grub-mknetdir.in: Remove stray line from help output.
5917
9c28da2a
VS
59182013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5919
5920 Remove early sm712 init as there is no reason for it (the "watchdog"
5921 effect was due to wrong GPIO map).
5922
139072b8
VS
59232013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5924
5925 * grub-core/commands/pcidump.c: Remove static variables.
5926
c6a61bda
VS
59272013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5928
5929 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5930
51369614
VS
59312013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5932
5933 * configure.ac: Move delimiter after the infos.
5934
efa8640a
VS
59352013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5936
5937 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5938
6f80a7b2
VS
59392013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5940
5941 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5942 not filling whole 8x16 space.
5943
a2371e19
VS
59442013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5945
5946 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5947
64fce2d8
VS
59482013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5949
5950 * configure.ac: Indicate which liblzma is used if any.
5951
eb272d84
PW
59522013-06-21 Paul Wise <pabs3@bonedaddy.net>
59532013-06-21 Craig Sanders <savannah@taz.net.au>
5954
5955 * util/grub-reboot.in: Document submenu usage.
5956
a9e5abee
CW
59572013-06-25 Colin Watson <cjwatson@ubuntu.com>
5958
5959 * .bzrignore: Update with a number of new test-related files.
5960
e639c204
CW
59612013-06-25 Colin Watson <cjwatson@ubuntu.com>
5962
5963 * util/grub-script-check.c: Fail on scripts containing no
5964 commands, to guard against corrupted grub-mkconfig setups that
5965 produce no useful output.
5966 * tests/grub_script_no_commands.in: New test.
5967 * Makefile.util.def (grub_script_no_commands): Add.
5968 Reported by Hans Putter. Fixes Debian bug #713886.
5969
a4c89b17
AB
59702013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5971
5972 * grub-core/disk/diskfilter.c: Forgot to remove comment
5973 from previous commit.
5974
5b06b53c
AB
59752013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5976
5977 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5978 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5979
702da5c9
AB
59802013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5981
5982 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5983
aa62a5b7
AB
59842013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5985
5986 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5987 rescan diskfilter devices until nothing new is found.
5988
4aa237c8
VS
59892013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5990
5991 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5992
93d8479b
VS
59932013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5994
5995 Don't try to detect cbfs on *-emu.
5996
837222cc
VS
59972013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6000
99c971af
VS
60012013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 Add support for processed coreboot payload chainloading.
6004
e6930a45
VS
60052013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6006
6007 Enable coreboot information commands even when not loaded as
6008 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6009
5027af38
VS
60102013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6011
6012 Support for cbfs. Also factor out the part which is common
6013 for all archives to a separate module. This splits tar from cpio
6014 as they are very different but keeps cpio, cpio_be, odc and newc
6015 together since they're very similar.
6016
a5b55c4b
DM
60172013-06-15 David Michael <fedora.dm0@gmail.com>
6018
6019 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6020 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6021
0301a8b3
VS
60222013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6023
6024 * tests/grub_script_eval.in: Really add the eval test.
6025
3d84cb17
VS
60262013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6027
6028 Move flavour-specific parts out of common cpio.c file and
6029 rename remaining to cpio_common.c
6030
593e430c
AB
60312013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6032
6033 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6034 off new function grub_script_execute_new_scope. Change callers to use
6035 either of them as appropriate.
6036 * grub-core/commands/eval.c: New command eval.
6037 * docs/grub.texi (Commands): Document it.
6038
63c29849
AB
60392013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6040
6041 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6042 to fetch values when listing.
6043
cc284112
AB
60442013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6045
6046 Fix make dist on non-pc.
6047
60482013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
6049
6050 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6051 without a device name.
6052
69544d1e
VS
60532013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6054
6055 Remove enable_executable_check as it's not needed anymore.
6056 Reported by: dougray.
6057
96dbe648
VS
60582013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6059
6060 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6061 ambigouos RAID before discovering RAIDs on top of it.
6062 Reported by: bodom.
6063
ccfc0bdb
VS
60642013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6065
6066 Fix typo (failback vs fallback).
6067
f2587088
AB
60682013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6069
6070 * util/grub.d/30_os-prober.in: Add support for probing EFI
6071 System Partition (as of os-prober 1.58).
6072
cec5cf0c
VS
60732013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6074
6075 * configure.ac: Add yet another path to unifont. For parabola.
6076
e40b4596
JT
60772013-05-30 Josh Triplett <josh@joshtriplett.org>
6078
6079 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6080 handling to copy the killed characters to the kill buffer as
6081 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6082 stored as char. Eliminates UCS4 truncation and corruption
6083 observed when killing characters with Ctrl-u and yanking them
6084 back with Ctrl-y.
6085
fc4c4fdd
VS
60862013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6087
6088 Detach optional parts of gfxterm and integrate in with coreboot init.
6089
6570b205
VS
60902013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6091
6092 Move blit and fill dispatcher to appropriate files to decrease export
6093 and relocation overhead.
6094
b8323067
VS
60952013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6098 functions.
6099
3cc1878f
VS
61002013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6101
6102 * grub-core/Makefile.am: Fix compilation problem with some
6103 automake versions.
6104
4b80e43c
VS
61052013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6106
6107 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6108
57e0c20c
VS
61092013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6112 automake versions.
6113
4fd42c53
VS
61142013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6115
6116 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6117 SSDT.
6118
1e908b34
RS
61192013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6120
6121 * grub-core/partmap/dfly.c: New partition map.
6122
1359e474
VS
61232013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6124
6125 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6126 checking.
6127 Reported by: Francesco Lavra.
6128
17806392
AB
61292013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6130
6131 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6132 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6133 false conditions.
6134 * conf/Makefile.common: define dist_grubconf_DATA
6135
cdce14fa
VS
61362013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6137
6138 Progressively skip menu elements on small terminals rather
6139 than crashing.
6140
c8d6cc3c
VS
61412013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6142
6143 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6144 to avoid losing last column.
6145
a73b31ce
VS
61462013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 * po/exclude.pot: Add missing string "%C".
6149
1202c764
VS
61502013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6153 after the test.
6154
50268344
VS
61552013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6156
6157 * util/grub-install.in: Gettextize "Not found" message.
6158
62b15edf
VS
61592013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 Fix distfiles list.
6162 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6163
61642013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
6165
6166 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6167 present.
6168 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6169
709ad61b
VS
61702013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6171
6172 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6173
d128901a
VS
61742013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6175
6176 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6177 attribute since structure is not necessarily aligned.
6178
34b22f5c
AB
61792013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6180
6181 * docs/grub.texi (Device syntax): Clarify description of network
6182 drives.
6183
0f7e980b
VS
61842013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6187 for vasprintf presence.
6188
30b03dc2
VS
61892013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6190
6191 * util/grub-install.in: Handle efibootmgr presence check.
6192 Reported by: Leif Lindholm.
6193
0dc11c08
VS
61942013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6195
6196 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6197 new strings to translate.
6198
f8024c3f
VS
61992013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6202 yet another string (pun intended) to translate.
6203
b4c1da62
VS
62042013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6205
6206 * po/POTFILES-shell.in: Autogenerate it.
6207
0ef7478b
VS
62082013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6211
8200fa15
VS
62122013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6213
6214 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6215 misnomer.
6216
091945b2
AB
62172013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6218
6219 * docs/grub.texi (Network): Add description of net_default_interface,
6220 net_default_ip and net_default_mac. Rewrite variables description
6221 to emphasize that they are per-interface.
6222
0e7b2e32
VS
62232013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6224
6225 New test: cmdline and cat.
6226
16f7c8f6
VS
62272013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6228
6229 * grub-core/commands/cat.c: Show UTF-8 characters.
6230
3e912fda
VS
62312013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6232
6233 * conf/Makefile.common: Poison float and double on non-emu.
6234
ee0220bc
VS
62352013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6236
6237 * configure.ac: Don't disable extended registers on emu.
6238
89e0240c
VS
62392013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * configure.ac: Don't use extended registers on x86_64.
6242 Reported by: Peter Jones.
6243
e56d9637
VS
62442013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6245
6246 * grub-core/term/efi/console.c: Fix compile error.
6247
8098f655
VS
62482013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 Compressed HFS+ support.
6251
16940e07
VS
62522013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6253
6254 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6255 pixel".
6256
c5dbc13d
VS
62572013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6258
6259 Menu color test.
6260
011f8ae8
VS
62612013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6262
6263 * grub-core/tests/setjmp_test.c: New test.
6264
2aa072d7
VS
62652013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 New variables 'net_default_*' to determine MAC/IP of default interface.
6268
43fe02cb
VS
62692013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6270
6271 * tests/gettext_strings_test.in: A test to check for strings not
6272 marked for translation.
6273
bed06142
VS
62742013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6275
6276 * autogen.sh: Exclude unused libgcrypt files from translation.
6277
fb2666b5
VS
62782013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 Simplify few strings.
6281
d22840ec
VS
62822013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 Mark few forgotten strings for translation.
6285
e34092fd
VS
62862013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6289 rather than printf.
6290
47cf82b4
VS
62912013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6292
6293 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6294 rather than printf.
6295 * grub-core/video/readers/tga.c: Likewise.
6296
1eed0e6e
VS
62972013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 * tests/priority_queue_unit_test.cc: New test.
6300
c5b7697b
VS
63012013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6302
6303 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6304 than printf.
6305
5945c2f8
AB
63062013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6307
6308 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6309 variable for one time boot menu entry.
6310
fa292343
B
63112013-05-05 Bean <bean123ch@gmail.com>
6312
6313 * grub-core/commands/testspeed.c: New command testspeed.
6314
310d4214
VS
63152013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6316
6317 Factor-out human-size printing.
6318
85002bf3
VS
63192013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6320
6321 Agglomerate more mallocs to speed-up gfxterm.
6322
22b06e96
VS
63232013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6324
6325 Speed-up gfxterm by slightly agglomerating mallocs.
6326
b7c036bc
VS
63272013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 More video checks.
6330
92323d1f
VS
63312013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 Speed-up gfxterm by saving intermediate results in index+alpha
6334 format.
6335
0fb356a3
VS
63362013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6337
6338 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6339 test.
6340
44dea3f9
VS
63412013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6342
6343 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6344 line of timeout as it may contain the rest of long line.
6345
14af86e4
VS
63462013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 * grub-core/normal/main.c: Fix freed memory dereference.
6349
03f7c8c3
VS
63502013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6351
6352 Fix several memory leaks.
6353
c686014c
VS
63542013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6355
6356 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6357
0788a695
VS
63582013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6359
6360 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6361
daf01d61
VS
63622013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6363
6364 Fix test -a and -o precedence.
6365 Reported by: adrian15.
6366
82ae74d7
VS
63672013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6368
6369 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6370
8cec7bd4
AB
63712013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6372
6373 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6374 and add it as source to functional_test module.
6375
aa73d688
VS
63762013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6377
6378 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6379
c104b6f9
VS
63802013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 New series of tests for gfxterm and gfxmenu.
6383
7391c4d5
VS
63842013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6387 the theme path relative to $prefix/themes.
6388
cff50118
VS
63892013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6390
6391 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6392 Fix order bug.
6393 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6394
7c332bdc
VS
63952013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6396
6397 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6398 descriptor.
6399
a4f9a5ff
VS
64002013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6401
6402 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6403 grub_gfxmenu_timeout_notifications.
6404 (grub_gfxmenu_view_destroy): Likewise.
6405
b5a2114d
VS
64062013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6407
6408 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6409
a8905e8a
VS
64102013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6411
6412 Several fixes to ieee1275 and big-endian video.
6413
813c1622
VS
64142013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6415
6416 Add missing exports on mips.
6417
3f3e7326
VS
64182013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6419
6420 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6421 if no unifont is found.
6422 Restore original keyboard.
6423
095accd1
VS
64242013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6425
6426 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6427 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6428
50361660
VS
64292013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 First automated video test (running videotest and comparing results)
6432
cd0f6eec
VS
64332013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6434
6435 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6436 instead of 2 to have full RGB/CMY test pattern.
6437
3f9634e5
VS
64382013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6439
6440 Add few more tests.
6441
583e5b64
VS
64422013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6443
6444 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6445 ARCS. All users updated.
6446
aa7bcb99
VS
64472013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6448
6449 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6450
95ef1a54
VS
64512013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6452
6453 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6454
46546fc5
VS
64552013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6456
6457 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6458 Reported by: qwertial.
6459
3476e0ef
VT
64602013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6461
6462 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6463 with syntax "XXX deg"/"XXX °".
6464
96f33fed
VS
64652013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6466
6467 Make PCI init in i386-qemu port more robust.
6468
64692013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
6470
6471 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6472 cached view is reused.
6473 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6474 open boot menus.
6475
c53b4e67
VS
64762013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6477
6478 Unify more code in grub-install_header.
6479
f7457fb2
VS
64802013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6481
6482 Add few new tests.
6483
e2f27a8c
VS
64842013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6485
6486 Enforce disabling of firmware disk drivers when native drivers kick in.
6487
ef9d8cd5
VS
64882013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6489
6490 * grub-core/commands/nativedisk.c: Customize the list of modules on
6491 platform. Don't try to search for disks already using native drivers.
6492
f7bf6c31
VS
64932013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6496 platforms.
6497
bdc4add8
VS
64982013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6499
6500 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6501 handling of variables containing backslash.
6502
e9e46c9a
VS
65032013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6504
6505 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6506 dereference.
6507 Reported by: qwertial.
6508
0e90dee8
VS
65092013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6512
e0aacf24
VS
65132013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6514
6515 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6516 dereference.
6517 Reported by: qwertial.
6518
3c0003c3
VS
65192013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6520
6521 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6522
adb7d667
VS
65232013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6524
6525 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6526
7cd0df84
VS
65272013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 New command `nativedisk'.
6530
02adbb93
VS
65312013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6532
6533 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6534 * grub-core/loader/i386/bsd.c: Likewise.
6535
9fb0fd4f
VS
65362013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6537
6538 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6539
bd69257a
VS
65402013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6543 grub_get_unaligned16 rather than shifts.
6544
178c2764
VS
65452013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6546
6547 * grub-core/kern/file.c: Use const char * rather than casting to
6548 non-const.
6549
eadfad24
VS
65502013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6551
6552 * grub-core/commands/probe.c: Add missing grub_device_close.
6553
9f73ebd4
VS
65542013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6555
6556 * INSTALL: Document linguas.sh.
6557
965fa829
VS
65582013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6559
6560 Remove POTFILES.in and regenerate it in autogen.sh.
6561
d417ddc4
VS
65622013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6563
6564 Move --directory/--override-directorry to grub-install_header and unify.
6565
f97ec546
VS
65662013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6567
6568 * grub-core/term/morse.c: Macroify dih and dah.
6569
b2d7470c
PFS
65702013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6571
6572 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6573
141e2a78
VS
65742013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6575
6576 * grub-core/term/ns8250.c: Systematically probe ports by writing
6577 to SR before using them.
6578
1dd70ebd
PFS
65792013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6580
6581 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6582 disks.
6583 (check_sas): Get sas_adress info.
6584
c796a107
VS
65852013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6588 ports.
6589
43168646
LD
65902013-04-27 Leon Drugi <eyak>
6591
6592 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6593 BSS clearing.
6594
e7b8fd08
VS
65952013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6596
6597 Core compression test.
6598
17f9fd29
VS
65992013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 Implement grub_machine_get_bootlocation for ARC.
6602
dc2a6c8b
VS
66032013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 Improve AHCI detection and command issuing.
6606
f25a2ba6
VS
66072013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 Fix pseries test.
6610
a6393224
VS
66112013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6612
6613 Make 'make check' work on emu.
6614
db99fbe8
VS
66152013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6616
6617 Replace libcurses with our own vt100 handling for the ease of testing
6618 and decreasing prerequisites.
6619
b24ca7cd
VS
66202013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6623
63314aa4
VS
66242013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6625
6626 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6627 compile when not needed.
6628
c1b00fff
VS
66292013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6630
6631 * tests/pseries_test.in: New test.
6632
f93e89ef
VS
66332013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6634
6635 Add test to check that different boot mediums work.
6636
c4b456d3
VS
66372013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6638
6639 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6640 ofw limited ISO support.
6641
5fe67f39
VS
66422013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6643
6644 * configure.ac: Fix loongson conditional.
6645
7f63a64f
VS
66462013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6647
6648 Enable mipsel-arc.
6649
b04b5990
VS
66502013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6651
6652 Add serial on ARC platform.
6653
88d2f302
VS
66542013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6655
6656 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6657 commit.
6658
86eb23bc
VS
66592013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6660
6661 * tests/partmap_test.in: Add missing double semicolon.
6662
eec3bb75
VS
66632013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * util/grub-mkrescue.in: Fix loongson filename.
6666
e0810df3
VS
66672013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6668
6669 * util/grub-mkrescue.in: Move all files that don't have a location
6670 set in stone under /boot/grub. Use ISO hard links rather than copies
6671 to save some space.
6672
65a6b30b
VS
66732013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6676 bogus SLOF values.
6677
6aff0107
VS
66782013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6679
6680 Make check work on mips-arc.
6681
5e013e56
VS
66822013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6683
6684 * util/grub-mkrescue.in: Alias sashARCS as sash.
6685
d1989e2e
VS
66862013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6687
6688 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6689 it's serial.
6690
1a25e72c
VS
66912013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6692
6693 * util/grub-install.in: Fix target fo qemu_mips.
6694 Fix extension on EFI.
6695
a59a9826
VS
66962013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6697
6698 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6699 in front of chosen entry to mark it even if highlighting is lost.
6700
1a40f80c
VS
67012013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6704 gfxpayload=keep if cbfb is active.
6705
e343549c
VS
67062013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6709
45fbd9a2
VS
67102013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 Add missing video ids to coreboot and ieee1275 video.
6713
ab1440bd
VS
67142013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6715
6716 * util/grub-mkrescue.in: Add mips-arc support.
6717
cdeb8324
VS
67182013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6719
6720 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6721
8528c879
VS
67222013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 Move mips-arc link address. Previous link address was chosen
6725 in belief that RAM on SGI platforms grows down while in fact it
6726 grows up from an unusual base.
6727
17fca573
VS
67282013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6729
6730 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6731 Fix a type which prevented CD-ROM and floppy boot.
6732
d178788e
VS
67332013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 Support coreboot framebuffer.
6736
6737 * grub-core/video/i386/coreboot/cbfb.c: New file.
6738
fe4c3e7e
VS
67392013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6740
6741 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6742 detecting too small regions.
6743
ec2dd179
VS
67442013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6745
6746 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6747
872dac83
VS
67482013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6751 Remove dprintf.
6752 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6753
90ec4b7f
VS
67542013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6755
6756 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6757 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6758 * grub-core/loader/powerpc/ieee1275/linux.c
6759 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6760
f32555dd
VS
67612013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6762
6763 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6764 Look for /boot-rom as well as /rom/boot-rom.
6765
38649799
VS
67662013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6767
6768 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6769 handling when creating text_layer failed.
6770 * grub-core/video/video.c (grub_video_create_render_target):
6771 Set result to 0 on error.
6772 (grub_video_delete_render_target): Do not dereference NULL.
6773
aeace7f7
VS
67742013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6777 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6778 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6779 (grub_linux_load64): Mask out 2 high bits.
6780
4eafa175
AB
67812013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6782
6783 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6784 more place.
6785
daaa64bd
VS
67862013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6787
6788 Add support for pseries and other bootinfo machines to grub-mkrescue.
6789
6790 Tested by: Paulo Flabiano Smorigo.
6791
d0d2daa6
VS
67922013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6793
6794 * util/grub-mkrescue.in: Add GPT for EFI boot.
6795
b193e100
VS
67962013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6797
6798 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6799 It improves performance in qemu.
6800
a0f8f3ac
VS
68012013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 * build-aux/snippet: Add missing gnulib files.
6804
284df0e2
AB
68052013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6806
6807 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6808
740201f3
AB
68092013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6810
6811 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6812
a7e03923
PJ
68132013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
68142013-04-15 Peter Jones <pjones@redhat.com>
6815
6816 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6817 sectors.
6818 Based on patch by Peter Jones.
6819
25fc51a8
VS
68202013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6821
6822 Fix DMRAID partition handling.
6823
88017d47
VS
68242013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 * tests/grub_cmd_date.in: Skip on sparc64.
6827
fa7d914e
VS
68282013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6829
6830 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6831 firmware error messages.
6832
cbe57a48
VS
68332013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6834
6835 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6836 source and destination differ.
6837
21aecce0
VS
68382013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6839
6840 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6841 detection.
6842
25092d29
VS
68432013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6844
6845 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6846 match config-util.h to avoid warnings and increase compatibility.
6847
79451522 68482013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 68492013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
6850
6851 Add option to compress files on install/image creation.
6852
78b7d77b
VS
68532013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6854
6855 * docs/grub-dev.texi: Rearrange menu to match the section order.
6856 Reported by: Bryan Hundven.
6857
cc2fa5ec
VS
68582013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6859
6860 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6861
b49fe879
VS
68622013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6863
6864 Move GRUB out of system area when using xorriso 1.2.9 or later.
6865
5351da81
VS
68662013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 * tests/grub_cmd_date.in: Add missing exit 1.
6869
c9d586ea
VS
68702013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6871
6872 * tests/partmap_test.in: Skip on sparc64.
6873
3f729741
VS
68742013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6875
6876 Support grub-shell on sparc64.
6877
8ca86b3a
VS
68782013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 Support mkrescue on sparc64.
6881
aa1af9bb
VS
68822013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6883
6884 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6885 Needed on OpenBIOS due to incomplete device tree.
6886
ac4fea79
VS
68872013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6888
6889 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6890 would be otherwise excluded.
6891
68922013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
6893
6894 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6895 Inline name defines used only once.
6896
fe22b071
VS
68972013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6898
6899 Fix memory leaks in ofnet.
6900 Reported by: Francesco Lavra.
6901
9d21381b
VS
69022013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6903
6904 * docs/man/grub-glue-efi.h2m: Add missing file.
6905
07aec23c
VS
69062013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6907
6908 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6909
67ab8353
VS
69102013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6911
6912 Better support Apple Intel Macs on CD.
6913
ba44ca6d
VS
69142013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6915
6916 Replace stpcpy with grub_stpcpy in tools.
6917
bbdd6305
VS
69182013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6919
6920 Handle Japanese special keys.
6921 Reported by: Hiroyuki YAMAMORI.
6922 Codes supplied by: Hiroyuki YAMAMORI.
6923
8573d302
VS
69242013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6925
6926 * util/grub-mkimage.c: Document memdisk implying --prefix.
6927
d70dbab7
VS
69282013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6929
6930 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6931 much we can do about it anyway.
6932
51a4c3e3
AN
69332013-04-12 Aleš Nesrsta <starous@volny.cz>
6934
6935 Fix handling of split transfers.
6936
92c8f58d
VS
69372013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6938
6939 * grub-core/net/http.c: Fix bad free.
6940
b7d17a49
VS
69412013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6942
6943 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6944 than buffer size.
6945
a3d566d4
VS
69462013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6947
6948 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6949
a936af56
VS
69502013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6951
6952 * tests/util/grub-shell.in: Fix it on powerpc.
6953
51212234
VS
69542013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6955
6956 Turn off QEMU ACPI-way since new releases don't have shutdown port
6957 anymore.
6958
a21eec9e
VS
69592013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6960
6961 * docs/grub.texi: Update coreboot status info.
6962
e3734b84
VS
69632013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6964
6965 * tests/grub_cmd_date.in: New test for datetime.
6966
f9d40055
VS
69672013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6968
6969 * tests/partmap_test.in: Fix missing qemudisk setting.
6970
dbc56d8f
VS
69712013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6972
6973 Support i386-ieee1275 grub-mkrescue and make check on it.
6974
a79b8a15
VS
69752013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6976
6977 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6978 feature for it.
6979
48f39bb4
VS
69802013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6981
6982 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6983 GRUB_CMDLINE_XEN_DEFAULT.
6984 Reported by: Marc Warne (GigaTux) <gigatux>
6985
053cfcdd
VS
69862013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6987
6988 Import new gnulib.
6989
93cd84df
VS
69902013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6991
6992 Use ACPI shutdown intests as traditional port was removed.
6993
f4b1fa4f
AB
69942013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6995
6996 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6997 distinction.
6998
49818a59
VS
69992013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7000
7001 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7002 Fix few warining messages and leaks while on it.
7003
9277a306
AB
70042013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7005
7006 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7007 links under grub-core/lib/libgcrypt-grub/mpi.
7008
d5e2a158
VS
70092013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7010
7011 Fix ia64-efi image generation on big-endian machines. Deduplicate
7012 some code while on it.
7013 Reported by: Leif Lindholm.
7014
18866643
AB
70152013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7016
7017 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7018 as extra_dist.
7019
ca53deb8
AB
70202013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7021
7022 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7023
d4c4b8e1
BH
70242013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7025
7026 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7027 texinfo-5.1.
7028
47043f95
VS
70292013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 * grub-core/normal/term.c: Few more fixes for menu entry editor
7032 rendering.
7033 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7034
a3216068
VS
70352013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7036
7037 * grub-core/normal/term.c: Few more fixes for menu entry editor
7038 rendering.
7039 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7040
21026747
AB
70412013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7042
7043 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7044 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7045
59624ca8
AB
70462013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7047
7048 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7049 instead of hardcoding grub.mo.
7050
1f44478c
FN
70512013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7052
7053 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7054
eeada7b1
VS
70552013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7058 grub-core/disk/geli.c.
7059
132867de
VS
70602013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7061
7062 * util/grub-mkfont.c: Prefer enum to #define.
7063
de73de17
VS
70642013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7065
7066 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7067
1865baa7
VS
70682013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7069
7070 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7071
ce7d92a9
VS
70722013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7073
7074 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7075
52eab656
VS
70762013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7077
7078 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7079
98b23b95
VS
70802013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7081
7082 * include/grub/bsdlabel.h: Use enums.
7083
0467a5dd
VS
70842013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7085
7086 Move GRUB_CHAR_BIT to types.h.
7087
16cc9f03
AB
70882013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7089
7090 * docs/grub.texi: Document more user commands.
7091
3152aecb
AB
70922013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7093
7094 * docs/grub.texi: Document menuentry --id option.
7095
c506fc30
FL
70962013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7097
7098 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7099
aa428238
VS
71002013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7101
7102 Unify file copying setup across different install scripts. Add
7103 options for performing partial install.
7104
efe0cdda
PJ
71052013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
71062013-04-04 Peter Jones <pjones@redhat.com>
7107
7108 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7109
f75835bd
VS
71102013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7111
7112 Use TSC as a possible time source on i386-ieee1275.
7113
2cd5ce6c
VS
71142013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7115
7116 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7117 Init err.
7118
c9625630
VS
71192013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7120
7121 * util/grub-setup.c (setup): Handle some corner cases.
7122
be008941
VS
71232013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7124
7125 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7126
1a78d573
VS
71272013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7128
7129 * grub-core/commands/verify.c: Save verified file to avoid it being
7130 tampered with after verification was done.
7131
db8ff59f
VS
71322013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7133
7134 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7135 reported width by one to compensate for curesor algorithm problem.
7136
91bf46b1
VS
71372013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7138
7139 Fix screen corruption in menu entry editor and simplify the code
7140 flow while on it.
7141
a7b1d693
AB
71422013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7143
7144 * util/grub-mount.c (fuse_init): Return error if fuse_main
7145 failed.
7146
31df9ad8
FL
71472013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7148
7149 * include/grub/elf.h: Add missing ARM relocation codes and fix
7150 existing ones.
7151
07f392eb
VT
71522013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7153
7154 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7155
9efd73ec 71562013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
71572013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7160 into account when calculating radius.
7161
71622013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
7163
7164 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7165
4985ddaa
VT
71662013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7167
7168 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7169
8c3635ff
RS
71702013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7171
7172 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7173 missing closing bracket.
7174
74a35e69
RS
71752013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7176
7177 * INSTALL: Mention xorriso requirement.
7178
40f1c000
AB
71792013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7180
7181 * grub-core/commands/verify.c: Fix hash algorithms values for
7182 the first three hashes - they start with 1, not with 0.
7183
e75fdee4
VS
71842013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7185
7186 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7187 Try terminating EFI services several times due to quirks in some
7188 implementations.
7189
33028f4c
CW
71902013-03-26 Colin Watson <cjwatson@ubuntu.com>
7191
7192 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7193 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7194 BankField extended opcodes.
7195 (get_sleep_type): Add minimal scope handling (just enough to
7196 handle setting the scope to the root path).
7197 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7198 * include/grub/acpi.h: Add enumeration values for Event, Device,
7199 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7200
33871a10
VT
72012013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7202
7203 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7204 memory leak.
7205
8990963a
VS
72062013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7207
7208 * grub-core/disk/ahci.c: Give more time for AHCI request.
7209
daae8f9e
VS
72102013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7211
7212 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7213 command.
7214
6a7fb94b
VS
72152013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7216
7217 Replace the region at 0 from coreboot tables to available in BSD
7218 memory map.
7219
ff99babd
VS
72202013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7221
7222 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7223 non-BIOS platforms.
7224
30d6b1b2
VS
72252013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7226
7227 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7228 platforms.
7229
6ccd0b31
VS
72302013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7231
7232 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7233 handling of multi-device filesystems.
7234
23c9cc04
VS
72352013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7236
7237 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7238 platforms.
7239
ce50dbd7
VS
72402013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7241
7242 Add new 'proc' filesystem framework and put luks_script into it.
7243
d975e8d5
VS
72442013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7247 and qemu.
7248
e73ba5e8
VS
72492013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7252
92750e4c
VS
72532013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7254
7255 Add ability to generate newc additions on runtime.
7256
0ec45a68
VS
72572013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7258
7259 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7260 description.
7261
320abd43
VS
72622013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7263
7264 * po/POTFILES.in: Regenerate.
7265
d7a6506e
VS
72662013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7267
7268 * grub-core/commands/verify.c (hashes): Add several hashes
7269 from the spec.
7270
8fe05def
VS
72712013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7272
7273 Slight improve in USB-related boot-time checkpoints.
7274
524e2766
VS
72752013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7276
7277 * grub-core/commands/boottime.c: Fix copyright header.
7278
cc19857a
VS
72792013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7280
7281 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7282 coreboot tables content. Support for cbmemc.
7283
ef8810e9
VS
72842013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7285
7286 Fix a conflict between ports structures with 2 controllers of
7287 same kind.
7288
e9dabdfa
VS
72892013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7290
7291 * include/grub/boottime.h: Add missing file.
7292
f6df57d2
VS
72932013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7294
7295 Initialize USB ports in parallel to speed-up boot.
7296
d745dda7
VS
72972013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 Fix USB devices not being detected when requested
7300 due to delayed attach.
7301
e5a2dd7b
VS
73022013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7303
e744219b
VS
7304 Implement boot time analysis framework.
7305
73062013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7307
7308 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
7309 descriptor to just receive it as argument rather than endpoint
7310 address.
7311
5dd6f587
VS
73122013-03-19 Aleš Nesrsta <starous@volny.cz>
7313
7314 Better estimate the maximum USB transfer size.
7315
2f1071d5
VS
73162013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7317
7318 Resend a packet if we got the wrong buffer in status.
7319
46ecfc49
VS
73202013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7321
7322 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7323 multiplication rather than division.
7324
ea811130
VS
73252013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7326
7327 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7328 than divisions.
7329
d2789cf0
VS
73302013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7331
7332 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7333 operations to have intended shifts and not divisions.
7334
a9c94590
VS
73352013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7336
7337 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7338 intended shifts rather than division.
7339
84cfe81b
VS
73402013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7341
7342 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7343 computation for some years before epoch. Avode confusing division
7344 while on it.
7345
21344ef6
VS
73462013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7347
7348 * grub-core/video/i386/pc/vbe.c
7349 (grub_video_vbe_print_adapter_specific_info): Replace division by
7350 shifts.
7351
3f2b4d1a
VS
73522013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7353
7354 Adjust types in gdb module to have intended unsigned shifts rather than
7355 signed divisions.
7356
3dac5878
VS
73572013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7358
7359 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7360 maximum size is 4G - 1 on hfs
7361
5341c0fb
VS
73622013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7363
7364 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7365
fc3ff2a2
VS
73662013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7369 function.
7370
81455e8e
AB
73712013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7372
7373 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7374 causing gcc error with gcc 4.7.1.
7375
efd4f117
NZ
73762013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7377
7378 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7379 dereference null pointer. While the code is technically correct, gcc
7380 may eliminate a null check if pointer is already dereferenced.
7381
e11645f4
NZ
73822013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7383
7384 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7385 OOM check.
7386 * grub-core/normal/term.c (read_terminal_list): Likewise.
7387
77468368
VS
73882013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7389
7390 Lift up core size limits on some platforms. Fix potential memory
7391 corruption with big core on small memory systems. Document remaining
7392 limits.
7393
f6b58fe5
VS
73942013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7395
7396 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7397 gotoxy to 0,0.
7398
19ce697d
VS
73992013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7400
7401 Remove all trampoline support. Add -Wtrampolines when
7402 present. Remove symbols used for trampolines to make
7403 link fail if trampolines are present.
7404
73b5d90f
VS
74052013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7406
7407 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7408 append out of its parent.
7409
cb758e96
VS
74102013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7411
7412 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7413 parent.
7414
3188131f
VS
74152013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7416
7417 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7418 all vars to a macro. All users updated.
7419
e42b2514
VS
74202013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7421
7422 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7423 i386-ieee1275.
7424
83e1a1a1
VS
74252013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7426
7427 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7428
1d5a880f
VS
74292013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7430
7431 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7432
6e4146c4
VS
74332013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7434
7435 Move to more hookless approach in IEEE1275 devices handling.
7436
99fcda8a
VS
74372013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 * grub-core/kern/term.c (grub_term_normal_color),
7440 (grub_term_highlight_color): Add back lost defaults.
7441
73bf57e2
VS
74422013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7443
7444 Make elfload not use hooks. Opt for flags and iterators instead.
7445
7f8c105f
VS
74462013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7447
7448 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7449 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7450
396d4091
VS
74512013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7452
7453 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7454
74552013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7456
7457 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7458 hook pass-through parameter. All users updated and unnested.
7459
74a27421
VS
74602013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7463 out of its parent.
7464
b46d4213
VS
74652013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/fs/hfs.c: Remove nested functions.
7468
e114c3cc
VS
74692013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7472 the context through.
7473 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7474
f9b7d780
VS
74752013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7476
7477 * util/grub-editenv.c (list_variables): Move print_var out of its
7478 parent.
7479
ca9c2608
VS
74802013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7481
7482 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7483 function.
7484
5d983f5f
VS
74852013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * grub-core/gentrigtables.c: Make tables const.
7488
3056d3e7
VS
74892013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 Remove nested functions from videoinfo iterators.
7492
e2303774
VS
74932013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7494
7495 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7496 for 64-bit platforms.
7497
f42e3a2f
VS
74982013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7499
7500 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7501 a FOR_CHILDREN macro.
7502
be174e5e
VS
75032013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7504
7505 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7506 platform from firmware path.
7507
0789b672
VS
75082013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7509
7510 Enable linux16 on non-BIOS systems for i.a. memtest.
7511
7512 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7513 correctly.
7514 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7515
005a9c32
VS
75162013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7517
7518 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7519 Fix end of table condition.
7520
ff2b3cd9
VS
75212013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7522
7523 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7524 out of its parent.
7525
4fc40ff8
VS
75262013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7527
7528 * grub-core/fs/jfs.c: Remove nested functions.
7529
be42d97a
VS
75302013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7531
7532 * grub-core/fs/minix.c: Remove nested functions.
7533
99373ce4
VS
75342013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7535
7536 * grub-core/fs/iso9660.c: Remove nested functions.
7537
5aec2afe
VS
75382013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7539
7540 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7541 of parent function.
7542
6c69e691
VS
75432013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7544
7545 * util/grub-fstest.c: Remove nested functions.
7546
43c91882
VS
75472013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7548
7549 * grub-core/loader/machoXX.c: Remove nested functions.
7550
4eb8b756
CW
75512013-02-27 Colin Watson <cjwatson@ubuntu.com>
7552
7553 Remove nested functions from disk and file read hooks.
7554
7555 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7556 (struct grub_disk): Add read_hook_data member.
7557 * include/grub/file.h (struct grub_file): Likewise.
7558 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7559 argument.
7560
7561 Update all callers.
7562
df6da5a5
AB
75632012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7564
7565 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7566 Fix off by one error in enumerating extended partitions.
7567
21aecde5
AB
75682013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7569
7570 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7571 memory leak if device name is not found.
7572
f1a19118
AB
75732013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7574
7575 * grub-core/normal/menu_entry.c (update_screen): remove
7576 unused variable `off' which caused scroll down arrow to be always shown.
7577
958bfd20
AB
75782013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7579
7580 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7581 access to unallocated memory.
7582
b7b78edb
AB
75832013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7584
7585 * Makefile.util.def: Add partmap/msdos.c to common library.
7586 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7587 * grub-core/disk/ldm.c: Check for existence of
7588 GRUB_PC_PARTITION_TYPE_LDM.
7589
28d468d6
VS
75902013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7591
7592 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7593 sizes and display sector size.
7594
d55ffb02
VS
75952013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7596
7597 Implement new command cmosdump.
7598
b5ea6ce0
VS
75992013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7600
7601 Support Openfirmware disks with non-512B sectors.
7602
7603 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7604 size of the disk.
7605 * (grub_ofdisk_get_block_size): New function.
7606 * (grub_ofdisk_prepare): Use the correct block size.
7607 * (grub_ofdisk_read): Likewise.
7608 * (grub_ofdisk_write): Likewise.
7609 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7610 New proto.
7611
cc0e476f
VS
76122013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7613
7614 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7615
c5dbdc33
VS
76162013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7617
7618 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7619 on first error.
7620
3f078c0f
VS
76212013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7622
7623 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7624 freeing it.
7625
66a93674
VS
76262013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7627
7628 Implement USBDebug (full USB stack variant).
7629
c9f0c134
VS
76302013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7633 unless they have unexpected values.
7634
cfe1288b
VS
76352013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7638 grub_print_error.
7639
e42b9969
VS
76402013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7643 zero-out of port structure.
7644
cf94fd62
VS
76452013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7648 of extended attributes.
7649
f81ef4b5
AB
76502013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7651
7652 * util/grub-install.in: change misleading comment about
7653 device.map creation
7654
af18fdb4
VS
76552013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7656
7657 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7658 when menu highlight color isn't set.
7659
08bcec50
M
76602013-01-27 C. Masloch <pushbx@38.de>
7661
7662 Improve FreeDOS direct loading support compatibility.
7663
7664 * include/grub/i386/relocator.h (grub_relocator16_state):
7665 New member ebp.
7666 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7667 variable.
7668 (grub_relocator16_boot): Handle %ebp.
7669 * grub-core/lib/i386/relocator16.S: Likewise.
7670 * grub-core/loader/i386/pc/freedos.c:
7671 Load BPB to pass kernel which partition to load from.
7672 Check that kernel file is not too large.
7673 Set register dl to BIOS unit number as well.
7674
7782b8a6
CW
76752013-01-22 Colin Watson <cjwatson@ubuntu.com>
7676
7677 * util/grub-reboot.in (usage): Document the need for
7678 GRUB_DEFAULT=saved.
7679 * util/grub-set-default.in (usage): Likewise.
7680 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7681
e661c180
VS
76822013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7683
7684 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7685 than defining WORDS_BIGENDIAN manually.
7686
1c22ca9a
VS
76872013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7688
7689 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7690 invariants.
7691
d44892fe
CW
76922013-01-21 Colin Watson <cjwatson@ubuntu.com>
7693
7694 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7695 nested.
7696 (blit_comb: add_device_width): Likewise.
7697
5fdbaed1
CW
76982013-01-21 Colin Watson <cjwatson@ubuntu.com>
7699
7700 Remove nested functions from USB iterators.
7701
7702 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7703 (grub_usb_controller_iterate_hook_t): Likewise.
7704 (grub_usb_iterate): Add hook_data argument.
7705 (grub_usb_controller_iterate): Likewise.
7706 (struct grub_usb_controller_dev.iterate): Likewise.
7707
7708 Update all implementations and callers.
7709
4250985a
VS
77102013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7711
7712 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7713 margin when not needed.
7714
7d8848f3
VS
77152013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7716
bc136973 7717 Make color variables global instead of it being per-terminal.
7d8848f3
VS
7718
77192013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7720
bc136973
VS
7721 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7722 asterisk.
7d8848f3 7723
ed12a003
CW
77242013-01-21 Colin Watson <cjwatson@ubuntu.com>
7725
7726 Fix powerpc and sparc64 build failures caused by un-nesting memory
7727 map iterators.
7728
6a0db449
CW
77292013-01-21 Colin Watson <cjwatson@ubuntu.com>
7730
7731 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7732 parameter declarations.
7733
ccd86b21
VS
77342013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7735
7736 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7737
822b726b
VS
77382013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 Improve spkmomdem reliability by adding a separator between bytes.
7741
115c2cc1
CW
77422013-01-21 Colin Watson <cjwatson@ubuntu.com>
7743
7744 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7745 an Acer registration utility with several sightings in the wild.
7746 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7747
fc524edf
CW
77482013-01-21 Colin Watson <cjwatson@ubuntu.com>
7749
7750 Remove nested functions from filesystem directory iterators.
7751
7752 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7753 (struct grub_fs.dir): Add hook_data argument.
7754
7755 Update all implementations and callers.
7756
53d3e4e3
CW
77572013-01-21 Colin Watson <cjwatson@ubuntu.com>
7758
7759 * docs/grub.texi (Multi-boot manual config): Fix typo for
7760 "recommended".
7761
c821711f
LL
77622013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7763
7764 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7765 until after its use in generate_image.
7766
6a0debbd
CW
77672013-01-20 Colin Watson <cjwatson@ubuntu.com>
7768
7769 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7770 initrd size to addr_min, since the initrd will be allocated after
7771 this address.
7772
f41e08db
AB
77732013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7774
7775 * conf/Makefile.common: Fix autogen rules to pass definition
7776 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7777
77529e0f
LL
77782013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7779
7780 * include/grub/elf.h: Update ARM definitions based on binutils.
7781
b879aa7b
VS
77822013-01-20 Aleš Nesrsta <starous@volny.cz>
7783
7784 Split long USB transfers into short ones.
7785
8eb8284d
AB
77862013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7787
7788 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7789 is interrupted by ESC.
7790
08dad2dc
VS
77912013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7792
7793 * util/grub-script-check.c (main): Uniform the error message.
7794
6c724b85
CW
77952013-01-20 Colin Watson <cjwatson@ubuntu.com>
7796
7797 Remove nested functions from ELF iterators.
7798
25239370
CW
77992013-01-20 Colin Watson <cjwatson@ubuntu.com>
7800
7801 Remove nested functions from device iterators.
7802
7803 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7804 (grub_arc_iterate_devs): Add hook_data argument.
7805 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7806 (struct grub_ata_dev.iterate): Add hook_data argument.
7807 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7808 (grub_device_iterate): Add hook_data argument.
7809 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7810 (struct grub_disk_dev.iterate): Add hook_data argument.
7811 (grub_disk_dev_iterate): Likewise.
7812 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7813 Likewise.
7814 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7815 Likewise.
7816 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7817 type.
7818 (struct grub_partition_map.iterate): Add hook_data argument.
7819 (grub_partition_iterate): Likewise.
7820 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7821 (struct grub_scsi_dev.iterate): Add hook_data argument.
7822
7823 Update all callers.
7824
6c0314d6
CW
78252013-01-20 Colin Watson <cjwatson@ubuntu.com>
7826
7827 Fix typos for "developer" and "development".
7828
600dc5f1
VS
78292013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 Add license header to spkmodem-recv.c.
7832
17334a6b
VS
78332013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7834
7835 Rewrite spkmodem to use PIT for timing. Double the speed.
7836
7d462559
VS
78372013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7838
7839 Add new command pcidump.
7840
b78d6c32
VS
78412013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7842
7843 New terminal outputs using serial: morse and spkmodem.
7844
34f71cb8
VS
78452013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7846
7847 Improve bidi handling in entry editor.
7848
4542e71b
VS
78492013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7850
7851 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7852 argument to prevent name collision.
7853
09fd6d82
CW
78542013-01-15 Colin Watson <cjwatson@ubuntu.com>
7855
7856 Remove nested functions from script reading and parsing.
7857
7858 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7859 getline_data argument, passed to getline.
7860 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7861 getline_data argument, passed to grub_parser_split_cmdline.
7862 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7863 lexerstate->getline_data to lexerstate->getline.
7864 (grub_script_lexer_init): Add getline_data argument, saved in
7865 lexerstate->getline_data.
7866 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7867 argument, passed to grub_script_parse.
7868 * grub-core/script/script.c (grub_script_parse): Add getline_data
7869 argument, passed to grub_script_lexer_init.
7870 * include/grub/parser.h (grub_parser_split_cmdline): Update
7871 prototype. Update all callers to pass appropriate getline data.
7872 (struct grub_parser.parse_line): Likewise.
7873 (grub_rescue_parse_line): Likewise.
7874 * include/grub/reader.h (grub_reader_getline_t): Add void *
7875 argument.
7876 * include/grub/script_sh.h (struct grub_lexer_param): Add
7877 getline_data member.
7878 (grub_script_parse): Update prototype. Update all callers to pass
7879 appropriate getline data.
7880 (grub_script_lexer_init): Likewise.
7881 (grub_normal_parse_line): Likewise.
7882
7883 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7884 data argument.
7885 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7886 static instead of nested. Rename to ...
7887 (grub_parser_execute_getline): ... this.
7888 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7889 data argument.
7890 * grub-core/normal/main.c (read_config_file: getline): Make static
7891 instead of nested. Rename to ...
7892 (read_config_file_getline): ... this.
7893 (grub_normal_read_line): Add unused data argument.
7894 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7895 getline): Make static instead of nested. Rename to ...
7896 (grub_script_execute_sourcecode_getline): ... this.
7897 * util/grub-script-check.c (main: get_config_line): Make static
7898 instead of nested.
7899
d0d4b8a0
CW
79002013-01-15 Colin Watson <cjwatson@ubuntu.com>
7901
7902 Remove nested functions from memory map iterators.
7903
7904 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7905 argument, passed to hook.
7906 * grub-core/kern/i386/coreboot/mmap.c
7907 (grub_linuxbios_table_iterate): Likewise.
7908 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7909 instead of nested.
7910 (grub_machine_mmap_iterate): Add hook_data argument.
7911 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7912 Add hook_data argument, passed to hook.
7913 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7914 Likewise.
7915 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7916 Likewise.
7917 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7918 Likewise.
7919 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7920 Likewise.
7921 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7922 Likewise.
7923 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7924 Likewise.
7925 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7926 (grub_machine_mmap_iterate): Likewise.
7927 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7928 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7929 prototype.
7930 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7931 Remove NESTED_FUNC_ATTR from here and from all users.
7932 (grub_mmap_iterate): Update prototype.
7933 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7934 pass appropriate hook data.
7935 (grub_machine_mmap_iterate): Likewise.
7936
7937 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7938 static instead of nested.
7939 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7940 Rename to ...
7941 (lsmmap_hook): ... this.
7942 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7943 Likewise.
7944 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7945 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7946 heap_init): Likewise.
7947 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7948 Rename to ...
7949 (mmap_iterate_hook): ... this.
7950 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7951 Likewise.
7952 * grub-core/lib/ieee1275/relocator.c
7953 (grub_relocator_firmware_get_max_events: count): Likewise.
7954 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7955 to ...
7956 (grub_relocator_firmware_fill_events_iter): ... this.
7957 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7958 hook): Likewise. Rename to ...
7959 (grub_relocator_alloc_chunk_align_iter): ... this.
7960 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7961 Rename to ...
7962 (generate_e820_mmap_iter): ... this.
7963 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7964 Rename to ...
7965 (count_hook): ... this.
7966 (grub_linux_boot: hook): Likewise. Rename to ...
7967 (grub_linux_boot_mmap_find): ... this.
7968 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7969 (grub_linux_boot_mmap_fill): ... this.
7970 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7971 hook): Likewise. Rename to ...
7972 (grub_fill_multiboot_mmap_iter): ... this.
7973 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7974 hook): Likewise. Rename to ...
7975 (count_hook): ... this.
7976 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7977 hook): Likewise. Rename to ...
7978 (grub_fill_multiboot_mmap_iter): ... this.
7979 * grub-core/loader/powerpc/ieee1275/linux.c
7980 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7981 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7982 Likewise. Rename to ...
7983 (alloc_phys_choose): ... this.
7984 (determine_phys_base: get_physbase): Likewise.
7985 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7986 find_hook): Likewise.
7987 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7988 (malloc_hook: count_hook): Likewise.
7989 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7990 Likewise. Rename to ...
7991 (lower_hook): ... this.
7992 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7993 (upper_hook): ... this.
7994 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7995 (post64_hook): ... this.
7996 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7997 Likewise. Rename to ...
7998 (lower_hook): ... this.
7999 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8000 (upper_hook): ... this.
8001 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8002 (grub_mmap_iterate: fill_hook): Likewise.
8003 (fill_mask): Pass addr and mask within a single struct.
8004 (grub_cmd_badram: hook): Make static instead of nested. Rename
8005 to ...
8006 (badram_iter): ... this.
8007 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8008 (cutmem_iter): ... this.
8009
22099030
VS
80102013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8011
8012 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8013 delimit path in strings using quotes.
8014 * util/getroot.c (grub_guess_root_devices): Likewise.
8015 (grub_make_system_path_relative_to_its_root): Likewise.
8016 * util/grub-probe.c (probe): Likewise.
8017 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8018 (xrealpath): Likewise.
8019
4a9950ec
VS
80202013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8021
8022 Fix compilation with older compilers.
8023
8024 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8025 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8026 declarations.
8027 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8028 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8029 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8030 identifier with b.
8031 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8032 * include/grub/crypto.h: Add type defines.
8033 * util/import_gcrypth.sed: Remove duplicate type defines.
8034
adcc6020
VS
80352013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8036
8037 New command list_trusted.
8038
8039 * grub-core/commands/verify.c (grub_cmd_list): New function.
8040
a4528937
CW
80412013-01-13 Colin Watson <cjwatson@ubuntu.com>
8042
8043 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8044 info message.
8045
ca3a7446
CW
80462013-01-13 Colin Watson <cjwatson@ubuntu.com>
8047
8048 Remove nested functions from PCI iterators.
8049
8050 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8051 passed to hook. Update all callers to pass appropriate hook data.
8052 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8053 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8054 Remove NESTED_FUNC_ATTR from here and from all users.
8055 (grub_pci_iterate): Update prototype.
8056 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8057 instead of nested. Rename to ...
8058 (grub_cs5536_find_iter): ... this.
8059 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8060 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8061 Likewise.
8062 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8063 Likewise.
8064 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8065 Likewise.
8066 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8067 Likewise.
8068 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8069 * grub-core/video/radeon_fuloong2e.c
8070 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8071 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8072 find_card): Likewise.
8073 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8074 Likewise.
8075
f8e98fee
VS
80762013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8077
8078 * grub-core/commands/verify.c: Mark messages for translating.
8079
055b36b6
VS
80802013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8081
8082 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8083 fatal.
8084
f7ff879b
VS
80852013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8086
8087 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8088 fatal.
8089
80902013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
8091
8092 * autogen.sh: Do not try to delete nonexistant files.
8093 * util/import_gcrypth.sed: Add some missing header removals.
8094
01323d49
CW
80952013-01-12 Colin Watson <cjwatson@ubuntu.com>
8096
8097 Clean up dangling references to grub-setup.
8098 Fixes Ubuntu bug #1082045.
8099
8100 * docs/grub.texi (Images): Refer generally to grub-install rather
8101 than directly to grub-setup.
8102 (Installing GRUB using grub-install): Remove direct reference to
8103 grub-setup.
8104 (Device map) Likewise.
8105 (Invoking grub-install): Likewise.
8106 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8107 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8108 * util/grub-install.in (usage): Likewise.
8109
8110 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8111 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8112 grub-setup.
8113 * configure.ac: Remove grub_setup output variable.
8114
8115 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8116 to grub-bios-setup.
8117 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8118 grub-setup to grub-sparc64-setup.
8119
5e3b8dcb
VS
81202013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8121
8122 Import gcrypt public-key cryptography and implement signature checking.
8123
535714bd
VS
81242013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8125
8126 * grub-core/fs/ntfs.c: Ue more appropriate types.
8127 * grub-core/fs/ntfscomp.c: Likewise.
8128 * include/grub/ntfs.h: Likewise.
8129
3e4f3566
VS
81302013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8131
8132 Support Apple FAT binaries on non-Apple platforms.
8133
8134 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8135 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8136 Likewise.
8137 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8138 Apple FAT binaries.
8139
4dedb13f
VS
81402013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8141
8142 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8143 sector devices.
8144
f8861eaf
CW
81452013-01-07 Colin Watson <cjwatson@ubuntu.com>
8146
8147 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8148 explicitly zeroing elements.
8149 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8150 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8151 of elements in a structure already allocated using grub_zalloc.
8152 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8153
86065b0a
CW
81542013-01-07 Colin Watson <cjwatson@ubuntu.com>
8155
8156 * docs/grub.texi (grub_cpu): New subsection.
8157 (grub_platform): Likewise.
8158
c6f1e92f
VS
81592013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8160
8161 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8162
f797ec85
VS
81632013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8164
8165 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8166 divisions.
8167
033d0b4b
VS
81682013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8169
8170 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8171 * grub-core/fs/ntfscomp.c: Likewise.
8172 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8173 (grub_ntfs_comp): Likewise.
8174
21d1b9a0
VS
81752013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8176
8177 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8178 Rename to ...
8179 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8180 of groups_per_block. All users updated.
8181
10ca8645
VS
81822013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8183
8184 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8185 grub_error properly.
8186 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8187 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8188
a4c3ed4c
VS
81892013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8190
8191 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8192 always in /boot/zfs.
8193 Reported by: Yuta Satoh.
8194
0b716507
YS
81952013-01-03 Yuta Satoh <nigoro>
8196
8197 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8198 ${grub_probe}
8199
00c05e22
VS
82002013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8201
8202 * configure.ac: Extend -Wno-trampolines to host.
8203
dadddb76
VS
82042013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8205
8206 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8207 entry->len = 0.
8208
54ce53ca
CW
82092013-01-03 Colin Watson <cjwatson@ubuntu.com>
8210
8211 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8212 (Invoking grub-script-check): Likewise.
8213
8912efca
CW
82142013-01-03 Colin Watson <cjwatson@ubuntu.com>
8215
8216 * docs/grub.texi (Invoking grub-mount): New section.
8217 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8218
c3fc8394
CW
82192013-01-02 Colin Watson <cjwatson@ubuntu.com>
8220
8221 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8222 test failures, so that a failing unit test correctly causes 'make
8223 check' to fail.
8224
45d26abb
CW
82252013-01-02 Colin Watson <cjwatson@ubuntu.com>
8226
8227 Fix failing printf test.
8228
8229 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8230 '$' in the correct order when collecting type information.
8231
971dd2c6
CW
82322013-01-02 Colin Watson <cjwatson@ubuntu.com>
8233
8234 * docs/grub.texi (configfile): Explain environment variable
8235 handling.
8236 (source): New section.
8237 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8238
5c67ea6c
CW
82392012-12-31 Colin Watson <cjwatson@ubuntu.com>
8240
8241 Remove several trivially-unnecessary uses of nested functions.
8242
8243 * grub-core/commands/i386/pc/sendkey.c
8244 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8245 instead of nested.
8246 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8247 Rename to ...
8248 (legacy_file_getline): ... this.
8249 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8250 Likewise.
8251 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8252 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8253 to ...
8254 (probe_dummy_iter): ... this.
8255 * grub-core/kern/i386/coreboot/mmap.c
8256 (grub_linuxbios_table_iterate: check_signature): Likewise.
8257 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8258 check_varstate): Likewise. Mark inline.
8259 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8260 an additional parameter.
8261 (find_long: fnd_long): Likewise. Pass two additional parameters.
8262 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8263 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8264 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8265 Likewise. Rename to ...
8266 (grub_cmos_find_port_iter): ... this.
8267 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8268 Rename to ...
8269 (find_rtc_iter): ... this.
8270
8271 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8272 function directly into the function body, since it is only called
8273 once.
8274
33a68ac6
CW
82752012-12-30 Colin Watson <cjwatson@ubuntu.com>
8276
8277 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8278 __attribute__ ((unused)).
8279 * grub-core/video/bochs.c (find_card): Likewise.
8280 * grub-core/video/cirrus.c (find_card): Likewise.
8281 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8282 * grub-core/video/sis315pro.c (find_card): Likewise.
8283 * grub-core/video/sm712.c (find_card): Likewise.
8284
608b647a
CW
82852012-12-28 Colin Watson <cjwatson@ubuntu.com>
8286
8287 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8288 Fixes Savannah bug #37821.
8289
fd49ceb3
CW
82902012-12-28 Colin Watson <cjwatson@ubuntu.com>
8291
8292 Apply program name transformations at build-time rather than at
8293 run-time. Fixes Debian bug #696465.
8294
8295 * acinclude.m4 (grub_TRANSFORM): New macro.
8296 * configure.ac: Create output variables with transformed names for
8297 most programs.
8298 * util/bash-completion.d/grub-completion.bash.in: Use
8299 pre-transformed variables for program names.
8300 * util/grub-install.in: Likewise.
8301 * util/grub-kbdcomp.in: Likewise.
8302 * util/grub-mkconfig.in: Likewise.
8303 * util/grub-mkconfig_lib.in: Likewise.
8304 * util/grub-mknetdir.in: Likewise.
8305 * util/grub-mkrescue.in: Likewise.
8306 * util/grub-mkstandalone.in: Likewise.
8307 * util/grub-reboot.in: Likewise.
8308 * util/grub-set-default.in: Likewise.
8309 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8310 * tests/util/grub-shell-tester.in: Remove unused assignment.
8311 * tests/util/grub-shell.in: Likewise.
8312 * util/grub.d/00_header.in: Likewise.
8313
7024b3c0
CW
83142012-12-28 Colin Watson <cjwatson@ubuntu.com>
8315
8316 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8317
8318 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8319 HAVE_RAW_DECL_GETS.
8320 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8321
e3501b13
VS
83222012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8323
8324 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8325 Reported by: Eriks Latosheks <foresterlv>.
8326
b40c88a9
VS
83272012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8328
8329 * docs/grub.texi (Network): Update instructions on generating netboot
8330 image.
8331
ce96d01c
VS
83322012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8333
8334 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8335 around device name if necessarry.
8336
0f596201
PFS
83372012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8338
8339 * util/grub-install.in: Follow the symbolic link parameter added
8340 to the file command.
8341
600d5bdb
AB
83422012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8343
8344 * util/grub-install.in: Remove stale TODO.
8345
64ebd2f4
PFS
83462012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8347
8348 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8349 dynamic allocation for the bootpath buffer.
8350
74b2fe3e
DTB
83512012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8352
8353 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8354 window too small.
8355
969b804f
VS
83562012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8357
8358 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8359 argument rather than font name. All users updated.
8360 (grub_gfxterm_set_window): Likewise.
8361
b9f5ebd6
VT
83622012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8363
8364 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8365 from working.
8366
258f43b7
VS
83672012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8368
8369 * util/getroot.c (convert_system_partition_to_system_disk): Support
8370 nbd disks.
8371
cc1ce5f9
VS
83722012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8373
8374 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8375 infinite loop on corrupted FS.
8376
e77a16ca
VS
83772012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8378
8379 Fix big-endian mtime.
8380
8381 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8382 together sec and usec.
8383 (grub_ufs_dir): Use correct byteswapping for UFS time.
8384
d9c48c7b
VS
83852012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8386
8387 Support big-endian UFS1.
8388
8389 * Makefile.util.def (libgrubmods): Add ufs_be.c
8390 * grub-core/Makefile.core.def (ufs1_be): New module.
8391 * grub-core/fs/ufs_be.c: New file.
8392 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8393 the file.
8394
2f9f40ba
LL
83952012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8396
8397 * include/grub/types.h: Fix functionality unaffecting typo in
8398 GRUB_TARGET_WORDSIZE conditional macro.
8399
48ff0889
PFS
84002012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8401
8402 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8403
03711240
GS
84042012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8405
8406 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8407 that /netbsd appears first (when it exists).
8408
a31b11bd
CJ
84092012-10-12 Christoph Junghans <ottxor@gentoo.org>
8410
8411 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8412 Fixes Savannah bug #37558.
8413
e8a5d5d4
CW
84142012-10-12 Colin Watson <cjwatson@ubuntu.com>
8415
8416 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8417 description of extract_entries_configfile.
8418
84192012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
8420
8421 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8422 preferred_address.
8423 (grub_cmd_linux): Likewise.
8424 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8425 preferred_lifetime. Update all users.
8426
288c757d
CW
84272012-09-26 Colin Watson <cjwatson@ubuntu.com>
8428
8429 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8430 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8431
0d35da3f
CW
84322012-09-26 Colin Watson <cjwatson@ubuntu.com>
8433
8434 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8435 errors from grub-probe to /dev/null, not stdout.
8436
b78c3127
VS
84372012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8438
8439 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8440 sector 1.
8441
473959f0
CW
84422012-09-24 Colin Watson <cjwatson@ubuntu.com>
8443
8444 * util/grub-install.in: Make the error message if $source_dir
8445 doesn't exist more useful.
8446
794c8c33
CW
84472012-09-22 Colin Watson <cjwatson@ubuntu.com>
8448
8449 Fix grub-emu build on FreeBSD.
8450
8451 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8452 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8453 headers on Linux.
8454 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8455 implementation is currently Linux-specific.
8456 * util/getroot.c (exec_pipe): Define only on Linux or when either
8457 libzfs or libnvpair is unavailable.
8458 (find_root_devices_from_poolname): Remove unused path variable.
8459
86d08fdb
CW
84602012-09-19 Colin Watson <cjwatson@ubuntu.com>
8461
8462 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8463 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8464 should fit before end == 63.
8465
735abf54
CW
84662012-09-19 Colin Watson <cjwatson@ubuntu.com>
8467
8468 * util/grub-setup.c (write_rootdev): Remove unused core_img
8469 parameter. Update all callers.
8470 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8471 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8472 GRUB_SETUP_BIOS.
8473
140acd3c
VS
84742012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8475
8476 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8477 (grub_add_tab): New function.
8478 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8479 * util/grub.d/10_illumos.in: Likewise.
8480 * util/grub.d/10_kfreebsd.in: Likewise.
8481 * util/grub.d/10_linux.in: Likewise.
8482 * util/grub.d/10_netbsd.in: Likewise.
8483 * util/grub.d/10_windows.in: Likewise.
8484 * util/grub.d/10_xnu.in: Likewise.
8485 * util/grub.d/20_linux_xen.in: Likewise.
8486 * util/grub.d/30_os-prober.in: Likewise.
8487
7ddffdad
VS
84882012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8489
8490 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8491 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8492 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8493 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8494 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8495 ieee1275-nocursor.
8496 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8497 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8498
4e092454
VS
84992012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8500
8501 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8502 le-conversion.
8503 Reported by: BURETTE, Bernard.
8504
735abf54 85052012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
8506
8507 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8508 from comment.
8509
dfd39dbd
CW
85102012-09-14 Colin Watson <cjwatson@ubuntu.com>
8511
8512 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8513 IEEE1275 machines. Fixes powerpc-emu compilation.
8514 * include/grub/terminfo.h: Likewise.
8515
3bfa763c
VS
85162012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8517
8518 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8519 a const pointer.
8520 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8521 const pointer.
8522 (efiemu_set_variable): Make vendor_guid a const pointer.
8523
250e475b
VS
85242012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8525
8526 Don't require grub-mkconfig_lib to generate manpages for programs.
8527
8528 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8529 dependencies, don't add grub-mkconfig_lib.
8530 (program): Pass empty adddeps.
8531 (script): Pass grub-mkconfig_lib as adddeps.
8532
592fd0e4
VS
85332012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8534
8535 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8536 * util/getroot.c (grub_find_device): Likewise.
8537 (get_mdadm_uuid): Likewise.
8538 (grub_util_is_imsm): Likewise.
8539 (grub_util_pull_device): Likewise.
8540 * util/grub-probe.c (probe): Likewise.
8541
801a3027
BG
85422012-09-10 Benoit Gschwind <gschwind>
8543
8544 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8545 (devs): Add devpath_8.
8546
c5052c81
PJ
85472012-09-08 Peter Jones <pjones@redhat.com>
8548
8549 * grub-core/Makefile.core.def (efifwsetup): New module.
8550 * grub-core/commands/efi/efifwsetup.c: New file.
8551 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8552 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8553 New define.
8554 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8555
8e832f71
JS
85562012-09-05 Jiri Slaby <jslaby@suse.cz>
8557
8558 * configure.ac: Add SuSe path.
8559
f0f55752
CW
85602012-09-05 Colin Watson <cjwatson@ubuntu.com>
8561
8562 * NEWS: Fix typo.
8563
ecadc4c2
CW
85642012-09-05 Colin Watson <cjwatson@ubuntu.com>
8565
8566 * util/import_gcry.py: Sort cipher_files, to make build system
8567 generation more deterministic.
8568
64498f25
VS
85692012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8570
8571 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8572 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8573 (grub_set_datetime): Likewise.
8574
9cc836a2
VS
85752012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8576
8577 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8578 warnings.
8579
bcfcea01
VS
85802012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8581
8582 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8583
a4099485
VS
85842012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8585
8586 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8587
265c162a
CW
85882012-09-04 Colin Watson <cjwatson@ubuntu.com>
8589
8590 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8591 required for checkouts from bzr, but it may be useful for users or
8592 distributors wishing to update translations against a tarball
8593 distribution, and it can be helpful for the tarball to be a superset
8594 of what's in bzr.
8595
3d171e95
CW
85962012-09-04 Colin Watson <cjwatson@ubuntu.com>
8597
8598 * Makefile.am (EXTRA_DIST): Add
8599 grub-core/tests/boot/linux.init-mips.S,
8600 grub-core/tests/boot/linux.init-ppc.S, and
8601 grub-core/tests/boot/linux-ppc.cfg.
8602
f2c2503e
CW
86032012-09-04 Colin Watson <cjwatson@ubuntu.com>
8604
8605 * grub-core/mmap/mips/loongson: Remove empty directory.
8606
86072012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
8608
8609 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8610 gone.
8611
ab2163d5
CW
86122012-09-04 Colin Watson <cjwatson@ubuntu.com>
8613
8614 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8615 grub-sparc64-setup.
8616
ce938140
GS
86172012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8618
8619 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8620
529f58a5
GS
86212012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8622
8623 * po/POTFILES.in: Regenerated.
8624
16cf79e9
GS
86252012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8626
8627 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8628 (NetBSD): New subsection.
8629
39b27f1e 86302012-07-22 Ales Nesrsta <starous@volny.cz>
8631
8632 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8633 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8634
a885261b
VS
86352012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8636
8637 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8638 * util/grub.d/10_hurd.in: Add missing quoting.
8639 * util/grub.d/10_illumos.in: Likewise.
8640 * util/grub.d/10_kfreebsd.in: Likewise.
8641 * util/grub.d/10_linux.in: Likewise.
8642 * util/grub.d/20_linux_xen.in: Likewise.
8643
7bd29c01
VS
86442012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8645
8646 New command `lsefi'.
8647
8648 * grub-core/Makefile.core.def (lsefi): New module.
8649 * grub-core/commands/efi/lsefi.c: New file.
8650 * include/grub/efi/api.h: Add more GUIDs.
8651
ac625d8f
VS
86522012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8653
8654 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8655 (grub_bsd_elf32_hook): Likewise.
8656 (grub_bsd_elf64_size_hook): Likewise.
8657 (grub_bsd_elf64_hook): Likewise.
8658 (grub_bsd_load_elf): Likewise.
8659
e73bb801
VS
86602012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8661
8662 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8663 if hash function is unavailable.
8664 (dec_stream_header): Likewise.
8665
e81db8b5
VS
86662012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8667
8668 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8669 filter state.
8670
d187a1c3
VS
86712012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8672
8673 Fix coreboot compilation.
8674
8675 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8676 (grub_vga_text_init_real): ... this.
8677 (grub_vga_text_fini): Rename to ...
8678 (grub_vga_text_fini_real): ... this.
8679
91a05f64
VS
86802012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8683
6af96df7
VS
86842012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8685
8686 * grub-core/lib/legacy_parse.c: Support clear and testload.
8687
4d569e12
VS
86882012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8689
8690 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8691
073b57bb
VS
86922012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8693
8694 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8695
a706f4cc
VS
86962012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8697
8698 * grub-core/net/tftp.c (ack): Fix endianness problem.
8699 (tftp_receive): Likewise.
8700 Reported by: Michael Davidsaver.
8701
e7850aa9
VS
87022012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8703
8704 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8705
87062012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8707
8708 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8709 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8710 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8711
35692881
VS
87122012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8713
8714 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8715 efi_mmap_size.
8716 Reported by: Stuart Hayes.
8717
c35fc5bd
VS
87182012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8721
8722 * grub-core/Makefile.core.def (mda_text): New module.
8723 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8724 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8725 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8726 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8727 here.
8728 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8729 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8730 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8731 here.
8732 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8733 to ..
8734 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8735 ... here
8736 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8737 here.
8738 * grub-core/term/i386/vga_common.c: Removed.
8739 * include/grub/i386/vga_common.h: Likewise.
8740 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8741 (grub_vga_cr_bw_read): Likewise.
8742 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8743 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8744 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8745 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8746 grub_vga_cr_read/grub_vga_cr_write.
8747 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8748
5f91f701
VS
87492012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8750
8751 * configure.ac: Bump version to 2.00.
8752 * grub-core/normal/main.c (features): Add feature_200_final.
8753
0c4f85f6
VS
87542012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
87552012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8756
8757 * NEWS: Fix unclarity and language mistakes.
8758
f923ad22
VS
87592012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8762 additional size to 3 pages.
8763 Reported by: Stuart Hayes.
8764
d22029ba
VS
87652012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8766
8767 * NEWS: Add 2.00 entry.
8768
58eee08f
VS
87692012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8772 put explicit "/" for empty path.
8773 (wildcard_expand): Improve dprintf.
8774
c59bdff7
VS
87752012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8776
8777 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8778 it's equal to currnode. This can happen with "" symlink.
8779
5e6a440a
YB
87802012-06-27 Yves Blusseau <blusseau@zetam.org>
8781
8782 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8783 echo shell command by printf command.
8784
73a68bcb
VS
87852012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8786
8787 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8788 the value returned by firmware is the maximal position, not diumension.
8789 (grub_terminfo_output_state): Use a more sane fallback.
8790
392a603b
VS
87912012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8792
8793 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8794
42d0867f
VS
87952012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8796
8797 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8798 frequency to 150 MHz.
8799
489509f4
VS
88002012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8801
8802 Apple fixes.
8803
8804 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8805 __APPLE_
8806 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8807 definition.
8808 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8809
9f3fc883
VS
88102012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8811
8812 Handle slash in HFS label.
8813
8814 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8815 (grub_hfs_dir): Tanslate slash.
8816 (grub_hfs_label): Don't translate slash.
8817
54853fd7
VS
88182012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8819
8820 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8821 network protocol listing since it introduces problematic dependency on
8822 net module.
8823
4dc02ddf
VS
88242012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8825
8826 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8827
c50c867d
VS
88282012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8829
8830 Init video early on yeeloong to avoid being rebooted by watchdog.
8831
8832 * grub-core/Makefile.am (gensm712): New target.
8833 (sm712_start.S): Likewise.
8834 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8835 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8836 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8837 description.
8838 * include/grub/vga.h: Move registry definitions to...
8839 * include/grub/vgaregs.h: ... here.
8840
5f92c8a1
VS
88412012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8842
8843 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8844 signedness.
8845
e9e6f111
VS
88462012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8847
8848 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8849 platforms with firmware disk drivers in the core.
8850
754ad9eb
VS
88512012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8852
8853 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8854 informative verbose message.
8855 (read_lv): Handle 64-bit segment size.
8856
315654c2
VS
88572012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8858
8859 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8860
fb022c79
VS
88612012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8862
8863 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8864 character but still remove trainling spaces.
8865 (grub_fat_label): Ignore archive flag.
8866
8645f72c
VS
88672012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8868
8869 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8870 cast between linux_kernel_header and linux_kernel_params.
8871
36498496
VS
88722012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8873
8874 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8875 type for size.
8876 (grub_raid6_recover_func_t): Likewise.
8877 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8878 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8879
0b5ea6b8
VS
88802012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8881
8882 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8883
650cfcfe
GS
88842012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8885
8886 Fix overflow.
8887
8888 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8889 [__NetBSD__]: Add explicit cast before bitshift.
8890
8a4d6a44
VS
88912012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 * configure.ac: Bump to 2.00~rc1.
8894
2fb97ed3
VS
88952012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8896
8897 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8898 half of $a0.
8899
1fa097dc
VS
89002012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
89012012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8902
8903 * docs/grub.texi: Fix search syntax.
8904 (Multi-boot manual config): Put msdos rather than GPT example.
8905 Grammar corrections.
8906
c890ba78
VS
89072012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8908
8909 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8910
0f92dca7
VS
89112012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8912
8913 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8914
3988c4a0
VS
89152012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8916
8917 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8918 message on double free. Put the value of magic in case of mismatch.
8919
9e86d4c5
VS
89202012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8921
8922 Speed-up video on yeeloong.
8923
8924 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8925 add cached_ptr.
8926 (grub_video_sm712_video_fini): Unmap cached_ptr.
8927 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8928 (grub_video_sm712_set_active_render_target): Removed.
8929 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8930 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8931 sync caches.
8932
ed24c312
VS
89332012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8934
8935 Avoid flushing the same line multiple times on loongson.
8936
8937 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8938 Step in 32 bytes and not 1 byte.
8939 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8940 Likewise.
8941
d1718e7d
VS
89422012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8943
8944 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8945 subvolumes.
8946
982f1909
VS
89472012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8948
8949 Implement flow control for http.
8950
8951 * grub-core/net/http.c (parse_line): Handle response 206.
8952 (http_receive): Stall if too many packets are in the queue.
8953 (http_establish): Fix range header.
8954 (http_seek): Fix double free.
8955 (http_close): Likewise.
8956 (http_packets_pulled): New function.
8957 (grub_http_protocol): Set http_seek
8958 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8959 (ack_real): Set window depending on i_stall.
8960 (grub_net_send_tcp_packet): Likewise.
8961 (grub_net_tcp_stall): New function.
8962 (grub_net_tcp_unstall): Likewise.
8963 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8964 (grub_net_tcp_unstall): Likewise.
8965
bd407d6e
VS
89662012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8967
8968 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8969
c7564b8e
VS
89702012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8971
8972 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8973
a3706162
VS
89742012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8975
8976 * tests/util/grub-shell.in: Fix a typo.
8977
b27069e0
VS
89782012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8979
8980 Implement flow control for tftp.
8981
8982 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8983 packets but stop only if stop condition is satisfied.
8984 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8985 `stall' instead of `eof' as stop condition.
8986 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8987 (http_err): Likewise.
8988 * grub-core/net/tftp.c (ack): Replace the first argument with data
8989 instead of socket.
8990 (tftp_receive): Stall if too many packets are in wait queue.
8991 (tftp_packets_pulled): New function.
8992 (grub_tftp_protocol): Set packets_pulled.
8993 * include/grub/net.h (grub_net_packets): New field count.
8994 (grub_net_put_packet): Increment count.
8995 (grub_net_remove_packet): Likewise.
8996 (grub_net_app_protocol): New field `packets_pulled'.
8997 (grub_net): New field `stall'.
8998
6b9cfac6
VS
89992012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9000
9001 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9002 sync part to handle them.
9003
f35abd81
VS
90042012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9007 * grub-core/net/drivers/ieee1275/ofnet.c
9008 (grub_ieee1275_net_config_real): Likewise.
9009
0e7ec820
VS
90102012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9011
9012 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9013 the direct route for server/gateway.
9014
9d611a31
VS
90152012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9016
9017 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9018 IP address to server name since we may not hame the DNS.
9019
418f45ab
VS
90202012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9021
9022 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9023 freeing random buffer on failure.
9024 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9025
44a0efc1
VS
90262012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9029
531e2241
VS
90302012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9031
9032 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9033 reserved bytes.
9034 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9035 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9036 Handle malloc error correctly.
9037
cde393c9
VS
90382012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9039
9040 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9041 blocks.
9042
538478d0
VS
90432012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9044
9045 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9046 increment.
9047
9b55efe0
VS
90482012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9049
9050 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9051 none is explicitly specified.
9052
9eb832c3
VS
90532012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9054
9055 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9056 while reallocating.
9057
d6b7c7c9
VS
90582012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 Respect netmask from bootp/dhcp.
9061
9062 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9063 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9064 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9065 into ...
9066 (grub_net_add_ipv4_local): ... this.
9067 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9068 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9069 (grub_net_add_ipv4_local): New proto.
9070
67caf9eb
VS
90712012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9072
9073 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9074 determining EFI memory map size.
9075
43657558
VS
90762012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9077
9078 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9079
eb6d0dd3
VS
90802012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9081
9082 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9083 when looking for partition separator.
9084
31230544
VS
90852012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9088 Escape commas.
9089
918a2517
VS
90902012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 Restructure FAT driver to avoid hook in label reading as it hits a
9093 GCC bug.
9094
9095 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9096 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9097 (grub_fat_iterate_dir): Split into ...
9098 (grub_fat_iterate_init): ... this, ...
9099 (grub_fat_iterate_fini): ... this, ...
9100 (grub_fat_iterate_dir_next): ... and this. All users updated.
9101
9f1d654e
VS
91022012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9103
9104 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9105 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9106 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9107 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9108 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9109 New fields last_key and last_key_time.
9110 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9111 extended key-esc into extended key-extended key.
9112
52f0f643
VS
91132012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9114
9115 Avoid unnecessary memcpy of whole video buffer.
9116
9117 * grub-core/video/fb/video_fb.c (dirty): New struct.
9118 (framebuffer): Add members current_dirty and previous_dirty.
9119 (dirty): New function.
9120 (grub_video_fb_fill_rect): Update dirty.
9121 (common_blitter): Likewise.
9122 (grub_video_fb_scroll): Likewise.
9123 (doublebuf_blit_update_screen): Copy only dirty part.
9124 (doublebuf_pageflipping_update_screen): Likewise.
9125 (grub_video_fb_doublebuf_blit_init): Init dirty.
9126 (doublebuf_pageflipping_init): Likewise.
9127 (grub_video_fb_setup): Likewise.
9128
e169a180
VS
91292012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9130
9131 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9132 poll rate.
9133
48556879
VS
91342012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9135
9136 Fix wildcard regexp dot and other special characters handling.
9137 Reported by: Robert Mabee.
9138
9139 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9140 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9141 (split_path): Trigger expansion on '?'.
9142 (unescape): New function.
9143 (wildcard_expand): Unescape parts copied without globbing.
9144 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9145 (grub_script_arglist_to_argv): Don't unescape expansions.
9146
0494408e
VS
91472012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 * include/grub/net.h (grub_net_card): New member txbufsize.
9150 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9151 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9152 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9153 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9154 txbufsize.
9155 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9156 compatible property to check for macs. Set
9157 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9158 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9159 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9160 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9161 (send_card_buffer): Use txbuf.
9162 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9163 nested function out of the parent while on it.
9164
cc35fe8f
VS
91652012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9166
9167 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9168 presence check.
9169 (grub_ieee1275_net_config_real): Fix config pointer.
9170
970a0a09
VS
91712012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9172
9173 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9174 filename parsing to non-block devices.
9175
3e19bf87
VS
91762012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9177
9178 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9179
c62d1a0c
VS
91802012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9181
9182 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9183 All users updated.
9184
ef76bec3
VS
91852012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9186
9187 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9188 UUID search command even if hints probing failed.
9189
91902012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
9191
9192 * po/POTFILES.in: Regenerated.
9193
70aaf305
VS
91942012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 Speed-up video on fuloong.
9197
9198 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9199 New function.
9200 (grub_pci_device_unmap_range): Handle non-cached address.
9201 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9202 add direct_ptr.
9203 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9204 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9205 (grub_video_sis315pro_set_active_render_target): Removed.
9206 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9207 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9208 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9209 sync caches.
9210 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9211 New proto.
9212
10400f0b
VS
92132012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 * docs/grub.texi (Multi-boot manual config): New section.
9216
ba67e2c6
VS
92172012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9218
9219 Avoid slow read-back from VRAM.
9220
9221 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9222 Move from here ...
9223 * grub-core/video/fb/video_fb.c
9224 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9225 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9226 (front_target): Remove front_target. Add pages.
9227 (grub_video_fb_init): Skip setting front_pages.
9228 (grub_video_fb_fini): Likewise.
9229 (doublebuf_blit_update_screen): Use pages.
9230 (grub_video_fb_doublebuf_blit_init): Likewise.
9231 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9232 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9233 (grub_video_fb_setup): Prefer doublebuffing.
9234
377c98cb
VS
92352012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9236
9237 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9238 gzio.
9239
eac49cff
VS
92402012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9241
9242 Add loongson tests.
9243
9244 * tests/util/grub-shell.in: Handle loongson.
9245 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9246 drivers.
9247 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9248 Reboot instead of shutdown if REBOOT is defined.
9249
0321415e
VS
92502012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9251
9252 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9253 sized ports since unlike on real hardware qemu supports only 32-bit
9254 regs.
9255
3f2bdd8f
VS
92562012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9257
9258 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9259 * util/grub-mkrescue.in: Handle loongson.
9260
29a049c9
VS
92612012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9262
9263 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9264 Set is_part appropriately.
9265 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9266 names. Canonicalize partition without full disk.
9267
4abde346
VS
92682012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9269
9270 Revert usb-quiesce since it's wrong.
9271
9272 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9273 (grub_ofdisk_init): Don't do quiesce.
9274
61f1d93b
VS
92752012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9276
9277 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9278 PowerMac workaround to Xserves as well.
9279 Information supplied by: Benjamin Herrenschmidt.
9280
a09eb541
VS
92812012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9282
9283 Don't assume that beginning address is also the entry point on ppc.
9284
9285 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9286 (grub_linux_boot): Use linux_entry.
9287 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9288 (grub_linux_load64): Likewise.
9289
505b3c9b
VS
92902012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9291
9292 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9293
cbe0b4ef
VS
92942012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9295
9296 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9297 needlessly lose the console.
9298
3006e981
VS
92992012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9300
9301 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9302 space.
9303
4e5a96b0
VS
93042012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9305
7da036bb
VS
9306 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9307 than current grub_get_rtc() not implemented when booted with
9308 coreboot without TSC.
9309
9310 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9311 Add machine/time.h to kernel headers on loongson.
9312 * grub-core/Makefile.core.def (kernel): Remove
9313 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9314 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9315 (grub_get_rtc): Likewise.
9316 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9317 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9318 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9319 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9320 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9321 rather than installing known non-working time source.
9322 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9323 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9324 * include/grub/time.h: Don't include machine/time.h.
9325 * include/grub/efi/time.h: Removed.
9326 * include/grub/i386/efi/time.h: Likewise.
9327 * include/grub/i386/ieee1275/time.h: Likewise.
9328 * include/grub/powerpc/ieee1275/time.h: Likewise.
9329 * include/grub/sparc64/ieee1275/time.h: Likewise.
9330 * include/grub/x86_64/efi/time.h: Likewise.
9331
93322012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
9335
9336 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9337 value.
9338 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9339 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9340 with dotless variants when any combining above is present.
9341
5561c22d
VS
93422012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9343
9344 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9345 text and not binary.
9346
96f7e60e
VS
93472012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9348
9349 Stop polling as soon as we have the packet we were waiting for.
9350
9351 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9352 All users updated.
9353 * grub-core/net/arp.c (have_pending): New var.
9354 (pending_req): Likewise.
9355 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9356 stop indicator.
9357 (grub_net_arp_receive): Set have_pending.
9358 * grub-core/net/dns.c (recv_data): New field stop.
9359 (recv_hook): Set stop.
9360 (grub_net_dns_lookup): Init stop and use as stop condition.
9361 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9362 condition.
9363 * grub-core/net/net.c (grub_net_poll_cards): New argument
9364 stop_condition. Stop when it goes true.
9365 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9366 indicator.
9367 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9368
3e747239
VS
93692012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 Keep TX and RX buffers on EFI rather than always allocate new ones.
9372
9373 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9374 card. All users updated.
9375 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9376 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9377 (get_card_packet): Likewise.
9378 (grub_efinet_findcards): Init new fields.
9379
f695e99a
VS
93802012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9381
9382 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9383 compilation error on sparc64.
9384
9e5e66d1
VS
93852012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 Use ITC on IA64 rather than broken routine based on daytime.
9388
9389 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9390 ia64.
9391 (grub_get_rtc) [__ia64__]: Likewise.
9392 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9393 (get_itc): New function.
9394 (grub_rtc_get_time_ms): Likewise.
9395 (grub_machine_init): Calibrate ITC.
9396 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9397 Keep only on non-ia64. Don't export since it's broken and used only
9398 if TSC is unavailable.
9399
a1767404
VS
94002012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9401
9402 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9403 even if it's used.
9404 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9405 Skip if parent is unused.
9406
34b2bced
VS
94072012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9410
5e619f40
VS
94112012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9412
9413 Fix wildcard escaping.
9414
9415 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9416 * grub-core/script/execute.c (wildcard_escape): .. to here.
9417 Don't escape dot.
9418 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9419 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9420 Don't escape dot.
9421 * grub-core/script/execute.c (gettext_append): Always escape.
9422 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9423 * grub-core/script/yylex.l: Don't cut away the escaping.
9424 * tests/grub_script_echo1.in: Add tests with wildcard.
9425
c8ca5855
VS
94262012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9427
9428 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9429 (ftdi_hw_configure): Likewise.
9430 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9431 define.
9432 (real_config): Handle 1.5 stop bits.
9433 (pl2303_hw_configure): Likewise.
9434
7183452c
VS
94352012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9436
9437 * Makefile.am: Add ppc linux bootcheck.
9438 * grub-core/tests/boot/linux-ppc.cfg: New file.
9439 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9440
f57c84cd
VS
94412012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9442
9443 * tests/grub_script_expansion.in: Skip network protocols.
9444
ecfc6207
VS
94452012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9446
9447 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9448
8d03d284
VS
94492012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9452 --rom-directory.
9453 Add -graft-points.
9454
61c42af0
VS
94552012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9456
9457 ESCC serial driver for conducting sautomated tests in qemu.
9458 Not tested on real hardware.
9459
9460 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9461 * grub-core/term/ieee1275/escc.c: New file.
9462 * grub-core/Makefile.core.def (escc): New module.
9463
08fd1291
VS
94642012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9465
9466 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9467 invalid on error.
9468 (serial_hw_fetch): Don't read invalid handle.
9469 (serial_hw_put): Don't write into invalid handle.
9470
08dafeea
VS
94712012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9472
9473 Add a 1.5 stop bits value.
9474
9475 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9476 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9477 GRUB_SERIAL_STOP_BITS_1_5.
9478
9068fdcf
VS
94792012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9482 value rather than let it uninited.
9483
f4d5820f
VS
94842012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 * grub-core/commands/wildcard.c (+check_file): New function.
9487 (wildcard_expand): Don't expand to non-existing files, expand with
9488 suffix and not attempt to expand if not needed.
9489
3d2de9a7
VS
94902012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9491
9492 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9493 out of partitions containing other partitions.
9494
c5c81ff9
VS
94952012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9496
9497 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9498 on some qemu versions with GRUB.
9499
9500 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9501 define.
9502 (grub_openbsd_bootarg_pcibios): New struct.
9503 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9504 Add PCIINFO.
9505
08a14e0b
VS
95062012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9507
9508 * tests/util/grub-shell.in: Trim firmware output on EFI.
9509
cede3ca3
VS
95102012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9511
9512 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9513 and coreboot since it's already in kernel.
9514
558d3a60
VS
95152012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9516
9517 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9518 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9519 to here. New return value start. All users updated.
9520 Recursively scan linear mappings.
9521 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9522 proto.
9523 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9524 Use grub_util_get_dm_node_linear_info.
9525 * util/getroot.c (convert_system_partition_to_system_disk): Use
9526 grub_util_info rather than grub_dprintf.
9527 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9528
60fde14d
VS
95292012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9530
9531 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9532
9533 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9534 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9535
24bd8838
VS
95362012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9537
9538 * include/grub/types.h (grub_set_unaligned64): New function.
9539 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9540 (setup): Likewise.
9541
7bc06a49
VS
95422012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9543
9544 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9545 (grub_ofdisk_fini): Quiesce USB devices.
9546
49cea015
VS
95472012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9550 caches.
9551
8dcbe03b
VS
95522012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9555
5b258735
VS
95562012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9557
9558 * grub-core/disk/pata.c (grub_pata_pio_read)
9559 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9560 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9561
37ba07eb
VS
95622012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9563
9564 Extend automated tests to qemu-mips.
9565
9566 * Makefile.am: reorganise tests and enable qemu-mips.
9567 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9568 * grub-core/tests/boot/linux.init-mips.S: New file.
9569 * tests/partmap_test.in: Handle ata0 disks.
9570 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9571 non-pc i386.
9572
070038f8
VS
95732012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9574
9575 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9576 ia64.
9577 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9578 quotes while on it.
9579
004be2cd
VS
95802012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9581
9582 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9583 (grub_halt): Likewise.
9584 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9585
b1622487
VS
95862012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9587
9588 * grub-core/term/serial.c (grub_serial_register)
9589 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9590 the behaviour in line with x86 platforms.
9591
b7b4ab33
VS
95922012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9593
9594 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9595 (grub_ata_strncpy): Likewise.
9596 (grub_ata_identify): Add missing byteswaps.
9597
5e3535ae
VS
95982012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9599
9600 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9601 byte-swap.
9602 (screen_read_char): Likewise.
9603 (grub_vga_text_cls): Likewise.
9604
c21b17e6
VS
96052012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9606
9607 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9608 filenames.
9609 (make_file_path): Likewise.
9610
bf293dec
VS
96112012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9612
9613 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9614 machines.
9615 Tested by: Paulo Flabiano Smorigo.
9616 Crucial information about API supplied by: Coleen <Last name unknown>.
9617 Reviewed by: Coleen <Last name unknown>.
9618
81f6ef0e
VS
96192012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 * util/grub-mkimage.c: Disable -Wcast-align.
9622
7284143a
VS
96232012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9624
9625 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9626 as they are fatal.
9627
b99f3e00
VS
96282012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9629
9630 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9631
944f752d
VS
96322012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9633
9634 * util/grub-probe.c (escape_of_path): Fix double free.
9635
6cce6f38
VS
96362012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9637
9638 * grub-core/commands/videoinfo.c (hook): Show pitch.
9639
1e1eb50e
VS
96402012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9641
9642 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9643
1c715b5a
VS
96442012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9645
9646 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9647 (probe): Add ieee1275 to OFW devices.
9648
007ae52d
VS
96492012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9650
9651 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9652
4557a36d
VS
96532012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 Handle IBM OFW path.
9656
9657 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9658 available.
9659 (of_path_of_scsi): Handle vdevice.
9660
efbeefe9
VS
96612012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9664 Allocate in multiples of 16 to avoid adding a few bytes free region the
9665 windows bugs upon.
9666
15a940bb
VS
96672012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9668
9669 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9670 Allocate in multiples of 16 to avoid adding a few bytes free region the
9671 windows bugs upon.
9672 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9673
6e5efd60
VS
96742012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9675
9676 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9677 resolutions.
9678 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9679 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9680
0d3d137e
IS
96812012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9682
9683 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9684
45dbe300
VS
96852012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9686
9687 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9688 resulted in \\ at the end of the line.
9689
6d8db947
VS
96902012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9691
9692 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9693 (grub_parser_cmdline_state): Likewise.
9694 (grub_parser_split_cmdline): Likewise.
9695
de89d338
VS
96962012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9697
9698 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9699 /dev/root and /dev/dm-*.
9700
00d41dee
VS
97012012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9702
9703 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9704 fix partially stale display.
9705
f95d1f11
VS
97062012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9707
9708 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9709 substraction.
9710
6297e197
VS
97112012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9712
9713 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9714 Fix MBR remapping workaround.
9715 (grub_util_biosdisk_read) [__linux__]: Likewise.
9716
8a7ecad3
VS
97172012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9718
9719 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9720
2b34f944
VS
97212012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9722
9723 * configure.ac: Bump to beta6.
9724
684aef11
CW
97252012-05-31 Christer Weinigel <christer@weinigel.se>
9726
9727 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9728
05b0bb91
VS
97292012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9730
9731 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9732 (grub_cmd_linux): Likewise.
9733
bda36bfa
CW
97342012-05-31 Christer Weinigel <christer@weinigel.se>
9735
9736 Fix EHCI low-speed.
9737
9738 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9739 (GRUB_EHCI_MULT_TWO): Likewise.
9740 (GRUB_EHCI_MULT_THREE): Likewise.
9741 (GRUB_EHCI_CMASK_MASK): New enum value.
9742 (GRUB_EHCI_SMASK_MASK): Likewise.
9743 (GRUB_EHCI_CMASK_OFF): Likewise.
9744 (GRUB_EHCI_SMASK_OFF): Likewise.
9745 (grub_ehci_pci_iter): Enable periodic schedule.
9746 (grub_ehci_parse_notrun): Likewise.
9747 (grub_ehci_restore_hw): Likewise.
9748 (grub_ehci_setup_qh): Set flags for low speed transfers.
9749 (grub_ehci_find_qh): Use periodic list for low speed.
9750 (grub_ehci_setup_transfer): Check periodic queue as well.
9751 (grub_ehci_check_transfer): Likewise.
9752 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9753
e12bcb1c
PFS
97542012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9755
9756 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9757 parameter is used.
9758
bcc75fb3
PJ
97592012-05-31 Peter Jones <pjones@redhat.com>
9760
9761 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9762 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9763 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9764
f19cb95e
VS
97652012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9766
9767 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9768 uninited variable. Allocate at least setup_sects.
9769
a4e5ca80
VS
97702012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9771
9772 Fix handling of EFI with big memory maps.
9773
9774 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9775 (real_mode_mem): Likewise.
9776 (real_mode_target): Likewise.
9777 (real_mode_pages): Likewise.
9778 (prot_mode_pages): Likewise.
9779 (linux_params): New var.
9780 (linux_cmdline): Likewise.
9781 (free_pages): Don't set real mode variables.
9782 (allocate_pages): Don't allocate real mode memory.
9783 (grub_e820_add_region): Remove the limit.
9784 (grub_linux_boot): Allocate and copy real mode memory.
9785 (grub_linux_unload): Free linux_cmdline.
9786 (grub_cmd_linux): Use temporary storage for parameters.
9787 (grub_cmd_initrd): Likewise.
9788 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9789 (linux_kernel_params): Make it 1K big.
9790
ddb73558
VS
97912012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9792
9793 * Makefile.util.def: Remove -Wno-format.
9794 * grub-core/Makefile.core.def: Likewise.
9795
1c4afb60
VS
97962012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9797
9798 * tests/cmp_unit_test.c: Add missing failure message.
9799 * tests/example_unit_test.c: Likewise.
9800 * tests/printf_unit_test.c: Likewise.
9801
941e3a6d
VS
98022012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9803
9804 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9805 relaxation of protective MBR requirements.
9806
b105df76
VS
98072012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 * configure.ac: Add condition for COND_HOST_XNU.
9810 * Makefile.util.def (10_xnu): New script.
9811 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9812
84e1569e
VS
98132012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9814
9815 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9816 objconv bug.
9817
130c0f77
VS
98182012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9819
9820 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9821 Binary on other platforms stays identical.
9822
6fd0b143
VS
98232012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9824
9825 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9826 Apple.
9827
0af1751d
VS
98282012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9829
9830 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9831
176d5f7d
VS
98322012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9835 rather than defining size_t ourselves to avoid conflict.
9836
7de5e20a
VS
98372012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9838
9839 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9840 initialisation to avoid __bzero reference.
9841
f7143efe
VS
98422012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9843
9844 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9845 version.
9846 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9847 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9848 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9849 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9850 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9851
e6ad0555
VS
98522012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9853
9854 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9855 * grub-core/kern/misc.c: Likewise.
9856 * grub-core/loader/i386/xnu.c: Likewise.
9857 * include/grub/i386/tsc.h: Likewise.
9858 * include/grub/symbol.h: Likewise.
9859
4a5a3c4a
VS
98602012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9861
9862 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9863 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9864 on older compiler.
9865
037f6d90
VS
98662012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9867
9868 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9869 Implement Apple flavour.
9870 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9871
f7194551
VS
98722012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9873
9874 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9875 (memmove) [__APPLE__]: Likewise.
9876 (memcpy) [__APPLE__]: Likewise.
9877 (memset) [__APPLE__]: Likewise.
9878 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9879 (memmove) [__APPLE__]: Likewise.
9880 (memcpy) [__APPLE__]: Likewise.
9881 (memset) [__APPLE__]: Likewise.
9882
85a730ca
VS
98832012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9884
9885 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9886 dependency discard.
9887
40e80b94
VS
98882012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9889
9890 * grub-core/normal/main.c (read_config_file): Provide config_file and
9891 config_directory.
9892 * util/grub.d/41_custom.in: Use config_directoy when available.
9893
9da59c32
VS
98942012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9895
9896 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9897 (grub_bfs_dir): Likewise.
9898
2787ae53
PJ
98992012-05-27 Peter Jones <pjones@redhat.com>
9900
9901 The old code gives arguments to a printf function which can't work
9902 correctly, and the compiler complains.
9903
9904 * grub-core/tests/example_functional_test.c (example_test): Add
9905 missing text.
9906 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9907 * include/grub/test.h (grub_test_assert_helper): New declaration.
9908 (grub_test_assert): Use grub_test_assert_helper.
9909
526ef13d
VS
99102012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9913 (exfctest): ... this to avoid overlong filenames.
9914 All users updated.
9915
20dd511c
VS
99162012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 Handle "." and ".." on squashfs.
9919
9920 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9921 Make inode numbers into stack.
9922 (grub_squash_read_symlink): Use stack.
9923 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9924 (make_root_node): Fill stack.
9925 (grub_squash_open): Use stack.
9926
1d80c62a
VS
99272012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9928
9929 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9930 freeing.
9931
d336f652
VS
99322012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9933
9934 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9935 stderr on test calls.
9936
8b43f587
VS
99372012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9938
9939 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9940
80a3dc3f
VS
99412012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9942
9943 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9944
47e297d4
VS
99452012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9946
9947 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9948 "..".
9949
df042ccb
VS
99502012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9951
9952 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9953 (grub_hfsplus_iterate_dir): Add "." and "..".
9954
fc977f48
VS
99552012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9956
9957 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9958 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9959
f3250e5f
VS
99602012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9961
9962 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9963 (find_path): Handle "." and "..".
9964
fd8ed4c5
VS
99652012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9966
9967 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9968 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9969 (grub_affs_iterate_dir): Handle hardlinks.
9970
4ce776d2
MG
99712012-05-26 Matthew Garrett <mjg@redhat.com>
9972
9973 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9974 (grub_efi_console_fini): Likewise.
9975 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9976 (grub_video_gop_fill_mode_info): Rename to ...
9977 (grub_video_gop_fill_real_mode_info): ... this.
9978 (grub_video_gop_fill_mode_info): New function.
9979 (grub_video_gop_setup): Setup double framebuffer.
9980 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9981 Free offscreen.
9982 (grub_video_gop_swap_buffers): Copy framebuffer.
9983 (grub_video_gop_fini): Free offscreen buffer.
9984 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9985 New enum.
9986 (grub_efi_gop_blt_pixel): New struct.
9987
683031ba
VS
99882012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * gentpl.py: Remove error disabling for objconv.
9991
c2deb798
VS
99922012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9993
9994 * configure.ac: Remove -Wunitialized as it's not available on older
9995 compilers.
9996
99972012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
9998
9999 Fix extent overflow comparator.
10000
10001 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10002 (grub_hfsplus_read_block): Set type.
10003 (grub_hfsplus_cmp_extkey): Compare type.
10004
d6b1fd36
VS
100052012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10006
10007 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10008
0a9aa0f6
VS
100092012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10010
10011 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10012 than 0.
10013
8360e159
VS
100142012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10015
10016 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10017 (dejavu_bold_14.pf2): New target.
10018
501b9e4b
VS
100192012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10020
10021 * configure.ac: Fix djvu font detection.
10022
7026b0e2
VS
100232012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10024
10025 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10026 ext* instead of ext2.
10027
c2a51ade
VS
100282012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10029
10030 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10031 name with \0.
10032
8f803a5d
JU
100332012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10034
10035 * docs/grub-dev.texi: Remove dot from .png.
10036
13c6353f
VS
100372012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10038
10039 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10040 protective entry in any slot.
10041 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10042 if protective entry is found in any slot.
10043
10044 Protective entry in non-first slot make no sense but is a widespread
10045 brain damage.
10046
4cf6be1b
VS
100472012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10048
10049 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10050
937d1c44
VS
100512012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10052
10053 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10054 with old reiserfs.
10055 (grub_reiserfs_open): Don't free root.
10056
021d90ec
VS
100572012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10058
10059 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10060 after freeing for safety.
10061
967b2b64
VS
100622012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10063
10064 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10065 Reported by: Jordan Uggla.
10066
34274d02
JU
100672012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10068
967b2b64
VS
10069 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10070 actual implementation. Specifically, clarify that the grub menu will
10071 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10072 passed.
34274d02 10073
dcaaae9d
BH
100742012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10075
10076 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10077 of r0.
10078
7086ad52
VS
100792012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10080
10081 Remove unjustified hard dependency of normal.mod on gfxterm.
10082
10083 * include/grub/term.h (grub_term_output): New member fullscreen.
10084 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10085 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10086 (grub_gfxterm): Set .fullscreen.
10087 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10088 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10089
37ed2c9b
VS
100902012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10091
10092 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10093 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 10094 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 10095
a4469c88
VS
100962012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10097
10098 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10099
4e461486
VS
101002012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10103 a bad FS.
10104
aa78f5c4
VS
101052012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10106
10107 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10108 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10109
197626b5
VS
101102012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10111
10112 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10113 (grub_jfs_mount): Fill caseins.
10114 (grub_jfs_find_file): Respect caseins.
10115
8ad3f28c
VS
101162012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10117
10118 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10119 through UTF-16.
10120
0c6c324e
VS
101212012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10122
10123 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10124 New argument origpath. All users updated.
10125
c6666ba6
VS
101262012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10127
10128 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10129 (read_attr): Ensure that we read start of possibly compressed block.
10130
e28e5fe5
VS
101312012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10132
10133 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10134 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10135 All users updated.
10136
5fc23ab2
VS
101372012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10138
10139 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10140 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10141 (dejavu.pf2): Replace with ...
10142 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10143 this.
10144
79dbc21c
VS
101452012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10146
10147 * util/grub.d/20_linux_xen.in: Add missing line.
10148
d2fcfb0c
VS
101492012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10150
10151 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10152 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10153 (grub_utf16_to_utf8): Likewise.
10154
5560e9d6
VS
101552012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10156
10157 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10158 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10159 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10160 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10161 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10162 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10163
101642012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
10165
10166 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10167 a bad FS.
10168
5560e9d6 101692012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
10170
10171 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10172 (grub_udf_read_symlink): Handle read_string failure.
10173
5eae3175
VS
101742012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10175
10176 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10177 comment.
10178
c1ad82db
VS
101792012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10180
10181 Fix handling of UDF symlinks.
10182
10183 * grub-core/fs/udf.c (read_string): New argument outbuf.
10184 All users updated.
10185 (grub_ufs_read_symlink): Rename to ...
10186 (grub_udf_read_symlink): ... this. All users updated.
10187 Handle symlinks with more than one component.
10188
33eca6e0
VS
101892012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10190
10191 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10192 symlinks. Replace leading colon with a slash.
10193
57f4a70b
VS
101942012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10197 filename.
10198
38c8ee20
VS
101992012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10202 match in inner node.
10203
2e57f28f
VS
102042012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10205
10206 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10207 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10208 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10209 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10210 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10211 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10212 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10213 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10214 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10215
fe8c2f11
VS
102162012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10217
10218 Use grub-probe and not cmp to check that disk is empty.
10219
10220 * util/grub-install.in: Use grub-probe for zero-check.
10221 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10222 (probe): Handle PRINT_ZERO_CHECK.
10223 (argp_parser): Handle -t zero_check.
10224
102252012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
10226
10227 Flush block cache on adding disk to device map.
10228
10229 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10230 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10231 adding.
10232 (read_device_map): Likewise.
10233 (open_device): Flush on opening.
10234
690434e8
VS
102352012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10236
10237 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10238 (handle_symlink): Fix off-by-one error.
10239 Canonicalize the target.
10240 (grub_cpio_dir): Canonicalize the name.
10241 Fix memory leak.
10242 Set directory.
10243 (grub_cpio_open): Canonicalize the name.
10244
742d2be6
VS
102452012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10248 handling.
10249
3244fe96
VS
102502012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10251
10252 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10253 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10254
8aeb1837
VS
102552012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10256
10257 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10258 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 10259 All users updated.
8aeb1837 10260
9133fd05
VS
102612012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10262
10263 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10264 counterpart.
10265
6d521c5b
VS
102662012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10267
10268 Fix UFS1 big file support.
10269
10270 * grub-core/fs/ufs.c (INODE): Removed.
10271 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10272 64-bit.
10273 (INODE_MODE): Simplify.
10274 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10275 (grub_ufs_lookup_symlink): Don't use INODE.
10276
21b82e17
VS
102772012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10278
10279 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10280
10281 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10282 (grub_minix_data): Replace log_block_size with block_size.
10283 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10284 (grub_minix_mount): Fill block_size.
10285
102862012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
10287
10288 * configure.ac: Bump to beta5.
10289
f417ed04
VS
102902012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10291
10292 Fix wrapped HFS+ handling.
10293
10294 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10295 blocks_start. All users updated.
10296 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10297 wrapping offset.
10298 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10299
607d282b
VS
103002012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10301
10302 Fix long symlinks on reiserfs.
10303
10304 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10305 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10306 (grub_reiserfs_iterate_dir): Save size for non-directories.
10307 (grub_reiserfs_open): Don't reread stat block as we already know the
10308 size.
10309 (grub_reiserfs_read): Split into...
10310 (grub_reiserfs_read_real): ... and ...
10311 (grub_reiserfs_read): ...this.
10312
ae16024d
VS
103132012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10314
10315 Fix non-indexed JFS.
10316
10317 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10318 (grub_jfs_data): New field namecomponentlen.
10319 (grub_jfs_mount): Fill namecomponentlen.
10320 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10321
eea1e26e
VS
103222012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10323
10324 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10325 * tests/grub_script_echo1.in: Add tests.
10326
df760f77
VS
103272012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10328
10329 * util/grub-install.in: Ignore empty devicetree directory.
10330
5efb817d
B
103312012-05-08 Bean <bean123ch@gmail.com>
10332
10333 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10334 All users updated.
10335 (free_rsm): Free header as well.
10336 (free_old_fragments): Fix memory leak.
10337 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10338 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10339 (destroy_pq): Likewise.
10340 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10341
668ea6d2
VS
103422012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10343
10344 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10345 resulting hash as a precaution.
10346
1739b1fe
VS
103472012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10348
10349 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10350 '_' in variable names.
10351 * grub-core/net/net.c (grub_net_network_level_interface_register):
10352 Likewise.
10353
6ae485aa
VS
103542012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10355
10356 Fix AFFS with non-512B blocks.
10357
10358 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10359 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10360 (grub_affs_data): Replace blocksize with log_blocksize.
10361 (grub_affs_read_block): Fix non-512B blocks.
10362 (grub_affs_read_symlink): Likewise.
10363 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10364 (grub_affs_read): Fix non-512B blocks.
10365 (grub_affs_label): Likewise.
10366 (grub_affs_mtime): Likewise.
10367 (grub_affs_mount): Fix block detection routine.
10368
d20fab84
VS
103692012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10370
10371 Add filesystem mtime to AFFS.
10372
10373 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10374 (aftime2ctime): New function.
10375 (grub_affs_dir): Use aftime2ctime.
10376 (grub_affs_label): Fix return value.
10377 (grub_affs_mtime): New function.
10378 (grub_affs_fs): Add mtime.
10379
e87b10f5
VS
103802012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10381
10382 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10383 UTF-8.
10384
7dceec9b
VS
103852012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10388 UTF-8.
10389
2f48221f
VS
103902012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10391
10392 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10393
dacd85cf
VS
103942012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10395
10396 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10397 flags.
10398 (FLAGS_CASE_SENSITIVE): New enum value.
10399 (cache_entry): New struct.
10400 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10401 cache_size and cache.
10402 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10403 Add log_blocksize and fshelp_flags.
10404 (grub_sfs_read_extent): Handle non-512 blocks.
10405 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10406 (grub_sfs_read_file): Handle non-512 blocks.
10407 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10408 fshelp_flags.
10409 (grub_sfs_read_symlink): Handle non-512 blocks.
10410 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10411 (grub_sfs_dir): Free cache.
10412 (grub_sfs_close): Likewise.
10413
24e9a854
VS
104142012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10415
10416 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10417 filesystems.
10418
62ace64d
VS
104192012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10420
10421 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10422
83b2e89c
VS
104232012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10424
10425 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10426
75ccaea3
VS
104272012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10428
10429 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10430 (grub_sfs_read_extent): Likewise.
10431 (grub_sfs_read_block): Likewise.
10432 (grub_sfs_mount): Likewise.
10433 (grub_sfs_iterate_dir): Likewise.
10434 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10435 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10436
1b8463f2
VS
104372012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10438
10439 Fix errors on compressed NTFS with 512B clusters.
10440
10441 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10442 types.
10443 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10444 not 0.
10445 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10446 Relax check for inline extents.
10447 (ntfscomp): Return correct -1 on error and not 0.
10448
4f8e368f
VS
104492012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10450
10451 * util/grub-install.in: Fix handling of prefix containing spaces.
10452
6f5d5ee8
VS
104532012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10454
10455 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10456 (grub_squash_read_data): Fix offset byte-swapping.
10457
ce41ab7a
VS
104582012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10459
10460 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10461 per common usage and preffered in several parts of code.
10462 (grub_memcmp): Likewise.
10463 (grub_strncmp): Likewise.
10464 * include/grub/misc.h (grub_strcasecmp): Likewise.
10465 (grub_strncasecmp): Likewise.
10466 * Makefile.util.def (cmp_test): New test.
10467 (grub_script_strcmp): Likewise.
10468 * tests/cmp_unit_test.c: New file.
10469 * tests/grub_script_strcmp.in: Likewise.
10470 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10471
49717bf4
VS
104722012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10473
10474 * include/grub/pci.h: Move enums into no-asm part.
10475
0a308f64
VS
104762012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10477
10478 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10479
1796965f
ST
104802012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10481
10482 * util/getroot.c (find_hurd_root_device): Try to make error message
10483 and comments to translators clearer.
10484
4e9b2819
VS
104852012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10486
10487 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10488
076aeb50
VS
104892012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10490
10491 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10492 btrfs.
10493
19424d94
VS
104942012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10495
10496 * docs/grub.cfg: Update.
10497
ebb73076
VS
104982012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10499
10500 * docs/grub.texi (PXE): Remove not present variables.
10501
9a1b669c
VS
105022012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10503
10504 * grub-core/net/net.c (defserver_set_env): New function.
10505 (defserver_get_env): Likewise.
10506 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10507
d38bf7d3
VS
105082012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10509
10510 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10511 entries.
10512
105132012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
10514
10515 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10516 * grub-core/kern/emu/hostdisk.c: Likewise.
10517
e5e4ca48
ST
105182012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10519
10520 Handle hurd userspace partitions.
10521
10522 * util/getroot.c (find_hurd_root_device): New function.
10523 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10524
56bb5dd5
VS
105252012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10526
10527 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10528 names.
10529 Reported by: Bastian Blank.
10530
9e8bc27a
VS
105312012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10532
10533 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10534 crossing page boundary.
10535
aa01499d
VS
105362012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10537
10538 Fix B-tree search in BFS, especially in presence of non-ASCII
10539 characters.
10540
10541 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10542 (find_in_b_tree): Use standard bsearch + btree algorithm.
10543
57006035
VS
105442012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10545
10546 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10547 and so on.
10548
9d34bb85
MG
105492012-05-03 Matthew Garrett <mjg@redhat.com>
105502012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10551
10552 Suspend broadcom cards in order to stop their DMA.
10553
10554 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10555 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10556 (pci): Don't build on x86 EFI.
10557 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10558 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10559 New function.
10560 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10561 stop_broadcom if running on EFI.
10562 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10563 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10564 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10565 (grub_pci_find_capability): New proto.
10566
01aab997
VS
105672012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10568
10569 * docs/grub.texi: Remove dot from the extension as it apparently
10570 doesn't work with some makeinfo versions.
10571
fbd8dca6
VS
105722012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10573
10574 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10575 with GRUB expectance.
10576
dab797f4
VS
105772012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10578
10579 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10580
1516bfb4
VS
105812012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10582
10583 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10584 zero after directory block since last entry may be not 0-terminated if
10585 it ends on block boundary. Use continue instead of if spanning whole
10586 loop.
10587
a3a0eace
VS
105882012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10589
10590 Support 4K sectors UDF inline files.
10591
10592 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10593 (grub_udf_extended_file_entry): Likewise.
10594 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10595 All users updated.
10596 (get_fshelp_size): New function.
10597 (grub_udf_read_icb): Read whole block.
10598 (grub_udf_iterate_dir): Likewise.
10599 (grub_udf_dir): Likewise.
10600 (grub_udf_open): Likewise.
10601
c82f16c1
VS
106022012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10603
10604 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10605
59fd2aac
VS
106062012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10607
10608 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10609 inline symlinks in addition to workaround.
10610
3b4afb4d
VS
106112012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10614
f45c794a
VS
106152012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10616
10617 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10618
f25cecbd
VS
106192012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10620
10621 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10622
bb9a34e8
VS
106232012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 Fix reiserfs big seek times.
10626
10627 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10628 exact. All users updated.
10629 (grub_reiserfs_read): Use nearest btree search for seeking.
10630 Fix return value on error.
10631
dc478aea
VS
106322012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10633
10634 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10635 entries.
10636 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10637 * docs/grub.texi: Update menuentry description.
10638
8db10f47
VS
106392012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10640
10641 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10642 crash when embedding onto filesystem.
10643
bcb288ed
VS
106442012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10645
10646 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10647 name.
10648
a626fdd7
VS
106492012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10652
b2f68477
VS
106532012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10654
10655 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10656 commit.
10657
ba15b2af
B
106582012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
106592012-05-01 Bean <bean123ch@gmail.com>
10660
10661 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10662
a188012e
VS
106632012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10664
10665 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10666 Special behaviour for len = 0 to read whole file isn't used anywhere and
10667 can cause buffer ovewrflows in several places.
10668
f0a53ed2
VS
106692012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10670
10671 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10672
5ed554f0
VS
106732012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10674
10675 Handle RAIDZ on non-512B sectors.
10676
10677 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10678 max_children_ashift.
10679 (fill_vdev_info_real): Fill max_children_ashift.
10680 (read_device): Use max_children_ashift.
10681
ddc58357
VS
106822012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10683
10684 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10685
e3282399
VS
106862012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10687
10688 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10689 disk names.
10690 * docs/grub.texi: Update device.map parts.
10691
ee618bd4
VS
106922012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10693
10694 Don't scan into non-diskfilter devices having diskfilter names.
10695
10696 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10697 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10698 handling.
10699 (scan_disk_hook): New function.
10700
bdf88864
B
107012012-04-29 Bean <bean123ch@gmail.com>
10702
10703 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10704 allocation.
10705
32745f51
MK
107062012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10707
10708 * configure.ac: Detect starfield theme font path
10709 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10710
bc95c8c0
VS
107112012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10712
10713 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10714 geometry on serial consoles.
10715
147fbcab
VS
107162012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10717
10718 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10719 because of network consoles.
10720
0f42c889
VS
107212012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10722
10723 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10724 handling.
10725
4a3594c9
VS
107262012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10727
10728 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10729 falls on Q syndrom.
10730
5cb53879
VS
107312012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10732
10733 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10734 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10735
b282dfe5
VS
107362012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10737
10738 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10739 Allocate at lest 8192 for temporary buffer as required for lzo.
10740
daa59f47
VS
107412012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10742
10743 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10744 to cluster_bits, since it's already added in.
10745 (grub_fat_read_data): Likewise.
10746
986748ce
VS
107472012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10748
10749 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10750 as long as cluster size is multiple of 512 bytes.
10751
a20f6ad0
VS
107522012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10753
10754 * util/grub-mkrescue.in: Fix locale directory.
10755
385f9abb
VS
107562012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10757
10758 * grub-core/kern/emu/hostdisk.c (map): Make static.
10759
1c557d30
B
107602012-04-23 Bean <bean123ch@gmail.com>
10761
10762 * util/grub-fstest.c (fstest): Add missing break.
10763
524b5d3a
ST
107642012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10765
10766 Fix hurd build.
10767
10768 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10769 not define nr variable.
fe4824e9 10770 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10771 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10772 grub_find_device): Do not define.
524b5d3a 10773
9a06490c
VS
107742012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10775
10776 Fix kfreebsd compile and behaviour.
10777
10778 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10779 format-security.
10780 * util/getroot.c: Fix wait.h include.
10781 (grub_guess_root_devices): Error if grub_find_device fails.
10782 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10783 (grub_util_get_dev_abstraction): Likewise.
10784 (grub_util_pull_device): Likewise.
10785 (grub_util_get_grub_dev): Likewise.
10786 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10787
48143d96
VS
107882012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10789
10790 Fix and unify wholedisk detection.
10791
10792 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10793 is_part. All users updated.
10794 (device_is_wholedisk): Removed.
10795 (grub_util_biosdisk_get_grub_dev): Use is_part.
10796
ebbd24f3
VS
107972012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10798
10799 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10800 mode.
10801
56f7aa1e
VS
108022012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10803
10804 * configure.ac: Bump to beta4.
10805
9c815e01
VS
108062012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10807
10808 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10809 --fs-uuid --set UUID syntax.
10810
59e2651a
VS
108112012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10812
10813 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10814 disunification.
10815
54e03cfc
VS
108162012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10817
10818 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10819
81092a75
MK
108202012-04-18 Mads Kiilerich <mads@kiilerich.com>
10821
10822 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10823
f8315e14
MG
108242012-04-18 Mike Gilbert <floppym@gentoo.org>
10825
10826 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10827
1501ac21
B
108282012-04-18 Bean <bean123ch@gmail.com>
10829
10830 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10831 place.
10832
cb7f944e
VS
108332012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10834
10835 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10836 users updated.
10837 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10838 corresponding to GRUB partitions.
10839 (grub_util_biosdisk_write): Likewise.
10840
b72d44a1
VS
108412012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10842
10843 Scan mdraid before LVM.
10844
10845 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10846 (grub_diskfilter_register_front): ... this.
10847 (grub_diskfilter_register_back): New function.
10848 All users of grub_diskfilter_register updated.
10849
33d918b8
VS
108502012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10851
10852 * util/grub-install.in: Fix an automatic target detection bug.
10853
c6ca973d
VS
108542012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10855
10856 * util/grub-install.in: New option --efi-directory.
10857
b41be562
VS
108582012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10859
10860 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10861 boot services if we have no other choice.
10862
108632012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10864
10865 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10866 document it.
10867 * tests/util/grub-shell.in: Update to --directory.
10868
e0595a73
VS
108692012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10870
10871 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10872
4ed80652
VS
108732012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10874
10875 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10876 (grub_minix_read_file): Likewise.
10877 (grub_minix_read_inode): Likewise.
10878 (grub_minix_find_file): Likewise.
10879 (grub_minix_dir): Likewise.
10880
56008077
VS
108812012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10882
10883 * util/grub-setup.c (setup): Fix partition handling and blocklist
10884 check.
10885
ee520775
VS
108862012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10887
10888 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10889 redundant buggy overlap check.
10890
16fc9293
VS
108912012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10892
10893 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10894 and grub-mknetdir.
10895
9bab65c4
VS
108962012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10897
10898 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10899 kh.loadflags on pre-2.00 kernels.
10900
3c491b47
VS
109012012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10902
10903 Terminate UNDI and PXE before launching the payload to avoid problems
10904 with DMA.
10905
10906 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10907 (grub_loader_flags): ... this. All users updated.
10908 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10909 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10910 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10911 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10912 function.
10913 (grub_pxe_restore): Likewise.
10914 (fini_hnd): New var.
10915 (GRUB_MOD_INIT): Register shutdown hook.
10916 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10917 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10918 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10919 (grub_loader_set): Rename second argument to flags.
10920
851ffada
VS
109212012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10922
10923 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10924 written bytes.
10925 (grub_get_num_of_utf8_bytes): New function.
10926 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10927 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10928 executing it.
10929 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10930 (grub_ucs4_to_utf8): Change return type.
10931
491c57a8
VS
109322012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10933
10934 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10935 warning.
851ffada
VS
10936 * grub-core/fs/bfs.c (hop_level): Likewise.
10937 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 10938
756773df
VS
109392012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10940
10941 * grub-core/lib/adler32.c: Recode due to license unclearness.
10942
fd556a96
VS
109432012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10944
10945 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10946 (test_header): Likewise.
10947
9f9d3f69
VS
109482012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10949
10950 Fix --help formatting.
10951
10952 * util/grub-mkconfig_lib.in (print_option_help): New function.
10953 (grub_fmt): Likewise.
10954 * util/grub-install.in: Use print_option_help and grub_fmt.
10955 * util/grub-kbdcomp.in: Likewise.
10956 * util/grub-mkconfig.in: Likewise.
10957 * util/grub-mknetdir.in: Likewise.
10958 * util/grub-mkrescue.in: Likewise.
10959 * util/grub-mkstandalone.in: Likewise.
10960 * util/grub-reboot.in: Likewise.
10961 * util/grub-set-default.in: Likewise.
10962 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10963
561ec77e
VS
109642012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10965
10966 * linguas.sh: Remove autogenerated *.po.
10967
7ec2b021
VS
109682012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10969
10970 * po/README: Move language fetcing to ...
10971 * linguas.sh: ... here.
10972 * po/README: Point to linguas.sh.
10973
a88f3270
VS
109742012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10975
10976 * po/README: Exclude ko.po due to disclaimer problems.
10977
d61357ce
VS
109782012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10979
10980 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10981 len = 0.
10982 (grub_gettext_translate_real): Handle 0th string.
10983 (grub_gettext_translate): Ensure that "" isn't translated.
10984
505e41dc
VS
109852012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10986
10987 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10988 TRANSLATORS comment.
10989 (grub_diskfilter_print_partmap): Propagate changing of error into
10990 warning.
10991
e44092db
VS
109922012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10993
10994 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10995 to uint64_t to prevent overflow.
10996 (grub_diskfilter_lv): Increase start_extent and extent_count
10997 to uint64_t to prevent overflow.
10998
9b83956a
VS
109992012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11000
11001 * configure.ac: Increase version.
11002
da0d5b3f
VS
110032012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11004
11005 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11006
11007 * po/Rules-translit: New file.
11008 * po/arabic.sed: Likewise.
11009 * po/cyrillic.sed: Likewise.
11010 * po/greek.sed: Likewise.
11011 * po/hebrew.sed: Likewise.
11012 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11013 * po/Makefile.in.in: Add extra_dist4.
11014
ac66b453
VS
110152012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11016
11017 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11018
11019 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11020 modify names. Introduce MODE_BIGENDIAN.
11021 * grub-core/fs/minix_be.c: New file.
11022 * grub-core/fs/minix2_be.c: Likewise
11023 * grub-core/fs/minix3_be.c: Likewise.
11024 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11025 minix3_be.
11026 * grub-core/Makefile.core.def (minix_be): New module.
11027 (minix2_be): Likewise.
11028 (minix3_be): Likewise.
11029
110302012-04-01 Felix <email@hamburg.de>
11031
11032 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11033 (devs): Add MBP 2011.
11034
0a2d5a82
VS
110352012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11036
11037 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11038
d1625889
VS
110392012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11040
11041 * grub-core/normal/cmdline.c (print_completion): New field
11042 prompt_len.
11043 (grub_cmdline_get): Handle width properly.
11044
6d36a236
VS
110452012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11046
11047 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11048
9576977e
VS
110492012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11050
11051 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 11052 after 29th of February.
9576977e 11053
d73ff15d
VS
110542012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11055
11056 Fix exfat endianness handling.
11057
11058 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11059 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11060 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11061 Byte-swap utf16 when necessary.
11062 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11063
bbb39a45
AB
110642012-03-31 Anton Blanchard <anton@samba.org>
110652012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11066
11067 Fix btrfs endianness handling.
11068
11069 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11070 (lower_bound): Make root uint64_t. Use root in le.
11071 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11072 (find_path): Fix template key init.
11073 (grub_btrfs_dir): Fix mtime byteswap.
11074 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11075
354e0af7
VS
110762012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11077
11078 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11079 recursion_depth. Break infinite resursions. All users updated.
11080
4e75f21c
VS
110812012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11082
11083 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11084 after free.
11085 Reported by: Peter Jones.
11086
25581802
AB
110872012-03-31 Anton Blanchard <anton@samba.org>
11088
11089 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11090 8 bit values.
11091
08fbf92e
VS
110922012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11093
11094 * util/grub-install.in: Fix nvram call for PreP.
11095
5d1182a6
VS
110962012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11097
11098 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11099 the error when some elements are missing into a warning.
11100
3f8cdd90
VS
111012012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11102
11103 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11104
51006716
CW
111052012-03-28 Colin Watson <cjwatson@ubuntu.com>
11106
11107 * docs/grub.texi (Invoking grub-probe): New section.
11108 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11109
e1bd676b
VS
111102012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11111
11112 Fix tab and wide character handling in editor and menu.
11113
11114 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11115 agglomerate control characters with combining marks.
11116 (bidi_line_wrap): Allow break on tab.
11117 (grub_unicode_get_comb_start): New function.
11118 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11119 and tab correctly.
11120 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11121 with a space.
11122 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11123 fixed_tab_size. All users updated.
11124 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11125 (grub_term_getcharwidth): Handle \t.
11126 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11127 and copy.
11128
22e6a774
VS
111292012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11130
11131 Handle big-endian mdraid.
11132
11133 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11134 * grub-core/Makefile.core.def (mdraid09_be): New module.
11135 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11136 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11137 * grub-core/disk/mdraid_linux_be.c: New file.
11138
3c0eae66
VS
111392012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11140
11141 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11142
b6cf74c9
VS
111432012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11144
11145 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11146 missing quotes which caused confusion among translators.
11147
83c93b9c
VS
111482012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11149
11150 * util/grub-mkconfig_lib.in: Fix typo.
11151
ac6fd218
VS
111522012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11153
11154 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11155 spaces.
11156 * tests/grub_script_leading_whitespace.in: New file.
11157 * Makefile.util.def (grub_script_leading_whitespace): New test.
11158
ba287dd8
VS
111592012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11160
11161 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11162 to work.
11163
d2d58d0a
VS
111642012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11167 starts with control character.
11168
0382d9bb
VS
111692012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11170
11171 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11172 overflow.
11173 (grub_gdb_outbuf): Likewise.
11174
d83ff9f9
VS
111752012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11176
11177 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11178 zero terminator. Fixes a crash.
11179
2282da4a
VS
111802012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11181
11182 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11183 beyond 4 GiB.
11184 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11185 images independently of preffered adderss field.
11186
0ae4f0bd
VS
111872012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11188
11189 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11190 * grub-core/commands/regexp.c: Likewise.
11191 * grub-core/loader/i386/linux.c: Likewise.
11192 * grub-core/partmap/msdos.c: Likewise.
11193 * grub-core/script/execute.c: Likewise.
11194 * grub-core/term/gfxterm.c: Likewise.
11195
546fbe9b
VS
111962012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11197
11198 Add variable parsing in $"..." and fix several mismatches with bash.
11199
11200 * Makefile.util.def (grub_script_gettext): New test.
11201 * grub-core/script/execute.c (parse_string): New function.
11202 (gettext_append): Likewise.
11203 (grub_script_arglist_to_argv): Use gettext_append.
11204 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11205 * tests/grub_script_gettext.in: New file.
11206
9fdb2d7b
VS
112072012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11208
11209 Fix handling of leading spaces in scripts.
11210
11211 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11212 spaces.
11213 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11214 other than skipping \r. All users updated.
11215 * tests/grub_script_echo1.in: Add space-related tests.
11216 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11217
1a1ac4f6
VS
112182012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11219
11220 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11221
b63d89b6
VS
112222012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11223
11224 * configure.ac: Bump up the version to beta2.
11225
17f38c0f
VS
112262012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11227
11228 Fix gettext reload bugs (e.g. inability to disable gettext
11229 once enabled).
11230
11231 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11232 main_context and secondary_context. All functions updated.
11233 (grub_gettext_translate): Rename to ...
11234 (grub_gettext_translate_real): ... this. Return NULL on failed
11235 translate.
11236 (grub_gettext_translate): Handle secondary context.
11237 (grub_gettext_delete_list): Close file and zero-out the context.
11238 (grub_mofile_open): Don't call grub_gettext_delete_list.
11239 Don't close file.
11240 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11241 if locale="" to avoid pointless error message.
11242 (grub_gettext_env_write_lang): Update lang even if load fails.
11243 Handle secondary context.
11244 (grub_gettext_reread_prefix): New function.
11245 (read_main): Likewise.
11246 (read_secondary): Likewise.
11247 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11248 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11249 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11250 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11251
8e56f870
VS
112522012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11253
11254 * configure.ac: Decrease warning level to avoid spurious warnings and
11255 to be able to compile with GCC 4.2.
11256 * Makefile.util.def: Remove -Wno-error=logical-op.
11257
82f6d455
WB
112582012-03-10 William Bittner <william.bittner@gmail.com>
11259
11260 * util/import_unicode.py: Add missing brackets around string for
11261 python 3 support.
11262
1ecd61a4
VS
112632012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11264
11265 Fix efi chainloader on network root.
11266
11267 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11268 network devices.
11269 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11270 New function.
11271
14361ee8
VS
112722012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11273
11274 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11275 unused show_text member.
11276 * docs/grub.texi: Document "text" property.
11277
922aabf3
VS
112782012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11279
11280 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11281 in dprintf.
11282
ec316771
VS
112832012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11284
11285 Fix IMSM handling on Fedora.
11286
11287 * util/getroot.c (grub_util_is_imsm): New function.
11288 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11289
0f021838
VS
112902012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11291
11292 * Makefile.am: Strip gold section.
11293 * conf/Makefile.common: Likewise.
11294 * gentpl.py: Likewise.
11295 * grub-core/Makefile.core.def: Likewise.
11296 * grub-core/genmod.sh.in: Likewise.
11297
1039c8eb
VS
112982012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11299
11300 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11301 * util/grub.d/20_linux_xen.in: Likewise.
11302 Based on Debian patch.
11303
6dd412cd
VS
113042012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11305
11306 * util/grub.d/10_linux.in: Fix syntax error resulting in
11307 Richard Laager's patch.
11308 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11309
3fd8bae5
VS
113102012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11311
11312 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11313 dependencies.
11314
7eea1671
RL
113152012-03-10 Richard Laager <rlaager@wiktel.com>
11316
11317 * util/grub.d/10_linux.in: Fix ZFS root passing.
11318
e8e0566b
VS
113192012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11320
11321 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11322 * grub-core/commands/xnu_uuid.c: Likewise.
11323 * grub-core/loader/efi/appleloader.c: Likewise.
11324 * grub-core/script/execute.c: Likewise.
11325 * grub-core/script/main.c: Likewise.
11326 * util/grub-mkfont.c: Likewise.
11327
1acc5b1f
VS
113282012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11329
11330 * util/grub-mkfont.c (options): Use more appropriate "select" that
11331 "set" for face index.
11332
35d70620
VS
113332012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 * util/grub-editenv.c (options): Gettextize command summaries.
11336
c9eb96b5
VS
113372012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11338
11339 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11340 "out of memory" error messagge.
11341
1f493136
VS
113422012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11343
11344 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11345 of diskfilter for diskfilter on diskfilter support.
11346
6d790129
VS
113472012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11348
11349 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11350
005f46c9
VS
113512012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11352
11353 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11354 themes/starfield.
11355
c8f778a0
VS
113562012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11357
11358 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11359
de1e64eb
VS
113602012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11361
11362 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11363
c6d54211
VS
113642012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11365
11366 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11367 of error message.
11368
dd390777
VS
113692012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11370
11371 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11372
5fd1c522
VS
113732012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11374
11375 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11376 message.
c6d54211 11377 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 11378
fae01f6c
VS
113792012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11380
11381 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11382 Gettextize.
11383 * util/grub-mount.c (options): Likewise.
11384
292fdaff
VS
113852012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11386
11387 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11388 gettextize.
11389 * grub-core/commands/search_wrap.c (options): Likewise.
11390
ecdbae77
VS
113912012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11392
11393 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11394
52bfedfa
VS
113952012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11396
11397 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11398 size calculation.
11399 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11400 none is known.
11401
55b20e58
VS
114022012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11403
11404 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11405 "temporary" since it's used in identifier and is limited in space.
11406
fda9d101
VS
114072012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11408
11409 * po/POTFILES.in: Regenerate. Include *.h since they contain
11410 translatable strings as well.
11411
6a0295e2
VS
114122012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11413
11414 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11415 byte-swap on big-endian.
11416 Reported by: Lennart Sorensen
11417
807fb77c
VS
114182012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11419
11420 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11421 (allocate_pages): Improve dprintf.
11422 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11423 code32_start. Fill code32_start and kernel_alignment in params.
11424 (grub_cmd_initrd): Use prot_init_space.
11425
61ac50ba
VS
114262012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11427
11428 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11429
abdd26dd
VS
114302012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11431
11432 * util/grub-install.in: Add missing dot at the end of sentence.
11433
6e69da9c
VS
114342012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11435
11436 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11437 * grub-core/commands/videotest.c: Likewise.
11438 * grub-core/loader/i386/linux.c: Likewise.
11439
4a929343
VS
114402012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11441
11442 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11443 sentence.
11444 Reported by: Milo Casagrande.
11445
bb51c6c6
VS
114462012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11447
11448 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11449 * grub-core/commands/gptsync.c: Likewise.
11450 * grub-core/commands/hashsum.c: Likewise.
11451 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11452 * grub-core/commands/legacycfg.c: Likewise.
11453 * grub-core/io/gzio.c: Likewise.
11454 * grub-core/net/net.c: Likewise.
11455 * grub-core/term/gfxterm.c: Likewise.
11456 * grub-core/term/terminfo.c: Likewise.
11457 * grub-core/tests/test_blockarg.c: Likewise.
11458 * grub-core/video/video.c: Likewise.
11459 * util/grub-install.in: Likewise.
11460 * util/grub-mkfont.c: Likewise.
11461
b2b149cb
VS
114622012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11463
11464 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11465
c7c080ad
VS
114662012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11467
11468 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 11469 Reported by: David Prévot.
c7c080ad 11470
f2e243c0
VS
114712012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11472
11473 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11474 description.
11475
09963c76
VS
114762012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11477
11478 * util/grub-script-check.c (main): Fix a syntax error message which was
11479 unclear.
11480
a50514a8
VS
114812012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11482
11483 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11484
4650daec
VS
114852012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11488 messages.
11489
114902012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
11491
11492 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11493 without argument.
11494 * util/grub-mount.c (options): Likewise.
11495
bbc5a342
VS
114962012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11497
11498 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11499
ef292a87
VS
115002012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11501
11502 * grub-core/net/http.c: Add TRANSLATORS comments.
11503 * grub-core/normal/cmdline.c: Likewise.
11504 * grub-core/normal/misc.c: Likewise.
11505 * grub-core/partmap/msdos.c: Likewise.
11506 * grub-core/parttool/msdospart.c: Likewise.
11507 * grub-core/script/execute.c: Likewise.
11508 * grub-core/script/main.c: Likewise.
11509 * grub-core/term/terminfo.c: Likewise.
11510 * grub-core/video/bitmap.c: Likewise.
11511 * util/grub-install.in: Likewise.
11512 * util/grub-mkimage.c: Likewise.
11513 * util/grub-mklayout.c: Likewise.
11514 * util/grub-setup.c: Likewise.
11515
0fc19bd0
VS
115162012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11517
11518 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11519 with similar messages in grub-fstest.
11520
d95862ef
VS
115212012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11522
11523 * util/grub-install.in: Unify "option requires an argument" message
11524 with similar messages in other files.
11525 * util/grub-mkconfig.in: Likewise.
11526
b7308f90
VS
115272012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11528
11529 * util/grub-set-default.in: Replace printf with gettext_printf (the
11530 string in in question is already translated from grub-reboot)
11531
559dc587
VS
115322012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11533
11534 * configure.ac: Bump up the version to beta1.
11535
1a11761f
VS
115362012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11537
11538 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11539 case when min_align = 0.
11540
24539abd
VS
115412012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11542
11543 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11544 and fix a case when line_start overflows.
11545
32bd735b
VS
115462012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11547
11548 * util/grub-reboot.in (usage): Mention id posibility.
11549 * util/grub-set-default.in (usage): Likewise.
11550
1a2fd1e6
VS
115512012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11552
11553 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11554 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11555 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11556 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11557 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11558 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11559 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11560
90eeab76
VS
115612012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11562
11563 * grub-core/commands/menuentry.c (options): Remove
11564 GRUB_ARG_OPTION_REPEATABLE.
11565 Reported by: Andreas Vogel
11566
5ad1be82
AV
115672012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11568
11569 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11570
cb055286
HE
115712012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11572
11573 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11574 error.
11575
93b1cd79
VS
115762012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11577
11578 Use sort -V by the idea of Georgi Georgiev.
11579
11580 * util/grub-mkconfig_lib.in (version_sort): New function.
11581 (version_test_numeric): Use version_sort.
11582
0cdc126c
VS
115832012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11584
11585 Use submenus in grub-mkconfig.
11586
11587 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11588 * util/grub-mkconfig_lib.in (grub_quote): New function.
11589 (gettext_printf): Use gettext and not gettext_quoted to fix several
11590 messages.
11591 * util/grub.d/10_hurd.in: Use submenus.
11592 * util/grub.d/10_kfreebsd.in: Likewise.
11593 * util/grub.d/10_linux.in: Likewise.
11594 * util/grub.d/10_netbsd.in: Likewise.
11595 * util/grub.d/20_linux_xen.in: Likewise.
11596 * util/grub.d/30_os-prober.in: Likewise.
11597 * util/grub.d/10_illumos.in: Add missing quoting.
11598 * util/grub.d/10_windows.in: Likewise.
11599
d9bef9bc
VS
116002012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11601
11602 Fix menu title instability bug.
11603
11604 * grub-core/commands/menuentry.c (options): New option --id.
11605 (grub_normal_add_menu_entry): New argument id. All users updated.
11606 (grub_cmd_menuentry): Handle --id.
11607 (grub_menu_init): Accept unknown arguments.
11608 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11609 feature_menuentry_options.
11610 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11611 saved_entry.
11612 (get_entry_number): Match with id as well.
11613 * include/grub/menu.h (grub_menu_entry): New member id.
11614 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11615 * util/grub.d/00_header.in: Define menuentry_id_option.
11616 * util/grub.d/10_hurd.in: Define id.
11617 * util/grub.d/10_illumos.in: Likewise.
11618 * util/grub.d/10_kfreebsd.in: Likewise.
11619 * util/grub.d/10_linux.in: Likewise.
11620 * util/grub.d/10_netbsd.in: Likewise.
11621 * util/grub.d/10_windows.in: Likewise.
11622 * util/grub.d/20_linux_xen.in: Likewise.
11623 * util/grub.d/30_os-prober.in: Likewise.
11624
116252012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
11626
11627 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11628 "scope" with "body".
11629
7c8d0ce7
VS
116302012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11631
11632 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11633 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11634 prot_size and prot_file_size.
11635
49de079b
VS
116362012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11637
11638 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11639 All users updated. If easily=1 require raid-5/-6 to be full.
11640 (is_node_readable): Likewise.
11641 (scan_devices): Scan incomplete but readable LVs at the end.
11642 (grub_diskfilter_memberlist): Pull missing devices.
11643 (insert_array): Skip scanning until device is complete or scan is
11644 done otherwise.
11645 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11646 check.
11647 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11648 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11649
aff05d45
MG
116502012-03-03 Matthew Garrett <mjg@redhat.com>
116512012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11652
11653 Avoid EFI boot services when loading Linux.
11654
11655 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11656 avoid_efi_bootservices. All users updated.
11657 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11658 argument avoid_efi_bootservices. All users updated.
11659 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11660 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11661 align, min_align, relocatable, prefered_address. All users updated.
11662 Allocate avoiding boot services if kernel is relocatable.
11663 (grub_cmd_linux): Check if kernel is relocatable.
11664 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11665 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11666 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11667 avoid_efi_boot_services.
11668 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11669 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11670 (linux_kernel_params): Likewise.
11671
3935dde2
MG
116722012-03-03 Matthew Garrett <mjg@redhat.com>
116732012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11674
11675 Use EDID on EFI.
11676
11677 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11678 datasize_out.
11679 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11680 modes. Set gop_handle.
11681 (grub_video_gop_get_edid): New function.
11682 (grub_gop_get_preferred_mode): Likewise.
11683 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11684 (grub_video_efi_gop_adapter): Set .get_edid.
11685 * include/grub/efi/edid.h: New file.
11686 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11687
32107ec0
VS
116882012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11689
11690 * util/grub-install.in: Load efivars unconditionally.
11691
e70a2c50
VS
116922012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11693
11694 * po/Rules-piglatin: Change suffix from .po-update-en to
11695 .po-update-en-piglatin.
11696
8f9cace1
VS
116972012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11698
11699 Add a pig farm.
11700
11701 * po/piglatin.sed: New file.
11702 * po/en@piglatin.header: Likewise.
11703 * po/Rules-piglatin: Likewise.
11704 * po/README: Add en@piglatin to autogenerated languages.
11705
8f95d002
VS
117062012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11709 "Command for ...".
11710 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11711 "Check" since we don't check anything.
11712 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11713 is 64-bit one.
11714 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11715 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11716 (grub_md_sha512_real): Likewise.
11717
805a8dcc
VS
117182012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11719
11720 * grub-core/commands/gptsync.c: Fix typographic quoting.
11721 * grub-core/commands/ieee1275/suspend.c: Likewise.
11722 * grub-core/commands/parttool.c: Likewise.
11723 * grub-core/commands/search_wrap.c: Likewise.
11724 * grub-core/commands/videoinfo.c: Likewise.
11725 * grub-core/gfxmenu/gui_label.c: Likewise.
11726 * grub-core/hello/hello.c: Likewise.
11727 * grub-core/kern/emu/main.c: Likewise.
11728 * grub-core/net/net.c: Likewise.
11729 * grub-core/normal/menu.c: Likewise.
11730 * grub-core/normal/menu_text.c: Likewise.
11731 * grub-core/normal/misc.c: Likewise.
11732 * util/grub-editenv.c: Likewise.
11733 * util/grub-install.in: Likewise.
11734 * util/grub-kbdcomp.in: Likewise.
11735 * util/grub-mkconfig.in: Likewise.
11736 * util/grub-mknetdir.in: Likewise.
11737 * util/grub-mkrescue.in: Likewise.
11738 * util/grub-mkstandalone.in: Likewise.
11739 * util/grub-reboot.in: Likewise.
11740 * util/grub-set-default.in: Likewise.
11741 * util/grub-setup.c: Likewise.
11742 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11743
40211ab8
VS
117442012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11745
11746 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11747 * grub-core/commands/keystatus.c: Likewise.
11748 * grub-core/commands/loadenv.c: Likewise.
11749 * grub-core/commands/probe.c: Likewise.
11750 * grub-core/commands/regexp.c: Likewise.
11751 * grub-core/commands/true.c: Likewise.
11752 * grub-core/commands/videoinfo.c: Likewise.
11753 * grub-core/disk/cryptodisk.c: Likewise.
11754 * grub-core/disk/ldm.c: Likewise.
11755 * grub-core/disk/loopback.c: Likewise.
11756 * grub-core/disk/luks.c: Likewise.
11757 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11758 * grub-core/kern/disk.c: Likewise.
11759 * grub-core/kern/emu/hostdisk.c: Likewise.
11760
0c7d99c7
VS
117612012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11762
11763 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11764 * util/grub-install.in: Add missing quote in the comment.
11765
e7d2559b
VS
117662012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11767
11768 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11769 * grub-core/commands/lsmmap.c: Likewise.
11770 * grub-core/commands/minicmd.c: Likewise.
11771 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11772 * grub-core/commands/regexp.c: Likewise.
11773 * grub-core/gdb/gdb.c: Likewise.
11774 * grub-core/term/gfxterm.c: Likewise.
11775 * util/grub-mkconfig.in: Likewise.
11776 * util/grub-mkfont.c: Likewise.
11777 * util/grub-mklayout.c: Likewise.
11778 * util/grub-mknetdir.in: Likewise.
11779 * util/grub-mkrescue.in: Likewise.
11780 * util/grub.d/30_os-prober.in: Likewise.
11781
49ce9e50
VS
117822012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11783
11784 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11785 with "Direct color" and "Packed" with "Packed pixel".
11786 (grub_cmd_videoinfo): Simplify legend.
11787
e4b791fa
VS
117882012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11789
11790 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11791 absolutely unclear error message.
11792
fd1265cb
VS
117932012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11794
11795 * util/grub-mkstandalone.in: Remove confusing leftover print.
11796
8822a8a0
VS
117972012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11798
11799 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11800 comments.
11801 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11802 (GRUB_MOD_INIT): Likewise.
11803 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11804 VGA mode.
11805 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11806 comments.
11807 * util/grub-install.in (usage): Likewise.
11808 Spell ID in whole letters.
11809 Add missing ending dot.
11810 Quote variables.
11811 * util/grub-reboot.in: Fix capitalisation.
11812 * util/grub-set-default.in: Likewise.
11813
937fd0cc
VS
118142012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11815
11816 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11817 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11818 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11819 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11820 Disable -Werror for -Wdeprecated-declarations.
11821 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11822 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11823 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11824 (grub_util_get_grub_dev): Make luks handling dependent on
11825 HAVE_DEVICE_MAPPER and not __linux__.
11826 (get_win32_path): Fix format security.
11827 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11828 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11829 Don't try grub_find_zpool_from_dir.
11830 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11831 #ifdef-out paresdir.
11832
1bab1ae3
VS
118332012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11834
11835 * util/grub-pe2elf.c (usage): Add missing noreturn.
11836 (write_section_data): Rename name to shname to avoid shadowing.
11837 (write_symbol_table): Rename name to symname to avoid shadowing.
11838 Fix write_reloc_section call.
11839
ef023e42
VS
118402012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11841
11842 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11843 to ensure that it's after the last byte of .text.
11844
48afcb75
VS
118452012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11846
11847 * util/ieee1275/ofpath.c (my_isdigit): New function.
11848 (trailing_digits): Use my_isdigit.
11849 (strip_trailing_digits): Likewise.
11850
88d51eff
VS
118512012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11852
11853 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11854 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11855
17edc2ba
VS
118562012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11857
11858 * grub-core/kern/i386/pc/startup.S: Define __start.
11859
ad5518d7
VS
118602012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11861
11862 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11863 strip already transforms he format.
11864
9e95e1bf
VS
118652012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11866
11867 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11868
9cc3ee5c
VS
118692012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11870
11871 * util/grub-install.in: Add missing gettext init.
11872 * util/grub-kbdcomp.in: Likewise.
11873 * util/grub-mkconfig.in: Likewise.
11874 * util/grub-mknetdir.in: Likewise.
11875 * util/grub-mkrescue.in: Likewise.
11876 * util/grub-mkstandalone.in: Likewise.
11877 * util/grub-reboot.in: Likewise.
11878 * util/grub-set-default.in: Likewise.
11879 * util/grub.d/00_header.in: Likewise.
11880 * util/grub.d/10_hurd.in: Likewise.
11881 * util/grub.d/10_windows.in: Likewise.
11882 * util/grub.d/30_os-prober.in: Likewise.
11883 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11884
49e08a06
VS
118852012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11886
11887 * po/Rules-swiss: Fix header comment.
11888
3809cb41
AV
118892012-02-29 Andreas Vogel <anvoit>
11890
11891 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11892 resulted in leak of arguments.
11893
fa6ec573
VS
118942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11895
11896 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11897 reed_solomon_size const definition instead of computing it since
11898 Apple assembler doesn't support the later.
11899
22899b9c
VS
119002012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11901
11902 * gentpl.py (kernel): Rewrite Apple part.
11903
a132afc3
VS
119042012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11905
11906 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11907
9d742bd4
VS
119082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11909
11910 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11911 ELF section gap.
11912 (load_image): Likewise.
11913
f04a9a21
VS
119142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11915
11916 * configure.ac: Fix a typo in previous commit.
11917
46cf439c
VS
119182012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11919
11920 Don't add -Wl,-N on Apple platform.
11921
11922 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11923 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11924
c4c48c54
VS
119252012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11926
11927 * grub-core/Makefile.core.def (lzma_decompress): Use
11928 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11929
31a12124
VS
119302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11931
11932 * grub-core/genmod.sh.in: Rewrite the Apple part.
11933
4f3aa1af
VS
119342012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11935
11936 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11937 comparison.
11938
7bd8b0c7
VS
119392012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11940
11941 * acinclude.m4 (grub_CHECK_PIC): New test.
11942 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11943
97304d7c
VS
119442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11945
11946 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11947 to avoid the warning.
11948
fb883812
VS
119492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11950
11951 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11952 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11953 after. All users updated.
11954
a121c964
VS
119552012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11956
11957 Use the common size routine in hostfs so we can read disks as well.
11958
11959 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11960 (grub_util_get_fd_size): ... this. Return size in bytes.
11961 All users updated.
11962 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11963 grub_util_get_fd_size.
11964
c66d6410
VS
119652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11966
11967 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11968 Add blocksize retrieval.
11969
dfc8aeb0
VS
119702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11971
11972 * configure.ac: Restore CFLAGS after efiemu check.
11973
403e25a5
VS
119742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11975
11976 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11977 Apple bug.
11978
382775d1
VS
119792012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11980
11981 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11982
6fd4e6e4
VS
119832012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11984
11985 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11986 (grub_cmd_halt): Likewise.
11987
bea359d6
VS
119882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11989
11990 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11991 for local arithmetics.
11992 Break %sp init into 2 instructions.
11993 Add 0 byte at the end.
11994
32eb6ee1
VS
119952012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11996
11997 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11998 before loops.
11999
e8377389
VS
120002012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12001
12002 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12003 for context.
12004
8cb17de7
VS
120052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12006
12007 * grub-core/disk/ldm.c (make_vg): Init part.name.
12008 (grub_ldm_detect): Silence spurious warning.
12009 (grub_util_is_ldm): Likewise.
12010
595717e6
VS
120112012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12014 sane value to avoid a spurious warning.
12015
c4b7e588
VS
120162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12017
12018 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12019 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12020
59824957
VS
120212012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12022
12023 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12024 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12025
70115b99
VS
120262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12027
12028 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12029 hardcoding the relevant info.
12030
56733740
VS
120312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12032
12033 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12034 missing const qualifiers.
12035 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12036
43481481
VS
120372012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12038
12039 * util/getroot.c [__APPLE__]: Add missing includes.
12040 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12041
3cb38f01
VS
120422012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12043
12044 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12045
d9dbf11e
VS
120462012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12047
12048 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12049 avoid conflicts.
12050
0c42a45d
VS
120512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12052
12053 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12054
46c34eb0
VS
120552012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12056
12057 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12058 and grub_file_close call.
12059
99ce1597
VS
120602012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12061
12062 Add LZSS Mach-O support (needed for new xnu kernelcache).
12063
12064 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12065 * grub-core/loader/lzss.c: New file.
12066 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12067 on Mach-O open failure.
12068 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12069 Don't free cmdsXX in uncompressedXX is set.
12070 (grub_macho_file): Init new fields.
12071 New argument is_64bit. All users updated.
12072 Handle compressed. Error out if no suitable architecture is found.
12073 Don't close file.
12074 (grub_macho_open): New argument is_64bit. All users updated.
12075 * grub-core/loader/macho32.c: Add defines for new fields.
12076 * grub-core/loader/macho64.c: Likewise.
12077 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12078 (grub_macho_parse): Handle compressed.
12079 Defer actual processing if compressed.
12080 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12081 "filename". All users updated.
12082 (grub_macho_size): New argument "filename". All users updated.
12083 (grub_macho_get_entry_point): Likewise.
12084 (grub_macho_load): Handle compressed.
12085 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12086 (GRUB_MACHO_LZSS_OFFSET): New define.
12087 (grub_decompress_lzss): New proto.
12088 * include/grub/machoload.h (grub_macho_file): New fields to handle
12089 compressed.
12090 (grub_macho_contains_macho64): Remove proto.
12091 (grub_macho_contains_macho32): Likewise.
12092 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12093
ebd17d6f
VS
120942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12095
12096 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12097
2702b4e4
VS
120982012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12099
12100 Fix make dist.
12101
12102 * Makefile.am (starfield_theme_files): New var.
12103 (starfield_DATA): Use starfield_theme_files.
12104 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12105 Add bootcheck-related files.
12106 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12107 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12108 and font_char_metrics.txt.
12109 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12110 (setjmp): Add lib/ia64/longjmp.S.
12111 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12112 * po/POTFILES.in: Regenerate.
12113 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12114 DISTFILES.common.extra1.
12115 * util/devicemap.c: Removed.
12116 * grub-core/lib/i386/relocator_backward.S: Likewise.
12117 * util/import_gcry.py: Remove unused files. Add extra_dist for
12118 ChangeLog.
12119
cf1adfdf
VS
121202012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12121
12122 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12123 grub_gettext_delete_list before changing grub_gettext_max to avoid
12124 running out of array bounds.
12125
121262012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
12127
12128 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12129 grub_vga_text_init/grub_vga_text_fini.
12130
cf1adfdf 121312012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
12132
12133 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12134
541d92e9
VS
121352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12136
12137 * configure.ac: Bump to 2.00~beta0.
12138
7931dddf
VS
121392012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12140
12141 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12142 missing initialisation.
12143
f1b16fa3
VS
121442012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12145
12146 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12147
83ddae23
VS
121482012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12149
12150 Support v2 xnu boot arguments.
12151
12152 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12153 New argument fsbfreq_out.
12154 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12155 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12156 be used.
12157 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12158 darwin_version.
12159 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12160 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12161 (grub_xnu_boot_params): Rename to ...
12162 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12163 (grub_xnu_boot_params_v2): New struct.
12164
dc693fe6
VS
121652012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12166
12167 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12168 zeroing of CRC field before computing CRC.
12169
5a6e39c2
VS
121702012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12171
12172 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12173 Change order of allocations to decrease fragmentation.
12174
6c21f5d7
VS
121752012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12176
12177 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12178
cfe456dc
CW
121792012-02-27 Colin Watson <cjwatson@ubuntu.com>
12180
12181 Use write-combining MTRR to speed up video with buggy BIOSes.
12182
12183 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12184 (cpuid): New define.
12185 (rdmsr): Likewise.
12186 (wrmsr): Likewise.
12187 (mtrr_base): Likewise.
12188 (mtrr_mask): Likewise.
12189 (grub_vbe_enable_mtrr_entry): New function.
12190 (grub_vbe_enable_mtrr): Likewise.
12191 (grub_vbe_disable_mtrr): Likewise.
12192 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12193 control off to BIOS.
12194 (grub_video_vbe_init): Fill mtrr.
12195 (grub_video_vbe_fini): Disable mtrr.
12196 (grub_video_vbe_get_info_and_fini): Likewise.
12197 (grub_video_vbe_setup): Enable mtrr.
12198
e3c78337
CW
121992012-02-27 Colin Watson <cjwatson@ubuntu.com>
12200
12201 * include/grub/partition.h (grub_partition_map): Change prototype of
12202 embed to take a maximum value for nsectors.
12203 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12204 * include/grub/fs.h (grub_fs): Likewise.
12205 * grub-core/partmap/msdos.c (embed_signatures): New array.
12206 (pc_partition_map_embed): Check for and avoid sectors matching any
12207 of the signatures in embed_signatures, up to max_nsectors.
12208 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12209 returned sector map to max_nsectors.
12210 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12211 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12212 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12213 * util/grub-setup.c (setup): Allow for the embedding area being
12214 split into multiple blocklists. Tell dest_partmap->embed the
12215 maximum number of sectors we care about.
12216
122172012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12218
12219 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12220 Specify blocklist_install and reserver_first_sector for all fs.
12221 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12222 blocklists.
12223
984b973f
VS
122242012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12225
12226 * util/grub-install.in: Clarify strings.
12227 Fix source dir check.
12228
f122e0d6
RL
122292012-02-27 Richard Laager <rlaager@wiktel.com>
12230
12231 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12232 "zfs" and "fuse.zfs" as synonyms.
12233
071114bb
VS
122342012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12235
12236 * configure.ac: Put platform and target_cpu substitutions back since
12237 they are used for directories.
12238
817e6abc
RL
122392012-02-27 Richard Laager <rlaager@wiktel.com>
122402012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12241
12242 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12243 * util/grub.d/20_linux_xen.in: Likewise.
12244
897b7419
RL
122452012-02-27 Richard Laager <rlaager@wiktel.com>
12246
12247 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12248 with full paths.
12249
a414bd15
RL
122502012-02-27 Richard Laager <rlaager@wiktel.com>
12251
12252 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12253 unescape.
12254
30ac48c4
VS
122552012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12256
12257 Don't use insecure popen in getroot.
12258
12259 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12260 (exec_pipe): ... here.
12261 (find_root_devices_from_poolname): Use exec_pipe.
12262
53f13848
VS
122632012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12264
12265 Remove platform and target_cpu replacement.
12266
12267 * configure.ac: Remove platform and target_cpu substitutions.
12268 * tests/util/grub-shell.in: Use modinfo.
12269 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12270 explicitly.
12271
90cb2803
VS
122722012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12273
12274 Autodetect platform in grub-install but allow override.
12275
12276 * util/grub-install.in: Autodetect platform. Support --target and
12277 --directory. Read platform from modinfo.sh.
12278
b9136427
VS
122792012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12280
12281 Support btrfs multi-volume probe.
12282
12283 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12284 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12285 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12286 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12287 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12288 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12289 grub_find_root_devices_from_btrfs if on btrfs.
12290
c36e5cd1
VS
122912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12292
12293 Remove any awareness of *.c util files about target.
12294
12295 * Makefile.util.def (grub-setup): Split to ...
12296 (grub-bios-setup): ... and this.
12297 (grub-sparc64-setup): ... and this.
12298 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12299 * docs/man/grub-setup.h2m: Split into ...
12300 * docs/man/grub-sparc64-setup.h2m: ... this.
12301 * docs/man/grub-bios-setup.h2m: ... and this.
12302 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12303 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12304 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12305 (grub_target_addr_t): Remove.
12306 (grub_target_size_t): Remove.
12307 (grub_target_ssize_t): Remove.
12308 * util/grub-install.in: Use new grub-*-setup.
12309 * util/grub-mkimagexx.c (Elf_Word): New define.
12310 (Elf_Half): Likewise.
12311 (Elf_Section): Likewise.
12312 (ELF_ST_TYPE): Likewise.
12313 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12314 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12315
584b2f8a
VS
123162012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12317
12318 Replace grub_target_addr with more appropriate types.
12319
12320 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12321 grub_target_addr with grub_addr.
12322 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12323 grub_target_addr with grub_port.
12324 (grub_cmd_write): Likewise.
12325 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12326 grub_target_addr with grub_addr.
12327 (grub_cmd_write): Likewise.
12328 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12329
5a0dc6fb
VS
123302012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12331
12332 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12333 const qualifier for vendor_guid.
12334
786aff6e
VS
123352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12336
12337 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12338 const qualifier.
12339 (efiemu_memequal): Likewise.
12340 (find_variable): Likewise.
12341
49017b17
VS
123422012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12343
12344 Fix missing console prototype on qemu-mips.
12345
12346 * include/grub/mips/qemu_mips/console.h: New file.
12347
c5988629
MG
123482012-02-27 Matthew Garrett <mjg@redhat.com>
123492012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12350
12351 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12352 * include/grub/efi/efi.h: Likewise.
12353 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12354 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12355 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12356 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12357 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12358 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12359
e33f8d69
MG
123602012-02-27 Matthew Garrett <mjg@redhat.com>
12361
12362 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12363
fb312cd9
VS
123642012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12365
12366 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12367 error.
12368
7134247c
VS
123692012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12370
12371 * configure.ac: Remove inappropriate use of program_transform_name
12372 on grubdir and bootdir but allow explicit specification of those
12373 variables.
12374
6a313124
VS
123752012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12376
12377 * util/grub-mknetdir.in (grub_prefix): Removed.
12378 (subdir): Use @bootdirname@ and @grubdirname@.
12379
2311c5ca
VS
123802012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12381
12382 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12383
7d5d60f7
VS
123842012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12385
12386 * po/POTFILES.in: Regenerated.
12387
8151bc82
VS
123882012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12389
12390 Remove improper use of program_transform_name on pkglibrootdir.
12391
12392 * configure.ac (pkglibrootdir): Removed.
12393 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12394 * util/grub-mkimage.c: Likewise.
12395
b4a6a533
VS
123962012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12397
12398 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12399 warning.
12400
668f304f
VS
124012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12402
12403 * util/grub-install.in: Use file identifier if no UUID is available
12404 or user explicitly prompted for it.
12405
665f2341
NP
124062012-02-27 Navdeep Parhar <nparhar@gmail.com>
12407
12408 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12409 (freebsd_get_zfs): New function.
12410 (grub_freebsd_boot): Pass zfs UUID.
12411 (grub_cmd_freebsd): Set zfs UUID.
12412
8151bc82 124132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
12414
12415 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12416 pkglibrootdir.
12417
e4c498a1
MG
124182012-02-27 Mike Gilbert <floppym@gentoo.org>
12419
12420 Add configure flag to control libzfs integration.
12421
12422 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12423
1e9a9a3f
VS
124242012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12425
12426 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12427 device.
12428 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12429 small devices.
12430
036985b8
VS
124312012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12432
12433 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12434 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12435 be used on non-modules.
12436
12437 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12438 Rename to grub_boot_init.
12439 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12440 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12441 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12442 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12443 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12444 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12445 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12446 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12447 includes.
12448 (grub_machine_init): Remove empty inits.
12449 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12450 includes.
12451 (grub_machine_init): Remove empty inits.
12452 * grub-core/term/arc/console.c: Remove explicit proto.
12453 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12454 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12455 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12456 grub_at_keyboard_fini.
12457 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12458 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12459 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12460 grub_gfxterm_fini.
12461 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12462 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12463 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12464 grub_vgatext_fini.
12465 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12466 * grub-core/term/serial.c (GRUB_MOD_INIT)
12467 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12468 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12469 grub_serial_fini.
12470 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12471 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12472 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12473 grub_terminfo_fini.
12474 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12475 (GRUB_MOD_FINI): Likewise.
12476 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12477 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12478 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12479 grub_video_radeon_fuloong2e_fini.
12480 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12481 [LOONGSON]: Rename to grub_video_sis315pro_init.
12482 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12483 grub_video_sis315pro_fini.
12484 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12485 [LOONGSON]: Rename to grub_video_sm712_init.
12486 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12487 grub_video_sm712_fini.
12488 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12489 (grub_at_keyboard_fini): Likewise.
12490 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12491 Don't declare grub_{modname}_init.
12492 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12493 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12494 New proto.
12495 (grub_keylayouts_fini) [!EMU]: Likewise.
12496 * include/grub/serial.h (grub_serial_init) [!EMU]:
12497 New proto.
12498 (grub_serial_fini) [!EMU]: Likewise.
12499 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12500 New proto.
12501 (grub_terminfo_fini) [!EMU]: Likewise.
12502 * include/grub/video.h (grub_font_init) [!EMU]:
12503 New proto.
12504 (grub_font_fini) [!EMU]: Likewise.
12505 (grub_gfxterm_init) [!EMU]: Likewise.
12506 (grub_gfxterm_fini) [!EMU]: Likewise.
12507 (grub_video_sm712_init) [!EMU]: Likewise.
12508 (grub_video_sm712_fini) [!EMU]: Likewise.
12509 (grub_video_sis315pro_init) [!EMU]: Likewise.
12510 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12511 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12512 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12513
d5534665
VS
125142012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12515
12516 Make nand a prefix for nand devices.
12517
12518 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12519
10133b5f
VS
125202012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12521
12522 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12523 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12524
8e307a62
VS
125252012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12526
12527 * include/grub/env.h (grub_env_find): Remove prototype.
12528 * grub-core/kern/env.c (grub_env_find): Make static.
12529 (grub_env_set): Remove useless set.
12530
a4c65f34
VS
125312012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12532
12533 * grub-core/kern/i386/realmode.S: Remove useless align.
12534
d87893d5
VS
125352012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12536
12537 * include/grub/dl.h (grub_dl_load_file): Don't export.
12538
50159add
VS
125392012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12540
12541 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12542 grub_dprintf.
12543
b2582b84
VS
125442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12545
12546 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12547 grub_errors.
12548 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12549 not reloading whole superblock but only the part which is really needed.
12550 Remove useless grub_errors.
12551 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12552 grub_errors.
12553
e2a83395
VS
125542012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12555
12556 Don't export grub_get_rtc.
12557
12558 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12559 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12560
e7d2a906
VS
125612012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12562
12563 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12564
6cf1363b
VS
125652012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12566
12567 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 12568 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 12569
eece3349
VS
125702012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12571
12572 Remove prio_list.
12573
12574 * include/grub/list.h (grub_prio_list): Removed.
12575 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12576 GRUB_COMMAND_PRIO_MASK.
12577 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12578 GRUB_COMMAND_FLAG_ACTIVE.
12579 (grub_prio_list_insert): Removed.
12580 (grub_prio_list_remove): Likewise.
12581 (GRUB_AS_PRIO_LIST): Likewise.
12582 (GRUB_AS_PRIO_LIST_P): Likewise.
12583 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12584 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12585 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12586 * grub-core/kern/command.c (grub_register_command_prio): Inline
12587 the prio_list code.
12588 (grub_unregister_command): Likewise.
12589
94f064b4
VS
125902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12591
12592 Fix interrupt mixup from previous commit.
12593
12594 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12595 (grub_realidt): New var.
12596 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12597 Load idt.
12598 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12599 New declaration.
12600 (grub_relocator16_boot): Set grub_relocator16_idt.
12601 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12602 (LOCAL(realidt)): ... this.
12603 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12604 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12605 (grub_realidt): New variable.
12606
27317084
VS
126072012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12608
12609 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12610 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12611 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12612 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12613 Gettextize.
12614 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12615 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12616 * po/POTFILES.in: Regenerate.
12617
47b40053
VS
126182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12619
12620 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12621 errors.
12622
2b343101
VS
126232012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12624
12625 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12626 \0.
12627 (add_length): Likewise.
12628
ff27c3dd
LK
126292012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
126302012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12631
12632 GDB serial and backtrace support.
12633
12634 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12635 (prot_to_real): Likewise.
12636 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12637 * grub-core/Makefile.core.def (backtrace): New module.
12638 (gdb): Likewise.
12639 * grub-core/gdb/cstub.c: New file.
12640 * grub-core/gdb/gdb.c: Likewise.
12641 * grub-core/gdb/i386/idt.c: Likewise.
12642 * grub-core/gdb/i386/machdep.S: Likewise.
12643 * grub-core/gdb/i386/signal.c: Likewise.
12644 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 12645 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
12646 * include/grub/backtrace.h: Likewise.
12647 * include/grub/gdb.h: Likewise.
12648 * include/grub/i386/gdb.h: Likewise.
12649
126502012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
12651
12652 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12653 New function.
12654 (add_length): Likewise.
12655 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12656 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12657 proto.
12658 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12659 __argp_get_display_len.
12660
ff27c3dd 126612012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
12662
12663 $"..." support in scripts.
12664
12665 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12666 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12667 * grub-core/script/yylex.l: Likewise.
12668 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12669 value.
12670
ff27c3dd 126712012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
12672
12673 * gentpl.py: Remove obsolete pkglib_DATA handling.
12674
ff27c3dd 126752012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
12676
12677 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12678 mailing list.
12679
12680 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12681 * util/grub-kbdcomp.in: Likewise.
12682 * util/grub-mkconfig.in: Likewise.
12683 * util/grub-mkconfig_lib.in: Likewise.
12684 * util/grub-mknetdir.in: Likewise.
12685 * util/grub-mkrescue.in: Likewise.
12686 * util/grub-mkstandalone.in: Likewise.
12687 * util/grub-reboot.in: Likewise.
12688 * util/grub-set-default.in: Likewise.
12689 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12690
ff27c3dd 126912012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
12692
12693 Remove GRUB_PREFIX.
12694
12695 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12696 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12697 used for backward compatibility.
12698
ff27c3dd 126992012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
12700
12701 Add new all_video module.
12702
12703 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12704 * grub-core/Makefile.core.def (all_video): New module.
12705 * grub-core/genmoddep.awk: Generate dependency of all_video from
12706 video.lst.
12707 * grub-core/lib/fake_module.c: New file.
12708 * grub-core/normal/main.c (features): Add feature_all_video_module.
12709 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12710 don't do explicit search again.
47454da5 12711 insmod all_video in load_video if available.
22c7ce85 12712
ff27c3dd 127132012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
12714
12715 Another round of string clarification and adding TRANSLATORS comments.
12716
ff27c3dd 127172012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
12718
12719 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12720
ff27c3dd 127212012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
12722
12723 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12724 to grub_ssize_t.
12725 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12726 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12727
ff27c3dd 127282012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
12729
12730 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12731 trailing newline implicitly. All users updated.
12732
ff27c3dd 127332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
12734
12735 Implement serial on IEEE1275 and EFI.
12736
12737 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12738 on emu. Mention arc and emu as the only platforms without serial
12739 support.
12740 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12741 ieee1275 platforms.
12742 * grub-core/term/efi/serial.c: New file.
12743 * grub-core/term/ieee1275/serial.c: Likewise.
12744 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12745 specification if no ns8250 driver is available.
12746 (grub_cmd_serial): Likewise.
12747 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12748 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12749 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12750 (grub_efi_parity_type_t): New type.
12751 (grub_efi_stop_bits_t): Likewise.
12752 (grub_efi_serial_io_interface): New struct.
12753 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12754 available for all interfaces.
12755 Add EFI and IEEE1275 fields.
12756 (grub_ofserial_init): New proto.
12757 (grub_efiserial_init): Likeiwse.
12758 * util/grub.d/00_header.in: Don't check for the presence of serial
12759 module.
12760
ff27c3dd 127612012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
12762
12763 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12764 name as if it was an alias.
12765
114076ef
VS
127662012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12767
12768 * grub-core/commands/lsacpi.c (options): Fix typo.
12769
6a656b0e
VS
127702012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12771
12772 Convert grub-emu to argp.
12773
12774 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12775 emu.
12776 * util/argp_common.c: Rename to ...
12777 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12778 Add missing includes.
12779 * grub-core/kern/emu/main.c: Convert to argp.
12780 * po/POTFILES.in: Regenerate.
12781 * util/grub-install.in (usage): Make first letter lowcase in messages
12782 for uniformity.
12783 * util/grub-setup.c (options): Likewise.
12784
1e3f8ae8
VS
127852012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12786
12787 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12788 Put back accidently commented-out code.
12789
ed167a80
VS
127902012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12791
12792 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12793 loop check using Brent algorithm.
12794 (grub_hfsplus_btree_search): Likewise.
12795
6753c0ec
VS
127962012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12797
12798 * util/grub-install.in: Fix usage of wrong device for PreP install.
12799
4e27343f
VS
128002012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12801
12802 * conf/Makefile.common (CFLAGS_GNULIB): Add
12803 -Wno-unsafe-loop-optimizations.
12804 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12805 on tools.
12806 * grub-core/commands/legacycfg.c: Add pragma to skip
12807 -Wunsafe-loop-optimizations.
12808 (check_password_md5_real): Fix loop counter type.
12809 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12810 reading.
12811 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12812 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12813 loop condition.
12814 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12815 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12816 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12817 condition.
12818 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12819 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12820 avoid possible infinite loops.
12821 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12822 and -Wunsafe-loop-optimizations.
12823 * grub-core/script/yylex.l: Likewise.
12824 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12825 (print_glyphs): Avoid infinite loops.
12826 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12827
697f18b0
GS
128282012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12829
12830 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12831 to avoid infinite loop.
12832 (disp_acpi_rsdt_table): Likewise.
12833
274416e8
VS
128342012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12835
12836 * grub-core/font/font.c (grub_font_load): Add support for default
12837 path for fonts ($prefix/fonts).
12838 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12839 for checking if string is a path.
12840 * grub-core/normal/main.c (features): Add feature_default_font_path.
12841 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12842 * util/grub.d/00_header.in: Use default directory if possible.
12843 * util/grub-install.in: Install unicode.pf2.
12844
b3e08622
VS
128452012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12846
12847 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12848 * po/Rules-swiss: New file.
12849 * po/swiss.sed: Likewise.
12850
fe42ce09
VS
128512012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12852
12853 * grub-core/fs/btrfs.c (find_device): Fix typos.
12854 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12855 * util/grub-mkrelpath.c (argp_parser): Likewise.
12856 Reported by: Yuri Chornoivan.
12857
72f1d065
DO
128582012-02-23 Dalet Omega <daletomega@gmail.com>
12859
12860 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12861 for usual informative messages.
12862
c5884973
DO
128632012-02-23 Dalet Omega <daletomega@gmail.com>
12864
12865 Starfield theme.
12866
12867 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12868 * conf/Makefile.common: Define starfielddir.
12869 * configure.ac: Configure starfield.
12870 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12871 * themes/starfield/README: Likewise.
12872 * themes/starfield/blob_w.png: Likewise.
12873 * themes/starfield/boot_menu_c.png: Likewise.
12874 * themes/starfield/boot_menu_e.png: Likewise.
12875 * themes/starfield/boot_menu_n.png: Likewise.
12876 * themes/starfield/boot_menu_ne.png: Likewise.
12877 * themes/starfield/boot_menu_nw.png: Likewise.
12878 * themes/starfield/boot_menu_s.png: Likewise.
12879 * themes/starfield/boot_menu_se.png: Likewise.
12880 * themes/starfield/boot_menu_sw.png: Likewise.
12881 * themes/starfield/boot_menu_w.png: Likewise.
12882 * themes/starfield/slider_c.png: Likewise.
12883 * themes/starfield/slider_n.png: Likewise.
12884 * themes/starfield/slider_s.png: Likewise.
12885 * themes/starfield/src/blob_nw.xcf: Likewise.
12886 * themes/starfield/src/bootmenu/: Likewise.
12887 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12888 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12889 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12890 * themes/starfield/src/slider_c.xcf: Likewise.
12891 * themes/starfield/src/slider_n.xcf: Likewise.
12892 * themes/starfield/src/slider_s.xcf: Likewise.
12893 * themes/starfield/src/terminalbox/: Likewise.
12894 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12895 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12896 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12897 * themes/starfield/starfield.png: Likewise.
12898 * themes/starfield/terminal_box_c.png: Likewise.
12899 * themes/starfield/terminal_box_e.png: Likewise.
12900 * themes/starfield/terminal_box_n.png: Likewise.
12901 * themes/starfield/terminal_box_ne.png: Likewise.
12902 * themes/starfield/terminal_box_nw.png: Likewise.
12903 * themes/starfield/terminal_box_s.png: Likewise.
12904 * themes/starfield/terminal_box_se.png: Likewise.
12905 * themes/starfield/terminal_box_sw.png: Likewise.
12906 * themes/starfield/terminal_box_w.png: Likewise.
12907 * themes/starfield/theme.txt: Likewise.
12908
17d73325
VS
129092012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12910
12911 * util/grub.d/00_header.in: Add missing export theme.
12912
dbebaf92
VS
129132012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12914
12915 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12916 already included.
12917 Reported by: Eren D.
12918
3d68bffb
VS
129192012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12920
12921 * conf/Makefile.common (grubdatadir): Removed.
12922 (Makefile.am): Move eveything grubdata to pkgdata.
12923
4b59234d
VS
129242012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12925
12926 * grub-core/commands/acpihalt.c (get_sleep_type):
12927 Remove unused variable.
12928
463dcadc
VS
129292012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12930
12931 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12932 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12933 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12934 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12935 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12936 i18n with gettext no-op.
12937 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12938 GRUB_ACPI_OPCODE_STRING_CONST.
12939 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12940 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12941
e5b90c82
VS
129422012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12943
12944 * po/POTFILES.in: Regenerate.
12945
2a704ca9
VS
129462012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12947
12948 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12949 -Wno-error=missing-noreturn.
12950
84f9d341
VS
129512012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12952
12953 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12954 condition to avoid possibly infinite loops.
12955 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12956 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12957
d46683f9
VS
129582012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12959
12960 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12961 condition to avoid possibly infinite loops.
12962
c44866b2
VS
129632012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12964
12965 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12966 on show_error.
12967
96790539
VS
129682012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12969
12970 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12971
1ba7e295
VS
129722012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12973
12974 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12975
21ffe8f1
VS
129762012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12977
12978 * util/bin2h.c (usage): Add missing attribute noreturn.
12979
0ccb6b3c
VS
129802012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12983 if the size isn't divisible by 512.
12984
b00d7fb6
VS
129852012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12986
12987 Make list_push and list_remove functions rather than inline functions
12988 to decrease size and avoid aliasing violations.
12989
12990 * include/grub/list.h (grub_list_push): Move to ...
12991 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12992 * include/grub/list.h (grub_list_remove): Move to ...
12993 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12994
9d369087
VS
129952012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12996
12997 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12998 and -Wunused-result.
12999
af0250d9
VS
130002012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13001
13002 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13003 Reported by: Seth Goldberg
13004
aad32b14
VS
130052012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13006
13007 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13008
ac96441c
ST
130092012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13010
13011 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13012 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13013 command line.
13014 * docs/grub.texi (Simple configuration): Document
13015 GRUB_CMDLINE_GNUMACH.
13016
130172012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
13018
13019 * conf/Makefile.common (platform_SCRIPTS): New variable.
13020 (platform_PROGRAMS): Likewise.
13021 * gentpl.py: Mark *,module and *.image for install.
13022 * grub-core/gdb_grub.in: Add a notice of expected environment.
13023 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13024 (gmodule.pl): Likewise.
13025
ac96441c 130262012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
13027
13028 Replace grub_checkkey with grub_getkey_noblock.
13029
13030 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13031 (grub_getkey_noblock): ... this. All users updated.
13032
ac96441c 130332012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
13034
13035 * grub-core/kern/emu/console.c: Move to ...
13036 * grub-core/term/emu/console.c: ...here.
13037 (grub_ncurses_getkey): Fix return value if no key is detected.
13038
e51b5666
VS
130392012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13040
13041 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13042 (grub_unit_test_fini): Likewise.
13043 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13044
130452012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 * include/grub/test.h (GRUB_UNIT_TEST)
13048
d9a62292
VS
130492012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13050
13051 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13052 Better error handling.
13053 (grub_script_return): Likewise.
13054 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13055
77c9182f
VS
130562012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13057
13058 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13059 rimplicit redifinition.
13060
edb13cf9
VS
130612012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13062
13063 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13064 GRUB.
13065
a9e9dc7c
VS
130662012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13067
13068 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13069 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13070 prompt here.
13071
b4ba8e02
VS
130722012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13073
13074 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13075 as GRUB_ERR_BUG. Don't malloc if no device is available.
13076
dded5540
VS
130772012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13078
13079 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13080 Mark calling with invalid term as GRUB_ERR_BUG.
13081
0cf69874
VS
130822012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13083
13084 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13085 packets rather than raising an error.
13086
59bfe502
VS
130872012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13088
13089 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13090 in if.
13091
db5fc596
VS
130922012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13093
13094 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13095 diagnostic to dprintf.
13096 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13097
e4b7f404
VS
130982012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13099
13100 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13101 device name.
13102
e7b02f9e
VS
131032012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13104
13105 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13106 (grub_ntfs_iterate_dir): Likewise.
13107
0331e102
VS
131082012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13109
13110 Efiemu stylistic fixes and gettext.
13111
13112 * grub-core/efiemu/i386/loadcore32.c
13113 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13114 * grub-core/efiemu/i386/loadcore64.c
13115 (grub_arch_efiemu_relocate_symbols64): Likewise.
13116 * grub-core/efiemu/i386/pc/cfgtables.c
13117 (grub_machine_efiemu_init_tables): Likewise.
13118 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13119 (grub_efiemu_loadcore_initXX): Add a filename argument.
13120 All users updated.
13121 Improved error message.
13122 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13123 Add a filename argument.
13124 All users updated.
13125 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13126 Reclassify double relocation as GRUB_ERR_BUG.
13127
306fc074
VS
131282012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13129
13130 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13131 handling.
13132
794d8ef2
VS
131332012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13134
13135 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13136 on partition.
13137
131382012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
13139
13140 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13141
794d8ef2 131422012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
13143
13144 Improve string. Gettextize.
13145
78dde88e
VS
131462012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13147
13148 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13149 utils.
13150 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13151
4786a90f
VS
131522012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13153
13154 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13155 [GRUB_UTIL]: New function.
13156 (insert_array) [GRUB_UTIL]: Store partmaps.
13157 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13158 partmaps.
13159 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13160 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13161 (probe_abstraction): Print diskfilter and not raid.
13162 Reported by: Lennart Sorensen
13163
0b6225bd
VS
131642012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13165
13166 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13167 * util/grub-mkimagexx.c (MASK3): New define.
13168 (add_value_to_slot_20b): Use MASK3.
13169 (add_value_to_slot_21): Likewise.
13170 (relocate_addresses): Fix format specification.
13171 (load_image): Explicitly init symtab_section.
13172
b055f8f6
VS
131732012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13174
13175 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13176 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13177
b77c2fb7
VS
131782012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13179
13180 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13181 on powerpc.
13182 Reported by: Lennart Sorensen
13183
e3ec28ab
VS
131842012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13185
13186 * gentpl.py: Add missing license header.
13187 * docs/grub.texi: Update copyright year.
13188
c8d9ead6
GS
131892012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13190
13191 Source grub-mkconfig_lib from the build directory at build time.
13192 Suggested by: Vladimir Serbinenko.
13193
13194 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13195 * util/grub-install.in: Define pkgdatadir if not already set, and source
13196 grub-mkconfig_lib from there.
13197 * util/grub-kbdcomp.in: Likewise.
13198 * util/grub-mkconfig.in: Likewise.
13199 * util/grub-mknetdir.in: Likewise.
13200 * util/grub-mkrescue.in: Likewise.
13201 * util/grub-mkstandalone.in: Likewise.
13202 * util/grub-reboot.in: Likewise.
13203 * util/grub-set-default.in: Likewise.
13204 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13205
ebcecdf1
VS
132062012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13207
13208 Increase warning level.
13209
13210 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13211 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13212 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13213 (TARGET_CFLAGS): Likewise.
13214 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13215 * grub-core/Makefile.core.def (decompressor_xz): Add
13216 -Wno-unreachable-code.
13217 (normal): Add -Wno-redundant-decls.
13218 (xzio): Add -Wno-unreachable-code.
13219 (lzopio): Add -Wno-redundant-decls -Wno-error.
13220 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13221 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13222 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13223 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13224 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13225 * grub-core/kern/i386/coreboot/init.c: Add exception to
13226 -Wsuggest-attribute=noreturn.
13227 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13228 * grub-core/kern/ia64/dl_helper.c: Likewise.
13229 * grub-core/kern/mips/dl.c: Likewise.
13230 * grub-core/kern/sparc64/dl.c: Likewise.
13231 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13232 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13233 (memcmp): Likewise.
13234 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13235 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13236 * grub-core/loader/mips/linux.c: Likewise.
13237 * grub-core/loader/multiboot_elfxx.c: Likewise.
13238 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13239 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13240 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13241 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13242 fixme.
13243 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13244 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13245 Fix prototype.
13246
37bb97fe
VS
132472012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13248
13249 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13250 address.
13251
29a3550b
VS
132522012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13253
13254 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13255 Avoid improper use of strings.
13256 (grub_cmd_legacy_initrdnounzip): Likewise.
13257
dfdffd0d
VS
132582012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13259
13260 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13261 attribute.
13262 (grub_util_info): Likewise.
13263 (grub_util_error): Likewise.
13264
102fae4a
VS
132652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13266
13267 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13268 * util/grub-fstest.c (fstest): Likewise.
13269
7e94d044
VS
132702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13273 (grub_md_sha512_real): Likewise.
13274 (grub_util_get_geli_uuid): Likewise.
13275 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13276 (grub_util_biosdisk_open): Fix format specification.
13277 Respect format security.
13278 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13279 (xrealloc): Likewise.
13280 (xasprintf): Likewise.
13281
5ebd9769
VS
132822012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13283
13284 * util/import_gcry.py: Include grub/crypto.h in init.c.
13285
495fc8c1
VS
132862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13287
13288 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13289 (generate_image): Make prefix a const char *.
13290 Fix format specifications. Respect format security.
13291 Avoid void * arithmetics.
13292 Avoid shadowing.
13293 (argp_parser): Remove unused variable. Respect format security.
13294 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13295 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13296 (count_funcs): Remove unused variable.
13297 (relocate_addresses): Fix format specification.
13298 Disable x86-64 with elf32. Remove unused variables.
13299 (add_fixup_entry): Avoid shadowing.
13300 (make_reloc_section): Fix format specification.
13301 Use assert.
13302 (locate_sections): Fix format specifications.
13303 (load_image): Avoid shadowing.
13304
043c2ea3
VS
133052012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13306
13307 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13308 Fix format specifications. Respect format security.
13309 Don't translate already translated grub_errmsg.
13310 (argp_parser): Remove unused variable
13311
3ec65a81
VS
133122012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13313
13314 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13315
a4d9fe4a
VS
133162012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13317
13318 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13319 (main): Likewise. Use xmalloc. Respect format security.
13320
15b81d49
VS
133212012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13322
13323 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13324 a const char *.
13325 (argp_parser): Remove unused variable.
13326
31731fc0
VS
133272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13328
13329 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13330 (add_pixel): Make static.
13331 (add_font): Likewise.
13332 (write_string_section): Make name and str a const char *.
13333 (write_be16_section): Make name a const char *.
13334 (print_glyphs): Make static.
13335 (write_font_ascii_bitmap): Likewise.
13336 (write_font_width_spec): Likewise.
13337 (write_font_pf2): Likewise.
13338 (argp_parser): Remove unused variable.
13339 Respect format security.
13340 (main): Avoid shadowing. Respect format security.
13341
0809527b
VS
133422012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13343
13344 * util/grub-editenv.c (argp_parser): Make static.
13345 (create_envblk_file): Use xmalloc.
13346 (open_envblk_file): Likewise.
13347 Resepect format security.
13348 (set_variables): Respect format security.
13349
45b0c8b7
VS
133502012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13351
13352 * util/getroot.c (grub_find_device): Respect format security.
13353 (get_mdadm_uuid): Remove unused variable.
13354 (grub_util_pull_device): Dont call gettext on already translated
13355 grub_errmsg.
13356 (find_system_device): Remove unused variable.
13357 (grub_util_get_grub_dev): Likewise.
13358 (grub_make_system_path_relative_to_its_root): Respect format security.
13359
1b024b4e
VS
133602012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13361
13362 * util/grub-fstest.c (execute_command): Make first argument
13363 a const char *.
13364 (read_file): Avoid shadowing.
13365 Reuse underlying error message if device open fails.
13366 (cmd_cmp): Respect format security.
13367 (root): Make const char *.
13368 (fstest): Remove args argument and use global copy.
13369 Respect format security.
13370 (argp_parser): Make static.
13371 (main): Make default_root const char *.
13372
5d1d4e28
VS
133732012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13374
13375 * util/grub-mount.c (root): Make const char *.
13376 (execute_command): Make first argument a const char *.
13377 (fuse_init): Respect format security.
13378 (argp_parser): Make static. Remove unused variable.
13379 (main): Make default_root a const char *.
13380 Respect format security.
13381
36eb7379
VS
133822012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13383
13384 * util/grub-probe.c (probe): Don't call gettext on already translated
13385 grub_errmsg.
13386 Remove unused variables.
13387 (argp_parser): Remove unused variable.
13388
76fb2ea9
VS
133892012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13390
13391 * util/grub-script-check.c (argp_parser): Remove unused variable.
13392 (main): Rename read to curread to avoid shadowing.
13393
56c98584
VS
133942012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13395
13396 * util/misc.c (grub_util_write_image_at): Fix format specification.
13397 (grub_util_write_image): Likewise.
13398 (grub_script_execute_argument_to_string): Removed (unused).
13399 (grub_script_execute_menuentry): Likewise.
13400 (grub_putchar): Likewise.
13401
164ebb48
VS
134022012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13403
13404 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13405 (FUNCTION) [GRUB_UTIL]: Likewise.
13406 (VARIABLE) [GRUB_UTIL]: Likewise.
13407
44318d61
VS
134082012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13409
13410 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13411 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13412
31a26002
VS
134132012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13414
13415 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13416 buffer.
13417
134182012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13419
13420 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13421 (LzmaEnc_SaveState): Removed (unused).
13422 (LzmaEnc_RestoreState): Likewise.
13423 (LzmaEnc_InitPriceTables): Made static.
13424 (LzmaEnc_Construct): Likewise.
13425 (LzmaEnc_FreeLits): Likewise.
13426 (LzmaEnc_Destruct): Likewise.
13427 (LzmaEnc_Init): Likewise.
13428 (LzmaEnc_InitPrices): Likewise.
13429 (LzmaEnc_Finish): Likewise.
13430 (LzmaEnc_PrepareForLzma2): Removed (unused).
13431 (LzmaEnc_MemPrepare): Likewise.
13432 (LzmaEnc_GetNumAvailableBytes): Likewise.
13433 (LzmaEnc_GetCurBuf): Likewise.
13434 (LzmaEnc_CodeOneMemBlock): Likewise.
13435
6fa67967
VS
134362012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13437
13438 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13439 (grub_util_ldm_embed): Likewise.
13440
9a7428e6
VS
134412012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13442
13443 * util/grub-editenv.c (print_var): Rename name to varname to
13444 avoid shadowing.
13445 (main): Rename index to curindex to avoid shadowing.
31a26002 13446 Make filename a const char *.
9a7428e6 13447
4f96abd1
VS
134482012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13449
13450 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13451 to arg_getline to avoid shadowing.
13452
44d10dad
VS
134532012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13454
13455 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13456 disk_ to avoid shadowing.
13457
340ba63e
VS
134582012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13459
13460 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13461 curindex to avoid shadowing.
13462 Make static.
13463 (MatchFinder_GetNumAvailableBytes): Make static.
13464
22965bce
VS
134652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13466
13467 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13468 avoid shadowing.
13469
7b5784d4
VS
134702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13471
13472 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13473 argument from encrypt to do_encrypt to avoid shadowing.
13474
6f48ca01
VS
134752012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13476
13477 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13478 incorrect nesting of #if's.
13479
a4ea2dff
VS
134802012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13481
13482 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13483 checks which are always false on some platforms.
13484 (grub_cmd_lsacpi): Likewise.
13485 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13486 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13487 Likewise.
13488
def9fc1b
VS
134892012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13490
13491 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13492 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13493
a67b2a04
VS
134942012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13495
13496 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13497 re_dfa_t to avoid breaking alignment invariants.
13498 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13499 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13500
44c6828d
VS
135012012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13502
13503 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13504 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13505
bebe0dd0
VS
135062012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13507
13508 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13509 Fix declaration.
13510
a9cdb3cf
VS
135112012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13512
13513 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13514 conserve alignment invariants.
13515 (grub_ehci_ehcc_read16): Likewise.
13516 (grub_ehci_oper_read32): Likewise.
13517 (grub_ehci_oper_write32): Likewise.
13518 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13519 Conserve alignment invariants.
13520
ccc3b1b8
VS
135212012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13522
13523 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13524 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13525 declarations.
13526
987fbd95
VS
135272012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13528
13529 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13530 Remove unused variable.
13531
0df363f3
VS
135322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13533
13534 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13535 Remove set in if.
13536
b2c0c4a6
VS
135372012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13538
13539 * include/grub/net.h: Remove double declarations.
13540
690c531f
VS
135412012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13542
13543 Remove "payload" command in ia64 Linux loader since I couldn't
13544 find any evidence of it being used for anything.
13545 Replace "relocate" command with an environment variable
13546
13547 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13548 fields.
13549 (ia64_boot_payload): Removed.
13550 (last_payload): Likewise.
13551 (RELOCATE_OFF): Likewise.
13552 (RELOCATE_ON): Likewise.
13553 (RELOCATE_FORCE): Likewise.
13554 (relocate): Likewise.
13555 (free_pages): Don't free payloads.
13556 (grub_load_elf64): Use common error messages.
13557 Use "linux_relocate" variable.
13558 Increase the space after boot_params.
13559 (grub_cmd_payload): Removed.
13560 (grub_cmd_relocate): Likewise.
13561 (grub_cmd_fpswa): Improve messages.
13562 (cmd_payload): Removed.
13563 (cmd_relocate): Likewise.
13564 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13565 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13566
01783768
VS
135672012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13568
13569 Convert UHCI to DMA framework.
13570
13571 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13572 (grub_uhci_pci_iter): Fill new members
13573 (grub_alloc_td): Use P2V and V2P functions.
13574 (grub_free_queue): Likewise.
13575 (grub_alloc_qh): Likewise.
13576 (grub_uhci_setup_transfer): Likewise.
13577 (grub_uhci_check_transfer): Likewise.
13578
43206939
VS
135792012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13580
13581 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13582 Remove assignment in if while on it.
13583
571e140e
VS
135842012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13585
13586 * util/grub-mkstandalone.in: Fix modules directory.
13587
a9d96eeb
VS
135882012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13589
13590 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13591 on i386-pc target.
13592 (argp_parser): Accept "auto" as compression specification.
13593
e4e37e8d
VS
135942012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13595
13596 Fix `help' with unloaded modules.
13597
13598 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13599 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13600 (grub_dyncmd_dispatcher): Small stylistic fix.
13601 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13602 explicit help is requested.
13603
e1ea3ade
VS
136042012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13605
13606 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13607 Explicitly init restart while on it.
13608
27556881
VS
136092012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13610
13611 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13612 uninited variable.
13613
d65f6b36
VS
136142012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13615
13616 * util/grub-mknetdir.in: Use . rather than source for POSIX
13617 compatibility.
13618
0a1e473c
VS
136192012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13620
13621 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13622
ce6647c8
VS
136232012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13624
13625 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13626 variable.
13627
66747894
VS
136282012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13629
13630 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13631 without quotes.
13632
71645f6e
VS
136332012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13634
13635 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13636
0e1c1f61
VS
136372012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13638
13639 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13640 iteration of partitions.
13641
9c4b5c13
VS
136422012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13643
13644 Improve gettext support. Stylistic fixes and error handling fixes while
13645 on it.
13646
215c90cb
VS
136472012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13648
13649 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13650 part. Instead setup the correct stack in RM.
13651 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13652 for stack.
13653 * include/grub/i386/relocator_private.h: New file.
13654
b5c1f9bf
VS
136552012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13656
13657 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13658 argument.
13659 * util/grub-fstest.c (options): Add missing DEVICE part.
13660
b525fd83
VS
136612012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13662
13663 Clarify and unify messages.
13664
13665 * grub-core/commands/hashsum.c (options): Unify messages.
13666 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13667 literal-only message as translatable.
13668 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13669 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13670 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13671 commands.
13672 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13673 key, not the key used to unlock. Clarify what it's used for.
13674 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13675 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13676 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13677 * util/grub-editenv.c (options): Unify "verbose" message.
13678 * util/grub-fstest.c (read_file): Unify error message.
13679 (fstest): Add quotes around commands.
13680 (options): Unify "verbose" message.
13681 * util/grub-install.in: Add quotes around variable name.
13682 * util/grub-kbdcomp.in: Unify error message.
13683 * util/grub-mkfont.c (main): Likewise.
13684 * util/grub-mkrescue.in: Likewise.
13685 * util/grub-mklayout.c (options): Unify "verbose" message.
13686 * util/grub-mkstandalone.in: Unify help and verbose messages.
13687 * util/grub-mount.c (options): Unify "verbose" message.
13688 * util/grub-probe.c (options): Likewise.
13689 * util/grub-script-check.c (options): Likewise.
13690 * util/grub-setup.c (setup): Unify no-terminator message.
13691 (options): Use DEVICE and not DEV.
13692 Unify "verbose" message.
13693 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13694
0ae70393
VS
136952012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13696
13697 Improve and unify messages.
13698
13699 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13700 name. All users updated.
13701 Print filename in error.
13702 (read_device_map): Print filename in error.
13703 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13704 (grub_util_get_os_disk): Likewise.
13705 (grub_util_biosdisk_get_grub_dev): Likewise.
13706 (grub_util_check_block_device): Likewise.
13707 (grub_util_check_char_device): Likewise.
13708 (grub_make_system_path_relative_to_its_root): Likewise.
13709 * util/grub-editenv.c (create_envblk_file): Likewise.
13710 (open_envblk_file): Likewise.
13711 (write_envblk): Likewise.
13712 * util/grub-fstest.c (cmd_cp): Likewise.
13713 (cmd_cat): Likewise.
13714 (cmd_cmp): Likewise.
13715 * util/grub-menulst2cfg.c (main): Likewise.
13716 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13717 (write_font_width_spec): Likewise.
13718 (write_font_pf2): Likewise.
13719 * util/grub-mkimage.c (generate_image): New argument outname.
13720 All users updated.
13721 Remove unreacheable message.
13722 (options): Unify messages.
13723 (help_filter): Likewise.
13724 * util/grub-mklayout.c (usage): Removed (unused).
13725 (main): Print filename in error.
13726 * util/grub-mkrescue.in: Fix wrong quoting.
13727 * util/grub-setup.c (setup): Print filename in error.
13728 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13729 (check_sas): Likewise.
13730 * util/misc.c (grub_util_get_fp_size): Removed.
13731 (grub_util_get_image_size): Print filename in error.
13732 (grub_util_read_at): Removed.
13733 (grub_util_read_image): Print filename in error.
13734 (grub_util_load_image): Likewise.
13735 (grub_util_write_image_at): New argument filename. All users updated.
13736 Print filename in error.
13737 (grub_util_write_image): New argument filename. All users updated.
13738 Print filename in error.
13739 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13740 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13741
0a96117d
VS
137422012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13743
13744 * grub-core/Makefile.core.def (pxechain): New module.
13745 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13746 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13747 function.
13748 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13749 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13750
aca002f7
VS
137512012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13752
13753 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13754 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13755 * include/grub/err.h (grub_error_saved): New struct.
13756 (grub_errmsg): Make array size explicit.
13757 * include/grub/misc.h (grub_error_save): New function.
13758 (grub_error_load): Likewise.
13759 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13760 (grub_error_push): Update `errno' member name.
13761 (grub_error_pop): Likewise
13762 * grub-core/net/tftp.c (tftp_data): New member save_err.
13763 (tftp_receive): Save error.
13764 (tftp_open): Restore error.
13765
a51dab13
VS
137662012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13767
13768 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13769 to real mode down to execute A20-related code in protected mode as
13770 intended.
13771
eb6e6649
GS
137722012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13773
13774 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13775 NULL when the argument `level' has an unexpected value.
13776
92cd0f6e
VS
137772012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13778
13779 Move platform-dependent files from $prefix to $prefix/$platform.
13780
13781 * config.h.in (GRUB_TARGET_CPU): New definition.
13782 (GRUB_PLATFORM): Likewise.
13783 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13784 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13785 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13786 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13787 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13788 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13789 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13790 * grub-core/normal/term.c (read_terminal_list): Likewise.
13791 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13792 $prefix/locale.
13793 (grub_gettext_init_ext): Likewise.
13794 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13795 grub_platform.
13796 * util/grub-install.in: Update directories.
13797 * util/grub-mknetdir.in: Likewise.
13798 * util/grub-mkrescue.in: Likewise.
13799
db606889
VS
138002012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13801
13802 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13803 grub_error framework. All users updated.
13804
c39992a4
VS
138052012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13806
13807 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13808 lists (by always binsearching), improve caching (cache strings
13809 used for binsearch, not only results), improve
13810 maintainability (by using more structured binary search) and correct
13811 error handling.
13812
1e5ec32f
VS
138132012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13814
13815 * grub-core/script/execute.c (grub_script_return): Fix warning.
13816
ac576cde
VS
138172012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13818
13819 * grub-core/script/execute.c (grub_script_return): Fix potential
13820 NULL-dereference.
13821 Reported by: Jim Meyering.
13822
498453f6
VS
138232012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13824
13825 * po/POTFILES.in: Regenerate.
13826 * util/grub-install.in: Gettextize the strings missed in first pass.
13827
8be63f2e
VS
138282012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13829
13830 * Makefile.util.def (grub-mkdevicemap): Removed.
13831 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13832 * include/grub/util/deviceiter.h: Removed.
13833 * util/deviceiter.c: Likewise.
13834 * util/getroot.c (grub_util_get_os_disk): New function.
13835 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13836 replacement for EFI.
13837 * util/grub-mkdevicemap.c: Removed.
13838 * util/grub-probe.c (probe): Handle PRINT_DISK.
13839 (argp_parser): Handle -t disk.
13840
8e1e4e39
VS
138412012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13842
13843 * util/grub-mkfont.c: Migrate to argp.
13844 * util/grub-mklayout.c: Likewise.
13845 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13846 * util/grub-mkrelpath.c: Likewise.
13847 * util/grub-probe.c: Likewise.
13848 * util/grub-script-check.c: Likewise.
13849
4459819a
VS
138502012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13851
13852 * util/grub-reboot.in: Add missing datarootdir.
13853 Add missing newline.
13854 * util/grub-set-default.in: Add missing datarootdir.
13855 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13856 * util/grub-mkrescue.in: Likewise.
13857
f65741c7
VS
138582012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13859
13860 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13861
c1a33466
VS
138622012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13863
13864 * util/grub-kbdcomp.in: Add decent help and gettextize.
13865 * docs/man/grub-kbdcomp.h2m: New file.
13866
c76899a0
VS
138672012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13868
13869 Migrate grub-mkimage.c to argp.
13870
13871 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13872 (grub-setup): Likewise.
13873 * util/grub-setup.c (print_version): Move to ...
13874 * util/argp_common.c (print_version): ... here.
13875 * util/grub-setup.c (argp_program_version_hook): Move to ...
13876 * util/argp_common.c (argp_program_version_hook): ... here.
13877 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13878 safety.
13879 * util/grub-mkimage.c (main): Migrate to argp.
13880
57db0757
VS
138812012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13882
13883 * util/grub-mkrescue.in: Use same message as
13884 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13885 for better translations.
13886
18534ad9
VS
138872012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13888
13889 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13890 options with generic grub-mkrescue.in with the goal of future
13891 merge.
13892
c84ba308
VS
138932012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13894
13895 * grub-core/kern/mm.c: Add missing include of i18n.h
13896 * grub-core/lib/relocator.c: Likewise.
13897
347998c2
VS
138982012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13899
13900 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13901 error.
13902 (allocate_pages): Check return value.
13903 Replace fatal with error.
13904 (grub_linux_boot): Replace printf with dprintf.
13905 Check find_mmap_size return value.
13906 Replace fatal with error.
13907 Don't call grub_machine_fini.
13908 (grub_load_elf64): Replace printf with dprintf.
13909 (grub_cmd_linux): Likewise.
13910 (grub_cmd_initrd): Likewise.
13911 (grub_cmd_payload): Likewise.
13912
c779226e
VS
139132012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13914
13915 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13916 message.
13917 * grub-core/video/radeon_fuloong2e.c
13918 (grub_video_radeon_fuloong2e_setup): Likewise.
13919 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13920 * grub-core/video/video.c (grub_video_set_mode): Don't override
13921 standard out of memory message.
13922
dc87d45a
GS
139232012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13924
13925 NetBSD disk wedge support.
13926
13927 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13928 [__NetBSD__]: Handle NetBSD disk wedges.
13929 * util/getroot.c (convert_system_partition_to_system_disk)
13930 [__NetBSD__]: Likewise.
13931
055f856f
MW
139322012-02-03 Mark Wooding <mdw@distorted.org.uk>
13933
13934 * util/grub-mkconfig.in: Use umask rather than chmod to create
13935 grub.cfg.new to avoid insecure grub.cfg.
13936
4a9f8346
VS
139372012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13938
13939 * grub-core/commands/ls.c: Gettextize.
13940 * grub-core/commands/setpci.c: Likewise.
13941 * grub-core/commands/videotest.c: Likewise.
13942 * grub-core/disk/geli.c: Likewise.
13943 * grub-core/kern/mm.c: Likewise.
13944 * grub-core/lib/relocator.c: Likewise.
13945 * grub-core/loader/efi/appleloader.c: Likewise.
13946 * grub-core/loader/i386/xnu.c: Likewise.
13947 * grub-core/loader/ia64/efi/linux.c: Likewise.
13948 * grub-core/loader/xnu.c: Likewise.
13949 * grub-core/net/dns.c: Likewise.
13950 * grub-core/net/net.c: Likewise.
13951 * grub-core/script/lexer.c: Likewise.
13952 * grub-core/script/parser.y: Likewise.
13953 * grub-core/script/yylex.l: Likewise.
13954 * util/getroot.c: Likewise.
13955 * util/grub-setup.c: Likewise.
13956
a646a366
VS
139572012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13958
13959 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13960 number.
13961
54e2be26
VS
139622012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13963
13964 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13965
f7c71e68
VS
139662012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13967
13968 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13969 macro.
13970 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13971 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13972
a32d5c71
VS
139732012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13974
13975 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13976 * util/grub-install.in: Gettextize.
13977 * util/grub-mkconfig.in: Likewise.
13978 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13979 if not available.
13980 (grub_warn): Gettextize.
13981 * util/grub-mknetdir.in: Gettextize.
13982 * util/grub-mkrescue.in: Likewise.
13983 * util/grub-mkstandalone.in: Likewise.
13984 * util/grub-reboot.in: Likewise.
13985 * util/grub-set-default.in: Likewise.
13986 * util/grub.d/00_header.in: Likewise.
13987 * util/grub.d/10_hurd.in: Likewise.
13988 * util/grub.d/10_kfreebsd.in: Likewise.
13989 * util/grub.d/10_linux.in: Likewise.
13990 * util/grub.d/10_netbsd.in: Likewise.
13991 * util/grub.d/10_windows.in: Likewise.
13992 * util/grub.d/20_linux_xen.in: Likewise.
13993 * util/grub.d/30_os-prober.in: Likewise.
13994 * po/POTFILES-shell.in: Regenerate.
13995
69edd81a
RL
139962012-02-03 Richard Laager <rlaager@wiktel.com>
13997
13998 * util/grub-mkimage.c (main): Fix format-security warning.
13999 * util/grub-mkrelpath.c (main): Likewise.
14000 * util/grub-probe.c (main): Likewise.
14001
65f08dbf
RL
140022012-02-03 Richard Laager <rlaager@wiktel.com>
14003
14004 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14005 failure.
14006 Put back lost PRINT_DRIVE.
14007
e9084abe
RL
140082012-02-03 Richard Laager <rlaager@wiktel.com>
14009
14010 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14011 (grub_guess_root_devices): Replace strlen with sizeof.
14012 Avoid crash.
14013 (find_root_devices_from_poolname): Remove unused variable.
14014 Handle raidzN.
14015
cf5f7ee7
VS
140162012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14017
14018 Support install on multi-device filesystems.
14019
14020 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14021 (grub_guess_root_devices): ...this. Return char **. All users updated.
14022 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14023 Removed.
14024 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14025 (find_root_devices_from_poolname): ... here.
14026 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14027 Support zfs-fuse.
14028 (grub_guess_root_device): Rename to ...
14029 (grub_guess_root_devices): ... this. Return char **. All users updated.
14030 * util/grub-install.in: Handle multi-device filesystems.
14031 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14032 argument. All users updated.
14033 Handle multi-device filesystems.
14034 Use 'delim' as separator.
14035 Remove device check to allow filesystems on file.
14036 (main): Support -0 argument. Handle multi-device.
14037 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14038 Fix a cross-device check while on it.
14039 (arguments): Remove root_dev.
14040 (argp_parser): Remove -r.
14041 (main): Remove root_dev.
14042
2f53a9ed
VS
140432012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14044
14045 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14046
17e1d934
VS
140472012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14048
14049 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14050 symbol.
14051 Reported by: NODA, Kai <nodakai>.
14052
d3e3fab5
VS
140532012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14054
14055 Fix ehci on amd64.
14056
14057 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14058 pointers.
14059 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14060 (grub_ehci_setup_qh): Likewise.
14061 (grub_ehci_find_qh): Likewise.
14062 (grub_ehci_transaction): Likewise.
14063 (grub_ehci_setup_transfer): Likewise.
14064 (grub_ehci_check_transfer): Likewise.
14065 (grub_ehci_portstatus): Likewise.
14066 (grub_ehci_detect_dev): Likewise.
14067 (grub_ehci_transfer_controller_data): New field td_last_phys.
14068 (grub_ehci_setup_transfer): Fill td_last_phys.
14069 (grub_ehci_check_transfer): Use td_last_phys.
14070
3008675b
SG
140712012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14072
14073 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14074 if no submenu is present.
14075
fc9b5652
AN
140762012-02-01 Aleš Nesrsta <starous@volny.cz>
14077
14078 CBI support.
14079
14080 * include/grub/usb.h (grub_usbms_protocol_t): New values
14081 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14082 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14083 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14084 (grub_usbms_dev): Add subclass, protocol and intrpt.
14085 Remove in_maxsz and out_maxsz.
14086 (grub_usbms_reset): Rename to ...
14087 (grub_usbms_bo_reset): .. this.
14088 (grub_usbms_cbi_cmd): New function.
14089 (grub_usbms_cbi_reset): Likewise.
14090 (grub_usbms_reset): Likewise.
14091 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14092 (grub_usbms_transfer): Rename to ...
14093 (grub_usbms_transfer_bo): ... this.
14094 (grub_usbms_transfer_cbi): Likewise.
14095 (grub_usbms_transfer): Likewise.
14096
a2b81d53
AN
140972012-02-01 Aleš Nesrsta <starous@volny.cz>
140982012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14099
14100 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14101 the support for the CS5536 modification thereos and few bugfixes.
14102
14103 * grub-core/Makefile.core.def (ehci): New module.
14104 * grub-core/bus/usb/ehci.c: New file.
14105 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14106 port and hubaddr. All users updated.
14107 Save port and hubaddr into dev structure.
14108 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14109 define.
14110 * include/grub/pci.h (grub_dma_phys2virt): New function.
14111 (grub_dma_virt2phys): Likewise.
14112 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14113
b1d51f02
VS
141142012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14115
14116 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14117 check as some mkfs implementations omit it.
14118
fc694106
VS
141192012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14120
14121 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14122
6c0920e3
VS
141232012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14124
14125 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14126 Add new member volname2.
14127 (grub_jfs_label): Use volname2 if available.
14128
d1a46f9a
VS
141292012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14130
14131 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14132 over last_mounted as seen in image generated by mkfs.nilfs2.
14133 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14134
dec8ed14
VS
141352012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14136
14137 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14138 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14139 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14140
7397c69b
VS
141412012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14142
14143 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14144 over the sector.
14145
b3fe42ad
VS
141462012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14147
14148 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14149 subvolume name (by removing a bogus and useless check).
14150
10476bb0
VS
141512012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14152
14153 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14154 sizeof while on it.
14155
9c08ad87
VS
141562012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14157
14158 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14159 (grub_scsi_read_capacity10): ... this.
14160 (grub_scsi_read_capacity16): New function.
14161 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14162 0xffffffff.
14163 Fix off-by-one error.
14164 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14165 64-bit unsigned.
14166 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14167 (grub_scsi_read_capacity10): ... this.
14168 (grub_scsi_read_capacity_data): Rename to ...
14169 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14170 (grub_scsi_read_capacity16): New struct.
14171 (grub_scsi_read_capacity16_data): Likewise.
14172 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14173 grub_scsi_cmd_read_capacity10.
14174 New command grub_scsi_cmd_read_capacity16.
14175
bc8d0f45
VS
141762012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14177
14178 SCSI >2TiB support.
14179
14180 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14181 (grub_scsi_write16): Likewise.
14182 (grub_scsi_read): Use read16 when necessary.
14183 (grub_scsi_write): Likewise.
14184 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14185 (grub_scsi_write16): Likewise.
14186 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14187
cc774926
VS
141882012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14189
14190 SCSI write support (for usbms mainly).
14191
14192 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14193 a const pointer.
14194 (grub_scsi_write): Implement.
14195 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14196
67639fd7
VS
141972012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14198
14199 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14200 variable.
14201
9079d3ed
VS
142022012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14203
14204 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14205
c6a6f204
VS
142062012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14207
14208 * po/POTFILES.in: Regenerate.
14209
ecbf8cd1
VS
142102012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14211
14212 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14213 with grub_printf to avoid unnecessary fatal failure.
14214
0b3b3b38
VS
142152012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14216
14217 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14218 (INT_MAX): Likewise.
14219 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14220 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14221 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14222 (strcpy): Likewise.
14223 (strstr): Likewise.
14224 (strchr): Likewise.
14225 (strncpy): Likewise.
14226 (strcat): Likewise.
14227 (strncat): Likewise.
14228 (strcoll): Likewise.
14229 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14230 (GRUB_INT_MAX): Likewise.
14231
db7337a3
VS
142322012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14233
14234 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14235 unexpected error.
14236 (optimize_utf8): Likewise.
14237 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14238
f37c87e1
VS
142392012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14240
14241 * grub-core/boot/i386/pc/lnxboot.S: Use
14242 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14243 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14244 location.
14245 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14246 definition.
14247 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14248
63fe43f3
VS
142492012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14250
14251 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14252 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14253 now to avoid double free.
14254 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14255 hostdisk.
14256 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14257 * util/grub-probe.c (escape_of_path): Always return a new copy.
14258 (print_full_name): Escape path.
14259 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14260 Fix hints on abstractions.
14261
ebe2c961
VS
142622012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14263
14264 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14265 Don't add "root" line if no compatibility hont is available.
14266 Suggested by: Seth Goldberg.
14267
2b5336a2
VS
142682012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14269
14270 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14271 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14272 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14273 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14274
74310bd8
VS
142752012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14276
14277 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14278
c30582ba
VS
142792012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14280
14281 * util/grub-pe2elf.c (ehdr): Make static.
14282 (shdr): Likewise.
14283 (num_sections): Likewise.
14284 (offset): Likewise.
14285
5f47782c
VS
142862012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14287
14288 Eliminate ofpath limits and possible overflows.
14289
14290 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14291 (OF_PATH_MAX): Removed.
14292 (MAX_DISK_CAT): New const.
14293 (find_obppath): Use allocated rather than preallocated buffer.
14294 Return result. Argument of_path removed. All users updated.
14295 Add missing fdstat.
14296 (xrealpath): New function.
14297 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14298 Allocate rather than use preallocated buffer. All users updated.
14299 (__of_path_common): Use allocated rather than preallocatecd buffer.
14300 Return result. Argument of_path removed. All users updated.
14301 (vendor_is_ATA): Read only needed part form the file.
14302 (check_sas): Allocate depending on contents rather than fixed.
14303 (main) [STANDALONE]: Handle NULL result.
14304
f990cbf9
VS
143052012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14306
14307 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14308
9c6e84b8
VS
143092012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14310
14311 Cryptodisk write support.
14312
14313 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14314 (grub_cryptodisk_decrypt): Moved logic to ...
14315 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14316 (grub_cryptodisk_write): Implement.
14317 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14318 (grub_util_fd_write): ... this. Make global.
14319 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14320
87cf9744
VS
143212012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14322
14323 * include/grub/list.h (grub_list_remove): Don't crash if element is
14324 removed twice.
14325
ca8c0baf
VS
143262012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14327
14328 Rename ofconsole to console.
14329
14330 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14331 as sysnonym to console.
14332 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14333 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14334 Rename grub_ofconsole_ to grub_console_. All users updated
14335 (grub_console_term_output): Rename "ofconsole" to "console".
14336 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14337 as "console".
14338
64c8b8f6
VS
143392012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14340
14341 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14342 handling.
14343 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14344 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14345 GRUB_DISK_DEVICE_FILE_ID.
14346
f6c434d5
VS
143472012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14348
14349 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14350 and improve performance.
14351
5858b42d
VS
143522012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14353
14354 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14355 missing ieee1275/ prefix on whole disk.
14356
4ed3c26b
VS
143572012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14358
14359 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14360 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14361
df71143e
VS
143622012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14363
14364 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14365
076e7c0f
VS
143662012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 Merge common RAID and LVM logic to an abstract diskfilter.
14369 Add LDM support using the same framework.
14370
14371 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14372 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14373 (libgrubmods): Remove grub-core/disk/raid.c and
14374 grub-core/partmap/gpt.c.
14375 * grub-core/Makefile.core.def (ldm): New module.
14376 (raid): Renamed to diskfilter. All users updated.
14377 * grub-core/disk/raid.c: Moved to ...
14378 * grub-core/disk/diskfilter.c: ... here.
14379 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14380 (lv_num): New var.
14381 (find_array): Renamed to ...
14382 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14383 (grub_is_array_readable): Renamed to ...
14384 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14385 (insert_array): New argument id.
14386 (is_node_readable): New function.
14387 (scan_device): Rename to ...
14388 (scan_disk): .. this. Restrict to one disk.
14389 (scan_devices): New function.
14390 (grub_diskfilter_iterate): Support multi-LV.
14391 Skip invisible and nameless LVs.
14392 (grub_diskfilter_memberlist): Support multi-LV.
14393 (grub_diskfilter_read_node): New function.
14394 (grub_raid_read): Most of logic moved to ...
14395 (read_segment): ... here
14396 (read_lv): New function.
14397 (grub_diskfilter_get_vg_by_uuid): New function.
14398 (grub_diskfilter_make_raid): Likewise.
14399 * grub-core/disk/ldm.c: New file.
14400 * grub-core/disk/lvm.c (vg_list): Removed.
14401 (lv_count): Likewise.
14402 (scan_depth): Likewise.
14403 (is_lv_readable): Likewise.
14404 (grub_lvm_getvalue): Advance pointer past the number.
14405 (find_lv): Removed.
14406 (do_lvm_scan): Refactored into ...
14407 (grub_lvm_detect): ... this. Support raid.
14408 (grub_lvm_iterate): Removed.
14409 (grub_lvm_memberlist): Likewise.
14410 (grub_lvm_open): Likewise.
14411 (grub_lvm_close): Likewise.
14412 (read_lv): Likewise.
14413 (read_node): Likewise.
14414 (is_node_readable): Likewise.
14415 (is_lv_readable): Likewise.
14416 (grub_lvm_read): Likewise.
14417 (grub_lvm_write): Likewise.
14418 (grub_lvm_dev): Use diskfilter
14419 (GRUB_MOD_INIT): Likewise.
14420 (GRUB_MOD_FINI): Likewise.
14421 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14422 new interface.
14423 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14424 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14425 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14426 grub_diskfilter_read_node.
14427 Fix a bug with xor.
14428 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14429 grub_diskfilter_read_node.
14430 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14431 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14432 (grub_disk_dev_iterate): Move from here...
14433 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14434 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14435 Make global.
14436 (grub_hostdisk_find_partition_start): Likewise.
14437 (grub_hostdisk_os_dev_to_grub_drive): New function.
14438 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14439 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14440 * util/getroot.c (make_device_name): ... here.
14441 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14442 Move to ...
14443 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14444 * grub-core/kern/emu/hostdisk.c
14445 (convert_system_partition_to_system_disk): Move to ...
14446 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14447 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14448 * util/getroot.c (device_is_wholedisk): ... here.
14449 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14450 * util/getroot.c (find_system_device): ... here.
14451 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14452 Move to ...
14453 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14454 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14455 Move to ...
14456 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14457 Handle LDM.
14458 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14459 Move to ...
14460 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14461 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14462 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14463 DISKFILTER.
14464 * include/grub/raid.h: Renamed to ...
14465 * include/grub/diskfilter.h: ... this.
14466 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14467 (GRUB_RAID_LAYOUT_*): Make into array.
14468 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14469 (grub_diskfilter_vg): New struct.
14470 (grub_diskfilter_pv_id): Likewise.
14471 (grub_raid_member): Removed.
14472 (grub_raid_array): Likewise.
14473 (grub_diskfilter_pv): New struct.
14474 (grub_diskfilter_lv): Likewise.
14475 (grub_diskfilter_segment): Likewise.
14476 (grub_diskfilter_node): Likewise.
14477 (grub_diskfilter_get_vg_by_uuid): New proto.
14478 (grub_raid_register): Inline.
14479 (grub_diskfilter_unregister): Likewise.
14480 (grub_diskfilter_make_raid): New proto.
14481 (grub_diskfilter_vg_register): Likewise.
14482 (grub_diskfilter_read_node): Likewise.
14483 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14484 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14485 (grub_util_is_ldm): Likewise.
14486 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14487 (grub_hostdisk_find_partition_start): Likewise.
14488 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14489 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14490 New definition.
14491 (grub_gpt_partition_map_iterate): New proto.
14492 * include/grub/lvm.h (grub_lvm_vg): Removed.
14493 (grub_lvm_pv): Likewise.
14494 (grub_lvm_lv): Likewise.
14495 (grub_lvm_segment): Likewise.
14496 (grub_lvm_node): Likewise.
14497 * util/getroot.c [...]
14498 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14499 (probe_abstraction): Likewise.
14500 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14501 (main): Remove dead logic.
14502
8a7f9b9c
VS
145032012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14504
14505 Simplify root device discover and don't fail when trying to open
14506 incorrect devices.
14507
14508 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14509 function.
14510 (get_diskname_from_path): Likewise.
14511 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14512 of iterating.
14513
30545b85
VS
145142012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14517
28ea58cf
VS
145182012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14519
14520 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14521 pastthe end.
14522
692dabca
VS
145232012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14524
14525 * util/grub-install.in: Add missing \.
14526 Reported by: gentoofan
14527
f6e4ea70
VS
145282012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14529
14530 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14531 (direct_read): Use correct compressed size.
14532 (grub_squash_read_data): Likewise.
14533
145342012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
14535
14536 * docs/grub.texi (Platform limitations): New section.
14537 (Platform-specific operations): Likewise.
14538 * docs/grub-dev.texi (Porting): Likewise.
14539
76261110
VS
145402012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14541
14542 IEEE1275 disk write support.
14543
14544 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14545 const void *.
14546 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14547 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14548 and seek loginc to ...
14549 (grub_ofdisk_prepare): ... here.
14550 (grub_ofdisk_write): Implement.
14551
fc36d603
VS
145522012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 ARC disk write support.
14555
14556 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14557 (reopen): New argument writable. All users updated.
14558 Handle required access mode.
14559 (grub_arcdisk_write): Implement.
14560 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14561 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14562
e06c2e7a
VS
145632012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14564
14565 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14566 (read_sblock): Don't attempt to read superblocks outside the disk size.
14567
ff447958
VS
145682012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14569
14570 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14571 first superblock to find the second one when possible.
14572
9e88df39
VS
145732012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14574
14575 * util/grub-install.in: Fix an ARC bug.
14576 Print a warning if no platform-specific setup is available.
14577
bb26e4ff
VS
145782012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14579
14580 Use static allocation rather than scratch pointer in reed_solomon.
14581 It decreases its size significantly and avoids a variable in .text.
14582
14583 * grub-core/lib/reed_solomon.c (scratch): Removed.
14584 (chosenstat): New const or static array.
14585 (sigma): Likewise.
14586 (errpot): Likewise.
14587 (errpos): Likewise.
14588 (sy): Likewise.
14589 (mstat): Likewise.
14590 (errvals): Likewise.
14591 (eqstat): Likewise.
14592 (pol_evaluate): Replace x with log_x argument. All users updated.
14593 (syndroms): Removed.
14594 (gauss_solve): Use statically allocated arrays.
14595 (rs_recover): Likewise.
14596 Calculate syndroms directly.
14597 (decode_block): Use statically allocated arrays.
14598 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14599 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14600
2e13ede5
VS
146012012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14602
14603 Eliminate fixed limit on reed solomon decoder length.
14604
14605 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14606 rather than hardcoding the address.
14607 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14608 no_reed_solomon_length.
14609 Move gate_a20 to no-reed-solomon part.
14610 Don't force a particular size of no reed-solomon part.
14611 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14612 Removed.
14613 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14614 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14615
f8a9ab12
VS
146162012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14617
14618 * grub-core/commands/wildcard.c (match_files): Handle filenames
14619 without explicit device.
14620 (wildcard_expand): Don't add explicit device if not already present.
14621 * tests/grub_script_echo1.in: Add a new expansion test.
14622
87edb894
VS
146232012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14624
14625 Replace single-linked with double-linked lists. It results in more
14626 compact and more efficient code.
14627
14628 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14629 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14630 (grub_list_remove): Moved from here ...
14631 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14632 (grub_prio_list_insert): Set prev.
14633 * include/grub/list.h (grub_list): Add prev. All users updated.
14634
48b391e9
VS
146352012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14636
14637 Handle newer autotools. Add some missing quotes while on it.
14638
14639 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14640 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14641 (pkgdata_DATA): ... here.
14642 * Makefile.util.def (update-grub_lib): Removed.
14643 * conf/Makefile.common (pkglib_DATA): Removed.
14644 (pkglib_SCRIPTS): Likewise.
14645 (pkgdata_DATA): New variable.
14646 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14647 needed.
14648 Add missing quotes.
14649 Remove unused variable while on it.
14650 * tests/util/grub-shell.in: Likewise.
14651 * util/grub-install.in: Likewise.
14652 * util/grub-mkconfig.in: Likewise.
14653 * util/grub-mknetdir.in: Likewise.
14654 * util/grub-mkrescue.in: Likewise.
14655 * util/grub-mkstandalone.in: Likewise.
14656 * util/grub.d/00_header.in: Likewise.
14657 * util/grub.d/10_hurd.in: Likewise.
14658 * util/grub.d/10_illumos.in: Likewise.
14659 * util/grub.d/10_kfreebsd.in: Likewise.
14660 * util/grub.d/10_linux.in: Likewise.
14661 * util/grub.d/10_netbsd.in: Likewise.
14662 * util/grub.d/10_windows.in: Likewise.
14663 * util/grub.d/20_linux_xen.in: Likewise.
14664 * util/grub.d/30_os-prober.in: Likewise.
14665 * util/update-grub_lib.in: Removed.
14666
146672012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
14668
14669 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14670 a workaround for intel problem.
14671
66832792
PRP
146722012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
146732012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
146742012-01-23 pfsmorigo
14675
14676 * util/grub-install.in: Support dd'in into PreP partition.
14677 * util/grub-probe.c (probe): Support discovering partition type.
14678 (main): Support -t msdos_parttype.
14679
7816a17e
VS
146802012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14681
14682 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14683 infinite recursion using counter.
14684 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14685 init to skip it if the magic check fails.
14686 (dec_stream_header): Init s->crc32.
14687
8f9d3a8c
ZB
146882012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
146892012-01-22 Zachary Bedell <pendorbound@gmail.com>
146902012-01-22 Richard Laager <rlaager@wiktel.com>
14691
14692 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14693 All users updated.
14694 (find_bestub): Determine correct size.
14695 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14696 (scan_disk): Align the size down.
14697 Call check pool before find_bestub to have ashift.
14698
b055dd32
VS
146992012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14700
14701 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14702 dprintf in no-malloc zone.
14703
d779e9bd
ML
147042012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14705
14706 * configure.ac: Add back in test for limits.h.
14707
b508af69
VS
147082012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14709
14710 Support 4K-sector NTFS.
14711
14712 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14713 (grub_ntfs_data): Remove blocksize.
14714 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14715 Remove data argument. All users updated.
14716
dad9c8b5
VS
147172012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14718
14719 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14720 being in .text to avoid dprel references.
14721 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14722 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14723 (grub_arch_highmemsize): Likewise.
14724 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14725 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14726 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14727
d43a777e
VS
147282012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14729
14730 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14731
14732 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14733 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14734
34e4208f
VS
147352012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14736
14737 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14738 GRUB_UTIL.
14739 (grub_set_datetime_cmos): Likewise.
14740
3ec0fc1c
VS
147412012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14742
14743 Make XZ compression parameters dependent on target and not host CPU.
14744
14745 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14746 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14747
22489834
VS
147482012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14749
14750 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14751 set but not used variable.
14752
8502fbca
VS
147532012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14754
14755 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14756 created when no uuid support is compiled into mkfs.reiser.
14757
76df2068
VS
147582012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14759
14760 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14761 (utf8_to_macroman): Do the opposite.
14762 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14763
64e3f8f6
VS
147642012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14765
14766 * configure.ac: Refise build qemu_mips w/o unifont.
14767
9c271078
VS
147682012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14769
14770 Eliminate grub_min/grub_max prone to overflow usage.
14771
14772 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14773 (poll_nonroot_hub): Likewise.
14774 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14775 (grub_affs_label): Likewise.
14776 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14777 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14778 (grub_hfs_label): Likewise.
14779 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14780 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14781 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14782 (zap_leaf_array_get): Likewise.
14783 (dnode_get_path): Likewise.
14784 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14785 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14786 * grub-core/script/execute.c (grub_script_break): Likewise.
14787 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14788 grub_max.
14789 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14790 * include/grub/misc.h (grub_min): Removed.
14791 (grub_max): Likewise.
14792
80662dbc
VS
147932012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14794
14795 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14796 direct.inode = 0.
14797
e6da1467
VS
147982012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14799
14800 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14801
b1ac4cb1
VS
148022012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14803
14804 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14805
b4bf7c3b
VS
148062012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14807
14808 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14809 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14810
8ee1101a
VS
148112012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14812
14813 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14814 rather than a hack for grub_strncasemap.
14815
148162012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14817
14818 Support multiple initrds
14819 Note: part of this was accidently committed in r3739.
14820
14821 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14822 initrd.
14823 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14824 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14825 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14826 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14827 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14828
4d1e2bc9
VS
148292012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14830
14831 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14832 disks with unknown size.
14833 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14834
75b49ebe
VS
148352012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14836
14837 Remove defines pertaining to arbitrary limits not affecting GRUB
14838 anymore.
14839
14840 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14841 (EXT2_MAX_SYMLINKCNT): Likewise.
14842 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14843 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14844 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14845 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14846 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14847 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14848 (DN_MAX_OBJECT_SHIFT): Likewise.
14849 (DN_MAX_OFFSET_SHIFT): Likewise.
14850 (DN_MAX_OBJECT): Likewise.
14851 (DNODES_PER_LEVEL_SHIFT): Likewise.
14852 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14853 (SPA_MAXBLOCKSIZE): Likewise.
14854 (SPA_BLOCKSIZES): Likewise.
14855 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14856 (MZAP_MAX_BLKSZ): Likewise.
14857
74a1dce7
VS
148582012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14859
14860 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14861 handle NULL appropriately.
14862 Remove MIN.
14863
30c7d3ce
VS
148642012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14865
14866 Fix efiemu.
14867
14868 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14869 cpu/types.h.
14870 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14871 * configure.ac: Fix efiemu check.
14872
3c76ea0c
VS
148732012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14874
14875 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14876 grub_probe.
14877 Reported by: adamwill
14878
7e532280
SG
148792012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14880
14881 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14882
30492374
VS
148832012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14884
14885 Fix handling of wide characters in gfxterm.
14886
14887 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14888 (clear_char): Likewise.
14889 (paint_char): Skip code == NULL chars.
14890 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14891
e70cb72f
VS
148922012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14893
14894 * grub-core/normal/charset.c: Move comment to right place.
14895
5c827cf9
VS
148962012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14897
14898 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14899 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14900 (grub_affs_mount): Revert the correct version checking.
14901
53603892
VS
149022012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14903
14904 * docs/grub.texi (Unicode): Mention several other unsupported features.
14905
ff094b9b
VS
149062011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14907
14908 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14909 case statements as compile-time one.
14910 (direct_read): Prevent spurious warnings.
14911 (grub_squash_read_data): Likewise.
14912
c029da8a
VS
149132011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14914
14915 Various squash4 fixes and LZO and XZ support.
14916
14917 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14918 Add xzembed source files.
14919 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14920 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14921 (grub_squash_inode): New subtype long_dir.
14922 (SQUASH_TYPE_LONG_DIR): New inode type.
14923 (COMPRESSION): New enum.
14924 (XZBUFSIZ): New const.
14925 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14926 (read_chunk): Use data->decompress.
14927 (zlib_decompress): New function.
14928 (lzo_decompress): Likewise.
14929 (xz_decompress): Likewise.
14930 (squash_mount): Set new data fields.
14931 (grub_squash_iterate_dir): Handle long dir.
14932 (squash_unmount): Free xzdec and xzbuf.
14933 (grub_squash_open): Check ino type.
14934 (direct_read): Stylistic fixes. Use data->decompress.
14935 (grub_squash_read_data): Likewise.
14936 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14937 (get_byte): Likewise.
14938 (grub_zlib_disk_read): Removed.
14939 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14940 (GRUB_POSIX_BOOL_DEFINED): New define.
14941 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14942 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14943 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14944 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14945
7a45a539
VS
149462011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14947
14948 Don't override more informative errors.
14949
14950 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14951 * grub-core/font/font.c (open_section): Likewise.
14952 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14953 filename. Don't override errors.
14954 (grub_cmd_openbsd_ramdisk): Don't override errors.
14955 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14956 (grub_cmd_initrd): Likewise.
14957 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14958 (grub_cmd_initrd): Likewise.
14959 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14960 (grub_cmd_linux): Likewise.
14961 (grub_cmd_initrd): Likewise.
14962 (grub_cmd_payload): Likewise.
14963 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14964 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14965 (grub_cmd_module): Likewise.
14966 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14967 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14968 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14969 (grub_cmd_xnu_mkext): Likewise.
14970 (grub_cmd_xnu_ramdisk): Likewise.
14971 (grub_xnu_check_os_bundle_required): Likewise.
14972 (grub_xnu_load_kext_from_dir): Likewise.
14973 (grub_cmd_xnu_kextdir): Likewise.
14974 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14975
b2d004db
VS
149762011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14977
14978 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14979 as 1024 in block size field. Found on one of my test images.
14980 Small optimisation while on it.
14981
ec000eac
VS
149822011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14983
14984 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14985 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14986 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14987 performance fixes while on it.
14988 (grub_sfs_close): Fix memory leak while on it.
14989 (grub_sfs_label): Convert Latin1 to UTF-8.
14990
f50e1165
VS
149912011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14992
14993 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14994 space to avoid overflows.
14995 (grub_hfs_label): Convert from macroman to UTF-8.
14996
2ae254de
VS
149972011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14998
14999 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15000
0108f491
VS
150012011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15002
15003 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15004
f45f5f89
VS
150052011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15006
15007 * unicode: Import Unicode 6.0 data.
15008
4d8c4765
VS
150092011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15010
63fa8ef9
VS
15011 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15012 outside of range.
15013
150142011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15015
15016 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
15017
15018 * include/grub/charset.h (grub_getend): New function.
15019 * grub-core/script/function.c (grub_script_function_find): Use
15020 grub_getend.
15021 * grub-core/normal/completion.c (add_completion): Likewise.
15022
f3cb4a4e
VS
150232011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15024
15025 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15026 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15027 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15028 (GRUB_UNICODE_TAG_END): Likewise.
15029 (GRUB_UNICODE_LAST_VALID): Likewise.
15030
5da8dbc5
VS
150312011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15032
15033 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15034 len and make it smaller. All users updated.
15035 * util/import_unicode.py: Put length and not end character.
15036 Check length.
15037
8569f13d
VS
150382011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15039
15040 Make better Unicode-compliant and unify some UTF-8 code pathes.
15041
15042 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15043 valid character.
15044 (grub_is_valid_utf8): Use grub_utf8_process.
15045 Check resulting code range.
15046 (grub_utf8_to_ucs4): Use grub_utf8_process.
15047 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15048 valid character.
15049
cc4fddf5
VS
150502011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15053
bbc47747
VS
150542011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15055
15056 * docs/grub.texi (Filesystems): Mention AFS.
15057
f63d6bf4
VS
150582011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15059
15060 * docs/grub.texi (Filesystems): Clarify restrictions.
15061 (Regexp): Mention non-Unicode regexp behaviour.
15062 (Other): Mention non-Unicode matching behaviour.
15063
74bbf0db
VS
150642011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15065
f63d6bf4 15066 Make HFS implementation use MacRoman.
74bbf0db
VS
15067
15068 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15069 (macroman): New const array.
15070 (macroman_to_utf8): New function.
15071 (utf8_to_macroman): Likewise.
15072 (grub_hfs_find_dir): Use utf8_to_macroman.
15073 (grub_hfs_dir): Use macroman_to_utf8.
15074 Set case_insensitive.
15075
4ea0316e
VS
150762011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15077
15078 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15079
d3c13cbd
VS
150802011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15081
15082 Integrate hints into autogeneration scripts.
15083
15084 * docs/grub.texi (Filesystems): Add a hostdisk example.
15085 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15086 (grub-probe): Add ofpath.
15087 * gentpl.py: Remove group nosparc64.
15088 * grub-core/commands/search.c (cache_entry): New struct.
15089 (cache): New var.
15090 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15091 * grub-core/commands/search_wrap.c (options): Add platform-specific
15092 hint options.
15093 (grub_cmd_search): Handle platform-specific hints.
15094 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15095 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15096 (grub_util_biosdisk_data): Likewise.
15097 (grub_util_biosdisk_open): Set device_map.
15098 (read_device_map): Handle "" as indication of no map.
15099 Set device_map.
15100 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15101 (grub_util_biosdisk_get_compatibility_hint): New function.
15102 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15103 * include/grub/emu/hostdisk.h
15104 (grub_util_biosdisk_get_compatibility_hint): New proto.
15105 * util/grub-install.in: Don't call grub-mkdevicemap.
15106 Add platform-specific hint to load.cfg.
15107 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15108 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15109 hints. Set root preliminary to compatibility hint, not to OS name.
15110 * util/grub-probe.c (PRINT_*): Add hints.
15111 (print): Make static.
15112 (escape_of_path): New function.
15113 (guess_bios_drive): Likewise.
15114 (guess_efi_drive): Likewise.
15115 (guess_baremetal_drive): Likewise.
15116 (print_full_name): Likewise.
15117 (probe): Handle hints.
15118 (main): Likewise.
15119 * util/ieee1275/devicemap.c: Removed.
15120 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15121 updated.
15122 (grub_util_devname_to_ofpath): Return NULL on failure.
15123
15124 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15125 resource leak.
15126 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15127
15128 * po/POTFILES.in: Regenerated.
15129
15130 Allow purely long options
15131
15132 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15133 (SHORT_ARG_USAGE): Likewise.
15134 (grub_arg_show_help): Compare opt with help_options.
15135 (parse_option): Receive opt as argument. If makes big simplificatons.
15136 All users updated
15137
00ce2df3
VS
151382011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15139
15140 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15141 Restructure to avoid warning.
15142
e77e325f
VS
151432011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15144
15145 * util/grub-install.in: Account for possible escaped comma in device
15146 name.
15147
165099ea
VS
151482011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15149
15150 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15151 channel.
15152
ce4a999d
VS
151532011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15154
15155 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15156 allocation and zero-setting.
15157 (grub_ieee1275_get_devname): Check that alias is complete.
15158
379586ad
VS
151592011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15160
15161 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15162 unaligned segments.
15163
9197b0ad
VS
151642011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15165
15166 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15167 prefix.
15168 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15169 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15170 Add ieee1275 prefix.
15171
edddb7f9
VS
151722011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15173
15174 * docs/grub.texi (Filesystems): Update.
15175
a1a8b1b9
VS
151762011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15177
15178 Support odc, newc and bigendian cpio formats.
15179
15180 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15181 * grub-core/Makefile.core.def (newc): New module.
15182 (odc): Likewise.
15183 (cpio_be): Likewise.
15184 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15185 (MAGIC): Likewise.
15186 (MAGIC2): Likewise.
15187 (head) [MODE_ODC]: Adapt for the format.
15188 (head) [MODE_NEWC]: Likewise.
15189 (head) [!MODE_*]: Write fields of interest as arrays.
15190 (MAGIC_USTAR): Removed.
15191 (read_number) [MODE_NEWC]: Change to hex.
15192 (read_number) [!MODE_*]: Parse binary arrays.
15193 (grub_cpio_find_file): Factor out the code for better structure and
15194 always use read_number.
15195 (grub_cpio_mount): Use MAGIC and MAGIC2.
15196 (grub_cpio_dir): Exit on first hook non-0 return.
15197 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15198 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15199 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15200 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15201 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15202 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15203 * grub-core/fs/newc.c: New file.
15204 * grub-core/fs/odc.c: Likewise.
15205 * grub-core/fs/cpio_be.c: Likewise.
15206
58eba9ee
VS
152072011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15208
15209 Fix handling of tar numbers occupying the whole field.
15210
15211 * grub-core/fs/cpio.c (read_number): New function.
15212 (grub_cpio_find_file): Use read_number instead of strtoull.
15213
a54a0e12
VS
152142011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15215
15216 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15217 occupying the whole field size.
15218
a6120aca
LA
152192011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15220
15221 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15222
a93964ce
VS
152232011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15224
15225 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15226
3ea1ca46
SG
152272011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15228
15229 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15230 TARGET_IMG_LDFLAGS.
15231
b87f7ef2
VS
152322011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15233
15234 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15235 (mountinfo_entry): Increase the field size to take escaping into
15236 account.
15237 (find_root_device_from_libzfs): Add one byte to size of strings for
15238 security.
15239
62092395
VS
152402011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15241
15242 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15243 an assert.
15244 * util/grub-setup.c (setup): Likewise.
15245
1f0b1a77
VS
152462011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15247
15248 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15249 _LzmaDecodeA.
15250
8eba9997
VS
152512011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 * docs/grub.texi (Internationalisation): New section.
15254
dd0c91e9
VS
152552011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15256
15257 * docs/grub.texi (Loopback booting): New section.
15258
152592011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
15260
15261 * util/grub-mkstandalone.in: Fix minor typo errors.
15262
198e150a
VS
152632011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15264
15265 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15266
15267 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15268 net/icmp.c and net/icmp6.c.
15269 (http): New module.
15270 (priority_queue): Likewise.
15271 * grub-core/io/bufio.c: Rewritten.
15272 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15273 TYPE_WITH_CONFIGFILE_OPTION.
15274 (legacy_commands): Add bootp and dhcp.
15275 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15276 (grub_legacy_parse): Likewise.
15277 * grub-core/lib/priority_queue.c: New file.
15278 * grub-core/net/arp.c: Add missing license header.
15279 (arp_find_entry): Removed.
15280 (arp_find_entry): Likewise.
15281 (grub_net_arp_resolve): Rename to ...
15282 (grub_net_arp_send_request): ...this.
15283 (grub_net_arp_receive): New card argument.
15284 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15285 Set router and DNS server.
15286 (grub_net_configure_by_dhcp_ack): Handle routing information.
15287 (grub_cmd_bootp): Set checksum.
15288 (grub_bootp_init): Remove net_dhcp.
15289 * grub-core/net/dns.c: New file.
15290 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15291 completion.
15292 (get_card_packet): Handle allocation.
15293 (grub_efinet_findcards): Set mtu.
15294 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15295 (get_card_packet): Handle allocation.
15296 (emucard): Set mtu.
15297 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15298 (GRUB_MOD_INIT): Set mtu.
15299 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15300 mtu.
15301 (get_card_packet): Handle allocation.
15302 (grub_ofnet_findcards): Set mtu.
15303 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15304 assert.
15305 (grub_net_recv_ethernet_packet): Handle IPv6.
15306 * grub-core/net/http.c: New file.
15307 * grub-core/net/icmp.c: Likewise.
15308 * grub-core/net/icmp6.c: Likewise.
15309 * grub-core/net/ip.c (ip6addr): New type.
15310 (ip6hdr): Likewise.
15311 (reassemble): Likewise.
15312 (cmp): New function.
15313 (reassembles): New variable.
15314 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15315 (id): New variable.
15316 (send_fragmented): New function.
15317 (grub_net_send_ip_packet): Rename to ...
15318 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15319 Handle non-UDP.
15320 (grub_net_recv_ip_packets): Rename to ...
15321 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15322 (free_rsm): New function.
15323 (free_old_fragments): Likewise.
15324 (grub_net_recv_ip4_packets): New function.
15325 (grub_net_send_ip6_packet): Likewise.
15326 (grub_net_send_ip_packet): Likewise.
15327 (grub_net_recv_ip6_packets): Likewise.
15328 (grub_net_recv_ip_packets): Likewise.
15329 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15330 (LINK_LAYER_CACHE_SIZE): New const.
15331 (link_layer_find_entry): New function.
15332 (grub_net_link_layer_add_address): Likewise.
15333 (grub_net_link_layer_resolve_check): Likewise.
15334 (grub_net_link_layer_resolve): Likewise.
15335 (grub_net_ipv6_get_slaac): Likewise.
15336 (grub_net_ipv6_get_link_local): Likewise.
15337 (grub_cmd_ipv6_autoconf): Likewise.
15338 (parse_ip): Handle one number representation.
15339 (parse_ip6): New functoion.
15340 (match_net): Handle IPv6.
15341 (grub_net_resolve_address): Handle IPv6 and DNS.
15342 (grub_net_resolve_net_address): Handle IPv6.
15343 (route_cmp): New function.
15344 (grub_net_route_address): Find best route.
15345 (grub_net_addr_to_str): Handle IPv6.
15346 (grub_net_addr_cmp): New function.
15347 (grub_net_add_addr): Register local route.
15348 (print_net_address): Handle net address.
15349 (grub_net_poll_cards): Retransmit TCP.
15350 (grub_net_poll_cards_idle_real): Likewise.
15351 (have_ahead): New function.
15352 (grub_net_seek_real): Use underlying seek.
15353 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15354 * grub-core/net/tcp.c: New file.
15355 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15356 (cmp): New function.
15357 (ack): Likewise.
15358 (tftp_receive): Handle unordered input.
15359 (destroy_pq): New function.
15360 (tftp_close): Close pq.
15361 * grub-core/net/udp.c: Put missing license header.
15362 (grub_net_udp_socket): New function.
15363 (udp_socket_register): Likewise.
15364 (grub_net_udp_close): Likewise.
15365 (grub_net_recv_udp_packet): Check checksum.
15366 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15367 * include/grub/misc.h (grub_memchr): New function.
15368 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15369 (grub_net_card_driver): Return buf in recv.
15370 (grub_net_slaac_mac_list): New struct.
15371 (grub_network_level_protocol_id): Add ipv6.
15372 (grub_net_network_level_addr): Likewise.
15373 (grub_net_network_level_net_addr): Likewise.
15374 (grub_net_app_protocol): Add seek.
15375 (grub_net_socket): Removed.
15376 (grub_net_sockets): Likewise.
15377 (grub_net_socket_register): Likewise.
15378 (grub_net_socket_unregister): Likewise.
15379 (FOR_NET_SOCKETS): Likewise.
15380 (grub_net_add_addr): Add const.
15381 (GRUB_NET_BOOTP_*): New enum.
15382 (grub_net_addr_cmp): New proto.
15383 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15384 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15385 (grub_net_hwaddr_to_str): NEw proto.
15386 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15387 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15388 (grub_dns_init): New proto.
15389 (grub_dns_fini): Likewise.
15390 (grub_net_tcp_retransmit): Likewise.
15391 (grub_net_link_layer_add_address): Likewise.
15392 (grub_net_link_layer_resolve_check): Likewise.
15393 (grub_net_link_layer_resolve): Likewise.
15394 (grub_net_dns_lookup): Likewise.
15395 (grub_net_add_dns_server): Likewise.
15396 (grub_net_remove_dns_server): Likewise.
15397 (GRUB_NET_TRIES): New const.
15398 (GRUB_NET_INTERVAL): Likewise.
15399 * include/grub/net/arp.h: Mostly rewritten.
15400 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15401 * include/grub/net/ip.h: Mostly rewritten.
15402 * include/grub/net/netbuff.h: Indent.
15403 * include/grub/net/tcp.h: New file.
15404 * include/grub/net/udp.h: Mostly rewritten.
15405 * include/grub/priority_queue.h: New file.
15406 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15407 (grub_swap_bytes64_compile_time): Likewise.
15408 (grub_cpu_to_be16_compile_time): Likewise.
15409 (grub_cpu_to_be32_compile_time): Likewise.
15410 (grub_cpu_to_be64_compile_time): Likewise.
15411 (grub_be_to_cpu64_compile_time): Likewise.
15412
215c1800
VS
154132011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15414
15415 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15416 UINT_TO_PTR with cast.
15417
c17e546c
VS
154182011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15419
15420 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15421 don't use them.
15422
ff6b18b6
VS
154232011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15424
15425 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15426 already there.
15427
70ffcc93
VS
154282011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15429
15430 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15431 confusing ipxe.
15432
e5f4d260
VS
154332011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15434
15435 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15436 Add missing const attribute.
15437 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15438 Likewise.
15439 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15440 Likewise.
15441
8e54b4b7
VS
154422011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15443
15444 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15445 misaligned access.
15446 (serpent_setkey): Likewise.
15447 (serpent_encrypt_internal): Likewise.
15448 (serpent_decrypt_internal): Likewise.
15449 (serpent_encrypt): Don't put an alignment-increasing cast.
15450 (serpent_decrypt): Likewise.
15451 (serpent_test): Likewise.
15452
813c0a2b
VS
154532011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15454
15455 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15456
f2b60fbd
VS
154572011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15458
15459 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15460
15461 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15462 grub_addr_t casts.
15463 (PTR_TO_UINT64): Likewise.
15464 (PTR_TO_UINT32): Likewise.
15465
5ef5c511
VS
154662011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15467
15468 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15469 because of stack.
15470 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15471 limit.
15472
c476e6df
VS
154732011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15474
15475 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15476 text_width > available width a bit more gracefully.
15477
384ad7cc
VS
154782011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15479
15480 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15481 current address calculation.
15482
96f8caf8
VS
154832011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15484
15485 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15486 stack.
15487 (encode_block): Likewise.
15488
276b7a8b
VS
154892011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15490
15491 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15492 certainety.
15493
e3fd394a
VS
154942011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15495
15496 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15497 non-RS part to avoid RS messing with GDT.
15498 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15499 Increase to suit in realmode routines.
15500
155012011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15502
15503 * grub-core/kern/i386/realmode.S: Increase alignment.
15504 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15505
ee9c2e7a
VS
155062011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15507
15508 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15509 be deterministic.
15510 (syndroms): Compute 0 syndrom.
15511 (rs_recover): Use 0 syndrom.
15512
7a7f7cc9
VS
155132011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15514
15515 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15516
a14b16d1
VS
155172011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15518
15519 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15520 brackets.
15521
9f59e9fc
VS
155222011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15523
ca1b552c
VS
15524 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15525 account.
15526 (get_top_pad): Likewise.
15527 (get_right_pad): Likewise.
15528 (get_bottom_pad): Likewise.
15529
155302011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15531
15532 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 15533
e739d698
VS
155342011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15535
15536 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15537 attribute as the structure isn't guaranteed to be properly aligned.
15538 (grub_efi_pci_device_path): Likewise.
15539 (grub_efi_pccard_device_path): Likewise.
15540 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15541 specify the size of `memory_type'.
15542 (grub_efi_vendor_device_path): Likewise.
15543 (grub_efi_controller_device_path): Likewise.
15544 (grub_efi_acpi_device_path): Likewise.
15545 (grub_efi_expanded_acpi_device_path): Likewise.
15546 (grub_efi_atapi_device_path): Likewise.
15547 (grub_efi_scsi_device_path): Likewise.
15548 (grub_efi_fibre_channel_device_path): Likewise.
15549 (grub_efi_1394_device_path): Likewise.
15550 (grub_efi_usb_device_path): Likewise.
15551 (grub_efi_usb_class_device_path): Likewise.
15552 (grub_efi_i2o_device_path): Likewise.
15553 (grub_efi_mac_address_device_path): Likewise.
15554 (grub_efi_ipv4_device_path): Likewise.
15555 (grub_efi_ipv6_device_path): Likewise.
15556 (grub_efi_infiniband_device_path): Likewise.
15557 (grub_efi_uart_device_path): Likewise.
15558 (grub_efi_vendor_messaging_device_path): Likewise.
15559 (grub_efi_hard_drive_device_path): Likewise.
15560 (grub_efi_cdrom_device_path): Likewise.
15561 (grub_efi_vendor_media_device_path): Likewise.
15562 (grub_efi_file_path_device_path): Likewise.
15563 (grub_efi_protocol_device_path): Likewise.
15564 (grub_efi_piwg_device_path): Likewise.
15565 (grub_efi_bios_device_path): Likewise.
15566
cb8f88ea
VS
155672011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15568
15569 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15570 (grub_ucs4_to_utf8_alloc): Likewise.
15571 (grub_ucs4_to_utf8): Likewise.
15572 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15573 (grub_ucs4_to_utf8_alloc): Likewise.
15574
309e5352
VS
155752011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15576
15577 AFFS never uses unicode.
15578
15579 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15580 (grub_latin1_to_utf8): New inline function.
15581 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15582
e7987e1b
VS
155832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15584
15585 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15586 overflow.
15587
efc2616e
VS
155882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15589
15590 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15591 (grub_squash_dirent_header): Likewise.
15592 (read_chunk): Don't double swap.
15593 (grub_squash_iterate_dir): Fix swap sizes.
15594
3c349f5a
VS
155952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15596
15597 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15598
b453412d
VS
155992011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15600
15601 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15602 (grub_hfs_iterate_dir): Likewise.
15603
12e9d4d1
VS
156042011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15605
15606 Fix video on platforms where unaligned access is forbidden.
15607 Make several optimisations while on it.
15608
15609 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15610 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15611 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15612 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15613 Disable.
15614 (grub_video_fbblit_replace_16bit_1bit):
15615 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15616 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15617 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15618 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15619 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15620 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15621 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15622 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15623 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15624 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15625 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15626 (grub_video_fbblit_replace_index_RGB888): Likewise.
15627 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15628 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15629 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15630 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15631 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15632 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15633 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15634 Disable.
15635 (grub_video_fbblit_blend_XXX565_1bit):
15636 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15637 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15638 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15639 void *.
15640 * grub-core/video/fb/video_fb.c (common_blitter)
15641 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15642 (grub_video_fb_create_render_target_from_pointer)
15643 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15644 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15645 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15646 definition.
15647 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15648
ace96609
VS
156492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15650
15651 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15652 HH22 and HM10 relocations.
15653
fd261d73
VS
156542011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15655
15656 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15657
e59b7857
VS
156582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15659
15660 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15661 allocation succeeded.
15662
9b4baaa4
VS
156632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15664
15665 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15666 argument a u8 pointer. All users updated.
15667 Handle unaligned buffers.
15668
dc713193
VS
156692011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15670
15671 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15672 add_part to workaround compiler bug.
15673
30dd48c2
VS
156742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15675
15676 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15677
0c6087a8
VS
156782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15679
15680 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15681 Reserve alignment invariants.
15682 (grub_multiboot_load): Likewise.
15683 (retrieve_video_parameters): Likewise.
15684 (grub_multiboot_make_mbi): Likewise.
15685
c2e77777
VS
156862011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15687
15688 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15689 incorrect pointer.
15690
b70b6d11
VS
156912011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15692
15693 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15694 (grub_pata_pio_write): Likewise.
15695
02a2bf83
VS
156962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15697
15698 Add noreturn attributes and remove unreachable code.
15699
15700 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15701 code.
15702 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15703 code. Mark as noreturn.
15704 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15705 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15706 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15707 unreachable code.
15708 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15709 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15710 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15711 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15712 * include/grub/kernel.h (grub_main): Mark as noreturn.
15713 * include/grub/reader.h (grub_rescue_run): Likewise.
15714
2019d09e
VS
157152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15716
15717 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15718 redundant declaration.
15719
d1c501ee
VS
157202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15721
15722 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15723 redundant declaration.
15724 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15725
61664420
VS
157262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15727
15728 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15729 to ensure alignment.
15730 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15731 alignment. Ensure tmp alignment.
15732 (grub_cmd_hdparm): Ensure buf alignment.
15733 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15734 to ensure alignment.
15735 (grub_ata_dumpinfo): Ensure text alignment.
15736 (grub_atapi_identify): Preserve alignment invariant.
15737 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15738
0d51ee20
VS
157392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15740
15741 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15742 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15743 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15744 * include/grub/misc.h (grub_reboot)
15745 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15746 (grub_halt) [__mips__]: Likewise.
15747
753ef8c1
VS
157482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15749
15750 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15751 Remove redundant declaration.
15752 (grub_mmap_get_post64): Likewise.
15753 (grub_mmap_get_upper): Likewise.
15754 (grub_mmap_get_lower): Likewise.
15755
85c85365
VS
157562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15757
15758 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15759 uint32_t * to ensure alignment.
15760 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15761
a23f2cc4
VS
157622011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15763
93018f64
VS
15764 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15765 uint16_t * to ensure alignment.
15766 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15767 alignment.
15768
157692011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15770
15771 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
15772 to ensure alignment.
15773 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15774
58acccd6
VS
157752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15776
15777 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15778 Handle unaligned pointers.
15779 (u32at): Likewise.
15780 (u64at): Likewise.
15781 (fixup): Use byte access instead of v16at.
15782 (find_attr): Fix imporper usage of v32at.
15783 (read_data): Likewise.
15784 (list_file): Handle byte-swapping and unaligned strings.
15785 (grub_ntfs_label): Likewise.
15786
9b05cad7
VS
157872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15788
15789 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15790 as it's not necessarily aligned.
15791
b3950b84
VS
157922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15793
15794 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15795 redundant declaration.
15796 (grub_serial_init): Likewise.
15797 (grub_terminfo_init): Likewise.
15798
fcd232b7
VS
157992011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15800
15801 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15802 function.
15803 (ZAP_HASH_IDX): Likewise.
15804 (ZAP_LEAF_HASH_SHIFT): Likewise.
15805 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15806 (LEAF_HASH): Likewise.
15807 (ZAP_LEAF_NUMCHUNKS): Likewise.
15808 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15809 alignment invariants. Return pointer. All users updated.
15810 (ZAP_LEAF_ENTRY): Make into inline function.
15811 (NBBY): Removed.
15812 (xor): LIkewise.
15813 (xor_out): Use grub_crypto_xor.
15814 (dnode_get_path): Use grub_get_unaligned.
15815 (nvlist_find_value): Likewise.
15816 (grub_zfs_nvlist_lookup_uint64): Likewise.
15817 (grub_zfs_nvlist_lookup_string): Likewise.
15818 (get_nvlist_size): Likewise.
15819 (grub_zfs_open): Likewise.
15820 (fill_fs_info): Likewise.
15821 (grub_zfs_dir): Likewise.
15822 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15823 alignment invariants.
15824 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15825 necessarily aligned.
15826
f138623a
VS
158272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15828
15829 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15830
564840dc
VS
158312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15832
15833 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15834 arithmetic to conserve alignment invariants.
15835
9b40df20
VS
158362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15837
15838 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15839 redundant declaration.
15840 (grub_efiemu_mm_obtain_request): Likewise.
15841 (grub_efiemu_prepare): Likewise.
15842
d1c930f9
VS
158432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15844
15845 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15846 to match types.
15847
4c5f3056
VS
158482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15849
15850 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15851 case of aunaligned recptr.
15852 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15853 alignment.
15854 (grub_hfsplus_btree_search): Handle unaligned index.
15855
728cba91
VS
158562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15857
15858 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15859 to get freetag and skip.
15860
eb561f31
VS
158612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15862
15863 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15864 array.
15865 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15866 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15867
20993fbb
VS
158682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15869
15870 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15871 name for checksum and fix allocation algorithm.
15872
1f313b94
VS
158732011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15874
15875 * include/grub/types.h (grub_properly_aligned_t): New type.
15876 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15877 (grub_get_unaligned16): Add explicit casts.
15878 (grub_get_unaligned32): Likewise.
15879 (grub_get_unaligned64): Likewise.
15880 (grub_set_unaligned16): New function.
15881 (grub_set_unaligned32): Likewise.
15882
47ae27ec
VS
158832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15884
15885 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15886
78c2cd1c
VS
158872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15888
15889 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15890 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15891 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15892
53072f9b
VS
158932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15894
15895 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15896 conditionals.
15897
055dc239
VS
158982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15899
15900 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15901 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15902
496bd074
VS
159032011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15904
15905 Unify and improve RAID and crypto xor.
15906
15907 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15908 changed to grub_crypto_xor
15909 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15910 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15911 Use bigger types when possible.
15912
ef6e4335
VS
159132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15914
15915 * grub-core/disk/raid.c (scan_devices): Fix condition.
15916
5d048bf2
VS
159172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15918
15919 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15920 Make name a const ptr.
15921
ee533335
VS
159222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15923
15924 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15925 first argument a const pointer.
15926 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15927 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15928 proto.
15929 (grub_children_iterate): Likewise.
15930 (grub_machine_mmap_iterate): Remove redundant declaration.
15931
cc8f3668
VS
159322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15933
15934 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15935 (grub_cmd_acpi) [!x86]: Disable EBDA.
15936
c5fc563a
VS
159372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15938
15939 Enable UTF8 in gnulib regexp.
15940
15941 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15942 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15943 (isupper): Use grub_isupper.
15944 (isascii): New inline function.
15945 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15946 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15947 * grub-core/normal/charset.c (grub_utf8_process): New function.
15948 (grub_utf8_to_utf16): Use grub_utf8_process.
15949 (grub_encode_utf8_character): New function.
15950 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15951 * include/grub/charset.h (grub_utf8_process): New declaration.
15952 (grub_encode_utf8_character): Likewise.
15953 * include/grub/misc.h (grub_islower): New inline function.
15954 (grub_isupper): Likewise.
15955 (grub_strchrsub): Moved down to fix the definitions.
15956
0af2346f
VS
159572011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15958
15959 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15960 specification.
15961
74dbd244
VS
159622011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15963
15964 * include/grub/loader.h (grub_loader_register_preboot_hook):
15965 Use struct preboot * and not void * for handle. All users updated.
15966 (grub_loader_unregister_preboot_hook): Likewise.
15967
1bc8f60d
VS
159682011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15969
15970 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15971 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15972 UTF-16-BE. All users updated.
15973 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15974 (grub_hfsplus_iterate_dir): Likewise.
15975 (grub_hfsplus_label): Likewise.
15976
48d6e456
VS
159772011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15978
15979 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15980
bf3a3857
VS
159812011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15982
15983 Add missing const qualifiers.
15984
15985 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15986 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15987 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15988 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15989 (grub_lvm_check_flag): Likewise.
15990 * grub-core/efiemu/i386/coredetect.c
15991 (grub_efiemu_get_default_core_name): Likewise
15992 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15993 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15994 * grub-core/fs/ntfs.c (fixup): Likewise.
15995 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15996 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15997 (fzap_lookup): Likewise.
15998 (zap_lookup): Likewise.
15999 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16000 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16001 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16002 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16003 (grub_freebsd_add_meta_module): Likewise.
16004 (grub_cmd_freebsd_module): Likewise.
16005 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16006 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16007 (grub_xnu_writetree_get_size): Likewise.
16008 (grub_xnu_writetree_toheap_real): Likewise.
16009 (grub_xnu_find_key): Likewise.
16010 (grub_xnu_create_key): Likewise.
16011 (grub_xnu_create_value): Likewise.
16012 (grub_xnu_register_memory): Likewise.
16013 (grub_xnu_check_os_bundle_required): Likewise.
16014 (grub_xnu_scan_dir_for_kexts): Likewise.
16015 (grub_xnu_load_kext_from_dir): Likewise.
16016 * grub-core/normal/color.c (color_list): Likewise.
16017 * grub-core/normal/completion.c (current_word): Likewise.
16018 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16019 * grub-core/term/serial.c (grub_serial_find): Likewise.
16020 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16021 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16022 Likewise.
16023 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16024 (grub_freebsd_add_meta_module): Likewise.
16025 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16026 * include/grub/net.h (grub_net_card_driver): Likewise.
16027 (grub_net_card): Likewise.
16028 (grub_net_app_protocol): Likewise.
16029 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16030 * include/grub/serial.h (grub_serial_find): Likewise.
16031 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16032 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16033 (grub_xnu_create_value): Likewise.
16034 (grub_xnu_find_key): Likewise.
16035 (grub_xnu_scan_dir_for_kexts): Likewise.
16036 (grub_xnu_load_kext_from_dir): Likewise.
16037
16038 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16039 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16040 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16041 Moved from here ...
16042 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16043
112b4837
CW
160442011-11-28 Colin Watson <cjwatson@ubuntu.com>
16045
16046 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16047
49e891ac
VS
160482011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16049
16050 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16051 (read_device): Fix size calculation.
16052
fd258e5c
RM
160532011-11-25 Robert Millan <rmh@gnu.org>
16054
16055 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16056 (find_root_device_from_libzfs): Add zpool output parser to be used
16057 as fallback when libzfs isn't available.
16058
78845dc2
SG
160592011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16060
16061 * po/Makefile.in.in: Add missing escape-continuation.
16062
adac5211
VS
160632011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16064
16065 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16066
10b64f1c
VS
160672011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16068
16069 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16070
bb416954
VS
160712011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16072
16073 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16074
bdfe9eeb
VS
160752011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16076
16077 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16078
581ffa8a
VS
160792011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16080
16081 * grub-core/lib/adler32.c: Add missing license specification.
16082 * grub-core/lib/crc64.c: Likewise.
16083 * grub-core/loader/i386/pc/plan9.c: Likewise.
16084 * grub-core/partmap/plan.c: Likewise.
16085
2536cf64
LK
160862011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16087
16088 Add facility to debug GRUB with gdb under qemu.
16089
16090 * grub-core/gdb_grub.in: New file.
16091 * grub-core/gmodule.pl.in: Likewise.
16092 * grub-core/Makefile.core.def (gmodule.pl): New script.
16093 (gdb_grub): Likewise.
16094
bc108a4a
VS
160952011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16096
16097 * util/grub-mount.c (argp_parser): Accept relative pathes.
16098 * util/grub-fstest.c (argp_parser): Likewise.
16099
111c1778
VS
161002011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16101
16102 Plan9 support.
16103
16104 * Makefile.util.def (libgrubmods): Add
16105 grub-core/partmap/plan.c.
16106 * docs/grub.texi: Notice Plan9 support.
16107 * grub-core/Makefile.core.def (plan9): New module.
16108 (part_plan): Likewise.
16109 * grub-core/loader/i386/pc/plan9.c: New file.
16110 * grub-core/partmap/plan.c: Likewise.
16111 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16112 define.
16113 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16114 * include/grub/mm.h (grub_extend_alloc): New inline function.
16115
c30be3b6
VS
161162011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16117
16118 Make Reed-Solomon faster by using power of generator representation of
16119 GF(256)*.
16120
16121 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16122 (gf_double_t): Likewise.
16123 (gf_invert): Removed.
16124 (gf_powx): New array.
16125 (gf_powx_inv): Likewise.
16126 (scratch): Move higher.
16127 (gf_reduce): Removed.
16128 (gf_mul): Use powx.
16129 (gf_invert): Likewise.
16130 (init_inverts): Replaced with ...
16131 (init_powx): ...this. All users updated.
16132 (pol_evaluate): Replace multiplications with additions.
16133 (rs_encode): Likewise.
16134 (gauss_eliminate): Call gf_invert.
16135 (grub_reed_solomon_add_redundancy): Call init_powx.
16136 (grub_reed_solomon_recover): Call init_powx unconditionally.
16137
fa5aeffc
VS
161382011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16139
16140 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16141
a346b81c
VS
161422011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16143
16144 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16145 disk->partiton for safety.
16146
d89ee414
VS
161472011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16148
16149 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16150 Fix a memory leak.
16151 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16152
91ee7b6d
VS
161532011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16154
16155 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16156
91e5a33d
VS
161572011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16158
16159 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16160
9edd7be2
VS
161612011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16162
16163 Fix spaces handling in proc/self/mountinfo.
16164
16165 * util/getroot.c (unescape): New function.
16166 (grub_find_root_device_from_mountinfo): Use unescape.
16167
ba102053
VS
161682011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16169
16170 Support ZFS embedding.
16171
16172 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16173 (grub_zfs_fs): Register grub_zfs_embed.
16174
aa94b870
VS
161752011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16176
16177 Fix MIPS compilation.
16178
16179 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16180 * include/grub/offsets.h: Rename decompressor fields from
16181 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16182 * util/grub-mkimage.c (image_targets): Use new names.
16183
5fbdac14
VS
161842011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16185
16186 Defer multiboot device parsing until we're in compressed part.
16187
16188 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16189 bsd_part. setdevice has fallen into disuse.
16190 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16191 (bsd_part): Likewise.
16192 (boot_dev): New variable.
16193 (multiboot_trampoline): Don't parse multiboot device.
16194 Pass multiboot device in %edx.
16195 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16196 grub_boot_device.
16197 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16198 Likewise.
16199 * grub-core/kern/i386/pc/startup.S: Save edx.
16200 (grub_boot_drive): Removed.
16201 (grub_install_dos_part): Likewise.
16202 (grub_install_bsd_part): Likewise.
16203 (grub_boot_device): New variable.
16204 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16205 (grub_install_bsd_part): Likewise.
16206 (grub_boot_drive): Likewise.
16207 (grub_boot_device): New variable.
16208 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16209 Removed.
16210 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16211 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16212 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16213 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16214 * util/grub-install.in: Remove redundant condition.
16215
691cbb58
VS
162162011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16217
16218 Fix bug introduced by previous commit.
16219
16220 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16221
60240b8b
VS
162222011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16223
16224 Use decompressors framework on i386-pc. It increases core size
16225 by 46 bytes but improves compatibility and maintainability.
16226
16227 * grub-core/Makefile.core.def (lzma_decompress): New image.
16228 (kernel): Add i386_pc_ldflags.
16229 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16230 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16231 to real_to_prot, prot_to_real and device info.
16232 * include/grub/offsets.h: Renamed decompressor offsets.
16233 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16234 (image_target_desc): Remove raw_size and rename decompressor fields.
16235 (compress_kernel): Handle lzma.
16236 (generate_image): Handle decompressors on i386-pc.
16237
e9d3421c
VS
162382011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16239
16240 * configure.ac: Add -fno-asynchronous-unwind-tables.
16241
2b23074a
VS
162422011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16243
16244 Move assembly code to C by using intwrap. It increases core size
16245 by 88 bytes but improves compatibility and maintainability.
16246
16247 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16248 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16249 ... here. Translated to C.
16250 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16251 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16252 ... here. Translated to C.
16253 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16254 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16255 ... here. Translated to C.
16256 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16257 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16258 ... here. Translated to C.
16259 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16260 * grub-core/term/i386/pc/console.c (grub_console_cls):
16261 ... here. Translated to C.
16262 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16263 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16264 ... here. Translated to C.
16265 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16266 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16267 Translated to C.
16268 * grub-core/term/i386/pc/console.c (int10_9): New function.
16269 (grub_console_putchar): Likewise.
16270 * include/grub/i386/pc/console.h: Removed the not anymore shared
16271 functions.
16272
678f4b67
VS
162732011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 Move grub_chainloader_real_boot out of the kernel.
16276
16277 * grub-core/Makefile.am: Remove machine/loader.h.
16278 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16279 Removed.
16280 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16281 variable.
16282 (grub_relocator16_keep_a20_enabled): Likewise.
16283 (grub_relocator16_boot): Fill new variables.
16284 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16285 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16286 relocator.
16287 (grub_chainloader_unload): Likewise.
16288 (grub_chainloader_cmd): Likewise.
16289 * include/grub/i386/pc/loader.h: Removed.
16290 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16291 and esi. All initialisers updated.
16292
4626edf6
VS
162932011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
162942011-11-12 Colin Watson <cjwatson@ubuntu.com>
16295
16296 * Makefile.util.def (grub-mount): New util.
16297 * .bzrignore: Add grub-mount.
16298 * configure.ac: Check for fuse and enable grub-mount if available.
16299 * docs/man/grub-mount.h2m: New file.
16300 * util/grub-mount.c: Likewise.
16301
10f0117b
VS
163022011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16303
16304 * grub-core/commands/efi/fixvideo.c: Gettextize.
16305 * grub-core/commands/hashsum.c: Likewise.
16306 * grub-core/commands/i386/cmostest.c: Likewise.
16307 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16308 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16309 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16310 * grub-core/commands/lsmmap.c: Likewise.
16311 * grub-core/commands/menuentry.c: Likewise.
16312 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16313 * grub-core/commands/setpci.c: Likewise.
16314 * grub-core/loader/i386/bsd.c: Likewise.
16315 * grub-core/loader/i386/linux.c: Likewise.
16316 * util/getroot.c: Likewise.
16317 * util/grub-editenv.c: Likewise.
16318 * util/grub-fstest.c: Likewise.
16319 * util/grub-mkfont.c: Likewise.
16320 * util/grub-mkimage.c: Likewise.
16321 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16322 * util/grub-pe2elf.c: Likewise.
16323 * util/grub-probe.c: Likewise.
16324 * util/grub-setup.c: Likewise.
16325 * util/ieee1275/ofpath.c: Likewise.
16326 * util/misc.c: Likewise.
16327 * util/raid.c: Likewise.
16328
566f779b
RM
163292011-11-11 Robert Millan <rmh@gnu.org>
16330
16331 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16332 __attribute__((unused)) from `os_dev', which *is* being used.
16333
b50787de
VS
163342011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16335
16336 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16337 forgotten define.
16338 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16339 GRUB_IA64_DL_GOT_ALIGN.
16340 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16341 GRUB_IA64_DL_TRAMP_ALIGN.
16342
119d11c8
VS
163432011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16344
16345 Replace grub_fatal with normal errors in i386 linux loader.
16346
16347 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16348 (allocate_pages): Check find_efi_mmap_size return value.
16349 (grub_e820_add_region): Return error.
16350 (grub_linux_boot): Check mmap return value.
16351
6e0632e2
VS
163522011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16353
16354 * grub-core/commands/acpihalt.c: Gettextized.
16355 * grub-core/commands/cacheinfo.c: Likewise.
16356 * grub-core/commands/cmp.c: Likewise.
16357 * grub-core/commands/efi/loadbios.c: Likewise.
16358 * grub-core/commands/gptsync.c: Likewise.
16359 * grub-core/commands/ieee1275/suspend.c: Likewise.
16360 * grub-core/commands/legacycfg.c: Likewise.
16361 * grub-core/commands/memrw.c: Likewise.
16362 * grub-core/commands/minicmd.c: Likewise.
16363 * grub-core/commands/parttool.c: Likewise.
16364 * grub-core/commands/time.c: Likewise.
16365 * grub-core/commands/videoinfo.c: Likewise.
16366 * grub-core/disk/geli.c: Likewise.
16367 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16368 * grub-core/disk/luks.c: Likewise.
16369 * grub-core/disk/lvm.c: Likewise.
16370 * grub-core/font/font_cmd.c: Likewise.
16371 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16372 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16373 * grub-core/gfxmenu/view.c: Likewise.
16374 * grub-core/kern/emu/hostdisk.c: Likewise.
16375 * grub-core/kern/emu/main.c: Likewise.
16376 * grub-core/kern/emu/misc.c: Likewise.
16377 * grub-core/kern/emu/mm.c: Likewise.
16378 * grub-core/kern/mips/arc/init.c: Likewise.
16379 * grub-core/kern/mips/loongson/init.c: Likewise.
16380 * grub-core/kern/partition.c: Likewise.
16381 * grub-core/lib/i386/halt.c: Likewise.
16382 * grub-core/lib/mips/arc/reboot.c: Likewise.
16383 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16384 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16385 * grub-core/loader/i386/xnu.c: Likewise.
16386 * grub-core/loader/multiboot.c: Likewise.
16387 * grub-core/net/bootp.c: Likewise.
16388 * grub-core/net/net.c: Likewise.
16389 * grub-core/normal/term.c: Likewise.
16390 * grub-core/partmap/bsdlabel.c: Likewise.
16391 * grub-core/parttool/msdospart.c: Likewise.
16392 * grub-core/term/gfxterm.c: Likewise.
16393 * grub-core/term/terminfo.c: Likewise.
16394 * grub-core/video/i386/pc/vbe.c: Likewise.
16395 * util/grub-menulst2cfg.c: Likewise.
16396 * util/grub-mkdevicemap.c: Likewise.
16397 * util/grub-mklayout.c: Likewise.
16398 * util/grub-mkrelpath.c: Likewise.
16399 * util/grub-script-check.c: Likewise.
16400 * util/ieee1275/grub-ofpathname.c: Likewise.
16401 * util/resolve.c: Likewise.
16402
073aa7a9
VS
164032011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16404
16405 Support %1$d syntax.
16406
16407 * tests/printf_unit_test.c: New file.
16408 * Makefile.util.def (printf_test): New test.
16409 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16410
c76b5417
VS
164112011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16412
16413 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16414 fix.
16415
df067ad1
VS
164162011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16417
16418 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16419 dprintf.
16420 * grub-core/font/font.c (grub_font_load): Likewise.
16421
5b289bc5
VS
164222011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16423
16424 * util/grub-macho2img.c: Add comment concerning gettext.
16425 * grub-core/lib/legacy_parse.c: Likewise.
16426
c1860f87
VS
164272011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16428
16429 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16430 (grub_xvasprintf): Likewise.
16431
d35d0d37
VS
164322011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16433
16434 Add const keyword to grub_env_get and gettextize week days.
16435
16436 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16437 (grub_read_hook_datetime): Return const char *.
16438 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16439 updated.
16440 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16441 Mark for gettext.
16442 (grub_get_weekday_name): Return const char *. Call gettext.
16443 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16444 char * and len as the argument. All users updated.
16445 (grub_script_argv_split_append): Receive const char *.
16446 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16447 * include/grub/env.h (grub_env_get): Likewise.
16448 (grub_env_read_hook_t): Return const char *.
16449 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16450 (grub_script_argv_split_append): Likewise.
16451
9aed8a71
VS
164522011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16453
16454 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16455
067fdf00
VS
164562011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16457
16458 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16459 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16460
a8bd9d39
VS
164612011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16462
16463 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16464 Fix prototype.
16465
f7ce5baf
VS
164662011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16467
16468 Fix mips compilation.
16469
16470 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16471 normal decoder.
16472 (hashes): Use in embed decoder as well (for sizes).
16473 (dec_stream_header): Fix embed decompressor logic.
16474 (dec_stream_footer): Likewise.
16475
9bb182f3
VS
164762011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16477
16478 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16479 an error and not a fatal on unrecognised relocation types.
16480
63a9e6f6
VS
164812011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16482
16483 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16484 Issue error rather than printf on unknown arguments.
16485
4c458569
VS
164862011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16487
16488 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16489 Make buf a const.
16490
e2d22baf
VS
164912011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16492
16493 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16494 Fix module name.
16495
53dc8590
VS
164962011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16497
16498 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16499 leftover debug printf.
16500
6c189294
VS
165012011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16502
16503 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16504
f7688369
VS
165052011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16506
16507 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16508 A stylistic fix.
16509
11a775a3
VS
165102011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16511
16512 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16513
33f784e8
SL
165142011-11-10 Shea Levy <slevy@tieronedesign.com>
16515
16516 Allow all modules to perform serial IO
16517
16518 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16519 * include/grub/serial.h (grub_serial_port_configure): New inline
16520 function.
16521 (grub_serial_port_fetch): Likewise.
16522 (grub_serial_port_put): Likewise.
16523 (grub_serial_port_fini): Likewise.
16524 (grub_serial_find): New proto.
16525
f6276525
VS
165262011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16527
16528 Put symlink at the end of the node and fix a potential
16529 memory corruption.
16530
16531 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16532 Make symlink into an array.
16533 (set_rockridge): Set have_symlink and alloc_dirents.
16534 (grub_iso9660_read_symlink): Use new layout.
16535 (grub_iso9660_iterate_dir): Fix memory corruption.
16536 Use new layout.
16537 (grub_iso9660_dir): Set have_symlink.
16538 (grub_iso9660_open): Likewise.
16539
c3591189
VS
165402011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16541
16542 Remove local keyword.
16543
16544 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16545 (version_test_gt): Likewise.
16546 (version_find_latest): Likewise.
16547 (gettext_printf): Likewise.
16548 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16549
cb544caa
VS
165502011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16551
16552 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16553
45bd824d
VS
165542011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16555
16556 Fix ZFS memory and resource leaks.
16557
16558 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16559 All users updated.
16560 Free type on exit.
16561 (fill_vdev_info): New parameter inserted. All users updated.
16562 (check_pool_label): Likewise.
16563 (scan_disk): Likewise.
16564 (scan_devices): Close non-inserted disks.
16565 (fzap_iterate): Free l.
16566 (unmount_device): Free children descripto memory.
16567
ad9a2f44
VS
165682011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16569
16570 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16571 argument (access out of bounds).
16572
6b68db81
VS
165732011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16574
16575 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16576 >= 6 drives.
16577
28840fda
VS
165782011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16579
16580 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16581 Fix declaration.
16582
8a5a3a5b
VS
165832011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16584
16585 Fix several memory leaks.
16586
16587 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16588 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16589 (grub_cpio_dir): Likewise.
16590 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16591 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16592 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16593 (grub_romfs_label): Likewise.
16594 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16595 (squash_unmount): New function.
16596 (grub_squash_dir): Fix memory leak.
16597 (grub_squash_open): Likewise.
16598 (grub_squash_read): Likewise.
16599 (grub_squash_mtime): Likewise.
16600 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16601 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16602 * util/grub-fstest.c (fstest): Likewise.
16603
57b01250
VS
166042011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16605
16606 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16607 avoid accessing beyond the array.
16608
19e81ba7
VS
166092011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16610
16611 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16612
52b656c0
VS
166132011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16614
16615 Several AFFS fixes.
16616
16617 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16618 (GRUB_AFFS_FLAG_FFS): Removed.
16619 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16620 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16621 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16622 (grub_fshelp_node): Make block 32-bit.
16623 Add block_cache and last_block_cache.
16624 (grub_affs_read_block): Fill and use block cache.
16625 (grub_affs_read_file): Removed.
16626 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16627 boot block.
16628 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16629 safety.
16630 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16631 space.
16632 (grub_affs_close): Free block cache.
16633 (grub_affs_read): Use grub_fshelp_read_file directly.
16634
438a746a
VS
166352011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16636
16637 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16638 with no error set.
16639
49a45021
VS
166402011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16641
16642 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16643 used variable.
16644 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16645 Likewise.
16646
3ae17eb8
VS
166472011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16648
16649 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16650
16651 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16652 byteswap when needed.
16653
27610c38
VS
166542011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16655
16656 Fix FreeBSD compilation.
16657
16658 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16659 to avoid circular dependency.
16660 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16661 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16662 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16663
4a19b601
VS
166642011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16665
16666 Fix ZFS crypto error types.
16667
16668 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16669 (grub_gcm_decrypt): Likewise.
16670 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16671 from PBKDF2.
16672
958ee221
VS
166732011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16674
16675 Illumos support.
16676
16677 * Makefile.util.def (10_illumos): New script.
16678 * configure.ac: Set COND_HOST_ILLUMOS.
16679 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16680 Support Illumos calls.
16681 (find_partition_start) [__sun__]: Likewise.
16682 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16683 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16684 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16685 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16686 device.
16687 * util/grub-probe.c (probe) [__sun__]: Do character check.
16688 * util/grub.d/10_illumos.in: New file.
16689
cac14fb6
VS
166902011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16691
16692 Support escaped commas in hostdisk.
16693
16694 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16695 (find_grub_drive): Use unescape_cmp.
16696 (make_device_name): Escape commas.
16697
78e08dc3
VS
166982011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16699
16700 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16701
9f421dd1
VS
167022011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16703
16704 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16705 variable.
16706
ed64e9e2
VS
167072011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16708
16709 Support trampoline jumps on powerpc.
16710
16711 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16712 __ia64__ path.
16713 (grub_dl_load_segments): Set mod->sz.
16714 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16715 segments.
16716 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16717 (jump): Likewise.
16718 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16719 function.
16720 (trampoline): New struct.
16721 (trampoline_template): New const.
16722 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16723 * include/grub/dl.h (grub_dl): Add sz element.
16724 [__powerpc__]: Follow __ia64__.
16725 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16726 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16727 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16728 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16729
3084ede4
VS
167302011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16731
16732 ZFS crypto support.
16733
16734 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16735 * grub-core/Makefile.core.def (zfscrypt): New module.
16736 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16737 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16738 it. All users updated.
16739 (grub_zfs_decrypt): New var.
16740 (grub_zfs_load_key): Likewise.
16741 (zio_checksum_functions): Add SHA256+MAC.
16742 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16743 (zio_read): Handle encrypted blocks.
16744 (zap_verify): Remove incorrect check.
16745 (fzap_iterate): Handle non-standard fzap.
16746 (zap_iterate): Likewise.
16747 (zap_iterate_u64): New function.
16748 (dnode_get_fullpath): Load keys.
16749 * grub-core/fs/zfs/zfscrypt.c: New file.
16750 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16751 (grub_crypto_ecb_encrypt): Make input const.
16752 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16753 (grub_crypto_ecb_encrypt): Make input const.
16754 (GRUB_CIPHER_AES): New macro.
16755 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16756 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16757 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16758 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16759 prefix. All users updated.
16760 (grub_zfs_add_key): New proto.
16761 (grub_zfs_decrypt): Likewise.
16762 (grub_zfs_load_key): Likewise.
16763 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16764 * util/grub-fstest.c (options): Add -K option.
16765 (argp_parser): Likewise.
16766
b632b404
VS
167672011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16768
16769 Support zle compression on ZFS.
16770
16771 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16772 (decomp_table): Add zle.
16773 * include/grub/zfs/zio.h (zio_compress): Add zle.
16774
c7ba4f69
VS
167752011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16776
16777 Support BtrFS embedding.
16778
16779 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16780 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16781 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16782 * util/grub-setup.c (setup): Use fs embedding if available.
16783 Add additional sanity check.
16784
455377d9
VS
167852011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16786
16787 * util/grub-install.in: Fix condition for config_opt.
16788
c2fd16ca
VS
167892011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16790
16791 Support third redundancy strip on raidz3.
16792
16793 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16794 Return error on singularity. All users updated.
16795 (read_device): Don't stop on 3rd failure on raidz3.
16796
8622923b
VS
167972011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16798
16799 Support case-insensitive ZFS subvolumes.
16800
16801 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16802 All users updated.
16803 (zap_hash): Likewise.
16804 (name_cmp): New function.
16805 (zap_leaf_array_equal): New parameter case_insensitive.
16806 All users updated.
16807 (zap_leaf_lookup): Likewise.
16808 (fzap_lookup): Likewise.
16809 (zap_lookup): Likewise.
16810 (dnode_get_path): New parameter case_insensitive. Retrieve case
16811 sensitiviness of a volume. All users updated.
16812 (dnode_get_fullpath): New parameter case_insensitive.
16813 All users updated.
16814 (grub_zfs_dir): Set info.case_insensitiveness.
16815
95f2e860
VS
168162011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16817
16818 Support second redundancy strip on raidz(2,3).
16819
16820 * grub-core/fs/zfs/zfs.c (powx): New array.
16821 (powx_inv): Likewise.
16822 (poly): New const.
16823 (xor_out): New function.
16824 (gf_mul): Likewise.
16825 (recovery): Likewise.
16826 (read_device): Use second redundancy strip.
16827
11ee4389
VS
168282011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16829
16830 Use a power of generator representation of GF(256) multiplication group
16831 to save space time and complexity.
16832
16833 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16834 (raid6_table2): Likewise.
16835 (powx): New array.
16836 (powx_inv): Likewise.
16837 (poly): New const.
16838 (grub_raid_block_mul): Replace with ...
16839 (grub_raid_block_mulx): ...this.
16840 (grub_raid6_init_table): Rewritten.
16841 (grub_raid6_recover): Use power of generator representation.
16842
09e2763f
VS
168432011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16844
16845 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16846 for the right device.
16847
8bec9a28
VS
168482011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16849
16850 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16851 expected by grub-mkimage and it's more clear since there is no implicit
16852 padding.
16853
dbd3a32e
VS
168542011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16855
16856 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16857 disk.
16858 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16859
182c872a
PMH
168602011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16861
16862 * util/grub-mkrescue.in: Fix handling xorriso option.
16863
1e51cabd
VS
168642011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16865
16866 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16867 NULL.
16868
9cc3581d 168692011-11-03 crocket <crockabiscuit@gmail.com>
16870
16871 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16872
158dc1ea
VS
168732011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16874
16875 XZ CRC64 and SHA256 support.
16876
16877 * Makefile.util.def (libgrubmods): Add crc64.c.
16878 * grub-core/Makefile.core.def (crc64): New module.
16879 * grub-core/lib/crc64.c: New file.
16880 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16881 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16882 Fix the type.
16883 (MAX_HASH_SIZE): New define.
16884 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16885 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16886 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16887 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16888 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16889 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16890 Handle non-crc32 hashes.
16891 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16892 (dec_stream_header): Handle non-crc32 hashes.
16893 (dec_stream_footer): Likewise.
16894 (dec_block_header): Likewise.
16895 (dec_main): Likewise.
16896 (xz_dec_init): Likewise.
16897 (xz_dec_reset): Likewise.
16898 (xz_dec_end): Likewise.
16899 * util/import_gcry.py: Add CRC64 line.
16900
9d9b3d2f
VS
169012011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16902
16903 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16904 as well.
16905
7d0ac931
VS
169062011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16907
16908 Make reiserfs label retrieval similar to other *_label functions.
16909
16910 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16911 (REISERFS_MAX_LABEL_LENGTH): Removed.
16912 (REISERFS_LABEL_OFFSET): Likewise.
16913 (grub_reiserfs_label): Rewritten.
16914
169152011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16916
16917 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16918 field.
16919
cf5ba824
VS
169202011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16923
17744004
VS
169242011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16925
16926 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16927 drive failure on both raidz and raidz2.
16928
aca5aefc
VS
169292011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16930
16931 Fix RAIDZ(2) for >= 5 devices.
16932
16933 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16934 asize argument. All users updated.
16935
ce8ca56e
VS
169362011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16937
16938 Fix RAIDZ(2).
16939
16940 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16941 (fill_vdev_info_real): Set ashift.
16942 (read_device): Rewrite RAIDZ part based on reverse engineering.
16943
7c01e783
VS
169442011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16945
16946 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16947 don't report potentially unavialiable fields in debug output.
16948 (find_path): Fix double-free and memory leak.
16949
ce109e84
VS
169502011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16951
16952 Read label on UFS1.
16953
16954 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16955 (grub_ufs_fs): Always set .label.
16956
87661123
VS
169572011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16958
16959 Use shifts in UFS.
16960
16961 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16962 (grub_ufs_data): New field log2_blksz.
16963 (grub_ufs_read_file): Use shifts.
16964 (grub_ufs_mount): Check block size and logarithm it.
16965
46bc1dc2
VS
169662011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16967
16968 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16969 long symlinks.
16970
19ee2987
VS
169712011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16972
16973 Handle symlinks and long names on tar and cpio.
16974
16975 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16976 (ATTR_FILE): Likewise.
16977 (ATTR_DIR): Likewise.
16978 (ATTR_LNK): Likewise.
16979 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16980 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16981 L and K entries.
16982 (grub_cpio_mount): Zero-fill data.
16983 (handle_symlink): New function.
46bc1dc2
VS
16984 (grub_cpio_dir): Handle symlinks.
16985 (grub_cpio_open): Likewise.
16986 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 16987
c83a08d8
VS
169882011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16989
16990 Fix iso9660 filename limitations and fix memory leaks.
16991
16992 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16993 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16994
45cdd3ea
VS
169952011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16996
16997 Fix JFS file name length limitations.
16998
16999 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17000 (grub_jfs_diropen): Fix maximum filename length.
17001 (grub_jfs_getent): Fix filename length.
17002 (grub_jfs_lookup_symlink): Fix size checks.
17003
94ef05c2
VS
170042011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17005
17006 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17007 string.
17008
785ab8c7
VS
170092011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17010
eb0b6b45
VS
17011 Leverage BFS implementation to read AFS.
17012
17013 * Makefile.util.def (libgrubmods): Add afs.c.
17014 * grub-core/Makefile.core.def (afs): New module
17015 * grub-core/fs/afs.c: New file.
17016 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17017
170182011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17019
17020 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 17021
c4a1628f
VS
170222011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17023
17024 * grub-core/fs/bfs.c: Run indent.
17025
5825b379
VS
170262011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17027
17028 BFS implementation based on the specification.
17029
17030 * grub-core/fs/bfs.c: New file.
17031 * Makefile.util.def (libgrubmods): Add bfs.c.
17032 * grub-core/Makefile.core.def (bfs): New module.
17033
42b2a706
VS
170342011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17035
17036 * util/grub-fstest.c (cmd_cp): Clarify error message.
17037 (cmd_cmp): Likewise.
17038
61b99bfc
YB
170392011-10-30 Yves Blusseau <blusseau@zetam.org>
17040
17041 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17042 and befs_be.
17043
faba3d16
VS
170442011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17045
17046 Remove afs and befs because of copyright problem.
17047
17048 * grub-core/fs/afs.c: Removed.
17049 * grub-core/fs/afs_be.c: Removed.
17050 * grub-core/fs/befs.c: Removed.
17051 * grub-core/fs/befs_be.c: Removed.
17052 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17053 * grub-core/Makefile.core.def (afs): Removed.
17054 (afs_be): Likewise.
17055 (befs): Likewise.
17056 (befs_be): Likewise.
17057
c39224b0
VS
170582011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17059
17060 Prefer rockridge over Joliet.
17061
17062 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17063 to ...
17064 (set_rockridge): ... here.
17065 (grub_iso9660_mount): Check rockridge on the primary label when
17066 discovering. Ignore Joliet if Rockridge is present.
17067
e551115a
VS
170682011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17069
17070 Use shifts in nilfs2.
17071
17072 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17073 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17074 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17075 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17076 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17077 (grub_nilfs2_entries_per_block): Replaced with ...
17078 (grub_nilfs2_log_entries_per_block_log): ... this.
17079 (grub_nilfs2_blocks_per_group): Replaced with ...
17080 (grub_nilfs2_blocks_per_group_log): ... this.
17081 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17082 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17083 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17084 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17085 (grub_nilfs2_palloc_entry_offset): Replaced ...
17086 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17087 (grub_nilfs2_dat_translate): Use shifts.
17088 (grub_nilfs2_read_inode): Likewise.
17089 (GRUB_MOD_INIT): Ensure that logs are correct.
17090
564dd58c
VS
170912011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17092
17093 Use shifts in minix filesystem.
17094
17095 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17096 (GRUB_MINIX_ZONE2SECT): Likewise.
17097 (grub_minix_data): Replace block_size with log_block_size.
17098 (grub_minix_read_file): Use shifts.
17099 (grub_minix_mount): Check block size and take a logarithm.
17100
ed9ba06d
VS
171012011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17102
17103 Use shifts in squash4.
17104
17105 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17106 (squash_mount): Check block size and take logarithm.
17107 (direct_read): Use shifts.
17108
ad03fe76
VS
171092011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17110
17111 Correct befs block counting logic.
17112
17113 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17114 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17115 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17116 (grub_afs_read_inode): Use block_shift.
17117 (RANGE_SHIFT): New definition.
17118 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17119 unexpected conditions, use shifts and appropriate types.
17120 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17121
6563f63d
VS
171222011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17123
17124 * grub-core/disk/raid.c (scan_devices): Check partition.
17125 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17126
5b1ae25f
VS
171272011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17128
17129 Support BFS (befs) UUID.
17130
17131 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17132 (grub_afs_small_data_element_header): New struct.
17133 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17134 (grub_afs_read_attribute) [MODE_BFS]: New function.
17135 (grub_afs_iterate_dir): Allocate for complete inode.
17136 (grub_afs_mount): Likewise.
17137 (grub_afs_uuid) [MODE_BFS]: New function.
17138 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17139
f8d82408
VS
171402011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17141
17142 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17143 (zfs_unmount): Fix memory leak.
17144
5773fb64
VS
171452011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17146
17147 Support NTFS reparse points.
17148
17149 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17150 (symlink_descriptor): New struct.
17151 (grub_ntfs_read_symlink): New function.
17152 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17153 (grub_ntfs_open): Likewise.
17154
91c3fdde
VS
171552011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17156
17157 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17158
3be82e10
VS
171592011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17160
17161 fstest xnu_uuid subcommand.
17162
17163 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17164 grub-core/commands/xnu_uuid.c.
17165 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17166 (fstest): Handle xnu_uuid.
17167 (options): Document xnu_uuid.
17168 (argp_parser): Parse xnu_uuid.
17169
8e32442e
VS
171702011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17171
17172 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17173 -l argument. Add newline at the end if printing.
17174 (GRUB_MOD_INIT): Document -l.
17175
52a05075
VS
171762011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17177
17178 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17179
1869edb5
VS
171802011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17181
17182 ZFS multi-device and version 33 support.
17183
17184 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17185 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17186 (grub_zfs_data): Add multidev-ice-related fields.
17187 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17188 (dva_get_offset): Make dva const.
17189 (zfs_fetch_nvlist): New function.
17190 (fill_vdev_info_real): Likewise.
17191 (fill_vdev_info): Likewise.
17192 (check_pool_label): Likewise.
17193 (scan_disk): Likewise.
17194 (scan_devices): Likewise.
17195 (read_device): Likewise.
17196 (read_dva): Likewise.
17197 (zio_read_gang): Use read_dva.
17198 (zio_read_data): Likewise.
17199 (zap_leaf_lookup): Add missing endian conversion.
17200 (zap_verify): Add missing endian conversion. All users updated.
17201 (fzap_lookup): Likewise.
17202 (fzap_iterate): Likewise.
17203 (dnode_get_path): Handle SA bonus.
17204 (nvlist_find_value): Make input const. All users updated.
17205 (unmount_device): New function.
17206 (zfs_unmount): Use unmount_device.
17207 (zfs_mount): Use scan_disk.
17208 (zfs_mtime): New function.
17209 (grub_zfs_open): Handle system attributes.
17210 (fill_fs_info): Likewise.
17211 (grub_zfs_dir): Likewise.
17212 (grub_zfs_fs): Add mtime.
17213 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17214 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17215 (SA_MTIME_OFFSET): Likewise.
17216 (SA_SYMLINK_OFFSET): Likewise.
17217 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17218 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17219 (fstest): Support zfsinfo.
17220 (argp_parser): Likewise.
17221
186b4028
VS
172222011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17223
17224 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17225 error.
17226
172272011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
17228
17229 ZFS fixes.
17230
17231 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17232 sharing the same block. Iterate over correct number of indices.
17233 (dnode_get_path): Handle symlinks correctly.
17234
c0584900
VS
172352011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17236
17237 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17238
67e2bd71
VS
172392011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17240
17241 Read label on HFS+.
17242
17243 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17244 (grub_hfsplus_btree_search): Fix types.
17245 (grub_hfsplus_label): Implement.
17246
e9cc6b7b
VS
172472011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17248
17249 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17250
19832ddb
VS
172512011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17252
17253 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17254
66b40850
VS
172552011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17256
17257 Fix symlink handling on iso9660.
17258
17259 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17260 All users updated.
17261 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17262 (grub_iso9660_read_symlink): Moved most of code ...
17263 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17264
db821363
VS
172652011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17266
17267 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17268 Use union to avoid breaking strict-aliasing rules.
17269
e1211949
VS
172702011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17271
17272 Support multi-extent iso files.
17273
17274 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17275 Add node.
17276 (grub_fshelp_node): Revamp. All users updated.
17277 (FLAG_*): New enum.
17278 (read_node): New function.
17279 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17280 All users updated.
17281 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17282 (get_node_size): New function.
17283 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17284 entries.
17285 Fix memory leak on . and ..
17286 (grub_iso9660_read): Use read_node.
17287 (grub_iso9660_close): Free node.
17288
d4888031
VS
172892011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17290
17291 Fix tar 4G limit and handle paths containing dot.
17292
17293 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17294 (canonicalize): New function.
17295 (grub_cpio_find_file): Use canonicalize. Store offs in
17296 grub_disk_addr_t.
17297 (grub_cpio_dir): Use grub_disk_addr_t.
17298 (grub_cpio_open): Likewise.
17299
9f12e664
VS
173002011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17301
17302 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17303
17304 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17305 unused flags.
17306 (grub_squash_inode): Add long_file and block_size.
17307 (grub_squash_cache_inode): New struct.
17308 (grub_squash_dirent): Make types into enum.
17309 (SQUASH_TYPE_LONG_REGULAR): New type.
17310 (grub_squash_frag_desc): Add field size.
17311 (SQUASH_BLOCK_FLAGS): New enum.
17312 (grub_squash_data): Use grub_squash_cache_inode.
17313 (grub_fshelp_node): Make ino_chunk 64-bit.
17314 (read_chunk): Minor argument change. All users updated.
17315 (squash_mount): Use correct le_to_cpu.
17316 (grub_squash_open): Handle LONG_REGULAR.
17317 (direct_read): New function.
17318 (grub_squash_read_data): Handle blocks correctly.
17319
9f326fba
VS
173202011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17321
17322 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17323
f4d9b64b
VS
173242011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17325
17326 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17327
5bbd28b8
VS
173282011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17329
17330 Fix 2G limit on ZFS.
17331
17332 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17333 types.
17334 (uberblock_verify): Likewise.
17335 (dmu_read): Likewise.
17336 (grub_zfs_read): Likewise. Remove invalid cast.
17337
68c72069
VS
173382011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17339
17340 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17341 (grub_jfs_blkno): Fix incorrect shift.
17342 (grub_jfs_read_file): Use more appropriate types.
17343
6e536dc8
VS
173442011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17345
17346 Support triple indirect on minix2 and minix3.
17347
17348 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17349 Declare triple_indir_zone.
17350 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17351 indirect.
17352
e0864e7a
VS
173532011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17354
17355 Minix FS fixes.
17356
17357 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17358 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17359 Rename ctime to mtime. All users updated.
17360 (grub_minix_get_file_block): Fix types and double indirect computations.
17361
89481cab
VS
173622011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17363
17364 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17365 if no label is found.
17366 (grub_fat_iterate_dir): Fix file size type.
17367 (grub_fat_iterate_dir): Likewise.
17368
f646e143
VS
173692011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17370
17371 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17372 save some space.
17373 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17374 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17375
534d769e
VS
173762011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17377
17378 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17379
e084ba18
VS
173802011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17381
17382 * util/import_gcry.py: Accept space between # and include.
17383
3471ecdf
VS
173842011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17385
17386 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17387
124df5f6
VS
173882011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17389
17390 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17391
17392 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17393 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17394 yylex_strncpy.
17395 * grub-core/script/yylex.l: Add fine-grained #pragma.
17396
4defb8d5
VS
173972011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17398
17399 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17400 New inline function.
17401 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17402 Likewise.
17403 (memset) [GRUB_UTIL]: Likewise.
17404 (memcmp) [GRUB_UTIL]: Likewise.
17405
4e94ae65
VS
174062011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17407
17408 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17409 inline function rather than a define.
17410
18c575e5
VS
174112011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17412
17413 * util/grub-setup.c: Add missing include.
17414
f8bc22a8
VS
174152011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17416
17417 * util/ieee1275/grub-ofpathname.c: Add missing include.
17418
3ce69fc9
VS
174192011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17420
17421 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17422 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17423 Likewise.
17424
d1e293bb
VS
174252011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17426
17427 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17428 grub_memcmp usage.
17429
7a5c54a4
VS
174302011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17431
17432 * util/grub-install.in: Add datarootdir as per automake manual
17433 suggestion.
17434 * util/grub-mknetdir.in: Likewise.
17435
174362011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
17437
17438 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17439 suggestion.
17440 * util/grub.d/10_kfreebsd.in: Likewise.
17441 * util/grub.d/10_linux.in: Likewise.
17442 * util/grub.d/10_netbsd.in: Likewise.
17443 * util/grub.d/10_windows.in: Likewise.
17444 * util/grub.d/20_linux_xen.in: Likewise.
17445
766f7d08
VS
174462011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17447
17448 Remove redundant grub_kernel_image_size.
17449
17450 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17451 _edata and _start.
17452 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17453 the small code. It moves it only by few bytes but simplifies the code.
17454 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17455 _start.
17456 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17457 (grub_kernel_image_size): Removed.
17458 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17459 (grub_kernel_image_size): Removed.
17460 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17461 compiled with Apple toolchain.
17462 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17463 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17464 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17465 (grub_total_module_size): Likewise.
17466 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17467 Removed.
17468 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17469 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17470 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17471 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17472 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17473 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17474 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17475 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17476 Removed.
17477 (grub_total_module_size): Removed.
17478 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17479 (image_targets): Likewise.
17480 Set .compressed_size to no field on sparc.
17481 (generate_image): Remove kernel_image_size handling.
17482
fcf1d672
SJ
174832011-10-19 Szymon Janc <szymon@janc.net.pl>
17484
17485 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17486 NULL pointer dereference.
17487
de9c615e
VS
174882011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17489
17490 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17491 done with a dedicated section.
17492
17493 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17494 Ensure the correct position of boot_path.
17495 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17496 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17497 other fields.
17498 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17499 * include/grub/boot.h: Removed. All references removed.
17500 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17501 Removed.
17502 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17503
e55599dc
VS
175042011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17505
17506 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17507 name.
17508
36dd20ad
VS
175092011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17510
17511 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17512
f8f72eb8
VS
175132011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17514
17515 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17516 Don't add the bogus brackets.
17517
a374751b
VS
175182011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17519
17520 ExFAT support.
17521
17522 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17523 * grub-core/Makefile.core.def (exfat): New module.
17524 * grub-core/fs/exfat.c: New file.
17525 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17526 (GRUB_FAT_ATTR_*): Make into an enum.
17527 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17528 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17529 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17530 (GRUB_FAT_MAXFILE): Removed.
17531 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17532 (grub_current_fat_bpb_t): New type.
17533 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17534 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17535 (grub_fat_dir_node_t): New type.
17536 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17537 (fat_log2) [MODE_EXFAT]: Removed.
17538 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17539 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17540 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17541 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17542 (grub_fat_label) [MODE_EXFAT]: New function.
17543 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17544 reserved_first_sector to 0.
17545
544c2487
VS
175462011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17547
17548 Move grub_reboot out of the kernel.
17549
17550 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17551 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17552 * grub-core/lib/efi/reboot.c: ... here.
17553 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17554 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17555 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17556 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17557 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17558 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17559 * grub-core/lib/ieee1275/reboot.c: ... here.
17560 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17561 * grub-core/lib/mips/arc/reboot.c: ... here.
17562 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17563 * grub-core/lib/mips/loongson/reboot.c: ...here.
17564 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17565 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17566 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17567 * include/grub/i386/reboot.h: New file.
17568 * include/grub/mips/loongson/ec.h: Fix includes.
17569 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17570 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17571 * grub-core/lib/i386/reboot.c: New file.
17572
a97501d2
VS
175732011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17574
17575 Make grub_prefix into module to fix the arbitrary limit and save
17576 some space.
17577
17578 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17579 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17580 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17581 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17582 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17583 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17584 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17585 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17586 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17587 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17588 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17589 * include/grub/ia64/efi/kernel.h: Removed.
17590 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17591 (grub_prefix): Removed.
17592 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17593 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17594 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17595 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17596 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17597 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17598 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17599 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17600 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17601 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17602 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17603 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17604 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17605 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17606 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17607 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17608 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17609 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17610 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17611 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17612 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17613 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17614 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17615 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17616 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17617 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17618 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17619 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17620 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17621 from module.
17622 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17623 prefix_end.
17624 (image_targets): Likewise.
17625 (generate_image): Put prefix as a module.
17626
39705fad
VS
176272011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17628
17629 Replace grub_module_iterate with FOR_MODULES.
17630
17631 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17632 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17633 (grub_efi_modules_addr): ...this.
17634 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17635 (grub_efi_init): Set grub_modbase.
17636 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17637 (grub_modbase): New variable.
17638 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17639 (grub_modbase): New variable.
17640 (grub_machine_init): Set grub_modbase.
17641 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17642 (grub_modbase): New variable.
17643 (grub_machine_init): Set grub_modbase.
17644 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17645 (grub_modbase): New variable.
17646 (grub_machine_init): Set grub_modbase.
17647 * grub-core/kern/main.c (grub_module_iterate): Remove.
17648 (grub_modules_get_end): Use grub_modbase.
17649 (grub_load_modules): Use FOR_MODULES.
17650 (grub_load_config): Likewise.
17651 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17652 (grub_modbase): New variable.
17653 (grub_machine_init): Set grub_modbase.
17654 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17655 (grub_modbase): New variable.
17656 (grub_machine_init): Set grub_modbase.
17657 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17658 Removed.
17659 (grub_modbase): New variable.
17660 (grub_machine_init): Set grub_modbase.
17661 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17662 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17663 (grub_module_iterate): Likewise.
17664 (grub_modbase): New variable declaration.
17665 (FOR_MODULES): New macro.
17666
2afb7f6c
VS
176672011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17668
17669 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17670 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17671
366e34fa
VS
176722011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17673
17674 Fix few obvious type discrepancies.
17675
17676 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17677 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17678 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17679 variable.
17680 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17681 and connected types.
17682 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17683 offset.
17684 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17685 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17686 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17687 and connected types.
17688
177b960e
VS
176892011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17690
17691 Fix python 3.x incompatibilities.
17692
17693 * gentpl.py: Put brackets around print strings.
17694 * util/import_gcry.py: Open explicitly as utf-8.
17695 Use in instead of has_key.
17696
3b619ae1
VS
176972011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17698
17699 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17700 (GRUB_XFS_INO_AGBITS): Make into inline function.
17701 (GRUB_XFS_INO_INOINAG): Likewise.
17702 (GRUB_XFS_INO_AG): Likewise.
17703 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17704 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17705 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17706 (GRUB_XFS_EXTENT_SIZE): Likewise.
17707 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17708 (GRUB_XFS_NEXT_DIRENT): Likewise.
17709 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17710 (grub_xfs_read_file): Fix offset type.
17711
8bcebcb8
RM
177122011-10-15 Robert Millan <rmh@gnu.org>
17713
17714 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17715
0017e5ef
RM
177162011-10-15 Robert Millan <rmh@gnu.org>
17717
17718 Fix build problem on FreeBSD and GNU/kFreeBSD.
17719
17720 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17721
d8919552
VS
177222011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17723
17724 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17725
17726 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17727 types.
17728 (grub_hfsplus_btree_recoffset): Likewise.
17729 (grub_hfsplus_btree_recptr): Likewise.
17730 (grub_hfsplus_find_block): Likewise.
17731 (grub_hfsplus_btree_search): Likewise.
17732 (grub_hfsplus_read_block): Likewise.
17733 (grub_hfsplus_read_file): Likewise.
17734 (grub_hfsplus_mount): Likewise.
17735 (grub_hfsplus_btree_iterate_node): Likewise.
17736 (grub_hfsplus_btree_search): Likewise.
17737 (grub_hfsplus_iterate_dir): Likewise.
17738 (grub_hfsplus_read): A small code simplification.
17739
c81296b6
VS
177402011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17741
17742 * grub-core/kern/emu/hostdisk.c
17743 (convert_system_partition_to_system_disk): Don't assume that children
17744 of mapper nodes are mapper nodes.
17745
0eb8ffb1
VS
177462011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17747
17748 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17749 * include/grub/misc.h (grub_isxdigit): New function.
17750 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17751 switched to grub_isxdigit.
17752 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17753 number starting with a letter.
17754
a98f4a08
RM
177552011-10-09 Robert Millan <rmh@gnu.org>
17756
17757 LVM support for FreeBSD and GNU/kFreeBSD.
17758
17759 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17760 GNU/kFreeBSD.
17761 (LVM_DEV_MAPPER_STRING): Move from here ...
17762 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17763 * util/getroot.c: Include `<grub/util/lvm.h>'.
17764 (grub_util_get_dev_abstraction): Enable
17765 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17766 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17767 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17768 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17769 support it.
17770 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17771 GNU/kFreeBSD.
17772 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17773 when LVM abstraction is required for ${GRUB_DEVICE}.
17774
050e8e90
SJ
177752011-10-06 Szymon Janc <szymon@janc.net.pl>
17776
17777 Add support for LZO compression in GRUB:
17778 - import of minilzo library,
17779 - LZO decompression for btrfs,
17780 - lzop files decompression.
17781
17782 * grub-core/io/lzopio.c: New file.
17783 * grub-core/lib/adler32.c: Likewise.
17784 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17785 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17786 * grub-core/lib/minilzo/minilzo.c: Likewise.
17787 * grub-core/lib/minilzo/minilzo.h: Likewise.
17788 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17789 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17790 grub-core/lib/minilzo/minilzo.c to common.
17791 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17792 cflags in cppflags.
17793 * grub-core/Makefile.core.def (btrfs): Likewise.
17794 * grub-core/Makefile.core.def (lzopio): New module.
17795 (adler32): Likewise.
17796 * grub-core/fs/btrfs.c: Include minilzo.h.
17797 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17798 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17799 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17800 (grub_btrfs_lzo_decompress): New function.
17801 (grub_btrfs_extent_read): Add support for LZO compression type.
17802 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17803 (GRUB_USHRT_MAX): Likewise.
17804 (GRUB_UINT_MAX): Likewise.
17805 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17806 (UINT_MAX): Likewise.
17807 (CHAR_BIT): Likewise.
17808 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17809 grub-core/lib/posix_wrap/limits.h
17810 (UCHAR_MAX): Likewise.
17811 * include/grub/file.h (grub_file_filter_id): New compression filter
17812 GRUB_FILE_FILTER_LZOPIO.
17813 * include/grub/file.h (grub_file_filter_id): Set
17814 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17815 * include/grub/types.h (grub_get_unaligned16): New function.
17816 (grub_get_unaligned32): Likewise.
17817 (grub_get_unaligned64): Likewise.
17818 * util/import_gcry.py (cryptolist): Add adler32.
17819
0eb8ffb1
VS
178202011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17821
17822 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17823 in perspective decreases the complexity of build system and fixes
17824 compilation right now.
17825
ce79cc99 178262011-10-01 Ales Nesrsta <starous@volny.cz>
17827
17828 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17829 (fixed problem related to using UHCI with coreboot).
17830
8667a314
BC
178312011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17832
17833 * gentpl.py: Use Autogen macros so that the output template file
17834 (Makefile.tpl) size is reduced.
17835
fc5efcc0
MK
178362011-09-29 Mads Kiilerich <mads@kiilerich.com>
17837
17838 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17839 extra_dist.
17840
d1ab689d
ML
178412011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17842
17843 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17844 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17845
c05de032
ML
178462011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17847
17848 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17849 _fullpath.
17850
cca7ccd8
ML
178512011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17852
17853 Remove extra declaration of sleep for mingw32.
17854
17855 * util/misc.c (sleep) [__MINGW32__]: Removed.
17856 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17857
e0b0dc83
GS
178582011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17859
17860 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17861 type and packname.
17862 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17863 Resurrected.
17864 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17865 (grub_netbsd_btinfo_bootwedge): New struct.
17866 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17867 New function.
17868 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17869
91a1a164
TH
178702011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17871
17872 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17873 loader.
17874
2ded951e
AB
178752011-09-28 Andreas Born <futur.andy@googlemail.com>
17876
17877 Fix incorrect identifiers in bash-completion.
17878
17879 * util/bash-completion.d/grub-completion.bash.in
17880 (_grub_mkpasswd-pbkdf2): Rename to ...
17881 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17882 (_grub_script-check): Rename to ...
17883 (_grub_script_check): ... this. All users updated.
17884
69915030
VS
178852011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17886
17887 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17888 Return 0 if disk isn't biosdisk.
17889
20fd15f9
GS
178902011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17891
17892 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17893 on NetBSD.
17894 * Makefile.util.def (grub-fstest): Likewise.
17895
1a7d7db9
GS
178962011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17897
17898 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17899 Get sector size from disk label.
17900
2221ab6c
CW
179012011-09-05 Colin Watson <cjwatson@ubuntu.com>
17902
17903 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17904 */README* as well as README*.
17905 Reported by: Axel Beckert.
17906
ca51c4a0
VS
179072011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17908
17909 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17910 case of less than 256 MiB of RAM.
17911
ab80f326
VS
179122011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17913
17914 * grub-core/commands/wildcard.c (make_regex): Handle @.
17915
4155e697
VS
179162011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17917
17918 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17919
ab178c08
SJ
179202011-08-21 Szymon Janc <szymon@janc.net.pl>
17921
17922 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17923 AC_LANG_CONFTEST macros.
17924
7dc3c686
SJ
179252011-08-20 Szymon Janc <szymon@janc.net.pl>
17926
17927 Add grub-fstest option to uncompress data for commands.
17928
17929 * util/grub-fstest.c (uncompress): New var.
17930 (options): New option -u.
17931
fe8d4a7b
SJ
179322011-08-20 Szymon Janc <szymon@janc.net.pl>
17933
17934 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17935 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17936
a5219af1
SJ
179372011-08-20 Szymon Janc <szymon@janc.net.pl>
17938
17939 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17940 file type was not recognized correctly (not gzip or corrupted).
17941
f87abff5
VS
179422011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17943
17944 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17945 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17946
d94497ea
VS
179472011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17948
17949 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17950 loongson.
17951 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17952 video_radeon_fuloong2e.
17953 * grub-core/video/radeon_fuloong2e.c: New file.
17954 * include/grub/video.h (grub_video_id_t): Add new ID
17955 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17956
0d1fd011
VS
179572011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17958
17959 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17960 define.
17961 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17962 that PRID matches the detected subplatform and reset the subplatform
17963 if it doesn't.
17964
84beb0ee
VS
179652011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17966
17967 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17968
1227c133
VS
179692011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17970
17971 Fix PCI iterating on functions >= 4.
17972
17973 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17974 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17975 Removed.
17976 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17977 (grub_pci_read): Fix bitmask.
17978 (grub_pci_read_word): Likewise.
17979 (grub_pci_read_byte): Likewise.
17980 (grub_pci_write): Likewise.
17981 (grub_pci_write_word): Likewise.
17982 (grub_pci_write_byte): Likewise.
17983
9594c689
VS
179842011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17985
17986 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17987 can still be specified in TARGET_CFLAGS)
17988
14a2562c
VS
179892011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17990
17991 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17992
17993 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17994 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17995 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17996 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17997 (FULOONG): Rename to ...
17998 (FULOONG2F): ... this. All users updated.
17999 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18000 (machtype_fuloong2f_str): ... this.
18001 (machtype_fuloong2e_str): New string.
18002 Check for machtype_fuloong2e_str.
18003 * grub-core/loader/mips/linux.c (loongson_machtypes)
18004 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18005 * grub-core/term/serial.c (loongson_defserial)
18006 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18007 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18008 loongson_defserial.
18009 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18010 Rename to ...
18011 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18012 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18013 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18014 to IMAGE_FULOONG2F_FLASH. All users updated.
18015 (image_targets): Rename images.
18016 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18017
b526cbb6
SJ
180182011-08-19 Szymon Janc <szymon@janc.net.pl>
18019
18020 Make enable of disk cache statistics code configurable.
18021
18022 * configure.ac: --enable-cache-stats added.
18023 * config.h.in (DISK_CACHE_STATS): New define.
18024 * grub-core/Makefile.core.def (cacheinfo): New command.
18025 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18026 * grub-core/commands/cacheinfo.c: New file.
18027 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18028 moved to cacheinfo.c.
18029 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18030 debug code.
18031 * include/grub/disk.h: Likewise.
18032
fb739ccd
SJ
180332011-08-19 Szymon Janc <szymon@janc.net.pl>
18034
18035 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18036 * grub-core/Makefile.am: Likewise.
18037
2bba8cfd
VS
180382011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18039
18040 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18041 non-zero pull.
18042
43526629
VS
180432011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18044
18045 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18046 All users updated.
18047 (grub_jfs_lookup_symlink): Use correct starting inode.
18048
5c144cc8
VS
180492011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18050
18051 * util/grub-setup.c (main): Add missing gcry initialisation.
18052
b1257f65
VS
180532011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18054
18055 Don't accept text modes on EFI when booting Linux.
18056
18057 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18058 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18059
828bc390
ML
180602011-08-15 Mario Limonciello <mario_limonciello@dell.com>
180612011-08-15 Colin Watson <cjwatson@ubuntu.com>
18062
18063 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18064 use of "/path/.." as in grub-install for EFI as well as handling
18065 symlinks correctly.
18066 Fixes Debian bug #637768.
18067
5f60ccac
CW
180682011-08-15 Colin Watson <cjwatson@ubuntu.com>
18069
18070 * util/grub-probe.c: Remove duplicate #include.
18071
6dc212f9
RM
180722011-08-10 Robert Millan <rmh@gnu.org>
18073
18074 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18075
18076 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18077 function.
18078 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18079 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18080
66816d85
RM
180812011-08-03 Robert Millan <rmh@gnu.org>
18082
18083 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18084 la_array as packed.
18085 Reported by: Zachary Bedell
18086
20168fca
CW
180872011-07-26 Colin Watson <cjwatson@ubuntu.com>
18088
18089 * configure.ac: The Loongson port requires grub-mkfont due to its
18090 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18091 be built.
18092
303b6246
CW
180932011-07-26 Colin Watson <cjwatson@ubuntu.com>
18094
18095 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18096 processing arguments (otherwise help2man fails when GRUB has not yet
18097 been installed).
18098
6795300e
VS
180992011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18100
41aa28ea
VS
18101 New script grub-mkstandalone.
18102
18103 * Makefile.util.def (grub-mkstandalone): New script.
18104 * docs/man/grub-mkstandalone.h2m: New file.
18105 * util/grub-mkstandalone.in: Likewise.
18106
181072011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18108
18109 Support ATA disks with 4K sectors.
6795300e
VS
18110
18111 * include/grub/ata.h (grub_ata): New member log_sector_size.
18112 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18113 (grub_ata_identify): Read sector size.
18114 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18115
92227597
VS
181162011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18117
18118 * util/grub-install.in: Don't use uhci outside of x86.
18119
c77069f5
VS
181202011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18121
18122 * util/grub-mkrescue.in: Add missing quotes.
18123
181242011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
18125
18126 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18127 dereference.
18128
583168a2
VS
181292011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18130
18131 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18132
6be1c01f
VS
181332011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18134
18135 * include/grub/video.h: add missing EXPORT_FUND on
18136 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18137
a1167439
VS
181382011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18139
18140 * include/grub/mips/kernel.h: Fix define conflict.
18141
bf66054f
VS
181422011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18143
18144 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18145 all four ways.
18146
8fc4fa45
CW
181472011-07-21 Colin Watson <cjwatson@ubuntu.com>
18148
18149 Preferred resolution detection for VBE.
18150
18151 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18152 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18153 the Flat Panel extension, in line with the X.org VESA driver.
18154 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18155 New function.
18156 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18157 (grub_vbe_bios_read_edid): Likewise.
18158 (grub_vbe_get_preferred_mode): Likewise.
18159 (grub_video_vbe_setup): When the mode is "auto", try to get the
18160 preferred mode from VBE, and use the largest mode that is no larger
18161 than the preferred mode (some BIOSes expose a preferred mode that is
18162 not in their mode list!). If this fails, fall back to 640x480 as a
18163 safe conservative choice.
18164 (grub_video_vbe_get_edid): New function.
18165 (grub_video_vbe_adapter): Add get_edid.
18166 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18167 (struct grub_video_adapter): Add get_edid.
18168 (grub_video_edid_checksum): Add prototype.
18169 (grub_video_edid_preferred_mode): Likewise.
18170 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18171 structure.
18172
18173 * grub-core/commands/videoinfo.c (print_edid): New function.
18174 (grub_cmd_videoinfo): Print EDID if available.
18175
18176 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18177 is more appropriate on a wider range of platforms than 640x480.
18178 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18179 documentation.
18180
ca5572a9
VS
181812011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18182
18183 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18184
e4bcf625
VS
181852011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18186
18187 * po/POTFILES.in: Regenerate.
18188
c4edd548
VS
181892011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18190
18191 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18192 incorrect memory usage.
18193
16a2bab0
VS
181942011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18195
18196 * util/grub-install.in: Source grub-mkconfig_lib.
18197
2e418de6
VS
181982011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18199
18200 Remove getroot.c from core on emu platform.
18201
18202 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18203 kern/emu/raid.c.
18204 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18205 useless.
18206 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18207 * util/getroot.c (get_win32_path): ... here.
18208 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18209 * util/getroot.c (fini_libzfs): ... here.
18210 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18211 * util/getroot.c (grub_get_libzfs_handle): ... here.
18212 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18213 Moved from here...
18214 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18215 * grub-core/kern/emu/misc.c
18216 (grub_make_system_path_relative_to_its_root): Moved from here...
18217 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18218 * grub-core/kern/emu/getroot.c: Moved from here ...
18219 * util/getroot.c: ... here. All users updated.
18220 * grub-core/kern/emu/raid.c: Moved from here ...
18221 * util/raid.c: ... here. All users updated.
18222
def9832a
VS
182232011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18224
18225 * po/POTFILES.in: Regenerate.
18226
cd8fe79a
VS
182272011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18228
18229 Fix compilation on GNU/Linux.
18230
18231 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18232 Disable geli.
18233 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18234 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18235 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18236
a251b719
VS
182372011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
182382011-07-07 Michael Gorven <michael@gorven.za.net>
182392011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18240
18241 LUKS and GELI support.
18242
18243 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18244 grub-core/disk/luks.c, grub-core/disk/geli.c,
18245 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18246 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18247 grub-core/lib/arg.c.
18248 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18249 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18250 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18251 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18252 (grub-bin2h): Add libgcry.a.
18253 (grub-mkimage): Likewise.
18254 (grub-mkrelpath): Likewise.
18255 (grub-script-check): Likewise.
18256 (grub-editenv): Likewise.
18257 (grub-mkpasswd-pbkdf2): Likewise.
18258 (grub-pe2elf): Likewise.
18259 (grub-fstest): Likewise.
18260 (grub-mkfont): Likewise.
18261 (grub-mkdevicemap): Likewise.
18262 (grub-probe): Likewise.
18263 (grub-ofpath): Likewise.
18264 (grub-mklayout): Likewise.
18265 (example_unit_test): Likewise.
18266 (grub-menulst2cfg): Likewise.
18267 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18268 * grub-core/Makefile.core.def (cryptodisk): New module.
18269 (luks): Likewise.
18270 (geli): Likewise.
18271 * grub-core/disk/AFSplitter.c: New file.
18272 * grub-core/disk/cryptodisk.c: Likewise.
18273 * grub-core/disk/geli.c: Likewise.
18274 * grub-core/disk/luks.c: Likewise.
18275 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18276 grub_util_is_lvm.
18277 (grub_util_get_dm_abstraction): New function.
18278 (grub_util_follow_gpart_up): Likewise.
18279 (grub_util_get_geom_abstraction): Likewise.
18280 (grub_util_get_dev_abstraction): Use new functions.
18281 (grub_util_pull_device): Pull GELI and LUKS.
18282 (grub_util_get_grub_dev): Handle LUKS and GELI.
18283 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18284 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18285 (follow_geom_up): Removed.
18286 (grub_util_fd_seek): New function.
18287 (open_device): Use grub_util_fd_seek.
18288 (nread): Rename to ..
18289 (grub_util_fd_read): ... this. All users updated.
18290 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18291 (grub_crypto_cbc_decrypt): Likewise.
18292 (grub_crypto_hmac_write): Likewise.
18293 (grub_crypto_hmac_buffer): Likewise.
18294 (grub_password_get): Extend to util.
18295 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18296 New member modname.
18297 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18298 * include/grub/cryptodisk.h: New file.
18299 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18300 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18301 LUKS and GELI.
18302 (grub_util_follow_gpart_up): New proto.
18303 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18304 (grub_util_fd_read): Likewise.
18305 (grub_cryptodisk_cheat_mount): Likewise.
18306 (grub_util_cryptodisk_print_uuid): Likewise.
18307 (grub_util_get_fd_sectors): Likewise.
18308 * util/grub-fstest.c (mount_crypt): New var.
18309 (fstest): Mount crypto if requested.
18310 (options): New option -C.
18311 (argp_parser): Parse -C.
18312 (main): Init and fini gcry.
18313 * util/grub-install.in: Support cryptodisk install.
18314 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18315 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18316 cryptodisk.
18317 (prepare_grub_to_access_device): Likewise.
18318 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18319 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18320 (probe_cryptodisk_uuid): New function.
18321 (probe_abstraction): Likewise.
18322 (probe): Use new functions.
18323 * util/import_gcry.py: Create Makefile.utilgcry.def.
18324 Add modname member.
18325
9bfdcbbc
VS
183262011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18327
18328 Lazy device scanning.
18329
18330 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18331 (grub-setup): Remove util/raid.c.
18332 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18333 * grub-core/disk/lvm.c (scan_depth): New variable.
18334 (grub_lvm_iterate): Rescan if necessary.
18335 (find_lv): New function based on grub_lvm_open.
18336 (grub_lvm_open): Use find_lv. Rescan on error.
18337 (is_node_readable): New function.
18338 (is_lv_readable): Likewise.
18339 (grub_lvm_scan_device): Skip already found disks.
18340 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18341 Stop if searched device is found and readable.
18342 * grub-core/disk/raid.c (inscnt): New variable.
18343 (scan_depth): Likewise.
18344 (scan_devices): New function based on grub_raid_register. Abort if
18345 looked for device is found.
18346 (grub_raid_iterate): Rescan if needed.
18347 (find_array): NEw function based on -grub_raid_open.
18348 (grub_raid_open): Use find_array and rescan.
18349 (insert_array): Set became_readable_at.
18350 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18351 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18352 New function.
18353 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18354 (grub_util_pull_device): New function.
18355 (grub_util_get_grub_dev): Call grub_util_pull_device.
18356 * util/raid.c: Moved to ..
18357 * grub-core/kern/emu/raid.c: ... here.
18358 (grub_util_raid_getmembers): New parameter "bootable".
18359 All users updated. Support 1.x.
18360 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18361 All users updated.
18362 * include/grub/disk.h (grub_disk_pull_t): New enum.
18363 (grub_disk_dev): Change iterate prototype.
18364 All users updated.
18365 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18366 New proto.
18367 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18368 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18369 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18370 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18371 All users updated.
18372 * include/grub/util/raid.h: Removed.
18373
1c358e59
VS
183742011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18375
18376 * po/POTFILES.in: Regenerate.
18377
abee94ed
VS
183782011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18379
18380 Unify sparc init with other ieee1275.
18381
18382 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18383 instead of kern/sparc64/ieee1275/init.c.
18384 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18385 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18386 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18387 grub/machine/kernel.h.
18388 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18389 (grub_claim_heap) [__sparc__]: Use sparc version.
18390 (grub_machine_init): Moved args parsing to
18391 (grub_parse_cmdline): ...this.
18392 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18393 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18394 New definition.
18395 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18396
18397 Move BOOTP to separate file.
18398
18399 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18400 * grub-core/net/net.c: Move all BOOTP functions to
18401 * grub-core/net/bootp.c: ... here.
18402
18403 Use frame interface on PXE.
18404
18405 * grub-core/Makefile.core.def (pxecmd): Removed.
18406 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18407 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18408 * grub-core/i386/pc/pxe.c: Moved from here ...
18409 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18410 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18411 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18412
18413 EFI network support.
18414
18415 * grub-core/Makefile.core.def (efinet): New module.
18416 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18417 here...
18418 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18419 All users updated.
18420 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18421 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18422 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18423 * grub-core/net/drivers/efi/efinet.c: New file.
18424 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18425 (grub_efi_net_config): New extern var.
18426
18427 Various cleanups and bugfixes.
18428
18429 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18430 error.
18431 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18432 disk declared as partition.
18433 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18434 leak on failure.
18435 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18436 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18437 (grub_debug_zalloc): Likewise.
18438 (grub_debug_realloc): Likewise.
18439 (grub_debug_memalign): Likewise.
18440 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18441 Check that target is IPv4.
18442 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18443 local-mac-address as fallback.
18444 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18445 memory leak.
18446 * grub-core/net/ip.c (ipchksum): Rename to ...
18447 (grub_net_ip_chksum): ... this. All users updated.
18448 (grub_net_recv_ip_packets): Special handling for DHCP.
18449 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18450
18451 Unify prefix handling
18452
18453 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18454 (grub_machine_get_bootlocation): ... this.
18455 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18456 (grub_machine_get_bootlocation): ... this.
18457 (grub_prefix): New variable.
18458 (prefix): Removed.
18459 (root_dev): New variable.
18460 (dir): Likewise.
18461 (main): Use new variables.
18462 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18463 Revamped into ...
18464 (grub_machine_get_bootlocation): ... this.
18465 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18466 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18467 (grub_machine_get_bootlocation): ... this.
18468 (grub_machine_set_prefix): Removed.
18469 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18470 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18471 Revamped into ...
18472 (grub_machine_get_bootlocation): ... this.
18473 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18474 (grub_set_prefix_and_root): ... this. All users updated.
18475 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18476 Revamped into ...
18477 (grub_machine_get_bootlocation): ... this.
18478 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18479 (grub_machine_get_bootlocation): New proto.
18480 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18481
18482 Less intrusive and more reliable seek on network implementation.
18483
18484 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18485 (grub_file_seek): Don't call grub_file_net_seek.
18486 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18487 (grub_net_fs_read_real): .. this.
18488 (grub_net_seek_real): Use net->offset.
18489 (grub_net_fs_read): Seek if necessary.
18490
18491 Unify IEEE1275 netwotk config with the other platforms.
18492
18493 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18494 New variable.
18495 (grub_machine_get_bootlocation): Support network.
18496 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18497 Support type and device parsing.
18498 (grub_ieee1275_get_device_type): New function.
18499 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18500 into ...
18501 (grub_ieee1275_net_config_real): ... this.
18502 (grub_ofnet_probecards): Removed.
18503 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18504 * include/grub/ieee1275/ofnet.h: Removed.
18505 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18506 extern var.
18507 (grub_ieee1275_get_device_type): New function.
18508
18509 Unify network device closing across platforms and make more robust.
18510
18511 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18512 grub_grubnet_fini.
18513 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18514 already.
18515 * grub-core/net/net.c (grub_net_network_level_interface_register):
18516 Update num_ifaces.
18517 (grub_net_card_unregister): Close all interfaces.
18518 (receive_packets): Don't poll if no iterfaces are registered.
18519 Open if necessary.
18520 (grub_net_fini_hw): New function.
18521 (grub_net_restore_hw): Likewise.
18522 (fini_hnd): New variable.
18523 (GRUB_MOD_INIT): Register preboot hook.
18524 (GRUB_MOD_FINI): Run and unregister preboot hook.
18525
18526 Poll network cards when idle.
18527
18528 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18529 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18530 * grub-core/net/net.c (receive_packets): Save last poll time.
18531 (grub_net_poll_cards_idle_real): New function.
18532 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18533 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18534 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18535
18536 Rename ofnet interfaces.
18537
18538 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18539 (grub_ofnet_findcards): Use ofnet_%s names.
18540
18541 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18542
18543 Cleanup socket opening.
18544
18545 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18546 (grub_net_fs_close): Likewise.
18547 (grub_net_fs_read_real): Use eof member.
18548 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18549 (+grub_net_udp_close): New inline function.
18550
18551 * include/grub/net/tftp.h: Moved to the top of ...
18552 * grub-core/net/tftp.c: ... here.
18553 * include/grub/net/ip.h: Moved mostly to the top of ...
18554 * grub-core/net/ip.c: ... here.
18555 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18556 * grub-core/net/ethernet.c: ... here.
18557
18558 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18559
18560 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18561 FS name.
18562
18563 * include/grub/net/ip.h (ipv4_ini): Removed.
18564 (ipv4_fini): Likewise.
18565
18566 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18567 (grub_net_send_ip_packets): Likewise.
18568
cf1337aa
VS
185692011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18570
18571 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18572 grub_read_cmos prototype.
18573
93c06ff9
VS
185742011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18575
18576 VGA text support in qemu-mips
18577
18578 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18579 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18580 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18581 text.
18582 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18583 * grub-core/kern/vga_init.c: ... this.
18584 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18585 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18586 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18587 Adjust.
18588 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18589 GRUB_MACHINE_PCI_IO_BASE.
18590
748ccabe
VS
185912011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18592
18593 MIPS qemu flash support.
18594
18595 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18596 magic.
18597 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18598 (grub_machine_init): Probe memory if its size isn't known.
18599 * util/grub-mkimage.c (image_targets): Add flash targets.
18600 (generate_image): Handle flash targets.
18601
d7345994
VS
186022011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18603
18604 MIPS qemu at_keyboard support.
18605
18606 * gentpl.py (videoinkernel): Add qemu-mips.
18607 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18608 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18609 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18610 modules.
18611 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18612 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18613 * grub-core/term/serial.c (grub_serial_register)
18614 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18615
a07a81b3
VS
186162011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18617
18618 CMOS support on sparc.
18619
18620 * gentpl.py (cmos): Add powerpc and sparc.
18621 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18622 powerpc and sparc.
18623 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18624 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18625 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18626 grub_set_datetime_cmos.
18627 * grub-core/lib/ieee1275/cmos.c: New file.
18628 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18629 (find_rtc): Set no_ieee1275_rtc on error.
18630 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18631 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18632 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18633 fail. Move value to argument. All users updated
18634 (grub_cmos_write): Likewise.
18635 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18636 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18637 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18638 grub_get_datetime_cmos and grub_set_datetime_cmos.
18639
77546584
GS
186402011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18641
18642 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18643 sourcing grub-mkconfig_lib.
18644 * util/update-grub_lib.in: Likewise.
18645 * util/grub.d/00_header.in: Likewise.
18646 * util/grub.d/10_hurd.in: Likewise.
18647 * util/grub.d/10_kfreebsd.in: Likewise.
18648 * util/grub.d/10_linux.in: Likewise.
18649 * util/grub.d/10_netbsd.in: Likewise.
18650 * util/grub.d/10_windows.in: Likewise.
18651 * util/grub.d/20_linux_xen.in: Likewise.
18652 * util/grub.d/30_os-prober.in: Likewise.
18653
54894791
CW
186542011-06-28 Colin Watson <cjwatson@ubuntu.com>
18655
18656 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18657 default_bg_color rather than black.
18658 (grub_gfxterm_fullscreen): Likewise.
18659 (grub_gfxterm_background_color_cmd): Save new background color in
18660 default_bg_color.
18661
8d5d8444
VS
186622011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18663
18664 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18665
5afeb5bd
VS
186662011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18667
18668 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18669 mismerge.
18670
ba7df45e
VS
186712011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18672
18673 Chainloading on coreboot support.
18674
18675 * grub-core/Makefile.core.def (chain): Add coreboot.
18676 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18677
d0b526b2
VS
186782011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18679
18680 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18681 if it happens.
18682
5ff1d945
VS
186832011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18684
18685 Implement time command.
18686
18687 * grub-core/Makefile.core.def (time): New module.
18688 * grub-core/commands/time.c: New file.
18689 * grub-core/script/parser.y: Remove "time" keyword.
18690 * grub-core/script/yylex.l: Likewise.
18691
5ebaad7e
VS
186922011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18693
18694 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18695
bdea3798
VS
186962011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18697
18698 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18699 when handling leftovers.
18700
b28c5655
VS
187012011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18702
18703 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18704 so that help2man doesn't fail.
18705
b6f945dc
VS
187062011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18707
18708 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18709 type in pointers on sparc64.
18710 (get_card_packet): Likewise.
18711
f9b75e8a
CW
187122011-06-27 Colin Watson <cjwatson@ubuntu.com>
18713
18714 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18715 with `*'.
18716 (grub_cmd_videoinfo): Fetch current video mode.
18717
1e3d9b86
VS
187182011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18719
18720 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18721 because of underlying system restrictions.
18722
efff4b1c
VS
187232011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18724
18725 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18726 necessary.
18727
9fc9ce37
VS
187282011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18729
18730 Coreboot video support.
18731
18732 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18733 (vbe): Likewise.
18734 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18735 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18736 here ...
18737 * grub-core/kern/i386/int.S: ... here.
18738 * grub-core/video/i386/pc/vbe.c: Updated includes.
18739 * grub-core/video/i386/pc/vga.c: Likewise.
18740 * include/grub/i386/coreboot/memory.h
18741 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18742 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18743 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18744 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18745 Disable interrupts.
18746 * include/grub/i386/pc/vga.h: Removed. All users updated.
18747
41bec7fe
VS
187482011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18749
18750 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18751 definitions for dprintf.
18752 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18753
ca80309d
VS
187542011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18755
18756 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18757 prototype.
18758 (get_card_packet): Likewise.
18759
9e322ce8
YB
187602011-06-26 Yves Blusseau <blusseau@zetam.org>
18761
18762 Display the path of the file when file is not found
18763
18764 * grub-core/fs/fat.c: Display the filename when file is not found.
18765 * grub-core/fs/fshelp.c: Likewise.
18766 * grub-core/fs/hfs.c: Likewise.
18767 * grub-core/fs/jfs.c: Likewise.
18768 * grub-core/fs/minix.c: Likewise.
18769 * grub-core/fs/ufs.c: Likewise.
18770 * grub-core/fs/btrfs.c: Likewise.
18771 * grub-core/commands/i386/pc/play.c: Likewise.
18772
cbf597af
SJ
187732011-06-26 Szymon Janc <szymon@janc.net.pl>
18774
18775 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18776 pointer checks before calling grub_free().
18777 * grub-core/commands/wildcard.c (match_devices): Likewise.
18778 * grub-core/commands/wildcard.c (match_files): Likewise.
18779 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18780 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18781 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18782 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18783 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18784 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18785 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18786 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18787 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18788
6295b32f
P
187892011-06-25 Patrick <p55@mailinator.com>
18790
18791 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18792
77c0840b
VS
187932011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18794
18795 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18796 (grub_pxe_send): Likewise.
18797 (GRUB_MOD_INIT): Fix types.
18798
40ea05de
SJ
187992011-06-24 Szymon Janc <szymon@janc.net.pl>
18800
18801 * grub-core/io/xzio.c: Fix code style issues
18802
90162423
MRA
188032011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
188042011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
18805
18806 Network infrastructure.
18807 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18808
18809 * include/grub/net/arp.h: New file.
90162423
MRA
18810 * include/grub/net/device.h: Likewise.
18811 * include/grub/net/ethernet.h: Likewise.
18812 * include/grub/net/ip.h: Likewise.
18813 * include/grub/net/netbuff.h: Likewise.
18814 * include/grub/net/tftp.h: Likewise.
18815 * include/grub/net/udp.h: Likewise.
18816 * include/grub/ieee1275/ofnet.h: Likewise.
18817 * include/grub/emu/export.h: Likewise.
18818 * include/grub/net.h: Likewise.
18819 * grub-core/net/arp.c: Likewise.
18820 * grub-core/net/ethernet.c: Likewise.
18821 * grub-core/net/ip.c: Likewise.
18822 * grub-core/net/udp.c: Likewise.
18823 * grub-core/net/tftp.c: Likewise.
18824 * grub-core/net/netbuff.c: Likewise.
18825 * grub-core/net/net.c: Likewise.
18826 * grub-core/net/drivers/emu/emunet.c: Likewise.
18827 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18828 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18829 export.h.
18830 * grub-core/Makefile.core.def (net): New module.
18831 (tftp): Likewise.
18832 (ofnet): Likewise.
18833 (emunet): Likewise.
18834 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18835 network protocols.
18836 * grub-core/kern/device.c (grub_net_open) : New variable.
18837 (grub_device_open): Handle network device.
18838 (grub_device_close): Likewise.
18839 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18840 (grub_grubnet_fini): Likewise.
18841 (grub_file_seek): Seek in network device.
18842 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18843 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18844 network root.
18845 (grub_machine_fini): Call grub_grubnet_fini.
18846 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18847 network.
18848 (grub_ieee1275_get_aliasdevname): New function.
18849 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18850 Add unofficial Solaris network info.
18851 (grub_multiboot_make_mbi): Likewise.
18852 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18853 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18854 * include/grub/device.h (grub_fs): Removed.
18855 * include/grub/err.h (grub_err_t): Add network-related values.
18856 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18857 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18858 (grub_ieee1275_get_aliasdevname): New proto.
18859 * include/grub/net.h: Rewritten.
423a1849 18860
031f22a0
VS
188612011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18862
18863 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18864 names.
18865
4388ca72
VS
188662011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18867
18868 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18869 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18870 it truncates the output.
18871 Reported by: Ximin Luo.
18872
98e2f506
VS
188732011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18874
18875 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18876
2a5e94d8
VS
188772011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18878
18879 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18880 partmap before abstraction.
18881
535c1910
AK
188822011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18883
18884 * util/grub-mkconfig_lib.in: Add missing quotes.
18885
bc09e1a2
VS
188862011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18887
18888 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18889 old method if mountinfo would return /dev/root and /dev/root doesn't
18890 exist.
18891
290766fb
VS
188922011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18893
18894 ZFS zlib support
18895
18896 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18897 (decomp_table): Add zlib entries.
18898 (zio_read): USe 8 bits for compression function rather than 3.
18899 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18900
189012011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18902
18903 * grub-core/disk/ahci.c: Add missing license statements.
18904 * grub-core/fs/romfs.c: Likewise.
18905 * grub-core/lib/ia64/setjmp.S: Likewise.
18906 * grub-core/loader/i386/pc/freedos.c: Likewise.
18907 * grub-core/loader/ia64/efi/linux.c: Likewise.
18908 * grub-core/video/colors.c: Likewise.
18909 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18910
5ab3f48a
VS
189112011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18912
18913 AHCI support.
18914
18915 * grub-core/Makefile.core.def (ata_pthru): Removed.
18916 (ahci): New module.
18917 (pata): Likewise.
18918 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18919 on unload.
18920 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18921 readwrite.
18922 (grub_hdparm_do_check_powermode_cmd): Likewise.
18923 (grub_hdparm_do_smart_cmd): Likewise.
18924 (grub_hdparm_set_val_cmd): Likewise.
18925 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18926 * grub-core/disk/ahci.c: New file.
18927 * grub-core/disk/ata.c: Factor out the low-level part into ...
18928 * grub-core/disk/pata.c: ... here.
18929 * grub-core/disk/ata_pthru.c: Contents moved to ...
18930 * grub-core/disk/pata.c: ... here.
18931 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18932 (grub_scsi_iterate): Use grub_scsi_names.
18933 (grub_scsi_open): Likewise.
18934 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18935 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18936 (grub_ata_regs_t): New struct.
18937 (grub_disk_ata_pass_through_parms): Likewise.
18938 (grub_ata_device): Renamed to ...
18939 (grub_ata): ... this.
18940 (grub_ata_dev): New struct.
18941 Removed all low-level inline functions.
18942 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18943 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18944 iterate hooks and open. All users updated.
18945 * util/grub-install.in: Handle AHCI disk module.
18946
c31dc5f5
SJ
189472011-06-23 Szymon Janc <szymon@janc.net.pl>
18948
18949 Add support for DRI and RSTn markers in JPEG files.
18950
18951 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18952 (JPEG_MARKER_RST0): Likewise.
18953 (JPEG_MARKER_RST1): Likewise.
18954 (JPEG_MARKER_RST2): Likewise.
18955 (JPEG_MARKER_RST3): Likewise.
18956 (JPEG_MARKER_RST4): Likewise.
18957 (JPEG_MARKER_RST5): Likewise.
18958 (JPEG_MARKER_RST6): Likewise.
18959 (JPEG_MARKER_RST7): Likewise.
18960 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18961 (grub_jpeg_decode_dri): New function.
18962 (grub_jpeg_decode_sos): Move image data related part into
18963 grub_jpeg_decode_data function.
18964 (grub_jpeg_decode_data): New function.
18965 (grub_jpeg_reset): New function.
18966 (grub_jpeg_decode_jpeg): Handle new markers.
18967
fe12fd5b
VS
189682011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18969
18970 * util/ieee1275/ofpath.c (check_sas): Close fd.
18971 (main): Free of_path.
18972 Reported by: David Volgyes <dvolgyes>.
18973
03147f46
VS
189742011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18975
18976 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18977 Reported by: David Volgyes <dvolgyes>.
18978
cad3237f
VS
189792011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18980
18981 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18982 file after stat.
18983 Reported by: David Volgyes <dvolgyes>.
18984
13548d26
VS
189852011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18986
18987 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18988
18989 Reported by: David Volgyes <dvolgyes>.
18990
e061a1b5
VS
189912011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18992
18993 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18994 Prevent memory leak.
18995
1abe47dc
VS
189962011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18997
18998 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18999 (main): Close file.
e061a1b5 19000 Reported by: David Volgyes <dvolgyes>.
1abe47dc 19001
fbc62666
VS
190022011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19003
19004 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19005 to continue if allocation is failed.
19006
19007 Reported by: David Volgyes <dvolgyes>.
19008
e98c83e9
DV
190092011-06-23 David Volgyes <dvolgyes>
19010
19011 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19012 dereference.
19013
a199a8cd
VS
190142011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19015
19016 Fix spurious warning.
19017
19018 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19019 (acorn_partition_map_find): Use .bin member.
19020
e2d1dba0
VS
190212011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19022
19023 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19024 /dev/root as a valid device.
19025
8a5d6919
JM
190262011-06-23 Jim Meyering <meyering@redhat.com>
19027
e2d1dba0
VS
19028 Avoid NULL deref in grub_device_open.
19029
8a5d6919
JM
19030 * grub-core/kern/device.c (grub_device_open): Don't dereference
19031 a NULL pointer upon failed grub_env_get.
19032
f7db6f4a
VS
190332011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19034
19035 Support non-512B sectors and agglomerate reads.
19036
19037 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19038 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19039 (disk_io_guid): Removed.
19040 (make_devices): Locate solely by BlockIO.
19041 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19042 (grub_efidisk_read): Use read_blocks.
19043 (grub_efidisk_write): Use write_blocks.
19044 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19045 log_sector_size.
19046 (get_safe_sectors): Handle non-512B sectors.
19047 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19048 sectors.
19049 (grub_biosdisk_write): Handle non-512B sectors.
19050 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19051 (grub_scsi_read): Remove special non-512B block handling (now handled
19052 one level up).
19053 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19054 and do sanity checks.
19055 (grub_disk_adjust_range): Handle non-512B sectors.
19056 (transform_sector): New function.
19057 (grub_disk_read_small): Likewise.
19058 (grub_disk_read): Rewritten.
19059 (grub_disk_write): Handle non-512B sectors.
19060 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19061 log_sector_size.
19062 (open_device): Use log_sector_size.
19063 (grub_util_biosdisk_read): Likewise.
19064 (grub_util_biosdisk_write): Likewise.
19065 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19066 non-512B sectors.
19067 (pc_partition_map_embed): Likewise.
19068 * include/grub/disk.h (grub_disk): New field log_sector_size.
19069 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19070 (GRUB_DISK_CACHE_BITS): Increased to 6.
19071 * util/grub-fstest.c (fstest): New command testload.
19072 (argp_parser): Likewise.
19073
881ac815
RM
190742011-06-16 Robert Millan <rmh@gnu.org>
19075
19076 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19077 `ata' driver on kernel of FreeBSD 9.
19078
19079 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19080 (get_ataraid_disk_name): New functions.
19081 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19082 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19083 get_ataraid_disk_name() and get_ada_disk_name().
19084
1e9aef7d
CW
190852011-06-13 Colin Watson <cjwatson@ubuntu.com>
19086
19087 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19088 input format.
19089
351c7c8a
CW
190902011-05-29 Colin Watson <cjwatson@ubuntu.com>
19091
19092 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19093 `ftp.gnu.org' for `alpha.gnu.org'.
19094
6b4e6430
CW
190952011-05-27 Colin Watson <cjwatson@ubuntu.com>
19096
19097 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19098 partitions under /dev/disk/by-id/.
19099
c64db050
CW
191002011-05-27 Colin Watson <cjwatson@ubuntu.com>
19101
19102 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19103 after ten consecutive open failures. Scanning all the way up to
19104 10000 is excessive and can cause serious performance problems in
19105 some configurations.
19106 Fixes Ubuntu bug #787461.
19107
245f4aba
VS
191082011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19109
19110 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19111 opening new one.
19112
f767c929
VS
191132011-05-21 Colin Watson <cjwatson@ubuntu.com>
191142011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19115
19116 Don't stat devices unless we have to.
19117
19118 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19119 dir == /dev/mapper.
19120 (grub_guess_root_device): Use already known os_dev if possible.
19121 * grub-core/kern/emu/hostdisk.c
19122 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19123 if device is known to be a dm one.
19124
f35fa3a6
CW
191252011-05-20 Colin Watson <cjwatson@ubuntu.com>
19126
19127 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19128 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19129 Reported by: Pawel Tecza.
19130
9a79fcf2
VS
191312011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19132
19133 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19134 (lsefisystab): Likewise.
19135 (lssal): Likewise.
19136 (lsefimmap): Likewise.
19137 (hdparm): Enable on qemu-mips.
19138 (setjmp): Add ia64 nodist.
19139 (serial): Simplify tags.
19140
63e3eea9
CW
191412011-05-18 Colin Watson <cjwatson@ubuntu.com>
19142
19143 * Makefile.util.def (grub-ofpathname): Install manual page.
19144
09728256
CW
191452011-05-18 Colin Watson <cjwatson@ubuntu.com>
19146
19147 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19148
8b63a142
CW
191492011-05-18 Colin Watson <cjwatson@ubuntu.com>
19150
19151 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19152
e775d8ed
VS
191532011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19154
19155 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19156 into dprintf.
19157
bf947d36
VS
191582011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19159
19160 Use full 64-bit division.
19161
19162 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19163 (grub_divmod64): ... this.
19164 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19165 version.
19166
b84f26c5
CW
191672011-05-18 Colin Watson <cjwatson@ubuntu.com>
19168
19169 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19170 `source'.
19171
5626056f
CW
191722011-05-18 Colin Watson <cjwatson@ubuntu.com>
19173
19174 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19175 to avoid accidents when debugging with 'sh -x'.
19176 * grub-core/gensyminfo.sh.in: Likewise.
19177 * tests/example_scripted_test.in: Likewise.
19178 * tests/grub_cmd_regexp.in: Likewise.
19179 * tests/grub_script_blanklines.in: Likewise.
19180 * tests/grub_script_dollar.in: Likewise.
19181 * tests/grub_script_expansion.in: Likewise.
19182 * tests/grub_script_final_semicolon.in: Likewise.
19183 * tests/partmap_test.in: Likewise.
19184 * tests/util/grub-shell-tester.in: Likewise.
19185 * tests/util/grub-shell.in: Likewise.
19186
e2965f4a
CW
191872011-05-18 Colin Watson <cjwatson@ubuntu.com>
19188
19189 Move gfxmenu color handling to video, so that gfxterm can use it
19190 too.
19191
19192 * grub-core/gfxmenu/named_colors.c: Move to ...
19193 * grub-core/video/colors.c: ... here. Rename
19194 grub_gui_get_named_color to grub_video_get_named_color.
19195 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19196 * grub-core/video/colors.c (my_isxdigit): ... here.
19197 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19198 Move to ...
19199 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19200 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19201 to ...
19202 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19203
19204 * include/grub/gui.h (grub_gui_color_t): Move to ...
19205 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19206 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19207 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19208 * include/grub/gui.h (grub_gui_map_color): Move to ...
19209 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19210 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19211 to ...
19212 * include/grub/video.h (grub_video_get_named_color): ... here.
19213 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19214 * include/grub/video.h (grub_video_parse_color): ... here.
19215
19216 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19217 video/colors.c.
19218 (gfxmenu): Remove gfxmenu/named_colors.c.
19219 (video) [videomodules]: Add video/colors.c.
19220
19221 Add a background_color command.
19222
19223 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19224 function.
19225 (GRUB_MOD_INIT): Register background_color command.
19226 (GRUB_MOD_FINI): Unregister background_color command.
19227 (redraw_screen_rect): Allow blend/replace of text layer to be
19228 controlled independently from whether there is a background bitmap.
19229 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19230 changing bitmap.
19231
1e4b4390
VS
192322011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19233
26618ff0
VS
19234 Patch BPB in ntldr and chainloader --bpb.
19235
1e4b4390
VS
19236 * grub-core/fs/fat.c: Include grub/fat.h.
19237 (grub_fat_bpb): Moved to ...
19238 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19239 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19240 grub/ntfs.h.
19241 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19242 Moved from here...
19243 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19244 here.
19245 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19246 New function.
19247 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19248 (GRUB_MOD_INIT): Show --bpb.
19249 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19250 * grub-core/normal/main.c (features): New variable.
19251 (GRUB_MOD_INIT): Set feature_* variables.
19252 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19253 proto.
19254 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19255
cf02731e
VS
192562011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19257
19258 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19259 for cleanness.
19260
e3a1073f
VS
192612011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19262
19263 FreeDOS direct loading support.
19264
19265 * docs/grub.texi (Supported OS): Add FreeDOS.
19266 * grub-core/Makefile.core.def (freedos): New module.
19267 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19268 variable.
19269 (grub_relocator16_boot): Handle %ebx.
19270 * grub-core/lib/i386/relocator16.S: Likewise.
19271 * grub-core/loader/i386/pc/freedos.c: New file.
19272
05caa461
VS
192732011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19274
19275 Long Linux command line support.
19276
19277 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19278 (maximal_cmdline_size): New variable.
19279 (allocate_pages): Use maximal_cmdline_size.
19280 (grub_cmd_linux): Set and use maximal_cmdline_size.
19281 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19282 (allocate_pages): Use maximal_cmdline_size.
19283 (grub_cmd_linux): Set and use maximal_cmdline_size.
19284 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19285 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19286 and cmdline_size.
19287
a2491e23
VS
192882011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
192892011-05-18 Colin Watson <cjwatson@ubuntu.com>
19290
19291 Improve devmapper support
19292
19293 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19294 (grub_util_is_lvm): New function.
19295 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19296 than lvm if not dmraid.
19297 Handle mapped md nodes.
19298 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19299 (grub_util_device_is_mapped): ... this. Make always available. All users
19300 updated.
19301 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19302 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19303 dmraid nodes.
19304 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19305
6ad6223e
VS
193062011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19307
19308 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19309
19310 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19311 * grub-core/modinfo.sh.in: New file.
19312 * grub-core/Makefile.core.def (modinfo.sh): New script.
19313 * util/grub-mknetdir.in: Use modinfo.sh.
19314 * util/grub-mkrescue.in: Likewise.
19315
543a8f6e
VS
193162011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19317
19318 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19319 Fix potential usage of Elf32 instead of Elf64 when compiling on
19320 32-bit architecture. Add endianness macros while on it.
19321
4959e111
VS
193222011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19323
19324 Use mipsel- rather than mips- in directories involving mipsel ports to
19325 allow both endiannesses coexist.
19326
19327 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19328 mips. All conditions adjusted.
19329 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19330 variable.
19331 * util/grub-install.in: Adjust conditions to take renaming into account.
19332 * util/grub-mkimage.c (image_targets): Likewise. New target
19333 mips-qemu_mips-elf for bigendian mips.
19334
35341bbc
VS
193352011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19336
19337 Avoid unnecessary copying on MIPS.
19338
19339 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19340 early if src == dest.
19341 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19342 compression is none.
19343
b772baed
VS
193442011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19345
19346 Reduce memory footprint on SGI by putting modules before the kernel
19347 as opposed to after.
19348
19349 * grub-core/Makefile.core.def (kernel): Increase linking address.
19350 (none_decompress): Likewise.
19351 (xz_decompress): Likewise.
19352 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19353 address.
19354 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19355 layout change.
19356 (grub_arch_modules_addr): New function.
19357 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19358 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19359 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19360 here.
19361 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19362 (grub_total_modules_size): ... this. Make global.
19363 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19364 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19365 New definition.
19366 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19367 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19368 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19369 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19370 * util/grub-mkimage.c (image_target_desc): New flag
19371 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19372 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19373 (generate_image): Handle images with modules before kernel.
19374
566a1917
VS
193752011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19376
19377 Prevent potential loss of memory map by overwrite on qemu-mips.
19378
19379 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19380 Save ram size in $s4.
19381 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19382 All users changed to grub_arch_memsize.
19383 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19384 Loongson.
19385 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19386 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19387 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19388 external variable.
19389
5d420cd9
CW
193902011-05-17 Colin Watson <cjwatson@ubuntu.com>
19391
19392 * .bzrignore: Remove grub-dumpbios.
19393
d064b830
CW
193942011-05-17 Colin Watson <cjwatson@ubuntu.com>
19395
19396 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19397 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19398 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19399 existing options which append).
19400 * docs/grub.texi (Simple configuration): Document new options.
19401 Reported by: Ian Jackson. Fixes Debian bug #617538.
19402
3ca2b466
CW
194032011-05-17 Colin Watson <cjwatson@ubuntu.com>
19404
19405 * util/grub-fstest.c (cmd_cat): New function.
19406 (fstest): Handle CMD_CAT.
19407 (options): Add cat.
19408 (argp_parser): Handle cat.
19409
24c9143a
CW
194102011-05-17 Colin Watson <cjwatson@ubuntu.com>
19411
19412 * Makefile.util.def (grub-bin2h): Don't install.
19413 * docs/man/grub-bin2h.h2m: Remove.
19414
90f7ac19
VS
194152011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19416
19417 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19418 place.
19419
8d4a5178
VS
194202011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19421
19422 Reenable qemu-mips port.
19423
19424 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19425 Fix small arc bug while on it.
19426 * gentpl.py: Handle qemu_mips.
19427 * grub-core/Makefile.am: Likewise.
19428 * grub-core/Makefile.core.def: Likewise.
19429 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19430 inappropriate includes.
19431 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19432 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19433 * grub-core/kern/main.c (grub_modules_get_end)
19434 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19435 * grub-core/kern/mips/qemu-mips: Moved to ..
19436 * grub-core/kern/mips/qemu_mips: ... this.
19437 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19438 (grub_machine_init): Call terminfo_init and serial_init.
19439 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19440 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19441 New variable.
19442 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19443 parameter passing.
19444 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19445 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19446 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19447 * include/grub/mips/qemu_mips/cmos.h: New file.
19448 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19449 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19450 Removed.
19451 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19452 Use correct mips-style address.
19453 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19454 (GRUB_TICKS_PER_SECOND): Removed.
19455 (grub_get_rtc): Likewise.
19456 (grub_cpu_idle): Likewise.
19457 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19458 New definition.
19459 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19460 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19461 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19462 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19463 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19464 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19465 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19466 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19467
400b9371
VS
194682011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19469
19470 SGI ARCS port.
19471
19472 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19473 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19474 platforms.
19475 * configure.ac: New target mips-arc.
19476 * gentpl.py: Likewise.
19477 * grub-core/Makefile.am: Likewise.
19478 * grub-core/Makefile.core.def: Likewise.
19479 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19480 (none_decompress): Likewise.
19481 (lsdev): New module.
19482 (datetime): Use lib/arc/datetime.c on ARC.
19483 (part_dvh): New module.
19484 * grub-core/commands/arc/lsdev.c: New file.
19485 * grub-core/disk/arc/arcdisk.c: Likewise.
19486 * grub-core/kern/mips/arc/init.c: Likewise.
19487 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19488 aligned addresses.
19489 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19490 support.
19491 (grub_arch_dl_relocate_symbols): Likewise.
19492 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19493 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19494 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19495 platforms.
19496 * grub-core/lib/arc/datetime.c: New file.
19497 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19498 pci.h on non-loongson.
19499 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19500 (grub_linux_boot): Set unused registers to 0.
19501 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19502 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19503 * grub-core/mmap/mips/uppermem.c: ...here.
19504 * grub-core/partmap/dvh.c: New file.
19505 * grub-core/term/arc/console.c: Likewise.
19506 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19507 (grub_terminfo_set_current): Add terminal "arc".
19508 (grub_terminfo_readkey): Support ARC sequences.
19509 * include/grub/arc/arc.h: New file.
19510 * include/grub/arc/console.h: Likewise.
19511 * include/grub/disk.h (grub_disk_dev_id): Add
19512 GRUB_DISK_DEVICE_ARCDISK_ID.
19513 * include/grub/mips/arc/kernel.h: New file.
19514 * include/grub/mips/arc/memory.h: Likewise.
19515 * include/grub/mips/arc/time.h: Likewise.
19516 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19517 * include/grub/mips/kernel.h (grub_halt): ... here.
19518 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19519 here...
19520 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19521 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19522 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19523 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19524 proto.
19525 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19526 from here ...
19527 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19528 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19529 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19530 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19531 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19532 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19533 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19534 (grub_phys_addr_t): Moved from here ...
19535 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19536 (grub_vtop): Moved from here ...
19537 * include/grub/mips/memory.h (grub_vtop): ... here.
19538 (grub_map_memory): Moved from here ...
19539 * include/grub/mips/memory.h (grub_map_memory): ... here.
19540 (grub_unmap_memory): Moved from here ...
19541 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19542 (grub_machine_mmap_iterate): Moved from here ...
19543 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19544 (grub_mmap_get_lower): Moved from here ...
19545 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19546 (grub_mmap_get_upper): Moved from here ...
19547 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19548 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19549 here ...
19550 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19551 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19552 here ...
19553 * include/grub/mips/time.h (grub_get_rtc): ... here.
19554 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19555 here ...
19556 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19557 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19558 here ...
19559 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19560 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19561 definition.
19562 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19563 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19564 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19565 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19566 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19567 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19568 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19569 (GRUB_MACHINE_LINK_ADDR): Likewise.
19570 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19571 to 6.
19572 * util/grub-install.in: Run dvhtool on ARC.
19573 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 19574 (generate_image): Handle ECOFF output for mips-arc.
400b9371 19575
c8ecc840
VS
195762011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19577
19578 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19579 blocks.
19580
153a4b55
VS
195812011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19582
19583 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19584 after enabling port.
19585
ff44d107
VS
195862011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19587
19588 Skip incorrect USB devices.
19589
19590 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19591 configcnt == 0.
19592 * include/grub/usb.h (grub_usb_err_t): New enum value
19593 GRUB_USB_ERR_BADDEVICE.
19594
638dbe4f
VS
195952011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19596
19597 Fuloong video init support.
19598
19599 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19600 well.
19601 (grub_vga_read_arx): New function.
19602 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19603 definition.
19604 (framebuffer): New members io, mmioptr and mmiobase.
19605 (read_sis_cmd): New function.
19606 (write_sis_cmd): Likewise.
19607 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19608 rather than 640x400.
19609 * grub-core/video/sis315_init.c: New file.
19610
c3fc520c
VS
196112011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19612
19613 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19614 non-loongson.
19615 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19616 to grub_dl_register_symbol.
19617
67b1e5c9
VS
196182011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19619
19620 Fix compilation errors.
19621
19622 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19623 potentially unused.
19624 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19625 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19626 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19627 to loongson machines.
19628
b756f75f
VS
196292011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19630
19631 Several FS mtime support.
19632
19633 * grub-core/fs/affs.c (grub_affs_time): New struct.
19634 (grub_affs_file): New field mtime.
19635 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19636 type. Removed 'size'. New field 'di'. All users updated.
19637 (grub_affs_mount): Simplify checsum checking.
19638 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19639 (grub_affs_dir): Handle mtime.
19640 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19641 (grub_cpio_dir): Likewise.
19642 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19643 (grub_hfs_filerec): New field mtime.
19644 (grub_hfs_dir): Handle mtime.
19645 (grub_hfs_mtime): New function.
19646 (grub_hfs_fs): Register grub_hfs_mtime.
19647 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19648 (grub_iso9660_dir): New field mtime.
19649 (grub_fshelp_node): New field dirent.
19650 (iso9660_to_unixtime): New function.
19651 (iso9660_to_unixtime2): Likewise.
19652 (grub_iso9660_read_symlink): Use node->dirent.
19653 (grub_iso9660_iterate_dir): Likewise.
19654 (grub_iso9660_dir): Set mtime.
19655 (grub_iso9660_mtime): New function.
19656 (grub_iso9660_fs): Register grub_iso9660_mtime.
19657 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19658 (grub_jfs_inode): New fields atime, ctime and mtime.
19659 (grub_jfs_dir): Set mtime.
19660 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19661 * grub-core/fs/ntfs.c (list_file): Set mtime.
19662 (grub_ntfs_dir): Likewise.
19663 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19664 (grub_reiserfs_iterate_dir): Set mtime.
19665 (grub_reiserfs_dir): Likewise.
19666 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19667 (grub_fshelp_node): Likewise.
19668 (grub_sfs_iterate_dir): Set mtime.
19669 (grub_sfs_dir): Likewise.
19670 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19671 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19672 (grub_xfs_inode): New fields atime, mtime, ctime.
19673 (grub_xfs_dir): Set mtime.
19674 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19675 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19676 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19677
19678 Support UDF symlinks.
19679
19680 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19681 (grub_ufs_read_symlink): New function. All users updated.
19682
19683 Check amiga partmap checksum.
19684
19685 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19686 (grub_amiga_partition): Likewise.
19687 (amiga_partition_map_checksum): New function.
19688 (amiga_partition_map_iterate): Check checksum.
19689
5470225d
VS
196902011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19691
19692 ROMFS support.
19693
19694 * Makefile.util.def (libgrubmods.a): Add romfs.
19695 * grub-core/Makefile.core.def (romfs): New module.
19696 * grub-core/fs/romfs.c: New file.
19697
d4680a35
VS
196982011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19699
19700 Squashfs v4 support.
19701
19702 * Makefile.util.def (libgrubmods.a): Add squash4.
19703 * grub-core/Makefile.core.def (squash4): New module.
19704 * grub-core/fs/squash4.c: New file.
19705 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19706 disk_input_start, disk_input.
19707 (get_byte): Handle disk_input.
19708 (grub_zlib_disk_read): New function.
19709 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19710
bcb18e74
FZ
197112011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
197122011-05-15 Feiran Zheng <famcool@gmail.com>
19713
19714 * Makefile.util.def (libgrubmods.a): Add minix3.
19715 * grub-core/Makefile.core.def (minix3): New module.
19716 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19717 (GRUB_MINIX_BSIZE): Removed.
19718 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19719 (grub_minix_ino_t): New type.
19720 (grub_minix_le_to_cpu_ino): New macro.
19721 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19722 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19723 (grub_minix_data): New field block_size.
19724 (grub_minix_read_file): Handle 64-bit correctly.
19725 * grub-core/fs/minix3.c: New file.
19726
32297d5f
TG
197272011-05-15 Tristan Gingold <gingold@free.fr>
197282011-05-15 Robert Millan <rmh.grub@aybabtu.com>
197292011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19730
19731 IA64 support.
19732
19733 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19734 * configure.ac: Add ia64-efi target.
19735 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19736 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19737 * gentpl.py: Add ia64_efi platform.
19738 Rename x86_efi to efi and Add ia64-efi. All users updated.
19739 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19740 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19741 Remove kern/generic/rtc_get_time_ms.c on EFI.
19742 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19743 kern/ia64/dl_helper.c on ia64-efi.
19744 Add kern/emu/cache.c on emu.
19745 (linux): Use on loader/ia64/efi/linux.c on ia64.
19746 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19747 whether symbol is a function.
19748 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19749 (grub_symbol): New field 'isfunc'.
19750 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19751 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19752 (grub_dl_load_segments): Place all sections into the same region.
19753 [__ia64__]: Create trampolines and got.
19754 [GRUB_MACHINE_EMU]: Call mprotect.
19755 (grub_dl_resolve_symbols): Resolve symbol type as well.
19756 [__ia64__]: Create function descriptors.
19757 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19758 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19759 (grub_get_rtc): New function.
19760 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19761 * grub-core/kern/emu/cache.S: Renamed to ...
19762 * grub-core/kern/emu/cache_s.S: ... this.
19763 [__ia64__]: Add a nop.
19764 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19765 [__ia64__]: New function.
19766 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19767 * grub-core/kern/ia64/dl.c: New file.
19768 * grub-core/kern/ia64/dl_helper.c: Likewise.
19769 * grub-core/kern/ia64/efi/init.c: New file.
19770 * grub-core/kern/ia64/efi/startup.S: Likewise.
19771 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19772 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19773 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19774 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19775 * grub-core/loader/ia64/efi/linux.c: New file.
19776 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19777 (GRUB_MOD_DEP): Likewise.
19778 (grub_dl) [__ia64__]: New fields got and tramp.
19779 (grub_dl): New field 'base'.
19780 (grub_dl_register_symbol): New argument isfunc. All users updated.
19781 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19782 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19783 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19784 (grub_ia64_dl_get_tramp_got_size): New proto.
19785 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19786 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19787 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19788 * include/grub/efi/api.h: Skip call wrappers on ia64.
19789 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19790 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19791 * include/grub/elf.h (ELF_ST_INFO): New definition.
19792 * include/grub/ia64/efi/kernel.h: New file.
19793 * include/grub/ia64/efi/memory.h: Likewise.
19794 * include/grub/ia64/efi/time.h: Likewise.
19795 * include/grub/ia64/kernel.h: Likewise.
19796 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19797 * include/grub/ia64/time.h: New file.
19798 * include/grub/ia64/types.h: Likewise.
19799 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19800 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19801 New protos.
19802 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19803 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19804 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19805 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19806 All users updated.
19807 (EFI64_HEADER_SIZE): New definition. All users updated.
19808 (image_targets): Add ia64-efi.
19809 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19810 jumpers_addr. All users updated.
19811 Create function descriptors.
19812 (count_funcs): New function.
19813 (unaligned_uint32): New struct.
19814 (MASK20): New definition.
19815 (MASK19): Likewise.
19816 (MASKF21): Likewise.
19817 (add_value_to_slot_20b): New function.
19818 (add_value_to_slot_21_real): Likewise.
19819 (add_value_to_slot_21): Likewise.
19820 (ia64_kernel_trampoline): New struct.
19821 (nopm): New variable.
19822 (jump): Likewise.
19823 (make_trampoline): New function.
19824 (relocate_addresses): Handle ia64.
19825 (make_reloc_section): Likewise.
19826 (load_image): Likewise.
19827
983b414d
VS
198282011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19829
19830 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19831 warning. Move variables before code while on it.
19832
5d063cdc
VS
198332011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19834
19835 Fuloong support.
19836
19837 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19838 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19839 * grub-core/boot/mips/loongson/fuloong.S: New file.
19840 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19841 Explicitly init CS5536.
19842 [FULOONG]: Don't use serial until CS5536 is available.
19843 Set GPIO based on dumps.
19844 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19845 [FULOONG]: Handle GPIO and memory controller differences.
19846 Parse machine type in $a2.
19847 * grub-core/boot/mips/startup_raw.S: Determine and save the
19848 architecture.
19849 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19850 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19851 init on architecture type.
19852 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19853 SIS315E. Don't init at_keyboard on fuloong.
19854 (grub_halt): Support Fuloong.
19855 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19856 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19857 (loongson_machtypes): New array.
19858 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19859 type.
19860 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19861 config. All users updated. Handle CS5536 serial.
19862 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19863 default port on machine type. Register serial as inactive.
19864 * grub-core/video/sis315pro.c: New file.
19865 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19866 definition.
19867 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19868 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19869 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19870 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19871 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19872 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19873 to ...
19874 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19875 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19876 definition.
19877 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19878 (grub_arch_machine): New extern var.
19879 * include/grub/mips/loongson/serial.h
19880 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19881 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19882 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19883 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19884 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19885 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19886 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19887 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19888 * include/grub/term.h (grub_term_register_input_inactive): New inline
19889 function.
19890 (grub_term_register_output_inactive): Likewise.
19891 * include/grub/video.h (grub_video_driver_id): New value
19892 GRUB_VIDEO_DRIVER_SIS315PRO.
19893 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19894 New field "names". All users updated.
19895 New field value IMAGE_FULOONG_FLASH.
19896 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19897
6ada82d1
JU
198982011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19899
19900 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19901 and add some clarification.
19902
90c571a4
VS
199032011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19904
19905 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19906 platforms if kernel is compressed.
19907
de04eecf
VS
199082011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19909
19910 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19911 unused modules since currently referrence counter isn't reliable and
19912 there isn't much memory to recover there anyway.
19913
57688121
VS
199142011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19915
19916 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19917 rather than resetting it to allow modules to reference themselves
19918 in init.
19919
3d2c7e35
VS
199202011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19921
19922 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19923 counter on dependencies since grub_dl_unref already handles this.
19924
b25db218
VS
199252011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19926
19927 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19928 on error if not already done.
19929
25a45338
VS
199302011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19931
19932 Fix few potential memory misusage.
19933
19934 * grub-core/font/font.c (load_font_index): Don't free char_index to
19935 avoid double free.
b25db218
VS
19936 (grub_font_load): Zero-fill font at alloc for safety.
19937 Close file on error.
19938 (free_font): Free bmp_idx.
25a45338 19939
0cac83df
VS
199402011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19941
19942 * docs/grub.texi (Installation): Fix several outdated claims.
19943
2217a143
VS
199442011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19945
19946 Handle module_license on windows.
19947
19948 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19949 sections shifted.
19950 (insert_string): Make argument const char * instead of char *.
19951 (write_section_data): Handle long section names.
19952 Handle module_license.
19953
d4de6b01
VS
199542011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19955
19956 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19957 handle class-free menuentries.
19958 (grub_normal_add_menu_entry): Add a check to be sure.
19959
4c2a3b43
VS
199602011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19961
19962 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19963 PgUp and PgDown.
19964
85c6210f
VS
199652011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19966
19967 * configure.ac: Bump version to 1.99.
19968
36084912
VS
199692011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19970
19971 Give ATA device a bit more time on first try in order to allow disks
19972 to spin up.
19973
19974 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19975 if dev->present is 1. Reset dev->present on failure.
19976 (grub_ata_device_initialize): Set dev->present to 1.
19977 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19978 (grub_ata_device): New member 'present'.
19979
bda0e219
VS
199802011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19981
19982 * util/grub-mkimage.c (generate_image): Update hash.
19983
19e1c41b
VS
199842011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19985
19986 Flush caches on DMA memory.
19987
19988 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19989 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19990 (grub_dma_free): Likewise.
19991 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19992
91bbcc0c
VS
199932011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19994
19995 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19996 to avoid asm treating ld and sd as macros.
19997
60ddfad3
VS
199982011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19999
20000 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20001 decompressor.
20002
a298aa04
VS
200032011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20004
20005 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20006 grub_decompress_core since later would fail if grub_decompress_core
20007 is too far.
20008
9b44feca
VS
200092011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20010
20011 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20012 R_MIPS_JALR since it's used by newer compiler.
20013
56dbe7b4
VS
200142011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20015
20016 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20017
52856af2
VS
200182011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20019
20020 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20021 file_path to 0 for surety.
20022 (grub_chainloader_boot): Set exit_data to NULL.
20023 Unset the loader once done.
20024 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20025
9c9bfc6d
VS
200262011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20027
20028 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20029 unknown key into a dprintf.
20030
dd94a3df
VS
200312011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20032
20033 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20034 on first non-existant partition.
20035
fa68d99c
VS
200362011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20037
20038 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20039 openning fails.
20040 Reported by: Mark Korenberg.
20041
157effb7
VS
200422011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20043
20044 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20045 overflow.
20046
ea75312f
VS
200472011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20048
20049 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20050 before closing to ensure that it will be readable by grub-setup.
20051
072b5d31
VS
200522011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20053
20054 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20055 (devpath_1): Use MAKE_PIWG_PATH.
20056 (devpath_2): Likewise.
20057 (devpath_3): Likewise.
20058 (devpath_4): Likewise.
20059 (devpath_5): Likewise.
20060 (devpath_6): Likewise.
20061
20062 The appleldr.mod was checked that to be binary identical to previous
20063 version.
20064
7fae0051
Z
200652011-05-05 Zach <mikezackles>
20066
20067 Support 2010 Macbooks.
20068
20069 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20070 (devs): Add devpath_6.
20071
7c515bee
VS
200722011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20073
20074 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20075 /dev/random. /dev/urandom is good enough for our purposes (salting).
20076
ed660bd8
VS
200772011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20078
20079 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20080
ee5614b7
VS
200812011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20082
20083 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20084 hexadecimal.
20085
664889a6
VS
200862011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20087
20088 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20089 and not 0 on failure.
20090
bd405bbc
CW
200912011-05-03 Colin Watson <cjwatson@ubuntu.com>
20092
20093 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20094 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20095 disk; otherwise grub_fs_probe will not fall back to the next
20096 filesystem.
20097 (grub_pxefs_open): Likewise, for consistency.
20098 Reported and tested by: Ezekiel Grave.
20099
4ebff753
CW
201002011-05-03 Colin Watson <cjwatson@ubuntu.com>
20101
20102 * tests/partmap_test.in: Don't hardcode path to parted.
20103 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20104
8f942553
CW
201052011-05-01 Colin Watson <cjwatson@ubuntu.com>
20106
20107 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20108 of `ls' to find out which devices are available.
20109
3c62402d
VS
201102011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20111
20112 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20113 than source address for efi mmap buffer.
20114
723f63f2
VS
201152011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20116
20117 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20118 wrong action on non-detecting the magic.
20119
68797f92
VS
201202011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20121
20122 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20123 already supplied by another part of the module (fixes compilation on
20124 FreeBSD).
20125
6be8715d
VS
201262011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20127
20128 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20129 match the one used by mdadm.
20130
e91dba5b
CW
201312011-04-21 Colin Watson <cjwatson@ubuntu.com>
20132
20133 * po/README: Add instructions for creating po/LINGUAS.
20134
c85140b3
CW
201352011-04-21 Colin Watson <cjwatson@ubuntu.com>
20136
20137 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20138 #551428.
20139
20140 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20141 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20142 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20143 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20144 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20145 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20146 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20147 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20148 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20149 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20150 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20151 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20152 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20153 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20154 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20155 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20156 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20157 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20158 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20159 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20160 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20161 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20162
92051871
CW
201632011-04-21 Colin Watson <cjwatson@ubuntu.com>
20164
20165 * grub-core/kern/emu/getroot.c
20166 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20167 test that was incorrectly reintroduced in r3214.
20168 Reported by: Ian Dall. Fixes Savannah bug #33133.
20169
b13f79a4
CW
201702011-04-21 Colin Watson <cjwatson@ubuntu.com>
20171
20172 Fix stack pointer handling in 16-bit relocator.
20173
20174 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20175 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20176 Fixes Ubuntu bug #683904.
20177
9b710a88
VS
201782011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20179
20180 * configure.ac: Bump version to 1.99~rc2.
20181
d97e7b59
VS
201822011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20183
20184 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20185 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20186 * grub-core/lib/x86_64/setjmp.S: Likewise.
20187 * grub-core/lib/mips/setjmp.S: Likewise.
20188 * grub-core/lib/powerpc/setjmp.S: Likewise.
20189 * grub-core/lib/sparc64/setjmp.S: Likewise.
20190
0624551c
VS
201912011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20192
20193 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20194 * grub-core/lib/efi/datetime.c: Likewise.
20195
e8f28d4c
VS
201962011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20197
20198 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20199 New function.
20200 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20201 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20202 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20203
bba79a15
VS
202042011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20205
20206 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20207 bitmap.
20208 (grub_gfxterm_term_init): Likewise.
20209
abc474ef
VS
202102011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20211
20212 Take into account the decorations the computing menu entry width.
20213
20214 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20215 (grub_gfxmenu_create_box): Register get_border_width.
20216 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20217 if available.
20218 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20219 get_border_width.
20220
e74b3947
EP
202212011-04-18 Endres Puschner <code@e7p.de>
20222
20223 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20224 Don't skip first class.
20225
34faa595
VS
202262011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20227
20228 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20229 chunks.
20230 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20231
93a777e3
VS
202322011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20233
20234 Complete 64-bit division support.
20235
20236 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20237 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20238 * include/grub/misc.h (grub_divmod64): Rename to ...
20239 (grub_divmod64_full): ... this.
20240 (grub_divmod64): New inline function.
20241
a5102d94
VS
202422011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20243
20244 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20245
f3fb7b36
VS
202462011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20247
20248 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20249 performing the necessary test.
20250
9ac718b0
VS
202512011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20252
20253 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20254 (kfreebsd.elf): Likewise.
20255 (pc-chainloader.elf): Likewise.
20256 (ntldr.elf): Likewise.
20257
50d2cc5a
VS
202582011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20259
20260 Identify RAID by its UUID rather than (guessed) name.
20261
20262 * grub-core/disk/raid.c (ascii2hex): New function.
20263 (grub_raid_open): Accept mduuid/%s specification.
20264 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20265 (get_mdadm_uuid): ... this.
20266 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20267
e03f7bea
VS
202682011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20269
20270 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20271 to negative size.
20272
e74c3112
CW
202732011-04-13 Colin Watson <cjwatson@ubuntu.com>
20274
20275 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20276 btrfs subvolume.
20277 * util/grub.d/20_linux_xen.in: Likewise.
20278
78fa584f
CW
202792011-04-13 Colin Watson <cjwatson@ubuntu.com>
20280
20281 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20282 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20283
20284 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20285 Build a list of relevant visible mounts using the mnt_id and
20286 parent_mnt_id fields, and then scan that list at the end.
20287
9d5f8162
CW
202882011-04-12 Colin Watson <cjwatson@ubuntu.com>
20289
20290 * docs/grub.texi (normal): New section.
20291 (normal_exit): New section.
20292 (Embedded configuration): Add reference to normal.
20293 (GRUB only offers a rescue shell): Likewise.
20294 * docs/grub-dev.texi (Error Handling): Fix typo.
20295
09a9d66f
CW
202962011-04-12 Colin Watson <cjwatson@ubuntu.com>
20297
20298 * NEWS: Drop obsolete entry about probe-only btrfs support.
20299
0c676933
CW
203002011-04-12 Colin Watson <cjwatson@ubuntu.com>
20301
20302 * util/import_gcry.py: Fix typo.
20303
ec9f5e0d
VS
203042011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20305
20306 * NEWS: Add btrfs support.
20307
fe6b2cba
VS
203082011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
203092011-04-11 Colin Watson <cjwatson@ubuntu.com>
20310
20311 BtrFS support. Written by me (Vladimir) with important bugfixes and
20312 even more important testing by Colin.
20313
20314 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20315 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20316 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20317 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20318 mem_input_off and mem_input. All users updated to accept in-RAM input.
20319 (gzio_seek): New function.
20320 (test_zlib_header): Likewise.
20321 (grub_gzio_read): Likewise.
20322 (grub_zlib_decompress): Likewise.
20323 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20324 Accept partial and non-virtual mounts.
20325 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20326 avoid receiving /dev/dm-X as device.
20327 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20328 Handle bind and partial mounts.
20329 * grub-core/lib/crc.c: New file.
20330 * include/grub/deflate.h: Likewise.
20331 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20332 proto.
20333 * include/grub/lib/crc.h: New file.
20334
e745cf0c
VS
203352011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20336
20337 Implement automatic module license checking according to new GNU
20338 guidelines.
20339
20340 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20341 (grub_dl_load_core): Use grub_dl_check_license.
20342 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20343 (GRUB_MOD_LICENSE): Likewise.
20344 (GRUB_MOD_DUAL_LICENSE): Likewise.
20345 All modules updated.
20346
2a9bc016
CW
203472011-04-11 Colin Watson <cjwatson@ubuntu.com>
20348
20349 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20350 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20351 loaders.
20352 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20353
8a3bc88e
VS
203542011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20355
20356 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20357
af869a4a
VS
203582011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20359
20360 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20361 failed.
20362
9ee8d94f
VS
203632011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20364
20365 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20366 parenthesis in the middle of the filename.
20367
b01abe3e
VS
203682011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20369
20370 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20371 rather than trying to put initrd way too high.
20372 Reported by: Ryan Lortie <desrt@desrt.ca>
20373
335bda1e
VS
203742011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20375
20376 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20377 improperly removed string.
20378
5ca1a64d
VS
203792011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20380
20381 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20382 is_disk.
20383 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20384 (open_device) Likewise.
20385 (grub_util_biosdisk_close): Likewise.
d8ce9995 20386 Reported by: Mark Korenberg.
5ca1a64d 20387
cbac5b1e
AK
203882011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20389
20390 * util/grub-mkconfig_lib.in: Add missing quotes.
20391
088cdb65
CW
203922011-04-10 Colin Watson <cjwatson@ubuntu.com>
20393
20394 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20395 is NULL.
20396
8b8a81fa
VS
203972011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20398
20399 Dynamically count the number of lines for the lower banner.
20400
20401 * grub-core/normal/menu_entry.c (per_term_screen): New member
20402 num_entries.
20403 (print_down): Use num_entries.
20404 (update_screen): Likewise.
20405 (grub_menu_entry_run): Set num_entries.
20406 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20407 num_entries.
20408 (grub_print_message_indented): Move real part to ...
20409 (grub_print_message_indented_real): ... here. Additional argument
20410 dry_run.
20411 (draw_border): Additional argument num_entries.
20412 (print_message): Additional argument dry_run.
20413 (print_entries): Receive menu viewer data.
20414 (grub_menu_init_page): New argment num_entries.
20415 (menu_text_set_chosen_entry): Use num_entries.
20416 (grub_menu_try_text): Likewise.
20417 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20418 All users updated.
20419 (grub_ucs4_count_lines): New function.
20420 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20421 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20422 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20423 (grub_term_border_height): Likewise.
20424 (grub_term_num_entries): Likewise.
20425
277f955b
VS
204262011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20427
20428 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20429 Remove now unused string.
20430
536ce85a
CW
204312011-04-09 Colin Watson <cjwatson@ubuntu.com>
20432
20433 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20434 build system.
20435 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20436
20437 (Comment): Fix typo.
20438 (Getting started): General copy-editing.
20439 (Typical Development Experience): Likewise.
20440 (Error Handling): Likewise.
20441 (Video API): Likewise.
20442
2cf09e32
CW
204432011-04-09 Colin Watson <cjwatson@ubuntu.com>
20444
20445 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20446 throughout.
20447
1ec652f4
VS
204482011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20449
20450 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20451 directory.
20452
2c583728
CW
204532011-04-08 Colin Watson <cjwatson@ubuntu.com>
20454
20455 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20456 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20457 "development".
20458
d7a565e9
VS
204592011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20460
20461 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20462 grub_strcpy since the lines aren't necessarily 0-terminated.
20463
7c2e4909
VS
204642011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20465
20466 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20467 root on legacy.
20468
34c09785
VS
204692011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20470
20471 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20472 (GRUB_MOD_INIT): DEVICE isn't optional.
20473
6a6f8058
VS
204742011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20475
20476 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20477 word on new line if it's too long anyway. Fixes a hang.
20478
2e335e90
VS
204792011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20480
20481 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20482 const.
20483 * util/grub-setup.c (main): Reuse md device name if available.
20484 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20485 not GRUB name as argument.
20486 Based on patch by: Florian Wagner <fwagner>.
20487
10a7a867
VS
204882011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20489
20490 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20491 Place mbi on low memory for better compatibility.
20492
7a3d6cd9
VS
204932011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20494
20495 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20496
18dd6b47
VS
204972011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
204982011-04-08 Colin Watson <cjwatson@ubuntu.com>
20499
20500 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 20501 * conf/Makefile.common: Likewise.
18dd6b47 20502
3c0e3f14
VS
205032011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20504
f7148863
VS
20505 * grub-core/normal/menu.c: Add missing include.
20506
205072011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20508
20509 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 20510
6d1fa41f
MZ
205112011-04-08 Martin Zuther <mzuther@mzuther.de>
20512
20513 * util/grub-mkconfig.in: Ignore emacsen backup.
20514
478182a8
VS
205152011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20516
20517 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20518 on open.
20519 (grub_util_biosdisk_close): Likewise.
20520
72a89a54
VS
205212011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20522
20523 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20524 const attribute and use grub_isdigit.
20525
b5ebecfa
A
205262011-04-06 Andrey <dev_null@ukr.net>
20527
20528 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20529 gcc warning.
20530
7755f66e
VS
205312011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20532
20533 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20534 useful grub_dprintf's.
20535
461121ff
VS
205362011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20537
20538 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20539
2a961775
VS
205402011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20541
20542 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20543
adf594cc
VS
205442011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20545
20546 Output errors if theme loading failed.
20547
20548 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20549 grub_gfxterm_fullscreen on error paths to ...
20550 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20551 theme loading error.
20552
665900a3
VS
205532011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20554
20555 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20556 space for older compilers.
20557 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20558
a562b479
VS
205592011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20560
20561 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20562 and report them as not RAID members since they are useless for GRUB.
20563 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20564
850e9373
VS
205652011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20566
20567 Increase LVM implementation robustness in order not to crash on
20568 configurations like pvmove. Previously code assumed that in some places
20569 only lvs or only pvs are used whereas it seems that they are used
20570 interchangeably.
20571
20572 * grub-core/disk/lvm.c (read_node): New function.
20573 (read_lv): Use read_node.
20574 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20575 Match volumes only at the end when all lvs are found. Take both
20576 pvs (first) and lvs (second) into account.
20577 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20578 mirror_* into node_*. All users updated.
20579 (grub_lvm_stripe): Merge this ...
20580 (grub_lvm_mirror): ... and this ...
20581 (grub_lvm_node): ... into this. All users updated.
20582
6f332153
VS
205832011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20584
20585 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20586 of function to allow further scanning for LVMs.
20587
829ea451
VS
205882011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20589
20590 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20591 on failed seek as it breaks open fd reusage.
20592
09ceb9a5
VS
205932011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20594
20595 * util/grub-install.in: Add a recommendation to use --recheck before
20596 reporting bugs.
20597
67e11623
VS
205982011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20599
20600 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20601 are obtained.
20602
caee5efd
VS
206032011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20604
20605 GRUB developper manual based on existing Internals section and
20606 contributions by the various authors with active copyright assignment.
20607
20608 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20609 * docs/font_char_metrics.png: New file.
20610 * docs/font_char_metrics.txt: Likewise.
20611 * docs/grub-dev.texi: Likewise.
20612 * docs/grub.texi (Internals): Move from here ...
20613 * docs/grub-dev.texi: ... here.
20614
2cccc747
CW
206152011-04-01 Colin Watson <cjwatson@ubuntu.com>
20616
20617 Store the loopback device as data on loopback grub_disk structures,
20618 rather than the file it points to. This fixes use of freed memory
20619 if an existing loopback device is replaced.
20620
20621 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20622 disk->data, not dev->file.
20623 (grub_loopback_read): Adjust file assignment to match.
20624 Fixes Ubuntu bug #742967.
20625
186ae367
CW
206262011-04-01 Colin Watson <cjwatson@ubuntu.com>
20627
20628 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20629 when replacing an existing device.
20630
cfed2ad0
VS
206312011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20632
20633 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20634 memory corruptions.
20635
20636 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20637 unsigned.
20638 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20639 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20640 (grub_jfs_read_inode): Likewise.
20641 (grub_jfs_opendir): Likewise. Remove now useless casts.
20642 (grub_jfs_getent): Likewise.
20643 Make ino a grub_uint32_t rather than int.
20644 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20645 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20646 division and module with bit operations.
20647 (grub_jfs_find_file): Make ino a grub_uint32_t.
20648 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20649
05d2ed32
CW
206502011-04-01 Colin Watson <cjwatson@ubuntu.com>
20651
20652 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20653 warning. (This was in fact always initialised before use, but GCC
20654 wasn't smart enough to prove that.)
20655 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20656
91dc6073
VS
206572011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20658
20659 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20660 stack alignment.
20661 (efi_wrap_1): Likewise.
20662 (efi_wrap_2): Likewise.
20663 (efi_wrap_3): Likewise.
20664 (efi_wrap_4): Likewise.
20665 (efi_wrap_5): Likewise.
20666 (efi_wrap_6): Likewise.
20667 (efi_wrap_10): Likewise.
20668 Based on information by: Red Hat/Peter Jones.
20669
a8afc1d1
CW
206702011-03-31 Colin Watson <cjwatson@ubuntu.com>
20671
20672 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20673 set-but-not-used variable.
20674
a826cc7d
CW
206752011-03-31 Colin Watson <cjwatson@ubuntu.com>
20676
20677 * docs/grub.texi (Simple configuration): Be more explicit about
20678 GRUB_DEFAULT, and add an example.
20679 Reported by: Leslie Rhorer.
20680
875b67ba
CW
206812011-03-30 Colin Watson <cjwatson@ubuntu.com>
20682
20683 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20684 shell".
20685
fd7cd914
AS
206862011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20687
20688 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20689 * util/grub.d/20_linux_xen.in: Likewise.
20690
090b1b6a
VS
206912011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20692
20693 * util/grub.d/10_linux.in: Try alternative config filenames where
20694 we parse config file.
20695 * util/grub.d/20_linux_xen.in: Likewise.
20696
baad885c
AS
206972011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20698
20699 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20700 * util/grub.d/20_linux_xen.in: Likewise.
20701
241e41f5
VS
207022011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20703
20704 * grub-core/disk/raid.c (insert_array): Add few potentially
20705 useful grub_util_info.
20706 (grub_raid_register): Likewise.
20707
56445fb2
VS
207082011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20709
20710 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20711 Preserve partition number in mdadm code path.
20712
c871b1c6
VS
207132011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20714
20715 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20716 few potentially useful grub_util_info.
20717
5e631b4f
CW
207182011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20719
20720 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20721
2d5d0333
CW
207222011-03-30 Colin Watson <cjwatson@ubuntu.com>
20723
20724 * docs/grub.texi (default): Use @example rather than nested
20725 itemized lists to avoid breaking gendocs.
20726
3d7ed04e
CW
207272011-03-30 Colin Watson <cjwatson@ubuntu.com>
20728
20729 * docs/grub.texi (Future): Update.
20730
abf04200 207312011-03-30 Colin Watson <cjwatson@ubuntu.com>
20732
20733 * docs/grub.texi (Environment): New chapter.
20734 (Changes from GRUB Legacy): Link to "Environment block" section for
20735 details of limitations.
20736 (Simple configuration): Likewise. Link to documentation of gfxmode
20737 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20738 respectively.
20739 (Shell-like scripting): Note that normal variables are stored in the
20740 environment.
20741 (gettext): Link to documentation of lang and locale_dir.
20742 (list_env): New section.
20743 (load_env): New section.
20744 (save_env): New section.
20745
20746 (Reporting bugs): Fix typo.
20747
e1ad0edd
VS
207482011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20749
20750 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20751 the example.
20752
5d803174
VS
207532011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20754
20755 * grub-core/term/at_keyboard.c (set_scancodes)
20756 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20757
2a2da1d0
CW
207582011-03-30 Colin Watson <cjwatson@ubuntu.com>
20759
20760 * docs/grub.texi (Menu-specific commands): Remove some semantics
20761 that were true in GRUB Legacy but not in GRUB 2.
20762 (submenu): New section.
20763 (false): New section.
20764 (read): New section.
20765 (true): New section.
20766
a7527639
CW
207672011-03-30 Colin Watson <cjwatson@ubuntu.com>
20768
20769 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20770
207712011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
20772
20773 * docs/grub.texi (Simple configuration): Explain some of the
20774 current limitations of grub-mkconfig.
8a748df2 20775 Reported by: Leslie Rhorer.
e30af029 20776
fc858482
VS
207772011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20778
20779 Old macs search for boot.efi rather than for bootia32.efi.
20780
20781 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20782 * util/grub-mkrescue.in: Likewise.
20783 Suggested by: Peter Jones.
20784
e1eb511d
VS
207852011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20786
20787 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20788
70e75364
VS
207892011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20790
20791 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20792 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20793 (grub_lvm_mirror): New struct.
20794 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20795 (grub_lvm_iterate): Iterate only visible volumes.
20796 (grub_lvm_read): Factor out to ..
20797 (read_lv): ... this. Support mirrors.
20798 (grub_lvm_read): New wrapper function.
20799 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20800 stripped or mirrored.
20801
fc18f6a3
VS
208022011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20803
20804 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20805
5c650f4c
CW
208062011-03-29 Colin Watson <cjwatson@ubuntu.com>
20807
20808 * docs/grub.texi (loopback): New section.
20809
61d7156b
CW
208102011-03-29 Colin Watson <cjwatson@ubuntu.com>
20811
20812 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20813 removed -p option.
20814
994b8264
CW
208152011-03-29 Colin Watson <cjwatson@ubuntu.com>
20816
20817 * docs/grub.texi (BIOS installation): New section, partly based on
20818 previous text in other sections.
20819 (Installing GRUB using grub-install): Replace BIOS discussion with a
20820 cross-reference.
20821 (Images): Likewise.
20822
9e4d19e0
VS
208232011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20824
20825 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20826 [HAVE_DIOCGDINFO]: Add safety checks.
20827
a307c0b2
VS
208282011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20829
20830 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20831 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20832
b4db4f39
CW
208332011-03-29 Colin Watson <cjwatson@ubuntu.com>
20834
20835 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20836 real_sb->size is zero (e.g. RAID-0), get the disk size from
20837 real_sb->data_size instead.
20838 Fixes Ubuntu bug #743136.
20839
35e5f84c
VS
208402011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20841
20842 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20843 printf clauses for printing size and start.
20844
d2e29d81
VS
208452011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20846
20847 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20848 Reported and tested by: Timothy Nikkel.
20849
ed5587af
VS
208502011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20851
20852 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20853 (dirty_region_add_real): ... this.
20854 (dirty_region_add): Don't discard margin refresh when performing
20855 scheduled repaint.
20856
a1dc717c
VS
208572011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20858
20859 * grub-core/lib/relocator.c (allocate_regstart)
20860 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20861 terminals are capabple of malloc-free operation.
20862 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20863 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20864
9f3677d3
VS
208652011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20866
20867 * util/grub-setup.c: Copy the partition table zone if floppy support
20868 is disabled, even if no partition table is found.
20869
20870 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20871 during POST if an invalid partition table is contained in the PBR
20872 of the active partition when GRUB is installed to a partition.
20873
24148725
CW
208742011-03-28 Colin Watson <cjwatson@debian.org>
20875
20876 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20877 comment.
20878
f329eda7
CW
208792011-03-28 Colin Watson <cjwatson@debian.org>
20880
20881 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20882 to be specific about what kind of RAID device we're scanning for.
20883
c482ad98
SG
208842011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20885
20886 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20887 return freed string.
20888
5ee04984
VS
208892011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20890
20891 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20892
f4727da9
VS
208932011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20894
20895 Use libgeom on FreeBSD to detect partitions.
20896
20897 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20898 (grub-mkrelpath): Likewise.
20899 (grub-script-check): Likewise.
20900 (grub-editenv): Likewise.
20901 (grub-mkpasswd-pbkdf2): Likewise.
20902 (grub-fstest): Likewise.
20903 (grub-mkfont): Likewise.
20904 (grub-mkdevicemap): Likewise.
20905 (grub-probe): Likewise.
20906 (grub-setup): Likewise.
20907 (grub-ofpathname): Likewise.
20908 (grub-mklayout): Likewise.
20909 (example_unit_test): Likewise.
20910 (grub-menulst2cfg): Likewise.
20911 * grub-core/Makefile.core.def (grub-emu): Likewise.
20912 (grub-emu-lite): Likewise.
20913 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20914 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20915 define HAVE_DIOCGDINFO.
20916 (follow_geom_up) [FreeBSD]: New function.
20917 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20918 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20919 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20920 unconditionally of HAVE_DIOCGDINFO.
20921
82fe6c75
VS
209222011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20923
20924 Fix FreeBSD compilation problem.
20925
20926 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20927 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20928
4c6c9431
CW
209292011-03-24 Colin Watson <cjwatson@ubuntu.com>
20930
20931 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20932 Switch back to page zero before loading a kernel, since some kernel
20933 drivers expect that.
20934 Thanks to: Felix Kuehling.
20935
c7064d94
VS
209362011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20937
20938 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20939 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20940 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20941
3f71cded
VS
209422011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20943
20944 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20945 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20946
ef6de21a
VS
209472011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20948
20949 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20950 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20951 malloc is disabled.
20952
8bc66a2c
VS
209532011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20954
20955 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20956 for modules headers when counting the needed allocation size.
20957
5657722c
VS
209582011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20959
20960 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20961 if no ASCII character is found to prevent crash.
20962
41a85f55
AK
209632011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20964
20965 * grub-core/video/bitmap.c (match_extension): Ignore case.
20966
59e1e5f1
VS
209672011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20968
20969 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20970
bd4d051a
VS
209712011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20972
20973 * grub-core/script/parser.y: Declare "time" as valid argument.
20974
bae7fcc1
PJ
209752011-03-23 Peter Jones <pjones@redhat.com>
20976
20977 Fix incorrect assert failure reporting.
20978
20979 * grub-core/tests/example_functional_test.c (example_test): Add
20980 a failure comment.
20981 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20982 (failure_start): ...this. Check that malloc succeeded.
20983 Don't call xvasprintf. Return failure struct.
20984 (failure_append_vtext): New function.
20985 (failure_append_text): Likewise.
20986 (add_failure): Likewise.
20987 (grub_test_assert_helper): Likewise.
20988 * include/grub/test.h (grub_test_assert_helper): New declaration.
20989 (grub_test_assert): Macro rewritten.
20990
537dc9be
VS
209912011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20992
20993 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20994
fa3e01bf
VS
209952011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20996
20997 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20998
b1d28404
VS
209992011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21000
21001 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21002 into GRUB-style one.
21003
2e3e2e09
VS
210042011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21005
21006 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21007 error and not grub_errno.
21008 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21009
ed57e557
VS
210102011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21011
21012 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21013 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21014
d1611f01
VS
210152011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21016
21017 * grub-core/efiemu/i386/pc/cfgtables.c
21018 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21019 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21020 (grub_xnu_unlock): Likewise.
21021 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21022
7d4e39d6
VS
210232011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21024
21025 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21026 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21027 * grub-core/commands/hashsum.c (aliases): Likewise.
21028 * grub-core/commands/setpci.c (pci_registers): Likewise.
21029 * grub-core/disk/usbms.c (attach_hook): Likewise.
21030 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21031 (zio_checksum_table): Likewise.
21032 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21033 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21034 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21035 * grub-core/lib/relocator.c (leftovers): Likewise.
21036 (extra_blocks): Likewise.
21037 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21038 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21039 (modules_last): Likewise.
21040 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21041 (devices): Likewise.
21042 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21043 (modules_last): Likewise.
21044 * grub-core/normal/auth.c (users): Likewise.
21045 * grub-core/normal/context.c (initial_menu): Likewise.
21046 (current_menu): Likewise.
21047 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21048 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21049 (grub_serial_terminfo_input_template): Likewise.
21050 (grub_serial_terminfo_output_template): Likewise.
21051 (grub_serial_terminfo_input): Likewise.
21052 (grub_serial_terminfo_output): Likewise.
21053 (registered): Likewise.
21054 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21055
40fc4659
VS
210562011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21057
21058 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21059 grub_video_mode_type_t.
21060 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21061 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21062 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21063
2da48d28
VS
210642011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21065
21066 * util/grub-install.in: Correct the x86-64 name as x86_64.
21067
9b43bf39
CW
210682011-03-11 Colin Watson <cjwatson@ubuntu.com>
21069
21070 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21071 initial chunk read from the kernel always includes GRUB's multiboot
21072 header, which is now outside the first sector.
21073
be1a7ce0
CW
210742011-03-09 Colin Watson <cjwatson@ubuntu.com>
21075
21076 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21077 cached mmap_size, so that this works correctly when called multiple
21078 times.
21079 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21080
83a3c48d
CW
210812011-03-09 Colin Watson <cjwatson@ubuntu.com>
21082
21083 * docs/grub.texi (Simple configuration): Tidy up formatting.
21084
57d75699
SJ
210852011-03-07 Szymon Janc <szymon@janc.net.pl>
21086
21087 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21088 Set-but-not-used variable removed.
21089
028501a0
VS
210902011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21091
21092 Workaround yet another IEEE1275 bug.
21093
21094 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21095 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21096 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21097 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21098 is set.
21099 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21100 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21101
d998657d
VS
211022011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21103
21104 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21105 error.
21106
fee7cdd4
CW
211072011-02-11 Colin Watson <cjwatson@ubuntu.com>
21108
21109 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21110 empty, since in that case we can only generate either nothing or a
21111 syntactically invalid configuration file.
21112 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21113
97286eb5
CW
211142011-02-09 Colin Watson <cjwatson@ubuntu.com>
21115
21116 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21117 (Making a GRUB bootable CD-ROM): Likewise.
21118 (Invoking grub-mkrescue): New section.
21119 Reported by: Yann Dirson. Fixes Debian bug #612585.
21120
22b28eb3
CW
211212011-02-09 Colin Watson <cjwatson@ubuntu.com>
21122
21123 * util/grub-install.in: Remove unnecessary brackets from tr
21124 arguments.
21125 * util/grub.d/10_hurd.in: Likewise.
21126 * util/grub.d/10_kfreebsd.in: Likewise.
21127 * util/grub.d/10_linux.in: Likewise.
21128 * util/grub.d/20_linux_xen.in: Likewise.
21129 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21130
7e735e43
CW
211312011-02-08 Colin Watson <cjwatson@ubuntu.com>
21132
21133 * include/grub/file.h (not_easly_seekable): Rename to ...
21134 (not_easily_seekable): ... this. Update all users.
21135
800f1881
CW
211362011-01-28 Colin Watson <cjwatson@ubuntu.com>
21137
21138 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21139 grub-mkrescue.
21140
3281d3d6
VS
211412011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21142
21143 * util/grub-mkimage.c (generate_image): Refuse to create the images
21144 bigger than the actual flash (512K) in Loongson machines. 512K is also
21145 the biggest chip supported by them.
21146
3533413c
VS
211472011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21148
21149 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21150
73ae4f4f
VS
211512011-01-22 Anthony DeRobertis <anthony@derobert.net>
21152
21153 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21154 super_offset field.
21155
37f4f608
VS
211562011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21157
21158 * util/grub-install.in: Ignore install device on platforms
21159 where it doesn't make sense. Always use UUIDs except on pc, efi and
21160 sparc64.
21161 Reported by: Daniel Kahn Gillmor.
21162
03a4ccb5
VS
211632011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21164
21165 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21166
ffc8f4d8
VS
211672011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21168
21169 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21170 (iterate_real): Don't rely on partition being non-NULL.
21171
80f23be7
VS
211722011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21173
21174 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21175 supported platforms. Put a compile time assert for this rather than
21176 generate a warning with 32-bit shift.
21177
5d4f4dd5
VS
211782011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21179
21180 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21181 logical expression more readable.
21182
e489601a
VS
211832011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21184
21185 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21186 even if some elements have a name.
21187 Reported by: Alexander GQ Gerasiov.
21188
96e0a6ea
CW
211892011-01-22 Colin Watson <cjwatson@ubuntu.com>
21190
21191 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21192 path unreadable if `grub-probe -t abstraction' fails, for example if
21193 memberlist fails on an LVM volume group.
21194 Reported by: Darius Jahandarie.
21195
81431e2b
CW
211962011-01-22 Colin Watson <cjwatson@ubuntu.com>
21197
21198 * docs/grub.texi (Simple configuration): Document
21199 GRUB_PRELOAD_MODULES.
21200
5e79d66a
CW
212012011-01-17 Colin Watson <cjwatson@ubuntu.com>
21202
21203 * .bzrignore: Remove nonexistent grub-pbkdf2.
21204
646ada34
VS
212052011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21206
21207 * configure.ac: Bump version to 1.99~rc1.
21208
04360337
VS
212092011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21210
21211 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21212 for safety.
21213
46c9db88
VS
212142011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21215
21216 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21217 module.
21218
212192011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
21220
21221 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21222
4fbf1852
VS
212232011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21224
21225 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21226 diskdevid.
21227
f1632d4d
VS
212282011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21229
21230 Fix compilation on cygwin.
21231
21232 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21233 -R .drectve on cygwin.
21234 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21235 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21236 (COND_CYGWIN): New condition.
21237 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21238 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21239 not @TARGET_OBJ2ELF@.
21240 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21241 type to determine whether aux is to be used.
21242
0b5e127b
VS
212432011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21244
21245 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21246 realpath'ed device string.
21247 Handle floppy (somewhat).
21248 Issue error in unknown case rather than garbage.
21249 Reported by: Axel Beckert.
21250
173b71e9
VS
212512011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21252
21253 * util/grub.d/00_header.in (load_video): Handle the case when no video
21254 drivers available.
21255 Thanks to: Axel Beckert.
21256
f8f479db
VS
212572011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21258
21259 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21260 variable. Fixes problem on big endian platforms.
21261
8fc0a245
VS
212622011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21263
21264 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21265 It doesn't work well there.
21266
b8494fbe
VS
212672011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21268
21269 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21270 warning.
21271 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21272 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21273 counter.
21274
b44a558c
VS
212752011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21276
21277 Use alias->path rather than buggy "canon".
21278
21279 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21280 (ofdisk_hash_add): New argument curcan. All users updated.
21281
51fa856c
CW
212822011-01-11 Colin Watson <cjwatson@ubuntu.com>
21283
21284 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21285
9da068a5
VS
212862011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21287
21288 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21289 loadmask before doing any calculations. Use correct type for offset.
21290 (grub_linux_load64): Likewise.
21291
86205c94
CW
212922011-01-11 Colin Watson <cjwatson@ubuntu.com>
21293
21294 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21295 with NULL.
21296 (console_grub_equivalences_unshift): Likewise.
21297 Reported by: Daniel Dehennin.
21298
4531a206
VS
212992011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21300
21301 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21302 (set_env_limn_ro): Likewise.
21303 (GRUB_MOD_INIT): Likewise.
21304 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21305 ARRAY_SIZE while on it.
21306 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21307 * grub-core/normal/context.c (grub_env_export): Move from here ...
21308 * grub-core/kern/env.c (grub_env_export): ... here.
21309 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21310 prefix.
21311 * grub-core/kern/main.c (grub_main): Export root and prefix.
21312 * include/grub/env.h (grub_env_export): Export.
21313 Reported by: Seth Goldberg.
21314
45146057
VS
213152011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21316
21317 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21318 Take into account space used by ELF sections and multiboot palette.
21319 Reported by: Grégoire Sutre.
21320
f093110b
VS
213212011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21322
21323 * BUGS: New file.
21324
3395fe52
VS
213252011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21326
21327 Pass more appropriate video id to Linux.
21328
21329 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21330 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21331 fill have_vga.
21332 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21333 shift params->lfb_size.
21334 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21335
c2fa6cbb
VS
213362011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21337
21338 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21339
b3ff6ff0
VS
213402011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21341
21342 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21343 separator and pass bootpath/devid even if only one of them is available.
21344 Reported by: Seth Goldberg.
21345
ae67942e
VS
213462011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21347
21348 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21349 implementations bug on them.
21350
21351 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21352 memory.
21353 (filter_memory_map): Likewise.
21354
d570097a
VS
213552011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21356
21357 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21358 Reported by: nebuchadnezzar.
21359
a508e776
VS
213602011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21361
21362 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21363 Reported by: nebuchadnezzar.
21364
dcb883b1
VS
213652011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21366
21367 Submenu default support.
21368
21369 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21370 auto_boot. All users updated.
21371 Declared static.
21372 Handle chosen and default with submenus.
21373 (grub_menu_execute_with_fallback): Declared static.
21374 Don't notify failure if autobooted. Upper level does it.
21375 (menuentry_eq): New function.
21376 (get_entry_number): Use menuentry_eq.
21377 (show_menu): New parameter "autobooted". All users updated.
21378 (grub_show_menu): Likewise.
21379 * include/grub/normal.h (grub_show_menu): Likewise.
21380 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21381 (grub_menu_execute_with_fallback): Likewise.
21382
6fef99b4
VS
213832011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21384
21385 * util/grub-mklayout.c (usage): Update help text.
21386
47a77af5
VS
213872011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21388
21389 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21390
ce6bb3ee
VS
213912011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21392
21393 * util/grub-menulst2cfg.c (main): Trim the line.
21394
db87be2a
VS
213952011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21396
21397 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21398 (grub_machine_init): Don't check amount of low memory as reportedly
21399 INT 12h can be broken and if low memory is too low we wouldn't have
21400 gotten into grub_machine_init anyway.
21401
c49849cc
VS
214022011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21403
21404 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21405 (grub_machine_mmap_iterate): Take low memory into account
21406
b1969b30
VS
214072011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21408
21409 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21410 badfs.
21411 Reported by: TiCPU.
21412
cf0eaf13
VS
214132011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21414
21415 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21416 members errors.
21417
1f060f39
GS
214182011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21419
21420 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21421 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21422
a21e5672
GS
214232011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21424
21425 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21426 openbsd and netbsd types being in part_bsd module.
21427
c88172fa
VS
214282011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21429
21430 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21431 (_FILE_OFFSET_BITS): Likewise.
21432 Reported by: Seth Goldberg.
21433
53798c4b
GS
214342011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21435
21436 * configure.ac: Check for libdevmapper header.
21437
e7121b69
VS
214382011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21439
21440 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21441 avoid aliasing.
21442 (fzap_lookup): Likewise.
21443 (dnode_get): Likewise.
21444 (make_mdn): Likewise.
21445 (zfs_mount): Likewise.
21446 (fzap_iterate): Use temporary pointer to avoid aliasing.
21447 (grub_zfs_read): Likewise.
21448 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21449 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21450 pointers to avoid aliasing.
21451 (grub_cmd_xnu_kernel64): Likewise.
21452 (grub_xnu_load_driver): Likewise.
21453
fc836af9
VS
214542011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21455
21456 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21457 aliasing warning.
21458 (grub_cmd_terminal_output): Likewise.
21459 Reported and tested by: Grégoire Sutre.
21460
f9f37648
VS
214612011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21462
21463 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21464 warning.
21465 Reported and tested by: Grégoire Sutre.
21466
ec1dfd63
VS
214672011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21468
21469 * configure.ac: Do CPU substitution even if it's specified explicitly.
21470 Reported and tested by: Alain Greppin.
21471
9462775a
VS
214722011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21473
21474 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21475 Reported and tested by: Alain Greppin.
21476
0fd48e35
VS
214772011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21478
21479 Satisfy some bison versions need for inttypes.h.
21480
21481 * grub-core/lib/posix_wrap/inttypes.h: New file.
21482 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21483 (int16_t): Likewise.
21484 (int32_t): Likewise.
21485 (int64_t): Likewise.
21486 Reported and tested by: Alain Greppin.
21487
43f1bc83
VS
214882011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21489
21490 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21491 Silence spurious warning.
21492 Reported and tested by: Alain Greppin.
21493
64d1f041
SJ
214942011-01-07 Szymon Janc <szymon@janc.net.pl>
21495
21496 * docs/grub.texi (Support automatic decompression): Update with xz
21497 decompression support.
21498
25953e10
SJ
214992011-01-07 Szymon Janc <szymon@janc.net.pl>
21500
21501 Improve loaders' kernel command line handling.
21502
21503 * grub-core/lib/cmdline.c: New file.
21504 * include/grub/lib/cmdline.h: Likewise.
21505 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21506 grub_create_loader_cmdline to create kernel command line.
21507 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21508 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21509 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21510 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21511 (linux): Add lib/cmdline.c on common.
21512
e72d259f
VS
215132011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21514
21515 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21516 inopos might be unaligned.
21517
c0cf26da
VS
215182011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21519
21520 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21521 endian transformations.
21522 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21523 Based on report by: Doug Nazar.
21524
0ca09e6c
DN
215252011-01-07 Doug Nazar <nazard.michi@gmail.com>
21526
21527 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21528 array->members[i].start_sector.
21529 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21530
014b6806
VS
215312011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21532
21533 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21534 Reported and tested by: Grégoire Sutre.
21535
415502c2
CW
215362011-01-06 Colin Watson <cjwatson@ubuntu.com>
21537
21538 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21539 avoid causing test failures by clearing the screen.
21540
71b6a2b7
CW
215412011-01-06 Colin Watson <cjwatson@ubuntu.com>
21542
21543 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21544 Fix prefix check to handle the case where dir ends with a slash
21545 (most significantly, "/" itself).
21546 Reported by: Michael Vogt.
21547
b3f8d28a
VS
215482011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21549
21550 Run terminfo_cls on initing terminfo output to clear the screen and
21551 move the cursor to (0,0).
21552
21553 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21554 Call grub_terminfo_output_init.
21555 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21556 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21557 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21558
4c3e4f37
VS
215592011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21560
21561 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21562 only when needed.
21563
488f71f1
VS
215642011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21565
21566 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21567 CTRL.
21568
18a38098
VS
215692011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21570
21571 The E820 type 5 is BADRAM, not EXEC_CODE.
21572
21573 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21574 (GRUB_E820_BADRAM): New define.
21575 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21576 into reserved. Propagate BADRAM.
21577 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21578 (GRUB_E820_BADRAM): New define.
21579
9eae2084
VS
215802011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21581
21582 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21583 Ignore the memory post-4G.
21584 (grub_relocator_firmware_alloc_region): Additional debug statement.
21585
ebc71d28
VS
215862011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21587
21588 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21589 names.
21590 Reported by: David Pravec.
21591
446fa400
VS
215922011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21593
21594 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21595 BIOSes.
21596
a0159f37
VS
215972011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21598
21599 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21600 Prevent overflow.
21601 (grub_reed_solomon_recover): Likewise.
21602
e5146ca1
VS
216032011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21604
21605 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21606
216072011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
21608
21609 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21610 variable.
21611
5b1bdf12
CW
216122011-01-04 Colin Watson <cjwatson@ubuntu.com>
21613
21614 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21615 descriptions of extract_legacy_entries_source and
21616 extract_legacy_entries_configfile.
21617 Reported by: Seung Soo, Ha.
21618
99d925aa
CW
216192011-01-03 Colin Watson <cjwatson@ubuntu.com>
21620
21621 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21622 on devices that do not implement function 0.
21623
4af0504b
DV
216242011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21625
21626 * grub-core/fs/hfsplus.c: Make parent unsigned.
21627 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21628 overflows.
21629 (grub_hfsplus_cmp_extkey): Likewise
21630
469ee10a
VS
216312011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21632
21633 * util/grub-install.in: Correctly use bootloader_id and not
21634 GRUB_DISTRIBUTOR on efibootmgr line.
21635
323a8e9c
VS
216362011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21637
21638 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21639
1b394975
IC
216402010-12-31 Ian Campbell <ijc@hellion.org.uk>
21641
21642 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21643 Xen and reorder menu item wording to make it clearer that this entry
21644 will launch Xen. Print separate messages when loading Xen and
21645 Linux.
21646
275bff5f
VS
216472010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21648
21649 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21650 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21651 loop in case of incorrect amiga partmap.
21652
307806cb
VS
216532010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21654
21655 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21656 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21657 Reported by:EHeM.
21658
b12b923e
VS
216592010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21660
21661 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21662 spurious warning.
21663 Reported by: crocket
21664
14b48a19
VS
216652010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21666
21667 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21668 Preload EFIemu.
21669 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21670
693db2df
VS
216712010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21672
21673 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21674 is loaded
21675 (grub_cmd_xnu_kextdir): Likewise.
21676 (grub_cmd_xnu_splash): Likewise.
21677
c7638645
VS
216782010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21679
21680 Avoid using Reed-Solomon with 0 redundancy.
21681
21682 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21683 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21684 or 0 redundancy.
21685 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21686 (grub_reed_solomon_recover): Likewise.
21687
25dd4780
VS
216882010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21689
21690 Don't use disk subsystem in freebsd_boot.
21691
21692 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21693 (freebsd_biosdev): Likewise.
21694 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21695 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21696
0b2db943
VS
216972010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21698
21699 Handling of files of unknown size is currently limited. They can't be
21700 used e.g. for initrd or modules. Moreover gzip handling of not
21701 easily seekable files is buggy. Disable unknown file size for now. May
21702 be inefficient but works.
21703
21704 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21705 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21706
5c408d0f
MP
217072010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21708
21709 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21710 floppy probe.
21711
190a011a
JD
217122010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21713
21714 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21715
022d01b8
SL
217162010-12-25 Shea Levy <shlevy>
21717
21718 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21719
c4855fdc
VS
217202010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21721
21722 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21723 Windows Server 2008.
21724 Reported by: Devin Giddings.
21725
0354b867
VS
217262010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21727
21728 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21729 writing an error message because of async power management.
21730 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21731 (grub_reboot): Likewise.
21732
ab66c69f
JU
217332010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21734
21735 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21736 keep unit tests from failing when they shouldn't.
21737
1426ef35
CW
217382010-12-21 Colin Watson <cjwatson@ubuntu.com>
21739
21740 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21741 previous patch increased the size of the RS code by 20 bytes (at
21742 least with gcc-4.4), so increase this by 20 bytes to match.
21743 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21744
20641b6b
CW
217452010-12-21 Colin Watson <cjwatson@ubuntu.com>
21746
21747 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21748 scratch area. Make sure to initialise chosen in standalone mode as
21749 well as non-standalone.
21750 Reported by: Robert Hooker and Andy Whitcroft.
21751 Tested by: Andy Whitcroft.
21752
d060ad60
CW
217532010-12-21 Colin Watson <cjwatson@ubuntu.com>
21754
21755 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21756 constructing a new unescaped string and passing it to grub_xputs in
21757 one go, rather than passing characters to grub_printf one at a time.
21758
b889cfad
CW
217592010-12-21 Colin Watson <cjwatson@ubuntu.com>
21760
21761 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21762 initialising utf16.
21763
4e01b6c8
CW
217642010-12-21 Colin Watson <cjwatson@ubuntu.com>
21765
21766 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21767 comment. Add an extra layer of quotation, requiring the output of
21768 this function to be used in a printf format string.
21769 (gettext_printf): New function.
21770 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21771 Extract translatable strings from here-documents and use a temporary
21772 variable instead, so that xgettext can find them.
21773 * util/grub.d/10_kfreebsd.in: Likewise.
21774 * util/grub.d/10_linux.in: Likewise.
21775 * util/grub.d/20_linux_xen.in: Likewise.
21776
21777 * po/grub.d.sed: New file.
21778 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21779 arguments. Set c-format flags on all strings extracted from
21780 util/grub.d/ (xgettext refuses to include these itself for strings
21781 it extracted from a shell file, but these really are c-format).
21782
5318fe98
VS
217832010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21784
21785 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21786 Avoid next pointing to nowhere.
21787
6c85b743
VS
217882010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21789
21790 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21791 rather than assuming than rootblock is exactly in the middle.
21792 (grub_affs_label): Likewise.
21793
a2a08a35
VS
217942010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21795
21796 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21797 reserved_first_sector to 0.
21798 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21799 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21800 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21801
7059d1ec
VS
218022010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21803
21804 Fix handling of UTF-16 UDF labels.
21805
21806 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21807 (read_string): .. here.
21808 (grub_udf_label): Use read_string.
21809
30aff4cb
BC
218102010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21811
21812 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21813 editor under argument scope.
21814 Reported by: Jordan Uggla
21815
5cf86f4b
VS
218162010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21817
21818 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21819
32570200
CW
218202010-12-18 Colin Watson <cjwatson@ubuntu.com>
21821
21822 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21823 line, and other keys scroll an entire page (previous handling was
21824 for \r and \n to scroll a page and other keys to scroll two lines).
21825
e1dffcf2
VS
218262010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21827
21828 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21829 Set ptrdest to correct get_physical_target_address rather than
21830 incorrect get_virtual_current_address.
21831
b04298cf 218322010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21833
21834 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21835 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21836
5367ecd3
CW
218372010-12-10 Colin Watson <cjwatson@ubuntu.com>
21838
21839 * .bzrignore: Ignore grub-core/rs_decoder.S.
21840
1fb430f8
CW
218412010-12-10 Colin Watson <cjwatson@ubuntu.com>
21842
21843 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21844 .mo/.mo.gz opening sequence to ...
21845 (grub_mofile_open_lang): ... here.
21846 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21847 * util/grub.d/00_header.in (grub_lang): Include country part of
21848 locale.
21849 Reported by: Mario Limonciello.
21850
a94a6671
RM
218512010-12-09 Robert Millan <rmh@gnu.org>
21852
21853 * NEWS: Document addition of ZFS support.
21854
24b7938b
CW
218552010-12-04 Colin Watson <cjwatson@ubuntu.com>
21856
21857 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21858 rather than `/ 2', as the latter requires -Wa,--divide which would
21859 require bumping our minimum binutils version.
21860
bddc3ef6
BC
218612010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21862
21863 * util/grub-script-check.c (main): Print script line number on
21864 error.
21865
bf78d5b2
RM
218662010-12-01 Robert Millan <rmh@gnu.org>
21867
21868 * grub-core/fs/zfs/zfs.c: New file.
21869 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21870 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21871 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21872 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21873
21874 * include/grub/zfs/dmu.h: Likewise.
21875 * include/grub/zfs/dmu_objset.h: Likewise.
21876 * include/grub/zfs/dnode.h: Likewise.
21877 * include/grub/zfs/dsl_dataset.h: Likewise.
21878 * include/grub/zfs/dsl_dir.h: Likewise.
21879 * include/grub/zfs/sa_impl.h: Likewise.
21880 * include/grub/zfs/spa.h: Likewise.
21881 * include/grub/zfs/uberblock_impl.h: Likewise.
21882 * include/grub/zfs/vdev_impl.h: Likewise.
21883 * include/grub/zfs/zap_impl.h: Likewise.
21884 * include/grub/zfs/zap_leaf.h: Likewise.
21885 * include/grub/zfs/zfs.h: Likewise.
21886 * include/grub/zfs/zfs_acl.h: Likewise.
21887 * include/grub/zfs/zfs_znode.h: Likewise.
21888 * include/grub/zfs/zil.h: Likewise.
21889 * include/grub/zfs/zio.h: Likewise.
21890 * include/grub/zfs/zio_checksum.h: Likewise.
21891
21892 * Makefile.util.def: Build ZFS into libgrubmods.
21893 * grub-core/Makefile.core.def: Build zfs.mod.
21894
3f0f3831
SJ
218952010-11-30 Szymon Janc <szymon@janc.net.pl>
21896
21897 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21898 variable.
21899 * grub-core/commands/wildcard.c (match_files): Likewise.
21900
3a4253b2
RM
219012010-11-30 Robert Millan <rmh@gnu.org>
21902
21903 * grub-core/loader/i386/bsd.c
21904 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21905 whether kernel is loaded using grub_loader_is_loaded(), rather
21906 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21907 certain error conditions.
21908
8c317b27
RM
219092010-11-30 Robert Millan <rmh@gnu.org>
21910
c5c9cd3e
RM
21911 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21912 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 21913
49d3ab46
VS
219142010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21915
21916 Avoid using tricks for initialising endian variables.
21917
21918 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21919 Make const.
21920 (GRUB_MOD_INIT): Don't byte-swap.
21921 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21922 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21923 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21924 (grub_swap_bytes32_compile_time): Likewise.
21925 (grub_cpu_to_le32_compile_time): Likewise.
21926 (grub_cpu_to_le16_compile_time): Likewise.
21927
f420a804
VS
219282010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21929
21930 * util/grub-setup.c (setup): Stop recommending --force. People who
21931 understand the dangers of blocklists are able to find this option
21932 anyway and the ones who don't shouldn't use it anyway.
21933
4e7db17b
RM
219342010-11-26 Robert Millan <rmh@gnu.org>
21935
21936 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21937 Update all users.
21938
9be57a0d
CW
219392010-11-26 Colin Watson <cjwatson@ubuntu.com>
21940
21941 Fix LVM-on-RAID probing.
21942
21943 * util/grub-probe.c (probe): Remember which disk was detected as
21944 RAID (perhaps an LVM physical volume). Use that disk's raidname
21945 rather than that of the top-level disk.
21946
2c7859b3 219472010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 21948
d7647bb6
BC
21949 Fix cmdline argument quotes for setparams command of menuentry
21950 definitions.
7e623b0d
BC
21951
21952 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21953 quotes for arguments.
f866fe80 21954 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 21955 grub_strchrsub function instead.
f866fe80 21956
7955bea0 21957 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 21958
74f72a64
CW
219592010-11-24 Colin Watson <cjwatson@ubuntu.com>
21960
21961 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21962 effort by skipping "." and ".." entries up-front.
21963 Suggested by: Michael Lazarev.
21964
5a407278
CW
219652010-11-24 Colin Watson <cjwatson@ubuntu.com>
21966
21967 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21968 ldflags to ldadd, to fix link line ordering.
21969 (none_decompress): Likewise.
21970
3030d8ec
CW
219712010-11-24 Colin Watson <cjwatson@ubuntu.com>
21972
21973 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21974 platforms.
21975 (grub-emu-lite): Remove kern/emu/cache.S.
21976
b7fbac12
CW
219772010-11-23 Colin Watson <cjwatson@ubuntu.com>
21978
21979 * util/deviceiter.c (compare_devices): If the by-id link for a
21980 device couldn't be resolved, fall back to sorting by the by-id link
21981 rather than segfaulting.
21982 Reported and tested by: Daniel Mierswa.
21983
5225f328
CW
219842010-11-23 Colin Watson <cjwatson@ubuntu.com>
21985
21986 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21987 ldflags, to fix link line ordering.
21988
038b3ce8
CW
219892010-11-23 Colin Watson <cjwatson@ubuntu.com>
21990
21991 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21992 linkers are picky about this.
21993
bf16e98e
CW
219942010-11-23 Colin Watson <cjwatson@ubuntu.com>
21995
21996 * grub-core/Makefile.am (command.lst): Adjust sed expression
21997 ordering so that extended and priority commands aren't treated as
21998 ordinary commands.
21999
7242bab6
CW
220002010-11-23 Colin Watson <cjwatson@ubuntu.com>
22001
22002 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22003 Remove byte-swapping function calls, which are not valid in
22004 structure initialisers.
22005 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22006 non-const.
22007 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22008 grub_gpt_partition_type_bios_boot.
22009
14e8b279
CW
220102010-11-22 Colin Watson <cjwatson@ubuntu.com>
22011
22012 Fix test program build on GNU/kFreeBSD.
22013
22014 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22015 $(LIBNVPAIR)' library dependencies.
22016
e6f63338 220172010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
22018
22019 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22020
cf8ffc38
CW
220212010-11-22 Colin Watson <cjwatson@ubuntu.com>
22022
22023 * util/grub-install.in: Remove excessive quoting that broke
22024 installations to RAID devices.
22025
7f8b0fd7
VS
220262010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22027
22028 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22029 bootloader version instead of 0.
22030
dfd240b1
VS
220312010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22032
22033 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22034 warning.
22035
7b61e609
VS
220362010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22037
22038 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22039 retrieve the metadat sector if size isn't known.
22040 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22041
9dfe92d0
RM
220422010-11-18 Robert Millan <rmh@gnu.org>
22043
22044 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22045 with grub_memcmp().
22046
41cc919e
VS
220472010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22048
22049 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22050 arrow.
22051 Reported by: Jordan Uggla.
22052
1afcc914
VS
220532010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22054
22055 Make better UTF compliant.
22056
22057 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22058 sequences as incorrect.
22059 (grub_is_valid_utf8): Likewise.
22060 (grub_utf8_to_ucs4): Likewise.
22061 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22062 (grub_ucs4_to_utf8_alloc): Likewise.
22063 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22064
f1808884
VS
220652010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22066
22067 Make legacy_source behave like source.
22068
22069 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22070 grub_show_menu.
22071 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22072
24ec575b
CW
220732010-11-16 Colin Watson <cjwatson@debian.org>
22074
22075 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22076 (-Wunused implies -Wunused-parameter, but not vice versa).
22077
72b7c7aa
CW
220782010-11-16 Colin Watson <cjwatson@ubuntu.com>
22079
22080 * configure.ac: Make error messages less confusing by testing for
22081 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22082 accepted, but produces a diagnostic if something else is wrong).
22083
e98937aa
VS
220842010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22085
22086 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22087 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22088 (now unused).
22089 (grub_keyboard_controller_init)
22090 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22091 read the initial state since controller isn't inited yet.
22092
f6bbabc3
VS
220932010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22094
22095 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22096 allocate_regbeg may need to create new chunk header.
22097
22e7dbb2
VS
220982010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22099
22100 Fix quoting in legacy parser.
22101
22102 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22103 single quotes.
22104 (grub_legacy_parse): Likewise.
22105 Reported by: Jordan Uggla.
22106 Tested by: Jordan Uggla.
22107
03f80960
VS
221082010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22109
22110 Don't add -lgcc on i386 and x86_64.
22111
22112 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22113 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22114 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22115
779dc15b
VS
221162010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22117
22118 * configure.ac: Add -Wno-trampolines when supported.
22119
d20a3b37
MV
221202010-11-14 Modestas Vainius <modax@debian.org>
22121
22122 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22123 fakeraid.
22124
e5360933
GC
221252010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22126
22127 Add generic logical block size support for UDF.
22128
22129 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22130 (GRUB_UDF_BLKSZ): Removed.
22131 (struct grub_udf_data): New field "lbshift" to hold the logical block
22132 size of the file system in log2 format. All users updated.
22133 (sblocklist): Change type to unsigned.
22134 (grub_udf_mount): Change type of "sblklist" to unsigned.
22135 Move AVDP search before VRS recognition, because the latter requires
22136 knowledge of the logical block size, which is detected during the
22137 former.
22138 Detect and validate logical block size during AVDP search, adding
22139 support for block sizes 512, 1024 and 4096.
22140 Make VRS recognition independent of block size.
22141
cb0229c5
GC
221422010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22143
22144 Properly handle deleted files on UDF.
22145
22146 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22147 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22148 set.
22149
406858a8
GC
221502010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22151
22152 Support reading files larger than 2 GiB.
22153
22154 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22155 "offset" to grub_off_t.
22156 (grub_udf_read_file): Likewise for parameter "pos".
22157
130da6a7
VS
221582010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22159
22160 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22161 unavailable.
22162 (Simple configuration): Refer to Changes from GRUB Legacy about
22163 save_env availability.
22164
65e93f6b
VS
221652010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22166
22167 * util/grub-install.in: Ignore empty partition table detection
22168 instead of trying to include part_ module.
22169
1fd08bf1
VS
221702010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22171
22172 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22173 LVM on RAID support.
22174
de1a024f
VS
221752010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22176
22177 Properly define WORDS_BIGENDIAN in wrapped environments.
22178
22179 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22180 definition.
22181 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22182
22183 Reported by: Manoel Rebelo Abranches.
22184 Tested by: Manoel Rebelo Abranches.
22185
bc5dd0b9
VS
221862010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22187
22188 * util/grub-mkconfig.in: Fix quoting.
22189
58c184be
VS
221902010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22191
22192 Support big ext2 files.
22193
22194 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22195 (grub_ext2_read_block): Support triple indirect blocks.
22196 (grub_ext2_read_file): Use 64-bit types and read size_high.
22197 (grub_ext2_open): Read size_high.
22198 Reported by: Ximin Luo.
22199 Tested by: Manoel Rebelo Abranches.
22200
5f0c02b3
VS
222012010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22202
22203 * util/grub-install.in: Handle filenames containing spaces.
22204 Reported by: Jordan Uggla.
22205 Tested by: Jordan Uggla.
22206
4417aae6
VS
222072010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22208
22209 * util/grub-mkconfig.in (grub_script_check): New variable.
22210 Use grub_script_check instead of grub-script-check.
22211 Reported by: Barry Jackson.
22212
7625a68e
VS
222132010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22214
22215 * docs/grub.texi (menu): Correct the order.
22216 Reported by: D. Hugh Redelmeier.
22217
10001ac5
VS
222182010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22219
22220 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22221 jump.
22222
9c4cf53b
MRA
222232010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22224
10001ac5
VS
22225 * include/grub/elfload.h (grub_elf32_size): New parameter.
22226 All users updated.
9c4cf53b
MRA
22227 Return maximum segments alignment.
22228 (grub_elf64_size): Likewise.
22229 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22230 Return maximum segments alignment.
22231 (grub_elf64_size): Likewise.
22232 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
22233 (grub_linux_claimmap_iterate): New function. Uses the
22234 "available" property in the "memory" node for memory allocation
22235 for kernel in the PowerPC loader.
9c4cf53b
MRA
22236 (grub_linux_load32): Correctly find linux entry point offset.
22237 (grub_linux_load64): Likewise.
22238
d2bf06bf
RM
222392010-11-07 Robert Millan <rmh@gnu.org>
22240
22241 On mips-yeeloong, build with -march=loongson2f when this flag is
22242 available (GCC >= 4.4).
22243 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22244 `-march=mips3'.
22245 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22246 or otherwise add -march=mips3.
22247
898c99a2
BC
222482010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22249
87220a68
BC
22250 Suppress shell expansion on echo '*' and echo "*" like cases.
22251 Reported by: Jordan Uggla.
898c99a2
BC
22252
22253 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22254 string arguments before shell expansion.
22255 * tests/grub_cmd_echo.in: New testcases.
22256
4f9b406a
RM
222572010-11-07 Robert Millan <rmh@gnu.org>
22258
22259 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22260 transition.
22261
80c6d25e
VS
222622010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22263
22264 * grub-core/kern/emu/hostdisk.c
22265 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22266
4a1a0153
VS
222672010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22268
22269 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22270 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22271 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22272
34706ddc
VS
222732010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22274
22275 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22276
6972dea9
VS
222772010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22278
22279 * util/grub-install.in: Replace useless recomendation to pass
22280 --modules with a recomendation to report a bug.
22281
9c693bd6
VS
222822010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22283
22284 Properly register serial terminfo.
22285 Reported by: Jordan Uggla
22286
22287 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22288 const.
22289 (grub_serial_terminfo_output_template): Likewise.
22290 (grub_cmd_serial): Register "serial" with terminfo.
22291 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22292 grub_serial_terminfo_output.
22293
6c9e4c0c
RM
222942010-11-05 Robert Millan <rmh@gnu.org>
22295
22296 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22297 needed).
22298
b9b3839f
RM
222992010-11-05 Robert Millan <rmh@gnu.org>
22300
22301 On Yeeloong, pass machine type information to Linux.
22302
22303 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22304 (LOONGSON_MACHTYPE): New macro, set to
22305 "machtype=lemote-yeeloong-2f-8.9inches".
22306 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22307 additional argument to Linux.
22308
1a3aaff4
RM
223092010-11-04 Robert Millan <rmh@gnu.org>
22310
22311 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22312 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22313 (its SATA disks are detected as slaveless IDE master drives on
22314 kFreeBSD).
22315 Reported by Carsten Aulbert.
22316
a75f4f62
CW
223172010-11-02 Colin Watson <cjwatson@ubuntu.com>
22318
22319 * util/bin2h.c (main): Fix spelling error in generated output.
22320
33b4b0c6
GS
223212010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22322
22323 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22324
2b36fbf4
VS
223252010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22326
22327 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22328 vga= option is supplied.
22329
74aaf558
VS
223302010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22331
22332 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22333 * util/grub.d/10_kfreebsd.in: Likewise.
22334 * util/grub.d/10_linux.in: Likewise.
22335 * util/grub.d/20_linux_xen.in: Likewise.
22336
6428dec3
VS
223372010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22338
22339 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22340 argument as an argument to no-argument option.
22341
f8729d98
VS
223422010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22343
22344 * util/grub.d/10_linux.in: Add missing load_video with explicit
22345 GRUB_GFXPAYLOAD_LINUX.
22346
89d68fa6
VS
223472010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22348
22349 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22350
3a1197cd
VS
223512010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22352
22353 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22354 elements with invlid index.
22355 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22356 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22357 members.
22358 * include/grub/raid.h (grub_raid_member): New struct.
22359 (grub_raid_array): Transform devices and start_sector into usage of
22360 grub_raid_member. All users updated
22361 (allocated_devs): New member.
22362
71574288
VS
223632010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22364
22365 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22366 is modified
22367
8d40ec65
BC
223682010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22369
22370 NetBSD build fix for getline function conflict from gnulib.
22371
22372 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22373 components that depend on gnulib headers.
22374 (libgrubmods.a): Renamed from earlier libgrub.a.
22375 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22376
95b9257e
VS
223772010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22378
22379 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22380 install rather than creating a broken install.
22381
26c53dc6
VS
223822010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22383
22384 * util/grub-setup.c (argp): Remove misleading example of installing to
22385 a partition.
22386
4171b3c5
VS
223872010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22388
22389 * util/grub-setup.c (setup): Clarify the error message.
22390
18568d18
VS
223912010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22392
22393 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22394
4f6a2e21
VS
223952010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22396
22397 * grub-core/kern/emu/misc.c
22398 (grub_make_system_path_relative_to_its_root)
22399 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22400
224012010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
22402
22403 * grub-core/kern/emu/misc.c
22404 (grub_make_system_path_relative_to_its_root): Revert r2882.
22405
e138c458
VS
224062010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22407
22408 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22409 useless field head. All users updated.
22410 (free_subchunk): Correct handling of IN_REGION subchunk.
22411
0cbcdf0e
CW
224122010-10-22 Colin Watson <cjwatson@ubuntu.com>
22413
22414 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22415 (Supported kernels): Likewise.
22416
b65ea155
GS
224172010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22418
22419 Make mktemp invocations portable.
22420
22421 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22422 exit if mktemp fails.
22423 * tests/grub_script_blockarg.in: Likewise.
22424 * tests/partmap_test.in: Likewise.
22425 * tests/util/grub-shell-tester.in: Likewise.
22426 * tests/util/grub-shell.in: Likewise.
22427 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22428 * Makefile.am: Likewise, and chain shell commands with `&&'
22429 instead of ';'.
22430 * util/grub-mkrescue.in: Use the same explicit template as above, and
22431 exit if mktemp fails.
22432
05f43cdd
BC
224332010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22434
22435 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22436 Linux kernel, reported by Dennis Schridde.
22437
800e6a9b
SJ
224382010-10-17 Szymon Janc <szymon@janc.net.pl>
22439
22440 * grub-core/normal/auth.c (grub_auth_check_authentication):
22441 Set-but-not-used variable removed.
22442
d82df574
VS
224432010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22444
22445 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22446 32-bit linux protocol.
22447
7bced458
VS
224482010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22449
22450 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22451 cursor shape for sanity.
22452
5b027690
VS
224532010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22454
22455 * docs/grub.texi (Installation): Document buggy BIOS install.
22456
ba5f65cf
VS
224572010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22458
22459 * docs/grub.texi (Installation): Indent.
22460
fdf2ec9c
VS
224612010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22462
22463 * util/grub-setup.c (setup): New parameter allow_floppy.
22464 (arguments): New member allow_floppy.
22465 (argp_parser): Handle --allow-floppy.
22466 (main): Pass allow_floppy.
22467 * util/grub-install.in: New option --allow-floppy passed though to
22468 grub-setup.
22469
861dfd4c
VS
224702010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22471
22472 * util/grub-install.in: Handle partitionless disks.
22473
f77a8c24
VS
224742010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22475
22476 * util/grub-setup.c (setup): Don't clean blocklists before readability
22477 verfification.
22478
27d9ee32
VS
224792010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22480
22481 * docs/grub.texi (Installation): Document embedding zone. Remove
22482 obsolete grub-install example.
22483
6bdda8f8
SJ
224842010-10-16 Szymon Janc <szymon@janc.net.pl>
22485
22486 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22487 Set-but-not-used variable ifdef'ed.
22488 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22489 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22490 variable removed.
22491 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22492 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22493 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22494 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22495 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22496 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22497 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22498 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22499 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22500 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22501 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22502 Likewise.
22503
e19b016b
VS
225042010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22505
22506 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22507 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22508 enum value.
22509
6c8d3002
VS
225102010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22511
22512 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22513 synonym to _S5_. Needed for some DSDTs.
22514
c32b51c9
VS
225152010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22516
22517 Userspace ACPI parser debugging.
22518
22519 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22520 headers and add relevant defines. Don't include standard headers.
22521 (main) [GRUB_DSDT_TEST]: New function.
22522 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22523 Don't declare functions.
22524
fbfbeb39
VS
225252010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22526
22527 Remove dead grub_efi_mm_fini.
22528
22529 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22530 (ALLOCATED_PAGES_SIZE): Likewise.
22531 (MAX_ALLOCATED_PAGES): Likewise.
22532 (allocated_pages): Likewise.
22533 (grub_efi_allocate_pages): Don't record allocated pages.
22534 (grub_efi_free_pages): Likewise.
22535 (grub_efi_mm_init): Likewise.
22536 (grub_efi_mm_fini): Removed.
22537
65f7ed7c
VS
225382010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22539
22540 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22541 (grub_efi_mm_init): Take into account the memory map size increase.
22542
24977b44
VS
225432010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22544
22545 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22546 (serial_hw_put): Wait based on real time rather than port reads. Don't
22547 roken ports.
22548 * include/grub/serial.h (grub_serial_port): New field broken.
22549
1eb01cd2
RM
225502010-10-16 Robert Millan <rmh@gnu.org>
22551
22552 * grub-core/kern/emu/misc.c
22553 (grub_make_system_path_relative_to_its_root): Fix premature return
22554 when processing non-root ZFS filesystems.
5f8b440b 22555 Reported by Sergio Talens-Oliag.
1eb01cd2 22556
2d5fed60
RM
225572010-10-15 Robert Millan <rmh@gnu.org>
22558
22559 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22560 guarantee compressed ones are processed first.
22561
d0f4c1ea
VS
225622010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22563
22564 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22565 grub_efiemu_autocore.
22566
d87c681f
VS
225672010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22568
22569 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22570 rather than 0x1b.
22571 (grub_console_getkey): Use correct jae opcode rather than ja.
22572
219b3564
RM
225732010-10-12 Robert Millan <rmh@gnu.org>
22574
22575 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22576 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22577 variable. All references updated.
22578
22579 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22580
20c6bb7e
VS
225812010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22582
22583 Correctly distinguish mdraid flavours.
22584
22585 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22586 (insert_array): New argument raid.
22587 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22588 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22589 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22590
74baff84
VS
225912010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22592
22593 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22594 handling of special keys.
22595
3ef068df 225962010-10-02 Aleš Nesrsta <starous@volny.cz>
22597
c7980ad9
VS
22598 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22599 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 22600
a9455194 226012010-10-02 Aleš Nesrsta <starous@volny.cz>
22602
c7980ad9
VS
22603 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22604 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22605 users updated.
a9455194 22606 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 22607 Use right endpoint when querying descriptor.
a9455194 22608
441cfe65
VS
226092010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22610
22611 Clear out 0x80 color bit on EFI.
22612 Tested by: decoder
22613 Reported by: decoder and meta tech.
22614
22615 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22616 (grub_console_setcolorstate): Clear out 0x80 bit.
22617 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22618 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22619 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22620
bf26bcc4
VS
226212010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22622
22623 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22624 Set to "auto".
22625
6e3c515d
VS
226262010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22627
22628 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22629 mo_file after freeing.
22630
e6d983ba
VS
226312010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22632
22633 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22634
74ccb5b5
VS
226352010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22636
22637 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22638 flags.
22639
17821956
VS
226402010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22641
22642 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22643 usage.
22644
ee74fa48
VS
226452010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22646
22647 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22648
22649 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22650 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22651 and terminfo.h when needed.
22652 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22653 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22654 (terminfo): Enable only on terminfokernel.
22655 (extcmd): Likewise.
22656 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22657 * include/grub/lib/arg.h: Likewise.
22658 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22659 incorrect usage of ->.
22660
aa438e68
VS
226612010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22662
22663 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22664 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22665
57994012
VS
226662010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22667
22668 Fix coreboot compilation.
22669
22670 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22671 Take VBE info into account even if only text is supported.
22672 (fill_vbe_info): Take into account the case when only VGA text
22673 is supported.
22674 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22675 on coreboot, multiboot and qemu.
22676
2a406611
VS
226772010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22678
22679 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22680 debug messages.
22681 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22682
d33613fc
VS
226832010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22684
22685 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22686 parameters.
22687
44a1b432
VS
226882010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22689
22690 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22691 if they were BSD-style.
22692
edde54e6
VS
226932010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22694
22695 * grub-core/boot/i386/pc/lnxboot.S: Replace
22696 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22697 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22698
b65830fa
VS
226992010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22700
22701 Write embedding zone using Reed-Solomon.
22702
22703 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22704 * grub-core/Makefile.am (rs_decoder.S): New target.
22705 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22706 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22707 (multiboot): Move to RS part.
22708 (post_reed_solomon): New label.
22709 (grub_boot_drive): Move to non-RS part since it's modified in memory
22710 on boot.
22711 Include rs_decoder.S.
22712 * grub-core/lib/reed_solomon.c: New file.
22713 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22714 New definition.
22715 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22716 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22717 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22718 * include/grub/partition.h (grub_partition_map): Change prototype of
22719 embed to allow returning additional sectors.
22720 * include/grub/reed_solomon.h: New file.
22721 * util/grub-setup.c (setup): Handle Reed-Solomon.
22722
0b4b227f
CW
227232010-09-28 Colin Watson <cjwatson@ubuntu.com>
22724
22725 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22726 i386 and x86-64 definedness tests.
22727
f772623b
YB
227282010-09-27 Yves Blusseau <blusseau@zetam.org>
22729
22730 Fix generation of kernel_syms.lst
22731
22732 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22733 ASM_PREFIX
22734
8e57a6ca
RM
227352010-09-26 Robert Millan <rmh@gnu.org>
22736
22737 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22738
22739 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22740 the pool is an array of devices, iterate through it and return the
22741 first device that passes a stat() test (instead of blindly returning
22742 the first one).
22743
f9130836
RM
227442010-09-26 Robert Millan <rmh@gnu.org>
22745
22746 Build fixes for GNU/kFreeBSD.
22747
22748 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22749 to programs that require ZFS conversion.
22750 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22751 kernels that don't have FLOPPY_MAJOR.
22752
96510faf
BC
227532010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22754
22755 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22756
449333eb
BC
227572010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22758
22759 Fix grub-emu build.
22760
22761 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22762 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22763 mdraid09 and mdraid1x.
22764
e1fd1939
CW
227652010-09-24 Colin Watson <cjwatson@ubuntu.com>
22766
22767 Re-enable grub-extras.
22768
22769 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22770 avoid confusing Automake. Run autogen only twice, once for the top
22771 level and once for grub-core. Add Makefile.util.def and
22772 Makefile.core.def from extra modules to the appropriate autogen
22773 invocations. If Makefile.common exists in an extra module, include
22774 it in both Makefile.util.am and grub-core/Makefile.core.am;
22775 similarly, include any Makefile.util.common file in Makefile.util.am
22776 and any Makefile.core.common file in grub-core/Makefile.core.am.
22777 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22778 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22779 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22780 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22781
22782 * gentpl.py (gvar_add): Turn GVARS into a set.
22783 (global_variable_initializers): Sort global variables on output.
22784 (vars_init): New function.
22785 (first_time): Likewise.
22786 (library): Ensure that non-global variable initialisations are
22787 emitted before the first time we emit code for a library block.
22788 Append to variables rather than setting them. Only emit
22789 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22790 each conditional path.
22791 (program): installdir() emits an Autogen macro, so must be passed to
22792 var_add rather than gvar_add.
22793 (data): Likewise.
22794 (script): Likewise.
22795 (rules): New function, centralising handling for different target
22796 types. Set up Guile association lists for first_time and vars_init,
22797 and send most output to a diversion so that variable initialisations
22798 can be emitted first.
22799 (module_rules): Use new rules function.
22800 (kernel_rules): Likewise.
22801 (image_rules): Likewise.
22802 (library_rules): Likewise.
22803 (program_rules): Likewise.
22804 (script_rules): Likewise.
22805 (data_rules): Likewise.
22806
22807 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22808
22809 * .bzrignore: Add contrib and grub-core/contrib. Remove
22810 grub-core/Makefile.gcry.am.
22811
1d12cf29
YB
228122010-09-24 Yves Blusseau <blusseau@zetam.org>
22813
22814 * grub-core/lib/LzFind.c: Add missing include.
22815 * grub-core/lib/LzmaEnc.c: Likewise.
22816 * grub-core/script/lexer.c: Likewise.
22817 * grub-core/script/yylex.l: Likewise.
22818 * util/grub-macho2img.c: Likewise.
22819 * util/grub-menulst2cfg.c: Likewise.
22820 * util/grub-mklayout.c: Likewise.
22821 * util/grub-mkpasswd-pbkdf2.c
22822 * util/grub-mkrelpath.c: Likewise.
22823 * util/resolve.c: Likewise.
22824
dd363028
BC
228252010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22826
22827 * Makefile.util.def (example_unit_test): Add
22828 grub-core/gnulib/libgnu.a.
22829
f5a109e2
GS
228302010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22831
22832 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22833
6d0fa83c
VS
228342010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22835
22836 Support xz compression on yeeloong.
22837
22838 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22839 * configure.ac: Check for LZMA.
22840 * grub-core/Makefile.core.def (xz_decompress): New target.
22841 (none_decompress): Likewise.
22842 * grub-core/boot/decompressor/minilib.c: New file.
22843 * grub-core/boot/decompressor/none.c: Likewise.
22844 * grub-core/boot/decompressor/xz.c: Likewise.
22845 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22846 * grub-core/kern/mips/cache_flush.S: Likewise.
22847 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22848 * grub-core/kern/mips/startup.S: Move first stage to ...
22849 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22850 nomacro.
22851 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22852 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22853 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22854 Allocate statically.
22855 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22856 Allocate statically or use scratch. Don't check CRC32.
22857 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22858 Allocate statically. Don't check CRC32.
22859 * include/grub/decompressor.h: New file.
22860 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22861 Removed.
22862 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22863 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22864 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22865 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22866 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22867 * util/grub-mkimage.c (grub_compression_t): New type.
22868 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22869 (image_target_desc): New field default_compression.
22870 (image_targets): Adjust yeeloong targets.
22871 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22872 (compress_kernel): New parameter comp.
22873 (generate_image): Likewise. Handle new compression case.
22874 (options): New option --compression
22875 (help): Likewise.
22876 (main): Handle new option.
22877
1b655af6
GS
228782010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22879
22880 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22881
8f03f0b5
CW
228822010-09-22 Colin Watson <cjwatson@ubuntu.com>
22883
22884 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22885 typo in __i386__ conditional.
22886
7835dfd3
VS
228872010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22888
22889 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22890 include.
22891
e255597e
VS
228922010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22893
6d0fa83c 22894 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
22895
22896 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22897 new tags as supported.
22898 (acpiv2_size): New function.
22899 (grub_multiboot_get_mbi_size): Take new tags into account.
22900 (grub_multiboot_make_mbi): Add new tags.
22901 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 22902
6cc14051 229032010-09-21 Aleš Nesrsta <starous@volny.cz>
22904
22905 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22906 Added missing configuration of USB device.
22907
df7769d8
CW
229082010-09-21 Colin Watson <cjwatson@ubuntu.com>
22909
22910 * grub-core/normal/menu_entry.c (run): Make sure we always return
22911 a value.
22912
b031012d
CW
229132010-09-21 Colin Watson <cjwatson@ubuntu.com>
22914
22915 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22916 NumberOfPages is UINT64 according to the UEFI specification, not
22917 UINTN. Fix printf format.
22918
174de8f3
CW
229192010-09-21 Colin Watson <cjwatson@ubuntu.com>
22920
22921 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22922 `err' to grub_usb_err_t.
22923 Reported and tested by: KESHAV P.R.
22924
d7dbe923
CW
229252010-09-21 Colin Watson <cjwatson@ubuntu.com>
22926
22927 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22928 tpart non-const, so that we can assign to it. (Since this is a
22929 typedef, the constness refers to the pointer rather than what it
22930 points to.)
22931
8d5e2af3
CW
229322010-09-21 Colin Watson <cjwatson@ubuntu.com>
22933
22934 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22935 $(top_srcdir)/grub-core/gnulib as well as
22936 $(top_builddir)/grub-core/gnulib.
22937 Reported by: KESHAV P.R.
22938
5c527783
CW
229392010-09-21 Colin Watson <cjwatson@ubuntu.com>
22940
22941 * util/grub-install.in: Fix the bootloader ID option to be
22942 consistently --bootloader-id, not --bootloader_id.
22943 Reported by: KESHAV P.R.
22944
d309a16e
CW
229452010-09-21 Colin Watson <cjwatson@ubuntu.com>
22946
22947 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22948 check hash checksum." consistently translatable.
22949
b830cd16
YB
229502010-09-21 Yves Blusseau <blusseau@zetam.org>
22951
22952 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22953 $(top_builddir).
22954
c4fe27a8
CW
229552010-09-21 Colin Watson <cjwatson@ubuntu.com>
22956
22957 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22958 (GRUB_MOD_INIT): Register sha1sum command.
22959 (GRUB_MOD_FINI): Unregister sha1sum command.
22960
a4c1d277
YB
229612010-09-21 Yves Blusseau <blusseau@zetam.org>
22962
22963 Keep boot and grub directory names in sync with utils scripts
22964
22965 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22966 * config.h.in: Add previous macros.
22967 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22968 * util/grub-install.in: Use $bootdir and $grubdir variables.
22969
4eff79d2
CW
229702010-09-21 Colin Watson <cjwatson@ubuntu.com>
22971
22972 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22973 convert partition names to disk names if the new `convert' parameter
22974 is set.
22975 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22976 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22977 disk in its own right. This can happen with Xen disk images.
22978
934d7e44
YB
229792010-09-21 Yves Blusseau <blusseau@zetam.org>
22980
22981 * util/grub-editenv.c: Update strings to avoid warnings when generating
22982 grub.pot file.
22983 * util/grub-setup.c: Likewise.
934d7e44 22984
df3367cc
VS
229852010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22986
22987 * configure.ac: Change version to 1.99~beta0.
22988
77a94e98
VS
229892010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22990
22991 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22992 Add BADRAM.
22993 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22994 Likewise.
22995 * include/multiboot.h: Resynced with specification.
22996 * include/multiboot2.h: Likewise.
22997
269004c1
CW
229982010-09-21 Colin Watson <cjwatson@ubuntu.com>
22999
23000 Fix po directory handling.
23001
23002 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23003 * grub-core/gnulib/Makefile.am: Import gettext module.
23004 * m4/gnulib-cache.m4: Likewise.
23005 * m4/gnulib-comp.m4: Likewise.
23006 * m4/gettext.m4: New file, from gnulib.
23007 * m4/glibc2.m4: Likewise.
23008 * m4/iconv.m4: Likewise.
23009 * m4/intdiv0.m4: Likewise.
23010 * m4/intl.m4: Likewise.
23011 * m4/intldir.m4: Likewise.
23012 * m4/intlmacosx.m4: Likewise.
23013 * m4/intmax.m4: Likewise.
23014 * m4/inttypes-pri.m4: Likewise.
23015 * m4/lcmessage.m4: Likewise.
23016 * m4/lib-ld.m4: Likewise.
23017 * m4/lib-link.m4: Likewise.
23018 * m4/lib-prefix.m4: Likewise.
23019 * m4/lock.m4: Likewise.
23020 * m4/nls.m4: Likewise.
23021 * m4/po.m4: Likewise.
23022 * m4/printf-posix.m4: Likewise.
23023 * m4/progtest.m4: Likewise.
23024 * m4/threadlib.m4: Likewise.
23025 * m4/uintmax_t.m4: Likewise.
23026 * m4/visibility.m4: Likewise.
23027 * po/Makefile.am: Remove.
23028 * po/Makefile.in.in: New file, from gettext.
23029 ($(DOMAIN).pot-update): Support POTFILES-shell.
23030 * po/Makevars: New file.
23031 * po/POTFILES-shell: Rename to ...
23032 * po/POTFILES-shell.in: ... this. Update.
23033 * po/POTFILES: Rename to ...
23034 * po/POTFILES.in: ... this. Update.
23035 * po/Rules-quot: New file, from gettext.
23036 * po/boldquot.sed: Likewise.
23037 * po/en@boldquot.header: Likewise.
23038 * po/en@quot.header: Likewise.
23039 * po/insert-header.sin: Likewise.
23040 * po/quot.sed: Likewise.
23041 * po/remove-potcdate.sin: Likewise.
23042
3e0fa5d0
VS
230432010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23044
23045 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23046
ade9bd66
VS
230472010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23048
23049 * util/grub.d/20_linux_xen.in: Use submenus.
23050
fc55cc4c
VS
230512010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23052
23053 Support submenus.
23054
23055 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23056 parameter submenu. All users updated.
23057 * grub-core/normal/main.c (free_menu): Rename to ...
23058 (grub_normal_free_menu): ... this. Made global.
23059 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23060 if requested.
23061 * grub-core/normal/menu_entry.c (screen): New field submenu.
23062 (make_screen): Set submenu.
23063 (run): Open new context if requested.
23064 * include/grub/menu.h (grub_menu_entry): New field submenu.
23065 * include/grub/normal.h (grub_normal_free_menu): New proto.
23066
600cedf7
VS
230672010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23068
23069 Menu entries extractor.
23070
23071 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23072 variants.
23073 (GRUB_MOD_INIT): Register new variants.
23074 (GRUB_MOD_FINI): Unregister new variants.
23075 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23076 into grub_cmd_legacy_source.
23077 (grub_cmd_legacy_source): Implement extractor variants.
23078 (GRUB_MOD_INIT): Register new variants.
23079 (GRUB_MOD_FINI): Unregister new variants.
23080 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23081 as an extractor.
23082 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23083 search as an extractor.
23084 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23085 test as an extractor.
23086 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23087 as an extractor.
23088 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23089 (grub_env_new_context): New function.
23090 (grub_env_context_open): Likewise.
23091 (grub_env_extractor_open): Likewise.
23092 (grub_env_extractor_close): Likewise.
23093 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23094 grub_extractor_level.
23095 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23096 * include/grub/env.h (grub_env_extractor_open): New proto.
23097 (grub_env_extractor_close): Likewise.
23098 * include/grub/normal.h (grub_extractor_level): New external variable.
23099
7bda3a87
VS
231002010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23101
23102 Make cutmem accept a region specification.
23103 Suggested by: Samuel Thibault
23104
23105 * grub-core/mmap/mmap.c (parsemem): New function.
23106 (grub_cmd_cutmem): Handle new arguments.
23107
2ea57f88
VS
231082010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23109
23110 New command cutmem.
23111
23112 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23113 (GRUB_MOD_INIT): Register new command.
23114 (GRUB_MOD_FINI): Unregister new command.
23115
74342e31
VS
231162010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23117
23118 Support some annoying BSD and Minix subpartitions.
23119
23120 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23121 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23122 Properly handle concatenation.
23123 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23124 * grub-core/normal/completion.c (iterate_partition): Likewise.
23125 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23126 contain partition. All users updated.
23127 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23128 struct.
23129 (grub_openbsdlabel_partition_map): Likewise.
23130 (bsdlabel_partition_map_iterate): Rename to ..
23131 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23132 (bsdlabel_partition_map_iterate): New function.
23133 (netopenbsdlabel_partition_map_iterate): Likewise.
23134 (netbsdlabel_partition_map_iterate): Likewise.
23135 (openbsdlabel_partition_map_iterate): Likewise.
23136 (GRUB_MOD_INIT): Register new partmaps.
23137 (GRUB_MOD_FINI): Unregister new partmaps.
23138 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23139 (grub_partition_msdos_iterate): ... this. All users updated.
23140 Don't support embedding other than in a minix partition.
23141 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23142 proto.
23143 * include/grub/partition.h (grub_partition): New field msdostype.
23144 * util/grub-install.in: Handle openbsd and netbsd types being in
23145 part_bsd module.
23146
1e8d555b
VS
231472010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23148
23149 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23150
23151 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23152 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23153 (mdraid09): ... this.
23154 (mdraid1x): New module.
23155 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23156 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23157
899d8af4
VS
231582010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23159
23160 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23161 vsprintf.
23162
40901acd
CW
231632010-09-20 Colin Watson <cjwatson@ubuntu.com>
23164
23165 * grub-core/commands/efi/lsefimmap.c: Correct header.
23166 * NEWS: Update.
23167
dfe3b247
CW
231682010-09-20 Colin Watson <cjwatson@ubuntu.com>
23169
23170 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23171 as printf format strings; the translations might contain '%' which
23172 could cause a crash.
23173 (main): Likewise.
23174 * util/grub-fstest.c (argp_parser): Likewise.
23175 * util/grub-setup.c (argp_parser): Likewise.
23176 (main): Likewise.
23177
3286a4b4
VS
231782010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23179
23180 Use argp in grub-fstest.
23181
23182 * util/grub-fstest.c: Don't include getopt.h.
23183 Include argp.h.
23184 (root): New variable.
23185 (args_count): Likewise.
23186 (nparm): Likewise.
23187 (num_disks): Likewise.
23188 (images): Likewise.
23189 (cmd): Likewise.
23190 (debug_str): Likewise.
23191 (args): Likewise.
23192 (options): Transformed to argp.
23193 (usage): Removed.
23194 (main): Split argument parsing into ...
23195 (argp_parser): ... this. Changed to argp format.
23196 (argp): New variable.
23197 (main): Use argp_parse.
23198
3dccbe4b
TG
231992010-09-20 Tristan Gingold <gingold@free.fr>
232002010-09-20 Robert Millan <rmh.grub@aybabtu.com>
232012010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23202
23203 * grub-core/commands/efi/lsefimmap.c: New file.
23204 * grub-core/Makefile.core.def (lsefimmap): New module.
23205 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23206
38c259a7
VS
232072010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23208
23209 Pause the execution (10s max) if any errors are displayed so the user
23210 has a chance to see them.
23211
23212 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23213 (grub_print_error): Increment grub_err_printed_errors.
23214 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23215 execution if any errors were displayed.
23216 (show_menu): Remove old code for pause.
23217 * grub-core/normal/menu_entry.c (run): Likewise.
23218 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23219 users updated.
23220 (grub_normal_get_char_counter): Likewise.
23221 * include/grub/err.h (grub_err_printed_errors): New external variable.
23222 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23223
f218b09c
VS
232242010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23225
23226 Support multiboot VBE info.
23227
23228 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23229 Take VBE info into account.
23230 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23231 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23232 Call fill_vbe_info when appropriate.
23233 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23234 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23235 as supported.
23236 (grub_multiboot_get_mbi_size): Take new tags into account.
23237 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23238 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23239 Call fill_vbe_tag when appropriate.
23240 (grub_multiboot_make_mbi): Properly align tags.
23241 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23242 function.
23243 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23244 proto.
23245 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23246
a9cc5438
VS
232472010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23248
23249 Suport manual terminal geometry specification.
23250
23251 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23252 Save state in grub_ofconsole_terminfo_output.
23253 (grub_ofconsole_term): Use grub_terminfo_getwh.
23254 (grub_ofconsole_getwh): Removed.
23255 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23256 (grub_serial_term): Use grub_terminfo_getwh.
23257 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23258 (options): New struct.
23259 (OPTION_*): New enum.
23260 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23261 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23262 width and height.
23263 (grub_terminfo_getwh): New proto.
23264 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23265
1a8fed20
VS
232662010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23267
23268 Handle legacy "terminal" command.
23269
23270 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23271 and FLAG_TERMINAL.
23272 (legacy_commands): Add terminal and title.
23273 (grub_legacy_parse): Handle terminal. Simplify title handling.
23274
41e9c57d
VS
232752010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23276
23277 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23278 parameters overflow.
23279
61c874c5
CW
232802010-09-20 Colin Watson <cjwatson@ubuntu.com>
23281
23282 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23283 widthspec.h.
23284
23285 * docs/grub.texi (Shell-like scripting): Document `!'.
23286 (Network): Simplify using new i386-pc-pxe format. Mention
23287 grub-mknetdir.
23288
23289 * NEWS: Update.
23290
943682b4
CW
232912010-09-20 Colin Watson <cjwatson@ubuntu.com>
23292
23293 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23294 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23295 when needed.
23296
6d3d698d
CW
232972010-09-20 Colin Watson <cjwatson@ubuntu.com>
23298
23299 * grub-core/commands/efi/lsefisystab.c: Correct header.
23300 * grub-core/commands/efi/lssal.c: Likewise.
23301 * grub-core/commands/testload.c: Likewise.
23302
c982589f
CW
233032010-09-20 Colin Watson <cjwatson@ubuntu.com>
23304
23305 * util/grub-mkrescue.in: Add explicit root argument to --set to
23306 prevent the UUID being interpreted as an argument to --set (matches
23307 previous change to prepare_grub_to_access_device).
23308
a63c31b6
CW
233092010-09-20 Colin Watson <cjwatson@ubuntu.com>
23310
23311 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23312 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23313 the verbosity of later #ifs.
23314 (find_partition_start): Define this function on FreeBSD too.
23315 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23316 function.
23317 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23318 on FreeBSD.
23319
6439b8ee
YB
233202010-09-20 Yves Blusseau <blusseau@zetam.org>
23321
23322 * util/grub-editenv.c: Use argp instead of getopt.
23323
c5930ec8
YB
233242010-09-20 Yves Blusseau <blusseau@zetam.org>
23325
23326 * util/grub-setup.c: Use argp instead of getopt.
23327
15c69261
YB
233282010-09-20 Yves Blusseau <blusseau@zetam.org>
23329
23330 Use gnulib-tool to create gnulib source files.
23331
23332 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23333 grub-core/gnulib directories
23334 * .bzignore: Add **/.deps and autogenerated gnulib files
23335 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23336 of gnulib macros, add grub-core/gnulib/Makefile
23337 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23338 include m4 directory to aclocal.
23339 * Makefile.util.def: Remove direct compilation of gnulib source files
23340 and use the new grub-core/gnulib/libgnu.a.
23341 * build-aux/config.rpath: move config.rpath from top directory to
23342 build-aux
23343 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23344 in gnulib headers
23345 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23346 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23347 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23348 header.
23349 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23350 string.
23351
e511c9f5
YB
233522010-09-20 Yves Blusseau <blusseau@zetam.org>
23353
23354 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23355 grub-core/genmod.sh and grub-core/gensyminfo.sh
23356
c2dede05
BC
233572010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23358
23359 Add a test for echo command options.
23360
23361 * tests/grub_cmd_echo.in: New test.
23362 * Makefile.util.def: Rules for new test.
23363
c55f5018
SJ
233642010-09-20 Szymon Janc <szymon@janc.net.pl>
23365
23366 Remove crc.mod and move crc command to hashsum.mod.
23367 Remove lib/crc.c - users updated to use gcrypt implementation.
23368
23369 * grub-core/commands/crc.c: Removed.
23370 * grub-core/Makefile.core.def (crc): Module removed.
23371 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23372 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23373 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23374 * grub-core/lib/crc.c: Removed.
23375 * include/grub/lib/crc.h: Removed.
23376 * Makefile.util.def (crc): Remove lib/crc.c
23377 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23378 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23379 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23380 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23381 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23382 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23383
e0337366
VS
233842010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23385
23386 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23387
742f9232
VS
233882010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23389
23390 Split config.h for util and core.
23391
23392 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23393 (ADDR32): Likewise.
23394 (DATA32): Likewise.
23395 (BSS_START_SYMBOL): Likewise.
23396 (END_SYMBOL): Likewise.
23397 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23398 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23399 * config.h.in: New file.
23400 * configure.ac: Use config-util.h as config define file.
23401 Rename MACHINE into GRUB_MACHINE. All users updated.
23402 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23403 updated.
23404 (NESTED_FUNC_ATTR): Likewise.
23405 Substitue new variables.
23406 (COND_HAVE_ASM_USCORE): New conditional.
23407 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23408 (kernel_syms.lst): Use ASM_PREFIX.
23409 * grub-core/kern/emu/console.c: Include config-util.h.
23410 * grub-core/kern/emu/misc.c: Likewise.
23411 * grub-core/kern/emu/mm.c: Likewise.
23412 * include/grub/emu/misc.h: Likewise.
23413 * include/grub/libgcc.h: Likewise.
23414
39feb0e8
VS
234152010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23416
23417 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23418 constants usage.
23419 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23420 Fix GRUB_TERM_KEY_* constants usage.
23421 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23422
9af6dac3
VS
234232010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23424
23425 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23426 print pointer.
23427 * grub-core/bus/usb/uhci.c: Remove empty define.
23428 (grub_uhci_check_transfer): Add missing cast.
23429 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23430 print pointer.
23431 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23432 PRIuGRUB_SIZE.
23433 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23434
d6d94820
VS
234352010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23436
23437 * grub-core/Makefile.core.def (legacycfg): Add
23438 lib/i386/pc/vesa_modes_table.c on emu.
23439
3572f2b6
BC
234402010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23441
23442 Reduce number of temporary files generated by build system.
23443
23444 * grub-core/gencmdlist.sh: Removed.
23445 * grub-core/genfslist.sh: Removed.
23446 * grub-core/genhandlerlist.sh: Removed.
23447 * grub-core/genmodsrc.sh: Removed.
23448 * grub-core/genpartmaplist.sh: Removed.
23449 * grub-core/genparttoollist.sh: Removed.
23450 * grub-core/gentermiinallist.sh: Removed.
23451 * grub-core/genvideolist.sh: Removed.
23452
23453 * grub-core/genmod.sh.in: New file.
23454 * grub-core/gensyminfo.sh.in: New file.
23455
23456 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23457 * conf/Makefile.extra-dist: Update with new files.
23458 * gentpl.py: Remove rules related to unnecessary temporary files.
23459 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23460 and und-* files.
23461 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23462 genmod.sh scripts.
23463 * grub-core/bus/usb/uhci.c: Remove empty #define.
23464 * grub-core/genmoddep.awk: Updated with new syminfo format.
23465 * util/bash-completion.d/Makefile.am: Add config.log to
23466 CLEANFILES.
23467
c836b030
YB
234682010-09-19 Yves Blusseau <blusseau@zetam.org>
23469
23470 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23471
2f4e8053
BC
234722010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23473
23474 * util/grub-mkconfig.in: Check the config script for syntax errors
23475 before saving.
23476
75831c34
CW
234772010-09-19 Colin Watson <cjwatson@ubuntu.com>
234782010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23479
23480 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23481 platforms.
23482 * util/grub-install.in: Add EFI and IEEE1275 support.
23483 * util/i386/efi/grub-install.in: Removed.
23484 * util/ieee1275/grub-install.in: Likewise.
23485
eaf41b25
VS
234862010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23487
23488 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23489 (grub_cmd_cmosclean): Likewise.
23490 (GRUB_MOD_INIT): Register command cmosclean.
23491 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23492 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23493
1a9130dd
CPE
234942010-09-18 Carles Pina i Estany <carles@pina.cat>
234952010-09-18 Aleš Nesrsta <starous@volny.cz>
234962010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23497
23498 Add keyboard layouts support.
23499
23500 * Makefile.util.def (grub-mklayout): New file.
23501 (grub-kbdcomp): New script.
23502 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23503 Add keyboard_layouts.h.
23504 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23505 commands/boot.c on yeeloong.
23506 (keylayouts): New module.
23507 * grub-core/bus/usb/ohci.c
23508 * grub-core/bus/usb/uhci.c
23509 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23510 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23511 (attach_root_port): Likewise.
23512 (poll_nonroot_hub): Likewise.
23513 (grub_usb_poll_devices): Likewise.
23514 (detach_device): Close transfer.
23515 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23516 function.
23517 (grub_usb_bulk_setup_readwrite): Likewise.
23518 (grub_usb_bulk_finish_readwrite): Likewise.
23519 * grub-core/commands/keylayouts.c: New file.
23520 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23521 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23522 aliases.
23523 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23524 support scancode 2.
23525 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23526 * include/grub/keyboard_layouts.h: New file.
23527 * util/grub-mklayout.c: New file.
23528 * util/grub-kbdcomp.in: Likewise.
23529
a1d84a5e
VS
235302010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23531
23532 Unify memory types.
23533
23534 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23535 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23536 types.
23537 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23538 (grub_upper_mem): Likewise.
23539 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23540 * include/grub/memory.h (grub_memory_type_t): New enum.
23541 All users updated.
23542
9696382e
VS
235432010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23544
23545 * grub-core/Makefile.core.def (lsapm): New module.
23546 * grub-core/commands/i386/pc/lsapm.c: New file.
23547 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23548 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23549 Likewise.
23550 * include/grub/i386/pc/apm.h: New file.
23551 * include/multiboot.h (multiboot_apm_info): New struct.
23552
235532010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23554
23555 GRUB-legacy configuration file support.
23556
23557 * Makefile.util.def (grub-menulst2cfg): New util.
23558 * docs/man/grub-menulst2cfg.h2m: New file.
23559 * grub-core/Makefile.core.def (legacycfg): New module.
23560 * grub-core/commands/legacycfg.c: New file.
23561 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23562 (grub_normal_add_menu_entry): ... this.
23563 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23564 (grub_normal_set_password): ...this.
23565 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23566 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23567 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23568 * grub-core/lib/legacy_parse.c: New file.
23569 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23570 * include/grub/i386/pc/vesa_modes_table.h: New file.
23571 * include/grub/legacy_parse.h: Likewise.
23572 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23573 * util/grub-menulst2cfg.c: New file.
23574
bf8d1338
CW
235752010-09-17 Colin Watson <cjwatson@ubuntu.com>
23576
23577 * grub-core/kern/emu/hostdisk.c
23578 (convert_system_partition_to_system_disk): Initialise node.
23579
9c0bad2e
CW
235802010-09-17 Colin Watson <cjwatson@ubuntu.com>
23581
23582 * grub-core/kern/emu/hostdisk.c
23583 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23584 leak.
23585 Reported and based on patch by: Modestas Vainius.
23586
a939d135
CW
235872010-09-17 Colin Watson <cjwatson@ubuntu.com>
23588
23589 Fix DM-RAID probing with recent versions of device-mapper udev
23590 rules.
23591
23592 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23593 canonicalise device paths under /dev/mapper/.
23594 (convert_system_partition_to_system_disk): Compare the
23595 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23596 path, since device nodes under /dev/mapper/ are often symlinks.
23597
0f7ee3c9
YB
235982010-09-17 Yves Blusseau <blusseau@zetam.org>
23599
23600 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23601
10854d0d
YB
236022010-09-16 Yves Blusseau <blusseau@zetam.org>
23603
23604 * configure.ac: Avoid some annoying error messages if freetype-config
23605 program is not found.
23606
108538d8
CW
236072010-09-16 Colin Watson <cjwatson@ubuntu.com>
23608
23609 Support RAID on virtio devices, and others.
23610
23611 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23612 Rename to ...
23613 [__MINGW32__] (grub_find_device): ... this.
23614 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23615 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23616 reasonable default if dir is NULL.
23617 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23618 ...
23619 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23620 (grub_guess_root_device): Update callers.
23621 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23622
23623 * util/raid.c (grub_util_getdiskname): Remove.
23624 (grub_util_raid_getmembers): Use grub_find_device rather than
23625 grub_util_getdiskname.
23626
e5bfc130
CW
236272010-09-16 Colin Watson <cjwatson@ubuntu.com>
23628
23629 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23630 needing to be compiled with serial support.
23631 (ls): Indicate that multiple files are accepted.
23632 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23633 indicate that multiple files are accepted.
23634
be458ae2
CW
236352010-09-16 Colin Watson <cjwatson@ubuntu.com>
23636
23637 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23638 libgrub_a_init.c, and util/bash-completion.d/grub.
23639
cb731b5e
VS
236402010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23641
23642 * util/grub-setup.c (setup): Fix incorrect container semantics.
23643
35139e8a
VS
236442010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23645
23646 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23647 misusage.
23648 Reported by: J. Nick Terry
23649
e50fca4a
VS
236502010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23651
23652 Move embedding routines to partmap sources files.
23653
23654 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23655 [GRUB_UTIL]: New variable.
23656 (gpt_partition_map_iterate): Set part.parent.
23657 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23658 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23659 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23660 New function.
23661 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23662 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23663 (grub_partition_map) [GRUB_UTIL]: New field embed.
23664 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23665 (setup): Use ->embed.
23666
f00478b7
VS
236672010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23668
23669 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23670 function.
23671 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23672 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23673
2b94e3ff
YB
236742010-09-15 Yves Blusseau <blusseau@zetam.org>
23675
23676 Add function to get completions from usage.
23677
23678 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23679 completions from usage. Use LC_ALL=C to get options properly.
23680
2e04a006
VS
236812010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23682
23683 * grub-core/gnulib/basename-lgpl.c: Imported.
23684 * grub-core/gnulib/basename.c: Likewise.
23685 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23686 * grub-core/gnulib/dirname.c: Likewise.
23687 * grub-core/gnulib/dirname.h: Likewise.
23688 * grub-core/gnulib/stripslash.c: Likewise.
23689
5dcdf93a
VS
236902010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23691
23692 * grub-core/gnulib/error.c: Resynced.
23693 * grub-core/gnulib/getopt.c: Likewise.
23694 * grub-core/gnulib/getopt_int.h: Likewise.
23695 * grub-core/gnulib/regex.h: Likewise.
23696 * grub-core/gnulib/regex_internal.c: Likewise.
23697 * grub-core/gnulib/regex_internal.h: Likewise.
23698
014f47b7
SJ
236992010-09-15 Szymon Janc <szymon@janc.net.pl>
23700
23701 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23702 CRC calculations and validity checks.
23703 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23704 calculations.
23705
dd521a4a
SJ
237062010-09-15 Szymon Janc <szymon@janc.net.pl>
23707
23708 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23709
79c4eeb9
VS
237102010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23711
23712 Fix incorrect echo options handling.
23713 Reported by: Yves Blusseau.
23714
23715 * include/grub/command.h (grub_command_flags_t): New flags
23716 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23717 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23718 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23719
ed80f7d5
VS
237202010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23721
23722 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23723 users updated.
23724 (GRUB_COMMAND_FLAG_MENU): Likewise.
23725 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23726 (GRUB_COMMAND_FLAG_TITLE): Removed.
23727 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23728 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23729 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23730 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23731 (grub_command_flags_t): New enum. All users updated.
23732
5fe7620a
SG
237332010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23734
23735 Fix solaris compilation.
23736
23737 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23738 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23739 (grub-emu-list): Likewise.
23740
545b752f
VS
237412010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23742
23743 Remove deprecated root command.
23744
23745 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23746 updated.
23747
6c1a338c
VS
237482010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23749
23750 * util/i386/pc/grub-setup.c: Merge this ...
23751 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23752 * util/grub-setup.c: ... into this.
23753 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23754 New struct.
23755
237562010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23757
23758 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23759 possible.
23760
d2ea4551
VS
237612010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23762
23763 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23764 allocate p.
23765
3c3b5040
VS
237662010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23767
23768 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23769 explicit root argument to set to prevent UUID to be interpreted as
23770 argument to set.
23771
b71c3fae
VS
237722010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23773
23774 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23775
275433e6
VS
237762010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23777
23778 Don't export grub_gate_a20.
23779
23780 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23781 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23782 to ...
23783 (grub_gate_a20): ... this. All users updated.
23784 * include/grub/i386/pc/init.h: Removed. All users updated.
23785
a5dbb1f1
VS
237862010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23787
23788 Create euro.pf2 which supports most European languages.
23789
23790 * Makefile.am (grubdata_DATA): Add euro.pf2.
23791 (euro.pf2): New target.
23792 (CLEANFILES): Add euro.pf2.
23793
62a747cb
VS
237942010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23795
23796 * configure.ac: Disable emu-usb by default to prevent inadvertent
23797 device takeover.
23798
608e43b1
VS
237992010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23800
23801 Disable usbserial on grub-emu since our libusb code isn't good enough
23802 yet.
23803
23804 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23805 (usbserial_pl2303): Likewise.
23806 (usbserial_ftdi): Likewise.
23807
94564f81
VS
238082010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23809
23810 * include/grub/disk.h (grub_disk): Remove has_partitions.
23811 All users updated.
23812 * disk/loopback.c (grub_loopback): Remove has_partitions.
23813 All users updated.
23814 (options): Remove partitions. All users updated.
23815 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23816 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23817 actual partition table is found.
23818
3352800b
VS
238192010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23820
23821 Remove readability checks (too many false negatives).
23822
23823 * util/grub-install.in: Remove readability checks.
23824 * util/grub-mkconfig.in: Likewise.
23825 * util/grub.d/10_hurd.in: Likewise.
23826 * util/grub.d/10_kfreebsd.in: Likewise.
23827 * util/grub.d/10_linux.in: Likewise.
23828 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23829 way.
23830
2419f17a
VS
238312010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23832
23833 Enable acpi shutdown on all ACPI platforms.
23834
23835 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23836 on coreboo, multiboot and EFI.
23837 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23838 (grub_acpi_halt): Likewise.
23839 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23840 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23841 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23842 * grub-core/lib/i386/halt.c (grub_halt)
23843 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23844
0575c7c3
VS
238452010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23846
23847 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23848 context.
23849
54ac3cd1
VS
238502010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23851
23852 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23853 * grub-core/video/efi_uga.c: Likewise.
23854
b2a30ac5
VS
238552010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23856
23857 Filter devaliases and never open same device twice.
23858
23859 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23860 (last_ihandle): Likewise.
23861 (ofdisk_hash_ent): New member shortest.
23862 (ofdisk_hash_add): Add canonical path too.
23863 (scan): New function.
23864 (grub_ofdisk_iterate): Iterate over hashed entries.
23865 (compute_dev_path): Don't add :0.
23866 (grub_ofdisk_open): Don't really open the disk.
23867 (grub_ofdisk_close): Avoid closing unrelated disk.
23868 (grub_ofdisk_read): Implement reopen logic.
23869 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23870 New function.
23871 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23872 New proto.
23873
fb53b340
VS
238742010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23875
23876 Fix sparc64.
23877
23878 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23879 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23880 right address. Add sparc64_ieee1275_ldflags.
23881 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23882 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23883 to grub_host_to_target_addr
23884 (load_image): Likewise.
23885
f452b040
VS
238862010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23887
23888 * grub-core/normal/completion.c (complete_file): Handle device
23889 containing slash.
23890 Fix based on patch by Doug Nazar.
23891
9b5b2541
VS
238922010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23893
23894 grub-mknetdir script.
23895
23896 * Makefile.util.def (grub-mknetdir): New module.
23897 * tests/util/grub-shell.in: Support boot=net
23898 * util/grub-mknetdir.in: New file.
23899
9d2be652
VS
239002010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23901
23902 videoinfo on non-vbe.
23903
23904 * grub-core/Makefile.core.def (vbeinfo): Removed.
23905 (vbetest): Removed.
23906 (videoinfo): New module.
23907 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23908 * grub-core/commands/i386/pc/vbetest.c: Removed.
23909 * grub-core/commands/videoinfo.c: New file.
23910 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23911 specification.
23912 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23913 as vbetest.
23914 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23915 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23916 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23917 mode_number. New parameter mode. All users updated.
23918 (grub_video_gop_iterate): New function.
23919 (grub_video_efi_gop): New member iterate.
23920 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23921 (grub_vbe_set_video_mode): Remove setting useless fields.
23922 (vbe2videoinfo): New function.
23923 (grub_video_vbe_iterate): Likewise.
23924 (grub_video_vbe_setup): Use vbe2videoinfo.
23925 (grub_video_vbe_print_adapter_specific_info): New function.
23926 (grub_video_vbe_adapter): New fields iterate and
23927 print_adapter_specific_info.
23928 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23929 All users updated.
23930 (grub_video_mode_info): New field mode_number.
23931 (grub_video_adapter): New fields iterate and
23932 print_adapter_specific_info.
23933
179503f5
TG
239342010-09-13 Tristan Gingold <gingold@free.fr>
239352010-09-13 Robert Millan <rmh.grub@aybabtu.com>
239362010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23937
23938 * grub-core/commands/efi/lsefisystab.c: New file.
23939 * grub-core/commands/efi/lssal.c: Likewise.
23940 * grub-core/Makefile.core.def (lsacpi): New module.
23941 (lsefisystab): Likewise.
23942 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23943 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23944 (grub_efi_sal_system_table): New struct.
23945 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23946 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23947 (grub_efi_sal_system_table_platform_features): Likewise.
23948 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23949 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23950 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23951 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23952
cf9827de
VS
239532010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23954
23955 Support explicit user claim that a device is BIOS-visible.
23956
23957 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23958 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23959 * grub-core/kern/emu/hostdisk.c
23960 (convert_system_partition_to_system_disk): Support mdX.
23961 (find_system_device): New parameter add. All users updated.
23962 (grub_util_biosdisk_is_present): New function.
23963 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23964 proto.
23965
53f0eb1f
VS
239662010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23967
23968 Search hints support.
23969
23970 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23971 All users updated.
23972
b23ffd70
YB
239732010-09-13 Yves Blusseau <blusseau@zetam.org>
23974
23975 Bash completion script for util commands
23976
23977 * Makefile.am: Add util/bash-completion.d directory
23978 * configure.ac: Likewise.
23979 * util/bash-completion.d/Makefile.am: New file.
23980 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23981
d547dc28
VS
239822010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23983
23984 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23985 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23986 Reported by: Yves Blusseau.
23987
2fc8ccb9
VS
239882010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23989
23990 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23991 partition size and offset.
23992
d8a84076
VS
239932010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23994
23995 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23996
84fb3b3d
VS
239972010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23998
23999 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24000
768ec2e2
VS
240012010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24002
24003 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24004 (grub_xvasprintf): Likewise.
24005
4870900f
VS
240062010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24007
24008 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24009
faca6bec
VS
240102010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24011
24012 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24013 args ending with NULL.
24014
240152010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
24016
24017 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24018 pointer.
24019
3c70f225
SJ
240202010-09-11 Szymon Janc <szymon@janc.net.pl>
24021
24022 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24023
4df7996d
VS
240242010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24025
24026 Shutdown using ACPI.
24027
24028 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24029 * grub-core/commands/acpihalt.c: New file.
24030 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24031 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24032 (grub_acpi_halt): New proto.
24033 (GRUB_ACPI_SLP_EN): New const.
24034 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24035 (GRUB_ACPI_OPCODE_*): New enum.
24036 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24037
126b4c32
TG
240382010-09-11 Tristan Gingold <gingold@free.fr>
240392010-09-11 Robert Millan <rmh.grub@aybabtu.com>
240402010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24041
24042 * commands/lsacpi.c: New file.
24043 * grub-core/Makefile.core.def (lsacpi): New module.
24044 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24045 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24046 (grub_acpi_madt_entry_header): New struct.
24047 (grub_acpi_madt): Likewise.
24048 (grub_acpi_madt_entry_interrupt_override): Likewise.
24049 (grub_acpi_madt_entry_sapic): Likewise.
24050 (grub_acpi_madt_entry_lsapic): Likewise.
24051 (grub_acpi_madt_entry_platform_int_source): Likewise.
24052 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24053 (PRIuGRUB_UINT32_T): Likewise.
24054 (PRIxGRUB_UINT64_T): Likewise.
24055
1aa4fe88
VS
240562010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24057
24058 Implement loading palette on ieee1275_fb.
24059
24060 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24061 (have_setcolors): Likewise.
24062 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24063 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24064 (grub_video_ieee1275_set_palette): Implement.
24065
25761e13
VS
240662010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
240672010-09-11 Colin Watson <cjwatson@ubuntu.com>
24068
24069 * util/grub-install.in (grub_partition): New variable.
24070 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24071 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24072 Fixes a bug reported by Yves Blusseau.
24073
050abaea
VS
240742010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24075
24076 Fix emu on mipsel.
24077
24078 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24079 =grub_cpu_flush_cache on all mips and not only yeeloong.
24080 * configure.ac (COND_mips): New conditional.
24081 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24082 platforms.
24083 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24084 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24085 [GRUB_LINKER_HAVE_INIT]: New function.
24086 (grub_emu_post_init): Likewise.
24087 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24088 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24089 * include/grub/cache.h (_mips): Include mips/cache.h.
24090 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24091 LVM and RAID prototypes.
24092 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24093 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24094 function.
24095
5ed7d816
CW
240962010-09-10 Colin Watson <cjwatson@ubuntu.com>
24097
24098 * util/grub-install.in: Don't try to verify core.img until after
24099 running grub-mkimage to create it.
24100
90367e04
RM
241012010-09-10 Robert Millan <rmh@gnu.org>
24102
24103 * util/grub.d/10_hurd.in: Add misc readability checks.
24104 * util/grub.d/10_kfreebsd.in: Likewise.
24105 * util/grub.d/10_linux.in: Likewise.
24106
c452fa66
CW
241072010-09-10 Colin Watson <cjwatson@ubuntu.com>
24108
24109 * util/grub-install.in: ${imgext} won't be defined here until the
24110 install branch is merged. For the meantime, only verify core.img on
24111 i386-pc and sparc64-ieee1275 platforms.
24112
c38fe9f4
RM
241132010-09-10 Robert Millan <rmh@gnu.org>
24114
24115 Solaris support in grub_find_zpool_from_dir(). Thanks
24116 Seth Goldberg for referring to getextmntent() facility.
24117
24118 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24119 `sys/mkdev.h'.
24120 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24121 `<sys/mnttab.h>'.
24122 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24123 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24124 method for finding zpool name.
24125
905f7773
CW
241262010-09-10 Colin Watson <cjwatson@ubuntu.com>
24127
24128 grub-fstest needs the host and hostfs modules while other utilities
24129 actively require those modules to be absent, so grub-fstest needs
24130 its own initialisation and finalisation code.
24131
24132 * Makefile.am (grub_fstest.pp): New target.
24133 (grub_fstest_init.lst): Likewise.
24134 (grub_fstest_init.c): Likewise.
24135 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24136
fb90b546
RM
241372010-09-10 Robert Millan <rmh@gnu.org>
24138
24139 * configure.ac: Check for `struct statfs.f_fstypename' and
24140 `struct statfs.f_mntfromname'.
24141
24142 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24143 kFreeBSD-specific code.
24144
66d4bea5
RM
241452010-09-10 Robert Millan <rmh@gnu.org>
24146
24147 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24148 on ZFS. Now non-main filesystems are supported as / too.
24149
b6a690ee
CW
241502010-09-09 Colin Watson <cjwatson@ubuntu.com>
24151
24152 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24153 and grub-core/disk/host.c to ...
24154 (grub-fstest): ... here. Having the host disk implementation
24155 present confuses grub-probe and other utility programs.
24156
24157 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24158 when writing to a file, not when writing to stdout.
24159
8901b00c 241602010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24161
24162 * tests/partmap_test.in: New test for partitions.
24163 * Makefile.util.def: Rules for new test.
24164
7bf45fdd
RM
241652010-09-09 Robert Millan <rmh@gnu.org>
24166
24167 * util/grub-probe.c (probe): Fix a pair of unhandled error
24168 conditions.
24169
4dfbc574
RM
241702010-09-09 Robert Millan <rmh@gnu.org>
24171
24172 Basic Btrfs support (detection and UUID).
24173
24174 * grub-core/fs/btrfs.c: New file.
24175 * Makefile.util.def (library): Register btrfs.c.
24176 * grub-core/Makefile.core.def: Likewise.
24177
6b8e78ae
RM
241782010-09-08 Robert Millan <rmh@gnu.org>
24179
24180 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24181 with (optional) parameters to specify device and relative path.
24182 * util/grub-install.in: Use is_path_readable_by_grub() to
24183 verify readability of a few critical files.
24184 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24185 verify readability of grub.cfg.new.
24186
27f21a8b
VS
241872010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24188
24189 Split minix.mod into minix.mod and minix2.mod.
24190
24191 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24192 * grub-core/Makefile.core.def (minix2): New module.
24193 * grub-core/fs/minix.c: Use definitions instead of runtime version
24194 checking.
24195 * grub-core/fs/minix2.c: New file.
24196
c0e53ea5
YB
241972010-09-08 Yves Blusseau <blusseau@zetam.org>
24198
24199 Add new --boot-directory option to replace --root-directory
24200
24201 * util/grub-install.in: Add new --boot-directory option
24202 * util/grub-reboot.in: Likewise.
24203 * util/grub-set-default.in: Likewise.
24204
b9fe6ea2
YB
242052010-09-08 Yves Blusseau <blusseau@zetam.org>
24206
24207 * util/grub-mkconfig.in: Use new variable.
24208
d87aedff
YB
242092010-09-08 Yves Blusseau <blusseau@zetam.org>
24210
24211 * configure.ac: Define some useful variables.
24212
e55e8495
VS
242132010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24214
24215 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24216 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24217 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24218 Use terminfo and don't use cursor-on/cursor-off unless it's known
24219 to work.
24220 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24221 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24222
6fa6d675
CW
242232010-09-08 Colin Watson <cjwatson@ubuntu.com>
24224
24225 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24226 starts with "(,", fill the drive containing the loaded image in
24227 between those two characters, but expect that a full partition
24228 specification including partition map names will follow.
24229
92f2aef0
RM
242302010-09-08 Robert Millan <rmh@gnu.org>
24231
24232 * configure.ac: Remove `--enable-grub-fstest' option.
24233 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24234
24235 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24236 `grub-fstest' instead of `grub-probe' for readability verification.
24237 * util/grub-probe.c (probe): Remove readability verification kludge.
24238
99fd620d
RM
242392010-09-08 Robert Millan <rmh@gnu.org>
24240
24241 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24242 initializing `GRUB_FS'.
24243
058e30ac 242442010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24245
24246 Not command (!) support to GRUB script.
24247
24248 * tests/grub_script_not.in: New test.
24249 * Makefile.util.def: Rules for new test.
24250
24251 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24252 ! command as a special case.
24253 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24254
b61d05ed 242552010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24256
058e30ac 24257 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24258 grub_free.
b61d05ed 24259
4d69c786 242602010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24261
24262 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24263
aa3119c4 242642010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24265
24266 * docs/grub.texi (Shell-like scripting): Documentation for break,
24267 continue, shift and return commands.
24268
db0f7e3d
VS
242692010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24270
24271 Rename CD-ROM to cd on BIOS.
24272
24273 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24274 "cd".
24275 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24276
88b87c93
VS
242772010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24278
24279 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24280 * util/grub-probe.c (main): Likewise.
24281 * util/i386/pc/grub-setup.c (main): Likewise.
24282 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24283 Reported and debugged by: alexxy
24284
294f324d
VS
242852010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24286
24287 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24288 diagnostic info.
24289
d7ee3441
JS
242902010-09-05 Jo Shields <directhex@apebox.org>
24291
24292 * util/grub.d/30_os-prober.in: Add missing classes.
24293
d7e06c1f
VS
242942010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24295
24296 * docs/grub.texi (Theme file format): Document new position format.
24297
fc157e53
VS
242982010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24299
24300 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24301 a table. Use @code instead of @verbatim.
24302
506e9a1c
CB
243032010-09-05 Colin D Bennett <colin@gibibit.com>
24304
24305 Gfxmenu documentation.
24306
24307 * docs/grub.texi (Theme file format): New chapter.
24308
f0aff67c
SJ
243092010-09-05 Szymon Janc <szymon@janc.net.pl>
24310
24311 * grub-core/Makefile.core.def (xzio): New module.
24312 * grub-core/io/xzio.c: New file.
24313 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24314 * grub-core/lib/xzembed/xz_config.h: Likewise.
24315 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24316 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24317 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24318 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24319 * grub-core/lib/xzembed/xz_private.h: Likewise.
24320 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24321 * include/grub/file.h (grub_file_filter_id): New compression filter
24322 GRUB_FILE_FILTER_XZIO.
24323
82a85062
VS
243242010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24325
24326 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24327 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24328 size.
24329
3579415d
VS
243302010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24331
24332 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24333 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24334
5124ae6d
VS
243352010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24336
24337 Uncompressed checksum support.
24338
24339 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24340 (check_list): New parameter uncompress.
24341 (grub_cmd_hashsum): Handle --uncompress.
24342
9aadb3d1
VS
243432010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24344
24345 Reintroduce testload.
24346
24347 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24348 from here ...
24349 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24350 (GRUB_MOD_INIT): New function.
24351 (GRUB_MOD_FINI): Likewise.
24352 * grub-core/Makefile.core.def (testload): New module.
24353
a17792c3
SJ
243542010-09-05 Szymon Janc <szymon@janc.net.pl>
24355
24356 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24357 (uint8_t): New type.
24358 (uint16_t): Likewise.
24359 (uint32_t): Likewise.
24360 (uint64_t): Likewise.
24361
b81e40a3
SJ
243622010-09-05 Szymon Janc <szymon@janc.net.pl>
24363
24364 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24365
fc2ef117
VS
243662010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24367
24368 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24369 Made static.
24370 (grub_gzfile_open): Removed. All users updated.
24371 (GRUB_MOD_INIT): New function.
24372 (GRUB_MOD_FINI): Likewise.
24373 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24374 (grub_file_filters_enabled): Likewise.
24375 (grub_file_open): Handle filters.
24376 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24377 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24378 * include/grub/file.h (grub_file_filter_id_t): New type.
24379 (grub_file_filter_t): Likewise.
24380 (grub_file_filters_all): New extern variable.
24381 (grub_file_filters_enabled): Likewise.
24382 (grub_file_filter_register): New inline function.
24383 (grub_file_filter_unregister): Likewise.
24384 (grub_file_filter_disable): Likewise.
24385 (grub_file_filter_disable_compression): Likewise.
24386 * include/grub/gzio.h: Removed.
24387
35ee15e0
BC
243882010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24389
24390 Filename expansion support for wildcards in GRUB script.
24391
24392 * tests/grub_script_expansion.in: New test.
24393 * Makefile.util.def: Rule for new test.
24394
24395 * grub-core/commands/wildcard.c: New file, implements filename
24396 expansion support for GRUB script.
24397 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24398 * grub-core/script/argv.c: Cosmetic changes.
24399 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24400 Refactored to perform wildcard expansion on arguments.
24401 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24402 struct.
24403
24404 * tests/util/grub-shell.in: Fix quoting for read input.
24405
5f0c4aca
BC
244062010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24407
24408 Support for updating environment variables with matched substrings
24409 of regexp.
24410
24411 * tests/grub_cmd_regexp.in: New test.
24412 * Makefile.util.def: Rule for new test.
24413
24414 * grub-core/commands/regexp.c: New option -s to update environment
24415 variables with regexp matches.
24416
3759a35f
SJ
244172010-09-04 Szymon Janc <szymon@janc.net.pl>
24418
24419 * include/grub/file.h (grub_file): New member not_easly_seekable.
24420 (grub_file_seekable): New inline function.
24421 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24422 easily seekable.
24423 (grub_gzio_open): Set not_easly_seekable.
24424 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24425 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24426
ed8c6dec
BC
244272010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24428
24429 Support for options to appear multiple times on cmdline.
24430
24431 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24432 * grub-core/commands/extcmd.c: Support for repeatable option.
24433 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24434 repeatable option support.
24435
24436 Refactor menuentry into a regular command.
24437
24438 * grub-core/commands/menuentry.c: New file, menuentry command
24439 implementation.
24440 * grub-core/Makefile.core.def: Rule update for normal.mod.
24441 * grub-core/normal/main.c: Moved menuentry creation to
24442 grub-core/commands/menuentry.c.
24443 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24444 (grub_menu_execute_entry_real): Removed.
24445 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24446 function.
24447 (grub_script_execute_menuentry): Removed.
24448 * grub-core/script/parser.y (menuentry): Removed.
24449 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24450 * grub-core/script/yylex.l (menuentry): Removed.
24451 * include/grub/menu.h (grub_menu_init): New prototype.
24452 (grub_menu_fini): New prototype.
24453 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24454 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24455 (grub_script_execute_sourcecode): New prototype.
24456
dacd0cf0
BC
244572010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24458
24459 "return" command for GRUB script functions.
24460
24461 * tests/grub_script_return.in: New test.
24462 * Makefile.util.def: Rules for new test.
24463
24464 * grub-core/script/execute.c (grub_script_return): New function.
24465 * grub-core/script/main.c: Register/unregister return commaond.
24466 * include/grub/script_sh.h (grub_script_return): New prototype.
24467
52e72f9d
BC
244682010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24469
24470 "setparams" command to update positional parameters.
24471
24472 * tests/grub_script_setparams.in: New test.
24473 * Makefile.util.def: Rules for new test.
24474
24475 * grub-core/script/argv.c (grub_script_argv_make): New function.
24476 * grub-core/script/execute.c (replace_scope): New function.
24477 (grub_script_setparams): New function.
24478 * grub-core/script/lexer.c: Remove unused variables.
24479 * grub-core/script/main.c: Register/unregister setparams command.
24480 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24481 (grub_script_setparams): New prototype.
24482
25b60c91
BC
244832010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24484
24485 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24486 grub_free order.
24487
37e7bf68
BC
244882010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24489
24490 Support for passing block of commands as an argument to extcmds.
24491
24492 * Makefile.util.def: Rules for new test.
24493 * tests/grub_script_blockarg.in: New test.
24494 * grub-core/tests/test_blockarg.c: New file, block argument
24495 command used in the test.
24496
24497 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24498 (grub_register_extcmd_prio): New function prototype.
24499 (grub_extcmd_dispatcher): New function prototype.
24500 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24501 type.
24502 * include/grub/script_sh.h (struct grub_script): New members
24503 `children', `next_siblings' and `refcnt' for block arguments and
24504 reference counting.
24505 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24506 (grub_script_arg): New member `script' for block argument.
24507 (grub_script_argv): New member `script' for block argument.
24508 (grub_parser_param): New member `scripts' for block argument.
24509 (grub_script_mem_free): New extern function prototype.
24510 (grub_script_ref): New function prototype.
24511 (grub_script_unref): New function prototype.
24512
24513 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24514 extcmd form to support block arguments.
24515 * grub-core/script/argv.c: Block arguments support.
24516 * grub-core/script/execute.c: Likewise.
24517 * grub-core/script/lexer.c: Likewise.
24518 * grub-core/script/main.c: Likewise.
24519 * grub-core/script/script.c: Likewise.
24520 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24521 non-terminals.
24522
24523 * grub-core/commands/acpi.c: Update extcmd implementations with
24524 grub_extcmd_context_t.
24525 * grub-core/commands/cat.c: Likewise.
24526 * grub-core/commands/echo.c: Likewise.
24527 * grub-core/commands/extcmd.c: Likewise.
24528 * grub-core/commands/hashsum.c: Likewise.
24529 * grub-core/commands/hdparm.c: Likewise.
24530 * grub-core/commands/help.c: Likewise.
24531 * grub-core/commands/hexdump.c: Likewise.
24532 * grub-core/commands/i386/cpuid.c: Likewise.
24533 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24534 * grub-core/commands/i386/pc/halt.c: Likewise.
24535 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24536 * grub-core/commands/iorw.c: Likewise.
24537 * grub-core/commands/keystatus.c: Likewise.
24538 * grub-core/commands/loadenv.c: Likewise.
24539 * grub-core/commands/ls.c: Likewise.
24540 * grub-core/commands/lspci.c: Likewise.
24541 * grub-core/commands/memrw.c: Likewise.
24542 * grub-core/commands/probe.c: Likewise.
24543 * grub-core/commands/search_wrap.c: Likewise.
24544 * grub-core/commands/setpci.c: Likewise.
24545 * grub-core/commands/sleep.c: Likewise.
24546 * grub-core/disk/loopback.c: Likewise.
24547 * grub-core/hello/hello.c: Likewise.
24548 * grub-core/loader/i386/bsd.c: Likewise.
24549 * grub-core/loader/xnu.c: Likewise.
24550 * grub-core/term/gfxterm.c: Likewise.
24551 * grub-core/term/serial.c: Likewise.
24552 * grub-core/tests/lib/functional_test.c: Likewise.
24553
888d1500
BC
245542010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24555
24556 Multi-line quoted strings support.
24557
24558 * grub-core/script/lexer.c (append_newline): Removed.
24559 (grub_script_lexer_yywrap): Refactored.
24560 (grub_script_lexer_init): Refactored.
24561 * grub-core/script/yylex.l (yywrap): New function.
24562 (grub_lexer_resplit): New function.
24563 (grub_lexer_unput): New function.
24564 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24565 and resplit.
24566 * tests/grub_script_echo1.in: Added few more testcases.
24567
dda060dd
VS
245682010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24569
24570 * grub-core/kern/misc.c: Don't add abort alias in utils.
24571 Reported by: echoline.
24572
6556eba9
BC
245732010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24574
24575 Add missing files into "make dist" tarball for other platforms.
24576
24577 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24578 * conf/Makefile.common (dist_noinst_DATA): New variable.
24579 * conf/Makefile.extra-dist: Added missing make dist files.
24580 * grub-core/Makefile.core.def: Likewise.
24581
c8e7bf5f
VS
245822010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24583
24584 Compress grub_prefix.
24585
24586 * grub-core/boot/i386/pc/lnxboot.S: Use
24587 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24588 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24589 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24590 GRUB_MACHINE_PREFIX_END. All users updated.
24591 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24592 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24593 + 0x40.
24594 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24595 * util/grub-mkimage.c (image_target_desc): Change data_end to
24596 prefix_end. All users updated.
24597
a7c00cdb
VS
245982010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24599
24600 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24601 value.
24602 (grub_openbsd_boot): Likewise.
24603 (grub_netbsd_boot): Likewise.
24604 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24605 (grub_xnu_boot): Likewise.
24606
9f915872
VS
246072010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24608
24609 * configure.ac: Clean LIBS variable after tests.
24610
efa1bee7
CW
246112010-09-02 Colin Watson <cjwatson@ubuntu.com>
24612
24613 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24614
61d720e5
VS
246152010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24616
24617 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24618 echo if libdevmapper will be used.
24619
ef8e0ec8
IT
246202010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24621
24622 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24623 constant for the same file.
24624
03e261d8
VS
246252010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24626
24627 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24628
c2a4eba6
CW
246292010-09-02 Colin Watson <cjwatson@ubuntu.com>
24630
24631 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24632 grub-core/*.pp.
24633
9056cbf3
CW
246342010-09-02 Colin Watson <cjwatson@ubuntu.com>
24635
24636 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24637 required by the boot protocol.
24638
24639 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24640 ebp and edi members.
24641 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24642 state.ebp and state.edi.
24643 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24644 %ebp and %edi according to grub_relocator32_ebp and
24645 grub_relocator32_edi respectively.
24646 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24647 and state.edi.
24648
529cc99a
VS
246492010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24650
24651 Add i386-pc-pxe image target.
24652
24653 * util/grub-mkimage.c (image_target_desc): New enum value
24654 IMAGE_I386_PC_PXE.
24655 (image_targets): New target i386-pc-pxe.
24656 (generate_image): Handle i386-pc-pxe image.
24657
9a093920
VS
246582010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24659
24660 Fix grub_pxe_scan.
24661
24662 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24663 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24664 All users updated.
24665 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24666 (grub_pxe_pxenv): Correct type.
24667
f9cefc4e
CW
246682010-09-01 Colin Watson <cjwatson@ubuntu.com>
24669
24670 * NEWS: Document most of the important changes since 1.98.
24671
4066f57f
CW
246722010-09-01 Colin Watson <cjwatson@ubuntu.com>
24673
24674 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24675 generated manual page) a little.
24676
da2891f9
CW
246772010-09-01 Colin Watson <cjwatson@ubuntu.com>
24678
24679 * docs/grub.texi: Add myself as an author.
24680
ad717fae
VS
246812010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24682
24683 * Makefile.util.def (libgrub.a): Add missing sunpc.
24684 Reported by: Seth Goldberg.
24685
eefe8abd
VS
246862010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24687
24688 Interrupt wrapping and code simplifications.
24689
9494ef9a
VS
24690 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24691 x86_noieee1275 which are functionaly equivalent in this case.
24692 (grub-install): Make source on each platform explicit. Enable on
24693 all noemu.
24694 * gentpl.py (x86_efi_pc): Removed group.
24695 (x86_noefi): Likewise.
24696 (i386_noefi): Likewise.
24697 (x86_noieee1275): Likewise.
24698 (i386_noieee1275): Likewise.
24699 (i386_noefi_noieee1275): Likewise.
24700 (i386_pc_qemu_coreboot): Likewise.
24701 (i386_coreboot_multiboot): Likewise.
24702 (i386_pc_coreboot_multiboot_qemu): Likewise.
24703 (x86_noefi_mips): Likewise.
24704 (noieee1275): Likewise.
24705 (ieee1275_mips): Likewise.
24706 (noemu_noieee1275): Likewise.
24707 (cmos): New group.
24708 (usb): Likewise.
24709 (videoinkernel): Likewise.
24710 (videomodules): Likewise.
eefe8abd 24711 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
24712 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24713 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24714 include/grub/loader.h, include/grub/msdos_partition.h,
24715 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24716 include/grub/machine/console.h, include/grub/machine/vga.h,
24717 include/grub/machine/vbe.h, include/grub/machine/init.h,
24718 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24719 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 24720 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
24721 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24722 * grub-core/Makefile.core.def (kernel): Explicit the source for
24723 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24724 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24725 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24726 Use videoinkernel tag.
24727 (usb): Enable on all usb.
24728 (usbserial_common): Likewise.
24729 (usbserial_pl2303): Likewise.
24730 (usbserial_ftdi): Likewise.
24731 (uhci): Enable on all x86.
24732 (ohci): Enable on all pci.
24733 (cmostest): Enable on all CMOS.
24734 (acpi): Include commands/acpi.c on all platforms.
24735 (halt): Add relevant lib/*/halt.c.
24736 (hdparm): Enable on all pci.
24737 (lspci): Likewise.
24738 (usbtest): Enable on all usb.
24739 (ata): Enable on all pci.
24740 (ata_pthru): Likewise.
24741 (usbms): Enable on all usb.
24742 (usb_keyboard): Likewise.
24743 (font): Use tag videomodules.
24744 (bufio): Likewise.
24745 (datetime): Use tag cmos. Enable on all noemu.
24746 (mmap): Use tags common and x86.
24747 (gfxterm): Use tag videomodules.
24748 (bitmap): Likewise.
24749 (bitmap_scale): Likewise.
24750 (video_fb): Likewise.
24751 (video): Likewise.
24752 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24753 adjust padding accordingly. All users updated.
24754 (grub_ohci_transaction): Fix bad format specification.
24755 (GRUB_MOD_INIT): Add asserts for struct size.
24756 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24757 (grub_alloc_td): Likewise.
24758 (grub_free_queue): Likewise.
24759 (grub_uhci_transfer): Likewise.
24760 (grub_uhci_transaction): Fix bad format specification.
24761 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24762 (grub_usb_bulk_readwrite): Likewise.
24763 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24764 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24765 Made static.
24766 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24767 Made static.
24768 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24769 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24770 Transformed into C.
24771 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24772 Moved from here ...
24773 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24774 ... here. Transformed into C. Made static.
24775 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24776 Moved from here ...
24777 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24778 ... here. Transformed into C. Made static.
24779 * grub-core/kern/i386/pc/startup.S
24780 (grub_biosdisk_check_int13_extensions): Moved from here ...
24781 * grub-core/disk/i386/pc/biosdisk.c
24782 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24783 Made static.
24784 * grub-core/kern/i386/pc/startup.S
24785 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24786 * grub-core/disk/i386/pc/biosdisk.c
24787 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24788 Transformed into C. Made static.
24789 * grub-core/kern/i386/pc/startup.S
24790 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24791 * grub-core/disk/i386/pc/biosdisk.c
24792 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24793 Transformed into C. Made static.
24794 * grub-core/kern/i386/pc/startup.S
24795 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24796 * grub-core/disk/i386/pc/biosdisk.c
24797 (grub_biosdisk_get_diskinfo_standard): ... here.
24798 Transformed into C. Made static.
24799 * grub-core/kern/i386/pc/startup.S
24800 (grub_biosdisk_get_num_floppies): Moved from here ...
24801 * grub-core/disk/i386/pc/biosdisk.c
24802 (grub_biosdisk_get_num_floppies): ... here.
24803 Transformed into C. Made static.
24804 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24805 New function.
24806 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24807 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24808 Transformed into C. Made static.
24809 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24810 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24811 Transformed into C. Made static.
24812 * grub-core/kern/i386/ieee1275/init.c: Removed.
24813 * grub-core/kern/i386/misc.S: Likewise.
24814 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24815 Splitted from here ...
24816 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24817 Transformed into C. Made static. All users updated.
24818 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24819 Transformed into C. Made static. All users updated.
24820 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24821 Moved from here...
24822 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24823 Transformed into C. Made static. All users updated.
24824 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24825 Moved from here...
24826 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24827 Transformed into C. Made static. All users updated.
24828 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24829 Removed (replaced by C version).
24830 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24831 Moved from here...
24832 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24833 Transformed into C. Made static.
24834 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24835 Moved from here...
24836 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24837 ... here. Transformed into C.
24838 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24839 Moved from here...
24840 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24841 ... here. Transformed into C.
24842 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24843 Moved from here...
24844 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24845 ... here. Transformed into C. Made static.
24846 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24847 Moved from here...
24848 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24849 ... here. Transformed into C.
21ed554b
VS
24850 * grub-core/kern/i386/pc/startup.S
24851 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24852 * grub-core/video/i386/pc/vbe.c
24853 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
24854 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24855 Moved from here...
24856 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24857 ... here. Transformed into C.
24858 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24859 Moved from here...
24860 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24861 ... here. Transformed into C.
24862 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24863 Moved from here...
24864 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24865 ... here. Transformed into C.
24866 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24867 Moved from here...
24868 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24869 ... here. Transformed into C.
24870 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24871 Moved from here...
24872 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24873 ... here. Transformed into C. Made static.
24874 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24875 Moved from here...
24876 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24877 ... here. Transformed into C. Made static.
24878 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24879 Moved from here...
24880 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24881 ... here. Transformed into C. Made static.
24882 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24883 pxe_rm_entry as third argument.
24884 (grub_bios_interrupt): New function.
24885 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24886 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24887 of calling grub_stop.
24888 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24889 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24890 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24891 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24892 * grub-core/lib/i386/halt.c: Moved from here ...
24893 * grub-core/lib/i386/halt.c: ... here.
24894 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24895 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24896 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24897 grub_stop_floppy.
24898 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24899 * include/grub/i386/coreboot/init.h: Removed.
24900 * include/grub/i386/multiboot/init.h: Likewise.
24901 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24902 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24903 * include/grub/i386/pc/int.h: New file.
24904 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24905 (grub_pxe_scan): Removed.
24906 (grub_pxe_call): Update prototype.
24907 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24908 prototypes.
24909 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24910 * include/grub/i386/qemu/init.h: Removed.
24911 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24912 noreturn.
24913 (grub_halt): Likewise.
24914 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24915 (grub_reboot): Likewise.
24916 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24917 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
24918 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24919
215dd471
RM
249202010-08-30 Robert Millan <rmh@gnu.org>
24921
24922 * NEWS: Document addition of ZFS support in `grub-install' and
24923 `grub-mkconfig'.
24924
ebd65b82
BC
249252010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24926
24927 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24928 dprintf output.
24929
11721d19
VS
249302010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24931
24932 Remove leftover embedding of font objects.
24933
24934 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24935 * util/grub-install.in (font): Removed.
24936 * util/grub-mkimage.c (generate_image): Remove font support. All users
24937 updated.
24938
37837d4e
VS
249392010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24940
24941 Remove leftover embedding of font objects.
24942
24943 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24944 * util/grub-install.in (font): Removed.
24945 * util/grub-mkimage.c (generate_image): Remove font support. All users
24946 updated.
24947
b4c1aae0
VS
249482010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24949
24950 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 24951 Reported by: Ian Turner
b4c1aae0 24952
8920a08d
VS
249532010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24954
24955 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24956 timeout to avoid indefinite boot stalling.
24957
f21db033
VS
249582010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24959
24960 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24961 (grub_env_write_color_highlight): Likewise.
24962
9a9de209
VS
249632010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24964
24965 * grub-core/normal/term.c (print_more): Return to normal and not
24966 to standard state after printing "---MORE---".
24967
3dca01d7
VS
249682010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24969
24970 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24971 Mask out the bit 0x80 since it has other meaning that specifiing color.
24972
0b986c40
VS
249732010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24974
24975 New relocator. Allows for more kernel support and more straightforward
24976 loader writing.
24977
24978 * Makefile.am (BOOTTARGET): New variable.
24979 (QEMU32): Likewise.
24980 (linux.init.x86_64): New target.
24981 (linux.init.i386): Likewise.
24982 (multiboot.elf): Likewise.
24983 (kfreebsd.elf): Likewise.
24984 (kfreebsd.aout): Likewise.
24985 (pc-chainloader.elf): Likewise.
24986 (pc-chainloader.bin): Likewise.
24987 (ntldr.elf): Likewise.
24988 (ntldr.bin): Likewise.
24989 (multiboot2.elf): Likewise.
24990 (kfreebsd.init.x86_64): Likewise.
24991 (kfreebsd.init.i386): Likewise.
24992 (knetbsd.init.i386): Likewise.
24993 (kopenbsd.init.i386): Likewise.
24994 (knetbsd.init.x86_64): Likewise.
24995 (kopenbsd.init.x86_64): Likewise.
24996 (linux-initramfs.i386): Likewise.
24997 (linux-initramfs.x86_64): Likewise.
24998 (kfreebsd-mfsroot.i386.img): Likewise.
24999 (knetbsd.image.i386): Likewise.
25000 (kopenbsd.image.i386): Likewise.
25001 (kopenbsd.image.x86_64): Likewise.
25002 (knetbsd.miniroot-image.i386.img): Likewise.
25003 (kfreebsd-mfsroot.x86_64.img): Likewise.
25004 (knetbsd.image.x86_64): Likewise.
25005 (knetbsd.miniroot-image.x86_64.img): Likewise.
25006 (kfreebsd-mfsroot.i386.gz): Likewise.
25007 (bootcheck-kfreebsd-i386): Likewise.
25008 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25009 (bootcheck-kfreebsd-x86_64): Likewise.
25010 (knetbsd.miniroot-image.i386.gz): Likewise.
25011 (bootcheck-knetbsd-i386): Likewise.
25012 (bootcheck-kopenbsd-i386): Likewise.
25013 (bootcheck-kopenbsd-x86_64): Likewise.
25014 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25015 (bootcheck-knetbsd-x86_64): Likewise.
25016 (bootcheck-linux-i386): Likewise.
25017 (bootcheck-linux-x86_64): Likewise.
25018 (bootcheck-linux16-i386): Likewise.
25019 (bootcheck-linux16-x86_64): Likewise.
25020 (bootcheck-multiboot): Likewise.
25021 (bootcheck-multiboot2): Likewise.
25022 (bootcheck-kfreebsd-aout): Likewise.
25023 (bootcheck-pc-chainloader): Likewise.
25024 (bootcheck-ntldr): Likewise.
25025 (CLEANFILES): Add new targets.
25026 (BOOTCHECKS): New variable.
25027 (.PHONY): Add bootchecks.
25028 (SUCCESSFUL_BOOT_STRING): New variable.
25029 (BOOTCHECK_TIMEOUT): Likewise.
25030 (bootcheck): New target
25031 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25032 * configure.ac: Correct efiemu excuse.
25033 * docs/grub.texi (Supported kernels): New chapter.
25034 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25035 include/grub/mm_private.h. Simplify inclusion of
25036 include/grub/boot.h, include/grub/loader.h
25037 and include/grub/msdos_partition.h
25038 (KERNEL_HEADER_FILES) [i386_coreboot]:
25039 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25040 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25041 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25042 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25043 include/grub/machine/loader.h.
25044 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25045 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25046 extra_dist.
25047 (pci.mod): Enable on i386-multiboot.
25048 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25049 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25050 i386-qemu.
25051 (relocator.mod): Rewritten.
25052 (aout.mod): Enable on all x86.
25053 (bsd.mod): Likewise.
25054 (ntldr.mod): New module.
25055 (linux.mod): Use loader/i386/linux.c on all x86.
25056 (xnu.mod): Enable on all x86.
25057 (vga_text.mod): disable on EFI and QEMU.
25058 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25059 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25060 * grub-core/efiemu/loadcore.c: Likewise.
25061 * grub-core/efiemu/main.c: Likewise.
25062 (grub_efiemu_exit_boot_services): Removed.
25063 (grub_efiemu_finish_boot_services): Likewise.
25064 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25065 function.
25066 * grub-core/efiemu/i386/nocfgtables.c: New file.
25067 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25068 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25069 (grub_efi_finish_boot_services): Moved from here ...
25070 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25071 Fille finish memory map and related data.
25072 (finish_mmap_buf): New variable.
25073 (grub_efi_uintn_t finish_mmap_size): Likewise.
25074 (grub_efi_uintn_t finish_key): Likewise.
25075 (grub_efi_uintn_t finish_desc_size): Likewise.
25076 (grub_efi_uint32_t finish_desc_version): Likewise.
25077 (grub_efi_is_finished): Likewise.
25078 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25079 finished.
25080 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25081 (grub_elf64_phdr_iterate): Likewise.
25082 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25083 (grub_os_area_size): Likewise.
25084 (grub_machine_init): Don't reserve os area.
25085 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25086 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25087 * grub-core/kern/i386/loader.S: Removed.
25088 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25089 (grub_os_area_size): Likewise.
25090 (grub_machine_init): Don't reserve os area.
25091 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25092 Don't call grub_dl_unload_all.
25093 Don't include loader.S.
25094 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25095 Declare the memory after _end as available.
25096 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 25097 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 25098 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
25099 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25100 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25101 * include/grub/mm_private.h (grub_mm_header): ... here.
25102 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25103 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
25104 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25105 (grub_mm_region): ..here. Removed addr. Added pre_size.
25106 All users updated.
25107 * grub-core/kern/mm.c (base): Renamed to ...
25108 (grub_mm_base): ... this. Made global.
25109 (grub_real_malloc): Alloc from end of region.
25110 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25111 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25112 * grub-core/kern/powerpc/cache_flush.S: ... here.
25113 * grub-core/lib/efi/relocator.c: New file.
25114 * grub-core/lib/i386/relocator.c: Rewritten.
25115 * grub-core/lib/i386/relocator16.S: New file.
25116 * grub-core/lib/i386/relocator32.S: Likewise.
25117 * grub-core/lib/i386/relocator64.S: Likewise.
25118 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25119 * grub-core/lib/i386/relocator_common.S: New file.
25120 * grub-core/lib/ieee1275/relocator.c: Likewise.
25121 * grub-core/lib/mips/relocator.c: Rewritten.
25122 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25123 stylistic adjustments.
25124 * grub-core/lib/powerpc/relocator.c: New file.
25125 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25126 * grub-core/lib/relocator.c: Rewritten.
25127 * grub-core/lib/x86_64/relocator_asm.S: New file.
25128 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25129 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25130 (bsd_tag): New struct.
25131 (tags): New variable.
25132 (tags_last): Likewise.
25133 (netbsd_module): New struct.
25134 (netbsd_mods): New variable.
25135 (netbsd_mods_last): Likewise.
25136 (openbsd_opts): New parameter "serial".
25137 (OPENBSD_SERIAL_ARG): New definition.
25138 (netbsd_opts): New parameter "serial".
25139 (NETBSD_SERIAL_ARG): New definition.
25140 (grub_freebsd_add_meta): Reorganised into ...
25141 (grub_bsd_add_meta): ...this. All users updated.
25142 (grub_freebsd_add_mmap): Reorganised into ...
25143 (generate_e820_mmap): ...this...
25144 (grub_bsd_add_mmap): ...and this. All users updated.
25145 (grub_freebsd_list_modules): Use tags.
25146 (grub_netbsd_add_meta_module): New function.
25147 (grub_netbsd_list_modules): Likewise.
25148 (grub_freebsd_boot): Use relocator and finish EFI.
25149 (grub_openbsd_boot): Likewise.
25150 (grub_netbsd_setup_video): New function.
25151 (grub_netbsd_add_modules): Likewise.
25152 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25153 and finish EFI.
25154 (grub_bsd_unload): Unload tags.
25155 (grub_bsd_load_aout): Use relocator.
25156 (grub_bsd_elf32_size_hook): New function.
25157 (grub_bsd_elf32_hook): Use relocator.
25158 (grub_bsd_elf64_size_hook): New function.
25159 (grub_bsd_elf64_hook): Use relocator.
25160 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25161 (grub_bsd_load): Zero-out openbsd_ramdisk.
25162 (grub_bsd_load): Use relocator.
25163 (grub_cmd_openbsd): Support serial.
25164 (grub_cmd_netbsd): Support modules.
25165 (grub_cmd_freebsd_module): Use relocator.
25166 (grub_netbsd_module_load): New function.
25167 (grub_cmd_netbsd_module): Likewise.
25168 (grub_cmd_openbsd_ramdisk): Likewise.
25169 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25170 kopenbsd_ramdisk.
25171 (GRUB_MOD_FINI): Unregister new commands.
25172 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25173 (grub_freebsd_load_elfmodule_obj): Use relocator.
25174 (grub_freebsd_load_elfmodule): Likewise.
25175 (grub_freebsd_load_elf_meta): Likewise.
25176 (grub_netbsd_load_elf_meta): New function.
25177 (grub_openbsd_find_ramdisk): Likewise.
25178 * grub-core/loader/i386/bsd_helper.S: Removed.
25179 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25180 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25181 * grub-core/loader/i386/efi/linux.c: Likewise.
25182 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25183 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25184 (DEFAULT_VIDEO_MODE): Likewise.
25185 (real_mode_target): New variable.
25186 (prot_mode_target): Likewise.
25187 (initrd_mem_target): Likewise.
25188 (relocator): Likewise.
25189 (efi_mmap_buf): Likewise.
25190 (efi_mmap_size): Likewise.
25191 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25192 (free_pages): Use relocator.
25193 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25194 (grub_linux_setup_video): Return error.
25195 (grub_linux_trampoline_start): Removed.
25196 (grub_linux_trampoline_end): Likewise.
25197 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25198 andd video parameters depending on firmware.
25199 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25200 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25201 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25202 (grub_cmd_initrd): Use relocator.
25203 * grub-core/loader/i386/linux_trampoline.S: Removed.
25204 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25205 (elf_sec_entsize): Likewise.
25206 (elf_sec_shstrndx): Likewise.
25207 (elf_sections): Likewise.
25208 (grub_multiboot_load): Use relocator.
25209 (grub_multiboot_get_mbi_size): Account for sections.
25210 (grub_multiboot_make_mbi): Use relocator and support sections.
25211 (grub_multiboot_add_elfsyms): New function.
25212 (grub_multiboot_free_mbi): Free sections.
25213 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25214 (grub_linux_real_target): Likewise.
25215 (grub_linux_real_chunk): Likewise.
25216 (grub_linux16_prot_size): Likewise.
25217 (grub_linux16_boot): Use relocator.
25218 (grub_linux_unload): Unload relocator.
25219 (grub_cmd_linux): Use relocator.
25220 (grub_cmd_initrd): Likewise.
25221 * grub-core/loader/i386/pc/ntldr.c: New file.
25222 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25223 Don't try to guess CPU frequency.
25224 (grub_xnu_set_video): Stretch bitmap.
25225 (grub_xnu_boot): Use relocator.
25226 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25227 (grub_linux_unload): Free relocator.
25228 (grub_linux_load32): Use relocator.
25229 (grub_linux_load64): Likewise.
25230 (grub_cmd_initrd): Likewise.
25231 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25232 (grub_multiboot_unload): Unload relocator.
25233 (grub_cmd_multiboot): Use relocator.
25234 (grub_cmd_module): Likewise.
25235 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25236 Use relocator and support sections.
25237 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25238 (elf_sec_entsize): Likewise.
25239 (elf_sec_shstrndx): Likewise.
25240 (elf_sections): Likewise.
25241 (grub_multiboot_load): Use relocator.
25242 (grub_multiboot_get_mbi_size): Account for sections.
25243 (grub_multiboot_make_mbi): Use relocator and support sections.
25244 (grub_multiboot_add_elfsyms): New function.
25245 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25246 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25247 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25248 Prototype changed. All users updated.
25249 (grub_xnu_align_heap): Simplified.
25250 (grub_xnu_writetree_toheap): Likewise.
25251 (grub_xnu_unload): Unload relocator.
25252 (grub_cmd_xnu_kernel): Use relocator.
25253 (grub_cmd_xnu_kernel64): Likewise.
25254 (grub_xnu_register_memory): Simplified.
25255 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
25256 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25257 EFI is finished.
25258 (grub_console_checkkey): Likewise.
25259 (grub_console_getkey): Likewise.
25260 (grub_console_getwh): Likewise.
25261 (grub_console_getxy): Likewise.
25262 (grub_console_gotoxy): Likewise.
25263 (grub_console_cls): Likewise.
25264 (grub_console_setcolorstate): Likewise.
25265 (grub_console_setcursor): Likewise.
25266 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25267 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25268 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25269 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25270 * grub-core/tests/boot/kernel-8086.S: Likewise.
25271 * grub-core/tests/boot/kernel-i386.S: Likewise.
25272 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25273 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25274 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25275 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25276 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25277 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25278 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25279 * grub-core/tests/boot/linux.cfg: Likewise.
25280 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25281 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25282 * grub-core/tests/boot/linux16.cfg: Likewise.
25283 * grub-core/tests/boot/multiboot.cfg: Likewise.
25284 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25285 * grub-core/tests/boot/ntldr.cfg: Likewise.
25286 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25287 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25288 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25289 New definition.
25290 * include/grub/dl.h (grub_dl_unload_all): Removed.
25291 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25292 (grub_efi_finish_boot_services): Change prototype.
25293 (grub_efi_is_finished): New variable.
25294 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25295 Changed prototype.
25296 (grub_efiemu_finish_boot_services): Removed.
25297 (grub_machine_efiemu_init_tables): New prototype.
25298 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25299 (grub_elf64_phdr_iterate): Likewise.
25300 * include/grub/i386/bsd.h: Include relocator.h.
25301 (freebsd_tag_header): New struct.
25302 (grub_openbsd_bios_mmap): Removed.
25303 (grub_unix_real_boot): Removed.
25304 (grub_freebsd_load_elfmodule32): Changed prototype.
25305 (grub_freebsd_load_elfmodule_obj64): Likewise.
25306 (grub_freebsd_load_elf_meta32): Likewise.
25307 (grub_freebsd_load_elf_meta64): Likewise.
25308 (grub_freebsd_add_meta): Removed.
25309 (grub_netbsd_load_elf_meta32): New prototype.
25310 (grub_netbsd_load_elf_meta64): Likewise.
25311 (grub_bsd_add_meta): Likewise.
25312 (grub_openbsd_ramdisk_descriptor): New struct.
25313 (grub_openbsd_find_ramdisk32): New prototype.
25314 (grub_openbsd_find_ramdisk64): Likewise.
25315 * include/grub/i386/coreboot/loader.h: Removed.
25316 * include/grub/i386/efi/loader.h: Likewise.
25317 * include/grub/i386/ieee1275/loader.h: Likewise.
25318 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25319 to grub_uint32_t.
25320 * include/grub/i386/loader.h: Removed.
25321 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25322 value.
25323 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25324 (grub_phys_addr_t): New type.
25325 (grub_vtop): New inline function.
25326 (grub_map_memory): Likewise.
25327 (grub_unmap_memory): Likewise.
25328 * include/grub/i386/multiboot/loader.h: Removed.
25329 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25330 (NETBSD_BTINFO_CONSOLE): New definition.
25331 (NETBSD_BTINFO_SYMTAB): Likewise.
25332 (NETBSD_BTINFO_MODULES): Likewise.
25333 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25334 (grub_netbsd_bootinfo): New struct.
25335 (grub_netbsd_btinfo_common): Use explicit bitsize.
25336 (grub_netbsd_btinfo_mmap_entry): Removed.
25337 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25338 (grub_netbsd_btinfo_bootdisk): New struct.
25339 (grub_netbsd_btinfo_symtab): Likewise.
25340 (grub_netbsd_btinfo_serial): Likewise.
25341 (grub_netbsd_btinfo_modules): Likewise.
25342 (grub_netbsd_btinfo_framebuf): Likewise.
25343 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25344 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25345 Likewise.
25346 (grub_openbsd_bootargs): Use explicit bitsize.
25347 (grub_openbsd_bootarg_console): New struct.
25348 (GRUB_OPENBSD_COM_MAJOR): New definition.
25349 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25350 * include/grub/i386/pc/efiemu.h: Removed.
25351 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25352 * include/grub/i386/qemu/loader.h: Removed.
25353 * include/grub/i386/relocator.h: Rewritten.
25354 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25355 * include/grub/mips/memory.h: New file.
25356 * include/grub/mips/multiboot.h: Rewritten.
25357 * include/grub/mips/relocator.h: Rewritten.
25358 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25359 (grub_vtop): New function.
25360 (grub_map_memory): Likewise.
25361 (grub_unmap_memory): Likewise.
25362 * include/grub/misc.h (ALIGN_DOWN): New definition.
25363 * include/grub/mm.h (grub_mm_check_real): New proto.
25364 (GRUB_MM_CHECK): New definition.
25365 * include/grub/mm_private.h: New file.
25366 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25367 (grub_multiboot_get_mbi_size): Removed.
25368 (grub_multiboot_make_mbi): Change prottype.
25369 (grub_multiboot_set_accepts_video): New proto.
25370 (grub_multiboot_add_elfsyms): Likewise.
25371 (grub_multiboot_payload_eip): New variable.
25372 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25373 New prototype.
25374 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25375 New definition.
25376 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25377 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25378 * include/grub/powerpc/ieee1275/loader.h: Removed.
25379 * include/grub/powerpc/memory.h: New file.
25380 * include/grub/powerpc/relocator.h: Likewise.
25381 * include/grub/relocator.h: Likewise.
25382 * include/grub/relocator_private.h: Likewise.
25383 * include/grub/sparc64/ieee1275/loader.h: Removed.
25384 * include/grub/x86_64/memory.h: New file.
25385 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25386 (grub_xnu_heap_malloc): Likewise.
25387 (grub_xnu_heap_real_start): Removed.
25388 (grub_xnu_heap_start): Likewise.
25389 (grub_xnu_relocator): New variable.
25390 (grub_xnu_heap_target_start): Likewise.
25391 * tests/util/grub-shell.in: Support non-pc.
25392 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 25393
5303b85d
VS
253942010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25395
25396 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25397 on malloc error.
25398 (grub_bidi_logical_to_visual): Check that malloc succeded.
25399 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25400 puts.
25401 (grub_xputs_normal): Likewise.
25402
d768d159
VS
254032010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25404
25405 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25406 extra_dist.
25407
254082010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25409
25410 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25411
5bf84df4
VS
254122010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25413
25414 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25415
3626810e
VS
254162010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25417
25418 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25419 dprintf.
25420
a7363f53
BC
254212010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25422
25423 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25424
902f75f6
VS
254252010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25426
25427 * grub-core/normal/term.c (print_more): Fix a memory leak.
25428 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25429 (grub_xputs_normal): Likewise.
25430
3c707967
VS
254312010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25432
25433 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25434 the begining of the string
25435
2053cc07
VS
254362010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25437
25438 * grub-core/script/script.c (grub_script_parse): Free parsed on
25439 failure.
25440
46422ebf
VS
254412010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25442
25443 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25444 on failure.
25445
9e0fa3f6
VS
254462010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25447
25448 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25449 return.
25450
3393cf16
VS
254512010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25452
25453 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25454 (scroll_up): Fix a memory leak.
25455
b17540cb
VS
254562010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25457
25458 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25459 errors.
25460
67140446
VS
254612010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25462
25463 Handle USB pendrives exposed as floppies.
25464
25465 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25466 floppy.
25467 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25468 Check for partitions on all devices.
25469
e35e46fc
VS
254702010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25471
25472 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25473 (readkey): Likewise.
25474
d24c6190
BC
254752010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25476
25477 Multiple variable names support to "export" command.
25478
25479 * normal/context.c (grub_cmd_export): "export" command supports
25480 multiple variable names.
25481
04ddcc6a
ST
254822010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25483
25484 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25485 --target=drive output to Mach device name.
25486
0c8b61d8
BC
254872010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25488
25489 New Automake based build system for GRUB.
25490
25491 * ABOUT-NLS: New file.
25492 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25493 in Makefile.util.def file.
25494 * Makefile.util.def: New file. Autogen build definitions file for
25495 GRUB host utils.
25496 * conf/Makefile.common: New file. Common variables for GRUB host
25497 utils and target modules.
25498 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25499 * docs/Makefile.am: New file. Automake file for docs.
25500 * gentpl.py: New file. Python script to generate Autogen
25501 template.
25502 * grub-core/Makefile.am: New file. GRUB target modules' rules
25503 that doesn't fit in Makefile.core.def file.
25504 * grub-core/Makefile.core.def: New file. Autogen build
25505 definitions file for GRUB target modules.
25506 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25507 specific setjmp.S file.
25508 * po/Makefile.am: New file.
25509
25510 * .bzrignore: New ignores.
25511 * INSTALL: New requirements, without Ruby.
25512 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25513 * autogen.sh: Updated to invoke autogen as necessary.
25514 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25515 and defines for Automake conditionals.
25516 * geninit.sh: Refactoring.
25517
25518 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25519 necessary.
25520 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25521 New prototype.
25522
25523 * include/grub/test.h: Fix functional test modules' naming.
25524 * grub-core/tests/example_functional_test.c: Fix test module name.
25525
25526 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25527 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25528 * util/grub-editenv.c: Likewise.
25529 * util/grub-fstest.c: Likewise.
25530 * util/grub-mkdevicemap.c: Likewise.
25531 * util/grub-mkfont.c: Likewise.
25532 * util/grub-mkimage.c: Likewise.
25533 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25534 * util/grub-probe.c: Likewise.
25535 * util/grub-script-check.c: Likewise.
25536 * util/i386/pc/grub-setup.c: Likewise.
25537 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25538
25539 * tests/util/grub-shell.in: Fix override directory path.
25540 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25541 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25542
25543 * util/lvm.c: Update #includes.
25544 * util/raid.c: Likewise.
25545 * util/resolve.c: Likewise.
25546 * grub-core/bus/emu/pci.c: Likewise.
25547 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25548 * grub-core/lib/posix_wrap/string.h: Likewise.
25549 * grub-core/kern/emu/main.c: Likewise.
25550
25551 * grub-core/gensymlist.sh: New file. Script for generating kernel
25552 symbols file.
25553 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25554
25555 * grub-core/gentrigtables.c: Fix unused variable warnings.
25556
25557 * Makefile.in: Removed.
25558 * conf/any-emu.rmk: Removed.
25559 * conf/common.rmk: Removed.
25560 * conf/i386-coreboot.rmk: Removed.
25561 * conf/i386-efi.rmk: Removed.
25562 * conf/i386-ieee1275.rmk: Removed.
25563 * conf/i386-multiboot.rmk: Removed.
25564 * conf/i386-pc.rmk: Removed.
25565 * conf/i386-qemu.rmk: Removed.
25566 * conf/i386.rmk: Removed.
25567 * conf/mips-yeeloong.rmk: Removed.
25568 * conf/mips.rmk: Removed.
25569 * conf/powerpc-ieee1275.rmk: Removed.
25570 * conf/sparc64-ieee1275.rmk: Removed.
25571 * conf/tests.rmk: Removed.
25572 * conf/x86-efi.rmk: Removed.
25573 * conf/x86_64-efi.rmk: Removed.
25574 * gendistlist.sh: Removed.
25575 * geninitheader.sh: Removed.
25576 * genkernsyms.sh.in: Removed.
25577 * genmk.rb: Removed.
25578 * gensymlist.sh.in: Removed.
25579 * mkinstalldirs: Removed.
25580 * boot: Moved ...
25581 * grub-core/boot: ... to here.
25582 * bus: Moved ...
25583 * grub-core/bus: ... to here.
25584 * commands: Moved ...
25585 * grub-core/commands: ... to here.
25586 * disk: Moved ...
25587 * grub-core/disk: ... to here.
25588 * efiemu: Moved ...
25589 * grub-core/efiemu: ... to here.
25590 * font: Moved ...
25591 * grub-core/font: ... to here.
25592 * fs: Moved ...
25593 * grub-core/fs: ... to here.
25594 * gencmdlist.sh: Moved ...
25595 * grub-core/gencmdlist.sh: ... to here.
25596 * genemuinit.sh: Moved ...
25597 * grub-core/genemuinit.sh: ... to here.
25598 * genemuinitheader.sh: Moved ...
25599 * grub-core/genemuinitheader.sh: ... to here.
25600 * genfslist.sh: Moved ...
25601 * grub-core/genfslist.sh: ... to here.
25602 * genhandlerlist.sh: Moved ...
25603 * grub-core/genhandlerlist.sh: ... to here.
25604 * genmoddep.awk: Moved ...
25605 * grub-core/genmoddep.awk: ... to here.
25606 * genmodsrc.sh: Moved ...
25607 * grub-core/genmodsrc.sh: ... to here.
25608 * genpartmaplist.sh: Moved ...
25609 * grub-core/genpartmaplist.sh: ... to here.
25610 * genparttoollist.sh: Moved ...
25611 * grub-core/genparttoollist.sh: ... to here.
25612 * genterminallist.sh: Moved ...
25613 * grub-core/genterminallist.sh: ... to here.
25614 * gentrigtables.c: Moved ...
25615 * grub-core/gentrigtables.c: ... to here.
25616 * genvideolist.sh: Moved ...
25617 * grub-core/genvideolist.sh: ... to here.
25618 * gettext: Moved ...
25619 * grub-core/gettext: ... to here.
25620 * gfxmenu: Moved ...
25621 * grub-core/gfxmenu: ... to here.
25622 * gnulib: Moved ...
25623 * grub-core/gnulib: ... to here.
25624 * hello: Moved ...
25625 * grub-core/hello: ... to here.
25626 * hook: Moved ...
25627 * grub-core/hook: ... to here.
25628 * io: Moved ...
25629 * grub-core/io: ... to here.
25630 * kern: Moved ...
25631 * grub-core/kern: ... to here.
25632 * lib: Moved ...
25633 * grub-core/lib: ... to here.
25634 * loader: Moved ...
25635 * grub-core/loader: ... to here.
25636 * mmap: Moved ...
25637 * grub-core/mmap: ... to here.
25638 * normal: Moved ...
25639 * grub-core/normal: ... to here.
25640 * partmap: Moved ...
25641 * grub-core/partmap: ... to here.
25642 * parttool: Moved ...
25643 * grub-core/parttool: ... to here.
25644 * script: Moved ...
25645 * grub-core/script: ... to here.
25646 * term: Moved ...
25647 * grub-core/term: ... to here
25648 * tests/example_functional_test.c: Moved ...
25649 * grub-core/tests/example_functional_test.c: ... to here.
25650 * tests/lib/functional_test.c: Moved ...
25651 * grub-core/tests/lib/functional_test.c: ... to here.
25652 * tests/lib/test.c: Moved ...
25653 * grub-core/tests/lib/test.c: ... to here.
25654 * video: Moved ...
25655 * grub-core/video: ... to here.
25656
645586e6
BC
256572010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25658
25659 Replace --enable-grub-emu-modules with grub-emu-lite.
25660
25661 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25662 cache.S.
25663
25664 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25665 * kern/emu/full.c: New file. For grub-emu specific initialization.
25666 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25667 * kern/emu/main.c: Call initialization function grub_emu_init.
25668
25669 * Makefile.in: Include grub-emu-lite in install.
25670 * commands/parttool.c: Use grub_no_autoload to differentiate
25671 between grub-emu and grub-emu-lite.
25672 * include/grub/misc.h: New variable grub_no_autoload.
25673
25674 * conf/any-emu.rmk: New rules for grub-emu-lite.
25675 * configure.ac: Remove --enable-grub-emu-modules.
25676 * genmk.rb: Cleanup unnecessary rules.
25677 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25678
25679 * normal/main.c: Don't load list files on grub-emu-lite.
25680 * util/misc.c (grub_arch_sync_caches): Removed.
25681
f86a4030
CW
256822010-08-23 Colin Watson <cjwatson@ubuntu.com>
25683
25684 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25685 grub-mkimage rather than grub-mkelfimage.
25686 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25687
06776944
VS
256882010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25689
25690 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25691 a key after CapsLock or NumLock. It's just a qemu bug.
25692
df262419
VS
256932010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25694
25695 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25696 needed by libusb wrapper.
25697
b40ea81b
ST
256982010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25699
25700 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25701
dee50575
VS
257022010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25703
25704 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25705 --nounzip is passed.
25706
fb1d7b79
VS
257072010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25708
25709 USB hotunplugging and USB serial support.
25710
25711 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25712 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25713 (grub_uhci_transfer): Respect timeout and set *actual.
25714 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25715 non-standard length.
25716 (grub_usb_device_attach): Autoload modules.
25717 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25718 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25719 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25720 users updated.
25721 (grub_usb_add_hub): Fill nports and children.
25722 (attach_root_port): Receive hub instead of controller.
25723 All users updated. Fill hub->devices.
25724 (grub_usb_root_hub): Allocate hub->devices.
25725 (detach_device): New function.
25726 (poll_nonroot_hub): Fill children and detach devices.
25727 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25728 actual arguments. All users updated.
25729 (grub_usb_bulk_read_extended): New function.
25730 * bus/usb/serial/common.c: New file.
25731 * bus/usb/serial/ftdi.c: Likewise.
25732 * bus/usb/serial/pl2303.c: Likewise.
25733 * commands/terminal.c (handle_command): Support wildcard.
25734 * commands/usbtest.c: Output "Unknown" instead of empty string.
25735 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25736 (usbserial_common_mod_SOURCES): New variable.
25737 (usbserial_common_mod_CFLAGS): Likewise.
25738 (usbserial_common_mod_LDFLAGS): Likewise.
25739 (pkglib_MODULES): Add usbserial_pl2303.mod.
25740 (usbserial_pl2303_mod_SOURCES): New variable.
25741 (usbserial_pl2303_mod_CFLAGS): Likewise.
25742 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25743 (pkglib_MODULES): Add usbserial_ftdi.mod.
25744 (usbserial_ftdi_mod_SOURCES): New variable.
25745 (usbserial_ftdi_mod_CFLAGS): Likewise.
25746 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25747 (pkglib_MODULES): Add serial.mod.
25748 (serial_mod_SOURCES): New variable.
25749 (serial_mod_CFLAGS): Likewise.
25750 (serial_mod_LDFLAGS): Likewise.
25751 * conf/i386-pc.rmk: Likewise.
25752 * conf/mips-yeeloong.rmk: Likewise.
25753 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25754 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25755 * disk/usbms.c (first_available_slot): New variable.
25756 (grub_usbms_attach): Don't reuse free slots due to potential cache
25757 problems.
25758 * include/grub/serial.h: Moved to ..
25759 * include/grub/ns8250.h: ...this.
25760 * include/grub/serial.h: New file.
25761 * include/grub/term.h (grub_term_poll_usb): New variable.
25762 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25763 readkey. All users updated.
25764 (grub_terminfo_output_state): Pass term to put.
25765 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25766 (grub_usb_controller_dev): Add timeout and actual arguments to
25767 transfer. All users updated.
25768 (grub_usb_interface): New field detach_data.
25769 (grub_usb_device): New fields children and nports.
25770 (grub_usb_ep_type_t): New type.
25771 (grub_usb_get_ep_type): New function.
25772 (grub_usb_bulk_read_extended): Likewise.
25773 * include/grub/usbdesc.h (grub_usb_desc): New type.
25774 * include/grub/usbserial.h: New file.
25775 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25776 * kern/term.c (grub_term_poll_usb): New variable.
25777 (grub_getkey): Call grub_term_poll_usb if set.
25778 (grub_checkkey): Likewise.
25779 (grub_getkeystatus): Likewise.
25780 * term/serial.c: Moved controller-specific parts to ...
25781 * term/ns8250.c: ... here.
25782 * term/serial.c: Mostly rewritten.
25783 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25784 according to spec.
25785
21a313de
RM
257862010-08-20 Robert Millan <rmh@gnu.org>
25787
25788 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25789 a separate module and maybe other interesting combinations.
25790
25791 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25792 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25793 (kfreebsd_entry): Add generic filesystem module load routine.
25794 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25795
63c734a6
CW
257962010-08-20 Colin Watson <cjwatson@ubuntu.com>
25797
25798 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25799 "numcenter" (I misunderstood the purpose of this entry).
25800 * docs/grub.texi (sendkey): Likewise.
25801
c4d16542
CW
258022010-08-20 Colin Watson <cjwatson@ubuntu.com>
25803
25804 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25805 status flag options; simply omitting the option is equivalent and
25806 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25807 (keysym_table): Rename "num5numlock" to "numlock".
25808 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25809 can uniformly say that only the last of multiple `sendkey'
25810 invocations has any effect.
25811 * docs/grub.texi (sendkey): New section.
25812
93541d66
CW
258132010-08-19 Colin Watson <cjwatson@ubuntu.com>
25814
25815 * commands/i386/pc/sendkey.c (options): Fix three typos.
25816
b4ece5e1
VS
258172010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25818
25819 Implement sendkey support.
25820
25821 * commands/i386/pc/sendkey.c: New file.
25822 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25823 (sendkey_mod_SOURCES): New variable.
25824 (sendkey_mod_CFLAGS): Likewise.
25825 (sendkey_mod_LDFLAGS): Likewise.
25826
51f1f5af
CW
258272010-08-18 Colin Watson <cjwatson@ubuntu.com>
25828
25829 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25830 fix warnings from Autoconf.
25831
9da94e05
CW
258322010-08-18 Colin Watson <cjwatson@ubuntu.com>
25833
25834 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25835 to avoid false positives with some assemblers that output things
25836 like "someprefix_func" as part of their output.
25837
729a0f2e
RM
258382010-08-15 Robert Millan <rmh@gnu.org>
25839
25840 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25841 errors.
25842 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25843 grub_get_libzfs_handle() errors.
25844
f3710e08
RM
258452010-08-14 Robert Millan <rmh@gnu.org>
25846
25847 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25848 filesystem is not ZFS.
25849
7a3c13de
BC
258502010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25851
25852 Fix for misspelled color names defaulting to black/black (bug
25853 reported by Doug Nazar)
25854
25855 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25856 status to prototype.
25857 * normal/color.c (grub_parse_color_name_pair): Return failure
25858 status.
25859 (grub_env_write_color_normal): Ignore bad color names.
25860 (grub_env_write_color_highlight): Likewise.
25861 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25862
ab8ba50d
BC
258632010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25864
25865 "shift" command support to GRUB script.
25866
25867 * include/grub/script_sh.h (grub_script_shift): New prototype.
25868 * script/execute.c (grub_script_shift): New function.
25869 * script/main.c (grub_script_init): Register shift command.
25870 (grub_script_fini): Unregister shift command.
25871 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25872
25873 * tests/grub_script_shift.in: New testcase.
25874 * conf/tests.rmk: Rules for new testcase.
25875
4d61999e
BC
258762010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25877
25878 "continue" command support to GRUB script.
25879
25880 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25881 (grub_script_break): Continue support.
25882 * script/main.c (grub_script_init): Register continue command.
25883 (grub_script_fini): Unregister continue command.
25884
25885 * tests/grub_script_continue.in: New testcase.
25886 * conf/tests.rmk: Rules for new testcase.
25887
4df51e00
BC
258882010-08-12 BVK Chaitanya <bvk@dbook>
25889
25890 "break" command support to GRUB script.
25891
25892 * conf/common.rmk: Rule updates to grub-script-check.
25893 * include/grub/misc.h (grub_min): New function.
25894 * include/grub/script_sh.h (grub_script_init): New prototype.
25895 (grub_script_fini): New prototype.
25896 (grub_script_break): New prototype.
25897 * script/main.c (grub_script_init): New function.
25898 (grub_script_fini): New function.
25899 * script/execute.c (grub_script_break): New function.
25900 * normal/main.c: Calls to grub_script_{init,fini}.
25901 * util/grub-script-check.c (grub_script_break): New function.
25902
25903 * tests/grub_script_break.in: New testcase.
25904 * conf/tests.rmk: Rules for new test case.
25905
f12c8420
BC
259062010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25907
25908 Function parameters support to GRUB script.
25909
25910 * script/yylex.l (VARIABLE): Regular expression update.
25911 * script/function.c (grub_script_function_call): Moved ...
25912 * script/execute.c (grub_script_function_call): ... to here.
25913 (grub_script_execute_arglist_to_argv): Removed.
25914 (grub_script_arglist_to_argv): New function.
25915 * script/argv.c: New file.
25916 (grub_script_argv_free): New function.
25917 (grub_script_argv_next): Likewise.
25918 (grub_script_argv_append): Likewise.
25919 (grub_script_argv_split_append): Likewise.
25920 * include/grub/script_sh.h (grub_script_argv): New struct.
25921 (grub_script_argv_free): New function.
25922 (grub_script_argv_next): Likewise.
25923 (grub_script_argv_append): Likewise.
25924 (grub_script_argv_split_append): Likewise.
25925
25926 * conf/common.rmk (normal.mod): New source script/argv.c.
25927
25928 * tests/grub_script_echo1.in: More tests.
25929 * tests/grub_script_vars1.in: Likewise.
25930 * tests/grub_script_functions.in: New test case.
25931 * conf/tests.rmk: Rules for new testcase.
25932
8022b748
BC
259332010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25934
25935 Remove grub_script_cmdblock struct.
25936
25937 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25938 * script/parser.y: Likewise.
25939 * script/execute.c: Rename cmdblock suffix to cmdlist.
25940 * script/script.c: Likewise.
25941 * util/grub-script-check.c: Likewise.
25942
79a6ba61
YB
259432010-08-11 Yves Blusseau <blusseau@zetam.org>
25944
25945 * .bzrignore: add grub-macho2img
25946
d04b9414
VS
259472010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25948
25949 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25950
f947ab49
VS
259512010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25952
25953 Remove the dump of sm712 initialisation sequence.
25954
25955 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25956 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25957 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25958 (GRUB_VGA_CR_*): Added many registers.
25959 (GRUB_VGA_SR_*): Likewise.
25960 (GRUB_VGA_GR_*): Likewise.
25961 (grub_vga_write_arx): New function.
25962 (grub_video_hw_config): New struct.
25963 (grub_vga_set_geometry): New function.
25964 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25965 GRUB_PCI_CLASS_SUBCLASS_VGA.
25966 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25967 * video/sm712.c (grub_sm712_write_reg): New function
25968 (grub_sm712_read_reg): Likewise.
25969 (grub_sm712_sr_write): Likewise.
25970 (grub_sm712_gr_write): Likewise.
25971 (grub_sm712_cr_write): Likewise.
25972 (grub_sm712_write_arx): Likewise.
25973 (grub_sm712_cr_shadow_write): Likewise.
25974 (grub_sm712_write_dda_lookup): Likewise.
25975 (grub_video_sm712_setup): Initialise the video rather then
25976 blindly replay the dump.
25977 (main) [TEST]: Add a routine to be able to compile as standalone for
25978 tests.
25979 * video/sm712_init.c (sm712_init): Removed.
25980 (sm712_sr_seq1): New array.
25981 (sm712_sr_seq2): Likewise.
25982
f0206638
VS
259832010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25984
25985 * include/grub/vga.h: Add missing grub/pci.h include.
25986
2764da3b
YB
259872010-08-10 Yves Blusseau <blusseau@zetam.org>
25988
25989 * util/grub-macho2img.c (main): fix typo
25990
cf0c775e
VS
259912010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25992
25993 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25994 (grub_vga_gr_read): Likewise.
25995 (grub_vga_cr_write): Likewise.
25996 (grub_vga_cr_read): Likewise.
25997 (grub_vga_sr_write): Likewise.
25998 (grub_vga_sr_read): Likewise.
25999 (grub_vga_palette_read): Likewise.
26000 (grub_vga_palette_write): Likewise.
26001 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26002 (grub_sm712_sr_read): New function.
26003 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26004 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26005
07f360e9
RM
260062010-08-09 Robert Millan <rmh@gnu.org>
26007
26008 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26009 out unused variables on non-ZFS build.
26010
346c2072
RM
260112010-08-08 Robert Millan <rmh@gnu.org>
26012
26013 Fix path generation for sub-filesystems in ZFS.
26014
26015 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26016 missing slash.
26017
71175420
RM
260182010-08-08 Robert Millan <rmh@gnu.org>
26019
26020 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26021
0d8286f3
RM
260222010-08-08 Robert Millan <rmh@gnu.org>
26023
26024 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26025 exist, issue a proper error message (rely on `ls' for translated
26026 strings).
26027
55dd2924
RM
260282010-08-08 Robert Millan <rmh@gnu.org>
26029
26030 Fix grub-probe invocation.
26031
26032 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26033
d3dd9e80
RM
260342010-08-04 Robert Millan <rmh@gnu.org>
26035
26036 * configure.ac: Remove checks for getfsstat() and getmntany().
26037 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26038 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26039 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26040 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26041 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26042 function.
26043 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26044 via find_mount_point_from_dir() and getfsstat() / getmntany().
26045
0de22aa9
RM
260462010-08-04 Robert Millan <rmh@gnu.org>
26047
26048 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26049 (grub_find_zpool_from_mount_point): Merge into ...
26050 (grub_find_zpool_from_dir): ... this.
26051 * kern/emu/misc.c: Likewise.
26052
26053 * kern/emu/misc.c
26054 (grub_make_system_path_relative_to_its_root): Replace
26055 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26056 with grub_find_zpool_from_dir().
26057 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26058
62858144
RM
260592010-08-04 Robert Millan <rmh@gnu.org>
26060
26061 Support OpenSolaris in ZFS device resolution.
26062
26063 * configure.ac: Check for getmntany().
26064 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26065 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26066 support.
26067
9dd6fd50
RM
260682010-08-03 Robert Millan <rmh@gnu.org>
26069
26070 Fix grub-emu build.
26071
26072 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26073 * include/grub/emu/misc.h: ... here.
26074
26075 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26076 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26077
26078 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26079 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26080 (grub_get_libzfs_handle): Move to ...
26081 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26082 (grub_get_libzfs_handle): ... here.
26083
c9f7ff97
BC
260842010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26085
26086 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26087 as command name case.
26088
a870a783
CW
260892010-08-02 Colin Watson <cjwatson@ubuntu.com>
26090
26091 * disk/raid.c (insert_array): Select unique numbers for named arrays
26092 as well, for use as keys in the disk cache.
26093
c7db243b
RM
260942010-08-01 Robert Millan <rmh@gnu.org>
26095
26096 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26097 kFreeBSD device name, except on ZFS where the filesystem label is
26098 used.
26099 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26100 `/boot/zfs/zpool.cache'.
26101 Set mountfrom kernel variable using ${kfreebsd_device}.
26102
f7abdefb
RM
261032010-08-01 Robert Millan <rmh@gnu.org>
26104
26105 Make it even harder to use uninitialized `libzfs_handle' (and
26106 make the interface a bit simpler).
26107
26108 * include/grub/util/misc.h (grub_util_init_libzfs)
26109 (libzfs_handle): Remove.
26110 (grub_get_libzfs_handle): New prototype.
26111
26112 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26113 attribute.
26114 (grub_util_init_libzfs): Remove.
26115 (grub_get_libzfs_handle): New function.
26116
26117 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26118 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26119 accessing `libzfs_handle' directly.
26120
c882acc0
RM
261212010-08-01 Robert Millan <rmh@gnu.org>
26122
26123 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26124 (grub_find_zpool_from_mount_point): New function prototypes.
26125
26126 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26127 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26128
26129 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26130 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26131 `static' attribute.
26132
26133 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26134 finding zpool from mount point into ...
26135 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26136
26137 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26138 requested path is part of a ZFS pool, use
26139 grub_find_zpool_from_mount_point() to detect its filesystem name,
26140 and generate a path with `/fsname@path' syntax.
26141
8bfe31d8
CW
261422010-08-01 Colin Watson <cjwatson@ubuntu.com>
26143
26144 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26145 (void) rather than () so that this is a proper prototype.
26146
553df63d
VS
261472010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26148
26149 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26150
8687cf07
VS
261512010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26152
26153 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26154 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26155
ea9be8ea
CW
261562010-08-01 Colin Watson <cjwatson@ubuntu.com>
26157
26158 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26159
6eea041a
CW
261602010-08-01 Colin Watson <cjwatson@ubuntu.com>
26161
26162 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26163
2cfb45df
CW
261642010-08-01 Colin Watson <cjwatson@ubuntu.com>
26165
26166 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26167 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26168 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26169 disable gfxpayload.
26170 (Shell-like scripting): Add real content.
26171 (Serial terminal): Suggest `terminal_input serial; terminal_output
26172 serial' rather than putting the two commands on separate lines,
26173 since console input will be inoperative after the first command.
26174 (menuentry): Document --class, --users, and --hotkey options.
26175 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26176 Vladimir Serbinenko).
26177
7decd202
VS
261782010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
261792010-08-01 Colin Watson <cjwatson@ubuntu.com>
26180
26181 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26182
c882acc0
RM
261832010-08-01 Robert Millan <rmh@gnu.org>
26184
26185 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26186 (grub_find_zpool_from_mount_point): New function prototypes.
26187
26188 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26189 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26190
26191 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26192 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26193 `static' attribute.
26194
26195 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26196 finding zpool from mount point into ...
26197 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26198
26199 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26200 requested path is part of a ZFS pool, use
26201 grub_find_zpool_from_mount_point() to detect its filesystem name,
26202 and generate a path with `/fsname@path' syntax.
26203
deb0caa3
RM
262042010-08-01 Robert Millan <rmh@gnu.org>
26205
26206 Prevent accidental use of uninitialized libzfs_handle.
26207
26208 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26209 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26210 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26211
ce04ef47
CW
262122010-08-01 Colin Watson <cjwatson@ubuntu.com>
26213
26214 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26215 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26216
ebf53056
RM
262172010-08-01 Robert Millan <rmh@gnu.org>
26218
26219 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 26220
3710bb6b
RM
262212010-07-31 Robert Millan <rmh@gnu.org>
26222
26223 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26224
8072efeb
RM
262252010-07-31 Robert Millan <rmh@gnu.org>
26226
26227 * kern/emu/misc.c: Add missing license header.
26228
3169f4c7
RM
262292010-07-31 Robert Millan <rmh@gnu.org>
26230
26231 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26232
26233 * include/grub/util/libnvpair.h: Include `<config.h>'.
26234 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26235 declaring libnvpair prototypes ourselves.
26236 * include/grub/util/libzfs.h: Include `<config.h>'.
26237 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26238 declaring libzfs prototypes ourselves.
26239
26240 (libzfs_handle): Moved to ...
26241 * include/grub/util/misc.h (libzfs_handle): ... here.
26242 Include `<grub/util/libzfs.h>'.
26243
c9a00aee
RM
262442010-07-30 Robert Millan <rmh@gnu.org>
26245
26246 * include/grub/emu/misc.h: Add missing license header.
26247
a184f9c8
RM
262482010-07-30 Robert Millan <rmh@gnu.org>
26249
26250 Enable `grub-probe -t device' resolution on ZFS.
26251
26252 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26253 * include/grub/util/libnvpair.h: New file.
26254 * include/grub/util/libzfs.h: New file.
26255
26256 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26257 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26258 `<grub/util/libnvpair.h>'.
26259 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26260
26261 (find_mount_point_from_dir): New static function.
26262 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26263 function.
26264 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26265 find_root_device_from_libzfs() before ressorting to find_root_device().
26266
26267 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26268 prototype.
26269 * util/misc.c: Include `<grub/util/libzfs.h>'.
26270 (grub_util_init_libzfs): New function.
26271 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26272 [HAVE_LIBZFS] (fini_libzfs): New static function.
26273 (grub_util_init_libzfs): New function.
26274 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26275
f7790cdd
RM
262762010-07-30 Robert Millan <rmh@gnu.org>
26277
26278 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26279 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26280 `warn_unused_result' attribute.
26281 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26282 (grub_xasprintf, grub_xvasprintf): Likewise.
26283 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26284
0806b63c
RM
262852010-07-29 Robert Millan <rmh@gnu.org>
26286
26287 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26288 (probe): Handle `PRINT_FS_LABEL'.
26289 (main): Handle `-t fs_label'.
26290
9f841f5c
RM
262912010-07-29 Robert Millan <rmh@gnu.org>
26292
26293 * configure.ac: Remove grub-mkisofs checks.
26294
46371121
VS
262952010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26296
26297 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26298 Reported by: Lennart Sorensen.
26299
263002010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26301
26302 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26303 prior to terminal_input/terminal_output separation. It's been over 1.5
26304 years and those versions weren't widely deployed.
26305
a9600892
CW
263062010-07-22 Colin Watson <cjwatson@ubuntu.com>
26307
26308 * disk/raid.c (insert_array): Don't count named arrays when looking
26309 for unused array numbers.
697e053c 26310 Reported and tested by: Michael Guntsche.
a9600892 26311
c03507df
CW
263122010-07-20 Colin Watson <cjwatson@ubuntu.com>
26313
26314 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26315 implementation of this so that grub-emu links again, with a note
26316 that this should support hotplugging in the future.
26317
b26f1c11
CW
263182010-07-20 Colin Watson <cjwatson@ubuntu.com>
26319
26320 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26321
efc9d7f1
CW
263222010-07-20 Colin Watson <cjwatson@ubuntu.com>
26323
26324 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26325 handle on failure.
26326 (grub_loopback_close): Remove empty function.
26327 (grub_loopback_dev): Remove close method.
26328
dd8ff5c9
CW
263292010-07-20 Colin Watson <cjwatson@ubuntu.com>
26330
26331 Disable EFI cursor when the EFI console becomes inactive.
26332
26333 * term/efi/console.c (grub_efi_console_init): New function.
26334 (grub_efi_console_fini): New function.
26335 (grub_console_term_output): Register init and fini methods.
26336
5e3bec67
VS
263372010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26338
26339 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26340 sh script.
26341
afaec079
VS
263422010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26343
26344 * disk/loopback.c (grub_loopback): Replace filename with file.
26345 (delete_loopback): Handle new semantics.
26346 (grub_cmd_loopback): Likewise.
26347 (grub_loopback_iterate): Likewise.
26348 (grub_loopback_close): Likewise.
26349
a6a11f3c
VS
263502010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26351
26352 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26353 with -p "".
26354 Reported by: Tito Keitel.
26355
64a638b0
VS
263562010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26357
26358 * docs/grub.texi (Naming convention): Document new naming convention.
26359
ab8ba957
VS
263602010-07-20 Vadim Solomin <vadic052@gmail.com>
263612010-07-20 Colin Watson <cjwatson@ubuntu.com>
26362
26363 Generate device.map in something closer to the old ordering.
26364
26365 * util/deviceiter.c (struct device): New declaration.
26366 (compare_file_names): Rename to ...
26367 (compare_devices): ... this. Sort by kernel name in preference to
26368 the stable by-id name, but keep the latter as a fallback comparison.
26369 Update header comment.
26370 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26371 of `struct device' rather than of plain file names.
26372
a29d6a4b
TF
263732010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26374
26375 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26376 on i386.
26377
39d824e8
VS
263782010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26379
26380 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26381 hardcoding size.
26382 (setv1table): Likewise.
26383
f058276b
FZ
263842010-07-20 Colin Watson <cjwatson@ubuntu.com>
26385
26386 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26387 removing the homehost if present.
26388 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26389 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26390 removing the homehost if present.
26391 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26392 if possible.
26393 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26394
26395 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26396 parameter. Set its pointer target to 0.
26397 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26398 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26399 `data_offset' value from the superblock for 1.x metadata.
26400 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26401 data on the device.
26402 (insert_array): Record the start sector of data on the device.
26403 (grub_raid_register): Pass start_sector parameters to
26404 grub_raid_list->detect and insert_array.
26405 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26406 member.
26407 (struct grub_raid): Add start_sector parameter to `detect'.
26408
26409 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26410 __attribute__ ((packed)), leaving a comment.
26411 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26412 (grub_mdraid_detect_09): ... here and ...
26413 (grub_mdraid_detect_1x): ... here.
26414
264152010-07-20 Peter Henn <peter.henn@web.de>
26416
26417 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26418 chunk size and disk size, which are already given as sector counts
26419 as distinct from the 0.90 units. Fetch the correct device number
26420 from the role table instead of using the table index.
26421
264222010-07-20 Felix Zielcke <fzielcke@z-51.de>
26423
26424 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26425 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26426 (WriteMostly1): New macro.
26427 Set array->name to NULL for metadata format 0.90. Add support for
26428 metadata 1.x. Fix some comments.
26429 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26430 few comments.
26431 * util/getroot.c (grub_util_get_grub_dev): Add support for
26432 /dev/md/name style devices.
26433
4b761da9
CW
264342010-07-20 Colin Watson <cjwatson@ubuntu.com>
26435
26436 * .bzrignore: Ignore 20_linux_xen.
26437
5771289a
CW
264382010-07-17 Colin Watson <cjwatson@ubuntu.com>
26439
26440 * util/import_unicode.py: Remove unnecessary imports.
26441
5dab68df
AN
264422010-07-17 Aleš Nesrsta <starous@volny.cz>
26443
26444 Hotplugging and USB hub support.
26445
26446 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26447 (grub_ohci): Likewise.
26448 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26449 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26450 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26451 (GRUB_OHCI_CTRL_EDS): Likewise.
26452 (GRUB_OHCI_BULK_EDS): Likewise.
26453 (GRUB_OHCI_TDS): Likewise.
26454 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26455 (grub_ohci_ed_phys2virt): New function.
26456 (grub_ohci_virt_to_phys): Likewise.
26457 (grub_ohci_td_phys2virt): Likewise.
26458 (grub_ohci_td_virt2phys): Likewise.
26459 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26460 attachment.
26461 (grub_ohci_find_ed): New function.
26462 (grub_ohci_alloc_td): Likewise.
26463 (grub_ohci_free_td): Likewise.
26464 (grub_ohci_free_tds): Likewise.
26465 (grub_ohci_transfer): Use previously allocated memory.
26466 (grub_ohci_portstatus): Reset status changed bit.
26467 (grub_ohci_detect_dev): Supply status changed.
26468 (grub_ohci_fini_hw): Free memory.
26469 (grub_ohci_restore_hw): Reallocate memory.
26470 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26471 Reset status change.
26472 (grub_uhci_detect_dev): Supply status_change.
26473 * bus/usb/usb.c (attach_hooks): New var.
26474 (grub_usb_device_attach): New function.
26475 (grub_usb_register_attach_hook_class): Likewise.
26476 (grub_usb_unregister_attach_hook_class): Likewise.
26477 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26478 (grub_usb_add_hub): Reset connection changed bit.
26479 (attach_root_port): New function.
26480 (grub_usb_root_hub): Likewise.
26481 (poll_nonroot_hub): Likewise.
26482 (grub_usb_poll_devices): Likewise.
26483 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26484 * disk/usbms.c (grub_usbms_open): Use device hooks.
26485 (grub_usbms_iterate) :Poll devices.
26486 (grub_usbms_finddevs): Split into ...
26487 (grub_usbms_attach): ... this ...
26488 (grub_usbms_attach): ... and this.
26489 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26490 in detect_dev.
26491 (grub_usb_interface): New fields attached and detach_hook.
26492 (grub_usb_attach_hook_class): New type.
26493 (grub_usb_attach_desc): New struct.
26494 (grub_usb_register_attach_hook_class): New function.
26495 (grub_usb_unregister_attach_hook_class): Likewise.
26496 (grub_usb_poll_devices): Likewise.
26497 (grub_usb_device_attach): Likewise.
26498 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26499 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26500
3222efaf
VS
265012010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26502
26503 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26504 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26505 delta determination style. Works with most NetBSD partitions too.
26506
139b714a
VS
265072010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26508
26509 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26510 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26511
986aad56
VS
265122010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26513
26514 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26515
99be513c
AB
265162010-07-14 Anton Blanchard <anton@samba.org>
26517
26518 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26519 ET_DYN files.
26520
18075f62
GS
265212010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26522
26523 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26524
8d9a5b15
GS
265252010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26526
26527 * kern/partition.c (grub_partition_check_containment): New function to
26528 check that a partition is physically contained in a parent. Since
26529 offsets are relative (and non-negative), this reduces to checking that
26530 the partition ends before its parent.
26531 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26532 (grub_partition_iterate): Likewise.
26533 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26534 comments.
26535 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26536 partitions that start before their parent, and add debug printfs.
26537
19563c25
CW
265382010-07-13 Colin Watson <cjwatson@ubuntu.com>
26539
26540 * Makefile.in (.SUFFIX): Spell correctly, as ...
26541 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26542 bare module name without `.mod', e.g. `test') tried to invoke a
26543 Modula-2 compiler.
26544
1a1f1e67
CW
265452010-07-13 Colin Watson <cjwatson@ubuntu.com>
26546
26547 * README: Point to the Info manual.
26548
811b0dca
JS
265492010-07-13 Jiro SEKIBA <jir@unicus.jp>
26550
26551 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26552 2nd superblock position from partition size.
26553
e4f4eafc
CW
265542010-07-10 Colin Watson <cjwatson@ubuntu.com>
26555
26556 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26557 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26558 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26559 outputs.
26560
4274c30f
VS
265612010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26562
26563 Restructure SCSI .id handling.
26564 Reported and tested by: Aleš Nesrsta.
26565
26566 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26567 (grub_atapi_dev): Changed .name to "ata". New field .id.
26568 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26569 (grub_usbms_dev): New field .id.
26570 * disk/scsi.c (grub_scsi_iterate): Generate name.
26571 (grub_scsi_open): Parse name.
26572 * include/grub/scsi.h (grub_make_scsi_id): New function.
26573 (grub_scsi_dev): Change iterate and open to number instead of naming
26574 busses. All users updated.
26575 (grub_scsi): Remove name. Add .bus.
26576
5bc24388
VS
265772010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26578
26579 * commands/help.c (grub_cmd_help): Fix a typo.
26580
249975ba
VS
265812010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26582
26583 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26584 Reported and tested by: Colin Watson.
26585
3eaac1a1
VS
265862010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26587
26588 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26589 in this context.
26590
becce1b1
VS
265912010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26592
26593 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26594
f7bf0918
CW
265952010-07-07 Colin Watson <cjwatson@ubuntu.com>
26596
26597 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26598 indentation.
26599
0b0f9620
CW
266002010-07-06 Colin Watson <cjwatson@ubuntu.com>
26601
26602 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26603 and disk/raid6_recover.c.
26604 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26605 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26606
1e545469
CW
266072010-07-06 Colin Watson <cjwatson@ubuntu.com>
26608
26609 * term/gfxterm.c (repaint_schedulded): Rename to ...
26610 (repaint_scheduled): ... this. Update all callers.
26611 (repaint_was_schedulded): Rename to ...
26612 (repaint_was_scheduled): ... this. Update all callers.
26613
5357687a
CW
266142010-07-06 Colin Watson <cjwatson@ubuntu.com>
26615
26616 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26617 which we expect to be handled by upper layers.
26618
29d7e783
BC
266192010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26620
26621 * bus/usb/usbhub.c: #include time.h header.
26622
37582066
CW
266232010-07-06 Colin Watson <cjwatson@ubuntu.com>
26624
26625 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26626 entry_name also for entries without stat blocks (e.g. ".."); fixes
26627 corruption of the first entry in a directory.
26628
c8c06953
CW
266292010-07-06 Colin Watson <cjwatson@ubuntu.com>
26630
26631 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26632 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26633 doesn't work otherwise.
26634
e75056f1
CW
266352010-07-05 Colin Watson <cjwatson@ubuntu.com>
26636
26637 * docs/grub.texi (Features): Update list of supported file systems.
26638 (GNU/Linux): Update for GRUB 2.
26639 (Serial terminal): Remove mention of --disable-serial, which was a
26640 GRUB Legacy configure option. Update instructions to use
26641 `terminal_input' and `terminal_output' rather than `terminal'.
26642 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26643 configuration' and `Installing GRUB using grub-install'.
26644 (Menu entry editor): Update for GRUB 2.
26645 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26646 Document new -a, -u, and -v options.
26647 (initrd): New section.
26648 (initrd16): New section.
26649 (linux): New section.
26650 (linux16): New section.
26651 (search): The `var' argument to `--set' is optional.
26652 (GRUB only offers a rescue shell): Go into a little more detail on
26653 drive ordering.
26654
5cf69151
CW
266552010-07-05 Colin Watson <cjwatson@ubuntu.com>
26656
26657 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26658
e3f90044
CW
266592010-07-05 Colin Watson <cjwatson@ubuntu.com>
26660
26661 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26662 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26663
38d8f4f3
CW
266642010-07-05 Colin Watson <cjwatson@ubuntu.com>
26665
26666 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26667 install_prefix, in line with install_dos_part and install_bsd_part.
26668 Add new prefix variable, which is copied to install_prefix after
26669 comparing core.img in memory with the one read from disk in the
26670 no-embedding case, and use that rather than overwriting
26671 install_prefix immediately when installing to a partition.
26672 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26673 Bicakci.
26674
57ebd41e
GS
266752010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26676
26677 * configure.ac: Avoid == in test command, it's not portable.
26678 * util/grub.d/30_os-prober.in: Likewise.
26679
cb7f64b2
CW
266802010-07-04 Colin Watson <cjwatson@ubuntu.com>
26681
26682 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26683
6b654bb0
GS
266842010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26685
26686 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26687 multiple (top-level) partmaps.
26688
72a2026d
VS
266892010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26690
26691 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 26692 Reported by: Tino Keitel.
72a2026d 26693
df3eb88f
VS
266942010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26695
26696 Bidi and diacritics support.
26697
26698 * Makefile.in (widthspec.bin): New target.
26699 (widthspec.h): Likewise.
26700 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26701 * autogen.sh: Generate unidata.c.
26702 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26703 * commands/ls.c (grub_ls_list_devices): Likewise.
26704 (grub_ls_list_files): Likewise.
26705 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26706 (grub_mini_cmd_lsmod): Likewise.
26707 * commands/read.c: Likewise.
26708 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26709 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26710 * lib/arg.c (grub_arg_show_help): Likewise.
26711 * lib/crypto.c (grub_password_get): Likewise.
26712 * normal/auth.c (grub_username_get): Likewise.
26713 * normal/misc.c (grub_normal_print_device_info): Likewise.
26714 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26715 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26716 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26717 (normal/charset.c_DEPENDENCIES): New variable.
26718 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26719 (pkglib_MODULES): Remove charset.mod.
26720 (charset_mod_SOURCES): Removed.
26721 (charset_mod_CFLAGS): Likewise.
26722 (charset_mod_LDFLAGS): Likewise.
26723 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26724 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26725 and term/tparm.c.
26726 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26727 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26728 (kernel_img_HEADERS): Add terminfo.h.
26729 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26730 Fill ->font. Reverse ascii bitmaps.
26731 (grub_font_get_xheight): New function.
26732 * font/font.c (grub_font_get_string_width): Moved from here ...
26733 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26734 * font/font.c (grub_font_draw_string): Moved from here ...
26735 * gfxmenu/font.c (grub_font_draw_string): ... here.
26736 * font/font.c (grub_font_dup_glyph): New function.
26737 (grub_font_blit_glyph): Likewise.
26738 (grub_font_blit_glyph_mirror): Likewise.
26739 (blit_comb): Likewise.
26740 (grub_font_construct_dry_run): Likewise.
26741 (grub_font_get_constructed_device_width): Likewise.
26742 (grub_font_construct_glyph): Likewise.
26743 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26744 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26745 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26746 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26747 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26748 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26749 (grub_font_get_xheight): New proto.
26750 (grub_font_get_constructed_device_width): Likewise.
26751 (grub_font_construct_glyph): Likewise.
26752 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26753 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26754 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26755 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26756 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26757 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26758 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26759 (grub_console_getcharwidth): Likewise.
26760 * include/grub/misc.h (grub_xputs): New proto.
26761 (grub_puts): Inlined.
26762 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26763 (grub_normal_get_line_counter): Removed.
26764 (grub_install_newline_hook): Likewise.
26765 (grub_normal_get_char_counter): New proto.
26766 (grub_normal_reset_more): Likewise.
26767 (grub_xputs_normal): Likewise.
26768 * include/grub/powerpc/ieee1275/console.h: Removed.
26769 * include/grub/sparc64/ieee1275/console.h: Likewise.
26770 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26771 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26772 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26773 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26774 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26775 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26776 (grub_term_input): Pass reference to self. All users updated.
26777 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26778 Pass reference to self. New fields normal_color, highlight_color and
26779 data. All users updated.
26780 (grub_putchar): Removed.
26781 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26782 (grub_unicode_estimate_width): New function.
26783 (grub_term_getcharwidth): Add defaults.
26784 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26785 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26786 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26787 (grub_cls): Remove EXPORT_FUNC.
26788 (grub_setcolorstate): Inline.
26789 (grub_newline_hook): Removed.
26790 * include/grub/terminfo.h: Rewritten. All users updated.
26791 * include/grub/unicode.h: New file.
26792 * include/grub/video.h (grub_video_signed_rect): New type.
26793 * kern/emu/console.c (grub_console_highlight_color): Removed.
26794 (grub_console_normal_color): Likewise.
26795 (grub_console_standard_color): Made static.
26796 (grub_ncurses_putchar): Remove mapping.
26797 (grub_ncurses_getcharwidth): Removed.
26798 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26799 (grub_ncurses_setcolor): Removed.
26800 (grub_ncurses_getcolor): Likewise.
26801 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26802 (grub_console_putchar): ... this.
26803 (grub_console_putchar): Handle argument difference.
26804 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26805 console_init_early and console_init_lately.
26806 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26807 * kern/misc.c (grub_puts): Removed.
26808 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26809 (grub_vsnprintf_real): Remove str = NULL support.
26810 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26811 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26812 * kern/term.c (grub_putcode): Renamed to ...
26813 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26814 (grub_putchar): Removed.
26815 (grub_xputs_dumb): New function.
26816 (grub_xputs): New variable.
26817 * lib/charset.c: Move from here ...
26818 * normal/charset.c: ... to here.
26819 (grub_ucs4_to_utf8): New function.
26820 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26821 (join_types): New variable.
26822 (unpack_join): New function.
26823 (bidi_types): New variable.
26824 (unpack_bidi): New function.
26825 (get_bidi_type): Likewise.
26826 (get_join_type): Likewise.
26827 (is_mirrored): Likewise.
26828 (grub_unicode_get_comb_type): Likewise.
26829 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26830 (is_type_after): Likewise.
26831 (grub_unicode_aglomerate_comb): Likewise.
26832 (bidi_line_wrap): Likewise.
26833 (grub_bidi_line_logical_to_visual): Likewise.
26834 (grub_bidi_logical_to_visual): Likewise.
26835 (grub_unicode_mirror_code): Likewise.
26836 (grub_unicode_shape_code): Likewise.
26837 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26838 Don't use grub_putchar.
26839 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26840 (grub_normal_reader_init): Likewise.
26841 (grub_xputs_saved): New variable.
26842 (GRUB_MOD_INIT): Set grub_xputs.
26843 (GRUB_MOD_FINI): Restore grub_xputs.
26844 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26845 (menu_init): Avoid printing gfxmenu error.
26846 (show_menu): Use grub_normal_get_char_counter.
26847 * normal/menu_entry.c (update_screen): Fix out-of-array.
26848 (complete): Avoid NULL dereferencing.
26849 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26850 * normal/menu_text.c (print_spaces): Removed.
26851 (grub_print_ucs4): Likewise.
26852 (grub_print_message_indented): Use grub_print_ucs4.
26853 (print_message): Use grub_putcode.
26854 (print_entry): Hanlde diacritics.
26855 * normal/term.c (term_state): New type.
26856 (grub_more_lines): Removed.
26857 (term_states): New variable.
26858 (grub_normal_line_counter): Renamed to ..
26859 (grub_normal_char_counter): ...this. All users updated.
26860 (grub_normal_get_line_counter): Renamed to ...
26861 (grub_normal_get_char_counter): ... this.
26862 (grub_normal_reset_more): New function.
26863 (process_newline): Removed.
26864 (print_more): New function.
26865 (grub_install_newline_hook): Removed.
26866 (map_code): New function.
26867 (grub_puts_terminal): Use grub_print_ucs4.
26868 (putglyph): New function.
26869 (putcode_real): Likewise.
26870 (grub_putcode): Use putcode_real.
26871 (get_maxwidth): New function.
26872 (get_startwidth): Likewise.
26873 (print_ucs4_terminal): Likewise.
26874 (find_term_state): Likewise.
26875 (put_glyphs_terminal): Likewise.
26876 (print_backlog): Likewise.
26877 (print_ucs4_real): Likewise.
26878 (grub_print_ucs4): Likewise.
26879 (grub_xputs_normal): Likewise.
26880 * term/efi/console.c (grub_console_putchar): Output diacritics.
26881 (grub_console_getcharwidth): Removed.
26882 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26883 * term/gfxterm.c (clear_char): Free chars.
26884 (scroll_up): Avoid leaking memory.
26885 (grub_gfxterm_putchar): Support diacritics.
26886 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26887 * term/i386/pc/console.c (grub_console_term_output): Declare as
26888 GRUB_TERM_CODE_TYPE_VGA.
26889 * term/i386/pc/vga.c (grub_vga_term): Declare as
26890 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26891 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26892 GRUB_TERM_CODE_TYPE_VGA.
26893 * term/i386/vga_common.c (map_char): Removed.
26894 (grub_console_putchar): Likewise.
26895 (grub_console_getcharwidth): Likewise.
26896 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26897 (colors): Reordered to match terminfo.
26898 (grub_ofconsole_normal_color): Removed.
26899 (grub_ofconsole_writeesc): Likewise.
26900 (grub_ofconsole_highlight_color): Likewise.
26901 (grub_ofconsole_getcharwidth): Likewise.
26902 (grub_ofconsole_setcolorstate): Likewise.
26903 (grub_ofconsole_setcolor): Likewise.
26904 (grub_ofconsole_getcolor): Likewise.
26905 (grub_ofconsole_readkey): Renamed to ...
26906 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26907 key.
26908 (grub_ofconsole_checkkey): Removed.
26909 (grub_ofconsole_getkey): Likewise.
26910 (grub_ofconsole_getxy): Likewise.
26911 (grub_ofconsole_gotoxy): Likewise.
26912 (grub_ofconsole_cls): Likewise.
26913 (grub_ofconsole_refresh): Likewise.
26914 (grub_ofconsole_terminfo_input): New struct.
26915 (grub_ofconsole_terminfo_output): Likewise.
26916 (grub_ofconsole_term_input): Use terminfo.
26917 (grub_ofconsole_term_output): Likewise.
26918 (grub_console_init): Split into ...
26919 (grub_console_init_early): ...this and ...
26920 (grub_console_init_lately): ...this. Use terminfo.
26921 (grub_ofconsole_putchar): Renamed to ...
26922 (put): ... this. Remove mapping.
26923 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26924 * term/serial.c: Simplify using terminfo.
26925 (xpos): Removed.
26926 (ypos): Likewise.
26927 (keep_track): Likewise.
26928 (registered): Likewise.
26929 (input_buf): Likewise.
26930 (npending): Likewise.
26931 (serial_translate_key_sequence): Likewise.
26932 (fill_input_buf): Likewise.
26933 (grub_serial_checkkey): Likewise.
26934 (grub_serial_getkey): Likewise.
26935 (grub_serial_getxy): Likewise.
26936 (grub_serial_gotoxy): Likewise.
26937 (grub_serial_putchar): Likewise.
26938 (grub_serial_cls): Likewise.
26939 (grub_serial_setcolorstate): Likewise.
26940 (grub_serial_setcursor): Likewise.
26941 (serial_hw_init): Use serial_hw_fetch.
26942 (grub_serial_terminfo_input): New variable.
26943 (grub_serial_terminfo_output): Likewise.
26944 (grub_serial_term_input): Use terminfo.
26945 (grub_serial_term_output): Likewise.
26946 * term/terminfo.c (putstr): Use put.
26947 (grub_terminfo_all_free): New function
26948 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26949 (grub_terminfo_output_register): New function.
26950 (grub_terminfo_output_unregister): Likewise.
26951 (grub_terminfo_getxy): Likewise.
26952 (grub_terminfo_readkey): Likewise.
26953 (grub_terminfo_checkkey): Likewise.
26954 (grub_terminfo_getkey): Likewise.
26955 (grub_terminfo_input_init): Likewise.
26956 (print_terminfo): Likewise.
26957 (grub_cmd_terminfo): Handle encoding.
26958 (grub_terminfo_gotoxy): Track position.
26959 (grub_terminfo_cls): Likewise.
26960 (grub_terminfo_putchar): Likewise.
26961 (grub_terminfo_setcolorstate): Handle colors
26962 (grub_terminfo_cursor_on): This ...
26963 (grub_terminfo_cursor_off): ... and this merged into ...
26964 (grub_terminfo_setcursor): ... this.
26965 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26966 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26967 * unicode/BidiMirroring.txt: Likewise.
26968 * unicode/UnicodeData.txt: Likewise.
26969 * unicode/COPYING: Likewise.
26970 * util/grub-editenv.c (grub_putchar): Removed.
26971 (grub_xputs_real): New function.
26972 (grub_xputs): New variable.
26973 * util/grub-fstest.c (grub_putchar): Removed.
26974 (grub_xputs_real): New function.
26975 (grub_xputs): New variable.
26976 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26977 (grub_xputs_real): New function.
26978 (grub_xputs): New variable.
26979 * util/grub-probe.c (grub_putchar): Removed.
26980 (grub_xputs_real): New function.
26981 (grub_xputs): New variable.
26982 * util/grub-script-check.c (grub_putchar): Removed.
26983 (grub_xputs_real): New function.
26984 (grub_xputs): New variable.
26985 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26986 (grub_xputs_real): New function.
26987 (grub_xputs): New variable.
26988 * util/import_unicode.py: New file.
26989 * util/grub-mkfont.c (ft_errmsgs): New array.
26990 (grub_glyph_info): Make bitmap a pointer.
26991 (file_formats): New type WIDTH_SPEC.
26992 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26993 (options): Add width-spec.
26994 (help): Likewise.
26995 (add_char): Renamed to ...
26996 (add_glyph): ... this.
26997 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26998 (glyph_replace): New type.
26999 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27000 (add_char): New function.
27001 (add_subst): Likewise.
27002 (process_cursive): Likewise.
27003 (add_font): Handle GSUB.
27004 (write_font_width_spec): New function.
27005 (main): Sort glyphs.
27006 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27007 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27008 * kern/term.c (grub_cls): Moved from here...
27009 * normal/term.c (grub_cls): ... here.
27010
50f0bcda
CW
270112010-07-02 Colin Watson <cjwatson@ubuntu.com>
27012
27013 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27014 suitable for using within the format argument of printf when
27015 converting grub_size_t.
27016 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27017 "x" to convert grub_size_t arguments.
27018
40372103
VS
270192010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27020
27021 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27022 too long captions.
27023 (list_get_minimal_size): Take selection box into account.
27024
942a10c7
VS
270252010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27026
27027 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27028 NULL font.
27029
2bdb2892
CW
270302010-07-02 Colin Watson <cjwatson@ubuntu.com>
27031
27032 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27033 devices when iterating over /dev/disk/by-id; they will be handled
27034 later if appropriate, which they aren't always (e.g. LVM).
27035
e03ed6c1
CW
270362010-07-02 Colin Watson <cjwatson@ubuntu.com>
27037
27038 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27039 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27040 fails.
27041 (grub_halt): Likewise.
27042 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27043 reset-all fails.
27044 (grub_halt): Don't return, even if all of shut-down, power-off, and
27045 poweroff fail.
27046
47695765
CW
270472010-07-02 Colin Watson <cjwatson@ubuntu.com>
27048
27049 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27050 arguments, not three.
27051
507736c8
CW
270522010-07-02 Colin Watson <cjwatson@ubuntu.com>
27053
27054 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27055 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27056 LVM-on-RAID is handled correctly.
27057
e3c8cd37
CW
270582010-07-02 Colin Watson <cjwatson@ubuntu.com>
27059
27060 * docs/grub.texi (Changes from GRUB Legacy): New section.
27061 (Future): Fix typo.
27062
8d4a2fec
CW
270632010-07-02 Colin Watson <cjwatson@ubuntu.com>
27064
27065 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27066 grub.d/README accidentally ends up executable for one reason or
27067 another. Ignore it.
27068
1c4827be
VS
270692010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27070
27071 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27072 (gpt_partition_map_iterate): Support non-512B sectors.
27073
d9a0c941
VS
270742010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27075
27076 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27077 Tested by: Seth Goldberg.
27078
48f27e87
VS
270792010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27080
27081 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27082 Properly align mbi.
27083 Reported by: Seth Goldberg.
27084
b0c4f956
VS
270852010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27086
27087 * util/grub-mkrescue.in: Avoid module duplication.
27088
105a2e8c
SF
270892010-07-01 Sean Finney <seanius@seanius.net>
27090
27091 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27092
5944958c
SF
270932010-07-01 Sean Finney <seanius@seanius.net>
27094
27095 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27096
270972010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27098
27099 * disk/lvm.c (grub_lvm_checkvalue): New function.
27100 (grub_lvm_check_flag): Likewise.
27101
b79889ba
RM
271022010-07-01 Robert Millan <rmh@gnu.org>
27103
27104 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27105 Support 'p' as partition separator on kernel of FreeBSD (used
27106 with GPT labels).
27107 (grub_util_biosdisk_get_grub_dev): Likewise.
27108
ec1d04f1
VS
271092010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27110
27111 Yeeloong firmware port.
27112
27113 * boot/mips/yeeloong/fwstart.S: New file.
27114 * bus/cs5536.c (gpiodump): New const.
27115 (set_io_space): New function.
27116 (set_iod): Likewise.
27117 (set_p2d): Likewise.
27118 (grub_cs5536_init_geode): Likewise.
27119 * commands/mips/yeeloong/lsspd.c: New file.
27120 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27121 (serial_mod_SOURCES): New variable.
27122 (serial_mod_CFLAGS): Likewise.
27123 (serial_mod_LDFLAGS): Likewise.
27124 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27125 term/terminfo.c and term/tparm.c.
27126 (pkglib_IMAGES): Add fwstart.img.
27127 (fwstart_img_SOURCES): New variable.
27128 (fwstart_img_CFLAGS): Likewise.
27129 (fwstart_img_ASFLAGS): Likewise.
27130 (fwstart_img_LDFLAGS): Likewise.
27131 (fwstart_img_FORMAT): Likewise.
27132 (pkglib_MODULES): Add lsspd.mod.
27133 (lsspd_mod_SOURCES): New variable.
27134 (lsspd_mod_CFLAGS): Likewise.
27135 (lsspd_mod_LDFLAGS): Likewise.
27136 (pkglib_MODULES): Add halt.mod.
27137 (halt_mod_SOURCES): New variable.
27138 (halt_mod_CFLAGS): Likewise.
27139 (halt_mod_LDFLAGS): Likewise.
27140 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27141 (serial_mod_SOURCES): Removed.
27142 (serial_mod_CFLAGS): Likewise.
27143 (serial_mod_LDFLAGS): Likewise.
27144 * disk/ata.c (check_device): New function.
27145 (grub_ata_device_initialize): Use check_device.
27146 (grub_ata_iterate): Recheck devices.
27147 (grub_ata_open): Likewise.
27148 (grub_atapi_iterate): Likewise.
27149 (grub_atapi_open): Likewise.
27150 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27151 (GRUB_ATA_CH1_PORT1): Likewise.
27152 (GRUB_ATA_CH0_PORT2): Likewise.
27153 (GRUB_ATA_CH1_PORT2): Likewise.
27154 * include/grub/mips/loongson.h: New file.
27155 * include/grub/mips/yeeloong/ec.h: Likewise.
27156 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27157 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27158 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27159 * include/grub/misc.h (grub_halt): Declare as noreturn.
27160 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27161 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27162 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27163 (UART_ENABLE_DTRRTS): Likewise.
27164 (UART_ENABLE_MODEM): Removed.
27165 (UART_ENABLE_OUT2): New const.
27166 * include/grub/term.h (grub_term_register_input_active): New function.
27167 (grub_term_register_output_active): Likewise.
27168 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27169 argument.
27170 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27171 (init_pci): New function.
27172 (grub_machine_init): Execute platform init when firmware. Init serial.
27173 (grub_halt): Implement.
27174 (grub_exit): Likewise.
27175 (grub_reboot): Likewise.
27176 * term/serial.c (serial_hw_init): Update macros.
27177 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27178 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27179 (image_targets): New target mipsel-yeeloong-flash.
27180 (generate_image): Support IMAGE_YEELOONG_FLASH.
27181 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27182 (grub_video_sm712_setup): Init card.
27183 (grub_video_sm712_set_palette): Removed.
27184 * video/sm712_init.c: New file.
27185
ff4a70d2
CW
271862010-06-30 Colin Watson <cjwatson@ubuntu.com>
27187
27188 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27189 PATH when running help2man and then run it on the unadorned
27190 executable names, rather than passing $(builddir)/* paths to
27191 help2man. This avoids the build directory ending up in generated
27192 manual pages.
27193
1246efeb
CW
271942010-06-29 Colin Watson <cjwatson@ubuntu.com>
27195
27196 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27197 to avoid accidents when debugging with 'sh -x'.
27198 * util/grub-mkrescue.in: Likewise.
27199 * util/grub.d/00_header.in: Likewise.
27200 * util/grub.d/10_hurd.in: Likewise.
27201 * util/grub.d/10_kfreebsd.in: Likewise.
27202 * util/grub.d/10_linux.in: Likewise.
27203 * util/grub.d/10_netbsd.in: Likewise.
27204 * util/grub.d/10_windows.in: Likewise.
27205 * util/grub.d/20_linux_xen.in: Likewise.
27206 * util/grub.d/30_os-prober.in: Likewise.
27207 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27208
1ba9b889
CW
272092010-06-29 Colin Watson <cjwatson@ubuntu.com>
27210
27211 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27212 last character in the buffer.
27213 Reported by: Vladimir Serbinenko.
27214
dccaf99d
RM
272152010-06-29 Robert Millan <rmh@gnu.org>
27216
27217 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27218 (Command-line and menu entry commands): Document `badram' command.
27219
d500ed12
RM
272202010-06-28 Robert Millan <rmh@gnu.org>
27221
27222 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27223 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27224 command using ${GRUB_BADRAM} as parameter.
27225
20bc84a6
CW
272262010-06-28 Colin Watson <cjwatson@ubuntu.com>
27227
27228 * docs/grub.texi (Device map): New section.
27229 (Themes): New section (stub).
27230 * Makefile.in (docs/grub.info): The info documentation now builds
27231 without errors. Make sure it stays that way.
27232
4045dee1
VS
272332010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27234
27235 Use normal parser for menu entries.
27236 Reported by: Thomas Frauendorfer
27237
27238 * include/grub/parser.h (grub_parser_execute): Don't export.
27239 * normal/menu.c (grub_menu_execute_entry_real): New function.
27240 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27241
bca58c7b
CW
272422010-06-28 Colin Watson <cjwatson@ubuntu.com>
27243
27244 * docs/grub.texi (Embedded configuration): New section (replacing
27245 old "Preset Menu" stub).
27246 (Images): New section.
27247 (configfile): Note that any menu entries defined in `file' are shown
27248 immediately.
27249
dec53e63
JT
272502010-06-28 Josh Triplett <josh@joshtriplett.org>
27251
27252 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27253
c06e40f7
CW
272542010-06-28 Colin Watson <cjwatson@ubuntu.com>
27255
27256 * util/grub-install.in: Add --debug-image= option.
27257
cb88052b
CW
272582010-06-28 Colin Watson <cjwatson@ubuntu.com>
27259
27260 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27261 possible on Linux.
27262
27263 * util/deviceiter.c (check_device): Rename to ...
27264 (check_device_readable_unique): ... this. Update all callers.
27265 Maintain and check a list of which devices (by canonicalized name)
27266 have already been seen.
27267 (clear_seen_devices): New function.
27268 (compare_file_names) [__linux__]: New function.
27269 (grub_util_iterate_devices): Clear the list of seen devices on exit
27270 and (just in case) on entry.
27271 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27272 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27273 seen-devices list, superseded by general code in check_device.
27274
bbe34652
CW
272752010-06-28 Colin Watson <cjwatson@ubuntu.com>
27276
27277 * commands/cat.c (options): New variable.
27278 (grub_cmd_cat): Parse options. If the --dos option is given, print
27279 DOS-style "\r\n" line endings as simple newlines (Debian bug
27280 #586358).
27281 (GRUB_MOD_INIT): Use extcmd.
27282 (GRUB_MOD_FINI): Likewise.
27283 * docs/grub.texi (cat): Document --dos.
27284
412e09f3
VS
272852010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27286
27287 XEN with Linux grub-mkconfig support.
27288
27289 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27290 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27291 GRUB_CMDLINE_XEN_DEFAULT.
27292 * util/grub.d/20_linux_xen.in: New file.
27293
53f3ef38 272942010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
27295
27296 Initialise VGA video on qemu ourselves.
27297
27298 * boot/i386/qemu/boot.S: Don't call 0xc000.
27299 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27300 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27301 (kernel_img_HEADERS): Add pci.h.
27302 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27303 * configure.ac: Force unifont on qemu and yeeloong.
27304 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27305 (grub_vga_palette_write): Use correct register.
27306 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27307 Call grub_qemu_init_cirrus.
27308 * kern/i386/qemu/init.c: New file.
27309 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27310
27311 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27312
c75be4fb
PR
273132010-06-26 Pavel Roskin <proski@gnu.org>
27314
27315 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27316 13.
27317
d8034603
CW
273182010-06-26 Colin Watson <cjwatson@ubuntu.com>
27319
27320 * docs/grub.texi (Simple configuration): Explain that
27321 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27322 set to `true' to disable their respective recovery entries, not
27323 merely set.
27324
3fa06487
CW
273252010-06-26 Colin Watson <cjwatson@ubuntu.com>
27326
27327 Make the `source' command slightly faster.
27328
27329 * normal/main.c (grub_normal_execute): Don't re-read list files when
27330 nested.
27331
e9b29642
CW
273322010-06-23 Colin Watson <cjwatson@ubuntu.com>
27333
27334 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27335 field position and mask size to red fields from mode_info, not
27336 green.
27337 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27338 Remove redundant tag->common.framebuffer_type assignment.
27339 Reported by: Seth Goldberg.
27340
e726542f
CW
273412010-06-23 Colin Watson <cjwatson@ubuntu.com>
27342
27343 Sync up other versions of the Linux loader with Robert Millan's
27344 change of 2010-01-09, "Make loader output a bit more user-friendly".
27345
27346 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27347 grub_dprintf().
27348 (grub_cmd_linux): Likewise.
27349 (grub_cmd_initrd): Likewise.
27350 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27351 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27352
d6e98a17
CW
273532010-06-21 Colin Watson <cjwatson@ubuntu.com>
27354
27355 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27356 larger than MEMORY_MAP_SIZE.
27357
14d3f08e
BC
273582010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27359
27360 Fix parallel build.
27361
27362 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27363 dependency.
27364 * script/parser.y: #include grub_script.tab.h header.
27365
4f9613a3
VS
273662010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27367
27368 Support >3GiB and <16MiB RAM in i386-qemu.
27369
27370 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27371 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27372 (grub_lower_mem): Removed.
27373 (grub_upper_mem): Likewise.
27374 (mem_size): Made static.
27375 (above_4g): New variable.
27376 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27377 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27378 support.
27379
05e51879
VS
273802010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27381
27382 Cirrus 5446 and Bochs video cards support.
27383
27384 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27385 video_bochs.mod
27386 (video_cirrus_mod_SOURCES): New variable.
27387 (video_cirrus_mod_CFLAGS): Likewise.
27388 (video_cirrus_mod_LDFLAGS): Likewise.
27389 (video_bochs_mod_SOURCES): Likewise.
27390 (video_bochs_mod_CFLAGS): Likewise.
27391 (video_bochs_mod_LDFLAGS): Likewise.
27392 * include/grub/vga.h: New file.
27393 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27394 (grub_video_fb_set_page_t): New type.
27395 (grub_video_fb_setup): New prototype.
27396 (grub_video_fb_swap_buffers): Likewise.
27397 (grub_video_fb_get_info_and_fini): Likewise.
27398 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27399 (CRTC_DATA_PORT): Likewise.
27400 (CRTC_CURSOR): Likewise.
27401 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27402 (CRTC_CURSOR_ADDR_LOW): Likewise.
27403 (CRTC_CURSOR_DISABLE): Likewise.
27404 (update_cursor): Use grub_vga_cr_write.
27405 (grub_vga_text_setcursor): Likewise.
27406 * video/bochs.c: New file.
27407 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27408 (palette): Likewise.
27409 (palette_size): Likewise.
27410 (framebuffer): New variable.
27411 (grub_video_fb_init): Use 'framebuffer'.
27412 (grub_video_fb_fini): Likewise.
27413 (grub_video_fb_get_info): Likewise.
27414 (grub_video_fb_get_palette): Likewise.
27415 (grub_video_fb_set_palette): Likewise.
27416 (grub_video_fb_set_viewport): Likewise.
27417 (grub_video_fb_get_viewport): Likewise.
27418 (grub_video_fb_map_color): Likewise.
27419 (grub_video_fb_map_rgb): Likewise.
27420 (grub_video_fb_map_rgba): Likewise.
27421 (grub_video_fb_unmap_color): Likewise.
27422 (grub_video_fb_unmap_color_int): Likewise.
27423 (grub_video_fb_fill_rect): Likewise.
27424 (grub_video_fb_blit_bitmap): Likewise.
27425 (grub_video_fb_blit_render_target): Likewise.
27426 (grub_video_fb_scroll): Likewise.
27427 (grub_video_fb_create_render_target): Likewise.
27428 (grub_video_fb_doublebuf_blit_init): Likewise.
27429 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27430 (doublebuf_pageflipping_update_screen): New function.
27431 (doublebuf_pageflipping_init): Likewise.
27432 (grub_video_fb_setup): Likewise.
27433 (grub_video_fb_swap_buffers): Likewise.
27434 (grub_video_fb_get_info_and_fini): Likewise.
27435 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27436 All users updated.
27437 (doublebuf_pageflipping_commit): Restructured into ...
27438 (doublebuf_pageflipping_set_page): ... this.
27439 (doublebuf_pageflipping_update_screen): Removed.
27440 (doublebuf_pageflipping_init): Likewise.
27441 (double_buffering_init): Likewise.
27442 (grub_video_vbe_setup): Use grub_video_fb_setup.
27443 (grub_video_vbe_swap_buffers): Removed.
27444 (grub_video_vbe_set_active_render_target): Likewise.
27445 (grub_video_vbe_get_active_render_target): Likewise.
27446 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27447 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27448 grub_video_fb_set_active_render_target and
27449 grub_video_fb_get_active_render_target.
27450 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27451 (SEQUENCER_DATA_PORT): Likewise.
27452 (MAP_MASK_REGISTER): Likewise.
27453 (CRTC_ADDR_PORT): Likewise.
27454 (CRTC_DATA_PORT): Likewise.
27455 (START_ADDR_HIGH_REGISTER): Likewise.
27456 (START_ADDR_LOW_REGISTER): Likewise.
27457 (GRAPHICS_ADDR_PORT): Likewise.
27458 (GRAPHICS_DATA_PORT): Likewise.
27459 (READ_MAP_REGISTER): Likewise.
27460 (INPUT_STATUS1_REGISTER): Likewise.
27461 (INPUT_STATUS1_VERTR_BIT): Likewise.
27462 (get_map_mask): Use grub_vga_sr_read.
27463 (set_map_mask): Use grub_vga_sr_write.
27464 (set_read_map): Use grub_vga_gr_write.
27465 (set_start_address): Use grub_vga_cr_write.
27466 * video/sm712.c (framebuffer): Remove leftover fields.
27467
4321c64a
CW
274682010-06-20 Colin Watson <cjwatson@ubuntu.com>
27469
27470 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27471 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27472 instead. Replace the gfxterm backend check with a check that
27473 ${GRUB_PREFIX}/video.lst is non-empty.
27474 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27475 again.
27476 (load_video): New generated function. Call it before loading
27477 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27478 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27479 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27480 * docs/grub.texi (Simple configuration): Document
27481 GRUB_VIDEO_BACKEND.
27482
274832010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27484
27485 Use video functions in linux and xnu loaders.
27486
27487 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27488 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27489 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27490 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27491 loader/i386/pc/linux.c.
27492 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27493 (find_line_len): Removed.
27494 (find_framebuf): Likewise.
27495 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27496 * loader/i386/efi/xnu.c: Removed.
27497 * loader/i386/pc/xnu.c: Moved from here...
27498 * loader/i386/xnu.c: ...here.
27499
27500 Enable priorities in video drivers.
27501
27502 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27503 (grub_video_adapter): New field prio.
27504 (grub_video_register): Respect prio when inserting.
27505 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27506 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27507 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27508 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27509 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27510 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27511 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27512
27513 Fix SDL driver ID.
27514
27515 * include/grub/video.h (grub_video_driver_id_t): New value
27516 GRUB_VIDEO_DRIVER_SDL.
27517 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27518
7d24e434
CW
275192010-06-17 Colin Watson <cjwatson@ubuntu.com>
27520
27521 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27522 argument to printf.
27523 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27524
c88a83f6
CW
275252010-06-17 Colin Watson <cjwatson@ubuntu.com>
27526
27527 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27528 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27529
094dfb69
CW
275302010-06-17 Colin Watson <cjwatson@ubuntu.com>
27531
27532 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27533 directly, and recommend grub-install instead.
27534 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27535
2164da6b
CW
275362010-06-17 Colin Watson <cjwatson@ubuntu.com>
27537
27538 Fix i386-pc prefix handling with nested partitions (Debian bug
27539 #585068). Note that the case where the core image is booted using
27540 multiboot and relocated from its original location still requires
27541 more work.
27542
27543 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27544 with "(,", fill the boot drive in between those two characters, but
27545 expect that a full partition specification including partition map
27546 names will follow.
27547 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27548 specified, write a prefix without the drive name but including a
27549 full partition specification.
27550
044e2e60
CW
275512010-06-16 Colin Watson <cjwatson@ubuntu.com>
27552
27553 * util/grub-mkconfig.in: Ignore non-option arguments, for
27554 compatibility with older versions (before 2010-06-12) which did the
27555 same. In particular, this makes it easier to ship an update-grub
27556 wrapper which is compatible with that used with GRUB Legacy (Debian
27557 bug #586056).
27558
5591324f
GS
275592010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27560
27561 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27562 for manual page generation.
27563
662e24d5
GS
275642010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27565
27566 * po/POTFILES: Remove leftover commands/handler.c.
27567
8d70754e
CW
275682010-06-14 Colin Watson <cjwatson@ubuntu.com>
27569
27570 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27571 left this script non-functional.
27572
41160e2e
CW
275732010-06-14 Colin Watson <cjwatson@ubuntu.com>
27574
27575 * docs/man/grub-emu.h2m: New file.
27576
b5309cc1
CW
275772010-06-13 Colin Watson <cjwatson@ubuntu.com>
27578
27579 * docs/grub.texi (Commands): Document reduced command set in rescue
27580 mode.
27581 (cpuid): New section.
27582
fcb2d090
GS
275832010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27584
27585 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27586 new partition naming style.
27587 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27588
96e5c556
BC
275892010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27590
27591 Add "-o grub.iso" like cmdline options support.
27592
27593 * util/grub-install.in: Improve cmdline option parsing.
27594 * util/grub-mkconfig.in: Likewise.
27595 * util/grub-mkrescue.in: Likewise.
27596 * util/grub-reboot.in: Likewise.
27597 * util/grub-set-default.in: Likewise.
27598 * util/i386/efi/grub-install.in: Likewise.
27599 * util/ieee1275/grub-install.in: Likewise.
27600 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27601
c16be99b
CW
276022010-06-12 Colin Watson <cjwatson@ubuntu.com>
27603
27604 * .bzrignore: Ignore 41_custom.
27605
ce08a9fb
TS
276062010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27607
27608 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27609
7beac90c
CW
276102010-06-12 Colin Watson <cjwatson@ubuntu.com>
27611
27612 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27613 prototype declarations.
27614
27615 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27616 generating fs, partmap, and video lists.
27617 * include/grub/fs.h (grub_fs_register): Omit prototype if
27618 GRUB_LST_GENERATOR is defined.
27619 * include/grub/partition.h (grub_partition_map_register): Likewise.
27620 * include/grub/video.h (grub_video_register): Likewise.
27621
1c8f0f8d
JM
276222010-06-12 Javier Martín <lordhabbit@gmail.com>
27623
27624 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27625
a6085973
TS
276262010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27627
27628 * util/grub-mkrescue.in: Support --xorriso argument.
27629
25c56d29
VS
276302010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27631
27632 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27633 Suggested by: Thomas Schmitt.
27634
e03e4b24
VS
276352010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27636
27637 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27638 Suggested by: Thomas Schmitt.
27639
57711df6
VS
276402010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27641
27642 custom.cfg support.
27643
27644 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27645 * util/grub.d/41_custom.in: New file.
27646
ee62c427
CW
276472010-06-12 Colin Watson <cjwatson@ubuntu.com>
27648
27649 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27650 been merged back into normal.
27651
283af07a
CW
276522010-06-11 Colin Watson <cjwatson@ubuntu.com>
27653
27654 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27655 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27656
56a0d956
CW
276572010-06-11 Colin Watson <cjwatson@ubuntu.com>
27658
27659 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27660 when generating manual pages.
27661 * docs/man/grub-bin2h.h2m: New file.
27662 * docs/man/grub-editenv.h2m: New file.
27663 * docs/man/grub-fstest.h2m: New file.
27664 * docs/man/grub-install.h2m: New file.
27665 * docs/man/grub-macho2img.h2m: New file.
27666 * docs/man/grub-mkconfig.h2m: New file.
27667 * docs/man/grub-mkdevicemap.h2m: New file.
27668 * docs/man/grub-mkfont.h2m: New file.
27669 * docs/man/grub-mkimage.h2m: New file.
27670 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27671 * docs/man/grub-mkrelpath.h2m: New file.
27672 * docs/man/grub-mkrescue.h2m: New file.
27673 * docs/man/grub-ofpathname.h2m: New file.
27674 * docs/man/grub-pe2elf.h2m: New file.
27675 * docs/man/grub-probe.h2m: New file.
27676 * docs/man/grub-reboot.h2m: New file.
27677 * docs/man/grub-script-check.h2m: New file.
27678 * docs/man/grub-set-default.h2m: New file.
27679 * docs/man/grub-setup.h2m: New file.
27680
3a37e322
VS
276812010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27682
27683 Use FOR_* macros instead of *_iterate whenever possible.
27684
27685 * commands/handler.c: Removed.
27686 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27687 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27688 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27689 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27690 (grub_probe_SOURCES): Remove kern/parser.c.
27691 (util/grub-script-check.c_DEPENDENCIES): Removed.
27692 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27693 and grub_script_check_init.c.
27694 (grub_script_check_init.lst): Removed.
27695 (grub_script_check_init.h): Likewise.
27696 (grub_script_check_init.c): Likewise.
27697 (pkglib_MODULES): Remove handler.mod and sh.mod.
27698 (handler_mod_SOURCES): Removed.
27699 (handler_mod_CFLAGS): Likewise.
27700 (handler_mod_LDFLAGS): Likewise.
27701 (normal_mod_SOURCES): Remove normal/handler.c.
27702 Add script/main.c, script/script.c, script/execute.c,
27703 script/function.c, script/lexer.c, grub_script.tab.c
27704 and grub_script.yy.c.
27705 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27706 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27707 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27708 (grub_setup_SOURCES): Remove kern/parser.c.
27709 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27710 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27711 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27712 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27713 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27714 (grub_setup_SOURCES): Remove kern/parser.c.
27715 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27716 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27717 * include/grub/command.h (grub_command_iterate): Removed.
27718 (FOR_COMMANDS): New macro.
27719 * include/grub/dl.h (grub_dl): New member next.
27720 (grub_dl_iterate): Removed.
27721 (grub_dl_head): New variable declaration.
27722 (FOR_DL_MODULES): New macro.
27723 * include/grub/fs.h: Include list.h.
27724 (grub_fs): Make next first element.
27725 (grub_fs_list): New variable declaration.
27726 (grub_fs_register): Make inline.
27727 (grub_fs_unregister): Likewise.
27728 (grub_fs_iterate): Removed.
27729 (FOR_FILESYSTEMS): New macro.
27730 * include/grub/handler.h: Removed.
27731 * include/grub/list.h (grub_list_hook_t): Removed.
27732 (grub_list_test_t): Likewise.
27733 (grub_list_pop): Likewise.
27734 (grub_list_iterate): Likewise.
27735 (grub_list_insert): Likewise.
27736 (FOR_LIST_ELEMENTS): New macro.
27737 * include/grub/parser.h (grub_parser_class): Removed.
27738 (grub_parser_register): Likewise.
27739 (grub_parser_unregister): Likewise.
27740 (grub_parser_get_current): Likewise.
27741 (grub_parser_set_current): Likewise.
27742 (grub_register_rescue_parser): Likewise.
27743 (grub_rescue_parse_line): New function.
27744 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27745 * include/grub/script_sh.h (grub_script_function_list): New variable
27746 declaration.
27747 (FOR_SCRIPT_FUNCTIONS): New macro.
27748 (grub_script_function_iterate): Removed.
27749 (grub_normal_parse_line): New prototype.
27750 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27751 (FOR_DISABLED_TERM_INPUTS): Likewise.
27752 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27753 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27754 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27755 element.
27756 (grub_video_register): Inline.
27757 (grub_video_unregister): Likewise.
27758 (grub_video_adapter_list): New variable declaration.
27759 (grub_video_iterate): Removed.
27760 (FOR_VIDEO_ADAPTERS): New macro.
27761 * kern/dl.c (grub_dl_list): Removed. All users updated.
27762 (grub_dl_iterate): Removed.
27763 * kern/fs.c (grub_fs_list): Make global.
27764 (grub_fs_register): Removed.
27765 (grub_fs_unregister): Likewise.
27766 (grub_fs_iterate): Likewise.
27767 * kern/handler.c: Removed.
27768 * kern/list.c (grub_list_pop): Removed.
27769 (grub_list_iterate): Likewise.
27770 (grub_list_insert): Likewise.
27771 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27772 (grub_prio_list_insert): Don't use grub_list_insert.
27773 * kern/main.c (grub_register_rescue_parser): Don't call
27774 grub_register_rescue_parser.
27775 * kern/parser.c (grub_parser_class): Removed.
27776 (grub_parser_execute): Use grub_rescue_parse_line.
27777 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27778 (grub_rescue_parser): Removed.
27779 (grub_register_rescue_parser): Likewise.
27780 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27781 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27782 (grub_auth_check_authentication): Likewise.
27783 * normal/completion.c (iterate_command): Removed.
27784 (grub_normal_do_completion): Use FOR_COMMANDS.
27785 * normal/handler.c: Removed.
27786 * normal/main.c (read_config_file): Remove parser changing.
27787 (grub_normal_execute): Don't call read_handler_list.
27788 (grub_normal_read_line_real): Statically allocate prompt.
27789 (grub_cmdline_run): Use grub_normal_parse_line.
27790 (GRUB_MOD_FINI): Don't call free_handler_list.
27791 * normal/menu_entry.c (run): Likewise.
27792 * script/function.c (grub_script_function_list): Make global.
27793 (grub_script_function_iterate): Removed.
27794 * script/main.c (grub_normal_parse_line): Make global.
27795 (grub_sh_parser): Removed.
27796 (GRUB_MOD_INIT): Likewise.
27797 (GRUB_MOD_FINI): Likewise.
27798 * tests/lib/functional_test.c (grub_functional_test): Use
27799 FOR_LIST_ELEMENTS.
27800 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27801 (grub_test_run): Use FOR_LIST_ELEMENTS.
27802 * tests/lib/unit_test.c (main): Likewise.
27803 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27804 grub_list_pop.
27805 * util/grub-fstest.c (grub_term_input_class): Removed.
27806 (grub_term_output_class): Likewise.
27807 * util/grub-probe.c: Likewise.
27808 * util/i386/pc/grub-setup.c: Likewise.
27809 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27810 * util/grub-script-check.c (main): Don't call grub_init_all and
27811 grub_fini_all.
27812 * video/video.c (grub_video_adapter_list): Make global.
27813 (grub_video_register): Removed.
27814 (grub_video_unregister): Likewise.
27815 (grub_video_iterate): Likewise.
27816
6289c3a7
VS
278172010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27818
27819 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27820 reported by Henrique Ferreiro.
27821
91460247
RM
278222010-06-09 Robert Millan <rmh@gnu.org>
27823
27824 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27825 ones, when both are available.
27826
0ea7c4f9
GS
278272010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27828
27829 Make --version uniform and avoid hard-coded program name.
27830
27831 * util/grub-mkimage.c (main): Use `program_name' instead of
27832 hard-coded string.
27833 * util/i386/pc/grub-setup.c (main): Likewise.
27834 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27835 * util/grub-install.in: Save the basename of $0 in $self, and use the
27836 latter in informational messages. Use the same format for --version
27837 as the binary programs.
27838 * util/grub-mkconfig.in: Likewise.
27839 * util/grub-mkrescue.in: Likewise.
27840 * util/grub-reboot.in: Likewise.
27841 * util/grub-set-default.in: Likewise.
27842 * util/i386/efi/grub-install.in: Likewise.
27843 * util/ieee1275/grub-install.in: Likewise.
27844 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27845
e8a6f3b6
GS
278462010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27847
27848 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27849 embedding area. Use <= instead of == when checking for non-emptiness.
27850
f4d095d7
GS
278512010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27852
27853 * configure.ac: Add `.' to the directories searched for unifont.
27854
50e532ca
CW
278552010-06-08 Colin Watson <cjwatson@ubuntu.com>
27856
27857 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27858 grub_script.yy.h.
27859
d39f3dec
CW
278602010-06-08 Colin Watson <cjwatson@ubuntu.com>
27861
27862 * docs/grub.texi (History): Expand to cover GRUB 2.
27863 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27864 commands, not `terminal'.
27865 (serial): Likewise.
27866 (terminal_input): New section.
27867 (terminal_output): New section.
27868 (uppermem): New section (stub).
27869 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27870
6ef0ddb4
CW
278712010-06-08 Colin Watson <cjwatson@ubuntu.com>
27872
27873 * docs/grub.texi (Security): Menu entries are unrestricted by
27874 default, not restricted to superusers as I had previously thought.
27875 Reword to account for this.
27876
e0f4c438
CW
278772010-06-07 Colin Watson <cjwatson@ubuntu.com>
27878
27879 * kern/emu/misc.c (device_mapper_null_log): New function.
27880 (grub_device_mapper_supported): New function.
27881 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27882 prototype.
27883 * kern/emu/hostdisk.c (find_partition_start): Check whether
27884 device-mapper is supported before trying to use it.
27885 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27886
da908200
CW
278872010-06-07 Colin Watson <cjwatson@ubuntu.com>
27888
27889 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27890 (File name syntax): Likewise.
27891 (help): --all is no longer supported in GRUB 2. Be more precise
27892 about pattern matching.
27893
fb55c3ac
CW
278942010-06-07 Colin Watson <cjwatson@ubuntu.com>
27895
27896 * normal/completion.c (grub_normal_do_completion): When completing
27897 arguments to "set" and the current word contains an equals sign,
27898 skip to after the equals sign before starting completion.
27899
258c2573
CW
279002010-06-07 Colin Watson <cjwatson@ubuntu.com>
27901
27902 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27903
ee75515e
CW
279042010-06-07 Colin Watson <cjwatson@ubuntu.com>
27905
27906 * docs/grub.texi (Network): New section.
27907 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27908 `(nd)' as in GRUB Legacy.
27909 (pxe_unload): New section.
27910
a6a700aa
CW
279112010-06-07 Colin Watson <cjwatson@ubuntu.com>
27912
27913 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27914 in the rescue shell, so recommend using `set' instead. Thanks,
27915 Jordan Uggla.
27916
4003dd38
CW
279172010-06-07 Colin Watson <cjwatson@ubuntu.com>
27918
27919 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27920 (password): New section.
27921 (password_pbkdf2): New section.
27922 (search): New section.
27923 (Security): New section.
27924 (Troubleshooting): New section, currently very incomplete.
27925 (Invoking grub-mkpasswd-pbkdf2): New section.
27926 (Internals): New section, currently very incomplete.
27927
e1cbcc40
CW
279282010-06-07 Colin Watson <cjwatson@ubuntu.com>
27929
27930 * util/grub.d/00_header.in: Add some more quoting (of
27931 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27932 work again.
27933 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27934
db8fa1ad
CW
279352010-06-07 Colin Watson <cjwatson@ubuntu.com>
27936
27937 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27938 to `count', fixing variable shadowing that broke the -c option.
27939
279402010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
27941
27942 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27943 in case they contain spaces.
27944
f28a9212
CW
279452010-06-04 Colin Watson <cjwatson@ubuntu.com>
27946
27947 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27948 "part_" to partmap module names, in line with grub-install.
27949 Reported by: Jindřich Makovička (Debian bug #584426).
27950
9cdfe32f
CW
279512010-06-04 Colin Watson <cjwatson@ubuntu.com>
27952
27953 * util/grub-mkimage.c: Make target-related error messages slightly
27954 more helpful; -O talks about "format". Explicitly point to the use
27955 of -O if no target is specified.
27956 Reported by: Didier Raboud (Debian bug #584415).
27957
795b593a
CW
279582010-06-03 Colin Watson <cjwatson@ubuntu.com>
27959
27960 * INSTALL: Document several build requirements for optional features
27961 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27962
9d9b5833
GS
279632010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27964
27965 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27966 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27967 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27968
0819fec8
CW
279692010-06-02 Colin Watson <cjwatson@ubuntu.com>
27970
27971 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27972 Thanks to Jordan Uggla for spotting this.
27973
49396b4f
VS
279742010-06-02 Aleš Nesrsta <starous@volny.cz>
27975
27976 Finally make USB usable.
27977
27978 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27979 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27980 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27981 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27982 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27983 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27984 (GRUB_OHCI_FSMPS): Likewise.
27985 (GRUB_OHCI_PERIODIC_START): Likewise.
27986 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27987 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27988 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27989 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27990 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27991 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27992 (grub_ohci_transaction): Likewise.
27993 (grub_ohci_transfer): Improve condition detection algorithms.
27994 Handle toggle property. Program the transactions correctly.
27995 Improve error handling. Various important fixups.
27996 (grub_ohci_portstatus): Put register writes in right order.
27997 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27998 (grub_uhci_transfer): Don't show "failed" message on success.
27999 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28000 array.
28001 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28002 determine its size.
28003 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28004 before initialization is completed. Use IN direction for empty
28005 transfers. Use last_trans and compute toggle.
28006 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28007 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28008 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28009 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28010 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28011 (grub_usb_device): Increase toggle to 256.
28012 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28013 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28014 GRUB_USBMS_SUBCLASS_SFF8070.
28015 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28016 (grub_scsi_inquiry): New member page and alloc_length.
28017 (grub_scsi_request_sense): New structure.
28018 (grub_scsi_request_sense_data): Likewise.
28019 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28020 control.
28021 * disk/scsi.c (grub_scsi_request_sense): New function.
28022 (grub_scsi_test_unit_ready): Likewise.
28023 (grub_scsi_inquiry): Fill new fields.
28024 (grub_scsi_read_capacity): Likewise.
28025 (grub_scsi_read10): Add request sense at the end.
28026 (grub_scsi_read12): Likewise.
28027 (grub_scsi_write10): Likewise.
28028 (grub_scsi_write12): Likewise.
28029 (grub_scsi_open): Add Test Unit Ready.
28030 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28031 Support additional subclasses. Con't clear halt yet. Activate the
28032 proper config. Calculate LUNs correctly.
28033 (grub_usbms_transfer): Various important fixups.
28034
280352010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28036
28037 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28038 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28039 (grub_ohci_fini_hw): New function.
28040 (grub_ohci_restore_hw): Likewise.
28041 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28042 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28043 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28044
280452010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28046
28047 Dedicated DMA allocations.
28048
28049 * bus/pci.c (grub_memalign_dma32): New function
28050 (grub_dma_free): Likewise.
28051 (grub_dma_get_virt): Likewise.
28052 (grub_dma_get_phys): Likewise.
28053 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28054 (grub_ohci_pci_iter): Use dma32_alloc.
28055 (grub_ohci_transfer): Likewise.
28056 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28057 (grub_usb_bulk_readwrite): Likewise.
28058 * include/grub/pci.h: Add declarations.
28059
280602010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28061
28062 CS5536 support.
28063
28064 * bus/cs5536.c: New file.
28065 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28066 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28067 (cs5536_mod_SOURCES): New variable.
28068 (cs5536_mod_CFLAGS): Likewise.
28069 (cs5536_mod_LDFLAGS): Likewise.
28070 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28071 machine/pci.h.
28072 (kernel_img_SOURCES): Add bus/cs5536.c.
28073 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28074 usb_keyboard.mod.
28075 (usb_mod_SOURCES): New variable.
28076 (usb_mod_CFLAGS): New variable.
28077 (usb_mod_LDFLAGS): New variable.
28078 (usbtest_mod_SOURCES): New variable.
28079 (usbtest_mod_CFLAGS): New variable.
28080 (usbtest_mod_LDFLAGS): New variable.
28081 (ohci_mod_SOURCES): New variable.
28082 (ohci_mod_CFLAGS): New variable.
28083 (ohci_mod_LDFLAGS): New variable.
28084 (usbms_mod_SOURCES): New variable.
28085 (usbms_mod_CFLAGS): New variable.
28086 (usbms_mod_LDFLAGS): New variable.
28087 (usb_keyboard_mod_SOURCES): New variable.
28088 (usb_keyboard_mod_CFLAGS): New variable.
28089 (usb_keyboard_mod_LDFLAGS): New variable.
28090 * include/grub/smbus.h: New file.
28091 * include/grub/cs5536.h: New file.
28092
0b35b2a9
CW
280932010-06-02 Colin Watson <cjwatson@ubuntu.com>
28094
28095 * util/grub.d/00_header.in: Add safety check to make sure that
28096 ${locale_dir} exists before trying to probe it.
28097
ca0afd5b
CW
280982010-06-02 Colin Watson <cjwatson@ubuntu.com>
28099
28100 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28101 per the GNU Coding Standards; this is now too obscure to be worth
28102 documenting.
28103 (QNX): Likewise.
28104 (chainloader): Remove cross-reference to `SCO UnixWare'.
28105
1c41aa78
CW
281062010-06-02 Colin Watson <cjwatson@ubuntu.com>
28107
28108 * docs/grub.texi (Chain-loading): New section.
28109 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28110 adjusted for GRUB 2.
28111 (SCO UnixWare): Likewise.
28112 (QNX): Likewise.
28113 (chainloader): Add reference to `Block list syntax'.
28114 (drivemap): New section.
28115 (parttool): New section.
28116
bb8ea0f5
CW
281172010-06-02 Colin Watson <cjwatson@ubuntu.com>
28118
28119 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28120 the grub shell'.
28121 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28122 (Installing GRUB using grub-install): Remove reference to the grub
28123 shell; mention `grub-mkimage' and `grub-setup' instead.
28124 (Invoking grub-install): Likewise.
28125 (Interface): Add reference to `Menu entry editor'.
28126 (serial): Remove `--device' option.
28127
288dd6ed
CW
281282010-06-02 Colin Watson <cjwatson@ubuntu.com>
28129
28130 * docs/grub.texi (Configuration): New section, documenting
28131 configuration file generation using grub-mkconfig. I've left a slot
28132 for documenting the full shell scripting format but have not yet
28133 started on writing that up.
28134 (Invoking grub-mkconfig): New section.
28135
34c9f0e9
CW
281362010-06-02 Colin Watson <cjwatson@ubuntu.com>
28137
28138 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28139 (GNU GRUB manual): Likewise.
28140 (General commands): Update description of `terminfo' for GRUB 2.
28141
9121567e
CW
281422010-06-02 Colin Watson <cjwatson@ubuntu.com>
28143
28144 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28145 (GRUB_MOD_INIT): Fix capitalisation.
28146 * docs/grub.texi (Command-line and menu entry commands): Document
28147 gettext and gptsync commands.
28148
ab631611
CW
281492010-06-02 Colin Watson <cjwatson@ubuntu.com>
28150
28151 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28152 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28153
bde4a9ac
CW
281542010-06-01 Colin Watson <cjwatson@ubuntu.com>
28155
28156 Add btrfs probing support, currently only in the single-device case.
28157
28158 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28159 function.
28160 (grub_guess_root_device): Call find_root_device_from_mountinfo
28161 before looking in /dev.
28162
b1d17e10
VS
281632010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28164
28165 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28166 GRUB_DISK_SIZE_UNKNOWN.
28167 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28168
dfbfe004
JS
281692010-05-31 Jiro SEKIBA <jir@unicus.jp>
28170
28171 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28172 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28173 corrupted or not synced properly.
28174
c2ffc8e9
VS
281752010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28176
28177 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28178 Reported by: Seth Goldberg.
28179
56293166
VS
281802010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28181
28182 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28183 addition of dest.
28184 Reported by: Seth Goldberg.
28185
7620e7de
VS
281862010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28187
28188 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28189 Reported by: Seth Goldberg.
28190
c837af3f
VS
281912010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28192
28193 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28194 64-bit address as signed on MIPS.
28195
c7c75cf4
CW
281962010-05-28 Colin Watson <cjwatson@ubuntu.com>
28197
28198 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28199 to the empty string.
28200
fa4b8490
BC
282012010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28202
28203 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28204
28205 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28206 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28207 * kern/misc.c (__enable_execute_stack): Disable on
28208 GRUB_MACHINE_EMU.
28209
a33075b9
CW
282102010-05-28 Colin Watson <cjwatson@ubuntu.com>
28211
28212 Make grub-probe work with symbolic links under /dev/mapper as well
28213 as with real block devices. The Linux world seems to be (at best)
28214 in transition here, and GRUB shouldn't get caught in the middle.
28215
28216 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28217 /dev/mapper.
28218
d8708134
CW
282192010-05-27 Colin Watson <cjwatson@ubuntu.com>
28220
28221 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28222 input files (in which case exit zero).
28223
db2102a0
CW
282242010-05-27 Colin Watson <cjwatson@ubuntu.com>
28225
28226 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28227 return NULL for various reasons even if it has a maximum-length
28228 buffer: for example, there might be a symlink loop, or the path
28229 might exceed PATH_MAX. If this happens, return NULL.
28230
5fdba519
RM
282312010-05-27 Robert Millan <rmh@gnu.org>
28232
28233 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28234 partmap module to handle cross-partmap setups.
28235 Reported by Orestes Mas. Gràcies!
28236
d1d368e4
CW
282372010-05-27 Colin Watson <cjwatson@ubuntu.com>
28238
28239 * util/grub-mkrescue.in: Initialise override_dir rather than
28240 assuming that it's unset or empty in the environment.
28241
95ac3c73
GS
282422010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28243
28244 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28245 variable index into p_index to suppress a warning with -Wshadow.
28246
7d8c0213
BC
282472010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28248
28249 * INSTALL: Added flex >= 2.5.35 requirement.
28250
db4d5813
VS
282512010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28252
28253 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28254
f24f4300
VS
282552010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28256
28257 cmostest support.
28258
28259 * commands/i386/cmostest.c: New file.
28260 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28261 (cmostest_mod_SOURCES): New variable.
28262 (cmostest_mod_CFLAGS): Likewise.
28263 (cmostest_mod_LDFLAGS): Likewise.
28264 * conf/i386-pc.rmk: Likewise.
28265 * docs/grub.texi (Vendor power-on keys): New section.
28266 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28267 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28268 and GRUB_BUTTON_CMOS_ADDRESS.
28269 * util/grub.d/00_header.in: Handle powering-on by separate button.
28270
ad603f61
VS
282712010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28272
28273 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28274 Removed drawing_scrollbar argument. All users updated
28275 Fixes #29792.
28276 Reported by Jo Shields
28277
3ecb080a
VS
282782010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28279
28280 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28281 buffer since gfxterm handles double repaint.
28282
5f2316c1
VS
282832010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28284
28285 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28286 * term/gfxterm.c (real_scroll): Likewise.
28287
9a25f885
VS
282882010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28289
28290 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28291 before calling BIOS.
28292
39fbb79a
VS
282932010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28294
28295 * include/grub/i18n.h: Always enable grub_gettext.
28296
228cfa97
VS
282972010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28298
28299 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28300 partition naming style.
28301
21717c8f
CW
283022010-05-21 Colin Watson <cjwatson@ubuntu.com>
28303
28304 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28305 not the first option.
28306
c0f48e65
CW
283072010-05-20 Colin Watson <cjwatson@ubuntu.com>
28308
28309 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28310
96779aec
CW
283112010-05-20 Colin Watson <cjwatson@ubuntu.com>
28312
28313 * util/misc.c: Move inclusion of <limits.h> to ...
28314 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28315
fa9d256e
GS
283162010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28317
28318 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28319 Fix merge error in NetBSD code.
28320 (find_partition_start) [__NetBSD__]: Likewise.
28321
123b7a85
BC
283222010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28323
28324 Fix grub-mkrescue usage unit testing.
28325
28326 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28327
74276c0d
CF
283282010-05-18 Christian Franke <franke@computer.org>
28329
28330 * util/grub.d/10_windows.in: Use path names instead of
28331 drive letters to prevent warning from Cygwin 1.7.
28332 Add drivemap command to menuentry if needed.
28333
c4f7b523
ST
283342010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28335
28336 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28337 gnumach and gnumach.gz.
28338
95b97950
VS
283392010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28340
28341 * include/grub/i18n.h (gettext): Inline instead of using #define.
28342 (grub_gettext): Likewise.
28343 (_): Likewise.
28344
01b8d2d7
VS
283452010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28346
28347 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28348 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28349 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28350 (main): Add a slash after pkglibdirroot.
28351
654e1d1e
VS
283522010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28353
28354 * util/grub-install.in: Add missing "in" keyword.
28355
26966aeb
VS
283562010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28357
28358 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28359 Reported by: Seth Goldberg.
28360
75006747
VS
283612010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28362
28363 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28364
74cbf5bd
CW
283652010-05-18 Colin Watson <cjwatson@ubuntu.com>
28366
28367 * configure.ac: Check for Linux device-mapper support.
28368
28369 * util/hostdisk.c (device_is_mapped): New function.
28370 (find_partition_start): New function, partly broken out from
28371 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28372 device-mapper support added.
28373 (linux_find_partition): Use find_partition_start.
28374 (convert_system_partition_to_system_disk): Add `st' argument.
28375 Support Linux /dev/mapper/* devices if device-mapper support is
28376 available; only DM-RAID devices are understood at present.
28377 (find_system_device): Add `st' argument. Pass it to
28378 convert_system_partition_to_system_disk.
28379 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28380 find_system_device and convert_system_partition_to_system_disk. Use
28381 find_partition_start.
28382
28383 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28384 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28385 * util/deviceiter.c [__linux__]: Define MINOR.
28386 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28387 * util/mkdevicemap.c (grub_putchar): New function.
28388 (grub_getkey): New function.
28389 (grub_refresh): New function.
28390 (main): Set debug=all if -v -v is used.
28391
355b51e9
CW
283922010-05-18 Colin Watson <cjwatson@ubuntu.com>
28393
28394 Fix build with non-GNU libcs.
28395
28396 * util/misc.c (canonicalize_file_name): Move to ...
28397 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28398 grub_make_system_path_relative_to_its_root.
28399
7fb5c25f
CW
284002010-05-18 Colin Watson <cjwatson@ubuntu.com>
28401
28402 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28403 we handle finding grub-mkimage. Default to finding grub-mkimage in
28404 ${bindir} with program_transform_name applied, and provide a
28405 --grub-mkimage option to override this.
28406
1d3293d6
VS
284072010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28408
28409 Remove grub-mkisofs.
28410
28411 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28412 (grub_mkisofs_SOURCES): Removed.
28413 (grub_mkisofs_CFLAGS): Removed.
28414 * util/mkisofs/defaults.h: Removed.
28415 * util/mkisofs/eltorito.c: Likewise.
28416 * util/mkisofs/exclude.h: Likewise.
28417 * util/mkisofs/hash.c: Likewise.
28418 * util/mkisofs/include/: Likewise.
28419 * util/mkisofs/include/fctldefs.h: Likewise.
28420 * util/mkisofs/include/mconfig.h: Likewise.
28421 * util/mkisofs/include/prototyp.h: Likewise.
28422 * util/mkisofs/include/statdefs.h: Likewise.
28423 * util/mkisofs/iso9660.h: Likewise.
28424 * util/mkisofs/joliet.c: Likewise.
28425 * util/mkisofs/match.c: Likewise.
28426 * util/mkisofs/match.h: Likewise.
28427 * util/mkisofs/mkisofs.c: Likewise.
28428 * util/mkisofs/mkisofs.h: Likewise.
28429 * util/mkisofs/msdos_partition.h: Likewise.
28430 * util/mkisofs/multi.c: Likewise.
28431 * util/mkisofs/name.c: Likewise.
28432 * util/mkisofs/rock.c: Likewise.
28433 * util/mkisofs/tree.c: Likewise.
28434 * util/mkisofs/write.c: Likewise.
28435
5dde9afe
VS
284362010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28437
28438 Unify grub-mkimage accross platforms.
28439
28440 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28441 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28442 (grub_mkelfimage_SOURCES): Removed.
28443 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28444 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28445 (bin_UTILITIES): Add grub-mkimage.
28446 (grub_mkimage_SOURCES): New variable.
28447 (kernel_img_HEADERS): Remove machine/kernel.h.
28448 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28449 (pkglib_PROGRAMS): Add kernel.img.
28450 (kernel_img_HEADERS): Add machine/kernel.h.
28451 (kernel_img_FORMAT): Removed.
28452 (bin_UTILITIES): Remove grub-mkimage.
28453 (grub_mkimage_SOURCES): Removed.
28454 (grub_mkimage_CFLAGS): Likewise.
28455 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28456 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28457 (pkglib_PROGRAMS): Add kernel.img.
28458 (bin_UTILITIES): Remove grub-mkimage.
28459 (grub_mkimage_SOURCES): Removed.
28460 (grub_mkimage_CFLAGS): Likewise.
28461 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28462 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28463 (pkglib_PROGRAMS): Add kernel.img.
28464 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28465 (pkglib_PROGRAMS): Add kernel.img.
28466 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28467 (grub_mkimage_SOURCES): Removed.
28468 (grub_mkimage_CFLAGS): Likewise.
28469 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28470 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28471 (pkglib_PROGRAMS): Add kernel.img.
28472 (bin_UTILITIES): Remove grub-mkimage.
28473 (grub_mkimage_SOURCES): Removed.
28474 (grub_mkimage_CFLAGS): Likewise.
28475 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28476 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28477 (grub_mkimage_SOURCES): Removed.
28478 (grub_mkimage_CFLAGS): Likewise.
28479 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28480 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28481 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28482 (grub_pe32_optional_header): ... this.
28483 (grub_pe64_optional_header): ... and this. All users updated.
28484 (GRUB_PE32_PE32_MAGIC): Split into ..
28485 (GRUB_PE32_PE32_MAGIC): .. this.
28486 (GRUB_PE32_PE64_MAGIC): .. and this.
28487 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28488 * include/grub/elf.h (PT_GNU_STACK): New definition.
28489 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28490 * include/grub/i386/efi/kernel.h: Likewise.
28491 * include/grub/i386/kernel.h: Likewise.
28492 * include/grub/i386/pc/kernel.h: Likewise.
28493 * include/grub/i386/qemu/boot.h: Likewise.
28494 * include/grub/mips/kernel.h: Likewise.
28495 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28496 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28497 * include/grub/powerpc/kernel.h: Likewise.
28498 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28499 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28500 * include/grub/sparc64/kernel.h: Likewise.
28501 * include/grub/x86_64/efi/kernel.h: Likewise.
28502 * include/grub/x86_64/kernel.h: Likewise.
28503 * include/grub/offsets.h: New file.
28504 * include/grub/kernel.h (grub_module_info): Split into ...
28505 (grub_module_info32): ... this.
28506 (grub_module_info64): ... and this.
28507 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28508 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28509 (grub_boot_blocklist): Moved from here ...
28510 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28511 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28512 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28513 * include/grub/types.h (grub_target_to_host16): Removed.
28514 (grub_target_to_host32): Likewise.
28515 (grub_target_to_host64): Likewise.
28516 (grub_host_to_target16): Likewise.
28517 (grub_host_to_target32): Likewise.
28518 (grub_host_to_target64): Likewise.
28519 (grub_host_to_target_addr): Likewise.
28520
28521 Support grub-mkrescue for efi, coreboot and qemu.
28522
28523 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28524 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28525 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28526 * util/grub-mkrawimage.c: Moved from here ...
28527 * util/grub-mkimage.c: ... here. All users updated.
28528 (ALIGN_ADDR): Use image_target.
28529 (TARGET_NO_FIELD): New const.
28530 (image_target_desc): New type.
28531 (image_targets): New array.
28532 (grub_target_to_host64): Use image_target.
28533 (grub_target_to_host32): Likewise.
28534 (grub_target_to_host16): Likewise.
28535 (grub_host_to_target64): Likewise.
28536 (grub_host_to_target32): Likewise.
28537 (grub_host_to_target16): Likewise.
28538 (grub_host_to_target_addr): Likewise.
28539 (generate_image): Handle multiimage.
28540 (main): Require -O parameter. All users updated.
28541 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28542 util/efi/grub-mkimage.c
28543 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28544 New option --rom-directory.
28545 Use xorriso.
28546 * util/i386/efi/grub-mkimage.c: Removed.
28547 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28548 (grub_target_to_host32): Likewise.
28549 (grub_target_to_host64): Likewise.
28550 (grub_host_to_target16): Likewise.
28551 (grub_host_to_target32): Likewise.
28552 (grub_host_to_target64): Likewise.
28553 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28554 (grub_target_to_host32): Likewise.
28555 (grub_target_to_host64): Likewise.
28556 (grub_host_to_target16): Likewise.
28557 (grub_host_to_target32): Likewise.
28558 (grub_host_to_target64): Likewise.
28559
f4fc97d0
BC
285602010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28561
28562 Source tree is reorganized for emu build.
28563
28564 * include/grub/util/console.h: Move from here...
28565 * include/grub/emu/console.h: ...to here.
28566 * include/grub/util/getroot.h: Move from here...
28567 * include/grub/emu/getroot.h: ...to here.
28568 * include/grub/util/hostdisk.h: Move from here...
28569 * include/grub/emu/hostdisk.h: ...to here.
28570 * util/console.c: Move from here...
28571 * kern/emu/console.c: ...to here.
28572 * util/getroot.c: Move from here...
28573 * kern/emu/getroot.c: ...to here.
28574 * util/grub-emu.c: Move from here...
28575 * kern/emu/main.c: ...to here.
28576 * util/hostdisk.c: Move from here...
28577 * kern/emu/hostdisk.c: ...to here.
28578 * util/hostfs.c: Move from here...
28579 * kern/emu/hostfs.c: ...to here.
28580 * util/mm.c: Move from here...
28581 * kern/emu/mm.c: ...to here.
28582 * util/pci.c: Move from here...
28583 * bus/emu/pci.c: ...to here.
28584 * util/sdl.c: Move from here...
28585 * video/emu/sdl.c: ...to here.
28586 * util/time.c: Move from here...
28587 * kern/emu/time.c: ...to here.
28588 * util/usb.c: Move from here...
28589 * bus/usb/emu/usb.c: ...to here.
28590
28591 * include/grub/emu/misc.h: New header for grub-emu functions.
28592 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28593
28594 * conf/any-emu.rmk: Rule updates for above renames.
28595 * conf/common.rmk: Likewise.
28596 * conf/i386-pc.rmk: Likewise.
28597 * conf/i386-qemu.rmk: Likewise.
28598 * conf/mips.rmk: Likewise.
28599 * conf/sparc64-ieee1275.rmk: Likewise.
28600 * conf/x86-efi.rmk: Likewise.
28601
28602 * disk/lvm.h: #include updates for above renames.
28603 * util/grub-mkrelpath.c: Likewise.
28604 * util/grub-probe.c: Likewise.
28605 * util/i386/pc/grub-setup.c: Likewise.
28606 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28607 * kern/emu/console.c: Likewise.
28608 * kern/emu/getroot.c: Likewise.
28609 * kern/emu/hostdisk.c: Likewise.
28610 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28611
28612 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28613 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28614 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28615 * util/misc.c: Remove grub-emu functions.
28616
cced9145
VS
286172010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28618
28619 Fix gfxmenu crash.
28620 Reported by: Thorsten Grützmacher.
28621
28622 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28623 timeout hook.
28624 (circprog_set_property): Register and unregister timeout hook.
28625 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28626 (label_destroy): Free template. and unregister hook.
28627 (label_set_state): New function.
28628 (label_set_property): Handle templates and hooks.
28629 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28630 timeout hook.
28631 (progress_bar_set_property): Register and unregister timeout hook.
28632 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28633 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28634 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28635 (update_timeout_visit): Removed.
28636 (update_timeouts): New function.
28637 (redraw_timeouts): Likewise.
28638 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28639 (grub_gfxmenu_clear_timeout): Likewise.
28640 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28641 (grub_gfxmenu_timeout_notify): Likewise.
28642 (grub_gfxmenu_timeout_notifications): New external variable.
28643 (grub_gfxmenu_timeout_register): New function.
28644 (grub_gfxmenu_timeout_unregister): Likewise.
28645
c6e5caab
VS
286462010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28647
28648 Transform (broken) vga terminal into (working) vga video driver.
28649
28650 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28651 video/i386/pc/vga.c.
28652 * include/grub/video.h (grub_video_driver_id):
28653 Add GRUB_VIDEO_DRIVER_VGA.
28654 * term/i386/pc/vga.c: Renamed to ...
28655 * video/i386/pc/vga.c: ...this
28656 (DEBUG_VGA): Removed.
28657 (CHAR_WIDTH): Likewise.
28658 (CHAR_HEIGHT): Likewise.
28659 (TEXT_WIDTH): Likewise.
28660 (TEXT_HEIGHT): Likewise.
28661 (DEFAULT_FG_COLOR): Likewise.
28662 (DEFAULT_BG_COLOR): Likewise.
28663 (colored_char): Likewise.
28664 (xpos): Likewise.
28665 (ypos): Likewise.
28666 (cursor_state): Likewise.
28667 (fg_color): Likewise.
28668 (bg_color): Likewise.
28669 (text_buf): Likewise.
28670 (page): Likewise.
28671 (font): Likewise.
28672 (framebuffer): New variable.
28673 (set_read_map): Disabled.
28674 (setup): New variable.
28675 (is_target): Likewise.
28676 (grub_vga_mod_init): Likewise.
28677 (grub_vga_mod_fini): Likewise.
28678 (check_vga_mem): Likewise.
28679 (write_char): Likewise.
28680 (write_cursor): Likewise.
28681 (scroll_up): Likewise.
28682 (grub_vga_putchar): Likewise.
28683 (grub_vga_getcharwidth): Likewise.
28684 (grub_vga_getwh): Likewise.
28685 (grub_vga_getxy): Likewise.
28686 (grub_vga_gotoxy): Likewise.
28687 (grub_vga_cls): Likewise.
28688 (grub_vga_setcolorstate): Likewise.
28689 (grub_vga_setcursor): Likewise.
28690 (grub_video_vga_init): New function.
28691 (grub_video_vga_setup): Likewise.
28692 (grub_video_vga_fini): Likewise.
28693 (update_target): Likewise.
28694 (grub_video_vga_blit_bitmap): Likewise.
28695 (grub_video_vga_blit_render_target): Likewise.
28696 (grub_video_vga_set_active_render_target): Likewise.
28697 (grub_video_vga_get_active_render_target): Likewise.
28698 (grub_video_vga_swap_buffers): Likewise.
28699 (grub_video_vga_set_palette): Likewise.
28700 (grub_video_vga_get_info_and_fini): Likewise.
28701 (grub_vga_term): Removed.
28702 (grub_video_vga_adapter): New variable.
28703 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28704 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28705
2bf61a98
VS
287062010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28707
28708 * video/readers/jpeg.c: Indented.
28709
09ddcd11
VS
287102010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28711
28712 Various jpeg cleanups.
28713
28714 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28715 (grub_jpeg_decode_quan_table): Use sizeof.
28716 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28717
e5507505
PH
287182010-05-05 Peter Hurley <No e-mail available> (tiny change)
28719
28720 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28721 tables. Ignore non-last ac bit.
28722 (grub_jpeg_decode_quan_table): Likewise.
28723
7e720a9b
VS
287242010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28725
28726 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28727 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28728 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28729 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28730 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28731 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28732
a7fc080b
VS
287332010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28734
28735 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28736 error.
28737
2bf6012d
VS
287382010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28739
28740 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28741
265d68cd
VS
287422010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28743
28744 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28745 condition.
28746
287472010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
28748
28749 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28750 part.
28751
265d68cd 287522010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
28753
28754 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28755 pointers.
28756
265d68cd 287572010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
28758
28759 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28760
d1b61374
CF
287612010-05-01 Christian Franke <franke@computer.org>
28762
28763 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28764 Remove broken Cygwin path conversion.
28765 * util/misc.c: [__CYGWIN__] Add include and define.
28766 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28767 for Cygwin 1.7.
28768 (make_system_path_relative_to_its_root): Simplify loop, replace early
28769 return by break.
28770 [__CYGWIN__] Add conversion to win32 path.
28771 Include "/" case in trailing slash removal.
28772
3558c6e9
VS
287732010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28774
28775 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28776 Reported by: Seth Goldberg
28777
f5f3ff93
VS
287782010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28779
28780 * commands/help.c (grub_cmd_help): Fix a typo.
28781 Reported by: Seth Goldberg
28782
d8b5cd40
VS
287832010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28784
28785 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28786 name and add N_.
28787 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28788 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28789 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28790 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28791 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28792 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28793 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28794 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28795 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28796 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28797 * normal/context.c (GRUB_MOD_INIT): Likewise.
28798 * normal/main.c (GRUB_MOD_INIT): Likewise.
28799 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28800 * term/serial.c (GRUB_MOD_INIT): Likewise.
28801 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28802
88c14915
VS
288032010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28804
28805 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28806 extra == 0.
28807
165134bc
VS
288082010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28809
28810 * commands/iorw.c: New file.
28811 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28812 (iorw_mod_SOURCES): New variable.
28813 (iorw_mod_CFLAGS): Likewise.
28814 (iorw_mod_LDFLAGS): Likewise.
28815
c5ac9b32
VS
288162010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28817
28818 Hotkey support
28819
28820 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28821 * normal/main.c (hotkey_aliases): New variable.
28822 (grub_normal_add_menu_entry): Parse "--hotkey".
28823 * normal/menu_text.c (run_menu): Handle hotkeys.
28824
ce60689c
VS
288252010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28826
28827 * kern/i386/coreboot/init.c (grub_machine_init): Call
28828 grub_machine_mmap_init on qemu.
28829
0359d006
VS
288302010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28831
28832 * boot/i386/qemu/boot.S: Add a missing .code16.
28833
7819a456
VS
288342010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28835
28836 Use LBIO on coreboot.
28837
28838 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28839 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28840 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28841 New declaration.
28842 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28843 grub_machine_mmap_init on coreboot.
28844 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28845 GRUB_LINUXBIOS_MEMBER_LINK.
28846 (grub_machine_mmap_iterate): Fix declaration.
28847 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28848
7210dca9
VS
288492010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28850
28851 Split coreboot and multiboot ports.
28852
28853 * conf/i386-multiboot.rmk: New file.
28854 * configure.ac: Add multiboot port.
28855 * include/grub/i386/multiboot/boot.h: New file.
28856 * include/grub/i386/multiboot/console.h: Likewise.
28857 * include/grub/i386/multiboot/init.h: Likewise.
28858 * include/grub/i386/multiboot/kernel.h: Likewise.
28859 * include/grub/i386/multiboot/loader.h: Likewise.
28860 * include/grub/i386/multiboot/memory.h: Likewise.
28861 * include/grub/i386/multiboot/serial.h: Likewise.
28862 * include/grub/i386/multiboot/time.h: Likewise.
28863 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28864 * loader/multiboot.c: Likewise.
28865 * loader/multiboot_mbi2.c: Likewise.
28866 * util/grub-mkrescue.in: Generate multiboot rescue.
28867
6f8aaf68
VS
288682010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28869
3080f7a7
VS
28870 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28871
288722010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28873
28874 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
28875
28876 * commands/terminal.c (abstract_terminal): New struct.
28877 (handle_command): New function. Based on grub_cmd_terminal_input.
28878 (grub_cmd_terminal_input): Use handle_command.
28879 (grub_cmd_terminal_output): Use handle_command.
28880
a8ebb841
BC
288812010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28882
28883 Fix comment handling.
28884
28885 * tests/grub_script_comments.in: New testcase.
28886 * conf/tests.rmk: Rules for new testcase.
28887 * script/yylex.l: Updated flex rules.
28888
bb06ba08
ST
288892010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28890
28891 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
28892 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28893 if argc is 1.
bb06ba08 28894
cc9d2425
VS
288952010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28896
28897 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28898 autogen issues.
28899
460d8402
CF
289002010-04-26 Christian Franke <franke@computer.org>
28901
28902 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28903 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28904 (grub_get_prefix): Remove function.
28905 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28906 make_system_path_relative_to_its_root ().
28907 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28908
553c01f9
CF
289092010-04-24 Christian Franke <franke@computer.org>
28910
28911 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28912 (kernel_img_LDFLAGS): Remove -static-libgcc.
28913
2aec1692
CF
289142010-04-24 Christian Franke <franke@computer.org>
28915
28916 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28917 and CHECK_END_SYMBOL if grub-emu is built.
28918 Unset TARGET_OBJ2ELF if grub-emu is built
28919 without module support.
28920
f67dc308
JS
289212010-04-24 Jiro SEKIBA <jir@unicus.jp>
28922
28923 Nilfs2 support.
28924
28925 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28926 (grub_fstest_SOURCES): Likewise.
28927 (pkglib_MODULES): Add nilfs2.mod.
28928 (nilfs2_mod_SOURCES): New variable.
28929 (nilfs2_mod_CFLAGS): Likewise.
28930 (nilfs2_mod_LDFLAGS): Likewise.
28931 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28932 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28933 * fs/nilfs2.c: New file.
28934
4ba8d354
VS
289352010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28936
28937 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28938 is not supported.
28939
0d2c20c6
GS
289402010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28941
28942 Add grub-mkconfig support for NetBSD.
28943
28944 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28945 * util/grub-mkconfig.in: export new NetBSD specific variables.
28946 * po/POTFILES-shell: added 10_netbsd.in.
28947 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28948
bc4a2d83
BC
289492010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28950
28951 Fix emu build with grub-emu-pci and grub-emu-modules.
28952
28953 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28954 functions.
28955 * include/grub/libpciaccess.h: New file.
28956 * conf/any-emu.rmk: Update kernel headers for emu build.
28957
f48c87aa
VS
289582010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28959
28960 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28961
18959385
VS
289622010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28963
28964 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28965
0037de3f
VS
289662010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28967
28968 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28969 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28970 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28971 util/ieee1275/ofpath.c.
28972 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28973 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28974 * include/grub/sparc64/ieee1275/boot.h
28975 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28976 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28977 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28978 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28979 const char *.
28980 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28981 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28982 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28983 install.
28984
38e55e90
GS
289852010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28986
28987 * util/grub-mkconfig.in: Corrected two == equality tests.
28988 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28989 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28990 expect a number appended to it.
28991 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28992 expects a number appended to it.
28993
a9e6ff28
VS
289942010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28995
28996 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28997
0b830b8f
VS
289982010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28999
29000 * util/hostdisk.c (make_device_name): Change to new partition naming.
29001
0973daeb
VS
290022010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29003
29004 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29005
460d8402 290062010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
29007
29008 * Makefile.in: Add missing localedir setting.
29009
0b456309
CW
290102010-04-14 Colin Watson <cjwatson@ubuntu.com>
29011
29012 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29013 mistake in r2156. Noticed by Anthony Fok.
29014
29015 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29016 @localedir@.
29017 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29018
08f46d62
BC
290192010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29020
29021 Fix a spurious, uninitialized variable warning.
29022
29023 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29024 Initialize variable, shdr.
29025 (grub_freebsd_load_elfmodule): Likewise.
29026 (grub_freebsd_load_elf_meta): Likewise.
29027
8c4a72d4
BC
290282010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29029
29030 Fix for escaped dollar in double quoted strings.
29031
29032 * script/yylex.l: Updated flex rules.
29033 * conf/tests.rmk: Rule for new testcase.
29034 * tests/grub_script_dollar.in: New testcase.
29035
ce44826e
CPE
290362010-04-13 Carles Pina i Estany <carles@pina.cat>
290372010-04-13 Colin Watson <cjwatson@ubuntu.com>
29038
29039 Enclose all translated strings in grub.cfg in single quotes, and
29040 escape them appropriately (Ubuntu bug #552921).
29041
29042 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29043 * util/grub.d/10_hurd.in: Use it.
29044 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29045 * util/grub.d/10_linux.in (linux_entry): Likewise.
29046
4b0cd8f8
VS
290472010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29048
29049 Fix cygwin compilation.
29050
29051 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29052 * include/grub/misc.h (__register_frame_info)
29053 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29054 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29055 * kern/misc.c (__register_frame_info)
29056 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29057 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29058
01fcf061
VS
290592010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29060
29061 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29062
5d04b11e
VS
290632010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29064
29065 Unify libgcc processing.
29066
29067 * Makefile.in (kernel_img_LDFLAGS): New variable.
29068 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29069 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29070 overwriting.
29071 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29072 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29073 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29074 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29075 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29076 overwriting. Remove -lgcc and -static-libgcc
29077 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29078 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29079 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29080 (kernel_img_LDFLAGS): Append instead of overwriting.
29081 Remove -lgcc and -static-libgcc
29082 * conf/sparc64-ieee1275.rmk: Likewise.
29083 * include/grub/powerpc/libgcc.h: Move to ...
29084 * include/grub/libgcc.h: .. this.
29085 * include/grub/libgcc.h: Don't export most of the function on x86.
29086 (__bswapsi2): New export.
29087 (__bswapdi2): Likewise.
29088 * include/grub/mips/libgcc.h: Removed.
29089 * include/grub/sparc64/libgcc.h: Likewise.
29090
b7f3ac29
VS
290912010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29092
29093 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29094 disk_info_msg (conflicts with gettexting into languages with cases).
29095
2c7031b1
GS
290962010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29097
29098 Add grub-probe support for NetBSD.
29099
29100 * util/getroot.c (find_root_device): Convert block device to
29101 character device on NetBSD.
29102 * util/probe.c (probe): Require character device on NetBSD.
29103 * util/hostdisk.c: NetBSD specific headers.
29104 (configure_device_driver): new function to tune device driver
29105 parameters (currently only for NetBSD floppy driver).
29106 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29107 via disklabel ioctl).
29108 (open_device): call configure_device_driver on NetBSD.
29109 (convert_system_partition_to_system_disk): NetBSD specific code.
29110 (device_is_wholedisk): Likewise.
29111 (grub_util_biosdisk_get_grub_dev): Likewise.
29112 (make_device_name): Fixed a typo in bsd_part_str.
29113 * configure.ac: check for opendisk() and getrawpartition() on
29114 NetBSD and set LIBUTIL.
29115 * Makefile.in: add LIBUTIL to LIBS.
29116
f516290c
BC
291172010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29118
29119 Documentation fix.
29120
29121 * util/grub-script-check.c: Better help message.
29122
d8dcc0df
BC
291232010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29124
29125 Fix FreeBSD build.
29126
29127 * configure.ac: Flex version check.
29128 * conf/common.rmk: Add -Wno-error to sh.mod.
29129 * script/yylex.l: Remove all #pragma.
29130
6734334a
VS
291312010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29132
29133 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29134 prototype.
29135 Reported by: Seth Goldberg.
29136
daea6abd
VS
291372010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29138
29139 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29140 Rename "module" to "module2".
29141 Reported by: Seth Goldberg.
29142
f2fd9d2b
VS
291432010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29144
29145 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29146 EXPORT_FUNC.
29147 Reported by: Seth Goldberg.
29148
be124579
VS
291492010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29150
29151 * lib/posix_wrap/locale.h: Add missing file.
29152 Reported by: Seth Goldberg.
29153
ef5da797
VS
291542010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29155
29156 grub-emu module load support.
29157
29158 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29159 NO_DYNAMIC_MODULES switched to this.
29160 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29161 (CFLAGS): Likewise.
29162 * conf/any-emu.rmk: Generate symlist.
29163 (kernel_img_HEADERS): Add util/datetime.h.
29164 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29165 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29166 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29167 kern/$(target_cpu)/cache.S.
29168 * configure.ac (grub-emu-modules): New option.
29169 * genmk.rb: Handle multiple source lists.
29170 * include/grub/sdl.h: New file.
29171 * include/grub/libusb.h: Likewise.
29172 * util/grub-emu.c (main): Hanle (host) root.
29173 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29174 GRUB_ERR_UNKNOWN_DEVICE.
29175 * util/misc.c: Move mm functions to ...
29176 * util/mm.c: ... here. All users updated.
29177
47822096
VS
291782010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29179
29180 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29181 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29182 missing files.
29183 (maintainer-clean): Remove libgcrypt-grub.
29184
5d7e7445
VS
291852010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29186
29187 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29188
25f4e252
EC
291892010-04-09 EFI Coder <eficoder@hotmail.com>
29190
29191 * normal/menu_text.c (print_message): Clean up the message and show
29192 the Fn information when on EFI
29193 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29194
027de555
VS
291952010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29196
29197 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29198 All users updated.
29199 * normal/crypto.c (read_crypto_list): Likewise.
29200 * normal/dyncmd.c (read_command_list): Likewise.
29201 * normal/term.c (read_terminal_list): Likewise.
29202 * normal/main.c (read_lists): Use explicit prefix.
29203 (read_lists_hook): Use read_lists.
29204 (grub_normal_execute): Likewise.
29205
47779711
VS
292062010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29207
29208 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29209 Reported by: Thomas Schmitt.
29210 Add -no-emul-boot to grub-mkisofs parameters.
29211
1118c32e
VS
292122010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29213
29214 * font/font.c: Indented.
29215
7d652447
BC
292162010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29217
29218 Elif support to GRUB script (by Deepak Vankadaru).
29219
29220 * tests/grub_script_if.in: New testcase.
29221 * conf/tests.rmk: Rule for new testcase.
29222 * script/parser.y: Grammar rules for elif.
29223
34bb22df
BC
292242010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29225
29226 While and until loops support to GRUB script.
29227
29228 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29229 (grub_script_create_cmdwhile): New function prototype.
29230 (grub_script_execute_cmdwhile): New function prototype.
29231 * script/execute.c (grub_script_execute_cmdwhile): New function.
29232 * script/parser.y (command): New commands.
29233 (whilecmd): New grammar rule.
29234 (untilcmd): New grammar rule.
29235 * script/script.c (grub_script_create_cmdwhile): New function.
29236 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29237 function.
29238
29239 * tests/grub_script_while1.in: New testcase.
29240 * conf/tests.rmk: Rule for new testcase.
29241
e215d8e0
VS
292422010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29243
29244 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29245 as *.jpg.
29246
d7c43ba1
MV
292472010-04-09 Mario Vazquez <mariovazq@gmail.com>
29248
29249 GRUB_BACKGROUND support.
29250
29251 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29252 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29253
d64795c0
VS
292542010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29255
29256 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 29257 Idea by: Mario Vazquez
d64795c0
VS
29258
29259 * util/grub.d/00_header.in: Load pf2 and image modules.
29260
f267f83a
VS
292612010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29262
29263 grub-mkconfig multiple terminal support.
29264
29265 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29266 * util/grub.d/00_header.in: Likewise.
29267
b7841ceb
VS
292682010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29269
29270 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29271 we use cd $(srcdir).
29272
df60998c
CW
292732010-04-08 Colin Watson <cjwatson@ubuntu.com>
29274
29275 * util/grub.d/10_linux.in: Only use the first word of
29276 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29277 spaces in GRUB_DISTRIBUTOR.
29278 * util/grub.d/10_kfreebsd.in: Likewise.
29279 * util/grub.d/10_hurd.in: Likewise.
29280
fa09c82e
BC
292812010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29282
14e18ae3 29283 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
29284
29285 * tests/util/grub-shell.in: Remove -serial stdio option.
29286
daf892b3
BC
292872010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29288
29289 POSIX header file wrappers.
29290
29291 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29292 equivalents.
29293 * lib/posix_wrap/ctype.h: Likewise.
29294 * lib/posix_wrap/errno.h: Likewise.
29295 * lib/posix_wrap/langinfo.h: Likewise.
29296 * lib/posix_wrap/limits.h: Likewise.
29297 * lib/posix_wrap/localcharset.h: Likewise.
29298 * lib/posix_wrap/stdint.h: Likewise.
29299 * lib/posix_wrap/stdio.h: Likewise.
29300 * lib/posix_wrap/stdlib.h: Likewise.
29301 * lib/posix_wrap/string.h: Likewise.
29302 * lib/posix_wrap/sys/types.h: Likewise.
29303 * lib/posix_wrap/unistd.h: Likewise.
29304 * lib/posix_wrap/wchar.h: Likewise.
29305 * lib/posix_wrap/wctype.h: Likewise.
29306 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29307 (grub_script.yy.h): Likewise.
29308 * script/yylex.l: Remove POSIX emulation #defines.
29309 * Makefile.in (POSIX_CFLAGS): New variable.
29310 (GNULIB_UTIL_CFLAGS): Likewise.
29311
29312 Regexp support.
29313
29314 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29315 (regexp_mod_SOURCES): New variable.
29316 (regexp_mod_CFLAGS): Likewise.
29317 (regexp_mod_LDFLAGS): Likewise.
29318 * commands/regexp.c: New file.
29319 * gnulib/regcomp.c: New file. Imported from gnulib.
29320 * gnulib/regex.c: Likewise.
29321 * gnulib/regex_internal.c: Likewise.
29322 * gnulib/regex_internal.h: Likewise.
29323 * gnulib/regexec.c: Likewise.
29324 * gnulib/regex.h: Likewise.
29325
974ac4f7
VS
293262010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29327
29328 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29329 unsupported video mode types.
29330
2622c3ff
VS
293312010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29332
29333 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29334
064cb524
VS
293352010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29336
29337 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29338 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29339
a8c3b552
VS
293402010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29341
29342 Remove unused grub_vga_get_font.
29343
29344 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29345 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29346
187bbe3d
GS
293472010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29348
29349 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29350 * include/grub/misc.h: Likewise.
29351
b9396631
GS
293522010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29353
29354 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29355 for which failure is fatal.
29356
50479feb
GS
293572010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29358
29359 * util/grub-install.in: Use mkdir -p to create grub directory.
29360 * util/i386/efi/grub-install.in: Likewise.
29361 * util/ieee1275/grub-install.in: Likewise.
29362
b1654fdf
GS
293632010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29364
29365 * Makefile.in (LEX): new variable.
29366
bd5a6415
GS
293672010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29368
29369 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29370 `=' and added double quotes on operands of this equality test.
29371
3db3a82b
VS
293722010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29373
29374 * Makefile.in (uninstall): Remove a leftover debug echo.
29375 Reported by: Grégoire Sutre
29376
38023412
VS
293772010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29378
29379 MIPS multiboot2 support.
29380
29381 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29382 (multiboot2_mod_SOURCES): New variable.
29383 (multiboot2_mod_CFLAGS): Likewise.
29384 (multiboot2_mod_LDFLAGS): Likewise.
29385 (multiboot2_mod_ASFLAGS): Likewise.
29386 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29387 definition.
29388 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29389 (MULTIBOOT_MBI_REGISTER): Likewise.
29390 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29391 (MULTIBOOT_ELF32_MACHINE): Likewise.
29392 (MULTIBOOT_ELF64_MACHINE): Likewise.
29393 * include/grub/mips/multiboot.h: New file.
29394 * include/grub/video.h (grub_video_driver_id): New type
29395 GRUB_VIDEO_DRIVER_SM712.
29396 (grub_video_get_info_and_fini): Export.
29397 (grub_video_get_palette): Likewise.
29398 (grub_video_get_driver_id): Likewise.
29399 * include/multiboot2.h: Resynced with spec.
29400 * loader/i386/multiboot.c: Moved from here ...
29401 * loader/multiboot.c: ... here. All users updated.
29402 (grub_multiboot_boot): Use platform-specific macros.
29403 * loader/i386/multiboot_elfxx.c: Moved from here ...
29404 * loader/multiboot_elfxx.c: ... here. All users updated.
29405 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29406 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29407 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29408
47674667
VS
294092010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29410
29411 Import gnulib argp module.
29412
29413 * gnulib/argp-ba.c: New file.
29414 * gnulib/argp-eexst.c: Likewise.
29415 * gnulib/argp-fmtstream.c: Likewise.
29416 * gnulib/argp-fmtstream.h: Likewise.
29417 * gnulib/argp-fs-xinl.c: Likewise.
29418 * gnulib/argp-help.c: Likewise.
29419 * gnulib/argp-namefrob.h: Likewise.
29420 * gnulib/argp-parse.c: Likewise.
29421 * gnulib/argp-pin.c: Likewise.
29422 * gnulib/argp-pv.c: Likewise.
29423 * gnulib/argp-pvh.c: Likewise.
29424 * gnulib/argp-version-etc.c: Likewise.
29425 * gnulib/argp-version-etc.h: Likewise.
29426 * gnulib/argp-xinl.c: Likewise.
29427 * gnulib/argp.h: Likewise.
29428
495442ed
VS
294292010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29430
29431 * kern/device.c (grub_device_iterate): Clear errors after failed
29432 opening device.
29433
f9fd65df
VS
294342010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29435
29436 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29437 returned by firmware.
29438
af09641e
VS
294392010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29440
29441 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29442 compilation on coreboot and qemu
29443
016883a5
VS
294442010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29445
29446 * include/multiboot2.h: Resync with spec.
29447
f97e1f7d
VS
294482010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29449
29450 Multiboot2 tag support
29451
29452 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29453 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29454 Remove loader/multiboot_loader.c.
29455 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29456 (grub_multiboot2_real_boot): Likewise.
29457 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29458 (grub_get_multiboot_mmap_count): New proto.
29459 (grub_fill_multiboot_mmap): Likewise.
29460 (grub_multiboot_set_video_mode): Likewise.
29461 (grub_multiboot_set_console): Likewise.
29462 (grub_multiboot_load): Likewise.
29463 (grub_multiboot_load_elf): Likewise.
29464 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29465 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29466 * include/multiboot.h: Resynced with specification.
29467 * include/multiboot2.h: Resynced with specification.
29468 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29469 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29470 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29471 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29472 users updated.
29473 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29474 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29475 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29476 Removed.
29477 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29478 Moved from here...
29479 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29480 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29481 Moved from here...
29482 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29483 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29484 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29485 All users updated.
29486 * loader/i386/multiboot_mbi2.c: New file.
29487
3506b90b
VS
294882010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29489
29490 Resync with gnulib.
29491
29492 * Makefile.in (GNULIB_CFLAGS): New variable.
29493 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29494 (grub_script_check_CFLAGS): New variable.
29495 * gnulib/alloca.h: Resync with gnulib.
29496 * gnulib/error.c: Likewise.
29497 * gnulib/error.h: Likewise.
29498 * gnulib/fnmatch.c: Likewise.
29499 * gnulib/fnmatch_loop.c: Likewise.
29500 * gnulib/getdelim.c: Likewise.
29501 * gnulib/getline.c: Likewise.
29502 * gnulib/getopt.c: Likewise.
29503 * gnulib/getopt1.c: Likewise.
29504 * gnulib/getopt_int.h: Likewise.
29505 * gnulib/gettext.h: Likewise.
29506 * gnulib/progname.c: Likewise.
29507 * gnulib/progname.h: Likewise.
29508
394a3120
GS
295092010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29510
29511 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29512 which is the case with --disabled-nls.
29513
29514 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29515 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29516 * util/misc.c: Likewise.
29517 * util/mkisofs/mkisofs.c: Likewise.
29518 * util/mkisofs/mkisofs.h: Likewise.
29519
969d1c78
VS
295202010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29521
29522 Simplify Apple CC support.
29523
29524 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29525 Add 0 byte at the end not to have a symbol with empty target.
29526 * mmap/i386/pc/mmap_helper.S: Likewise.
29527 * genmk.rb: Ignore errors 2030 and 2050.
29528 * kern/i386/pc/startup.S: Use LOCAL when possible.
29529
8d2977bb
BC
295302010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29531
29532 Testcase and the fix for final semicolon on cmdline.
29533
29534 * tests/grub_script_final_semicolon.in: New testcase.
29535 * conf/tests.rmk: Rules for the new testcase.
29536 * script/parser.y: Grammar fix.
29537
a7bd6915
BC
295382010-03-26 BVK Chaitanya <bvk@localhost>
29539
29540 Blank lines testcase for GRUB script.
29541
29542 * tests/grub_script_blanklines.in: New testcase.
29543 * conf/tests.rmk: Rules for the new testcase.
29544
e4ff6628
VS
295452010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29546
29547 Don't use __FILE__.
29548
29549 * genmk.rb: Add -DGRUB_FILE to all C targets.
29550 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29551 * include/grub/list.h: Likewise.
29552 * include/grub/misc.h: Likewise.
29553 * include/grub/mm.h: Likewise.
29554 * include/grub/test.h: Likewise.
29555 * kern/mm.c: Likewise.
29556 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29557
6a5cf6b6
VS
295582010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29559
29560 Sunpc partitions support.
29561
29562 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29563 (grub_fstest_SOURCES): Likewise.
29564 (pkglib_MODULES): Add part_sunpc.mod.
29565 (part_sunpc_mod_SOURCES): New variable.
29566 (part_sunpc_mod_CFLAGS): Likewise.
29567 (part_sunpc_mod_LDFLAGS): Likewise.
29568 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29569 * partmap/sunpc.c: New file.
29570
746d9045
BC
295712010-03-26 BVK Chaitanya <bvk@localhost>
29572
29573 For loop support to GRUB script.
29574
29575 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29576 (grub_script_create_cmdfor): New function prototype.
29577 (grub_script_execute_cmdfor): New function prototype.
29578 * script/execute.c (grub_script_execute_cmdfor): New function.
29579 * script/parser.y (command): New for command.
29580 (forcmd): New grammar rule.
29581 * script/script.c (grub_script_create_cmdfor): New function.
29582 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29583 function.
29584 * tests/grub_script_for1.in: New testcase.
29585 * conf/tests.rmk: Rules for new testcase.
29586
18486b18
VS
295872010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29588
29589 Nested partitions
29590
29591 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29592 'partition' is NULL, grub_partition_get_start already does that.
29593 * commands/loadenv.c (check_blocklists): Likewise.
29594 (write_blocklists): Likewise.
29595 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29596 (grub_fstest_SOURCES): Likewise.
29597 (pkglib_MODULES): Add part_bsd.mod.
29598 (part_bsd_mod_SOURCES): New variable.
29599 (part_bsd_mod_CFLAGS): Likewise.
29600 (part_bsd_mod_LDFLAGS): Likewise.
29601 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29602 (grub_emu_SOURCES): Likewise.
29603 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29604 * include/grub/bsdlabel.h: New file.
29605 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29606 'get_name'.
29607 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29608 (grub_partition_map_list): New variable.
29609 (grub_partition_map_register): Inline.
29610 (grub_partition_map_unregister): Likewise.
29611 (FOR_PARTITION_MAPS): New macro.
29612 (grub_partition_map_iterate): Removed.
29613 (grub_partition_get_start): Handle nested partitions.
29614 * include/grub/msdos_partition.h: Remove bsd-related entries.
29615 (grub_pc_partition): Remove.
29616 * kern/disk.c (grub_disk_close): Free partition data.
29617 (grub_disk_adjust_range): Handle nested partitions.
29618 * kern/partition.c (grub_partition_map_probe): New function.
29619 (grub_partition_probe): Parse name to number, handle subpartitions.
29620 (get_partmap): New function.
29621 (grub_partition_iterate): Handle subpartitions.
29622 (grub_partition_get_name): Likewise.
29623 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29624 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29625 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29626 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29627 Set 'number'.
29628 (acorn_partition_map_probe): Remove.
29629 (acorn_partition_map_get_name): Likewise.
29630 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29631 Set 'number'.
29632 Set 'index' to 0 since there can be only one partition entry per sector.
29633 (amiga_partition_map_probe): Remove.
29634 (amiga_partition_map_get_name): Likewise.
29635 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29636 Set 'number'.
29637 Set 'offset' and 'index' to real positions of partitions.
29638 (apple_partition_map_probe): Remove.
29639 (apple_partition_map_get_name): Likewise.
29640 * partmap/bsdlabel.c: New file.
29641 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29642 Set 'number'.
29643 Allocate 'data' so it can be correctly freed.
29644 Set 'index' to offset inside sector.
29645 (gpt_partition_map_probe): Remove.
29646 (gpt_partition_map_get_name): Likewise.
29647 * partmap/msdos.c (grub_partition_parse): Remove.
29648 (pc_partition_map_iterate): Don't force raw access.
29649 Set 'number'.
29650 Make 'ext_offset' a local variable.
29651 (pc_partition_map_probe): Remove.
29652 (pc_partition_map_get_name): Remove.
29653 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29654 Set 'number'.
29655 (sun_partition_map_probe): Remove.
29656 (sun_partition_map_get_name): Likewise.
29657 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29658 (grub_pcpart_type): Likewise.
29659 * util/hostdisk.c (open_device): Handle new numbering scheme.
29660 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29661 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29662 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29663 * util/grub-install.in: Insert all subpartition modules.
29664 * util/ieee1275/grub-install.in: Likewise.
29665
a3940f88
AG
296662010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29667
29668 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29669 grammar.
29670
21b99926 296712010-03-24 Colin Watson <cjwatson@ubuntu.com>
29672
29673 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29674
bed1d352
CW
296752010-03-21 Colin Watson <cjwatson@ubuntu.com>
29676
29677 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29678 match where 'make install' puts them.
29679 * util/i386/efi/grub-install.in: Likewise.
29680
c9f58427
CW
296812010-03-19 Colin Watson <cjwatson@ubuntu.com>
29682
29683 * .bzrignore: Add gentrigtables, grub-script-check,
29684 grub_script_check_init.c, grub_script_check_init.h, and
29685 trigtables.c.
29686
f84afb27
VS
296872010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29688
29689 * kern/parser.c: Indented.
29690
ed0e3d30
VS
296912010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29692
29693 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29694
0ea81d98
VS
296952010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29696
29697 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29698 alpha_mask_size == 0 case.
29699
0cdc2a09
BC
297002010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29701
29702 GRUB shell lexer and parser improvements.
29703
29704 * conf/any-emu.rmk: Build rule updates.
29705 * conf/common.rmk: Likewise.
29706 * conf/i386-coreboot.rmk: Likewise.
29707 * conf/i386-efi.rmk: Likewise.
29708 * conf/i386-ieee1275.rmk: Likewise.
29709 * conf/i386-pc.rmk: Likewise.
29710 * conf/powerpc-ieee1275.rmk: Likewise.
29711 * conf/x86_64-efi.rmk: Likewise.
29712
29713 * configure.ac: Configure check for flex.
29714
29715 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29716 types.
29717 (grub_lexer_param): Struct member updates.
29718 (grub_parser_param): Likewise.
29719 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29720 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29721 (grub_script_lexer_init): Prototype update.
29722 (grub_script_lexer_record_start): Likewise.
29723 (grub_script_lexer_record_stop): Likewise.
29724 (grub_script_lexer_yywrap): New function prototype.
29725 (grub_script_lexer_fini): Likewise.
29726 (grub_script_execute_argument_to_string): Removed by...
29727 (grub_script_execute_argument_to_argv): ...better version.
29728
29729 * script/execute.c (ROUND_UPTO): New macro.
29730 (grub_script_execute_cmdline): Out of memory fixes.
29731 (grub_script_execute_menuentry): Likewise.
29732 (grub_script_execute_argument_to_string): Removed. Update all
29733 users by...
29734 (grub_script_execute_argument_to_argv): ...better version.
29735 * script/function.c (grub_script_function_create): Use
29736 grub_script_execute_argument_to_argv instead of
29737 grub_script_execute_argument_to_string.
29738
29739 * script/lexer.c (check_varstate): Removed.
29740 (check_textstate): Removed.
29741 (grub_script_lexer_record_start): Likewise.
29742 (grub_script_lexer_record_stop): Likewise.
29743 (recordchar): Replaced with...
29744 (grub_script_lexer_record): ...new function.
29745 (nextchar): Removed.
29746 (grub_script_lexer_init): Rewritten.
29747 (grub_script_yylex): Rewritten.
29748 (append_newline): New function.
29749 (grub_script_lexer_yywrap): New function.
29750 (grub_script_lexer_fini): New function.
29751 (grub_script_yyerror): Sets error flag.
29752
29753 * script/yylex.l: New file.
29754 (grub_lexer_yyfree): Wrapper for flex yyffre.
29755 (grub_lexer_yyalloc): Likewise.
29756 (grub_lexer_yyrealloc): Likewise.
29757 * script/parser.y: Refactored.
29758
29759 * script/script.c (grub_script_arg_add): Out of memory fixes.
29760 (grub_script_add_arglist): Likewise.
29761 (grub_script_create_cmdline): Likewise.
29762 (grub_script_create_cmdmenu): Likewise.
29763 (grub_script_add_cmd): Likewise.
29764 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29765 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29766 unnecessary code.
29767
29768 * tests/grub_script_echo1.in: New testcase.
29769 * tests/grub_script_vars1.in: New testcase.
29770 * tests/grub_script_echo_keywords.in: New testcase.
29771
1d63a066
VS
297722010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29773
29774 Remove some redundancy in build system.
29775
29776 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29777 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29778 (TARGET_LDFLAGS): Add -nostdlib.
29779 (TARGET_IMG_LDFLAGS): Likewise.
29780 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29781 anything since mmap isn't available.
29782 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29783 Add util/time.c.
29784 (pkglib_MODULES): Remove reboot.mod.
29785 (reboot_mod_SOURCES): Removed.
29786 (reboot_mod_CFLAGS): Likewise.
29787 (reboot_mod_LDFLAGS): Likewise.
29788 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29789 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29790 (DEFSYMFILES): Add kernel_syms.lst.
29791 (kernel_img_HEADERS): Add common headers.
29792 (symlist.c): New target.
29793 (kernel_syms.lst): Likewise.
29794 (pkglib_MODULES): Add memdisk.mod.
29795 (memdisk_mod_SOURCES): New variable.
29796 (memdisk_mod_CFLAGS): Likewise.
29797 (memdisk_mod_LDFLAGS): Likewise.
29798 (pkglib_MODULES): Add reboot.mod.
29799 (reboot_mod_SOURCES): New variable.
29800 (reboot_mod_CFLAGS): Likewise.
29801 (reboot_mod_LDFLAGS): Likewise.
29802 (pkglib_MODULES): Add date.mod.
29803 (date_mod_SOURCES): New variable.
29804 (date_mod_CFLAGS): Likewise.
29805 (date_mod_LDFLAGS): Likewise.
29806 (pkglib_MODULES): Add datehook.mod.
29807 (datehook_mod_SOURCES): New variable.
29808 (datehook_mod_CFLAGS): Likewise.
29809 (datehook_mod_LDFLAGS): Likewise.
29810 (pkglib_MODULES): Add lsmmap.mod.
29811 (lsmmap_mod_SOURCES): New variable.
29812 (lsmmap_mod_CFLAGS): Likewise.
29813 (lsmmap_mod_LDFLAGS): Likewise.
29814 (pkglib_MODULES): Add boot.mod.
29815 (boot_mod_SOURCES): New variable.
29816 (boot_mod_CFLAGS): Likewise.
29817 (boot_mod_LDFLAGS): Likewise.
29818 * conf/i386-coreboot.rmk: Removed redundant parts.
29819 * conf/i386-ieee1275.rmk: Likewise.
29820 * conf/i386-pc.rmk: Likewise.
29821 * conf/mips-yeeloong.rmk: Likewise.
29822 * conf/mips.rmk: Likewise.
29823 * conf/powerpc-ieee1275.rmk: Likewise.
29824 * conf/sparc64-ieee1275.rmk: Likewise.
29825 * conf/x86_64-efi.rmk: Likewise.
29826 * conf/i386-coreboot.rmk: Moved qemu parts ..
29827 * conf/i386-qemu.rmk: ... here
29828 * conf/i386-efi.rmk: Moved common parts to...
29829 * conf/x86-efi.rmk: ... here.
29830 * conf/i386.rmk: Added modules common to all x86 variants.
29831 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29832 * disk/memdisk.c: Remove grub/machine/kernel.h.
29833 * gensymlist.sh.in: Include symbol.h.
29834 * hook/datehook.c: Correct module name.
29835 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29836 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29837 * include/grub/i386/efi/serial.h: New file.
29838 * include/grub/x86_64/efi/serial.h: Likewise.
29839 * util/time.c: Likewise.
29840 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29841
463ac55f
CK
298422010-03-14 Colin King <colin.king@ubuntu.com>
298432010-03-14 Colin Watson <cjwatson@ubuntu.com>
29844
29845 Shrink the pre-partition-table part of boot.img by eight bytes.
29846
29847 * boot/i386/pc/boot.S (ERR): New macro.
29848 (chs_mode): Use ERR.
29849 (geometry_error): Likewise.
29850 (hd_probe_error): Remove. This is only used once, so we wrwite
29851 it inline instead.
29852 (read_error): Instead of printing read_error_string, just set up
29853 %si and fall through to ...
29854 (error_message): ... this new function, also used by ERR.
29855
08e46ede
CW
298562010-03-14 Colin Watson <cjwatson@ubuntu.com>
29857
29858 Speed up consecutive hostdisk operations on the same device.
29859
29860 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29861 (grub_util_biosdisk_open): Initialise disk->data.
29862 (struct linux_partition_cache): New structure.
29863 (linux_find_partition): Cache partition start positions; these are
29864 expensive to compute on every read and write.
29865 (open_device): Cache open file descriptor in disk->data, so that we
29866 don't have to reopen it and flush the buffer cache for consecutive
29867 operations on the same device.
29868 (grub_util_biosdisk_close): New function.
29869 (grub_util_biosdisk_dev): Set `close' member.
29870
29871 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29872 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29873 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29874 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29875 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29876
4a6d2d06
VS
298772010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29878
29879 Compile parts of grub-emu as modules.
29880
29881 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29882 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29883 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29884 (all-local): Add $(GRUB_EMU).
29885 (install-local): Install $(GRUB_EMU).
29886 (uninstall): Uninstall $(GRUB_EMU).
29887 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29888 * kern/dl.c: Likewise.
29889 * commands/sleep.c: Not include machine/time.h.
29890 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29891 (COMMON_CFLAGS): Likewise.
29892 (sbin_UTILITIES): Remove grub-emu.
29893 (grub_emu_SOURCES): Removed.
29894 (kernel_img_RELOCATABLE): New variable.
29895 (pkglib_PROGRAMS): Add kernel.img.
29896 (kernel_img_SOURCES): New variable
29897 (kernel_img_CFLAGS): Likewise.
29898 (kernel_img_LDFLAGS): Likewise.
29899 (TARGET_NO_STRIP): Likewise.
29900 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29901 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29902 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29903 (grub-emu): New target.
29904 (GRUB_EMU): New variable.
29905 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29906 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29907 * loader/xnu.c: Likewise.
29908 * include/grub/pci.h: Likewise.
29909 * genemuinit.sh: New file.
29910 * genemuinitheader.sh: Likewise.
29911 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29912 Support TARGET_NO_DYNAMIC_MODULES.
29913 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29914 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29915 * disk/loopback.c: Likewise.
29916 * font/font_cmd.c: Likewise.
29917 * partmap/acorn.c: Likewise.
29918 * partmap/amiga.c: Likewise.
29919 * partmap/apple.c: Likewise.
29920 * partmap/gpt.c: Likewise.
29921 * partmap/msdos.c: Likewise.
29922 * partmap/sun.c: Likewise.
29923 * parttool/msdospart.c: Likewise.
29924 * term/gfxterm.c: Likewise.
29925 * video/bitmap.c: Likewise.
29926 * video/readers/jpeg.c: Likewise.
29927 * video/readers/png.c: Likewise.
29928 * video/readers/tga.c: Likewise.
29929 * video/video.c: Likewise.
29930 * util/grub-emu.c (read_command_list): Removed.
29931 (main): Don't call util_init_nls.
29932 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29933 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29934
91fdd2ed
VS
299352010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29936
29937 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29938 date.mod, datehook.mod.
29939 (datetime_mod_SOURCES): New variable.
29940 (datetime_mod_CFLAGS): Likewise.
29941 (datetime_mod_LDFLAGS): Likewise.
29942 (date_mod_SOURCES): Likewise.
29943 (date_mod_CFLAGS): Likewise.
29944 (date_mod_LDFLAGS): Likewise.
29945 (datehook_mod_SOURCES): Likewise.
29946 (datehook_mod_CFLAGS): Likewise.
29947 (datehook_mod_LDFLAGS): Likewise.
29948 * conf/sparc64-ieee1275.rmk: Likewise.
29949 * lib/ieee1275/datetime.c: New file.
29950
873ccae6
VS
299512010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29952
29953 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29954 (ieee1275_fb_mod_SOURCES): New variable.
29955 (ieee1275_fb_mod_CFLAGS): Likewise.
29956 (ieee1275_fb_mod_LDFLAGS): Likewise.
29957 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29958 New proto.
29959 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29960 (HEAP_MAX_ADDR): Likewise.
29961 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29962 type.
29963 Correct stop condition.
29964 (grub_ieee1275_devices_iterate): New function.
29965 * video/ieee1275.c: New file.
29966
601c97c0
VS
299672010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29968
29969 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29970
29971 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29972 as scratch.
29973 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29974 SCRATCH_PAD_DISKBOOT as scratch.
29975 (bootit): Pass Openfirmware pointer in %o4.
29976 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29977 of 0x200000.
29978 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29979 with util/grub-mkrawimage.c.
29980 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29981 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29982 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29983 (grub_aout_load) [GRUB_UTIL]: Likewise.
29984 * include/grub/kernel.h (grub_modules_get_end): New proto.
29985 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29986 (SCRATCH_PAD_BOOT): New definition.
29987 (SCRATCH_PAD_DISKBOOT): Likewise.
29988 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29989 * include/grub/sparc64/ieee1275/ieee1275.h
29990 (grub_ieee1275_original_stack): New variable
29991 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29992 New definition
29993 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29994 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29995 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29996 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29997 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29998 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29999 (grub_platform_image_format_t): New type.
30000 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30001 * kern/main.c (grub_modules_get_end)
30002 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30003 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30004 (codestart): Switch stacks.
30005 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30006 variable.
30007 (grub_heap_init): Use grub_modules_get_end.
30008 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30009 stack.
30010 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30011 (main): Likewise.
30012 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30013
d68b491e
TG
300142010-03-14 Thorsten Glaser <tg@mirbsd.org>
30015
30016 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30017
4e02ed50
MK
300182010-03-08 Matt Kraai <kraai@ftbfs.org>
30019
30020 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30021 bug #559005).
30022
1f15fc1e
VS
300232010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30024
30025 * genmoddep.awk: Output all missing symbols and not only first.
30026
fce5d8ff
VS
300272010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30028
30029 * NEWS: Put the date of 1.98 release.
30030
d1e8a02f
VS
300312010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30032
30033 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30034 ft2build.h.
30035
696fd607
VS
300362010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30037
30038 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30039 completition in the middle of string.
30040
33e2e6f3
VS
300412010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30042
30043 * util/grub-mkrescue.in: Use mktemp with explicit template.
30044
b1f6d291
VS
300452010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30046
30047 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30048
2ac227c7
VS
300492010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30050
30051 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30052 right pointer.
30053
8f9a632b
VS
300542010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30055
30056 Fix FreeBSD compilation.
30057
30058 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30059 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30060
60b03859
VS
300612010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30062
30063 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30064
48a5a769
VS
300652010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30066
30067 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30068
3ab4bd77
VS
300692010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30070
30071 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30072
d116e0d8
RM
300732010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30074
30075 Support relative image path in theme file.
30076
30077 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30078 (image_set_property): Handle theme_dir and relative path.
30079
c7ef54aa
VS
300802010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30081
30082 * configure.ac: Alias amd64 to x86_64.
30083
fcee14ed
VS
300842010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30085
30086 * NEWS: mention multiboot on EFI.
30087
d0780363
VS
300882010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30089
30090 * kern/main.c (grub_load_modules): Handle errors from init functions of
30091 embeded modules.
30092
41168ea4
VS
300932010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30094
30095 * normal/autofs.c (autoload_fs_module): Handle errors.
30096
b54d93ac
VS
300972010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30098
30099 Disable linux.mod on qemu-mips since it's not functional and leads
30100 to compilation failure.
30101
30102 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30103 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30104 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30105 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30106 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30107 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30108 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30109 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30110 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30111 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30112 Reported by: BVK Chaitanya
30113
fc8345da
JU
301142010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30115
30116 * INSTALL: Add gettext as a dependency and add qemu to a new section
30117 "Prerequisites for make-check".
30118
4760f979
CF
301192010-03-04 Christian Franke <franke@computer.org>
30120
30121 * util/grub-pe2elf.c: Add missing include "progname.h".
30122
f209b5b2
VS
301232010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30124
30125 * normal/crypto.c (read_crypto_list): Fix a typo.
30126 Reported by: Seth Goldberg.
30127
b4b7be98
VS
301282010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30129
30130 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 30131 Reported by: Seth Goldberg.
b4b7be98 30132
c0ee0385
VS
301332010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30134
30135 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30136 ascii.bitmaps.
30137
a8efbf64
VS
301382010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30139
30140 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 30141 Reported by: Seth Goldberg.
a8efbf64 30142
08dcd913
VS
301432010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30144
30145 * util/i386/efi/grub-install.in: Copy gettext files.
30146
c4d0b332
VS
301472010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30148
30149 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30150
c6f2fe52
VS
301512010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30152
30153 Wait for user entry basing on presence of output rather than on errors.
30154
30155 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30156 (grub_install_newline_hook): Likewise.
30157 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30158 * normal/menu.c (show_menu): Check line_counter to determine presence
30159 of output.
30160 * normal/term.c (grub_normal_line_counter): New variable.
30161 (grub_normal_get_line_counter): New function.
30162 (grub_install_newline_hook): Likewise.
30163
5382b1e4
VS
301642010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30165
30166 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30167
5519963b
VS
301682010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30169
30170 * configure.ac: Update version to 1.98.
30171
72b28631
VS
301722010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30173
30174 * util/grub.d/10_linux.in (linux_entry): Don't default to
30175 gfxpayload=keep if Linux doesn't support video handover.
30176
c140a180
VS
301772010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30178
30179 Don't compile video modules on yeeloong since video subsystem is part
30180 of kernel.
30181
30182 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30183 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30184 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30185 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30186 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30187 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30188 * include/grub/bitmap_scale.h: Likewise.
30189 * include/grub/bufio.h: Likewise.
30190 * include/grub/font.h: Likewise.
30191 * include/grub/gfxterm.h: Likewise.
30192 * include/grub/video.h: Likewise.
30193 * include/grub/vbe.h: Don't include video_fb.h.
30194 * video/i386/pc/vbe.c: Include video_fb.h.
30195 * commands/i386/pc/vbetest.c: Include video.h.
30196
a0ca21c2
CW
301972010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30198
30199 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30200 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30201 default entry if GRUB_SAVEDEFAULT=true. This allows using
30202 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30203 saving a new default on every boot.
30204
4a8a763c
VS
302052010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30206
30207 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30208 * normal/term.c (read_terminal_list): Likewise.
30209 * normal/main.c (grub_normal_init_page): Likewise.
30210 (grub_normal_read_line_real): Likewise.
30211
607ffde2
VS
302122010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30213
30214 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30215 memory leak.
30216 Reported by: Seth Goldberg.
30217
2b8fa975
CW
302182010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30219
30220 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30221 duplicate declaration of `start'.
30222
618307dd
VS
302232010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30224
30225 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30226 filename.
30227 Reported by: Georgy Buranov
30228
7dd05b96 302292010-02-20 Carles Pina i Estany <carles@pina.cat>
30230
30231 * util/grub-mkrawimage.c (usage): Change string formatting to
30232 improve gettext.
30233
d1484a42
MRA
302342010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30235
30236 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30237 backspace keys.
30238
42b1d186
VS
302392010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30240
30241 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30242 Reported by: Michael Suchanek.
30243
302442010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
30245
30246 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30247 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30248
d9f31a41
VS
302492010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30250
30251 Remove any reference to non-free fonts.
30252
30253 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30254 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30255 uses non-free components.
30256 * font/font.c (grub_font_get_name): Remove example name.
30257 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30258 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30259 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30260 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30261
2793c71e
GB
302622010-02-16 Georgy Buranov <gburanov@gmail.com>
30263
30264 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30265
402e3779
VS
302662010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30267
30268 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30269 Double divisor.
30270 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30271 features.
30272 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30273
0dd1e0dd
VS
302742010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30275
30276 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30277
6fa7cfce
ST
302782010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30279
30280 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30281 * docs/grub.texi (Command-line and menu entry commands): Document play
30282 command.
30283
37c8483b
ST
302842010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30285
30286 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30287 parse arguments as inline tempo and notes. Move code for playing notes
30288 to...
30289 (play): ... new function.
30290
14da0fb7
ST
302912010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30292
30293 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30294 grub_uint16_t instead of short.
30295 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30296 disk from little endian to cpu endianness.
30297
04459e70
ST
302982010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30299
30300 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30301 GRUB_TICKS_PER_SECOND instead of 120.
30302
a0876943
VS
303032010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30304
30305 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30306 escape sequence after \e.
30307
e29f95dc
VS
303082010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30309
30310 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30311 non-ASCII characters.
30312
d27859b2
VS
303132010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30314
30315 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30316 set root in single quotes to prevent \, from being unescaped.
30317
bc028f2f
VS
303182010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30319
30320 Prevent unknown commands from stopping menuentry execution.
30321
30322 * script/execute.c (grub_script_execute_cmdline): Print error after
30323 unknown command.
30324
095f5f82
VS
303252010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30326
30327 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30328 Reported by: Pavel Pisa.
30329
8c717950
VS
303302010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30331
30332 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30333
904935c3
VS
303342010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30335
30336 Merge grub_ieee1275_map_physical into grub_map and rename to
30337 grub_ieee1275_map
30338
30339 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30340 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30341 Remove.
30342 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30343 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30344 necessary.
30345 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30346
5b59a4e3
VS
303472010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30348
30349 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30350 opening and not after.
30351
69e137e8
VS
303522010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30353
30354 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30355 constants.
30356
2c0fcc36
VS
303572010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30358
30359 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30360 (alloc_phys): Use ALIGN_UP instead of align_addr.
30361
8c6052ce
VS
303622010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30363
30364 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30365
17cec782
VS
303662010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30367
30368 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30369
e0128bbd
VS
303702010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30371
30372 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30373 verbose dprintf.
30374
ca62070b
VS
303752010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30376
30377 Fix over-4GiB seek on sparc64.
30378
30379 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30380 Replace pos_i and pos_lo with pos. All users updated.
30381 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30382 New constant.
30383 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30384 Likewise.
30385 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30386 and pos_lo.
30387
bdca2607
VS
303882010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30389
30390 * util/grub-mkrawimage.c (main): Call set_program_name.
30391
da278c4d
VS
303922010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30393
30394 Properly align 64-bit targets.
30395
30396 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30397 (generate_image): Use ALIGN_ADDR.
30398
b274d734
VS
303992010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30400
30401 Properly create cross-endian images.
30402
30403 * include/grub/types.h (grub_host_to_target_addr): New macro
30404 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30405
82da2062
VS
304062010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30407
30408 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30409
7cae4377
VS
304102010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30411
30412 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30413
30414 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30415 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30416 (grub_linux_boot): Divide by 64K when on VESA.
30417
65a533e7
VS
304182010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30419
30420 Support GRUB_GFXPAYLOAD_LINUX.
30421
30422 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30423 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30424
dd01d397
VS
304252010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30426
30427 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30428 to show messages instead of discarding them.
30429 Process errors after executing command and not before. Keep old method
30430 too as precaution.
30431
660960d6
VS
304322010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30433
30434 * configure.ac: Check for ft2build.h.
30435
62509f04
VS
304362010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30437
30438 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30439
473df63d
VS
304402010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30441
30442 * genkernsyms.sh.in: Use TARGET_CC.
30443
c98d2a13
CW
304442010-02-07 Colin Watson <cjwatson@ubuntu.com>
30445
30446 * NEWS: Update.
30447
6e14234c
VS
304482010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30449
30450 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
30451 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30452 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 30453
b255e9cf
YB
304542010-02-07 Yves Blusseau <blusseau@zetam.org>
30455
6e14234c 30456 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 30457
98e6959d
VS
304582010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30459
30460 Fix warnings in grub-emu when compiling with maximum warning options.
30461
30462 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30463 (grub_arch_modules_addr): Return 0 and not NULL.
30464 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 30465 (xstrdup): Use newstr instead of dup.
f88d801b
VS
30466 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30467 of disk to dsk to avoid shadowing.
74e4934e
VS
30468 (find_free_slot): Fix prototype.
30469 * util/getroot.c (grub_util_is_dmraid): Make static.
30470 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30471 Add missing prototype.
30472 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 30473
74e31b5c
VS
304742010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30475
30476 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30477 appropriately.
30478
6b2ad14b
VS
304792010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30480
30481 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30482 code out.
30483
8f891adc
VS
304842010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30485
30486 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30487 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30488 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30489 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30490 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30491 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30492
74b45184
VS
304932010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30494
30495 * include/grub/err.h (grub_err_printf): Don't export.
30496
a4bced77
VS
304972010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30498
30499 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30500
007d0695
VS
305012010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30502
30503 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30504 * kern/misc.c (grub_gettext_dummy): Make static.
30505
b6c0d9c2
VS
305062010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30507
30508 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30509 by non-valid ones.
30510 * kern/term.c (grub_putchar): Likewise.
30511
f51a90d0
VS
305122010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30513
30514 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30515 buggy hook call and memory leak.
30516
6846cec5
VS
305172010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30518
30519 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30520
468d69fe
VS
305212010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30522
30523 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30524
51906b8c
VS
305252010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30526
30527 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30528 modevar.
30529 Return grub_errno on allocation error.
30530
09706ce5
VS
305312010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30532
30533 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30534
911df80c
YB
305352010-02-06 Yves Blusseau <blusseau@zetam.org>
30536
30537 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30538 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30539
3746a6bc
VS
305402010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30541
30542 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30543 non-pxe disk.
30544 (grub_pxefs_open): Likewise.
30545
09706ce5
VS
305462010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30547
30548 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30549 * util/grub.d/10_kfreebsd.in: Likewise.
30550 * util/grub.d/10_linux.in: Likewise.
30551
7cc192d9
VS
305522010-02-06 Colin D Bennett <colin@gibibit.com>
30553
30554 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30555 (gfxmenu_mod_SOURCES): New variable.
30556 (gfxmenu_mod_CFLAGS): Likewise.
30557 (gfxmenu_mod_LDFLAGS): Likewise.
30558 * include/grub/term.h (grub_term_set_current_output): Declare
30559 argument as const.
30560 * docs/gfxmenu-theme-example.txt: New file.
30561 * gfxmenu/gfxmenu.c: Likewise.
30562 * gfxmenu/gui_box.c: Likewise.
30563 * gfxmenu/gui_canvas.c: Likewise.
30564 * gfxmenu/gui_circular_progress.c: Likewise.
30565 * gfxmenu/gui_image.c: Likewise.
30566 * gfxmenu/gui_label.c: Likewise.
30567 * gfxmenu/gui_list.c: Likewise.
30568 * gfxmenu/gui_progress_bar.c: Likewise.
30569 * gfxmenu/gui_string_util.c: Likewise.
30570 * gfxmenu/gui_util.c: Likewise.
30571 * gfxmenu/icon_manager.c: Likewise.
30572 * gfxmenu/model.c: Likewise.
30573 * gfxmenu/named_colors.c: Likewise.
30574 * gfxmenu/theme_loader.c: Likewise.
30575 * gfxmenu/view.c: Likewise.
30576 * gfxmenu/widget-box.c: Likewise.
30577 * include/grub/gfxmenu_model.h: Likewise.
30578 * include/grub/gfxmenu_view.h: Likewise.
30579 * include/grub/gfxwidgets.h: Likewise.
30580 * include/grub/gui.h: Likewise.
30581 * include/grub/gui_string_util.h: Likewise.
30582 * include/grub/icon_manager.h: Likewise.
30583
305842010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30585
30586 Agglomerate scrolling in gfxterm.
30587
30588 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30589 (grub_virtual_screen_setup): Initialise 'total_screen'.
30590 (write_char): Split to ...
30591 (paint_char): ... this ...
30592 (write_char): ... and this.
30593 (paint_char): Handle delayed scrolling.
30594 (draw_cursor): Likewise.
30595 (scroll_up): Split to ...
30596 (real_scroll): ... this ...
30597 (scroll_up): ... and this.
30598 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30599 characters.
30600 (grub_gfxterm_refresh): Call real_scroll.
30601
306022010-02-06 Colin D Bennett <colin@gibibit.com>
30603
30604 * include/grub/misc.h (grub_iscntrl): New inline function.
30605 (grub_isalnum): Likewise.
30606 (grub_strtol): Likewise.
30607
306082010-02-06 Colin D Bennett <colin@gibibit.com>
30609
30610 * normal/menu_text.c (get_entry_number): Move from here ...
30611 * normal/menu.c (get_entry_number): ... moved here.
30612 * include/grub/menu.h (grub_menu_get_default_entry_index):
30613 New prototype.
30614 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30615 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30616 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30617 (grub_menu_viewer_should_return): Likewise.
30618 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30619 * normal/menu_text.c (run_menu): Enable menu switching.
30620 * normal/menu_viewer.c (should_return): New variable.
30621 (menu_viewer_changed): Likewise.
30622 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30623 (grub_menu_viewer_should_return): New function.
30624 (menuviewer_write_hook): Likewise.
30625 (grub_menu_viewer_init): Likewise.
30626
306272010-02-06 Colin D Bennet <colin@gibibit.com>
306282010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30629
30630 Support for gfxterm in a window.
30631
30632 * include/grub/gfxterm.h: New file.
30633 * include/grub/video.h (struct grub_video_rect): New declaration.
30634 (grub_video_rect_t): Likewise.
30635 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30636 (refcount): New variable.
30637 (render_target): Likewise.
30638 (window): Likewise.
30639 (repaint_callback): Likewise.
30640 (grub_virtual_screen_setup): Use 'render_target'.
30641 (init_window): New function.
30642 (grub_gfxterm_init_window): Likewise.
30643 (grub_gfxterm_init): Check reference counter.
30644 Use init_window.
30645 (destroy_window): New function.
30646 (grub_gfxterm_destroy_window): Likewise.
30647 (grub_gfxterm_fini): Check reference counter.
30648 Use destroy_window.
30649 (redraw_screen_rect): Restore viewport.
30650 Use 'render_target' and 'window'.
30651 Call 'repaint_callback'.
30652 (write_char): Use 'render_target'.
30653 (draw_cursor): Likewise.
30654 (scroll_up): Restore viewport.
30655 Use 'render_target' and 'window'.
30656 Call 'repaint_callback'.
30657 (grub_gfxterm_cls): Likewise.
30658 (grub_gfxterm_refresh): Use 'window'.
30659 (grub_gfxterm_set_repaint_callback): New function.
30660 (grub_gfxterm_background_image_cmd): Use 'window'.
30661 (grub_gfxterm_get_term): New function.
30662 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30663
306642010-02-06 Colin D Bennett <colin@gibibit.com>
30665
30666 Bitmap scaling support.
30667
30668 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30669 (bitmap_scale_mod_SOURCES): New variable.
30670 (bitmap_scale_mod_CFLAGS): Likewise.
30671 (bitmap_scale_mod_LDFLAGS): Likewise.
30672 * include/grub/bitmap_scale.h: New file.
30673 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30674 (background_image_cmd_options): New variable.
30675 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30676 (cmd): Rename and change type to ...
30677 (background_image_cmd_handle): ... this. All users updated.
30678 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30679 * video/bitmap_scale.c: New file.
30680
306812010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30682
30683 SDL support.
30684
30685 * Makefile.in (LIBSDL): New variable.
30686 (enable_grub_emu_sdl): Likewise.
30687 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30688 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30689 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30690 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30691 * util/sdl.c: New file.
30692
306932010-02-06 Colin D Bennett <colin@gibibit.com>
306942010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30695
30696 Double buffering support.
30697
30698 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30699 * include/grub/video.h: Update comment.
30700 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30701 New type.
30702 (grub_video_fb_doublebuf_blit_init): New prototype.
30703 * term/gfxterm.c (scroll_up): Support double buffering.
30704 (grub_gfxterm_refresh): Likewise.
30705 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30706 (grub_video_fb_doublebuf_blit_init): Likewise.
30707 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30708 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30709 'displayed_page', 'render_page' and 'update_screen'.
30710 (grub_video_vbe_fini): Free offscreen buffer.
30711 (doublebuf_pageflipping_commit): New function.
30712 (doublebuf_pageflipping_update_screen): Likewise.
30713 (doublebuf_pageflipping_init): Likewise.
30714 (double_buffering_init): Likewise.
30715 (grub_video_vbe_setup): Enable doublebuffering.
30716 (grub_video_vbe_swap_buffers): Implement.
30717 (grub_video_vbe_set_active_render_target): Handle double buffering.
30718 (grub_video_vbe_get_active_render_target): Likewise.
30719 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30720 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30721 (grub_video_vbe_enable_double_buffering): Likewise.
30722 (grub_video_vbe_swap_buffers): Use update_screen.
30723 (grub_video_set_mode): Use double buffering.
30724
307252010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30726
30727 * maintainance/gentrigtables.py: Remove.
30728 * lib/trig.c: Likewise.
30729
30730 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30731
30732 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30733 `trigtables.c'.
30734 (trigtables.c): New rule.
30735 (gentrigtables): Likewise.
30736 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30737
307382010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30739
30740 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30741 integer constants.
30742
307432010-02-06 Colin D Bennet <colin@gibibit.com>
30744
30745 Trigonometry support.
30746
30747 * include/grub/trig.h: New file.
30748 * lib/trig.c: Likewise.
30749 * maintainance/gentrigtables.py: Likewise.
30750 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30751 (trig_mod_SOURCES): New variable.
30752 (trig_mod_CFLAGS): Likewise.
30753 (trig_mod_LDFLAGS): Likewise.
30754
5562834e
VS
307552010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30756
30757 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30758 disk devices.
30759
4f8528fc
VS
307602010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30761
30762 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30763 error.
30764
2b4068e9
VS
307652010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30766
30767 * util/hostdisk.c (open_device): Don't use partition device when reading
30768 before the partition.
30769 (grub_util_biosdisk_read): Don't read from partition and before the
30770 partition in single operation.
30771 (grub_util_biosdisk_write): Don't write to partition and before the
30772 partition in single operation.
30773
399f6e4d
TL
307742010-02-03 Torsten Landschoff <torsten@debian.org>
30775
30776 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30777 last sectors.
30778
996649b0
VS
307792010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30780
30781 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30782 CDROM reads.
30783 (grub_biosdisk_write): Refuse to write to CDROM.
30784
3b205d4d
VS
307852010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30786
30787 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30788
61e89d9d
VS
307892010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30790
30791 * font/font.c (find_glyph): Check that bmp_idx is available before
30792 using it.
30793 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30794 with (font == NULL).
30795
bf7fcba2
CS
307962010-01-28 Christian Schmitt <chris@ilovelinux.de>
30797
30798 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30799
f45d2663
BC
308002010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30801
30802 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30803 * util/grub-script-check.c (getline): Fix empty lines case.
30804
ec1444e6
RM
308052010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30806
30807 * Makefile.in (check): Exit with fail status when one of the tests
30808 fails.
30809 * tests/example_functional_test.c (example_test): Fix reversed assert.
30810 * tests/example_unit_test.c (example_test): Likewise.
30811
2e1cb9bb
CW
308122010-01-28 Colin Watson <cjwatson@ubuntu.com>
30813
30814 * util/grub.d/10_linux.in: This script does not use any of the
30815 contents of gettext.sh, only the external command `gettext', so stop
30816 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30817 the same prefix as GRUB.)
30818 * util/grub.d/10_kfreebsd.in: Likewise.
30819
63533ab0
VS
308202010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30821
30822 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30823 of the line.
30824
989e1f93
VS
308252010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30826
30827 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30828 last sectors.
30829
e709ebe2
VS
308302010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30831
30832 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30833 having a 4KiB and not 32KiB buffer size.
30834
27dea7ed
RM
308352010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30836
30837 * util/hostfs.c: Include `<errno.h>'.
30838 (grub_hostfs_read): Handle errors from fseeko() and fread().
30839
67667b9c
RM
308402010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30841
30842 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30843 loop when using read hooks on files whose size isn't sector-aligned.
30844
c294d9d8
RM
308452010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30846
30847 Remove unused parameter.
30848
30849 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30850 (grub_iso9660_open): Remove initialization of `data->length'.
30851
af75a9f1
RM
308522010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30853
30854 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30855 memleak conditions.
30856
254e2ce5 308572010-01-27 Carles Pina i Estany <carles@pina.cat>
30858
30859 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30860 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30861
b510928c 308622010-01-26 Carles Pina i Estany <carles@pina.cat>
30863
30864 * util/bin2h.c (usage): Fix warning (space after backslash).
30865
aa2f9dd2 308662010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 30867
30868 * font/font.c: Include `grub/fontformat.h.
30869 Remove font file format constants.
30870 (grub_font_load): Use the new macros.
30871 * include/grub/fontformat.h: New file.
30872 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30873 (write_font_pf2): Use the new macros.
30874
94e7e712
RM
308752010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30876
30877 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30878 does.
30879
3973a59a
RM
308802010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30881
30882 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30883
30884 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30885 (_start): Macroify `0x7F'.
30886
30887 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30888 (make_install_device): Use "(pxe)" as fallback prefix when booting
30889 via PXE.
30890
42e0cba3
GS
308912010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30892
30893 * configure.ac: Reset LIBS after check for libgcc symbols.
30894
847effd8
CW
308952010-01-25 Colin Watson <cjwatson@ubuntu.com>
30896
30897 * util/hostdisk.c (open_device): Add trailing newline to debug
30898 message.
30899
ea4a7e35
GS
309002010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30901
30902 * configure.ac: Check for `limits.h'.
30903 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30904
67951a53
RM
309052010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30906
30907 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30908 capitalize error strings.
30909
c273d4ce
ST
309102010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30911
30912 * util/grub.d/10_hurd.in: Add a recovery mode.
30913
69be5b74
VS
309142010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30915
30916 * configure.ac: Check for libgcc symbols with -nostdlib.
30917
fc9e5810
BC
309182010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30919
30920 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30921
4b358c0a
VS
309222010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30923
30924 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30925 stack since heap may be unavailable at that point.
30926 (grub_ofconsole_gotoxy): Likewise.
30927
454fcd1c
VS
309282010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30929
30930 * configure.ac: Check for _restgpr_14_x.
30931 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30932 and _savegpr_* prototypes.
30933
566863ca
RM
309342010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30935
30936 Use generic grub_reboot() for i386-efi.
30937
30938 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30939 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30940 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30941
bf86e59a
VS
309422010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30943
30944 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30945 presence of "prefix" variable as it breaks when normal.mod is
30946 embedded.
30947
d645e0f8
VS
309482010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30949
30950 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30951 stack since heap is unavailable at that point.
30952
f9ab2e25
VS
309532010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30954
30955 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30956 (grub_freebsd_bootinfo): Rewritten.
30957 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30958
01fc7054
VS
309592010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30960
30961 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30962
caab4fd6
RM
309632010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30964
30965 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30966 domain now.
30967
67eb1427
FZ
309682010-01-20 Felix Zielcke <fzielcke@z-51.de>
30969
30970 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30971 around for handling "/" to the correct fix. Fix a memory leak. Use
30972 xstrdup instead of strdup.
30973
a9ed4ff3
VS
309742010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30975
30976 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30977
309782010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
30979
30980 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30981
30982 * font/font.c (struct grub_font): New member 'bmp_idx'.
30983 (font_init): Initialise 'bmp_idx'.
30984 (load_font_index): Fill 'bmp_idx'.
30985 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30986
48209f4f
VS
309872010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30988
30989 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30990 unnecessary calls.
30991
9f0a4bb7
VS
309922010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30993
30994 Move context handling out of the kernel.
30995
30996 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30997 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30998 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30999 * conf/i386-efi.rmk: Likewise.
31000 * conf/i386-ieee1275.rmk: Likewise.
31001 * conf/i386-pc.rmk: Likewise.
31002 * conf/powerpc-ieee1275.rmk: Likewise.
31003 * conf/sparc64-ieee1275.rmk: Likewise.
31004 * conf/x86_64-efi.rmk: Likewise.
31005 * include/grub/env.h: Include grub/menu.h.
31006 (grub_env_var_type): Removed.
31007 (grub_env_var): Replaced field 'type' with 'global'.
31008 (grub_env_find): New prototype.
31009 (grub_env_context_open): Remove EXPORT_FUNC.
31010 (grub_env_context_close): Likewise.
31011 (grub_env_export): Likewise.
31012 (grub_env_set_data_slot): Removed.
31013 (grub_env_get_data_slot): Likewise.
31014 (grub_env_unset_data_slot): Likewise.
31015 (grub_env_unset_menu): New prototype.
31016 (grub_env_set_menu): Likewise.
31017 (grub_env_get_menu): Likewise.
31018 * include/grub/env_private.h: New file.
31019 * include/grub/normal.h (grub_context_init): New prototype.
31020 (grub_context_fini): Likewise.
31021 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31022 * normal/context.c (grub_cmd_export): ... to here.
31023 * kern/env.c: Include env_private.h.
31024 (HASHSZ): Moved to include/grub/env_private.h.
31025 (grub_env_context): Likewise.
31026 (grub_env_sorted_var): Likewise.
31027 (current_context): Renamed from this ...
31028 (grub_current_context): ...to this. 'static' removed. All users updated.
31029 (grub_env_find): Removed 'static'.
31030 (grub_env_context_open): Moved to normal/context.c.
31031 (grub_env_context_close): Likewise.
31032 (grub_env_export): Likewise.
31033 (mangle_data_slot_name): Removed.
31034 (grub_env_set_data_slot): Likewise.
31035 (grub_env_get_data_slot): Likewise.
31036 (grub_env_unset_data_slot): Likewise.
31037 * kern/main.c (grub_set_root_dev): Don't export root.
31038 It will be done later.
31039 (grub_main): Don't export prefix.
31040 It will be done later.
31041 * normal/context.c: New file.
31042 * normal/main.c (free_menu): Use grub_env_unset_menu.
31043 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31044 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31045 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31046 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31047
8dd35b8c
VS
310482010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31049
31050 setpci support.
31051
31052 * commands/setpci.c: New file.
31053 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31054 (setpci_mod_SOURCES): New variable.
31055 (setpci_mod_CFLAGS): Likewise.
31056 (setpci_mod_LDFLAGS): Likewise.
31057
449193d5
VS
310582010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31059
31060 Byte-addressable PCI configuration space.
31061
31062 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31063 dword address.
31064 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31065 GRUB_PCI_REG_CACHELINE.
31066 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31067 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31068 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31069 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31070 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31071 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31072 grub_pci_make_address.
31073 (lock_rom_area): Likewise.
31074 * commands/lspci.c (grub_lspci_iter): Use macroses
31075 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31076 of grub_pci_make_address.
31077 * disk/ata.c (grub_ata_pciinit): Likewise.
31078 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31079 (GRUB_PCI_REG_VENDOR): Likewise.
31080 (GRUB_PCI_REG_DEVICE): Likewise.
31081 (GRUB_PCI_REG_COMMAND): Likewise.
31082 (GRUB_PCI_REG_STATUS): Likewise.
31083 (GRUB_PCI_REG_REVISION): Likewise.
31084 (GRUB_PCI_REG_CLASS): Likewise.
31085 (GRUB_PCI_REG_CACHELINE): Likewise.
31086 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31087 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31088 (GRUB_PCI_REG_BIST): Likewise.
31089 (GRUB_PCI_REG_ADDRESSES): Likewise.
31090 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31091 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31092 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31093 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31094 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31095 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31096 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31097 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31098 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31099 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31100 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31101 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31102 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31103 (GRUB_PCI_REG_MIN_GNT): Likewise.
31104 (GRUB_PCI_REG_MAX_LAT): Likewise.
31105 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31106 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31107 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 31108 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
31109 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31110 space.
31111
96d73208
RM
311122010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31113
31114 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31115 can be reliably determined to be supported.
31116
d4484482
RM
311172010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31118
31119 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31120 that VESA is supported.
31121 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31122 supported.
31123
00308ecf
VS
311242010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31125
31126 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31127
f66924a4
RM
311282010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31129
31130 * util/misc.c (make_system_path_relative_to_its_root): Work around
31131 special-casing of "/", as previous incarnation of this routine did.
31132
cbca0ada
VS
311332010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31134
31135 Fix any-emu compilation.
31136
31137 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31138 * grub_bin2h_SOURCES: New variable.
31139
34a66d99
RM
311402010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31141
31142 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31143
94fabf58
RM
311442010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31145
31146 * util/grub.d/00_header.in: Fix handling of locale_dir.
31147
02cf98ca
VS
311482010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31149
31150 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31151 as possible unifont location (Gentoo).
31152 Reported by: Alexander Brüning
31153
327dbcd7
VS
311542010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31155
31156 Don't try to generate lists for kernel.img.
31157
31158 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31159 (pkglib_MODULES): Remove kernel.img.
31160 (kernel_img_EXPORTS): Removed.
31161 (kernel_img_RELOCATABLE): New variable.
31162 * conf/x86_64-efi.rmk: Likewise.
31163 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31164
ca467290
VS
311652010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31166
31167 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31168 grub_xasprintf or grub_snprintf.
31169 (grub_vsprintf): Likewise.
31170 (grub_snprintf): New proto.
31171 (grub_vsnprintf): Likewise.
31172 (grub_xasprintf): Likewise.
31173 (grub_xvasprintf): Likewise.
31174 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31175 (grub_sprintf): Removed.
31176 (grub_vsnprintf): New function.
31177 (grub_snprintf): Likewise.
31178 (grub_xvasprintf): Likewise.
31179 (grub_xasprintf): Likewise.
31180 (grub_vsprintf): Renamed to ...
31181 (grub_vsnprintf_real): ...this. New argument max_len.
31182
aca655fd
BC
311832010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31184
31185 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31186 fix grub-script-check warning.
31187
7ee92c32
VS
311882010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31189
31190 * include/grub/font.h (grub_font_load): Fix prototype.
31191
f80927ca
VS
311922010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31193
31194 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31195
119c50ea
VS
311962010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31197
31198 * include/grub/x86_64/at_keyboard.h: New file.
31199
47d5f3c1
VS
312002010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31201
31202 * loader/mips/linux.c: Include missing grub/i18n.h.
31203
55ff5266
RM
312042009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31205
31206 * normal/menu.c (notify_execution_failure): Clarify error message.
31207
c893cc87
RM
312082009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31209
31210 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31211 return value (and revert all return statements). Update users.
31212
917dd370
CW
312132010-01-20 Dan Merillat <debian@dan.merillat.org>
31214
31215 * kern/device.c (grub_device_iterate): Allocate new part_ent
31216 structure based on sizeof (*p) rather than sizeof (p->next), to
31217 account for structure padding.
31218
31219 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31220 disk is NULL, which might happen for LVM physical volumes with no
31221 LVM signature.
31222
d4a4ee57
RM
312232009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31224
31225 * loader/mips/linux.c (grub_cmd_initrd)
31226 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31227
312282009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31229
31230 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31231 (grub_video_video_init, grub_video_bitmap_init)
31232 (grub_font_manager_init, grub_term_gfxterm_init)
31233 (grub_at_keyboard_init): New extern declarations.
31234 (grub_machine_init): Initialize gfxterm and at_keyboard.
31235
31236 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31237
31238 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31239 `gfxterm.mod' into core image.
31240
31241 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31242 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31243 (kernel_img_FORMAT): Copy to ...
31244
31245 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31246 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31247 (kernel_img_FORMAT): ... here, and ...
31248
31249 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31250 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31251 (kernel_img_FORMAT): ... here.
31252
31253 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31254 and input (at_keyboard) terminals in kernel.
31255 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31256
31257 (pkglib_MODULES): Remove `pci.mod'.
31258 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31259 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31260 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31261 (at_keyboard_mod_LDFLAGS): Remove variables.
31262
312632010-01-11 Felix Zielcke <fzielcke@z-51.de>
31264
31265 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31266
312672009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31268
31269 * include/grub/mips/libgcc.h: Only export symbols for functions
31270 that libgcc provides.
31271
312722009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31273
31274 MIPS support.
31275
31276 * bus/bonito.c: New file.
31277 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31278 GRUB_PCI_NUM_DEVICES.
31279 * term/i386/pc/serial.c: Move to ...
31280 * term/serial.c: ... here. All users updated.
31281 * util/i386/pc/grub-mkimage.c: Move to ...
31282 * util/grub-mkrawimage.c: ... here. All users updated.
31283 * term/i386/pc/at_keyboard.c: Move to ...
31284 * term/at_keyboard.c: ... here. All users updated.
31285 * conf/mips-qemu-mips.rmk: New file.
31286 * conf/mips-yeeloong.rmk: Likewise.
31287 * conf/mips.rmk: Likewise.
31288 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31289 mipsel-qemu-mips.
31290 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31291 to port addresses.
31292 (grub_ata_pciinit): Support CS5536.
31293 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31294 * font/font_cmd.c (loadfont_command): Open file before passing it to
31295 grub_font_load.
31296 (pseudo_file_read): New function.
31297 (pseudo_file_close): Likewise.
31298 (pseudo_fs): New structure.
31299 (load_font_module): New function.
31300 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31301 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31302 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31303 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31304 * include/grub/i386/at_keyboard.h: Split into ...
31305 * include/grub/at_keyboard.h: ... this ...
31306 * include/grub/i386/at_keyboard.h: ... and this.
31307 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31308 New prototype.
31309 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31310 updated.
31311 (grub_elf64_size): Likewise.
31312 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31313 filename.
31314 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31315 * include/grub/i386/coreboot/serial.h: Rewritten.
31316 * include/grub/i386/ieee1275/serial.h: Include
31317 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31318 * include/grub/i386/pc/serial.h: Moved from here ...
31319 * include/grub/serial.h: ... to here. All users updated.
31320 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31321 (GRUB_PCI_NUM_BUS): Likewise.
31322 (GRUB_PCI_NUM_DEVICES): Likewise.
31323 (grub_pci_device_map_range): Add missing volatile keyword.
31324 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31325 * include/grub/mips/at_keyboard.h: New file.
31326 * include/grub/mips/cache.h: Likewise.
31327 * include/grub/mips/io.h: Likewise.
31328 * include/grub/mips/kernel.h: Likewise.
31329 * include/grub/mips/libgcc.h: Likewise.
31330 * include/grub/mips/pci.h: Likewise.
31331 * include/grub/mips/qemu-mips/boot.h: Likewise.
31332 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31333 * include/grub/mips/qemu-mips/loader.h: Likewise.
31334 * include/grub/mips/qemu-mips/memory.h: Likewise.
31335 * include/grub/mips/qemu-mips/serial.h: Likewise.
31336 * include/grub/mips/qemu-mips/time.h: Likewise.
31337 * include/grub/mips/relocator.h: Likewise.
31338 * include/grub/mips/time.h: Likewise.
31339 * include/grub/mips/types.h: Likewise.
31340 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31341 * include/grub/mips/yeeloong/boot.h: Likewise.
31342 * include/grub/mips/yeeloong/kernel.h: Likewise.
31343 * include/grub/mips/yeeloong/loader.h: Likewise.
31344 * include/grub/mips/yeeloong/memory.h: Likewise.
31345 * include/grub/mips/yeeloong/pci.h: Likewise.
31346 * include/grub/mips/yeeloong/serial.h: Likewise.
31347 * include/grub/mips/yeeloong/time.h: Likewise.
31348 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31349 * kern/elf.c (grub_elf32_size): New parameter. All users
31350 updated.
31351 (grub_elf64_size): Likewise.
31352 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31353 Load modules before saying "Welcome to GRUB!".
31354 Call grub_refresh after saying "Welcome to GRUB!".
31355 * kern/mips/cache.S: New file.
31356 * kern/mips/cache_flush.S: Likewise.
31357 * kern/mips/dl.c: Likewise.
31358 * kern/mips/init.c: Likewise.
31359 * kern/mips/qemu-mips/init.c: Likewise.
31360 * kern/mips/startup.S: Likewise.
31361 * kern/mips/yeeloong/init.c: Likewise.
31362 * kern/term.c (grub_putcode): Handle NULL terminal.
31363 (grub_getcharwidth): Likewise.
31364 (grub_getkey): Likewise.
31365 (grub_checkkey): Likewise.
31366 (grub_getkeystatus): Likewise.
31367 (grub_getxy): Likewise.
31368 (grub_getwh): Likewise.
31369 (grub_gotoxy): Likewise.
31370 (grub_cls): Likewise.
31371 (grub_setcolorstate): Likewise.
31372 (grub_setcolor): Likewise.
31373 (grub_getcolor): Likewise.
31374 (grub_refresh): Likewise.
31375 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31376 (write_jump): Add hatch nop.
31377 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31378 * lib/mips/setjmp.S: New file.
31379 * loader/mips/linux.c: Likewise.
31380 * term/i386/pc/at_keyboard.c: Move from here ...
31381 * term/at_keyboard.c: ... to here.
31382 * term/i386/pc/serial.c: Moved from here ...
31383 * term/serial.c: ... to here. All users updated.
31384 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31385 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31386 (serial_translate_key_sequence): Avoid deadlock.
31387 (grub_serial_getkey): Handle backspace.
31388 (grub_serial_putchar): Fix newline handling.
31389 * util/i386/pc/grub-mkimage.c: Move from here ...
31390 * util/grub-mkrawimage.c: ... to here. All users updated.
31391 (generate_image): New parameters 'font_path' and 'format'.
31392 Support embedding font.
31393 Use grub_host_to_target* instead of grub_cpu_to_le*.
31394 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31395 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31396 (options): New option "--font".
31397 (usage): Likewise.
31398 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31399 (main): Handle "--font".
31400 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31401 (grub_virtual_screen_setup): Set bg_color_display.
31402 (redraw_screen_rect): Use bg_color_display instead of incorrect
31403 bg_color.
31404 (grub_gfxterm_cls): Likewise.
31405 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31406 Support embedding config file.
31407 (add_segments): Likewise.
31408 (options): New option "--config".
31409 (main): Handle "--config".
31410 * video/sm712.c: New file.
31411
25c2b5b3
RM
314122010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31413
31414 Fix parallel builds.
31415
31416 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31417 font.c depend on ascii.h).
31418
314192010-01-12 Carles Pina i Estany <carles@pina.cat>
31420
31421 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31422
314232010-01-11 Carles Pina i Estany <carles@pina.cat>
31424
31425 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31426 By default: disabled.
31427 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31428 parameter.
31429
314302010-01-10 Carles Pina i Estany <carles@pina.cat>
31431
31432 * font/font.c: Update copyright years.
31433 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31434
314352010-01-10 Carles Pina i Estany <carles@pina.cat>
31436
31437 * font/font.c: Include `ascii.h'.
31438 (ASCII_BITMAP_SIZE): New macro.
31439 (ascii_font_glyph): Define.
31440 (ascii_glyph_lookup): New function.
31441 (grub_font_get_string_width): Change comment. If glyph not found, use
31442 ascii_glyph_lookup.
31443 (grub_font_get_glyph_with_fallback): If glyph not available returns
31444 ascii_glyph_lookup.
31445 * util/grub-mkfont.c (file_formats): New enum.
31446 (options): Add `ascii-bitmaps' new option.
31447 (usage): Add `asii-bitmaps' new option.
31448 (write_font_ascii_bitmap): New function.
31449 (write_font): Rename to ...
31450 (write_font_p2): ... this. Remove print_glyphs call.
31451 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31452 used. Call print_glyphs.
31453 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31454
314552010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31456
31457 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31458 (grub_bin2h_SOURCES): New variable.
31459 * util/bin2h.c: New file.
31460
915fc1b8
VS
314612010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31462
31463 * include/multiboot.h: Resynced with spec.
31464 * include/multiboot2.h: Likewise.
31465 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31466 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31467
9444b678
RM
314682010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31469
31470 * include/grub/term.h (grub_term_register_input,
31471 grub_term_register_output): Check return of terminal init()
31472 routines, and abort if errors are raised.
31473
31474 * commands/terminal.c: Update copyright year.
31475
cba98e8d
RM
314762010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31477
31478 * commands/terminal.c (grub_cmd_terminal_input)
31479 (grub_cmd_terminal_output): Check return of terminal init()
31480 routines, and abort if errors are raised.
31481
6f7db5d6
VS
314822010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31483
31484 * include/grub/i386/bsd.h: Fix include pathes.
31485
262bff8d
VS
314862010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31487
31488 Add missing *BSD copyright headers.
31489
31490 * include/grub/aout.h: Add BSD licence.
31491 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31492 * include/grub/i386/freebsd_linker.h: ... here,
31493 * include/grub/i386/freebsd_reboot.h: ... here,
31494 * include/grub/i386/netbsd_bootinfo.h: ... here,
31495 * include/grub/i386/netbsd_reboot.h: ... here,
31496 * include/grub/i386/openbsd_bootarg.h: ... here,
31497 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31498 licence to each file.
31499
b2cab848
RM
315002010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31501
31502 * acinclude.m4: Remove `nop' assembly instruction; it's not
31503 implemented by all architectures.
31504
2cb6be4b
RM
315052010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31506
31507 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31508 ELILO. This is no longer necessary.
31509
a2eaee15
BC
315102010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31511
31512 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31513
31514 * util/grub-script-check.c: grub-script-check tool.
31515 * conf/common.rmk: Make rules for grub-script-check.
31516
88d17012
RM
315172010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31518
31519 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31520 spotting it back in 2008. Shame on me for forgetting he did.
31521
31522 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31523
8040619d
RM
315242010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31525
31526 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31527 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31528 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31529 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31530 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31531 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31532
a0c2a0f6
RM
315332010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31534
31535 * include/grub/test.h: Add license header.
31536 * tests/example_functional_test.c: Likewise.
31537 * tests/example_unit_test.c: Likewise.
31538 * tests/lib/functional_test.c: Likewise.
31539 * tests/lib/test.c: Likewise.
31540 * tests/lib/unit_test.c: Likewise.
31541
b0b13907
VS
315422010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31543
31544 Use flag-based instead of hook-based video mode selection and "auto"
31545 keyword.
31546
31547 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31548 (grub_video_set_mode): Changed prototype. All users updated.
31549 (grub_video_check_mode_flag): New inline function.
31550 * video/video.c (parse_modespec): New function.
31551 (grub_video_set_mode): Parse flags and keywords.
31552
ea379330 315532010-01-17 Carles Pina i Estany <carles@pina.cat>
31554
31555 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31556 fprintf call.
31557
e15c215e
FZ
315582010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31559
31560 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31561
409ae1c9 315622010-01-16 Carles Pina i Estany <carles@pina.cat>
31563
31564 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31565 string.
31566 * util/grub-emu.c (usage): Likewise.
31567 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31568 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31569 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31570 * util/i386/pc/grub-setup.c (usage): Likewise.
31571
70a14d3d 315722010-01-16 Carles Pina i Estany <carles@pina.cat>
31573
31574 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31575 the message.
31576 (grub_util_info): Likewise.
31577 (grub_util_error): Likewise.
31578 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31579 and/or new lines in `grub_util_warna', `grub_util_info',
31580 `grub_util_error' calls.
31581 * util/getroot.c: Likewise.
31582 * util/grub-editenv.c: Likewise.
31583 * util/grub-emu.c: Likewise.
31584 * util/grub-fstest.c: Likewise.
31585 * util/grub-mkdevicemap.c: Likewise.
31586 * util/grub-mkfont.c: Likewise.
31587 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31588 * util/grub-mkrelpath.c: Likewise.
31589 * util/grub-pe2elf.c: Likewise.
31590 * util/grub-probe.c: Likewise.
31591 * util/hostdisk.c: Likewise.
31592 * util/i386/efi/grub-mkimage.c: Likewise.
31593 * util/i386/pc/grub-mkimage.c: Likewise.
31594 * util/i386/pc/grub-setup.c: Likewise.
31595 * util/ieee1275/ofpath.c: Likewise.
31596 * util/mkisofs/eltorito.c: Likewise.
31597 * util/mkisofs/rock.c: Likewise.
31598 * util/mkisofs/write.c: Likewise.
31599 * util/raid.c: Likewise.
31600 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31601 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31602
a0b766fc
VS
316032010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31604
31605 Enable multiboot on non-pc.
31606
31607 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31608 multiboot.mod and multiboot2.mod to ...
31609 * conf/i386.rmk (pkglib_MODULES): ... here.
31610 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31611 Moved to ...
31612 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31613 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31614 Moved to ...
31615 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31616 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31617 Moved to ...
31618 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31619 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31620 Moved to ...
31621 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31622 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31623 relocator.mod.
31624 (ata_mod_SOURCES): Removed.
31625 (ata_mod_CFLAGS): Likewise.
31626 (ata_mod_LDFLAGS): Likewise.
31627 (relocator_mod_SOURCES): Removed.
31628 (relocator_mod_CFLAGS): Likewise.
31629 (relocator_mod_ASFLAGS): Likewise.
31630 (relocator_mod_LDFLAGS): Likewise.
31631 Include i386.mk.
31632 * include/grub/x86_64/multiboot.h: New file.
31633 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31634 Terminate EFI.
31635
884ade56
VS
316362010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31637
31638 Video multiboot support.
31639
31640 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31641 New prototype.
31642 * include/multiboot.h: Resynced with multiboot specification.
31643 * include/multiboot2.h: Likewise.
31644 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31645 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31646 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31647 (HAS_VGA_TEXT): Likewise.
31648 (accepts_video): New variable.
31649 (grub_multiboot_set_accepts_video): New function.
31650 (grub_multiboot_get_mbi_size): Account for video structures.
31651 (set_video_mode): New function.
31652 (retrieve_video_parameters): Likewise.
31653 (grub_multiboot_make_mbi): Fill video fields.
31654
0d90e8a6
VS
316552010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31656
31657 Video driver ids.
31658
31659 * include/grub/video.h (grub_video_driver_id): New type.
31660 (grub_video_adapter): New member 'id'. All users updated.
31661 (grub_video_get_driver_id): New proto.
31662 * video/video.c (grub_video_get_driver_id): New function.
31663
5c71db1b 316642010-01-14 Carles Pina i Estany <carles@pina.cat>
31665
31666 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31667 `var=val'.
31668
cca15b52 316692010-01-14 Carles Pina i Estany <carles@pina.cat>
31670
31671 * normal/cmdline.c (print_completion): Gettextizze.
31672
c586fbb2 316732001-01-14 Carles Pina i Estany <carles@pina.cat>
31674
31675 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31676
ba2f6848 316772010-01-14 Carles Pina i Estany <carles@pina.cat>
31678
31679 * gettext/gettext.c (grub_gettext_translate): Push and pop
31680 grub_errno.
31681 (grub_gettext_delete_list): Change comment style.
31682 * kern/err.c (grub_error): Gettextizze.
31683 (grub_fatal): Gettextizze.
31684
0a46429a
RM
316852010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31686
31687 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31688 (grub_linux16_real_boot): ... this.
31689 * kern/i386/loader.S: Likewise.
31690 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31691 (grub_linux16_boot): New function. Switches to text mode and calls
31692 grub_linux16_real_boot().
31693
31694 * loader/i386/bsd.c: Include `<grub/video.h>'.
31695 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31696 text mode before calling grub_unix_real_boot().
31697
31698 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31699 (grub_multiboot_boot): Switch to text mode before calling
31700 grub_relocator32_boot().
31701
31702 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31703 (grub_chainloader_boot): Switch to text mode before calling
31704 grub_chainloader_real_boot().
31705
d6f93a66
RM
317062010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
317072010-01-05 Colin Watson <cjwatson@ubuntu.com>
31708
31709 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31710 non-empty value.
31711
317122010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
317132010-01-05 Colin Watson <cjwatson@ubuntu.com>
31714
31715 * util/grub.d/00_header.in: Define a "savedefault" function for use
31716 in menu entries.
31717 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31718
317192010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
317202010-01-05 Colin Watson <cjwatson@ubuntu.com>
31721
31722 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31723 saved_entry if boot_once is unset.
31724 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31725 previous saved entry (i.e. grub-reboot).
31726
317272009-12-08 Colin Watson <cjwatson@ubuntu.com>
31728
31729 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31730
317312009-12-08 Colin Watson <cjwatson@ubuntu.com>
31732
31733 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31734 `var=val'.
31735 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31736
317372009-12-08 Colin Watson <cjwatson@ubuntu.com>
31738
31739 * util/grub-reboot.in: Fix --version output.
31740 * util/grub-set-default.in: Likewise.
31741
317422009-12-08 Colin Watson <cjwatson@ubuntu.com>
31743
31744 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31745 blocks.
31746
317472009-12-08 Colin Watson <cjwatson@ubuntu.com>
31748
31749 * util/grub.d/00_header.in: Quote the value assigned to `default',
31750 in case it contains spaces.
31751
317522009-12-08 Colin Watson <cjwatson@ubuntu.com>
31753
31754 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31755 `save_default_entry' call from the macosx case to the linux case.
31756
317572009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
317582009-10-25 Colin Watson <cjwatson@ubuntu.com>
31759
31760 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31761 in `chosen' environment variable.
31762 * normal/menu_text.c (get_entry_number): Check if the variable
31763 matches the title of a menu entry.
31764 (run_menu): Pass menu to get_entry_number.
31765
31766 * util/grub-reboot.in: New file.
31767 * util/grub-set-default.in: New file.
31768 * conf/common.rmk (grub-reboot): New utility.
31769 (grub-set-default): New utility.
31770
31771 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31772 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31773 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31774 move it to `saved_entry' for the next boot. Load environment on
31775 initialisation.
31776 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31777 * util/grub.d/10_hurd.in: Likewise.
31778 * util/grub.d/10_linux.in (linux_entry): Likewise.
31779 * util/grub.d/10_windows.in: Likewise.
31780 * util/grub.d/30_os-prober.in: Likewise.
31781
31782 * util/grub-install.in: Create environment block.
31783 * util/i386/efi/grub-install.in: Likewise.
31784 * util/ieee1275/grub-install.in: Likewise.
31785 * util/sparc64/ieee1275/grub-install.in: Likewise.
31786
0934d184
BC
317872010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31788
31789 Unit testing framework for GRUB.
31790
31791 * Makefile.in: Test framework build rules for 'make check'.
31792 * conf/tests.rmk: Build rules for individual tests and framework.
31793
31794 * include/grub/test.h: Header file for whitebox tests.
31795 * tests/lib/functional_test.c: Framework support for whitebox
31796 functional tests.
31797 * tests/lib/test.c: Common whitebox testing code for unit and
31798 functional tests.
31799 * tests/lib/unit_test.c: Framework support for whitebox unit
31800 tests.
31801
31802 * tests/util/grub-shell-tester.in: Support utility for grub-script
31803 tests.
31804 * tests/util/grub-shell.in: Utility to execute grub-script
31805 commands in a Qemu instance.
31806
31807 * tests/example_functional_test.c: Example whitebox functional
31808 test.
31809 * tests/example_grub_script_test.in: Example grub-script test.
31810 * tests/example_scripted_test.in: Example scripted test.
31811 * tests/example_unit_test.c: Example whitebox unit test.
31812
9c4ffeeb
VS
318132010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31814
31815 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31816 Add loader/i386/multiboot_mbi.c.
31817 (multiboot2_mod_SOURCES): Likewise.
31818 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31819 (multiboot2_mod_SOURCES): Likewise.
31820 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31821 (grub_multiboot_make_mbi): Likewise.
31822 (grub_multiboot_free_mbi): Likewise.
31823 (grub_multiboot_init_mbi): Likewise.
31824 (grub_multiboot_add_module): Likewise.
31825 (grub_multiboot_set_bootdev): Likewise.
31826 * loader/i386/multiboot.c (mbi): Removed.
31827 (mbi_dest): Likewise.
31828 (alloc_mbi): New variable.
31829 (grub_multiboot_payload_size): Removed. All users updated.
31830 (grub_multiboot_pure_size): New variable.
31831 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31832 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31833 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31834 (grub_fill_multiboot_mmap): Likewise.
31835 (grub_multiboot_get_bootdev): Likewise.
31836 (grub_multiboot): Use multiboot_mbi functions.
31837 * loader/i386/multiboot_mbi.c: New file.
31838
17383dfe
VS
318392010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31840
31841 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31842 it would result in module crash.
31843
c1f28820
VS
318442010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31845
31846 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31847 (grub_ofconsole_getwh): Split to ...
31848 (grub_ofconsole_getwh): ... this.
31849 (grub_ofconsole_dimensions): ...and this.
31850 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31851
58655a16
RM
318522010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31853
31854 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31855
10891398
VS
318562010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31857
31858 * loader/i386/pc/multiboot2.c: Removed stalled file.
31859
0b8a223c
VS
318602010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31861
31862 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31863 Reported by: Grégoire Sutre
31864
92ab12b0
RM
318652010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31866
31867 * util/misc.c (canonicalize_file_name): New function.
31868 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31869 instead of realpath().
31870
a788afb6
CW
318712010-01-11 Colin Watson <cjwatson@ubuntu.com>
31872
31873 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31874 and make it clearer that it's optional. Based on confusion
31875 witnessed on IRC.
31876
ffa8e3d2
VS
318772010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31878
31879 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31880 in premature implicit newline.
31881
e9060a9d
VS
318822010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31883
31884 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31885 which resulted in garbled command line at the end of screen.
31886
f0d0c0b7
RM
318872010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31888
31889 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31890 initialization with similar approach as with other Linux loaders.
31891
0e60bae7
RM
318922010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31893
31894 Fix i386-ieee1275 build.
31895
31896 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31897 and grub_term_height() for video_{width,height} initialization.
31898
318992010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
31900
31901 Fix grub-emu build.
31902
31903 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31904
cdb3f378
RM
319052010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
319062010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31907
31908 Support for multiple terminals.
31909
31910 * Makefile.in (pkglib_DATA): terminal.lst.
31911 (terminal.lst): New target.
31912 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31913 (GRUB_MOD_INIT(handler)): Likewise.
31914 (GRUB_MOD_FINI(handler)): Likewise.
31915 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31916 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31917 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31918 (grub_cmd_sleep): Use grub_term_save_pos.
31919 * commands/terminal.c: New file.
31920 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31921 commands/terminal.c and lib/charset.c.
31922 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31923 (pkglib_MODULES): Add terminal.mod.
31924 (terminal_mod_SOURCES): New variable.
31925 (terminal_mod_CFLAGS): Likewise.
31926 (terminal_mod_LDFLAGS): Likewise.
31927 * genhandlerlist.sh: Don't handle terminals.
31928 * genmk.rb: Generate terminal-*.lst.
31929 * genterminallist.sh: New file.
31930 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31931 (grub_is_valid_utf8): Likewise.
31932 (grub_utf8_to_ucs4_alloc): Likewise.
31933 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31934 (grub_menu_register_viewer): Changed argument.
31935 (grub_menu_try_text): New proto.
31936 (grub_gfxmenu_try_hook): New declaration.
31937 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31938 (grub_menu_init_page): Additional argument term.
31939 (grub_normal_init_page): Likewise.
31940 (grub_cmdline_get): Arguments simplified.
31941 (grub_utf8_to_ucs4_alloc): Removed.
31942 (grub_print_ucs4): Additional argument term.
31943 (grub_getstringwidth): Likewise.
31944 (grub_print_message_indented): Likewise.
31945 (grub_menu_text_register_instances): New proto.
31946 (grub_show_menu): Likewise.
31947 (read_terminal_list): Likewise.
31948 (grub_set_more): Likewise.
31949 * include/grub/parser.h: Include handler.h.
31950 * include/grub/reader.h: Rewritten.
31951 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31952 (GRUB_TERM_WIDTH): Changed to function.
31953 (GRUB_TERM_HEIGHT): Likewise.
31954 (GRUB_TERM_BORDER_WIDTH): Likewise.
31955 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31956 (GRUB_TERM_NUM_ENTRIES): Likewise.
31957 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31958 (GRUB_TERM_CURSOR_X): Likewise.
31959 (grub_term_input_class): Likewise.
31960 (grub_term_output_class): Likewise.
31961 (grub_term_outputs_disabled): New declaration.
31962 (grub_term_inputs_disabled): Likewise.
31963 (grub_term_outputs): Likewise.
31964 (grub_term_inputs): Likewise.
31965 (grub_term_register_input): Rewritten.
31966 (grub_term_register_output): Likewise.
31967 (grub_term_unregister_input): Likewise.
31968 (grub_term_unregister_output): Likewise.
31969 (FOR_ACTIVE_TERM_INPUTS): New macro.
31970 (FOR_DISABLED_TERM_INPUTS): Likewise.
31971 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31972 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31973 * include/grub/terminfo.h: Add oterm argument to all protypes.
31974 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31975 Use grub_rescue_run.
31976 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31977 All users updated.
31978 * kern/reader.c: Removed. All users updated.
31979 * kern/rescue_reader.c (grub_rescue_init): Removed.
31980 (grub_rescue_reader): Likewise.
31981 (grub_register_rescue_reader): Likewise.
31982 (grub_rescue_run): New function based on kern/reader.c.
31983 * kern/term.c: Adapted for multiterm.
31984 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31985 (grub_is_valid_utf8): Likewise.
31986 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31987 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31988 right terminal.
31989 * loader/i386/linux.c (grub_linux_boot): Likewise.
31990 * normal/auth.c (grub_username_get): New function.
31991 (grub_auth_check_authentication): Use grub_username_get.
31992 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31993 * normal/color.c: Adapt for multiterm.
31994 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31995 (grub_normal_init_page): Additional argument term.
31996 (read_lists): Call read_terminal_lists.
31997 (grub_enter_normal_mode): Call grub_cmdline_run.
31998 Handle grub_normal_exit_level.
31999 (grub_cmd_normal): Make reentrant.
32000 (grub_cmd_normal_exit): New function.
32001 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32002 * normal/menu.c: Adapt for multiterm.
32003 * normal/menu_entry.c: Likewise.
32004 * normal/menu_text.c: Likewise.
32005 * normal/menu_viewer.c: Removed. All users updated.
32006 * normal/term.c: New file.
32007 * util/console.c: Change order of includes to workaround a bug in
32008 ncurses headers.
32009 * term/terminfo.c: New argument oterm on all exported functions.
32010 All users updated.
32011 * util/grub-editenv.c (grub_term_input_class): Removed.
32012 (grub_term_output_class): Likewise.
32013
1a064917
RM
320142010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32015
32016 Make loader output a bit more user-friendly.
32017
32018 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32019 is being loaded. Likewise for the Hurd.
32020
32021 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32022 that kernel of FreeBSD ${version} is being loaded.
32023
32024 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32025 grub_dprintf().
32026 (grub_cmd_initrd): Likewise.
32027 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32028 that Linux ${version} is being loaded. Likewise for initrd.
32029
5ce0a83a 320302010-01-09 Carles Pina i Estany <carles@pina.cat>
32031
32032 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32033
809bbfeb 320342010-01-08 Carles Pina i Estany <carles@pina.cat>
32035
32036 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32037 (GRUB_MOD_INIT): Gettextizze.
32038 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32039 (GRUB_MOD_INIT): Gettextizze.
32040 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32041 (grub_cmd_linux): Capitalise Linux.
32042 (GRUB_MOD_INIT): Gettextizze.
32043 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32044 (grub_cmd_linux): Capitalise Linux.
32045 (GRUB_MOD_INIT): Gettextizze.
32046 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32047 (grub_cmd_linux): Capitalise Linux.
32048 (GRUB_MOD_INIT): Gettextizze.
32049 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32050 (GRUB_MOD_INIT): Gettextizze.
32051 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32052 (grub_cmd_linux): Capitalise Linux.
32053 (GRUB_MOD_INIT): Gettextizze.
32054 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32055 (grub_cpu_xnu_init): Gettextizze.
32056 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32057 (GRUB_MOD_INIT): Gettextizze.
32058 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32059 (GRUB_MOD_INIT): Gettextizze.
32060 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32061 (grub_linux_load64): Capitalise Linux.
32062 (GRUB_MOD_INIT): Gettextizze.
32063 * loader/xnu.c: Include `<grub/i18n.h>'.
32064 (GRUB_MOD_INIT): Gettextizze.
32065 * po/POTFILES: Add `loader/efi/appleloader.c',
32066 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32067 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32068 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32069 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32070 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32071 and `loader/xnu.c'.
32072
b394b2ca
RM
320732010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32074
32075 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32076
320772010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
32078
32079 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32080 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32081 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32082
bc8b32b3
RM
320832010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32084
32085 Reset Multiboot 2 support. New loader implements the draft in
32086 /branches/multiboot2 and shares as much code as possible with the
32087 production Multiboot 1 implementation.
32088
32089 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32090 * loader/multiboot2.c: Likewise.
32091 * loader/i386/multiboot_helper.S: Likewise.
32092 * include/multiboot2.h: Replace with latest version from the draft
32093 in /branches/multiboot2.
32094
32095 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32096 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32097 and `loader/multiboot2.c'.
32098 (pkglib_MODULES): Add `multiboot2.mod'.
32099 (multiboot2_mod_SOURCES): New variable.
32100 (multiboot2_mod_LDFLAGS): Likewise.
32101 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32102
32103 * conf/i386-pc.rmk: Likewise.
32104
32105 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32106 (multiboot_mod_SOURCES): Remove variable.
32107 (multiboot_mod_LDFLAGS): Likewise.
32108 (multiboot_mod_CFLAGS): Likewise.
32109
32110 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32111 `<multiboot2.h>' instead of `<multiboot.h>'.
32112 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32113 (MULTIBOOT_HEADER_MAGIC): New macros.
32114
32115 * loader/multiboot_loader.c (module_version_status): Remove variable.
32116 (find_multi_boot2_header): Remove function.
32117 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32118 logic. Always check for the Multiboot version we're compiling for.
32119 (grub_cmd_module_loader): Likewise.
32120 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32121 command instead of `multiboot'.
32122
5d2c52b8
RM
321232010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32124
32125 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32126 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32127 all users.
32128
53108d92
RM
321292010-01-07 Robert Millan <rmh.grub@aybabtu.com>
321302010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32131
32132 Fix breakage introduced with previous commit.
32133
32134 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32135 commands.
32136 * normal/handler.c (read_handler_list): Revert part of previous commit
32137 affecting this file.
32138 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32139 (grub_normal_execute): ... here.
32140
e2e936b2
RM
321412010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32142
32143 Merge prefix-redefinition-fix branch.
32144
32145 * normal/autofs.c (read_fs_list): Make function capable of being
32146 run multiple times, gracefuly replacing the previous data
32147 structures.
32148 * normal/dyncmd.c (read_command_list): Likewise.
32149 * normal/handler.c (read_handler_list): Likewise.
32150 * normal/main.c (read_lists): New function. Calls all the
32151 list reading functions.
32152 (grub_normal_execute): Use read_lists() instead of calling all
32153 list reading functions explicitly. Register read_lists() as a
32154 variable hook attached to ${prefix}.
32155
607a3701
VS
321562010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32157
32158 Merge crypto branch.
32159
32160 * Makefile.in (pkglib_DATA): Add crypto.lst.
32161 (crypto.lst): New target.
32162 * commands/hashsum.c: New file.
32163 * commands/password.c (check_password): Use grub_crypto_memcmp.
32164 * commands/password_pbkdf2.c: New file.
32165 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32166 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32167 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32168 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32169 -I$(srcdir)/lib/libgcrypt_wrap.
32170 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32171 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32172 password_pbkdf2.mod.
32173 (crypto_mod_SOURCES): New variable.
32174 (crypto_mod_CFLAGS): Likewise.
32175 (crypto_mod_LDFLAGS): Likewise.
32176 (hashsum_mod_SOURCES): New variable.
32177 (hashsum_mod_CFLAGS): Likewise.
32178 (hashsum_mod_LDFLAGS): Likewise.
32179 (pbkdf2_mod_SOURCES): New variable.
32180 (pbkdf2_mod_CFLAGS): Likewise.
32181 (pbkdf2_mod_LDFLAGS): Likewise.
32182 (password_pbkdf2_mod_SOURCES): New variable.
32183 (password_pbkdf2_mod_CFLAGS): Likewise.
32184 (password_pbkdf2_mod_LDFLAGS): Likewise.
32185 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32186 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32187 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32188 Include conf/gcry.rmk.
32189 * include/grub/auth.h: Rewritten.
32190 * include/grub/crypto.h: New file.
32191 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32192 * include/grub/normal.h (read_crypto_list): New prototype.
32193 * lib/crypto.c: New file.
32194 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32195 * lib/pbkdf2.c: Likewise.
32196 * normal/auth.c (grub_auth_strcmp): Removed.
32197 (grub_iswordseparator): Likewise.
32198 (grub_auth_strword): Likewise.
32199 (is_authenticated): Use grub_strword.
32200 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32201 and grub_strword. Pass entered password to authentication callback.
32202 * normal/crypto.c: New file.
32203 * normal/main.c: Call read_crypto_list.
32204 * util/grub-mkpasswd-pbkdf2.c: New file.
32205 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32206
42841caa
VS
322072010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32208
32209 Fix descent and ascent calculation.
32210
32211 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32212 (options): New option "asce".
32213 (usage): Likewise.
32214 (add_char): Ignore invalid glyphs for descent calculation.
32215 Calculate ascent from actual content.
32216 (print_glyphs): Use 'asce'.
32217 (write_font): Likewise. Allow ascent override.
32218 (main): Handle "asce" option.
32219
e7730de7 322202010-01-06 Carles Pina i Estany <carles@pina.cat>
32221
32222 * kern/err.c: Include `<grub/i18n.h>'.
32223 (grub_print_error): Add full stop. Gettextizze.
32224 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32225 (grub_bsd_load_elf): Capitalise ELF.
32226 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32227 (grub_cmd_freebsd_module): Likewise.
32228 (grub_cmd_freebsd_module_elf): Likewise.
32229 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32230
40e3a41f 322312010-01-06 Carles Pina i Estany <carles@pina.cat>
32232
32233 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32234 * commands/search_file.c (HELP_MESSAGE): New macro.
32235 * commands/search_label.c (HELP_MESSAGE): Likewise.
32236 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32237 * po/POTFILES: Add `commands/search_file.c',
32238 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32239 `commands/search.c'.
32240
83507e68
RM
322412010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32242
32243 * config.rpath: Update from Gnulib.
32244
465c787b
YB
322452010-01-05 Yves Blusseau <blusseau@zetam.org>
32246
32247 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32248
6581dd3a
YB
322492010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32250
32251 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32252
3bff18c5
CW
322532010-01-05 Colin Watson <cjwatson@ubuntu.com>
32254
32255 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32256 arguments to fread so that we get a return value in bytes, rather
32257 than something that will normally be rounded down to 0.
32258 Adjust error handling to avoid producing garbage when size_t is not
32259 the same size as long long.
32260
a1368118
CW
322612010-01-05 Colin Watson <cjwatson@ubuntu.com>
32262
32263 * util/mkisofs/write.c (padblock_write): Check return value of
32264 fread.
32265
7c302978
RM
322662010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32267
32268 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32269 floppy images now.
32270
32271 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32272
e33ace06
RM
322732010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32274
32275 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32276 instead of manual alignment.
32277 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32278 verbose). Avoid attempts to read past end of the device
32279 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32280 but GRUB_DISK_CACHE_SIZE may exceed that).
32281
4b856776
RM
322822010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32283
32284 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32285 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32286 it to upper layer.
32287
52c2d97f
VS
322882010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32289
32290 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32291 New constant.
32292 (grub_efi_piwg_device_path): New structure
32293 (grub_efi_piwg_device_path_t): New type.
32294 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32295 (devpath_1): Transform to a structure. All users updated.
32296 (devpath_2): Likewise.
32297 (devpath_3): Likewise.
32298 (devpath_4): Likewise.
32299 (devpath_5): Likewise.
32300
98ff6a54
VS
323012010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32302
32303 * loader/efi/appleloader.c: Restored. Update all users.
32304
3a73dcb6
RM
323052010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32306
32307 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32308
32309 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32310 (struct boot_blocklist): Move from here ...
32311 * include/grub/i386/pc/boot.h [ASM_FILE]
32312 (struct grub_boot_blocklist): ... to here. Update all users.
32313 (setup): Only initialize `start' member of `first_block'
32314 structure. Add assert() calls to verify the other members.
32315
32316 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32317 (generate_image): Fix broken blocklist length initialization.
32318 Add assert() call to verify blocklist `segment' field.
32319
ab0eeb0c
RM
323202010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32321
32322 * loader/efi/appleloader.c: Remove. Update all users.
32323
58bc8bd5
RM
323242010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32325
32326 * boot/i386/pc/boot.S: Update copyright year.
32327 * boot/i386/pc/cdboot.S: Likewise.
32328 * boot/i386/pc/diskboot.S: Likewise.
32329 * boot/i386/pc/lnxboot.S: Likewise.
32330 * boot/i386/pc/pxeboot.S: Likewise.
32331 * bus/pci.c: Likewise.
32332 * commands/cmp.c: Likewise.
32333 * commands/help.c: Likewise.
32334 * commands/hexdump.c: Likewise.
32335 * commands/i386/pc/halt.c: Likewise.
32336 * commands/i386/pc/play.c: Likewise.
32337 * commands/i386/pc/vbeinfo.c: Likewise.
32338 * commands/ls.c: Likewise.
32339 * commands/test.c: Likewise.
32340 * disk/dmraid_nvidia.c: Likewise.
32341 * disk/i386/pc/biosdisk.c: Likewise.
32342 * disk/ieee1275/nand.c: Likewise.
32343 * disk/ieee1275/ofdisk.c: Likewise.
32344 * disk/lvm.c: Likewise.
32345 * disk/raid.c: Likewise.
32346 * disk/raid6_recover.c: Likewise.
32347 * disk/scsi.c: Likewise.
32348 * fs/affs.c: Likewise.
32349 * fs/cpio.c: Likewise.
32350 * fs/ext2.c: Likewise.
32351 * fs/hfs.c: Likewise.
32352 * fs/iso9660.c: Likewise.
32353 * fs/ntfs.c: Likewise.
32354 * fs/sfs.c: Likewise.
32355 * fs/udf.c: Likewise.
32356 * fs/ufs.c: Likewise.
32357 * fs/xfs.c: Likewise.
32358 * gencmdlist.sh: Likewise.
32359 * genmk.rb: Likewise.
32360 * include/grub/disk.h: Likewise.
32361 * include/grub/efi/api.h: Likewise.
32362 * include/grub/efi/efi.h: Likewise.
32363 * include/grub/efi/pe32.h: Likewise.
32364 * include/grub/elf.h: Likewise.
32365 * include/grub/fs.h: Likewise.
32366 * include/grub/i386/at_keyboard.h: Likewise.
32367 * include/grub/i386/pc/memory.h: Likewise.
32368 * include/grub/i386/pc/vbe.h: Likewise.
32369 * include/grub/i386/pci.h: Likewise.
32370 * include/grub/i386/tsc.h: Likewise.
32371 * include/grub/ieee1275/ieee1275.h: Likewise.
32372 * include/grub/ntfs.h: Likewise.
32373 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32374 * include/grub/sparc64/libgcc.h: Likewise.
32375 * include/grub/symbol.h: Likewise.
32376 * include/grub/types.h: Likewise.
32377 * include/multiboot2.h: Likewise.
32378 * io/gzio.c: Likewise.
32379 * kern/device.c: Likewise.
32380 * kern/disk.c: Likewise.
32381 * kern/efi/efi.c: Likewise.
32382 * kern/efi/mm.c: Likewise.
32383 * kern/elf.c: Likewise.
32384 * kern/file.c: Likewise.
32385 * kern/i386/dl.c: Likewise.
32386 * kern/i386/pc/init.c: Likewise.
32387 * kern/i386/pc/startup.S: Likewise.
32388 * kern/ieee1275/ieee1275.c: Likewise.
32389 * kern/ieee1275/init.c: Likewise.
32390 * kern/main.c: Likewise.
32391 * kern/mm.c: Likewise.
32392 * kern/powerpc/dl.c: Likewise.
32393 * kern/sparc64/dl.c: Likewise.
32394 * kern/x86_64/dl.c: Likewise.
32395 * lib/hexdump.c: Likewise.
32396 * loader/efi/appleloader.c: Likewise.
32397 * loader/i386/ieee1275/linux.c: Likewise.
32398 * loader/i386/pc/chainloader.c: Likewise.
32399 * loader/i386/pc/linux.c: Likewise.
32400 * loader/i386/pc/multiboot2.c: Likewise.
32401 * loader/ieee1275/multiboot2.c: Likewise.
32402 * loader/multiboot2.c: Likewise.
32403 * loader/multiboot_loader.c: Likewise.
32404 * loader/powerpc/ieee1275/linux.c: Likewise.
32405 * normal/completion.c: Likewise.
32406 * normal/menu_entry.c: Likewise.
32407 * partmap/apple.c: Likewise.
32408 * util/grub.d/10_hurd.in: Likewise.
32409 * util/hostfs.c: Likewise.
32410 * video/readers/png.c: Likewise.
32411
e2d70b5c
CW
324122010-01-03 Colin Watson <cjwatson@ubuntu.com>
32413
32414 * include/grub/misc.h (GNUC_PREREQ): New macro.
32415 (ATTRIBUTE_ERROR): New macro.
32416 * include/grub/list.h (grub_bad_type_cast_real): Use
32417 ATTRIBUTE_ERROR.
32418
a173283f 324192010-01-03 Carles Pina i Estany <carles@pina.cat>
32420
32421 * normal/menu_text.c (print_message): Change messages.
32422
7fa7ff74 324232010-01-03 Carles Pina i Estany <carles@pina.cat>
32424
32425 * normal/menu_entry.c (store_completion): Gettextizze.
32426
136d24f6 324272010-01-03 Carles Pina i Estany <carles@pina.cat>
32428
32429 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32430
f936862e 324312010-01-03 Carles Pina i Estany <carles@pina.cat>
32432
32433 * po/POTFILES: Sort correctly.
32434
29c44ad1 324352010-01-03 Carles Pina i Estany <carles@pina.cat>
32436
32437 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32438 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32439 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32440 full stop.
32441 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32442 summary. Gettextizze the strings.
32443 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32444 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32445 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32446 full stop.
32447 (GRUB_MOD_INIT): Remove command name from summary.
32448 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32449 summary.
32450 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32451 * term/i386/pc/serial.c (options): Add full stops.
32452 (GRUB_MOD_INIT): Remove command name from the summary.
32453
77a79592 324542010-01-03 Carles Pina i Estany <carles@pina.cat>
32455
32456 * commands/acpi.c: Gettextizze help strings and/or options. Include
32457 `grub/i18n.h' if needed.
32458 * commands/blocklist.c: Likewise.
32459 * commands/boot.c: Likewise.
32460 * commands/cat.c: Likewise.
32461 * commands/cmp.c: Likewise.
32462 * commands/configfile.c: Likewise.
32463 * commands/crc.c: Likewise.
32464 * commands/date.c: Likewise.
32465 * commands/echo.c: Likewise.
32466 * commands/efi/fixvideo.c: Likewise.
32467 * commands/efi/loadbios.c: Likewise.
32468 * commands/gptsync.c: Likewise.
32469 * commands/halt.c: Likewise.
32470 * commands/handler.c: Likewise.
32471 * commands/hdparm.c: Likewise.
32472 * commands/hexdump.c: Likewise.
32473 * commands/i386/cpuid.c: Likewise.
32474 * commands/i386/pc/drivemap.c: Likewise.
32475 * commands/i386/pc/halt.c: Likewise.
32476 * commands/i386/pc/pxecmd.c: Likewise.
32477 * commands/i386/pc/vbeinfo.c: Likewise.
32478 * commands/i386/pc/vbetest.c: Likewise.
32479 * commands/ieee1275/suspend.c: Likewise.
32480 * commands/keystatus.c: Likewise.
32481 * commands/loadenv.c: Likewise.
32482 * commands/ls.c: Likewise.
32483 * commands/lsmmap.c: Likewise.
32484 * commands/lspci.c: Likewise.
32485 * commands/memrw.c: Likewise.
32486 * commands/minicmd.c: Likewise.
32487 * commands/parttool.c: Likewise.
32488 * commands/password.c: Likewise.
32489 * commands/probe.c: Likewise.
32490 * commands/read.c: Likewise.
32491 * commands/reboot.c: Likewise.
32492 * commands/search.c: Likewise.
32493 * commands/sleep.c: Likewise.
32494 * commands/test.c: Likewise.
32495 * commands/true.c: Likewise.
32496 * commands/usbtest.c: Likewise.
32497 * commands/videotest.c: Likewise.
32498 * commands/xnu_uuid.c: Likewise.
32499 * disk/loopback.c: Likewise.
32500 * hello/hello.c: Likewise.
32501 * loader/i386/bsd.c: Likewise.
32502 * term/i386/pc/serial.c: Likewise.
32503 * po/POTFILES: Add new files.
32504
da8d5c53
CW
325052010-01-02 Colin Watson <cjwatson@ubuntu.com>
32506
32507 * term/i386/pc/at_keyboard.c
32508 (keyboard_controller_wait_untill_ready): Rename to ...
32509 (keyboard_controller_wait_until_ready): ... this. Update all users.
32510
33937904 325112010-01-01 Carles Pina i Estany <carles@pina.cat>
32512
32513 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32514 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32515 string using string width.
32516 * normal/menu_text.c (grub_print_message_indented): Use
32517 grub_print_spaces and not print_spaces.
32518 (print_timeout): Likewise.
32519 (print_spaces): Move to...
32520 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32521
3fd3b8d8
RM
325222010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32523
32524 Import from Gnulib.
32525
32526 * gnulib/getdelim.c: New file.
32527 * gnulib/getline.c: Likewise.
32528
33433555
VS
325292009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32530
32531 * include/grub/list.h (grub_assert_fail): Removed.
32532 (grub_bad_type_cast_real): New function.
32533 (grub_bad_type_cast): New macro.
32534 (GRUB_AS_LIST): Use grub_bad_type_cast.
32535 (GRUB_AS_LIST_P): Likewise.
e44721e8 32536 (GRUB_AS_NAMED_LIST): Likewise.
33433555 32537 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 32538 (GRUB_AS_PRIO_LIST): Likewise.
33433555 32539 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 32540 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 32541
f5a51306
VS
325422009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32543
32544 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32545 Fix syntax error.
32546
90d1e879
RM
325472009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32548
32549 * configure.ac: Check for TARGET_CFLAGS initialization before we
32550 initialize it ourselves (sigh).
32551 Move a few modifications to TARGET_CFLAGS to be unconditional
32552 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32553 eh_frame)
32554
32555 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32556 * term/i386/pc/at_keyboard.c
32557 (keyboard_controller_wait_untill_ready): Likewise.
32558 (keyboard_controller_led): Rename `led_status' paramter to avoid
32559 name conflict.
32560
465b5a81 325612009-12-28 Carles Pina i Estany <carles@pina.cat>
32562
32563 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32564 quotes.
32565
c181849b
VS
325662009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32567
32568 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32569
9c8739a4
VS
325702009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32571
32572 * normal/menu_text.c (grub_print_message_indented): Prevent
32573 past-the-end-of-array dereference.
32574
3e74249c
VS
325752009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32576
32577 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32578 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32579
64fd18ed 325802009-12-27 Carles Pina i Estany <carles@pina.cat>
32581
32582 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32583 * normal/main.c (grub_normal_read_line): Remove a space from the
32584 default prompt.
32585
714af9b9 325862009-12-27 Carles Pina i Estany <carles@pina.cat>
32587
32588 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32589 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32590 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32591 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32592 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32593 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32594 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32595
82f3e412 325962009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 32597
32598 * video/readers/jpeg.c (cmd): Declare.
32599 (grub_cmd_jpegtest): Use `grub_command_t' type.
32600 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32601 Assign to `cmd'.
32602 (GRUB_MOD_FINI): Use `cmd' to unregister.
32603 * video/readers/png.c (cmd): Declare.
32604 (grub_cmd_pngtest): Use `grub_command_t' type.
32605 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32606 Assign to `cmd'.
32607 (GRUB_MOD_FINI): Use `cmd' to unregister.
32608 * video/readers/tga.c (cmd): Declare.
32609 (grub_cmd_tgatest): Use `grub_command_t' type.
32610 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32611 Assign to `cmd'.
32612 (GRUB_MOD_FINI): Use `cmd' to unregister.
32613
82f3e412 326142009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 32615
32616 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32617 stops.
32618 * kern/corecmd.c (grub_register_core_commands): Likewise.
32619 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32620 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32621 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32622 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32623 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32624 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32625 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32626 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32627 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32628 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32629 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32630 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32631 * normal/handler.c (insert_handler): Likewise.
32632 * normal/main.c (GRUB_MOD_INIT): Likewise.
32633 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32634
fdcdbb66 326352009-12-26 Carles Pina i Estany <carles@pina.cat>
32636
32637 * commands/help.c (grub_cmd_help): Print the command name before the
32638 summary.
32639 (GRUB_MOD_INIT): Remove command name from the summary.
32640 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 32641 string as summary.
fdcdbb66 32642 * lib/arg.c (find_long): Print the command name before the summary.
32643 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32644 summary.
32645 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32646 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32647 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32648 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32649 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32650 * commands/date.c (GRUB_MOD_INIT): Likewise.
32651 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32652 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32653 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32654 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32655 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32656 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32657 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32658 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32659 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32660 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32661 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32662 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32663 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32664 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32665 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32666 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32667 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32668 * commands/password.c (GRUB_MOD_INIT): Likewise.
32669 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32670 * commands/read.c (GRUB_MOD_INIT): Likewise.
32671 * commands/search.c (GRUB_MOD_INIT): Likewise.
32672 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32673 * commands/test.c (GRUB_MOD_INIT): Likewise.
32674 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32675 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32676 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32677 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32678 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32679 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32680 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32681 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32682 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32683 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32684 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32685 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32686 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32687 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32688
9c288be2
VS
326892009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32690
32691 Use search command for preliminar UUID search.
32692
32693 * commands/search.c: Split into ...
32694 * commands/search_wrap.c: ...this
32695 * commands/search.c: ...and this.
32696 * commands/search_file.c: New file.
32697 * commands/search_label.c: New file.
32698 * commands/search_uuid.c: New file.
32699 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32700 Add commands/search_wrap.c, commands/search_file.c,
32701 commands/search_label.c and commands/search_uuid.c.
32702 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32703 (search_mod_SOURCES): Set to commands/search_wrap.c.
32704 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32705 search_label.mod.
32706 (search_fs_file_mod_SOURCES): New variable.
32707 (search_fs_file_mod_CFLAGS): Likewise.
32708 (search_fs_file_mod_LDFLAGS): Likewise.
32709 (search_label_mod_SOURCES): Likewise.
32710 (search_label_mod_CFLAGS): Likewise.
32711 (search_label_mod_LDFLAGS): Likewise.
32712 (search_fs_uuid_mod_SOURCES): New variable.
32713 (search_fs_uuid_mod_CFLAGS): Likewise.
32714 (search_fs_uuid_mod_LDFLAGS): Likewise.
32715 (fs_file_mod_SOURCES): Removed.
32716 (fs_file_mod_CFLAGS): Likewise.
32717 (fs_file_mod_LDFLAGS): Likewise.
32718 (fs_uuid_mod_SOURCES): Removed.
32719 (fs_uuid_mod_CFLAGS): Likewise.
32720 (fs_uuid_mod_LDFLAGS): Likewise.
32721 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32722 Set to util/grub-install.in.
32723 * disk/fs_file.c: Removed.
32724 * disk/fs_uuid.c: Likewise.
32725 * include/grub/search.h: New file.
32726 * util/grub-install.in: Handle sparc64.
32727 Create and use load.cfg.
32728 * util/sparc64/ieee1275/grub-install.in: Removed.
32729
db943399
VS
327302009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32731
32732 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32733 Ignore return status if CF is cleared.
32734 (grub_biosdisk_get_diskinfo_standard): Likewise.
32735
3fdae612
RM
327362009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32737
32738 * term/i386/pc/at_keyboard.c
32739 (keyboard_controller_wait_untill_ready): New function.
32740 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32741 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32742 for keyboard polling, rather than duplicate the same loop. This
32743 saves a few bytes in code size.
32744
7ebaa2b4
VS
327452009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32746
32747 Support for (pxe[:server[:gateway]]) syntax and
32748 use environment variable for PXE.
32749
32750 * commands/i386/pc/pxecmd.c (options): Removed.
32751 (print_ip): Removed.
32752 (grub_cmd_pxe): Removed
32753 (grub_cmd_pxe_unload): New function.
32754 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32755 (grub_pxe_your_ip): Made static.
32756 (grub_pxe_default_server_ip): Likewise.
32757 (grub_pxe_default_gateway_ip): Likewise.
32758 (grub_pxe_blksize): Likewise.
32759 (parse_ip): New function.
32760 (grub_pxe_open): Support server and gateway specification.
32761 (grub_pxe_close): Free disk->data.
32762 (grub_pxefs_open): Use disk->data.
32763 (grub_pxefs_read): Likewise.
32764 (grub_env_write_readonly): New function.
32765 (set_mac_env): Likewise.
32766 (set_env_limn_ro): Likewise.
32767 (parse_dhcp_vendor): Likewise.
32768 (grub_pxe_detect): Set the environment variables.
32769 (set_ip_env): New function.
32770 (write_ip_env): Likewise.
32771 (grub_env_write_pxe_default_server): Likewise.
32772 (grub_env_write_pxe_default_gateway): Likewise.
32773 (grub_env_write_pxe_blocksize): Likewise.
32774 (GRUB_MOD_INIT(pxe)): Set environment variables.
32775 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32776 (grub_pxe_mac_addr_t): ... this. All users updated.
32777 (grub_pxe_your_ip): Removed.
32778 (grub_pxe_server_ip): Likewise.
32779 (grub_pxe_gateway_ip): Likewise.
32780 (grub_pxe_blksize): Likewise.
32781
ec5f98ab 327822009-12-25 Carles Pina i Estany <carles@pina.cat>
32783
32784 * commands/help.c: Include `<grub/i18n.h>'.
32785 (grub_cmd_help): Gettextizze.
32786 (GRUB_MOD_INIT): Likewise.
32787 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32788 (GRUB_MOD_INIT): Gettextizze.
32789 * commands/search.c: Include `<grub/i18n.h>'.
32790 (options): Gettextizze.
32791 (GRUB_MOD_INIT): Gettextizze.
32792 * lib/arg.c: Include `<grub/i18n.h>'.
32793 (help_options): Gettextizze.
32794 (find_long): Likewise.
32795 (grub_arg_show_help): Likewise.
32796 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32797 (read_command_list): Gettextizze.
32798 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 32799 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 32800
22815526
RM
328012009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32802
32803 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32804 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32805 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32806 (led_status): New variable.
32807 (keyboard_controller_led): New function.
32808 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32809 update led status for caps lock, num lock and scroll lock.
32810
0ad46fd7
FZ
328112009-12-25 Felix Zielcke <fzielcke@z-51.de>
32812
32813 * util/hostdisk.c (open_device): Fix a comment.
32814
d0e158c2
RM
328152009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32816
32817 * util/grub-install.in (host_os): New variable.
32818 * util/i386/efi/grub-install.in (host_os): Likewise.
32819
401c0ad6
RM
328202009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32821
32822 * util/mkisofs/write.c (padblock_write): Abort when given an
32823 excedingly large embed image, instead of silently truncating it.
32824
d14d3370
RM
328252009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32826
32827 * include/multiboot.h: Indentation fixes.
32828
eeed10b4
RM
328292009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32830
32831 * include/multiboot.h (struct multiboot_aout_symbol_table)
32832 (struct multiboot_elf_section_header_table): New structure
32833 declarations (stolen from GRUB Legacy).
32834 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32835 table information.
32836
32837 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32838 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32839 type aliases.
32840
681c70ab
RM
328412009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32842
32843 * include/multiboot.h: Make comments src2texi-friendly.
32844
e4d47d8d
RM
328452009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32846
32847 For consistency with [multiboot]/docs/boot.S.
32848
32849 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32850 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32851 (MULTIBOOT_MAGIC2): Rename from this ...
32852 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32853
a0b70bda
RM
328542009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32855
32856 * include/multiboot.h: Remove `<grub/types.h>'.
32857 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32858 types. Update all users.
32859
61ba42be 328602009-12-25 Carles Pina i Estany <carles@pina.cat>
32861
32862 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32863 `couldn't' and `can not' by `cannot'.
32864 * commands/i386/pc/drivemap.c: Likewise.
32865 * disk/ata.c: Likewise.
32866 * disk/ieee1275/nand.c: Likewise.
32867 * fs/affs.c: Likewise.
32868 * fs/fat.c: Likewise.
32869 * fs/hfs.c: Likewise.
32870 * fs/hfsplus.c: Likewise.
32871 * fs/iso9660.c: Likewise.
32872 * fs/jfs.c: Likewise.
32873 * fs/minix.c: Likewise.
32874 * fs/reiserfs.c: Likewise.
32875 * fs/sfs.c: Likewise.
32876 * fs/udf.c: Likewise.
32877 * fs/ufs.c: Likewise.
32878 * fs/xfs.c: Likewise.
32879 * loader/powerpc/ieee1275/linux.c: Likewise.
32880 * loader/sparc64/ieee1275/linux.c: Likewise.
32881 * util/grub-probe.c: Likewise.
32882 * util/misc.c: Likewise.
32883
7fd0baee 328842009-12-24 Carles Pina i Estany <carles@pina.cat>
32885
32886 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32887 grub_errno calls.
32888 * commands/acpi.c: Likewise.
32889 * commands/blocklist.c: Likewise.
32890 * commands/efi/loadbios.c: Likewise.
32891 * commands/i386/pc/drivemap.c: Likewise.
32892 * commands/loadenv.c: Likewise.
32893 * commands/memrw.c: Likewise.
32894 * commands/password.c: Likewise.
32895 * commands/videotest.c: Likewise.
32896 * disk/ata.c: Likewise.
32897 * disk/ata_pthru.c: Likewise.
32898 * disk/dmraid_nvidia.c: Likewise.
32899 * disk/ieee1275/nand.c: Likewise.
32900 * disk/ieee1275/ofdisk.c: Likewise.
32901 * disk/loopback.c: Likewise.
32902 * disk/lvm.c: Likewise.
32903 * disk/mdraid_linux.c: Likewise.
32904 * disk/raid.c: Likewise.
32905 * disk/raid6_recover.c: Likewise.
32906 * disk/scsi.c: Likewise.
32907 * efiemu/main.c: Likewise.
32908 * efiemu/mm.c: Likewise.
32909 * efiemu/pnvram.c: Likewise.
32910 * efiemu/symbols.c: Likewise.
32911 * font/font.c: Likewise.
32912 * fs/cpio.c: Likewise.
32913 * fs/hfsplus.c: Likewise.
32914 * fs/iso9660.c: Likewise.
32915 * fs/jfs.c: Likewise.
32916 * fs/minix.c: Likewise.
32917 * fs/ntfs.c: Likewise.
32918 * fs/ntfscomp.c: Likewise.
32919 * fs/reiserfs.c: Likewise.
32920 * fs/ufs.c: Likewise.
32921 * fs/xfs.c: Likewise.
32922 * gettext/gettext.c: Likewise.
32923 * include/grub/auth.h: Likewise.
32924 * kern/elf.c: Likewise.
32925 * kern/file.c: Likewise.
32926 * kern/ieee1275/init.c: Likewise.
32927 * kern/ieee1275/mmap.c: Likewise.
32928 * kern/ieee1275/openfw.c: Likewise.
32929 * kern/powerpc/dl.c: Likewise.
32930 * kern/sparc64/dl.c: Likewise.
32931 * lib/arg.c: Likewise.
32932 * loader/i386/bsd.c: Likewise.
32933 * loader/i386/bsdXX.c: Likewise.
32934 * loader/i386/efi/linux.c: Likewise.
32935 * loader/i386/efi/xnu.c: Likewise.
32936 * loader/i386/ieee1275/linux.c: Likewise.
32937 * loader/i386/linux.c: Likewise.
32938 * loader/i386/multiboot.c: Likewise.
32939 * loader/i386/pc/linux.c: Likewise.
32940 * loader/i386/pc/multiboot2.c: Likewise.
32941 * loader/i386/xnu.c: Likewise.
32942 * loader/ieee1275/multiboot2.c: Likewise.
32943 * loader/macho.c: Likewise.
32944 * loader/machoXX.c: Likewise.
32945 * loader/multiboot2.c: Likewise.
32946 * loader/multiboot_loader.c: Likewise.
32947 * loader/powerpc/ieee1275/linux.c: Likewise.
32948 * loader/sparc64/ieee1275/linux.c: Likewise.
32949 * loader/xnu.c: Likewise.
32950 * loader/xnu_resume.c: Likewise.
32951 * mmap/i386/pc/mmap.c: Likewise.
32952 * normal/menu_viewer.c: Likewise.
32953 * partmap/acorn.c: Likewise.
32954 * partmap/amiga.c: Likewise.
32955 * partmap/apple.c: Likewise.
32956 * script/lexer.c: Likewise.
32957 * term/gfxterm.c: Likewise.
32958 * term/i386/pc/serial.c: Likewise.
32959 * term/i386/pc/vga.c: Likewise.
32960 * term/ieee1275/ofconsole.c: Likewise.
32961 * term/terminfo.c: Likewise.
32962 * video/bitmap.c: Likewise.
32963 * video/efi_gop.c: Likewise.
32964 * video/efi_uga.c: Likewise.
32965 * video/fb/video_fb.c: Likewise.
32966 * video/i386/pc/vbe.c: Likewise.
32967 * video/readers/tga.c: Likewise.
32968 * video/video.c: Likewise.
32969
0ad46fd7 329702009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
32971
32972 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32973 * commands/lspci.c: Likewise.
32974 * commands/probe.c: Likewise.
32975 * commands/xnu_uuid.c: Likewise.
32976 * conf/i386-coreboot.rmk: Likewise.
32977 * conf/i386-efi.rmk: Likewise.
32978 * conf/i386-ieee1275.rmk: Likewise.
32979 * conf/i386-pc.rmk: Likewise.
32980 * conf/powerpc-ieee1275.rmk: Likewise.
32981 * conf/sparc64-ieee1275.rmk: Likewise.
32982 * conf/x86_64-efi.rmk: Likewise.
32983 * fs/i386/pc/pxe.c: Likewise.
32984 * gettext/gettext.c: Likewise.
32985 * include/grub/efi/graphics_output.h: Likewise.
32986 * include/grub/i386/pc/memory.h: Likewise.
32987 * kern/env.c: Likewise.
32988 * kern/i386/qemu/startup.S: Likewise.
32989 * lib/i386/pc/biosnum.c: Likewise.
32990 * lib/i386/relocator.c: Likewise.
32991 * lib/i386/relocator_asm.S: Likewise.
32992 * lib/relocator.c: Likewise.
32993 * loader/i386/bsd.c: Likewise.
32994 * loader/i386/multiboot.c: Likewise.
32995 * loader/i386/pc/chainloader.c: Likewise.
32996 * loader/i386/xnu.c: Likewise.
32997 * loader/xnu.c: Likewise.
32998 * normal/main.c: Likewise.
32999 * normal/menu_text.c: Likewise.
33000 * util/getroot.c: Likewise.
33001 * util/grub-mkconfig_lib.in: Likewise.
33002 * util/grub.d/00_header.in: Likewise.
33003 * util/i386/pc/grub-mkimage.c: Likewise.
33004 * util/mkisofs/eltorito.c: Likewise.
33005 * util/mkisofs/exclude.h: Likewise.
33006 * util/mkisofs/hash.c: Likewise.
33007 * util/mkisofs/iso9660.h: Likewise.
33008 * util/mkisofs/joliet.c: Likewise.
33009 * util/mkisofs/mkisofs.c: Likewise.
33010 * util/mkisofs/mkisofs.h: Likewise.
33011 * util/mkisofs/multi.c: Likewise.
33012 * util/mkisofs/name.c: Likewise.
33013 * util/mkisofs/rock.c: Likewise.
33014 * util/mkisofs/tree.c: Likewise.
33015 * util/mkisofs/write.c: Likewise.
33016 * video/efi_gop.c: Likewise.
33017
009ec743
VS
330182009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33019
33020 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33021 size counting.
33022
0ad46fd7 330232009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
33024
33025 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33026 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33027
d3d30ea0
VS
330282009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33029
33030 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33031 (GRUB_MOD_INIT(memrw)): Update help line.
33032
a34f5c70
VS
330332009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33034
33035 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33036 Use grub_extcmd_t. All users updated.
33037 (options): New variable.
33038 (grub_cmd_read): Restructure for readability. Support "-v" option.
33039 (grub_cmd_write): Restructure for readability.
33040
0ad46fd7 330412009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
33042
33043 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33044
0ad46fd7 330452009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
33046
33047 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33048 with the actual contents of the correspondending make variable.
33049 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33050 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33051 specifying `*.lst' and `efiemu??.o'
33052
0ad46fd7 330532009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
33054
33055 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33056 after function name.
33057 Noticed by Rene Engelhard <rene@debian.org>.
33058
dc77a799
VS
330592009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33060
33061 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33062 (options): New variable.
33063 (iospace): Likewise.
33064 (grub_lspci_iter): List IO spaces if "-i" was given.
33065 (grub_cmd_lspci): Parse options.
33066 (GRUB_MOD_INIT(lspci)): Use extcmd.
33067 (GRUB_MOD_FINI(lspci)): Likewise.
33068
0ad46fd7 330692009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
33070
33071 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33072 `function' keyword.
33073 Patch by Tony Mancill <tmancill@debian.org>.
33074
b5d5993b
VS
330752009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33076
33077 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33078 (grub_uhci_portstatus): Likewise.
33079 (grub_uhci_portstatus): Add necessary delay.
11d18281 33080 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 33081
941903f2 330822009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 33083
941903f2 33084 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33085 (GRUB_MOD_INIT): Likewise.
33086 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 33087 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33088 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 33089 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33090 (enable_rom_area): Likewise.
33091 (GRUB_MOD_INIT): Likewise.
33092 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33093 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33094 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33095 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33096 * commands/hexdump.c (options): Likewise.
33097 * commands/i386/cpuid.c (options): Likewise.
33098 (GRUB_MOD_INIT): Likewise.
33099 * commands/i386/pc/drivemap.c (options): Likewise.
33100 (GRUB_MOD_INIT): Likewise.
33101 * commands/i386/pc/halt (options): Likewise.
33102 (GRUB_MOD_INIT): Likewise.
33103 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33104 * commands/i386/pc/pxecmd.c (options): Likewise.
33105 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33106 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33107 * commands/keystatus.c (options): Likewise.
33108 (GRUB_MOD_INIT): Likewise.
33109 * commands/loadenv.c (options): Likewise.
33110 * commands/ls.c (options): Likewise.
33111 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33112 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33113 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33114 * commands/parttool.c (helpmsg): Likewise.
33115 * commands/probe.c (options): Likewise.
33116 * commands/read.c (GRUB_MOD_INIT): Likewise.
33117 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33118 * commands/search.c (options): Likewise.
33119 * commands/sleep.c (options): Likewise.
33120 * commands/test.c (GRUB_MOD_INIT): Likewise.
33121 * commands/true.c (GRUB_MOD_INIT): Likewise.
33122 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33123 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33124 * lib/arg.c (help_options): Likewise.
e9bbb4e7 33125 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33126 `$(XGETTEXT)'.
98a50553 33127 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 33128
0ad46fd7 331292009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 33130
ef3c2c3a 33131 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
33132 instead of specifying them explicit.
33133
7922f68b
RM
331342009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33135
33136 * NEWS: Add grub-probe support for GNU/Hurd.
33137
537ce47f
RM
331382009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33139
33140 * NEWS: gettext was added after 1.97.
33141
9b214e3a
RM
331422009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33143
33144 * util/mkisofs/msdos_partition.h: New file (based on
33145 include/grub/msdos_partition.h).
33146 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33147 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33148 (ld_options, main): Recognize --protective-msdos-label.
33149 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33150 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33151 (padblock_write): If `use_protective_msdos_label' is set, patch a
33152 protective DOS-style label in the output image.
33153
33154 * util/grub-mkrescue.in: Use --protective-msdos-label.
33155
e9309813
RM
331562009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33157
33158 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33159 boot.
33160
0ae56929
RM
331612009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33162
33163 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33164 variables.
33165 (ld_options, main): Recognize `--embedded-boot'.
33166 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33167 declarations.
33168 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33169 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33170 (padblock_write): Likewise. Rewrite to support embedded boot image.
33171
33172 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33173 for BIOS-based disk boot instead of only ElTorito.
33174
b15937b1
RM
331752009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33176
33177 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33178 build (not needed for bootstrap).
33179
52cc3ce0
RM
331802009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33181
33182 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33183 from i386-pc build (not needed for bootstrap).
33184 Rewrite a pair of strings.
33185
36f5ff04
RM
331862009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33187
33188 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33189
973c6c85 331902009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
33191
33192 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33193
05d21547
AB
331942009-12-21 Andreas Born <futur.andy@googlemail.com>
33195
33196 * kern/env.c (grub_env_context_open): Mark exported variable for
33197 reexport.
33198
0175d51f
AB
331992009-12-21 Andreas Born <futur.andy@googlemail.com>
33200
33201 * kern/env.c (grub_env_export): Create nonexistent variables before
33202 exporting.
33203
7f39d92f 332042009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 33205
7f39d92f 33206 * include/grub/auth.h: Include `<grub/i18n.h>'.
33207 (GRUB_GET_PASSWORD): Gettextizze string.
33208 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33209 menu_text.c.
33210 (grub_utf8_to_ucs4_alloc): Fix indentation.
33211 (grub_print_ucs4): Likewise.
33212 (grub_getstringwidth): Likewise.
33213 (print_message_indented): New declaration.
33214 * normal/auth.c: Include `<grub/i18n.h>'.
33215 (grub_auth_check_authentication): Gettexttize string.
33216 * normal/cmdline.c: Include `<grub/i18n.h>'.
33217 (grub_cmdline_get): Gettextizze.
33218 * normal/color.c: Include `<grub/i18n.h>'.
33219 (grub_parse_color_name_pair): Gettexttize strings.
33220 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33221 string (use `print_message_indented').
33222 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33223 `include/grub/normal.h'.
33224 (print_message_indented): Renamed to ...
33225 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33226 used in normal/main.c).
33227 (print_message): Use `grub_print_message_indented' instead of
33228 `print_message_indented'.
33229 (print_timeout): Likewise.
33230 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33231 (grub_normal_print_device_info): Gettexttize strings.
33232 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33233
3041d898
VS
332342009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33235
33236 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33237 of arguments. Return number of tokens and not arguments. All users
33238 updated.
33239
de15bf8e
VS
332402009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33241
33242 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33243 non-MSDOS paritions.
33244
e0a6ca52
VS
332452009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33246
33247 * include/grub/types.h (UNUSED): Removed since it conflicts with
33248 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33249 Reported by Grégoire Sutre.
33250
b99518d1 332512009-12-19 Carles Pina i Estany <carles@pina.cat>
33252
33253 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33254 (grub_print_ucs4_alloc): Likewise.
33255 (grub_getstringwidth): Likewise.
33256 * normal/main.c (grub_normal_init_page): Gettextize version string.
33257 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33258 (getstringwidth): Renamed to ...
33259 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33260 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33261 (grub_print_ucs4): Remove `static' qualifer (now used in
33262 normal/main.c).
33263 * po/POTFILES: Add normal/main.c.
33264
bfd5e52b 332652009-12-19 Carles Pina i Estany <carles@pina.cat>
33266
33267 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33268 (print_message_indented): Add `margin_left' and `margin_right'
33269 parameters.
33270 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33271 strings.
33272 (print_timeout): Use `print_message_indented' to print the message.
33273 Deletes `second_stage' parameter.
33274 (run_menu): Update `print_timeout' calls.
33275
5a1ad2b9
VS
332762009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33277
33278 Fix console palette on OpenFirmware.
33279
33280 * term/ieee1275/ofconsole.c (MAX): Removed.
33281 (colors): Redone based on VGA palette.
33282 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33283 colors are supported.
33284 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33285
b045f00a
VS
332862009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33287
33288 Fix potential EfiEmu double prepare.
33289
33290 * efiemu/main.c (prepared): New variable
33291 (grub_efiemu_unload): Set prepare to '0'.
33292 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33293
33294 set_virtual_address_map support.
33295
33296 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33297 prototype.
33298 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33299 prototype.
33300 (grub_efiemu_crc32): Likewise.
33301 (grub_efiemu_crc64): Likewise.
33302 (grub_efiemu_set_virtual_address_map): Likewise.
33303 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33304 New definition.
33305 (grub_autoefi_set_virtual_address_map): Likewise.
33306 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33307 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33308 Restructure flow to accomodate it.
33309 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33310 (grub_efiemu_crc): Recompute CRC32.
33311 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33312 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33313 * efiemu/symbols.c (relocated_handle): New variable.
33314 (grub_efiemu_free_syms): Free relocated_handle.
33315 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33316 (grub_efiemu_write_sym_markers): New function.
33317 (grub_efiemu_set_virtual_address_map): Likewise.
33318
33319 Newer XNU parameters.
33320
33321 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33322 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33323 (grub_xnu_fill_devicetree): New prototype.
33324 (grub_xnu_heap_real_start): New variable.
33325 * loader/xnu.c (get_name_ptr): New function.
33326 (grub_xnu_load_driver): Fill namelen and name.
33327
33328 64-bit xnu support.
33329
33330 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33331 and 'loader/macho64.c'.
33332 * conf/i386-pc.rmk: Likewise.
33333 * conf/x86_64-efi.rmk: Likewise.
33334 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33335 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33336 * include/grub/macho.h (grub_macho_segment64): New structure.
33337 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33338 (grub_macho_size32): ... to this.
33339 (grub_macho32_get_entry_point): Renamed from ...
33340 (grub_macho_get_entry_point32): ... to this.
33341 (grub_macho_contains_macho64): New prototype.
33342 (grub_macho_size64): Likewise.
33343 (grub_macho_get_entry_point64): Likewise.
33344 (grub_macho32_load): Renamed from ...
33345 (grub_macho_load32): ... to this.
33346 (grub_macho32_filesize): Renamed from ...
33347 (grub_macho_filesize32): ... to this.
33348 (grub_macho32_readfile): Renamed from ...
33349 (grub_macho_readfile32): ... to this.
33350 (grub_macho_filesize64): New prototype.
33351 (grub_macho_readfile64): Likewise.
33352 (grub_macho_parse32): Likewise.
33353 (grub_macho_parse64): Likewise.
33354 * loader/macho.c: Split into ...
33355 * loader/machoXX.c: ... and this. Replace 32 with XX.
33356 * loader/macho32.c: New file.
33357 * loader/macho64.c: Likewise.
33358 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33359 (grub_cmd_xnu_kernel): Make 32-bit only.
33360 (grub_cmd_xnu_kernel64): New function.
33361 (grub_xnu_load_driver): Support Mach-O 64.
33362 (grub_cmd_xnu_mkext): Likewise.
33363 * util/grub.d/30_os-prober.in (osx_entry): New function.
33364 Generate entries for 64-bit boot too.
33365
33366 Eliminate ad-hoc tree format in XNU and EfiEmu.
33367
33368 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33369 * efiemu/pnvram.c: Rewritten to use environment variables.
33370 All users updated.
33371
33372 Inline utf16_to_utf8.
33373
33374 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33375 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33376 All users updated.
33377 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33378
33379 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33380 * commands/usbtest.c (grub_usb_get_string): ... move here.
33381 (usb_print_str): Fix error handling.
33382 * include/grub/usb.h (grub_usb_get_string): Remove.
33383
33384 UTF-8 to UTF-16 transformation.
33385
33386 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33387 (charset_mod_SOURCES): New variable.
33388 (charset_mod_CFLAGS): Likewise.
33389 (charset_mod_LDFLAGS): Likewise.
33390 * include/grub/utf.h: New file.
33391 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33392
33393 Support for device properties.
33394
33395 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33396 (grub_xnu_devprop_device_header): Likewise.
33397 (grub_xnu_devprop_device_descriptor): Likewise.
33398 (grub_xnu_devprop_add_device): New prototype.
33399 (grub_xnu_devprop_remove_device): Likewise.
33400 (grub_xnu_devprop_remove_property): Likewise.
33401 (grub_xnu_devprop_add_property_utf8): Likewise.
33402 (grub_xnu_devprop_add_property_utf16): Likewise.
33403 (grub_cpu_xnu_init): Likewise.
33404 (grub_cpu_xnu_fini): Likewise.
33405 (grub_cpu_xnu_unload): Likewise.
33406 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33407 (property_descriptor): Likewise.
33408 (devices): New variable.
33409 (grub_xnu_devprop_remove_property): New function.
33410 (grub_xnu_devprop_add_device): Likewise.
33411 (grub_xnu_devprop_remove_device): Likewise.
33412 (grub_xnu_devprop_add_property): Likewise.
33413 (grub_xnu_devprop_add_property_utf8): Likewise.
33414 (grub_xnu_devprop_add_property_utf16): Likewise.
33415 (hextoval): Likewise.
33416 (grub_cpu_xnu_fill_devprop): Likewise.
33417 (grub_cmd_devprop_load): Likewise.
33418 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33419 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33420 (cmd_devprop_load): New variable.
33421 (grub_cpu_xnu_init): New function.
33422 (grub_cpu_xnu_fini): Likewise.
33423 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33424 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33425 (grub_cmd_xnu_devtree): Likewise.
33426 (hextoval): New function.
33427 (unescape): Likewise.
33428 (grub_xnu_fill_devicetree): Likewise.
33429
33430 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33431 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33432
0945f181
VS
334332009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33434
33435 Workaround for broken ATI VBE.
33436
33437 * video/i386/pc/vbe.c (last_set_mode): New variable.
33438 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33439 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33440 (grub_video_vbe_setup): Don't check for reserved flag.
33441
0ad46fd7 334422009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
33443
33444 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33445 the `find' command.
33446
c179ebe4
VS
334472009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33448
33449 UUID support for HFS.
33450
33451 * fs/hfs.c (grub_hfs_uuid): New function.
33452 (grub_hfs_fs): New value .uuid.
33453 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33454
0ad46fd7 334552009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
33456
33457 Fix a segfault with parsing unknown long options.
33458
33459 * util/grub-mkrelpath.c (options): Zero terminate it.
33460
c4a3e41a
CPE
334612009-12-13 Carles Pina i Estany <carles@pina.cat>
33462
33463 * include/grub/misc.h (grub_puts): New declaration.
33464 (grub_puts_): Likewise.
a22008a6 33465 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
33466 (grub_puts_): Likewise.
33467
2e8a7602
RM
334682009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33469
33470 * util/grub-probe.c (probe): Improve error message.
33471
b50b77b9
RM
334722009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33473
33474 * loader/i386/multiboot_elfxx.c
33475 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33476 initialization.
33477
334782009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33479
33480 Relocator framework
33481
33482 * loader/i386/xnu_helper.S: Removed. All users updated.
33483 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33484 (relocator_mod_SOURCES): New variable.
33485 (relocator_mod_CFLAGS): Likewise.
33486 (relocator_mod_LDFLAGS): Likewise.
33487 (relocator_mod_ASFLAGS): Likewise.
33488 * conf/x86_64.rmk: Likewise.
33489 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33490 (grub_multiboot_payload_entry_offset): Likewise.
33491 (grub_multiboot_forward_relocator): Likewise.
33492 (grub_multiboot_forward_relocator_end): Likewise.
33493 (grub_multiboot_backward_relocator): Likewise.
33494 (grub_multiboot_backward_relocator_end): Likewise.
33495 (grub_multiboot_payload_eip): New variable.
33496 (grub_multiboot_payload_orig): Likewise.
33497 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33498 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33499 * include/grub/i386/memory.h
33500 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33501 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33502 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33503 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33504 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33505 * include/grub/i386/relocator.h: New file.
33506 * include/grub/x86_64/relocator.h: Likewise.
33507 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33508 (XNU_RELOCATOR): New macro.
33509 (grub_xnu_launcher_start): Remove.
33510 (grub_xnu_launcher_end): Likewise.
33511 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33512 (grub_xnu_heap_real_start): Remove.
33513 (grub_xnu_heap_start): Change to void *. All users updated.
33514 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33515 * lib/i386/relocator.c: New file.
33516 * lib/i386/relocator_asm.S: Likewise.
33517 * lib/i386/relocator_backward.S: Likewise.
33518 * lib/mips/relocator.c: Likewise.
33519 * lib/mips/relocator_asm.S: Likewise.
33520 * lib/relocator.c: Likewise.
33521 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33522 (entry): Removed.
33523 (playground): Likewise.
33524 (grub_multiboot_payload_orig): New variable.
33525 (grub_multiboot_payload_dest): Likewise.
33526 (grub_multiboot_payload_size): Likewise.
33527 (grub_multiboot_payload_eip): Likewise.
33528 (grub_multiboot_payload_esp): Likewise.
33529 (grub_multiboot_boot): Use grub_relocator32_boot.
33530 (grub_multiboot_unload): Free relocators.
33531 (grub_multiboot): Setup stack. Use relocators.
33532 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33533 (grub_multiboot_load_elfXX): Use relocators.
33534 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33535 (grub_multiboot_payload_size): Likewise.
33536 (grub_multiboot_payload_dest): Likewise.
33537 (grub_multiboot_payload_entry_offset): Likewise.
33538 (grub_multiboot_forward_relocator): Likewise.
33539 (grub_multiboot_backward_relocator): Likewise.
33540 (grub_multiboot_real_boot): Likewise.
33541 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33542 (grub_xnu_entry_point): Likewise.
33543 (grub_xnu_arg1): Likewise.
33544 (grub_xnu_stack): Likewise.
33545 (grub_xnu_launch): Removed.
33546 (grub_xnu_boot_resume): New function.
33547 (grub_xnu_boot): Use relocators.
33548 * loader/i386/xnu_helper.S: Removed.
33549 * loader/xnu.c (grub_xnu_heap_start): New variable.
33550 (grub_xnu_heap_size): Likewise.
33551 (grub_xnu_heap_malloc): Use relocators.
33552 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33553
29eb90c6
VS
335542009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33555
33556 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33557 anything.
33558
31027430
CPE
335592009-12-13 Carles Pina i Estany <carles@pina.cat>
33560
33561 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33562 GRUB_ERR_NONE before calling grub_env_set.
33563
dc0c71d9
RM
335642009-12-12 Robert Millan <rmh@aybabtu.com>
33565
33566 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33567 * genmk.rb (video): New variable.
33568 (CLEANFILES, VIDEOFILES): Add #{video}.
33569 (#{video}): New target rule.
33570 * genvideolist.sh: New file.
33571 * Makefile.in (pkglib_DATA): Add video.lst.
33572 (video.lst): New target rule.
33573 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33574 `video.lst'.
33575 * util/grub.d/30_os-prober.in: Replace `vbe' with
33576 ${GRUB_VIDEO_BACKEND}.
33577
2a4bfcf0
RM
335782009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33579
33580 * THANKS: Add David Miller.
33581
2a3aa4d5
RM
335822009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33583
33584 libpciaccess support.
33585
33586 * Makefile.in (LIBPCIACCESS): New variable.
33587 (enable_grub_emu_pci): Likewise.
33588 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33589 util/pci.c and commands/lspci.c.
33590 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33591 * configure.ac (grub-emu-pci): New option.
33592 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33593 (grub_pci_device_unmap_range): Likewise.
33594 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33595 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33596 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33597 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33598 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33599 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33600 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33601 * include/grub/pciutils.h: New file.
33602 * util/pci.c: Likewise.
33603
0ad46fd7 336042009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
33605
33606 * util/misc.c: Don't include <errno.h> twice.
33607
0ad46fd7 336082009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
33609
33610 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33611 name in an error message.
33612 (grub_biosdisk_rw): Likewise.
33613
2e59983c
VS
336142009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33615
33616 Eliminate NTFS 4Gib barrier.
33617
33618 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33619 (read_run_data): Likewise.
33620 (grub_ntfs_read_run_list): Likewise.
33621 (grub_ntfs_read_block): Likewise.
33622 (grub_ntfs_iterate_dir): Likewise.
33623 (read_mft): Likewise.
33624 (read_data): Likewise.
33625 Use COM_LOG_LEN.
33626 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33627 to avoid 64-bit division
33628 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33629 (grub_ntfs_rlst): Use grub_disk_addr_t.
33630
71ee178a
VS
336312009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33632
33633 Eliminate grub-fstest 4Gib barrier.
33634
33635 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33636 (read_file): Fix error reporting.
33637
2520d4b8
VS
336382009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33639
33640 Eliminate hexdump 4Gib barrier.
33641
33642 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33643 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33644
e1f27065
VS
336452009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33646
33647 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33648 Fixes amarsh bug.
33649
1a0f7f45
RM
336502009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33651
33652 Remove miscellaneous files in distclean target.
33653
33654 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33655
c631d9fb
CW
336562009-12-09 Colin Watson <cjwatson@ubuntu.com>
33657
33658 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33659 if they're already set. This resolves the conflict between my
33660 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33661 fixing the --grub-probe option again.
33662 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33663 change on 2009-10-06, so that we now once again source
33664 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33665
7c7b6106
RM
336662009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33667
33668 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33669 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33670 `util/devicemap.c'.
33671
e3069ec1
CPE
336722009-12-08 Carles Pina i Estany <carles@pina.cat>
33673
33674 * include/grub/misc.h (grub_printf_): New declaration.
33675 * kern/misc.c (grub_printf_): New definition.
33676 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33677 instead of `grub_printf' and `_'.
33678 * normal/menu_entry.c (store_completion): Likewise.
33679 (run): Likewise.
33680 (grub_menu_entry_run): Likewise.
33681 * normal/menu_text.c (grub_wait_after_message): Likewise.
33682 (notify_booting): Likewise.
33683 (notify_fallback): Likewise.
33684 (notify_execution_failure): Likewise.
33685
d6ceebf1
CW
336862009-12-07 Colin Watson <cjwatson@ubuntu.com>
33687
33688 * configure.ac: Check for vasprintf.
33689 * util/misc.c (asprintf): Move allocation from here ...
33690 (vasprintf): ... to here. New function.
33691 (xasprintf): New function.
33692 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33693 prototypes.
33694 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33695 * util/grub-mkfont.c (write_font): Likewise.
33696 * util/grub-probe.c (probe): Likewise.
33697 * util/hostdisk.c (make_device_name): Likewise.
33698
de6daa8b
DM
336992009-12-06 David S. Miller <davem@sunset.davemloft.net>
33700
33701 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33702 anything even prefixed with 'cdrom' as a cdrom.
33703
0ad46fd7 337042009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
33705
33706 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33707 mount points.
33708
98d3dc02
CPE
337092009-12-05 Carles Pina i Estany <carles@pina.cat>
33710
33711 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33712 grub_gettext_msg_list.
33713 (grub_gettext_gettranslation_from_position): Return const char *
33714 and not char *.
a2c1332b 33715 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
33716 returns from the list if existing there.
33717 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33718 (grub_gettext_delete_list): Delete the list.
33719 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33720 lang environment variable is changed.
33721 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33722
b283f108
VS
337232009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33724
33725 Rename kernel.mod to kernel.img.
33726
33727 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33728 (kernel_mod_EXPORTS): Rename to ...
33729 (kernel_img_EXPORTS): ... this.
33730 (kernel_mod_SOURCES): Rename to ...
33731 (kernel_img_SOURCES): ... this.
33732 (kernel_mod_HEADERS): Rename to ...
33733 (kernel_img_HEADERS): ... this. All users updated.
33734 (kernel_mod_CFLAGS): Rename to ...
33735 (kernel_img_CFLAGS): ... this.
33736 (kernel_mod_ASFLAGS): Rename to ...
33737 (kernel_img_ASFLAGS): ... this.
33738 (kernel_mod_LDFLAGS): Rename to ...
33739 (kernel_img_LDFLAGS): ... this.
33740 * conf/x86_64-efi.rmk: Likewise.
33741 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33742 (read_kernel_image): ... this. All users updated.
33743 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33744
69055f8a
CPE
337452009-12-05 Carles Pina i Estany <carles@pina.cat>
33746
33747 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33748 (print_spaces): New function.
33749 (grub_print_ucs4): New function.
33750 (getstringwidth): New function.
33751 (print_message_indented): New function.
33752 (print_message): Gettexttize strings using print_message_indented.
33753 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33754 width.
33755 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 33756 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
33757 Gettextize.
33758 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33759 string.
33760 (run): Likewise.
33761 (grub_menu_entry_run): Likewise.
33762 * PO/POTFILES: Add normal/menu_entry.c.
33763
f616f51c
VS
337642009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33765
33766 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33767
57bbe3be
CPE
337682009-12-05 Carles Pina i Estany <carles@pina.cat>
33769
33770 * util/grub-install.in: Install gettext .mo files.
33771 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33772
013d67a1
CPE
337732009-12-05 Carles Pina i Estany <carles@pina.cat>
33774
33775 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33776 grub_dprintf.
33777
fb954db0
RM
337782009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33779
33780 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33781 non-firmware-dependant one in realmode.S takes precedence.
33782
6b8474f8
RM
337832009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33784
33785 * commands/halt.c: Replace misc arch-specific headers with
33786 `<grub/misc.h>'.
33787 * commands/reboot.c: Likewise.
33788 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33789 `<grub/misc.h>'.
33790 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33791 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33792 (kernel_img_SOURCES): ... to here.
33793
33794 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33795 * include/grub/i386/pc/init.h: Likewise.
33796 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33797 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33798
33799 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33800
33801 * include/grub/i386/halt.h: Remove.
33802 * include/grub/i386/reboot.h: Likewise.
33803
33804 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33805
4b2e6ca2
DM
338062009-12-03 David S. Miller <davem@sunset.davemloft.net>
33807
33808 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33809 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33810 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33811 "progname.h"
33812 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33813 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33814 (usage): Add missing comma in printf.
33815
5239348f
RM
338162009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33817
33818 Use the same reboot approach on i386 coreboot and qemu as we do on
33819 BIOS.
33820
33821 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33822 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33823 * kern/i386/reboot.c: Remove.
33824 * include/grub/i386/reboot.h (grub_reboot): Export function.
33825 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33826 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33827 0xf000:0xfff0 instead of 0xffff:0x0000.
33828 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33829 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33830
ef34cbd4
RM
338312009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33832
33833 Fix $srcdir != $objdir build.
33834
33835 * Makefile.in (po/%.po): Rewrite as ...
33836 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33837
dc9837ea
ST
338382009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33839
33840 Fix GNU/Hurd grub-install crash.
33841 * util/grub-probe.c (probe): Try to access `path' only when it is not
33842 NULL.
33843
2f857f98
VS
338442009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33845
33846 Correct module naming.
33847
33848 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33849 (GRUB_MOD_INIT(efi_uga)): ... to this
33850 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33851 (GRUB_MOD_FINI(efi_uga)): ... to this
33852 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33853 (GRUB_MOD_INIT(efi_gop)): ... to this
33854 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33855 (GRUB_MOD_FINI(efi_gop)): ... to this
33856
c5448046
RM
338572009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33858
33859 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33860 translatable.
33861 (usage): Translate `arg' strings using gettext().
33862 Thanks to Jordi Mallach for the suggestion.
33863
c85184ad
VS
338642009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33865
33866 GOP support. Based on patch from Bean
33867 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33868
33869 * video/efi_gop.c: New file.
33870 * include/grub/efi/graphics_output.h: Likewise.
33871 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33872 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33873 variables.
33874 * conf/x86_64-efi.rmk: Likewise.
33875
8a4c48d8
VS
338762009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33877
33878 Rename efi_fb to efi_uga.
33879
33880 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33881 'efi_uga.mod'.
33882 (efi_fb_mod_SOURCES): Rename this ...
33883 (efi_uga_mod_SOURCES): ... to this.
33884 (efi_fb_mod_CFLAGS): Rename this ...
33885 (efi_uga_mod_CFLAGS): ... to this.
33886 (efi_fb_mod_LDFLAGS): Rename this ...
33887 (efi_uga_mod_LDFLAGS): ... to this.
33888 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33889 'efi_uga.mod'.
33890 (efi_fb_mod_SOURCES): Rename this ...
33891 (efi_uga_mod_SOURCES): ... to this.
33892 (efi_fb_mod_CFLAGS): Rename this ...
33893 (efi_uga_mod_CFLAGS): ... to this.
33894 (efi_fb_mod_LDFLAGS): Rename this ...
33895 (efi_uga_mod_LDFLAGS): ... to this.
33896 * video/efi_fb.c: Move this ...
33897 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33898
fb6c1a7b
RM
338992009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33900
33901 * po/README: New file. Explain our PO file workflow.
33902
3bc7896c
RM
339032009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33904
33905 * po/ChangeLog: Remove. Move relevant entries back to ...
33906 * ChangeLog: ... here.
33907 * po/ca.po: Remove (now handled by TLP).
33908 * po/id.po: Likewise.
33909 * po/zh_CN.po: Likewise.
33910 * Makefile.in (LINGUAS): Initialize in a way that supports
33911 empty set.
33912
9ed4841d
RM
339132009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33914
33915 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33916 reliing on po/LINGUAS.
33917 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33918 (po/%.po): ... this.
33919
0ad46fd7 339202009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
33921
33922 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33923 (main): Use `program_name' instead of nonexistent `progname'.
33924
e30dd392
FZ
339252009-11-26 Felix Zielcke <fzielcke@z-51.de>
33926
33927 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33928 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33929
7656de4f
RM
339302009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33931
33932 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33933 commit.
33934 * conf/i386-efi.rmk: Likewise.
33935 * conf/i386-ieee1275.rmk: Likewise.
33936 * conf/powerpc-ieee1275.rmk: Likewise.
33937 * conf/sparc64-ieee1275.rmk: Likewise.
33938 * conf/x86_64-efi.rmk: Likewise.
33939
db77c4d4
FZ
339402009-11-26 Felix Zielcke <fzielcke@z-51.de>
33941
33942 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33943
a755bb04
FZ
339442009-11-26 Felix Zielcke <fzielcke@z-51.de>
33945
33946 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33947
8a4c07fd
RM
339482009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33949
33950 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33951 (grub_mkdevicemap_SOURCES): New variable.
33952 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33953 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33954 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33955 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33956 (grub_mkdevicemap_SOURCES): Remove.
33957 * conf/i386-efi.rmk: Likewise.
33958 * conf/i386-ieee1275.rmk: Likewise.
33959 * conf/i386-pc.rmk: Likewise.
33960 * conf/powerpc-ieee1275.rmk: Likewise.
33961 * conf/sparc64-ieee1275.rmk: Likewise.
33962 * conf/x86_64-efi.rmk: Likewise.
33963 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33964 (usage): Fix strings to use `program_name'.
33965 (main): Initialize gettext.
33966 * util/grub-editenv.c: Likewise.
33967 * util/grub-emu.c: Likewise.
33968 * util/grub-fstest.c: Likewise.
33969 * util/grub-mkdevicemap.c: Likewise.
33970 * util/grub-mkfont.c: Likewise.
33971 * util/grub-mkrelpath.c: Likewise.
33972 * util/grub-pe2elf.c: Likewise.
33973 * util/grub-probe.c: Likewise.
33974 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33975 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33976 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33977
33978 * util/misc.c: Include `"progname.h"'.
33979 (progname): Remove variable.
33980 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33981
6f61ed55
FZ
339822009-11-25 Felix Zielcke <fzielcke@z-51.de>
33983
33984 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33985 printf and print a newline after the menuentry header line.
33986 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33987
f022876b
FZ
339882009-11-25 Felix Zielcke <fzielcke@z-51.de>
33989
33990 autoconf >= 2.60 support $(localedir).
33991
33992 * INSTALL: Note that autoconf 2.60 is required.
33993 * configure.ac (AC_PREREQ): Bump to 2.60.
33994 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33995 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33996
6717926e
YB
339972009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33998
33999 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34000 aclocal is run.
34001
08806a54
RM
340022009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34003
34004 * normal/main.c (grub_normal_read_line): Fix off-by-one
34005 buffer overflow.
34006
13b33fba
RM
340072009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34008
34009 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34010 "parser.grub" in grub_command_execute() call.
34011
4a8572e9
CPE
340122009-11-24 Carles Pina i Estany <carles@pina.cat>
34013
34014 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34015 * conf/i386-efi.rmk: Likewise.
34016 * conf/i386-ieee1275.rmk: Likewise.
34017 * conf/i386-pc.rmk: Likewise.
34018 * conf/powerpc-ieee1275.rmk: Likewise.
34019 * conf/sparc64-ieee1275.rmk: Likewise.
34020 * conf/x86_64-efi.rmk: Likewise.
34021 * gettext/gettex.c: Include <grub/i18n.h>.
34022 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34023 here ...
34024 * include/grub/i18n.h: ... to here
34025 * include/grub/i18n.h: ... to here.
34026 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 34027 (grub_gettext_dummy): Move above user.
4a8572e9 34028
bee48093
FZ
340292009-11-24 Felix Zielcke <fzielcke@z-51.de>
34030
34031 * util/Makefile.in (install-local): Convert a `for' into a normal
34032 shell expansion.
34033
a031e91c
RM
340342009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34035
34036 * autogen.sh: Add automake call.
34037 * config.guess: Remove.
34038 * config.sub: Likewise.
34039 * install-sh: Likewise.
34040
26bec39d
FZ
340412009-11-24 Felix Zielcke <fzielcke@z-51.de>
34042
34043 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34044
8e2532fd
FZ
340452009-11-24 Felix Zielcke <fzielcke@z-51.de>
34046
34047 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34048 function to a normal shell `for'.
34049
fefa1b7d
FZ
340502009-11-24 Felix Zielcke <fzielcke@z-51.de>
34051
34052 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34053
4501250b
FZ
340542009-11-24 Felix Zielcke <fzielcke@z-51.de>
34055
34056 * util/grub-mkrelpath.c: New file.
34057 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34058 (grub_mkrelpath_SOURCES): New variable.
34059 * include/grub/util/misc.h: New function prototype.
34060 * util/misc.c (make_system_path_relative_to_its_root): New function.
34061
34062 * util/grub-mkconfig_lib.in (bindir): New variable.
34063 (grub_mkrelpath): Likewise.
34064 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34065
34066 * util/probe.c (probe): Make the file path relative to its root.
34067 Change a info message to use the GRUB path. Enable again the
34068 check if we can read the file with GRUB facilities.
34069
34070 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34071 to its root.
34072
11d9778b
FZ
340732009-11-24 Felix Zielcke <fzielcke@z-51.de>
34074
34075 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34076 platform.
34077
4465287d
FZ
340782009-11-24 Felix Zielcke <fzielcke@z-51.de>
34079
34080 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34081 strncmp().
34082
62b47f22
FZ
340832009-11-24 Felix Zielcke <fzielcke@z-51.de>
34084
34085 * util/getroot.c (grub_util_is_dmraid): New function.
34086 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34087 devices as normal ones, not as LVM.
34088
1eafb9b9 340892009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
34090
34091 * conf/common.rmk: Add grub-gettext_lib target and updates
34092 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34093 LDFLAGS.
34094 * gettext/gettext.c: New file. (Reads mo files).
34095 * include/grub/file.h (grub_file_pread): New prototype.
34096 * include/grub/i18n.h (_): New prototype.
34097 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34098 prototypes.
34099 * kern/misc.c (grub_gettext_dummy): New function.
34100 * normal/menu_text.c: Include <grub/i18n.h>.
34101 * normal/menu_text.c (print_timeout): Gettexttize string.
34102 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
34103 * po/POTFILES: Add `normal/menu_text.c'.
34104 * po/ca.po: Add new translations.
c3ea6bd4
CPE
34105 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34106 gettext module and defines locale_dir and lang in grub.cfg.
34107 * NEWS: Add gettext support.
34108
0fdb2568
RM
341092009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34110
34111 * util/hostdisk.c: Include `<grub/i18n.h>'.
34112 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34113 (make_device_name): Rewrite using asprintf.
34114 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34115 (find_system_device): If a device is not found, generate one just
34116 by reusing the OS path name.
34117 (read_device_map): Make it permissible for device.map not to exist.
34118
f515aa62
RM
341192009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34120
34121 * script/sh/execute.c: Move from here ...
34122 * script/execute.c: ... to here. Update all users.
34123 * script/sh/function.c: Move from here ...
34124 * script/function.c: ... to here. Update all users.
34125 * script/sh/lexer.c: Move from here ...
34126 * script/lexer.c: ... to here. Update all users.
34127 * script/sh/main.c: Move from here ...
34128 * script/main.c: ... to here. Update all users.
34129 * script/sh/parser.y: Move from here ...
34130 * script/parser.y: ... to here. Update all users.
34131 * script/sh/script.c: Move from here ...
34132 * script/script.c: ... to here. Update all users.
34133
f84b481b
RM
341342009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34135
34136 * configure.ac: Detect all `emu' platforms. Define
34137 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34138 --enable-grub-emu logic. Disable include/grub/machine
34139 symlink on `emu' platforms.
34140
34141 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34142 * gensymlist.sh.in: Likewise.
34143
34144 * include/grub/i386/coreboot/machine.h: Remove file.
34145 * include/grub/i386/efi/machine.h: Likewise.
34146 * include/grub/i386/ieee1275/machine.h: Likewise.
34147 * include/grub/i386/pc/machine.h: Likewise.
34148 * include/grub/i386/qemu/machine.h: Likewise.
34149 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34150 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34151 * include/grub/x86_64/efi/machine.h: Likewise.
34152
34153 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34154 * commands/halt.c: Likewise.
34155 * commands/reboot.c: Likewise.
34156 * include/grub/autoefi.h: Likewise.
34157 * include/grub/i386/at_keyboard.h: Likewise.
34158 * include/grub/i386/kernel.h: Likewise.
34159 * include/grub/i386/loader.h: Likewise.
34160 * include/grub/i386/pc/memory.h: Likewise.
34161 * kern/dl.c: Likewise.
34162 * kern/i386/coreboot/init.c: Likewise.
34163 * loader/i386/bsd.c: Likewise.
34164 * loader/i386/linux.c: Likewise.
34165 * loader/multiboot_loader.c: Likewise.
34166 * term/i386/pc/serial.c: Likewise.
34167 * term/usb_keyboard.c: Likewise.
34168
34169 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34170 `<grub/machine/machine.h>'
34171 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34172 * util/misc.c: Remove `<grub/machine/machine.h>' and
34173 `<grub/machine/time.h>'.
34174
34175 * Makefile.in (enable_grub_emu): Remove variable.
34176 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34177
34178 * conf/any-emu.rmk: New file.
34179 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34180 (grub_emu_init.c): Move from here ...
34181 * conf/any-emu.rmk: ... to here.
34182
34183 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34184 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34185 * conf/any-emu.rmk: ... to here.
34186
4efeab03
RM
341872009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34188
34189 * include/grub/parser.h (grub_parser_register): Document need
34190 of `name' parameter.
34191 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34192 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34193 "sh" to "grub".
34194
ea1dd8bf
RM
341952009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34196
34197 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34198 `$(XGETTEXT)'.
34199 * include/grub/i18n.h (N_): New macro.
34200 * util/mkisofs/mkisofs.h: Likewise.
34201 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34202 around N_().
34203 (usage): Use gettext() to translate help strings when printing them.
34204
0c140626
RM
342052009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34206
34207 Based on patch from Bean
34208 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34209
34210 * video/efi_fb.c: New file.
34211 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34212 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34213 variables.
34214 * conf/x86_64-efi.rmk: Likewise.
34215
87d58298
RM
342162009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34217
34218 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34219 * util/i386/pc/grub-setup.c: Likewise.
34220
994cc3a3
ST
342212009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34222
34223 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34224 <hurd/fs.h>
34225 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34226 file_get_storage_info to implement grub_guess_root_device.
34227
26a61d6a
FZ
342282009-11-21 Felix Zielcke <fzielcke@z-51.de>
34229
34230 * Makefile.in (target): Use make's builtin $(shell) function
34231 instead of calling directly $(SHELL) to create the locale directories,
34232 inside the $(foreach) function.
34233
74ff1dd5
FZ
342342009-11-21 Felix Zielcke <fzielcke@z-51.de>
34235
34236 * util/grub-mkrescue.in: Print an error and usage if output option
34237 has not been given.
34238
0b787d0e
FZ
342392009-11-21 Felix Zielcke <fzielcke@z-51.de>
34240
34241 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34242 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34243 root and /boot are on different devices.
34244
1164b270
RM
342452009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34246
34247 Fix build for srcdir != objdir.
34248
34249 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34250 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34251 $(srcdir).
34252 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34253 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34254 reference for input.
34255
13774a2f
RM
342562009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34257
34258 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34259 or hardlinking it). Remove -J option, Joliet is not compatible with
34260 multiple source directories.
34261
efda854e
RM
342622009-11-21 Carles Pina i Estany <carles@pina.cat>
342632009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34264
34265 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34266 (process_input_dir): New function. Process an arbitrary input
34267 directory.
34268 Misc adjustments to support both "override mode" and system-wide mode.
34269
6c09890c
FZ
342702009-11-20 Felix Zielcke <fzielcke@z-51.de>
34271
34272 * configure.ac (UNIFONT_BDF): Rename to ...
34273 (FONT_SOURCE): ... this. Update all users.
34274
a797824f
FZ
342752009-11-20 Felix Zielcke <fzielcke@z-51.de>
34276
34277 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34278 to the list of unifont files to look for.
34279
cd4f42b0
RM
342802009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34281
34282 Patch from Joe Auricchio <jauricchio@gmail.com>
34283 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34284 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34285 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34286
393c783d
FZ
342872009-11-19 Felix Zielcke <fzielcke@z-51.de>
34288
34289 * Makefile.in (install-local): Add a missing backslash.
34290
b2f1e327
FZ
342912009-11-19 Felix Zielcke <fzielcke@z-51.de>
34292
34293 * include/grub/x86_64/io.h: New file.
34294
f577f7a0
RM
342952009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34296
34297 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34298 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34299 Include `"progname.h"'.
34300 (main): Initialize gettext.
34301 * util/i386/pc/grub-setup.c: Gettexttize.
34302 * util/i386/pc/grub-mkimage.c: Likewise.
34303
34304 * Makefile.in (po/*.po): Redefine as ...
34305 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34306
3bc7896c
RM
34307 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34308
c37943b6
RM
343092009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34310
34311 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34312 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34313 (program_name): Remove.
34314 (main): Initialize gettext support.
6323f705
RM
34315 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34316 Include `<libintl.h>'.
34317 (_): New macro.
c37943b6
RM
34318
34319 * util/mkisofs/eltorito.c: Gettexttize.
34320 * util/mkisofs/joliet.c: Likewise.
34321 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
34322 * util/mkisofs/multi.c: Likewise.
34323 * util/mkisofs/rock.c: Likewise.
34324 * util/mkisofs/tree.c: Likewise.
34325 * util/mkisofs/write.c: Likewise.
34326
3bc7896c
RM
34327 * po/POTFILES: Update with new files.
34328
5ce77c6e
RM
343292009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34330
34331 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34332 * util/mkisofs/iso9660.h: Likewise.
34333 * util/mkisofs/joliet.c: Likewise.
34334 * util/mkisofs/mkisofs.c: Likewise.
34335 * util/mkisofs/mkisofs.h: Likewise.
34336 * util/mkisofs/rock.c: Likewise.
34337 * util/mkisofs/tree.c: Likewise.
34338 * util/mkisofs/write.c: Likewise.
34339
34340 * util/mkisofs/eltorito.c (rcsid): Remove.
34341 * util/mkisofs/hash.c: Likewise.
34342 * util/mkisofs/joliet.c: Likewise.
34343 * util/mkisofs/name.c: Likewise.
34344 * util/mkisofs/rock.c: Likewise.
34345 * util/mkisofs/tree.c: Likewise.
34346 * util/mkisofs/write.c: Likewise.
34347
1dabbc77
RM
343482009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34349
34350 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34351 instead of static allocation.
34352 * util/mkisofs/match.h: Likewise.
34353
633877cb
RM
343542009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34355
3bc7896c
RM
34356 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34357 and `util/grub.d/10_linux.in'.
633877cb
RM
34358 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34359 translatable Shell files.
34360
af1c0c85
RM
343612009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34362
34363 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34364
769ae37b
RM
343652009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34366
34367 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 34368 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
34369 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34370 Add gettext initialization.
34371 (kfreebsd_entry): Make menuentry output translatable.
34372
343732009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34374
34375 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34376 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34377 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34378 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34379 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 34380 * po/LINGUAS: New file.
769ae37b
RM
34381
343822009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34383
34384 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34385 other things).
34386 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34387 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34388 bindtextdomain() calls for gettext initialization.
34389
343902009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34391
34392 * gnulib/progname.c: New file (imported from Gnulib).
34393 * gnulib/progname.h: Likewise.
34394 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34395 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34396 (usage): Replace `progname' with `program_name'.
34397 (main): Use set_program_name() for program name initialization.
34398
343992009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34400
34401 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34402 from here ...
34403 * Makefile.in (CPPFLAGS): ... to here.
34404
344052009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34406
34407 * aclocal.m4: Move from here ...
34408 * acinclude.m4: ... to here.
34409 * autogen.sh: Add call to `aclocal'.
34410 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34411
344122009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34413
34414 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34415 (LINGUAS): New variable.
34416 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34417 (install-local): Install MO files.
34418 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34419 * include/grub/i18n.h: New file.
3bc7896c
RM
34420 * po/POTFILES: New file.
34421 * po/ca.po: New file.
769ae37b
RM
34422 * util/grub.d/10_linux.in (bindir): New variable.
34423 Add gettext initialization.
34424 (linux_entry): Make menuentry output translatable.
34425 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34426 (usage): Make --help output translatable.
34427 (main): Initialize gettext.
34428
02c0a6ad
RM
344292009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34430
34431 * import_gcry.py: New file (written by Vladimir with minor
34432 adjustments).
34433 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34434 ciphers.
34435 * INSTALL: Document that Python is required for bootstrap.
34436
344372009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34438
34439 Import ciphers from libgcrypt 1.4.4.
34440
34441 * lib/libgcrypt/cipher/ChangeLog
34442 * lib/libgcrypt/cipher/ac.c
34443 * lib/libgcrypt/cipher/arcfour.c
34444 * lib/libgcrypt/cipher/bithelp.h
34445 * lib/libgcrypt/cipher/blowfish.c
34446 * lib/libgcrypt/cipher/camellia-glue.c
34447 * lib/libgcrypt/cipher/camellia.c
34448 * lib/libgcrypt/cipher/camellia.h
34449 * lib/libgcrypt/cipher/cast5.c
34450 * lib/libgcrypt/cipher/cipher.c
34451 * lib/libgcrypt/cipher/crc.c
34452 * lib/libgcrypt/cipher/des.c
34453 * lib/libgcrypt/cipher/dsa.c
34454 * lib/libgcrypt/cipher/ecc.c
34455 * lib/libgcrypt/cipher/elgamal.c
34456 * lib/libgcrypt/cipher/hash-common.c
34457 * lib/libgcrypt/cipher/hash-common.h
34458 * lib/libgcrypt/cipher/hmac-tests.c
34459 * lib/libgcrypt/cipher/md.c
34460 * lib/libgcrypt/cipher/md4.c
34461 * lib/libgcrypt/cipher/md5.c
34462 * lib/libgcrypt/cipher/primegen.c
34463 * lib/libgcrypt/cipher/pubkey.c
34464 * lib/libgcrypt/cipher/rfc2268.c
34465 * lib/libgcrypt/cipher/rijndael-tables.h
34466 * lib/libgcrypt/cipher/rijndael.c
34467 * lib/libgcrypt/cipher/rmd.h
34468 * lib/libgcrypt/cipher/rmd160.c
34469 * lib/libgcrypt/cipher/rsa.c
34470 * lib/libgcrypt/cipher/seed.c
34471 * lib/libgcrypt/cipher/serpent.c
34472 * lib/libgcrypt/cipher/sha1.c
34473 * lib/libgcrypt/cipher/sha256.c
34474 * lib/libgcrypt/cipher/sha512.c
34475 * lib/libgcrypt/cipher/tiger.c
34476 * lib/libgcrypt/cipher/twofish.c
34477 * lib/libgcrypt/cipher/whirlpool.c
34478
af2f93ac
RM
344792009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34480
34481 Fix build for systems without error().
34482
34483 * gnulib/error.c: New file (imported from Gnulib).
34484 * gnulib/error.h: Likewise.
34485 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34486 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34487 (this variable is now used by error()).
34488
73fb3dd5
FZ
344892009-11-16 Felix Zielcke <fzielcke@z-51.de>
34490
814f5e96
FZ
34491 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34492 instead of relying that char is signed.
73fb3dd5 34493
a691ca33
VS
344942009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34495
34496 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34497 blocksize different from specified.
34498 (grub_pxefs_read): Likewise.
34499
2af8f0f4
FZ
345002009-11-16 Felix Zielcke <fzielcke@z-51.de>
34501
34502 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34503
34504 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34505 (grub_ata_readwrite): Likewise. Update 2 format strings.
34506 (grub_atapi_read): Likewise.
34507
34508 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34509 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34510 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34511 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34512 (ata_mod_LDFLAGS): Move from here ...
34513 * conf/i386.rmk: ... to here ...
34514 * conf/x86_64-efi.rmk: ... and here.
34515 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34516 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34517
83bdecaf
RM
345182009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34519
34520 Relicense multiboot.h, with RMS' blessing.
34521
34522 * include/multiboot.h: Change to X11 license.
34523
fd6fd3d7
RM
345242009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34525
34526 Support --version in grub-mkisofs.
34527
34528 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34529 (OPTION_VERSION): New macro.
34530 (ld_options): Recognize --version.
34531 (usage): Move `program_name' from here ...
34532 (program_name): ... to here. Add `static' qualifier.
34533 (main): Recognize `OPTION_VERSION'.
34534
16a88c49
FZ
345352009-11-15 Felix Zielcke <fzielcke@z-51.de>
34536
34537 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34538 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34539
a4158476
RM
345402009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34541
34542 Fix help2man generation for mkisofs.
34543
34544 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34545 (usage): Send output to stdout (rather than stderr).
34546
fc2208b0
RM
345472009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34548
34549 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34550 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34551 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34552 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34553 (bin_SCRIPTS): Add `grub-mkfloppy'.
34554 (grub_mkfloppy_SOURCES): New variable.
34555
34556 * util/grub-mkrescue.in: New file.
34557 * util/i386/pc/grub-mkfloppy.in: New file.
34558
34559 * util/i386/coreboot/grub-mkrescue.in: Remove.
34560 * util/i386/pc/grub-mkrescue.in: Remove.
34561
8d0edf4a
RM
345622009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34563
34564 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34565 from here ...
34566 * include/multiboot.h (struct multiboot_header): ... to here. Update
34567 all users.
34568 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34569 from here ...
34570 * include/multiboot.h (struct multiboot_info): ... to here. Update
34571 all users.
34572 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34573 from here ...
34574 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34575 Update all users.
34576 * include/grub/multiboot.h (struct grub_mod_list): Move
34577 from here ...
34578 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34579 Update all users.
34580
a73f5969
RM
345812009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34582
34583 * include/multiboot2.h (multiboot_word): Rename from this ...
34584 (multiboot2_word): ... to this. Update all users.
34585 (multiboot_header): Rename from this ...
34586 (multiboot2_header): ... to this. Update all users.
34587 (multiboot_tag_header): Rename from this ...
34588 (multiboot2_tag_header): ... to this. Update all users.
34589 (multiboot_tag_start): Rename from this ...
34590 (multiboot2_tag_start): ... to this. Update all users.
34591 (multiboot_tag_name): Rename from this ...
34592 (multiboot2_tag_name): ... to this. Update all users.
34593 (multiboot_tag_module): Rename from this ...
34594 (multiboot2_tag_module): ... to this. Update all users.
34595 (multiboot_tag_memory): Rename from this ...
34596 (multiboot2_tag_memory): ... to this. Update all users.
34597 (multiboot_tag_unused): Rename from this ...
34598 (multiboot2_tag_unused): ... to this. Update all users.
34599 (multiboot_tag_end): Rename from this ...
34600 (multiboot2_tag_end): ... to this. Update all users.
34601
1c8927f0
RM
346022009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34603
34604 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34605 this platform we should support Multiboot1 first.
34606
34607 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34608 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34609 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34610
6e1e0d89
RM
346112009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34612
34613 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34614 of write calls (converting them to fwrite() if they aren't already).
34615 (get_torito_desc): Likewise.
34616 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34617
7f2b34d8
RM
346182009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34619
34620 * util/i386/pc/grub-install.in: Move from here ...
34621 * util/grub-install.in: ... to here. Update all users.
34622
c0ef3311
CW
346232009-11-11 Colin Watson <cjwatson@ubuntu.com>
34624
34625 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34626
e1f240ff
RM
346272009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34628
34629 Support for El Torito without floppy emulation.
34630
34631 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34632 (init_boot_catalog): Improve error handling.
34633 (get_torito_desc): Don't use floppy emulation unless requested by
34634 user. Patch boot information table when requested via
34635 `-boot-info-table'.
34636 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34637 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34638 (use_boot_info_table): New variables.
34639 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34640 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34641 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34642 `--eltorito-emul-floppy'.
34643 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34644 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34645 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34646 (use_boot_info_table, get_731): New prototypes.
34647 * util/mkisofs/write.c (get_731): New function.
34648
af7d4de5
FZ
346492009-11-11 Felix Zielcke <fzielcke@z-51.de>
34650
34651 Fix the generation of the man page.
34652
34653 * util/pc/i386/grub-install.in: Source
34654 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34655
2c55dbc0
RM
346562009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34657
34658 Large file support for grub-mkisofs.
34659
34660 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34661 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34662 (session_start): Upgrade type to `uint64_t'. Update all users.
34663 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34664 (struct directory_entry): Upgrade type of `starting_block' and
34665 `size' to `uint64_t'. Update all users.
34666 (struct deferred): Remove unused structure.
34667 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34668 Update all users.
34669 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34670 file is larger than `UINT32_MAX'.
34671 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34672 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34673 return value.
34674 (struct deferred_write): Upgrade type of `extent' and `size' to
34675 `uint64_t'. Update all users.
34676 (last_extent_written): Upgrade type to `uint64_t'. Update all
34677 users.
34678 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34679 Update all users. Upgrade type of `remain' to `int64_t' and
34680 `use' to `size_t'. Use error() to handle fread() errors.
34681 (write_files): Rely on write_one_file() rather than calling
34682 xfwrite() directly.
34683
6a9cead5
FZ
346842009-11-09 Felix Zielcke <fzielcke@z-51.de>
34685
34686 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34687
4825d790
RM
346882009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34689
34690 * util/mkisofs/fnmatch.c: Remove.
34691 * util/mkisofs/getopt1.c: Likewise.
34692 * util/mkisofs/getopt.c: Likewise.
34693 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34694 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34695 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34696 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34697 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34698
34699 * configure.ac: Detect `mingw32msvc' host_os.
34700 Check for lstat(), getuid() and getgid().
34701
34702 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34703 instances of `u_char' with `uint8_t'.
34704
34705 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34706 [!HAVE_GETUID] (getuid): New function (stub).
34707 [!HAVE_GETGID] (getgid): Likewise.
34708 [!HAVE_LSTAT] (lstat): Likewise.
34709 [!S_IROTH] (S_IROTH): New macro (dummy).
34710 [!S_IRGRP] (S_IRGRP): Likewise.
34711
84b860d8
RM
347122009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34713
34714 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34715 conditional expression).
34716
66e9b712
RM
347172009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34718
34719 Import from Gnulib.
34720
34721 * gnulib/fnmatch.c: New file.
34722 * gnulib/fnmatch.h: Likewise.
34723 * gnulib/fnmatch_loop.c: Likewise.
34724 * gnulib/getopt.c: Likewise.
34725 * gnulib/getopt.h: Likewise.
34726 * gnulib/getopt1.c: Likewise.
34727 * gnulib/getopt_int.h: Likewise.
34728 * gnulib/gettext.h: Likewise.
34729
34f4a5b0
RM
347302009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34731
34732 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34733 * normal/handler.c (read_handler_list): Likewise.
34734
ac451143
RM
347352009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34736
34737 Misc cleanup.
34738
34739 * kern/command.c (grub_register_command_prio): Use
34740 grub_zalloc() instead of explicitly zeroing data.
34741 * kern/list.c: Include `<grub/mm.h>'.
34742 (grub_named_list_find): Replace `0' with `NULL'.
34743 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34744 (fs_module_list): Change type to `grub_named_list_t'. Update all
34745 users.
34746 * normal/dyncmd.c (read_command_list): Add space between function
34747 call and parenthesis.
34748 * normal/handler.c (read_handler_list): Likewise.
34749
4089b167
RM
347502009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34751
34752 * normal/auth.c (punishment_delay): Moved from here ...
34753 (grub_auth_strcmp): ... to here (inside function).
34754
325f5037
RM
347552009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34756
34757 * include/grub/list.h (struct grub_named_list): Remove `const'
34758 qualifier from `name'.
34759 (struct grub_prio_list): Likewise.
34760
7aea29a3
RM
347612009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34762
34763 * normal/auth.c: Include `<grub/time.h>'.
34764 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34765
3fd6f044
RM
347662009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34767
34768 * normal/auth.c (punishment_delay): New variable.
34769 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34770 (grub_auth_check_authentication): Punish failed login attempts with
34771 an incremental (2^N) delay.
34772
a4cd68e4
RM
347732009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34774
34775 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34776 path with $(srcdir).
34777
7ad12f43
VS
347782009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34779
34780 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34781
c1129f03
RM
347822009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34783
34784 * util/i386/coreboot/grub-mkrescue.in: New file.
34785 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34786 variables.
34787
34788 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34789 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34790 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34791 requirements.
34792 * util/mkisofs/defaults.h: New file.
34793 * util/mkisofs/eltorito.c: Likewise.
34794 * util/mkisofs/exclude.h: Likewise.
34795 * util/mkisofs/fnmatch.c: Likewise.
34796 * util/mkisofs/getopt.c: Likewise.
34797 * util/mkisofs/getopt1.c: Likewise.
34798 * util/mkisofs/hash.c: Likewise.
34799 * util/mkisofs/include/fctldefs.h: Likewise.
34800 * util/mkisofs/include/mconfig.h: Likewise.
34801 * util/mkisofs/include/prototyp.h: Likewise.
34802 * util/mkisofs/include/statdefs.h: Likewise.
34803 * util/mkisofs/iso9660.h: Likewise.
34804 * util/mkisofs/joliet.c: Likewise.
34805 * util/mkisofs/match.c: Likewise.
34806 * util/mkisofs/match.h: Likewise.
34807 * util/mkisofs/mkisofs.c: Likewise.
34808 * util/mkisofs/mkisofs.h: Likewise.
34809 * util/mkisofs/multi.c: Likewise.
34810 * util/mkisofs/name.c: Likewise.
34811 * util/mkisofs/rock.c: Likewise.
34812 * util/mkisofs/tree.c: Likewise.
34813 * util/mkisofs/write.c: Likewise.
34814
ec8bb77d
VS
348152009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34816
34817 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34818 being insecure.
34819
3716b12c
RM
348202009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34821
34822 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34823 `grub-mkimage' (and use $0 when possible).
34824
b97b7b91
RM
348252009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34826
34827 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34828 error message for excessively large memory map.
34829
04114812
RM
348302009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34831
34832 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34833 executable bit.
34834
e4eb2373
RM
348352009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34836
34837 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34838 message for coreboot users.
34839
c926e1d5 348402009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34841
34842 Fix build with GNU gold.
34843
34844 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34845 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34846 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34847 link addresses.
34848 * aclocal.m4: Likewise.
34849
86e5b1db 348502009-11-04 Felix Zielcke <fzielcke@z-51.de>
34851
34852 * configure.ac (AC_PREREQ): Bump to 2.59d.
34853 * INSTALL: Make it more clear when Autoconf and Ruby are
34854 needed and when to run `./autogen.sh'.
34855
246cd78f 348562009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34857
34858 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34859 OSes.
34860
4f9dfb37 348612009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34862
34863 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34864
b82bd5e1 348652009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34866
34867 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34868 giving it to GNU Mach.
34869
ff1a9bca 348702009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34871
34872 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34873 GNU partition number to get internal GRUB partition number.
34874
61697d9c 348752009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34876
34877 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34878 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34879
a50569e1 348802009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34881
34882 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34883 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34884 case.
34885
5b153867 348862009-11-01 Felix Zielcke <fzielcke@z-51.de>
34887
34888 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34889
d9e2cd70 348902009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34891
34892 Fix build problem.
34893
34894 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34895 `-isystem=$(srcdir)/include'.
34896
805111a4 348972009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34898
34899 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34900 checked (grub-install doesn't currently rely on it).
34901
fa6e945f 349022009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34903
34904 Revert SVN r2660.
34905
34906 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34907 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34908 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34909 * conf/i386-ieee1275.rmk: Likewise.
34910 * conf/i386-pc.rmk: Likewise.
34911 * conf/powerpc-ieee1275.rmk: Likewise.
34912 * conf/sparc64-ieee1275.rmk: Likewise.
34913 * conf/x86_64-efi.rmk: Likewise.
34914
cee15086 349152009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34916
34917 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34918
95b9239e 349192009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34920
34921 * include/grub/misc.h: Stop checking for APPLE_CC.
34922
2ed19dfd 349232009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34924
34925 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34926 doesn't cause an infinite call loop.
34927
fdcdde19 349282009-10-28 Felix Zielcke <fzielcke@z-51.de>
34929
34930 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34931 strings.
34932
cefabfe1 349332009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34934
34935 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34936 variable.
34937 * Makefile.in: Likewise.
34938
ed96ab6d 349392009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34940
34941 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34942
0579b753 349432009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34944
34945 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34946
478df409 349472009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34948
34949 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34950
083d1679 349512009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34952
34953 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34954 from here ...
34955 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34956
5947ae32 349572009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34958
34959 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34960 in $(MAKEINFO) invocation. This makes it clear in output that
34961 errors are being ignored.
34962
94180ff6 349632009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34964
34965 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34966 from here ...
34967 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34968 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34969 * conf/i386-ieee1275.rmk: Likewise.
34970 * conf/i386-pc.rmk: Likewise.
34971 * conf/powerpc-ieee1275.rmk: Likewise.
34972 * conf/sparc64-ieee1275.rmk: Likewise.
34973 * conf/x86_64-efi.rmk: Likewise.
34974
9031b03a 349752009-10-26 Colin Watson <cjwatson@ubuntu.com>
34976
34977 * util/grub-editenv.c (main): If only a command is given, use
34978 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34979 (usage): FILENAME is now optional and has a default.
34980
e4f6809b 349812009-10-26 Colin Watson <cjwatson@ubuntu.com>
34982
34983 Improve grub-mkconfig performance when there are several menu
34984 entries on a single filesystem.
34985
34986 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34987 prepare_grub_to_access_device.
34988 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34989 * util/grub.d/30_os-prober.in: Likewise.
34990
67937d4d 349912009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34992
34993 * util/grub.d/10_freebsd.in: Remove.
34994 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34995 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34996
ee3756cc 349972009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34998
5c35048e 34999 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 35000
4dea1c6f 350012009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35002
35003 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35004 grub_util_error() call.
35005
042484d7 350062009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35007
35008 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35009 `reserved_first_sector' member.
35010 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35011 `reserved_first_sector' to 1.
35012 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35013 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35014 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35015 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35016 filesystems which begin at first sector.
35017 (options): New option --skip-fs-probe.
35018 (main): Handle --skip-fs-probe and pass it to setup().
35019
d64448a7 350202009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35021
35022 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35023 (memset): Fix function prototype.
35024
508d42ec 350252009-10-25 Robert Millan <rmh.grub@aybabtu.com>
350262009-10-25 Vasily Averin <vvs@parallels.com>
35027
35028 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35029 `dirent.direntlen == 0'.
35030
b240e30c 350312009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35032
35033 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35034 `cpio'.
35035 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35036
346e7fbe 350372009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35038
35039 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35040 `__trampoline_setup' and `__ucmpdi2'.
35041 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35042 that libgcc provides.
35043
cdb308b0 350442009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35045
35046 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35047 * include/grub/sparc64/libgcc.h (memset): Likewise.
35048 * include/grub/misc.h (memset, memcmp): New function prototypes.
35049
fb26abc2 350502009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35051
35052 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35053 `cpio'.
35054 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35055
f6693890 350562009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35057
35058 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35059 * docs/grub.cfg: Compensate for recent change in multiboot
35060 loader (since 2009-08-14 it won't pass filename to payload).
35061 * util/grub.d/10_hurd.in: Likewise.
35062
0933cdc0 350632009-10-21 Felix Zielcke <fzielcke@z-51.de>
35064
35065 * config.guess: Update to latest version from config git
35066 repository.
35067 * config.sub: Likewise.
35068
3b2fe8c2 350692009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35070
35071 Fix build on sparc64.
35072
35073 * configure.ac: Perform checks for libgcc symbols before
35074 adding `-nostdlib' to LDFLAGS.
35075
46695a62 350762009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35077
35078 Let user specify OpenBSD root device.
35079
35080 * loader/i386/bsd.c (openbsd_root): New variable.
35081 (openbsd_opts): New option 'root'.
35082 (OPENBSD_ROOT_ARG): New macro.
35083 (grub_openbsd_boot): Use 'openbsd_root'.
35084 (grub_cmd_openbsd): Fill 'openbsd_root'.
35085
d2b6b7fc 350862009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35087
35088 * NEWS: Misc adjustments.
35089
421bd7ac 350902009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35091
35092 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35093
f1d29d87 350942009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35095
35096 * configure.ac: Bump version to 1.97.
35097
6f3cd880 350982009-10-16 Colin Watson <cjwatson@ubuntu.com>
35099
35100 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35101 -mno-3dnow on x86 architectures. Some toolchains enable these
35102 features by default, but they rely on registers that aren't enabled
35103 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35104
035f7122 351052009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35106
35107 Make entry text a bit more readable.
35108
35109 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35110
44998e58 351112009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35112
35113 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35114
cd2851b3 351152009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35116
35117 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35118 operations.
35119
c6f3b249 351202009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35121
35122 * configure.ac: Add missing dollar.
35123
6b5886ba 351242009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35125
35126 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35127
35128 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35129 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35130 exports.
35131 * include/grub/sparc64/libgcc.h: Likewise. Use
35132 preprocessor conditionals.
35133
e9d66f6d 351342009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35135
35136 * conf/common.rmk (grub-dumpbios): Remove rule.
35137 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35138 * util/grub-dumpbios.in: Remove file.
35139
9155bc17 351402009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35141
35142 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35143 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35144
35145 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35146 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35147 users.
35148
35149 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35150 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35151 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35152 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35153 users.
35154
bf7f7a18 351552009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35156
35157 * term/tparm.c: Switch to GPLv3.
35158
86564c26 351592009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35160
35161 * include/grub/i386/cpuid.h: Add header protection.
35162
5c936493 351632009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35164
35165 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35166
35167 * include/grub/i386/cpuid.h: New file.
35168 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35169 (has_longmode): Rename to ...
35170 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35171 `static' attribute.
35172 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35173 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35174 on a CPU that doesn't implement AMD64 instruction set.
35175
186e7cf2 351762009-10-06 Colin Watson <cjwatson@ubuntu.com>
35177
35178 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35179 that version.texi is rebuilt on version number changes.
35180
83b65c4a 351812009-10-06 Colin Watson <cjwatson@ubuntu.com>
35182
35183 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35184 Fixes bug #27602.
35185
d244281c 351862009-10-06 Colin Watson <cjwatson@ubuntu.com>
35187
35188 * util/i386/pc/grub-install.in: Source
35189 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35190 that the --grub-probe option will work.
35191 * util/sparc64/ieee1275/grub-install.in: Likewise.
35192
da25306d 351932009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35194
35195 * configure.ac: Bump version to 1.97~beta4.
35196
e8ee83c0 351972009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35198
35199 Resync grub-mkdevicemap in x86_64-efi.
35200
35201 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35202 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35203 `util/devicemap.c'.
35204
50dcabcf 352052009-10-01 Colin Watson <cjwatson@ubuntu.com>
35206
35207 * util/grub-editenv.c (create_envblk_file): Write new block with a
35208 .new suffix and then rename it into place, to ensure atomic
35209 creation.
35210
0e51c3a7 352112009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35212
35213 Do not automatically install headers.
35214
35215 * Makefile.in (include_DATA): Remove. Update all users.
35216
31299a95 352172009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35218
35219 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35220 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35221
35222 * util/osdetect.lua: Remove.
35223 * script/lua/lauxlib.c: Likewise.
35224 * script/lua/ldebug.c: Likewise.
35225 * script/lua/grub_main.c: Likewise.
35226 * script/lua/lauxlib.h: Likewise.
35227 * script/lua/ldebug.h: Likewise.
35228 * script/lua/ltablib.c: Likewise.
35229 * script/lua/liolib.c: Likewise.
35230 * script/lua/lstrlib.c: Likewise.
35231 * script/lua/lualib.h: Likewise.
35232 * script/lua/ldo.c: Likewise.
35233 * script/lua/ldump.c: Likewise.
35234 * script/lua/ldo.h: Likewise.
35235 * script/lua/loslib.c: Likewise.
35236 * script/lua/lundump.c: Likewise.
35237 * script/lua/grub_lib.c: Likewise.
35238 * script/lua/ldblib.c: Likewise.
35239 * script/lua/lundump.h: Likewise.
35240 * script/lua/lmem.c: Likewise.
35241 * script/lua/grub_lib.h: Likewise.
35242 * script/lua/lmathlib.c: Likewise.
35243 * script/lua/lstate.c: Likewise.
35244 * script/lua/ltm.c: Likewise.
35245 * script/lua/lvm.c: Likewise.
35246 * script/lua/lmem.h: Likewise.
35247 * script/lua/lstate.h: Likewise.
35248 * script/lua/ltm.h: Likewise.
35249 * script/lua/ltable.c: Likewise.
35250 * script/lua/lvm.h: Likewise.
35251 * script/lua/llex.c: Likewise.
35252 * script/lua/lgc.c: Likewise.
35253 * script/lua/grub_lua.h: Likewise.
35254 * script/lua/loadlib.c: Likewise.
35255 * script/lua/lfunc.c: Likewise.
35256 * script/lua/lopcodes.c: Likewise.
35257 * script/lua/lparser.c: Likewise.
35258 * script/lua/ltable.h: Likewise.
35259 * script/lua/llex.h: Likewise.
35260 * script/lua/lgc.h: Likewise.
35261 * script/lua/lfunc.h: Likewise.
35262 * script/lua/lbaselib.c: Likewise.
35263 * script/lua/lopcodes.h: Likewise.
35264 * script/lua/lparser.h: Likewise.
35265 * script/lua/lzio.c: Likewise.
35266 * script/lua/linit.c: Likewise.
35267 * script/lua/lobject.c: Likewise.
35268 * script/lua/llimits.h: Likewise.
35269 * script/lua/lstring.c: Likewise.
35270 * script/lua/lzio.h: Likewise.
35271 * script/lua/lapi.c: Likewise.
35272 * script/lua/lcode.c: Likewise.
35273 * script/lua/lua.h: Likewise.
35274 * script/lua/lobject.h: Likewise.
35275 * script/lua/lstring.h: Likewise.
35276 * script/lua/lapi.h: Likewise.
35277 * script/lua/lcode.h: Likewise.
35278 * script/lua/luaconf.h: Likewise.
35279
cb8a2c38 352802009-09-26 Colin Watson <cjwatson@ubuntu.com>
35281
35282 * docs/grub.texi (Command-line and menu entry commands): Document
35283 date and echo commands.
35284
6b9b6276 352852009-09-24 Pavel Roskin <proski@gnu.org>
35286
35287 * include/grub/kernel.h (struct grub_module_header): Remove
35288 `grub_module_header_types'. Make `type' unsigned. Make `size'
35289 32-bit on all platforms.
35290 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35291 8-bit field. Use grub_host_to_target32() for `size'.
35292 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35293 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35294 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35295
4e5a02a7 352962009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35297
35298 Fix "lost keypress" bug in at_keyboard.
35299
35300 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35301 Checks for readyness of input buffer (without flushing it).
35302 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35303 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35304
c6dcedf6 353052009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35306
35307 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35308 size check within GRUB_MACHINE_PCBIOS section.
35309
74c958b1 353102009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35311
35312 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35313 return value.
35314 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35315 KEYBOARD_ISREADY check.
35316 (grub_at_keyboard_checkkey): Rename to ...
35317 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35318 Remove gratuitous cast.
35319
ff420223 353202009-09-23 Colin Watson <cjwatson@ubuntu.com>
35321
35322 * configure.ac: Call AC_PROG_MKDIR_P.
35323 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35324 version.texi in $(builddir) rather than $(srcdir).
35325 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35326 to makeinfo's @include search path.
35327
d96875df 353282009-09-23 Felix Zielcke <fzielcke@z-51.de>
35329
35330 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35331
9b3f8365 353322009-09-23 Felix Zielcke <fzielcke@z-51.de>
35333
35334 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35335 for `*.dpkg-new'.
35336
c44c90db 353372009-09-21 Colin Watson <cjwatson@ubuntu.com>
35338
35339 Build info documentation. Some code borrowed from Automake.
35340
35341 * configure.ac: Check for makeinfo.
35342 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35343 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35344 docs/version.texi.
35345 (MOSTLYCLEANFILES): Add vti.tmp.
35346 (docs/version.texi, docs/stamp-vti): Update automatically.
35347 (docs/grub.info): Build info documentation. Use --force and ignore
35348 errors for now.
35349 (all-local): Add $(INFOS).
35350 (install-local): Install info files.
35351 (uninstall): Uninstall info files.
35352 * docs/version.texi: Remove from revision control. This file is
35353 automatically generated on build now.
35354 * gendistlist.sh: Add `*.info'.
35355
e0b37bb5 353562009-09-21 Felix Zielcke <fzielcke@z-51.de>
35357
35358 * kern/term.c: Fix indentation.
35359
5a78865b 353602009-09-21 Felix Zielcke <fzielcke@z-51.de>
35361
35362 * util/hostdisk.c: Fix a comment.
35363
dace7e8a 353642009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35365
35366 Fix regression introduced in r2539.
35367
35368 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35369 to 0xA1.
35370
a83d079b 353712009-09-19 Colin Watson <cjwatson@ubuntu.com>
35372
35373 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 35374 os-prober. Under normal operation, it does not print anything to
35375 stderr; if it does, we need to debug it, and throwing away stderr
35376 makes that excessively difficult.
a83d079b 35377
be94a509 353782009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35379
35380 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35381
63f745e8 353822009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35383
35384 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35385 AC_LANG_PROGRAM from autoconf.
35386 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35387 prototypes (fixes warning).
35388
35389 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35390 `--disable-werror' was used.
35391
bbb2a70f 353922009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35393
35394 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35395 uninitialized `lastaddr'.
35396
77c24f1d 353972009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35398
0f0b8c87 35399 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 35400
07197f23 354012009-09-14 Colin Watson <cjwatson@ubuntu.com>
35402
35403 * commands/test.c (get_fileinfo): Return immediately if
35404 grub_fs_probe fails.
35405
dabf1798 354062009-09-14 José Martínez <xosemp@gmail.com>
35407
35408 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35409
d52109a7 354102009-09-14 Colin Watson <cjwatson@ubuntu.com>
35411
35412 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35413 output.
35414
56532179 354152009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35416
35417 * configure.ac: Remove --enable-grub-pe2elf. Only build
35418 grub-pe2elf when needed by the build system itself.
35419 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35420
8ef070f5 354212009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35422
35423 * configure.ac: Bump version to 1.97~beta3.
35424 * docs/version.texi: Likewise.
35425
61229557 354262009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35427
35428 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35429 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35430 from here ...
35431 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35432 (grub_linux_setup_video): ... to here (with some adjustments).
35433
5c9f8d84 354342009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35435
35436 Fix memory corruption issue (spotted by Colin Watson).
35437
35438 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35439 causing returned size to be stored in an incorrect memory location.
35440 Fix use of uninitialized value when storing the returned size.
35441
e8f5d6e9 354422009-09-12 Yves Blusseau <blusseau@zetam.org>
35443
35444 Change clean rules to properly remove files
35445
35446 * genmk.rb: add new clean rules
35447 * Makefile.in (clean): add the new targets
35448 (mostlyclean): likewise
35449
cda2a409 354502009-09-11 Colin Watson <cjwatson@ubuntu.com>
35451
35452 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35453 to grub_uint64_t.
35454 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35455 non-resident files.
35456
86695375 354572009-09-11 Colin Watson <cjwatson@ubuntu.com>
35458
35459 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35460 part of bug #27349.
35461
8aa1541a 354622009-09-10 Felix Zielcke <fzielcke@z-51.de>
35463
35464 * util/grub-mkconfig.in: Make the created config mode 400 and
35465 print a warning if it fails.
35466
48d9bb0a 354672009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35468
35469 * util/grub.d/40_custom.in: Ask user to type custom entries below
35470 comment, rather than below 'exec tail' line.
35471
3b0521be 354722009-09-10 Colin Watson <cjwatson@ubuntu.com>
35473
35474 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35475 visible in grub.cfg.
35476
50051d55 354772009-09-10 Colin Watson <cjwatson@ubuntu.com>
35478
35479 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35480 file.
35481
c0d34387 354822009-09-10 Felix Zielcke <fzielcke@z-51.de>
35483
35484 * docs/grub.cfg: Add an example menu entry for memtest86+.
35485
80a608f3 354862009-09-09 Felix Zielcke <fzielcke@z-51.de>
35487
a2094832 35488 * config.guess: Update to latest version from config git.
80a608f3 35489 * config.sub: Likewise.
35490
99423078 354912009-09-08 Colin Watson <cjwatson@ubuntu.com>
35492
35493 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35494 unknown-command case. Fixes bug #27320.
35495
44454e4c 354962009-09-08 Felix Zielcke <fzielcke@z-51.de>
35497
35498 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35499 `help' if the command exists.
35500
e30d87ad 355012009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35502
35503 * INSTALL: Require GCC 4.1.3 or later.
35504
9a86f1ec 355052009-09-06 Yves Blusseau <blusseau@zetam.org>
35506
35507 * Makefile.in (RMKFILES): add i386-qemu.rmk
35508 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35509 $(srcdir)/stamp-h.in
35510
7f26d466 355112009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35512
35513 * util/grub-probe.c (probe): Comment out buggy codepath, which
35514 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35515 should be re-enabled after 1.97.
35516
3a613259 355172009-09-05 Felix Zielcke <fzielcke@z-51.de>
35518
35519 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35520 find searches for.
35521
197f76c7 355222009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35523
35524 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35525 unnecessary calls to grub_error.
35526
70ba68ce 355272009-09-04 Colin Watson <cjwatson@ubuntu.com>
35528
35529 * NEWS: Mention `keystatus' and Unicode fonts.
35530
4ff0d7a4 355312009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35532
35533 * configure.ac: Bump version to 1.97~beta2.
35534 * docs/version.texi: Likewise.
35535
77c55a87 355362009-09-03 Colin Watson <cjwatson@ubuntu.com>
35537
35538 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35539 containing unwind information in some cases where it previously did
35540 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35541 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35542 discussion.
35543
f79572cd 355442009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35545
35546 Embedding loadenv module into grub-emu
35547
35548 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35549 commands/loadenv.c
35550 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35551 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35552 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35553 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35554 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35555 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35556
93a81088 355572009-09-03 Magnus Granberg <zorry@ume.nu>
35558
35559 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35560 include -fPIE in the default specs.
35561 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35562 to TARGET_CFLAGS.
35563
160034b2 355642009-09-03 Felix Zielcke <fzielcke@z-51.de>
35565
35566 * INSTALL: Note that GNU Bison 2.3 or later is required.
35567
087c07c4 355682009-09-03 Colin Watson <cjwatson@ubuntu.com>
35569
35570 * kern/i386/pc/startup.S: Fix typo.
35571
cbf978c0 355722009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35573
35574 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35575 according to GCS.
35576
355772009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 35578
35579 * docs/grub.texi (Naming convention): Describe one-based partition
35580 numbering.
35581 (Device syntax): Likewise.
35582 (File name syntax): Likewise.
35583 (Block list syntax): Likewise.
35584 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35585 menu.lst.
35586 (File name syntax): Likewise.
35587 (Command-line and menu entry commands): Document acpi, blocklist,
35588 crc, export, insmod, keystatus, ls, set, and unset commands.
35589
f3e8cdfd 355902009-09-02 Colin Watson <cjwatson@ubuntu.com>
35591
35592 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35593 to avoid implying that only one of --shift, --ctrl, or --alt may be
35594 used.
35595
c0bc232b 355962009-09-02 Colin Watson <cjwatson@ubuntu.com>
35597
35598 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35599 rather than comparing against S_IFREG, which will almost never work.
35600
aa0f752d 356012009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35602
35603 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35604 (write_blocklists): Likewise.
35605
ecb3166a 356062009-09-01 Colin Watson <cjwatson@ubuntu.com>
35607
35608 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35609 argument to grub_printf.
35610
c403a125 356112009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 35612
35613 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 35614 non GNU test.
31aba781 35615
b5e7312c 356162009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35617
35618 * kern/file.c (grub_file_read): Spelling fix
35619
fe00f472 356202009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35621
35622 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35623 loading of headers in some cases.
35624
cc55302e 356252009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35626
35627 * configure.ac: Bump version to 1.97~beta1.
35628 * docs/version.texi: Likewise.
35629
5c90cdd2 356302009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 35631
35632 * include/grub/i386/xnu.h: Add license header.
35633 include grub/err.h explicitly.
35634
c90edae4 356352009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35636
35637 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35638 to `ufs' in the vfs.root.mountfrom kernel parameter.
35639
d8888b5c 356402009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35641
35642 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35643
35644 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35645 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35646
35647 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35648 `ARRAY_SIZE' macro.
35649
6f07b921 356502009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35651
35652 * kern/file.c (grub_file_read): Check offset.
35653 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35654 * fs/jfs.c (grub_jfs_read_file): Likewise.
35655 * fs/ntfs.c (grub_ntfs_read): Likewise.
35656 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35657 * fs/minix.c (grub_minix_read_file): Correct offset check.
35658 * fs/ufs.c (grub_ufs_read_file): Likewise.
35659
b4f34077 356602009-08-28 Colin Watson <cjwatson@ubuntu.com>
35661
35662 * term/i386/pc/console.c (bios_data_area): Cast
35663 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35664
e7c69859 356652009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35666
35667 1-bit optimised blitters.
35668
35669 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35670 prototype.
35671 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35672 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35673 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35674 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35675 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35676 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35677 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35678 function.
35679 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35680 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35681 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35682 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35683 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35684 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35685 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35686 when possible.
35687 * video/video.c (grub_video_get_blit_format): Return
35688 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35689
a57da43f 356902009-08-28 Colin Watson <cjwatson@ubuntu.com>
35691
35692 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35693 the first argument to grub_printf.
35694
4cbe67e5 356952009-08-28 Colin Watson <cjwatson@ubuntu.com>
356962009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35697
35698 Add `getkeystatus' terminal method. Add a new `keystatus' command
35699 to query it.
35700
35701 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35702 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35703 modifier key bitmasks.
35704 (struct grub_term_input): Add `getkeystatus' member.
35705 (grub_getkeystatus): Add prototype.
35706 * kern/term.c (grub_getkeystatus): New function.
35707
35708 * include/grub/i386/pc/memory.h
35709 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35710 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35711 Data Area layout.
35712 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35713 (grub_console_term_input): Set `getkeystatus' member.
35714 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35715 constants.
35716 (grub_usb_keyboard_getreport): Likewise.
35717 (grub_usb_keyboard_checkkey): Likewise.
35718 (grub_usb_keyboard_getkeystatus): New function.
35719 (grub_usb_keyboard_term): Set `getkeystatus' member.
35720
35721 * commands/keystatus.c: New file.
35722 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35723 (keystatus_mod_SOURCES): New variable.
35724 (keystatus_mod_CFLAGS): Likewise.
35725 (keystatus_mod_LDFLAGS): Likewise.
35726 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35727 commands/keystatus.c.
35728 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35729 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35730 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35731 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35732 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35733 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 35734
6e2a9085 357352009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35736
35737 Split befs.mod and afs.mod into *_be.mod and *.mod
35738
35739 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35740 (grub_fstest_SOURCES): Likewise.
35741 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35742 (afs_be_mod_SOURCES): New variable.
35743 (afs_be_mod_CFLAGS): Likewise.
35744 (afs_be_mod_LDFLAGS): Likewise.
35745 (befs_be_mod_SOURCES): Likewise.
35746 (befs_be_mod_CFLAGS): Likewise.
35747 (befs_be_mod_LDFLAGS): Likewise.
35748 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35749 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35750 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35751 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35752 (grub_emu_SOURCES): Likewise.
35753 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35754 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35755 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35756 * fs/afs_be.c: New file.
35757 * fs/befs_be.c: New file.
35758 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35759 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35760 (U16): Replaced with ...
35761 (grub_afs_to_cpu16): ...this. All users updated.
35762 (U32): Replaced with ...
35763 (grub_afs_to_cpu32): ...this. All users updated.
35764 (U64): Replaced with ...
35765 (grub_afs_to_cpu64): ...this. All users updated.
35766 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35767 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 35768 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 35769 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35770 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35771 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35772 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35773 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35774 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35775 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35776 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35777
32a71655 357782009-08-26 Bean <bean123ch@gmail.com>
35779
35780 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35781 64-bit number.
35782 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35783 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35784 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35785
552bf6c5 357862009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35787
35788 NetBSD memory map support.
35789
35790 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35791 (grub_netbsd_btinfo_mmap_header): New structure.
35792 (grub_netbsd_btinfo_mmap_entry): Likewise.
35793 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35794
1ae2078c 357952009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35796
35797 Enable bsd.mod on coreboot.
35798
35799 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35800 (bsd_mod_SOURCES): New variable.
35801 (bsd_mod_CFLAGS): Likewise.
35802 (bsd_mod_LDFLAGS): Likewise.
35803 (bsd_mod_ASFLAGS): Likewise.
35804 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35805 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35806
beefc598 358072009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35808
35809 Cleanup NetBSD root support.
35810
35811 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35812 grub_bsd_get_device.
35813 Fix typo.
35814
3b76e68b 358152009-08-25 Felix Zielcke <fzielcke@z-51.de>
35816
35817 * util/grub.d/00_header.in: Move check for the video backend of
35818 gfxterm from here ...
35819 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35820 a suitable video backend.
35821
aea664ea 358222009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35823
35824 Fix breakage in grub-setup.
35825
35826 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35827 "msdos_partition_map".
35828
ff747d50 358292009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35830
35831 Fix breakage in normal/auth.c.
35832
35833 * normal/auth.c (grub_iswordseparator): New function.
35834
e7e1f93f 358352009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35836
35837 Authentication support.
35838
35839 * commands/password.c: New file.
35840 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35841 (password_mod_SOURCES): New variable.
35842 (password_mod_CFLAGS): Likewise.
35843 (password_mod_LDFLAGS): Likewise.
35844 (normal_mod_SOURCES): Add normal/auth.c.
35845 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35846 normal/auth.c.
35847 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35848 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35849 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35851 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35852 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35853 * include/grub/auth.h: New file.
35854 * include/grub/err.h (grub_err_t): New enum value
35855 GRUB_ERR_ACCESS_DENIED.
35856 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35857 'users'.
35858 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35859 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35860 users updated.
35861 * normal/auth.c: New file.
35862 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35863 (grub_cmdline_run): Don't allow to go to command line without
35864 authentication.
35865 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35866 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35867 menuentry without superuser rights.
35868 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35869 user isn't a superuser.
35870
70f1161d 358712009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35872
35873 Save space by inlining misc.c functions.
35874
35875 * kern/misc.c (grub_iswordseparator): Made static.
35876 * kern/misc.c (grub_strcat): Moved from here ...
35877 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35878 * kern/misc.c (grub_strncat): Moved from here ...
35879 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35880 * kern/misc.c (grub_strcasecmp): Moved from here ...
35881 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35882 * kern/misc.c (grub_strncasecmp): Moved from here ...
35883 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35884 * kern/misc.c (grub_isalpha): Moved from here ...
35885 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35886 * kern/misc.c (grub_isdigit): Moved from here ...
35887 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35888 * kern/misc.c (grub_isgraph): Moved from here ...
35889 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35890 * kern/misc.c (grub_tolower): Moved from here ...
35891 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35892
48e40bff 358932009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35894
35895 * script/sh/function.c (grub_script_function_find): Cut error message
35896 not to flood terminal.
35897 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35898 limit.
35899 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35900
c385bfc3 359012009-08-24 Colin Watson <cjwatson@ubuntu.com>
35902
35903 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35904 `report' grub_uint8_t *.
35905 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35906 Use a 50-millisecond timeout rather than just repeating
35907 grub_usb_keyboard_getreport 50 times.
35908 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35909
2d21e3e8 359102009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35911
35912 Rename *_partition_map to part_*
35913
35914 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35915 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35916 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35917 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35918 All users updated.
35919 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35920 All users updated.
35921 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35922 * util/grub-probe.c (probe_partmap): Don't transform partition name
35923 to get module name.
35924
dd103c4e 359252009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35926
35927 Fix OpenBSD and NetBSD support.
35928
35929 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35930 memory address conflict.
35931 (OPENBSD_MMAP_ACPI): New definition.
35932 (OPENBSD_MMAP_NVS): Likewise.
35933 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35934 and OPENBSD_MMAP_NVS.
35935 Add memory map terminator
35936 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 35937 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 35938
16c84d74 359392009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35940
35941 Let user specify NetBSD root device.
35942
35943 * loader/i386/bsd.c (netbsd_root): New variable.
35944 (netbsd_opts): New option 'root'.
35945 (NETBSD_ROOT_ARG): New macro.
35946 (grub_netbsd_boot): Use 'netbsd_root'.
35947 (grub_bsd_unload): Free 'netbsd_root'.
35948 (grub_cmd_netbsd): Fill 'netbsd_root'.
35949
adb29902 359502009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35951
35952 Support for 64-bit NetBSD.
35953
35954 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35955 point when booting non-FreeBSD.
35956
f5ae9f74 359572009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35958
35959 Support --no-smp and --no-acpi for NetBSD.
35960
35961 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35962 (NETBSD_AB_NOACPI): Likewise.
35963 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35964 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35965
de74f136 359662009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35967
35968 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35969 errors.
35970 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35971 errors. Call grub_error when needed.
35972
e9a925da 359732009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35974
35975 * commands/search.c (search_fs): Try searching without autoload first.
35976 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35977 filesystem module explicitly for faster booting.
35978
5174302b 359792009-08-23 Colin Watson <cjwatson@ubuntu.com>
35980
35981 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35982
c8c80635 359832009-08-23 Colin Watson <cjwatson@ubuntu.com>
35984
35985 * util/grub.d/30_os-prober.in: Disable os-prober if
35986 `GRUB_DISABLE_OS_PROBER' was set to true.
35987
71acf5e5 359882009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35989
35990 * partmap/pc.c: Rename to ...
35991 * partmap/msdos.c: ... this. Update all users.
35992 (grub_pc_partition_map): Rename to ...
35993 (grub_msdos_partition_map): ... this. Update all users.
35994
35995 * parttool/pcpart.c: Rename to ...
35996 * parttool/msdospart.c: ... this. Update all users.
35997
35998 * include/grub/pc_partition.h: Rename to ...
35999 * include/grub/msdos_partition.h: ... this. Update all users.
36000 (grub_pc_partition_bsd_entry): Rename to ...
36001 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36002 (grub_pc_partition_disk_label): Rename to ...
36003 (grub_msdos_partition_disk_label): ... this. Update all users.
36004 (grub_pc_partition_entry): Rename to ...
36005 (grub_msdos_partition_entry): ... this. Update all users.
36006 (grub_pc_partition_mbr): Rename to ...
36007 (grub_msdos_partition_mbr): ... this. Update all users.
36008 (grub_pc_partition): Rename to ...
36009 (grub_msdos_partition): ... this. Update all users.
36010 (grub_pc_partition_is_empty): Rename to ...
36011 (grub_msdos_partition_is_empty): ... this. Update all users.
36012 (grub_pc_partition_is_extended): Rename to ...
36013 (grub_msdos_partition_is_extended): ... this. Update all users.
36014 (grub_pc_partition_is_bsd): Rename to ...
36015 (grub_msdos_partition_is_bsd): ... this. Update all users.
36016
36017 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36018 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36019 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36020 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36021 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36022 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36023 (gpt_mod_LDFLAGS): Rename to ...
36024 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36025 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36026 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36027 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36028 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36029 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36030 (part_gpt_mod_LDFLAGS): ... this.
36031 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36032 `pcpart.mod' to `msdospart.mod'.
36033 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36034 to ...
36035 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36036 (msdospart_mod_LDFLAGS): ... this.
36037
c11fded5 360382009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36039
36040 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36041 (openbsd_opts): Likewise.
36042 (netbsd_opts): Likewise.
36043 (freebsd_flags): Added 0 terminator.
36044 (openbsd_flags): Likewise.
36045 (netbsd_flags): Likewise.
36046 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36047 (grub_cmd_freebsd): Transformed into extended command.
36048 (grub_cmd_openbsd): Likewise.
36049 (grub_cmd_netbsd): Likewise.
36050 (cmd_freebsd): Changed type to grub_extcmd_t.
36051 (cmd_openbsd): Likewise.
36052 (cmd_netbsd): Likewise.
36053 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36054 grub_cmd_openbsd as extended commands.
36055 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36056 cmd_netbsd and cmd_openbsd
36057
11d1c769 360582009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36059
36060 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36061
7a9094e5 360622009-08-21 Pavel Roskin <proski@gnu.org>
36063
5496c37e 36064 * Makefile.in (install-local): When checking if a file is in the
36065 build directory, use "test -e" to detect symlinks.
36066
7a9094e5 36067 * Makefile.in (install-local): Remove all files in
36068 $(DESTDIR)$(pkglibdir) before installing new files there.
36069
e53cea11 360702009-08-18 Felix Zielcke <fzielcke@z-51.de>
36071
36072 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36073 grub-mkelfimage.
36074
9aced544 360752009-08-18 Felix Zielcke <fzielcke@z-51.de>
36076
36077 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36078 explicitly specified by the user.
36079
b7da6bab 360802009-08-18 Pavel Roskin <proski@gnu.org>
36081
36082 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36083 grub_uint8_t pointer for data.
36084 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36085 Likewise.
36086 * video/fb/fbutil.c: Remove unnecessary casts.
36087
19f1b335 360882009-08-17 Michal Suchanek <hramrach@centrum.cz>
36089
36090 VBE cleanup.
36091
36092 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36093 (grub_vbe_set_video_mode): Save active mode info
36094 only after setting the mode.
36095 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36096 second argument.
36097
2f467aa9 360982009-08-17 Michal Suchanek <hramrach@centrum.cz>
36099
36100 Rename variables for clarity.
36101
36102 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36103 (active_vbe_mode_info): ... this. All users updated.
36104 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36105 All users updated.
36106 (initial_mode): Rename to ...
36107 (initial_vbe_mode): ... this. All users updated.
36108 (mode_in_use): Rename to ..
36109 (vbe_mode_in_use): ... this. All users updated.
36110 (mode_list): Rename to ..
36111 (vbe_mode_list): ... this. All users updated.
36112 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36113 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36114 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36115 'mode_list_size' to 'vbe_mode_list_size'.
36116 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36117 'best_mode_info' to 'best_vbe_mode_info' and
36118 'best_mode' to 'best_vbe_mode'
36119
6025fcd7 361202009-08-17 Michal Suchanek <hramrach@centrum.cz>
36121
36122 Remove duplicate grub_video_fb_get_video_ptr.
36123
36124 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36125 (grub_video_fb_get_video_ptr): ... this.
36126 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36127 * video/fb/fbutil.c: Add comment about addressing.
36128 (get_data_ptr): Rename to ...
36129 (grub_video_fb_get_video_ptr): ... this. All users updated.
36130 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36131
cc8c6faf 361322009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36133
36134 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36135 grub_dprintf() that was just added.
36136
08aa61f0 361372009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36138
36139 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36140 (DEFAULT_VIDEO_MODE): Remove macros.
36141 (grub_linux_boot): Remove assumption that Linux has FB support,
36142 and use "text" as default video mode.
36143
7cef4f75 361442009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36145
36146 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36147 grub_dprintf.
36148 * fs/fat.c (grub_fat_read_data): Likewise.
36149
e1f39873 361502009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36151
36152 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36153 payload.
36154 (grub_module): Likewise.
36155
c166d79e 361562009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36157
36158 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36159 mbi->cmdline but free playground.
36160
c60cee8e 361612009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36162
36163 Handle group offset on UFS1.
36164
36165 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36166 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36167
c0d8b5d4 361682009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36169
36170 Split ufs.mod into ufs1.mod and ufs2.mod.
36171
36172 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36173 (grub_fstest_SOURCES): Likewise.
36174 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36175 (ufs_mod_SOURCES): Remove.
36176 (ufs_mod_CFLAGS): Likewise.
36177 (ufs_mod_LDFLAGS): Likewise.
36178 (ufs1_mod_SOURCES): New variable.
36179 (ufs1_mod_CFLAGS): Likewise.
36180 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 36181 (ufs2_mod_SOURCES): New variable.
36182 (ufs2_mod_CFLAGS): Likewise.
36183 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 36184 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36185 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36186 Likewise.
36187 (grub_emu_SOURCES): Likewise.
36188 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36189 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36190 (grub_setup_SOURCES): Likewise.
36191 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36192 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36193 (grub_setup_SOURCES): Likewise.
36194 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36195 Likewise.
36196 * fs/ufs2.c: New file.
36197 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36198
d3539132 361992009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36200
36201 Framebuffer split.
36202
36203 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36204 subsystem at the end.
36205 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36206 (video_fb_mod_SOURCES): New variable.
36207 (video_fb_mod_CFLAGS): Likewise.
36208 (video_fb_mod_LDFLAGS): Likewise.
36209 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36210 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36211 * video/i386/pc/vbeblit.c: Moved from here ...
36212 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36213 * video/i386/pc/vbefill.c: Moved from here ...
36214 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36215 * video/i386/pc/vbeutil.c: Moved from here ...
36216 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36217 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36218 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36219 * include/grub/i386/pc/vbefill.h: Moved from here ...
36220 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36221 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36222 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36223 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36224 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36225 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36226 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36227 (grub_video_adapter): Added 'get_info_and_fini'.
36228 (grub_video_get_info_and_fini): New prototype.
36229 (grub_video_set_mode): make modestring const char *.
36230 * loader/i386/linux.c (grub_linux_setup_video): Use
36231 grub_video_get_info_and_fini.
36232 (grub_linux_boot): Move modesetting just before booting.
36233 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36234 grub_video_get_info_and_fini.
36235 * video/i386/pc/vbe.c: Moved framebuffer part ...
36236 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36237 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36238 grub_video_fbstd_colors and grub_video_fb_set_palette.
36239 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36240 grub_video_fb_init.
36241 (grub_video_vbe_fini): Use grub_video_fb_fini.
36242 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36243 render_target and use grub_video_fb_set_active_render_target and
36244 grub_video_fb_set_palette.
36245 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36246 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36247 (grub_video_vbe_adapter): Use framebuffer.
36248 * video/video.c (grub_video_get_info_and_fini): New function.
36249 (grub_video_set_mode): Make modestring const char *.
36250 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36251 values are already initialised.
36252
d404ee56 362532009-08-14 Pavel Roskin <proski@gnu.org>
36254
36255 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36256 ABS and APPLE_CC.
36257 * boot/i386/pc/diskboot.S: Likewise.
36258 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36259 sectors allow compilation on MacOSX.
36260 * conf/i386-pc.rmk: Enable unconditional compilation of
36261 lnxboot.img.
36262
9a10df16 362632009-08-13 Colin Watson <cjwatson@ubuntu.com>
36264
36265 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36266 * util/grub.d/00_header.in: Enter interruptible sleep if
36267 GRUB_HIDDEN_TIMEOUT is set.
36268
be3c9ca7 362692009-08-13 Yves Blusseau <blusseau@zetam.org>
36270
36271 * include/grub/symbol.h: Add the LOCAL macro.
36272 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36273 starting with "L_".
36274
1f9e557e 362752009-08-13 Pavel Roskin <proski@gnu.org>
36276
9ca62843 36277 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36278 any modern compilers we support.
36279
1f9e557e 36280 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36281 Use local labels starting with "L_" so that Apple assembler
36282 knows they are local.
36283
81623db6 362842009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36285
36286 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36287 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36288 (bsd_kernel_types): ... this enum.
36289
36290 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36291 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36292 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36293
36294 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36295 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36296 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36297 messages.
36298
f5d35e7a 362992009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36300
36301 * util/grub-dumpdevtree: Moved from here ...
36302 * util/i386/efi/grub-dumpdevtree: ... to here.
36303 (hexify): New function. Converts a string to its hex version.
36304 Generate hex versions of "efi" and "device-properties" by calling
36305 hexify() on the ASCII strings rather than by hardcoding numbers.
36306
d1e1d527 363072009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36308
36309 * fs/jfs.c: Update copyright year.
36310
1ebbe064 363112009-08-08 Felix Zielcke <fzielcke@z-51.de>
36312
36313 * util/grub.d/00_header.in: Fix a comment.
36314 * util/grub.d/10_linux.in: Likewise.
36315 * util/grub.d/10_windows.in: Likewise.
36316 * util/grub.d/10_hurd.in: Likewise.
36317
a78c8d24 363182009-08-08 Felix Zielcke <fzielcke@z-51.de>
36319
36320 * util/grub-mkconfig.in: Allow the user to specify the used font
36321 with GRUB_FONT.
36322
29a6b9e8 363232009-08-08 Pavel Roskin <proski@gnu.org>
36324
b5f16cc4 36325 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36326 available, xfs.mod needs it now.
36327
2f5cb827 36328 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36329 the "g" modifier in sed when the intention is to strip something
36330 once. This fixes comparison of kernels with multiple dashes.
36331
29a6b9e8 36332 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36333 on it. Add missing space before closing bracket. Fix
36334 misleading formatting.
36335
892a3d98 363362009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36337
36338 * docs/grub.texi: Major overhaul. Remove all sections that are
36339 specific to GRUB Legacy, or mostly composed of Legacy-specific
36340 information.
36341
ed94253f 363422009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36343
36344 * docs/version.texi: New file. Provides version information for
36345 grub.texi.
36346
126d6628 363472009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36348
36349 * docs/grub.texi: Update CVS information to SVN.
36350 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36351
998b5aa9 363522009-08-07 Felix Zielcke <fzielcke@z-51.de>
36353
36354 * util/grub-mkconfig.in: Remove a wrong `fi'.
36355
818e094a 363562009-08-07 Felix Zielcke <fzielcke@z-51.de>
36357
36358 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36359 (grub_jfs_uuid): New function.
36360 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36361
b969c52f 363622009-08-07 Felix Zielcke <fzielcke@z-51.de>
36363
36364 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36365 of it to ...
36366 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36367 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36368
7a4894cc 363692009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36370
36371 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36372 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36373 Update all users.
36374
36375 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36376 not just "vmlinu[zx]".
36377 Moved from here ...
36378 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36379 all users.
36380
36381 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36382 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36383 all users.
36384
4e2171f8 363852009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36386
36387 * util/grub.d/10_freebsd.in: Use an absolute device path for
36388 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36389
6dcfcb32 363902009-08-06 Felix Zielcke <fzielcke@z-51.de>
36391
36392 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36393 handling of multiple abstraction modules.
36394
f56a8756 363952009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36396
36397 Fix a bug resulting in black screen when loading Linux using a
36398 packed video mode.
36399
36400 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36401 function.
36402
36403 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36404 (grub_vbe_bios_getset_dac_palette_width): New function.
36405 (grub_vbe_bios_get_dac_palette_width)
36406 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36407 grub_vbe_bios_getset_dac_palette_width()).
36408
36409 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36410 check for return status.
36411 (grub_vbe_get_video_mode_info): When getting information for a packed
36412 mode (<= 8 bpp), obtain DAC palette width using
36413 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36414 {red,green,blue}_mark_size.
36415
222671b2 364162009-08-04 Felix Zielcke <fzielcke@z-51.de>
36417
ecb1a6d9 36418 * commands/search.c (options): Fix help output to match actual code.
222671b2 36419
f84114f5 364202009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36421
36422 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36423 of homegrown code.
36424
bd288a20 364252009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 36426
36427 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36428 on XFS or ReiserFS.
36429
8aab5e25 364302009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36431
36432 Support Apple partition map with sector size different from 512 bytes.
36433
36434 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36435 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36436 and 'apart.partmap_size'.
36437
6ad6258a 364382009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
364392009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36440
36441 Fix cpuid command.
36442
36443 * commands/i386/cpuid.c (options): New variable.
36444 (grub_cmd_cpuid): Return real error.
36445 (GRUB_MOD_INIT(cpuid)): Declare options.
36446
67459bc6 364472009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36448
36449 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36450 valid.
36451
fbc6ab54 364522009-07-31 Bean <bean123ch@gmail.com>
36453
36454 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36455 log2_inode.
36456 (grub_fshelp_node): Move inode field to the end.
36457 (grub_xfs_data): Remove inode field.
36458 (grub_xfs_inode_block): Calculate inode size using sblock.
36459 (grub_xfs_inode_offset): Likewise.
36460 (grub_xfs_read_inode): Calculate inode size using sblock.
36461 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36462 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36463 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36464 to match inode size.
36465 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36466 not accessible when data is null.
36467 (grub_xfs_open): Likewise.
36468
f45d6cfc 364692009-07-31 Bean <bean123ch@gmail.com>
36470
36471 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36472 Don't change pv->disk if it's already set.
36473
36474 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36475 (grub_raid_register): ... here.
36476 (grub_raid_rescan): Removed.
36477
36478 * include/grub/raid.h (grub_raid_rescan): Removed.
36479
36480 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36481 (fstest): Replace grub_raid_rescan with module fini function followed
36482 by init function.
36483
36484 * util/grub-probe.c: Add include file <grub/raid.h>.
36485 (probe_raid_level): New function.
36486 (probe): Detect abstraction by walking the disk device, support two
36487 level of abstraction (LVM on RAID) when detecting partition map.
36488
24443b5a 364892009-07-31 Pavel Roskin <proski@gnu.org>
36490
36491 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36492 to grub_zalloc(), it was erroneous.
36493 Reported by Bean <bean123ch@gmail.com>
36494
a275d9e7 364952009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36496
36497 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 36498 embedding zone, not only the first one.
a275d9e7 36499
56c5a47f 365002009-07-29 Joe Auricchio <jauricchio@gmail.com>
36501
36502 * term/gfxterm.c (clear_char): New function.
36503 (grub_virtual_screen_setup): Use clear_char.
36504 (scroll_up): Likewise.
36505 (grub_virtual_screen_cls): Likewise.
36506
67bb323a 365072009-07-29 Felix Zielcke <fzielcke@z-51.de>
36508
36509 * util/deviceiter.c (get_acceleraid_disk_name): New static
36510 function.
36511 (grub_util_iterate_devices): Handle Accelraid devices.
36512 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36513
388a7c75 365142009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36515
36516 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36517 separator for the suggested gfxpayload string (';' collides with the
36518 parser and needs escaping).
36519
3bb7abcf 365202009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36521
36522 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36523 Clear direction flag before jumping to OS.
36524 (grub_multiboot2_real_boot): Likewise.
36525
2ddd36d7 365262009-07-28 Felix Zielcke <fzielcke@z-51.de>
36527
36528 * util/i386/pc/grub-install: Fix parsing of --disk-module
36529 option.
36530
c521b62b 365312009-07-28 Felix Zielcke <fzielcke@z-51.de>
36532
36533 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36534 when embedding.
36535
880e0a0c 365362009-07-26 Felix Zielcke <fzielcke@z-51.de>
36537
36538 * util/grub-mkconfig.in (package_version): New variable.
36539 Use it do display the version.
36540
2366e356 365412009-07-25 Felix Zielcke <fzielcke@z-51.de>
36542
36543 * kern/file.c (grub_file_open): Revert to previous check with
36544 grub_errno.
36545
7ad8c80e 365462009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36547
36548 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36549 from help line. It's out of sync with code.
36550
72b9658b 365512009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36552
36553 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36554 entries on failed boot.
36555
77435277 365562009-07-25 Felix Zielcke <fzielcke@z-51.de>
36557
36558 * kern/file.c (grub_file_open): Fix an error check.
36559
fcaa8b21 365602009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36561
35d16c74 36562 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36563 partition map couldn't be identified.
fcaa8b21 36564
48904cd1 365652009-07-23 Pavel Roskin <proski@gnu.org>
36566
ef3c317f 36567 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36568 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36569 case of little endian words becomes just an optimization.
36570 Respect const modifier.
ad8ea1f4 36571 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 36572
48904cd1 36573 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36574 to avoid loss of upper bits if align is unsigned and shorter
36575 than addr.
36576
260c9a89 365772009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36578
36579 UUID support for UFS
36580
36581 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36582 (grub_ufs_uuid): New function.
36583 (grub_ufs_fs): add .uuid
36584
f76ce889 365852009-07-21 Pavel Roskin <proski@gnu.org>
36586
36587 * kern/dl.c (grub_dl_check_header): Make static.
36588
6a6cbcaf 365892009-07-21 Felix Zielcke <fzielcke@z-51.de>
36590
36591 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36592 add drivemap for Vista. It breaks Windows 7.
36593
cffcddb2 365942009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36595
36596 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36597 128 bytes
36598
1ef44b80 365992009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36600
36601 Add BFS support
36602
36603 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36604 (grub_fstest_SOURCES): Likewise.
36605 (pkglib_MODULES): Add befs.mod.
36606 (befs_mod_SOURCES): New variable.
36607 (befs_mod_CFLAGS): Likewise.
36608 (befs_mod_LDFLAGS): Likewise.
36609 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36610 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36611 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36612 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36613 (grub_setup_SOURCES): Likewise.
36614 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36615 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36616 (grub_setup_SOURCES): Likewise.
36617 * fs/befs.c: New file.
36618 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36619 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36620 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36621 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36622 (B_KEY_INDEX_ALIGN): New declaration.
36623 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36624 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36625 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36626 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36627 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36628 (grub_afs_mount) [MODE_BFS]: Likewise.
36629 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36630 (grub_afs_fs): Use GRUB_AFS_FSNAME
36631 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36632 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36633 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36634 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36635
4f253044 366362009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36637
36638 * util/getroot.c (find_root_device): Add support for MacOSX.
36639 * util/hostdisk.c: Likewise.
36640
57a55913 366412009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36642
36643 * font/font.c (find_glyph): Check whether a font is present to avoid
36644 segmentation fault.
75421ca9 36645
366462009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 36647
36648 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36649
e98cd0c2 366502009-07-20 Pavel Roskin <proski@gnu.org>
36651
36652 * configure.ac: Trim excessively wordy excuses.
36653
1d2d169a 366542009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36655
36656 Add symlink, mtime and label support to AtheFS.
36657
36658 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36659 (grub_afs_iterate_dir): Handle symlinks.
36660 (grub_afs_open): Use grub_afs_read_symlink.
36661 (grub_afs_dir): Likewise.
36662 Pass mtime.
36663 (grub_afs_label): New function.
36664 (grub_afs_fs): Add grub_afs_label.
36665 (grub_afs_read_symlink): New function.
36666
186f3189 366672009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36668
36669 Fix AtheFS support.
36670
36671 * fs/afs.c: Fix comments style.
36672 (grub_afs_blockrun): Declare as packed.
36673 (grub_afs_datastream): Likewise.
36674 (grub_afs_bnode): Likewise.
36675 (grub_afs_btree): Likewise.
36676 (grub_afs_sblock): Likewise.
36677 Declare `name' as char.
36678 (grub_afs_inode): Declare as packed.
36679 Change void *vnode to grub_uint32_t unused.
36680 (grub_afs_iterate_dir): Check that key_size is positive.
36681 (grub_afs_mount): Don't read superblock twice.
75421ca9 36682 (grub_afs_dir): Don't free node in case of error,
186f3189 36683 grub_fshelp_find_file already handles this.
36684 (grub_afs_open): Likewise.
36685
5680109e 366862009-07-19 Pavel Roskin <proski@gnu.org>
36687
36688 * Makefile.in: Remove LIBLZO and enable_lzo.
36689 * conf/i386-pc.rmk: Remove lzo support.
36690 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36691 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36692 support.
36693 * kern/i386/pc/lzo1x.S: Remove.
36694 * kern/i386/pc/startup.S: Remove lzo support.
36695 * util/i386/pc/grub-mkimage.c: Likewise.
36696
ac70fa32 366972009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36698
36699 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36700 * fs/xfs.c (grub_xfs_dir): Likewise.
36701 * fs/afs.c (grub_afs_dir): Likewise.
36702 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36703 (grub_iso9660_open): Likewise.
36704 * fs/jfs.c (grub_jfs_open): Likewise.
36705 * fs/ext2.c (grub_ext2_dir): Likewise.
36706 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36707 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 36708
eab58da2 367092009-07-16 Pavel Roskin <proski@gnu.org>
36710
d2838156 36711 * configure.ac: Never add "-c" to CFLAGS.
36712
55c70904 36713 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36714
43e6200c 36715 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36716 grub_cv_cc_efiemu should be used.
36717
ce7a733d 36718 * configure.ac: Typo fixes.
36719
eab58da2 36720 * kern/mm.c (grub_zalloc): New function.
36721 (grub_debug_zalloc): Likewise.
36722 * include/grub/mm.h: Declare grub_zalloc() and
36723 grub_debug_zalloc().
36724 * util/misc.c (grub_zalloc): New function.
36725 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36726 instead of grub_malloc(), remove unneeded initializations.
36727 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36728 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36729 * commands/parttool.c (grub_cmd_parttool): Likewise.
36730 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36731 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36732 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36733 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36734 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36735 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36736 (grub_cmd_efiemu_pnvram): Likewise.
36737 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36738 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36739 (grub_iso9660_iterate_dir): Likewise.
36740 * fs/jfs.c (grub_jfs_opendir): Likewise.
36741 * fs/ntfs.c (list_file): Likewise.
36742 (grub_ntfs_mount): Likewise.
36743 * kern/disk.c (grub_disk_open): Likewise.
36744 * kern/dl.c (grub_dl_load_core): Likewise.
36745 * kern/elf.c (grub_elf_file): Likewise.
36746 * kern/env.c (grub_env_context_open): Likewise.
36747 (grub_env_set): Likewise.
36748 (grub_env_set_data_slot): Likewise.
36749 * kern/file.c (grub_file_open): Likewise.
36750 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36751 * loader/i386/multiboot.c (grub_module): Likewise.
36752 * loader/xnu.c (grub_xnu_create_key): Likewise.
36753 (grub_xnu_create_value): Likewise.
36754 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36755 (read_config_file): Likewise.
36756 * normal/menu_entry.c (make_screen): Likewise.
36757 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36758 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36759 * script/sh/script.c (grub_script_parse): Likewise.
36760 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36761 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36762 * video/readers/png.c (grub_png_output_byte): Likewise.
36763 (grub_video_reader_png): Likewise.
36764
830afef7 367652009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 36766
36767 Enable all targets that can be built by default
36768
830afef7 36769 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 36770 grub-mkfont and grub-fstest if they can be built
36771
ee293aee 367722009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36773
36774 Fix hang and segmentation fault in grub-emu-usb
36775
36776 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36777 * util/usb.c (grub_libusb_devices): likewise
36778 (grub_libusb_init): rename to ...
36779 (GRUB_MOD_INIT (libusb)):...this
36780 (grub_libusb_fini): rename to ..
36781 (GRUB_MOD_FINI (libusb)):...this
36782 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36783 * include/grub/disk.h (grub_raid_init): removed, it's useless
36784 (grub_raid_fini): likewise
36785 (grub_lvm_init): likewise
36786 (grub_lvm_fini): likewise
36787 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36788 by grub_init_all
36789
94414221 367902009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36791
36792 Fix libusb
36793
36794 * Makefile.in (LIBUSB): new macro
36795 * genmk.rb (Utility/print_tail): new method
36796 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36797 (top level): call util.print_tail at the end.
36798
59ade63d 367992009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36800
36801 Make FreeBSD accept zpool.cache
36802
36803 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36804 type is /boot/zfs/zpool.cache
36805
a58da8c7 368062009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36807
36808 Fix 64-bit efiemu
36809
36810 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36811 correct wrong typedef
36812 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36813
20591577 368142009-07-15 Pavel Roskin <proski@gnu.org>
36815
560ca572 36816 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36817 * kern/disk.c (struct grub_disk_cache): Likewise.
36818
e8e8e4fd 36819 * commands/probe.c (options): Typo fix.
36820
fde24e10 36821 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36822 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36823 accordingly.
36824 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36825
379c54c1 36826 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36827 the end of "Error" to make the message more readable.
36828
7bd8f5bf 36829 * boot/i386/pc/boot.S (kernel_segment): Remove.
36830 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36831 for destination.
36832
40b132c5 36833 * boot/i386/pc/boot.S (boot_version): Remove.
36834 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36835 Remove.
36836
20591577 36837 * include/grub/i386/pc/boot.h: Sort all offsets.
36838 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36839 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36840 * boot/i386/pc/boot.S: Assert location of every offset listed in
36841 include/grub/i386/pc/boot.h.
36842
2df32b2c 368432009-07-13 Pavel Roskin <proski@gnu.org>
36844
44b5d879 36845 * include/grub/i386/coreboot/machine.h: Rename
36846 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36847 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36848 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36849
17dc3751 36850 * kern/dl.c: Force native word size to suppress warnings when
36851 compiling grub-emu.
36852
2df32b2c 36853 * kern/device.c (grub_device_iterate): Change struct part_ent to
36854 hold the name, not a pointer to it. Use one grub_malloc() per
36855 partition, not two. Free partition_name if grub_malloc() fails.
36856 Set ents to NULL only before grub_partition_iterate() is called.
36857
75c59f59 368582009-07-11 Bean <bean123ch@gmail.com>
36859
36860 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36861 childname.
36862
0ae1bf88 368632009-07-10 Bean <bean123ch@gmail.com>
368642009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36865
36866 * kern/ieee1275/openfw.c (grub_children_iterate)
36867 (grub_devalias_iterate): Fix size evaluation for property or path
36868 strings, which was broken since r2132.
36869
8279cade 368702009-07-07 Pavel Roskin <proski@gnu.org>
36871
7d8a52d3 36872 * commands/search.c (search_file): Merge into ...
36873 (search_fs): ... this. Accept search type as argument.
36874 (grub_cmd_search): Pass search type to search_fs().
36875
25f9a05a 36876 * include/grub/util/console.h: New file.
36877 * util/console.c: Use it instead of grub/machine/console.h.
36878 * util/grub-emu.c: Likewise.
36879
8279cade 36880 * lib/arg.c (find_long_option): Remove.
36881 (find_long): Add `len' argument, make `s' const char *.
36882 (grub_arg_parse): Parse long options in place, not in a
36883 temporary buffer.
36884
4a11b60f 368852009-07-06 Pavel Roskin <proski@gnu.org>
36886
99f68041 36887 * commands/search.c (search_fs): Fix potential NULL pointer
36888 dereference.
36889
4a11b60f 36890 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36891 function pointer.
36892
e110f4de 368932009-07-06 Daniel Mierswa <impulze@impulze.org>
36894
36895 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36896 comparison.
36897
46eeb6a2 368982009-07-05 Pavel Roskin <proski@gnu.org>
36899
bab74958 36900 * include/grub/i386/linux.h (struct linux_kernel_params):
36901 Restore padding3, it's still needed.
36902
46eeb6a2 36903 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36904 FreeBSD.
36905 * util/osdetect.lua: Likewise.
36906
b4a1dc79 369072009-07-05 Bean <bean123ch@gmail.com>
36908
36909 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36910
36911 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36912 (grub_lua_getenv): Likewise.
36913 (grub_lua_setenv): Likewise.
36914 (save_errno): New function.
36915 (push_result): Likewise.
36916 (grub_lua_enum_device): Likewise.
36917 (grub_lua_enum_file): Likewise.
36918 (grub_lua_file_open): Likewise.
36919 (grub_lua_file_close): Likewise.
36920 (grub_lua_file_seek): Likewise.
36921 (grub_lua_file_read): Likewise.
36922 (grub_lua_file_getline): Likewise.
36923 (grub_lua_file_getsize): Likewise.
36924 (grub_lua_file_getpos): Likewise.
36925 (grub_lua_file_eof): Likewise.
36926 (grub_lua_file_exist): Likewise.
36927 (grub_lua_add_menu): Likewise.
36928
36929 * script/lua/grub_lua.h (isupper): New inline function.
36930 (islower): Likewise.
36931 (ispunct): Likewise.
36932 (isxdigit): Likewise.
36933 (strcspn): Change to normal function.
36934 (strpbkr): New function declaration.
36935 (memchr): Likewise.
36936
36937 * script/lua/grub_main.c (scan_str): New function.
36938 (strcspn): Likewise.
36939 (strpbrk): Likewise.
36940 (memchr): Likewise.
36941
36942 * script/lua/linit.c (lualibs): Enable the string library.
36943
36944 * util/osdetect.lua: New file.
36945
2da92295 369462009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36947
36948 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36949 `capabilities' member.
36950
b2582ec9 369512009-07-02 Pavel Roskin <proski@gnu.org>
36952
36953 * genparttoollist.sh: Add missing newline at the end.
36954
32622956 369552009-07-01 Pavel Roskin <proski@gnu.org>
36956
87a7339e 36957 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36958
d23af54e 36959 * util/hostdisk.c (open_device): Remove `const' from
36960 `sysctl_size', as sysctlbyname() can change it (in this case it
36961 doesn't actually happen).
36962
c94b18a9 36963 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36964 using signed long int constants.
36965
c6cd3ef0 36966 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36967 constant to avoid a warning on FreeBSD.
36968
0df63420 36969 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36970 where it's needed.
36971
999577f1 36972 * Makefile.in: Install include/grub/machine symlink.
36973
6f41557f 36974 * Makefile.in: When installing symlinks, use "cp -fR", which
36975 works on FreeBSD and MacOSX.
36976 From Yves Blusseau <cl7m42e02@sneakemail.com>
36977
c8d22988 36978 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36979 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36980
1b96e952 36981 * util/misc.c: Move grub_reboot() and grub_halt() ...
36982 * util/grub-emu.c: ... here. Make main_env static.
36983 * include/grub/util/misc.h: Remove main_env.
36984
2ef0084d 36985 * kern/mm.c: Use correct format to print size_t.
36986
32622956 36987 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36988 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36989 * kern/powerpc/dl.c: Likewise.
36990 * kern/sparc64/dl.c: Likewise.
36991 * kern/x86_64/dl.c: Likewise.
36992
3f7f0cd0 369932009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36994
36995 Fix grub-emu build on sparc64-ieee1275.
36996
75421ca9 36997 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 36998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36999
211d06b5 370002009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37001
37002 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37003 (grub_reboot, grub_halt): New functions.
37004
37005 * util/i386/pc/misc.c: Delete. Update all users.
37006 * util/sparc64/ieee1275/misc.c: Likewise.
37007 * util/powerpc/ieee1275/misc.c: Likewise.
37008
aaf53e3c 370092009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37010
37011 * conf/i386.rmk (setjmp_mod_SOURCES)
37012 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37013 * conf/common.rmk (setjmp_mod_SOURCES)
37014 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37015 to use $(target_cpu).
37016 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37017 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37018 * conf/powerpc-ieee1275.rmk: Likewise.
37019 * conf/sparc64-ieee1275.rmk: Likewise.
37020
37021 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37022 $(target_cpu) for kern/$(target_cpu)/dl.c.
37023 * conf/i386-efi.rmk: Likewise.
37024 * conf/i386-ieee1275.rmk: Likewise.
37025 * conf/x86_64-efi.rmk: Likewise.
37026 * conf/i386-coreboot.rmk: Likewise.
37027 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37028 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37029 kern/$(target_cpu)/cache.S.
37030 * conf/sparc64-ieee1275.rmk: Likewise.
37031
a337130b 370322009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37033
37034 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37035 type to `grub_uint8_t', and adjust `padding9' accordingly.
37036
c6fe4d53 370372009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37038
b09db61d 37039 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37040
c6fe4d53 37041 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37042 assembly in final jump, using register constraints.
37043
b09db61d 37044 (grub_linux_boot): For text mode, initialize `have_vga' using
37045 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37046
37047 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37048 right before the final jump.
37049
37050 Set `video_mode' to 0x3.
37051
37052 Document initialization of `video_page', `video_mode' and
37053 `video_ega_bx'.
37054
28333ad0 370552009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37056
37057 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37058 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 37059 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 37060
02164e1b 370612009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37062
37063 Fix build on Debian / sparc.
37064
37065 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37066
18b6c557 370672009-06-28 Pavel Roskin <proski@gnu.org>
37068
85f2aab6 37069 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37070 fix a warning.
37071
18b6c557 37072 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37073
ad760f81 370742009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37075
37076 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37077 `err'.
37078
87a4623b 370792009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37080
37081 Revert r2338.
37082
37083 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37084 file can't be opened. grub_file_open() is already supposed to set
75421ca9 37085 grub_errno / grub_errmsg appropriately.
87a4623b 37086 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37087
8231fb77 370882009-06-27 Pavel Roskin <proski@gnu.org>
370892009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37090
37091 * include/grub/dl.h: Include grub/elf.h.
37092 (struct grub_dl): Add symtab field.
37093 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37094 GRUB_MODULES_MACHINE_READONLY.
37095 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37096 of the header for read-only modules.
37097 (grub_dl_unload): Free mod->symtab for read-only modules.
37098 * kern/i386/dl.c: Use mod->symtab.
37099 * kern/powerpc/dl.c: Likewise.
37100 * kern/sparc64/dl.c: Likewise.
37101 * kern/x86_64/dl.c: Likewise.
37102
37103 * conf/i386-qemu.rmk: New file.
37104 * kern/i386/qemu/startup.S: Likewise.
37105 * kern/i386/qemu/mmap.c: Likewise.
37106 * boot/i386/qemu/boot.S: Likewise.
37107 * include/grub/i386/qemu/time.h: Likewise.
37108 * include/grub/i386/qemu/serial.h: Likewise.
37109 * include/grub/i386/qemu/kernel.h: Likewise.
37110 * include/grub/i386/qemu/console.h: Likewise.
37111 * include/grub/i386/qemu/boot.h: Likewise.
37112 * include/grub/i386/qemu/init.h: Likewise.
37113 * include/grub/i386/qemu/machine.h: Likewise.
37114 * include/grub/i386/qemu/loader.h: Likewise.
37115 * include/grub/i386/qemu/memory.h: Likewise.
37116
37117 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37118 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37119 [qemu] (pkglib_IMAGES): Add `boot.img'.
37120 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37121 [qemu] (boot_img_FORMAT): New variables.
37122 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37123 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37124 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37125 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37126 [qemu] (kernel_img_FORMAT): New variables.
37127
37128 * configure.ac: Recognise `i386-qemu'.
37129
37130 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37131 (for no compression).
37132 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37133 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37134 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37135 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37136 ifdefs).
37137
97fe384e 371382009-06-27 Pavel Roskin <proski@gnu.org>
37139
37140 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37141 read.
37142 * efiemu/prepare32.c: Likewise.
37143 * efiemu/prepare64.c: Likewise.
37144
c402ab17 371452009-06-26 Pavel Roskin <proski@gnu.org>
37146
37147 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37148 * include/grub/elf.h: Define symbols without "32" or "64" based
37149 on GRUB_TARGET_WORDSIZE.
37150 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37151 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37152 ELF definitions.
37153 * efiemu/loadcore64.c: Likewise.
37154 * loader/i386/bsd32.c: Likewise.
37155 * loader/i386/bsd64.c: Likewise.
37156 * kern/dl.c: Remove own ELF definitions.
37157 * util/i386/efi/grub-mkimage.c: Likewise.
37158
9bbdfd4d 371592009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37160
37161 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37162 segment 0x0 unconditionally, because the reference generated by
37163 GAS is an absolute address.
37164
a42ce6e9 371652009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37166
37167 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37168 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37169
c952cf92 371702009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37171
37172 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37173 indexes. Check for -f explicitly.
cc3752ad 37174 (search_file): Improve error message.
37175 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 37176
132a0a59 371772009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37178
37179 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37180 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37181
387a140c 371822009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37183
37184 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37185 * conf/i386-ieee1275.rmk: Likewise.
37186 * conf/i386-coreboot.rmk: Likewise.
37187
37188 * kern/i386/pc/startup.S (grub_stop): Remove function.
37189 * kern/i386/ieee1275/startup.S: Likewise.
37190 * kern/i386/coreboot/startup.S: Likewise.
37191 * kern/i386/misc.S (grub_stop): New function.
37192
41da9665 371932009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37194
37195 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37196 * kern/i386/realmode.S (real_to_prot): ... to here.
37197
bf337234 371982009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37199
37200 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37201 with `kernel.img'.
37202 (kernel_elf_SOURCES): Rename to ...
37203 (kernel_img_SOURCES): ... this.
37204 (kernel_elf_HEADERS): Rename to ...
37205 (kernel_img_HEADERS): ... this. Update all users.
37206 (kernel_elf_ASFLAGS): Rename to ...
37207 (kernel_img_ASFLAGS): ... this.
37208 (kernel_elf_CFLAGS): Rename to ...
37209 (kernel_img_CFLAGS): ... this.
37210 (kernel_elf_LDFLAGS): Rename to ...
37211 (kernel_img_LDFLAGS): ... this.
37212 * conf/i386-coreboot.rmk: Likewise.
37213 * conf/powerpc-ieee1275.rmk: Likewise.
37214
37215 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37216 with "kernel.img".
37217
f52196ff 372182009-06-21 Pavel Roskin <proski@gnu.org>
37219
c3cee413 37220 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37221 to match nested functions.
37222 * loader/sparc64/ieee1275/linux.c: Likewise.
37223
f52196ff 37224 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37225
58750afc 372262009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37227
37228 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37229 all i386 platforms.
37230
15355c7d 372312009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37232
37233 Fix asm file handling on ELF, and remove workarounds.
37234
37235 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 37236 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 37237 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37238 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37239
3f3ec72b 372402009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37241
37242 Load BSD ELF modules
37243
37244 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37245 and loader/i386/bsd64.c
37246 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37247 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37248 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37249 (grub_freebsd_load_elfmodule32): New declaration
37250 (grub_freebsd_load_elfmoduleobj64): Likewise
37251 (grub_freebsd_load_elf_meta32): Likewise
37252 (grub_freebsd_load_elf_meta64): Likewise
37253 (grub_freebsd_add_meta): Likewise
37254 (grub_freebsd_add_meta_module): Likewise
37255 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37256 (grub_freebsd_add_meta_module): Likewise and move module-specific
37257 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37258 (grub_cmd_freebsd): Add elf-kernel specific parts
37259 based on grub_freebsd_add_meta_module
37260 (grub_cmd_freebsd_module): Add type parsing moved from
37261 grub_freebsd_add_meta_module
37262 (grub_cmd_freebsd_module_elf): New function
37263 (cmd_freebsd_module_elf): New variable
37264 (GRUB_MOD_INIT): Register freebsd_module_elf
37265 * loader/i386/bsd32.c: New file
37266 * loader/i386/bsd64.c: Likewise
37267 * loader/i386/bsdXX.c: Likewise
37268 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37269 (grub_elf64_load): Likewise
37270 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37271 All users updated
37272 (grub_elf64_load_hook_t): Likewise
37273
0db15301 372742009-06-21 Colin Watson <cjwatson@ubuntu.com>
37275
37276 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37277 variable.
37278 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37279 don't write a menu entry for recovery mode.
37280
546796c1 372812009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37282
37283 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37284 after it's no longer needed.
37285
cd7310d5 372862009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37287
37288 * include/grub/i386/loader.h (grub_linux_prot_size)
37289 (grub_linux_tmp_addr, grub_linux_real_addr)
37290 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37291 GRUB_MACHINE_PCBIOS.
37292 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37293 common grub_util_info() call to ...
37294 (generate_image): ... here.
37295 Fix use of uninitialized memory, comparison of signed with
37296 unsigned integers and memory leak.
37297 Remove bogus module address message.
37298
ab32d3b5 372992009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37300
37301 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37302 grub_raid_register
37303 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37304
024ef597 373052009-06-19 Pavel Roskin <proski@gnu.org>
37306
37307 * configure.ac: Remove stray AC_MSG_CHECKING.
37308
3ac72b51 373092009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37310
37311 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 37312
e14cd814 373132009-06-18 Pavel Roskin <proski@gnu.org>
37314
37315 * conf/common.rmk: Add fs_file.mod.
37316 * disk/fs_file.c: New file.
37317 * include/grub/disk.h (enum grub_disk_dev_id): Add
37318 GRUB_DISK_DEVICE_FILE_ID.
37319
26586d98 373202009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37321
37322 Fix build with Apple's toolchain. Part 2
37323
37324 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37325 a fake start
37326
26de2bcd 373272009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37328
37329 Fix build with Apple's toolchain. Part 1
37330
37331 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37332 for long calls
37333 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 37334 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 37335 Apple's toolchain
37336
09b3490b 373372009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37338
37339 Fix warnings
37340
37341 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37342 (decomp_block): initialize ch
37343 use grub_memcpy instead of memcpy
37344
c22a006a 373452009-06-17 Pavel Roskin <proski@gnu.org>
37346
d3638678 37347 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37348 version, use declarations needed to use vga_text as the startup
37349 console.
37350
c22a006a 37351 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37352 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37353 the kernel.
37354 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37355 and grub_at_keyboard_fini(), it's done on module load and
37356 unload.
37357
05b129e0 373582009-06-17 Felix Zielcke <fzielcke@z-51.de>
37359
37360 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37361 file can't be found.
37362 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37363
cf24ed9e 373642009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37365
37366 Fix newline handling
37367
37368 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 37369 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 37370 (grub_script_yylex): don't segfault on unterminated script
37371 newline terminates command and variable
37372
74aa8e4b 373732009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37374
37375 avoid double grub_adjust_range call. Bug reported by David Simner
37376
37377 * kern/disk.c (grub_disk_write): change to raw disk access before
37378 calling disk_read
37379
1bd265f3 373802009-06-17 Colin Watson <cjwatson@ubuntu.com>
37381
37382 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37383 spaces, for the benefit of help2man.
37384 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37385
a2d08c06 373862009-06-16 Pavel Roskin <proski@gnu.org>
37387
37388 * kern/i386/halt.c: Include grub/machine/init.h.
37389 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37390
b97bcb19 373912009-06-16 Felix Zielcke <fzielcke@z-51.de>
37392
37393 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37394 drivemap menuentry.
37395
0644f96c 373962009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37397
37398 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37399 `echo' command.
37400
3ef17a2e 374012009-06-16 Pavel Roskin <proski@gnu.org>
37402
37403 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37404 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37405 save %dx, we only need %dl and we never change it.
37406 * boot/i386/pc/cdboot.S: Don't set the root drive.
37407 * boot/i386/pc/pxeboot.S: Likewise.
37408 * include/grub/i386/pc/boot.h: Remove
37409 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37410 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37411 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37412 * kern/i386/pc/init.c (make_install_device): Remove references
37413 to grub_root_drive.
37414 * kern/i386/pc/startup.S: Likewise.
37415 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37416
693fe637 374172009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37418
37419 xnu_uuid command
37420
37421 * commands/xnu_uuid.c: new file
37422 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37423 (xnu_uuid_mod_SOURCES): new variable
37424 (xnu_uuid_mod_CFLAGS): likewise
37425 (xnu_uuid_mod_LDFLAGS): likewise
37426 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37427 * conf/i386-ieee1275.rmk: likewise
37428 * conf/i386-pc.rmk: likewise
37429 * conf/powerpc-ieee1275.rmk: likewise
37430 * conf/sparc64-ieee1275.rmk: likewise
37431 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37432
c9da87d0 374332009-06-16 Pavel Roskin <proski@gnu.org>
37434
37435 * configure.ac: Avoid '==' in test command, it's not portable.
37436
9c6f4596 374372009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37438
37439 Probe command
37440
37441 * commands/probe.c: new file
37442 * conf/common.rmk (pkglib_MODULES): add probe.mod
37443 (probe_mod_SOURCES): new variable
37444 (probe_mod_CFLAGS): likewise
37445 (probe_mod_LDFLAGS): likewise
37446 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37447 * conf/i386-ieee1275.rmk: likewise
37448 * conf/i386-pc.rmk: likewise
37449 * conf/powerpc-ieee1275.rmk: likewise
37450 * conf/sparc64-ieee1275.rmk: likewise
37451
70b7f9fd 374522009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37453
37454 Fix handling of string like \"hello\" and "a
37455 b"
37456
37457 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37458 (grub_script_yylex): fix parsing of quoting, escaping and newline
37459
71c79a6b 374602009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37461
dd74360c 37462 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 37463 handling
dd74360c 37464
0644f96c 374652009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 37466
37467 * util/grub-mkconfig.in: Fix parsing of --output option.
37468
e40893c3 374692009-06-12 Pavel Roskin <proski@gnu.org>
37470
37471 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37472 genmk.rb don't need to be generated or installed.
37473
3a1acfe2 374742009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37475
37476 * commands/i386/pc/drivemap_int13h.S: add more comments
37477
3a4575d4 374782009-06-11 Pavel Roskin <proski@gnu.org>
37479
0658e928 37480 * Makefile.in (uninstall): Uninstall manuals.
37481
ca0388f0 37482 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37483 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37484 and update-grub_lib in two places.
37485 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37486
e3b27c39 37487 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37488 a compiler warning.
37489
3a4575d4 37490 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37491 `entry_lo' to fix variable shadowing.
37492
af1f4f55 374932009-06-11 Christian Franke <franke@computer.org>
37494
37495 * kern/misc.c (__enable_execute_stack): Add missing return type
37496 to prevent gcc warning.
37497
5225e649 374982009-06-11 Felix Zielcke <fzielcke@z-51.de>
37499
37500 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37501
7d83bd47 375022009-06-11 Pavel Roskin <proski@gnu.org>
37503
c1cb63ba 37504 * Makefile.in: Don't rely on any scripts being executable.
37505 Always use $(SHELL) to run shell scripts.
37506
7d83bd47 37507 * configure.ac: Always define ___main if using -nostdlib. This
37508 fixes tests on Cygwin.
37509
948f48e7 375102009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37511
37512 UDF fix
37513
7d83bd47 37514 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 37515 is in bytes and not in blocks
7d83bd47 37516
8ada9bc1 375172009-06-11 Pavel Roskin <proski@gnu.org>
37518
37519 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37520 warning.
37521
25ad2323 375222009-06-11 Felix Zielcke <fzielcke@z-51.de>
37523
37524 * util/grub.d/30_os-prober.in: Fix a comment. Source
37525 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37526 to set the root device. Place drivemap command in the generated
37527 chain entry.
37528
e65acb0c 375292009-06-11 Pavel Roskin <proski@gnu.org>
37530
37531 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37532 have long been resolved.
37533
f285fe2d 375342009-06-11 Colin Watson <cjwatson@ubuntu.com>
37535
bd47b0b5 37536 * util/grub.d/10_linux.in: Capitalise "Linux".
37537
f285fe2d 37538 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37539
a0c62e4e 375402009-06-11 Pavel Roskin <proski@gnu.org>
37541
b6783cb2 37542 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37543 fix a gcc warning and ensure that the function won't ever exit.
37544
dde032e8 37545 * kern/i386/ieee1275/init.c: Add missing prototype for
37546 grub_stop_floppy().
37547
22cd079d 37548 * loader/ieee1275/multiboot2.c [__i386__]: Include
37549 grub/cpu/multiboot.h.
37550
a0c62e4e 37551 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37552 casts to short - they are not portable and cause warnings. Fix
37553 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37554
63963d17 375552009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37556
37557 Drivemap fixes
37558
37559 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37560 new function
37561 (grub_get_root_biosnumber_saved): new variable
37562 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37563 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 37564 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 37565 %dx after the call if necessary
37566 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37567 (boot_mod_SOURCES): remove
37568 (boot_mod_CFLAGS): remove
37569 (boot_mod_LDFLAGS): remove
37570 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37571 (boot_mod_SOURCES): new variable
37572 (boot_mod_CFLAGS): likewise
37573 (boot_mod_LDFLAGS): likewise
37574 * conf/i386-efi.rmk: likewise
37575 * conf/i386-ieee1275.rmk: likewise
37576 * conf/i386-pc.rmk: likewise
37577 * conf/powerpc-ieee1275.rmk: likewise
37578 * conf/sparc64-ieee1275.rmk: likewise
37579 * conf/x86_64-efi.rmk: likewise
37580 * include/grub/i386/pc/biosnum.h: new file
37581 * lib/i386/pc/biosnum.c: likewise
37582 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37583 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37584 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 37585
33abf7ae 375862009-06-10 Pavel Roskin <proski@gnu.org>
37587
5ac35b35 37588 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37589 Use separate variables. Read only the file size at the end, but
37590 not the checksum that we don't use.
37591
5c5215d5 37592 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37593 Adjust all callers.
37594
27d5fef7 37595 * kern/ieee1275/openfw.c: Remove libc includes.
37596 * kern/ieee1275/cmain.c: Likewise.
37597 * include/grub/ieee1275/ieee1275.h: Likewise.
37598
33abf7ae 37599 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37600 compiler warnings.
37601
19d50c2b 376022009-06-10 Felix Zielcke <fzielcke@z-51.de>
37603
37604 * Makefile.in: Remove all trailing whitespace.
37605 * conf/i386-pc.rmk: Likewise.
37606 * conf/powerpc-ieee1275.rmk: Likewise.
37607 * conf/sparc64-ieee1275.rmk: Likewise.
37608 * docs/grub.texi: Likewise.
37609 * docs/texinfo.tex: Likewise.
37610 * disk/fs_uuid.c: Likewise.
37611 * disk/lvm.c: Likewise.
37612 * disk/scsi.c: Likewise.
37613 * disk/ata.c: Likewise.
37614 * disk/ieee1275/ofdisk.c: Likewise.
37615 * disk/i386/pc/biosdisk.c: Likewise.
37616 * disk/host.c: Likewise.
37617 * disk/raid.c: Likewise.
37618 * disk/efi/efidisk.c: Likewise.
37619 * disk/usbms.c: Likewise.
37620 * disk/memdisk.c: Likewise.
37621 * disk/loopback.c: Likewise.
37622 * kern/powerpc/dl.c: Likewise.
37623 * kern/device.c: Likewise.
37624 * kern/dl.c: Likewise.
37625 * kern/sparc64/dl.c: Likewise.
37626 * kern/ieee1275/ieee1275.c: Likewise.
37627 * kern/term.c: Likewise.
37628 * kern/fs.c: Likewise.
37629 * kern/i386/dl.c: Likewise.
37630 * kern/i386/pc/startup.S: Likewise.
37631 * kern/i386/pc/init.c: Likewise.
37632 * kern/i386/pc/mmap.c: Likewise.
37633 * kern/i386/pc/lzo1x.S: Likewise.
37634 * kern/i386/ieee1275/init.c: Likewise.
37635 * kern/i386/realmode.S: Likewise.
37636 * kern/i386/tsc.c: Likewise.
37637 * kern/partition.c: Likewise.
37638 * kern/corecmd.c: Likewise.
37639 * kern/file.c: Likewise.
37640 * kern/efi/efi.c: Likewise.
37641 * kern/efi/init.c: Likewise.
37642 * kern/efi/mm.c: Likewise.
37643 * kern/main.c: Likewise.
37644 * kern/err.c: Likewise.
37645 * kern/env.c: Likewise.
37646 * kern/disk.c: Likewise.
37647 * kern/generic/millisleep.c: Likewise.
37648 * kern/generic/rtc_get_time_ms.c: Likewise.
37649 * kern/misc.c: Likewise.
37650 * kern/parser.c: Likewise.
37651 * genmk.rb: Likewise.
37652 * configure.ac: Likewise.
37653 * boot/i386/pc/diskboot.S: Likewise.
37654 * boot/i386/pc/pxeboot.S: Likewise.
37655 * boot/i386/pc/boot.S: Likewise.
37656 * boot/i386/pc/lnxboot.S: Likewise.
37657 * boot/i386/pc/cdboot.S: Likewise.
37658 * parttool/pcpart.c: Likewise.
37659 * video/readers/tga.c: Likewise.
37660 * video/video.c: Likewise.
37661 * video/bitmap.c: Likewise.
37662 * lib/envblk.c: Likewise.
37663 * lib/i386/setjmp.S: Likewise.
37664 * fs/xfs.c: Likewise.
37665 * fs/afs.c: Likewise.
37666 * fs/fat.c: Likewise.
37667 * fs/ntfs.c: Likewise.
37668 * fs/udf.c: Likewise.
37669 * fs/affs.c: Likewise.
37670 * fs/iso9660.c: Likewise.
37671 * fs/hfs.c: Likewise.
37672 * fs/fshelp.c: Likewise.
37673 * fs/ext2.c: Likewise.
37674 * fs/jfs.c: Likewise.
37675 * fs/reiserfs.c: Likewise.
37676 * fs/hfsplus.c: Likewise.
37677 * fs/minix.c: Likewise.
37678 * fs/cpio.c: Likewise.
37679 * fs/sfs.c: Likewise.
37680 * fs/ufs.c: Likewise.
37681 * efiemu/prepare.c: Likewise.
37682 * efiemu/loadcore_common.c: Likewise.
37683 * efiemu/runtime/efiemu.sh: Likewise.
37684 * efiemu/runtime/efiemu.S: Likewise.
37685 * efiemu/runtime/efiemu.c: Likewise.
37686 * efiemu/pnvram.c: Likewise.
37687 * efiemu/main.c: Likewise.
37688 * efiemu/i386/pc/cfgtables.c: Likewise.
37689 * efiemu/i386/loadcore64.c: Likewise.
37690 * efiemu/i386/loadcore32.c: Likewise.
37691 * efiemu/loadcore.c: Likewise.
37692 * efiemu/symbols.c: Likewise.
37693 * efiemu/mm.c: Likewise.
37694 * include/grub/autoefi.h: Likewise.
37695 * include/grub/datetime.h: Likewise.
37696 * include/grub/term.h: Likewise.
37697 * include/grub/hfs.h: Likewise.
37698 * include/grub/lvm.h: Likewise.
37699 * include/grub/i386/tsc.h: Likewise.
37700 * include/grub/i386/linux.h: Likewise.
37701 * include/grub/i386/xnu.h: Likewise.
37702 * include/grub/i386/efiemu.h: Likewise.
37703 * include/grub/i386/pc/biosdisk.h: Likewise.
37704 * include/grub/i386/pc/memory.h: Likewise.
37705 * include/grub/i386/pc/vbe.h: Likewise.
37706 * include/grub/parttool.h: Likewise.
37707 * include/grub/video.h: Likewise.
37708 * include/grub/memory.h: Likewise.
37709 * include/grub/fs.h: Likewise.
37710 * include/grub/partition.h: Likewise.
37711 * include/grub/xnu.h: Likewise.
37712 * include/grub/efi/api.h: Likewise.
37713 * include/grub/efi/pe32.h: Likewise.
37714 * include/grub/efi/memory.h: Likewise.
37715 * include/grub/multiboot.h: Likewise.
37716 * include/grub/usbdesc.h: Likewise.
37717 * include/grub/multiboot2.h: Likewise.
37718 * include/grub/acpi.h: Likewise.
37719 * include/grub/efiemu/efiemu.h: Likewise.
37720 * include/grub/disk.h: Likewise.
37721 * include/grub/ieee1275/ieee1275.h: Likewise.
37722 * include/grub/net.h: Likewise.
37723 * include/grub/machoload.h: Likewise.
37724 * include/grub/macho.h: Likewise.
37725 * include/multiboot.h: Likewise.
37726 * genmoddep.awk: Likewise.
37727 * normal/main.c: Likewise.
37728 * normal/menu_entry.c: Likewise.
37729 * normal/menu_viewer.c: Likewise.
37730 * normal/completion.c: Likewise.
37731 * normal/cmdline.c: Likewise.
37732 * normal/misc.c: Likewise.
37733 * normal/datetime.c: Likewise.
37734 * bus/usb/usbtrans.c: Likewise.
37735 * bus/usb/ohci.c: Likewise.
37736 * bus/usb/uhci.c: Likewise.
37737 * bus/usb/usb.c: Likewise.
37738 * mmap/efi/mmap.c: Likewise.
37739 * mmap/i386/pc/mmap_helper.S: Likewise.
37740 * mmap/i386/pc/mmap.c: Likewise.
37741 * mmap/i386/mmap.c: Likewise.
37742 * mmap/i386/uppermem.c: Likewise.
37743 * mmap/mmap.c: Likewise.
37744 * commands/acpi.c: Likewise.
37745 * commands/echo.c: Likewise.
37746 * commands/blocklist.c: Likewise.
37747 * commands/loadenv.c: Likewise.
37748 * commands/usbtest.c: Likewise.
37749 * commands/boot.c: Likewise.
37750 * commands/parttool.c: Likewise.
37751 * commands/search.c: Likewise.
37752 * commands/cat.c: Likewise.
37753 * commands/i386/pc/play.c: Likewise.
37754 * commands/i386/pc/drivemap.c: Likewise.
37755 * commands/i386/pc/vbeinfo.c: Likewise.
37756 * commands/i386/pc/acpi.c: Likewise.
37757 * commands/i386/pc/vbetest.c: Likewise.
37758 * commands/ls.c: Likewise.
37759 * commands/cmp.c: Likewise.
37760 * commands/test.c: Likewise.
37761 * commands/efi/acpi.c: Likewise.
37762 * commands/gptsync.c: Likewise.
37763 * commands/help.c: Likewise.
37764 * partmap/amiga.c: Likewise.
37765 * partmap/apple.c: Likewise.
37766 * partmap/acorn.c: Likewise.
37767 * partmap/pc.c: Likewise.
37768 * partmap/sun.c: Likewise.
37769 * partmap/gpt.c: Likewise.
37770 * script/sh/lexer.c: Likewise.
37771 * script/sh/function.c: Likewise.
37772 * font/font.c: Likewise.
37773 * font/font_cmd.c: Likewise.
37774 * loader/powerpc/ieee1275/linux.c: Likewise.
37775 * loader/efi/chainloader.c: Likewise.
37776 * loader/multiboot_loader.c: Likewise.
37777 * loader/macho.c: Likewise.
37778 * loader/i386/multiboot.c: Likewise.
37779 * loader/i386/linux.c: Likewise.
37780 * loader/i386/pc/linux.c: Likewise.
37781 * loader/i386/pc/multiboot2.c: Likewise.
37782 * loader/i386/pc/chainloader.c: Likewise.
37783 * loader/i386/pc/xnu.c: Likewise.
37784 * loader/i386/bsd_trampoline.S: Likewise.
37785 * loader/i386/efi/linux.c: Likewise.
37786 * loader/i386/multiboot_elfxx.c: Likewise.
37787 * loader/i386/bsd_helper.S: Likewise.
37788 * loader/i386/bsd.c: Likewise.
37789 * loader/i386/linux_trampoline.S: Likewise.
37790 * loader/i386/xnu_helper.S: Likewise.
37791 * loader/i386/xnu.c: Likewise.
37792 * loader/i386/bsd_pagetable.c: Likewise.
37793 * loader/i386/multiboot_helper.S: Likewise.
37794 * loader/xnu.c: Likewise.
37795 * loader/xnu_resume.c: Likewise.
37796 * io/gzio.c: Likewise.
37797 * term/efi/console.c: Likewise.
37798 * term/terminfo.c: Likewise.
37799 * term/ieee1275/ofconsole.c: Likewise.
37800 * term/i386/pc/serial.c: Likewise.
37801 * term/i386/pc/vesafb.c: Likewise.
37802 * term/i386/pc/vga.c: Likewise.
37803 * term/usb_keyboard.c: Likewise.
37804 * term/gfxterm.c: Likewise.
37805 * aclocal.m4: Likewise.
37806 * util/lvm.c: Likewise.
37807 * util/grub.d/30_os-prober.in: Likewise.
37808 * util/grub.d/10_hurd.in: Likewise.
37809 * util/console.c: Likewise.
37810 * util/grub-macho2img.c: Likewise.
37811 * util/grub-probe.c: Likewise.
37812 * util/hostfs.c: Likewise.
37813 * util/i386/pc/grub-mkimage.c: Likewise.
37814 * util/i386/pc/grub-setup.c: Likewise.
37815 * util/i386/efi/grub-mkimage.c: Likewise.
37816 * util/grub-mkconfig.in: Likewise.
37817 * util/raid.c: Likewise.
37818 * util/resolve.c: Likewise.
37819 * util/grub-mkdevicemap.c: Likewise.
37820 * util/grub-emu.c: Likewise.
37821 * util/getroot.c: Likewise.
37822 * util/hostdisk.c: Likewise.
37823 * util/usb.c: Likewise.
37824 * util/grub-editenv.c: Likewise.
37825 * util/misc.c: Likewise.
37826
d2d49665 378272009-06-10 Felix Zielcke <fzielcke@z-51.de>
37828
37829 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37830 `genparttoollist.sh'.
37831 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37832 Add `*.sh' to the list find searches for and change `mdate.sh'
37833 to `mdate-sh'.
37834
fe052e37 378352009-06-10 Pavel Roskin <proski@gnu.org>
37836
2763ac18 37837 * include/grub/multiboot2.h: Provide compatibility defines for
37838 multiboot2.h.
37839 * include/multiboot2.h: Include stdint.h only if needed, using
37840 angle brackets.
37841 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37842 grub/multiboot2.h.
37843 * loader/ieee1275/multiboot2.c: Likewise.
37844 * loader/multiboot2.c: Likewise.
37845 * loader/multiboot_loader.c: Likewise.
37846
437e6adc 37847 * configure.ac: Use -nostdlib when probing for the target. It
37848 should not be required to have libc for the target.
37849
06a6836c 37850 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37851 they fail without libc headers for the target.
37852 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37853 exports.
37854 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37855 preprocessor conditionals.
37856
fe052e37 37857 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37858 build system doesn't need to be aware of the tar.c internals.
37859
afd22553 378602009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 37861
afd22553 37862 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 37863
6b787c4f 378642009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37865
37866 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37867 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37868
378692009-06-09 Felix Zielcke <fzielcke@z-51.de>
37870
37871 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 37872 aren't available if ata.mod gets used.
6b787c4f 37873
473d1e45 378742009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 37875
473d1e45 37876 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 37877 initialising controller.
473d1e45 37878 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 37879
255a27d4 378802009-06-08 Felix Zielcke <fzielcke@z-51.de>
37881
37882 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37883 to choose between ata and biosdisk module on i386-pc.
37884
473d1e45 378852009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 37886
d55842d8 37887 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37888 Subclass and Programming Interface fields in terms of the 3 byte
37889 Class Code register.
37890 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37891
fa5db0b1 37892 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37893 interface is OHCI. Add grub_dprintf for symmetry with
37894 bus/usb/uhci.c.
37895 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37896 interface is UHCI. Add interf variable for programming
37897 interface. Print interface with class/subclass.
37898
c0947beb 37899 * bus/usb/ohci.c: Set interf with correct field.
37900
69da8877 37901 * bus/usb/uhci.c: Remove unneeded doubled lines.
37902 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37903 Remove whitespace inside comment.
37904
9e172e30 379052009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37906
37907 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37908 as fallback an equivalent option without depth.
37909
de65ee2b 379102009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37911
37912 Not fail if unable to retrieve C/H/S on LBA disks
37913
473d1e45 37914 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 37915 if unable to retrieve C/H/S on LBA disks
37916
b57ea2c9 379172009-06-08 Pavel Roskin <proski@gnu.org>
37918
37919 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37920 about aliasing.
37921
af361263 379222009-06-08 Felix Zielcke <fzielcke@z-51.de>
37923
37924 * Makefile.in (uninstall): Remove all $lib_DATA files.
37925
4c9ec6b3 379262009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37927
37928 Bugfix: install on partitionless device
37929
37930 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37931 is a whole disk
37932
e76fc924 379332009-06-08 Felix Zielcke <fzielcke@z-51.de>
37934
37935 * Makefile.in (uninstall): Remove all $include_DATA files.
37936
ba5a0d05 379372009-06-08 Felix Zielcke <fzielcke@z-51.de>
37938
37939 * commands/true.c: New file. Implement the true and false commands.
37940 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37941 (true_mod_SOURCES): New variable.
37942 (true_mod_CFLAGS): Likewise.
37943 (true_mod_LDFLAGS): Likewise.
37944
c8048e32 379452009-06-05 Colin D Bennett <colin@gibibit.com>
37946
37947 Optimized font character lookup using binary search instead of linear
37948 search. Fonts now are required to have the character index ordered by
37949 code point.
37950
37951 * font/font.c (load_font_index): Verify that fonts have ordered
37952 character indices.
37953 (find_glyph): Use binary search instead of linear search to find a
37954 character in a font.
37955
408305be 379562009-06-05 Michael Scherer <misc@mandriva.org>
37957
37958 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37959 uses case sensitive btree.
37960 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37961 only for case insensitive filesystems.
37962
8ee1e0d9 379632009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37964
37965 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37966 * conf/common.rmk (search_mod_CFLAGS): likewise
37967
a9966eb1 379682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37969
473d1e45 37970 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 37971 compensate a compiler bug
37972
9e7100fb 379732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37974
473d1e45 37975 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 37976 instead of '\b'
473d1e45 37977
ede21d71 379782009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37979
37980 Definitions for creating asm symbols with Apple's CC
37981
37982 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37983 [APPLE_CC] (VARIABLE): likewise
37984
9dbf7653 379852009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37986
37987 Disable lnxboot.img when compiled
37988 with Apple's CC
37989
37990 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37991 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37992 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37993 [! APPLE_CC] (CODE_LENG): skip
37994 [! APPLE_CC] (setup_sects): likewise
37995 [! APPLE_CC]: skip filling
473d1e45 37996
e93cdc3d 379972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37998
37999 Address in trampolines based on 32-bit registers when compiled
38000 with Apple's CC
38001
473d1e45 38002 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 38003 for addresses
38004 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38005
6c688477 380062009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38007
38008 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38009
38010 * kern/misc.c [APPLE_CC] (memcpy): new function
38011 [APPLE_CC] (memmove): likewise
38012 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 38013 (memcpy): define alias conditionally on !APPLE_CC
6c688477 38014 (memset): likewise
38015 (abort): likewise
38016 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38017 APPLE_CC are defined
38018 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38019 (grub_assert_fail): make prototype conditional
38020
e37ffc5c 380212009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38022
38023 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38024
473d1e45 38025 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38026 grub-macho2img
e37ffc5c 38027 (CLEANFILES): add grub-macho2img
38028 (grub_macho2img_SOURCES): new variable
38029 * kern/i386/pc/startup.S (bss_start): new variable
38030 (bss_end): likewise
38031 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38032 * util/grub-macho2img.c: new file
38033
cf00df31 380342009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38035
38036 Use objconv when compiling with Apple's CC
38037
38038 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38039 (efiemu64.o): likewise
38040 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38041 when compiling with Apple's CC
38042 (efiemu64_s.o): likewise
38043 * configure.ac: check for objconv when compiling with Apple's CC
38044 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 38045
d119a20c 380462009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38047
38048 Define segment as well as section when compiling with
38049 Apple's CC
38050
38051 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38052 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38053 (efiemu_convert_pointer): likewise
38054 (efiemu_set_virtual_address_map): likewise
38055 (efiemu_convert_pointer): likewise
38056 (efiemu_getcrc32): likewise
38057 (init_crc32_table): likewise
38058 (reflect): likewise
38059 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38060 (GRUB_MOD_DEP): likewise
473d1e45 38061
c8600122 380622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38063
38064 Allow a compilation without -mcmodel=large
38065
38066 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38067 when compiled without -mcmodel=large
473d1e45 38068 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 38069 without -mcmodel=large
473d1e45 38070 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 38071 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 38072
e8df1d4e 380732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38074
38075 Remove nested functions in efiemu core
38076
38077 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 38078
cc6c3ac1 380792009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38080
38081 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38082
38083 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38084 temporary storage
473d1e45 38085 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38086 using Apple's CC
cc6c3ac1 38087 (grub_cpu_is_tsc_supported): likewise
38088 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 38089
3e325901 380902009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38091
38092 Absolute addressing through constant with Apple's cc
38093
38094 * kern/i386/pc/startup.S: Define necessary constants
38095 and address through it when using ABS with Apple's CC
38096 * boot/i386/pc/diskboot.S: likewise
38097 * boot/i386/pc/boot.S: likewise
38098 * boot/i386/pc/lnxboot.S: likewise
38099 * boot/i386/pc/cdboot.S: likewise
38100 * mmap/i386/pc/mmap_helper.S: likewise
38101 * commands/i386/pc/drivemap_int13h.S: likewise
38102
2b167a72 381032009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38104
38105 Check if compiler is apple cc
38106
38107 * Makefile.in (ASFLAGS): new variable
38108 (TARGET_ASFLAGS): likewise
38109 (TARGET_MODULE_FORMAT): likewise
38110 (TARGET_APPLE_CC): likewise
38111 (OBJCONV): likewise
38112 (TARGET_IMG_CFLAGS): likewise
38113 (TARGET_CPPFLAGS): add includedir
38114 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38115 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38116 Check for linker script only if compiler isn't Apple's CC
38117 (TARGET_MODULE_FORMAT): set
38118 (TARGET_APPLE_CC): likewise
38119 (TARGET_ASFLAGS): likewise
38120 (ASFLAGS): likewise
38121 Check for objcopy only if compiler isn't Apple's CC
38122 Check for BSS symbol only if compiler isn't Apple's CC
38123 * genmk.rb: adapt nm options if we use Apple's utils
38124 * aclocal.m4 (grub_apple_cc): new test
38125 (grub_apple_target_cc): likewise
473d1e45 38126
fb14123e 381272009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38128
38129 Simplify sed expressions and improve awk
38130
38131 * Makefile.in (install-local): simplify sed expression
38132 * gencmdlist.sh: likewise
38133 * genmoddep.awk: avoid adding module as a dependency of itself
38134
5b889789 381352009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38136
38137 Add missing start symbols
38138
38139 * boot/i386/pc/boot.S: add start
fb14123e 38140 * boot/i386/pc/pxeboot.S: likewise
473d1e45 38141
fd2bf2e3 381422009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38143
38144 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 38145
38146 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 38147 (relocate_addresses): consider both r_addend and value at offset
38148 (make_mods_section): zerofill modinfo and header
38149 (convert_elf): write prefix here
473d1e45 38150
5389763d 381512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38152
38153 Use .asciz instead of .string
38154
38155 * i386/pc/diskboot.S: use .asciz instead of .string
38156 * i386/pc/boot.S: likewise
38157 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38158 (GRUB_MOD_NAME): likewise
473d1e45 38159
3eb5ed4e 381602009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38161
38162 gfxpayload support
38163
38164 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38165 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38166 (grub_video_setup): remove
38167 (grub_video_set_mode): new prototype
38168 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38169 (vid_mode): remove
38170 (linux_vesafb_res): compile only on PCBIOS
38171 (grub_linux_boot): support gfxpayload
38172 * loader/i386/pc/xnu.c (video_hook): new function
38173 (grub_xnu_set_video): support gfxpayload
38174 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38175 (DEFAULT_VIDEO_HEIGHT): likewise
38176 (DEFAULT_VIDEO_FLAGS): likewise
38177 (DEFAULT_VIDEO_MODE): new definition
38178 (video_hook): new function
38179 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 38180 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 38181 loading xnu
38182 * video/video.c (grub_video_setup): removed
473d1e45 38183 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 38184 grub_video_setup
38185
4b0e1143 381862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38187
38188 Avoid calling biosdisk in drivemap
38189
38190 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38191 (revparse_biosdisk): likewise
38192 (list_mappings): derive name from id directly
38193 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 38194
fda6cb98 381952009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38196
38197 Script fixes
38198
38199 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38200 (grub_lexer_param): add tokenonhold
38201 (grub_script_create_cmdline): remove cmdline. All callers updated
38202 (grub_script_function_create): make functionname
38203 grub_script_arg. All callers updated
38204 (grub_script_execute_argument_to_string): new prototype
38205 * kern/parser.c (state_transitions): reorder
38206 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 38207 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 38208 make global
38209 (grub_script_execute_cmdline): use new format
38210 * script/sh/function.c (grub_script_function_create): make functionname
38211 grub_script_arg. All callers updated
473d1e45 38212 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 38213 (grub_script_yylex): remove
38214 (grub_script_yylex2): renamed to ...
38215 (grub_script_yylex): ...renamed
38216 parse the expressions like a${b}c
38217 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38218 (GRUB_PARSER_TOKEN_VAR): remove
38219 (GRUB_PARSER_TOKEN_NAME): likewise
38220 ("if"): declare as typeless
38221 ("while"): likewise
38222 ("function"): likewise
38223 ("else"): likewise
38224 ("then"): likewise
38225 ("fi"): likewise
38226 (text): remove
38227 (argument): likewise
38228 (script): accept empty scripts and make exit on error
38229 (arguments): use GRUB_PARSER_TOKEN_ARG
38230 (function): likewise
38231 (command): move error handling to script
38232 (menuentry): move grub_script_lexer_ref before
473d1e45 38233 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 38234 argument. All callers updated
38235
f4448a07 382362009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38237
38238 Prevent GRUB from probing floppies during boot.
38239
38240 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38241 * commands/search.c (options): Add --no-floppy.
38242 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38243 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38244 --no-floppy when searching for UUIDs.
38245
2bf5885a 382462009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38247
38248 Simplify the code duplication in commands/search.c.
38249
38250 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38251 (search_fs): ... this. Update all users.
38252
f6fd460a 382532009-06-03 Felix Zielcke <fzielcke@z-51.de>
38254
38255 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38256
cbb3c83e 382572009-05-28 Pavel Roskin <proski@gnu.org>
38258
57788cfd 38259 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38260 Remove the original symlink explicitly.
38261
cbb3c83e 38262 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38263 just one slash. That's how grub_fshelp_find_file() does it.
38264
cd0d5e30 382652009-05-26 Pavel Roskin <proski@gnu.org>
38266
f0f8bbe2 38267 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38268 to `str'.
38269
cd0d5e30 38270 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38271 possibly unused.
38272
8c2cab51 382732009-05-25 Christian Franke <franke@computer.org>
38274
38275 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38276 register.
38277 (grub_atapi_identify): Add wait after drive select.
38278 (grub_ata_identify): Do more strict status register check before
38279 calling grub_atapi_identify (). Suppress error message if status
38280 register is 0x00 after command failure. Add status register
38281 check after PIO read to avoid bogus identify due to stuck DRQ.
38282 Thanks to Pavel Roskin for testing.
38283 (grub_device_initialize): Remove unsafe status register check.
38284 Thanks to 'phcoder' for problem report and patch.
38285 Prevent sign extension in debug message.
38286
230c0ad6 382872009-05-23 Colin D Bennett <colin@gibibit.com>
38288
38289 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38290 definition file, and functions defined in `normal/menu.c' have had
38291 their prototypes moved to `include/grub/menu.h' for consistency.
38292
38293 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38294 from normal.h.
38295 (grub_menu_get_entry): Likewise.
38296 (grub_menu_get_timeout): Likewise.
38297 (grub_menu_set_timeout): Likewise.
38298 (grub_menu_execute_entry): Likewise.
38299 (grub_menu_execute_with_fallback): Likewise.
38300 (grub_menu_entry_run): Likewise.
38301
38302 * include/grub/normal.h: Re-ordered and grouped function
38303 prototypes by file that the function is defined in.
38304 (grub_menu_execute_callback): Removed; moved to menu.h.
38305 (grub_menu_get_entry): Likewise.
38306 (grub_menu_get_timeout): Likewise.
38307 (grub_menu_set_timeout): Likewise.
38308 (grub_menu_execute_entry): Likewise.
38309 (grub_menu_execute_with_fallback): Likewise.
38310 (grub_menu_entry_run): Likewise.
38311 (grub_menu_addentry): Renamed from this ...
38312 (grub_normal_add_menu_entry): ... to this.
38313
38314 * normal/main.c (grub_menu_addentry): Renamed from this ...
38315 (grub_normal_add_menu_entry): ... to this.
38316
38317 * script/sh/execute.c (grub_script_execute_menuentry): Update
38318 reference to renamed grub_menu_addentry function.
38319
861f03a5 383202009-05-23 Felix Zielcke <fzielcke@z-51.de>
38321
38322 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38323
96b1619a 383242009-05-22 Pavel Roskin <proski@gnu.org>
38325
bf6a5fb2 38326 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38327 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38328 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38329 compiling for the i386 targets, but not for the utilities.
38330
96b1619a 38331 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38332 to grub_uint8_t.
38333 (grub_root_drive): Likewise.
38334 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38335 remove alignment.
38336 (grub_root_drive): Change size to byte.
38337 (grub_start_addr): Remove.
38338 (grub_end_addr): Likewise.
38339 (grub_apm_bios_info): Likewise.
38340
b729776b 383412009-05-21 Felix Zielcke <fzielcke@z-51.de>
38342
38343 * normal/i386: Remove.
38344 * normal/powerpc: Likewise.
38345 * normal/sparc64: Likewise.
38346 * normal/x86_64: Likewise.
38347
0a15ce80 383482009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38349
38350 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 38351 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 38352 * loader/i386/xnu_helper.S: Likewise
d6da58e6 38353
33db9015 383542009-05-18 Colin D Bennett <colin@gibibit.com>
38355
d6da58e6 38356 Display error messages when parsing a Lua statement fails.
38357 Previously, executing a syntactically invalid statement like
38358 ")foo" or "bar;" would silently fail.
33db9015 38359
38360 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 38361 (grub_lua_parse_line): Improved reporting of Lua parser and
38362 execution errors.
33db9015 38363
46422c89 383642009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38365
38366 Remove -Werror which causes build to fail on some systems
38367
38368 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38369 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38370 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 38371
22f53a96 383722009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38373
38374 trampoline for linux on 64-bit platform
38375
18f547ad 38376 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38377 loader/i386/efi/linux_trampoline.S
38378 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 38379 declaration
d6da58e6 38380 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38381 here
22f53a96 38382 * loader/i386/linux_trampoline.S: moved here
d6da58e6 38383 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38384 trampoline
22f53a96 38385 (jumpvector): removed
38386 (grub_linux_trampoline_start): new declaration
38387 (grub_linux_trampoline_end): likewise
38388 (grub_linux_boot): use trampoline when on 64-bit platform
38389 * loader/i386/linux.c: likewise
38390
cb5a0f40 383912009-05-16 Pavel Roskin <proski@gnu.org>
38392
38393 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38394 const to avoid a warning.
38395 (grub_lua_setenv): Likewise.
38396 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38397 lmsg to fix a warning.
38398
334f2c28 383992009-05-16 Felix Zielcke <fzielcke@z-51.de>
38400
38401 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 38402 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38403 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38404 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38405 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38406 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38407 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38408 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 38409
59e5d3ec 384102009-05-16 Felix Zielcke <fzielcke@z-51.de>
38411
38412 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38413
9d87a1ba 384142009-05-16 Bean <bean123ch@gmail.com>
38415
38416 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38417 (lua_mod_SOURCES): New variable.
38418 (lua_mod_CFLAGS): Likewise.
38419 (lua_mod_LDFLAGS): Likewise.
38420
38421 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38422 (setjmp_mod_SOURCES): New variable.
38423 (setjmp_mod_CFLAGS): Likewise.
38424 (setjmp_LDFLAGS): Likewise.
38425
38426 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38427 (setjmp_mod_SOURCES): New variable.
38428 (setjmp_mod_CFLAGS): Likewise.
38429 (setjmp_LDFLAGS): Likewise.
38430
38431 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38432 (setjmp_mod_SOURCES): New variable.
38433 (setjmp_mod_CFLAGS): Likewise.
38434 (setjmp_LDFLAGS): Likewise.
38435
38436 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38437 (setjmp_mod_SOURCES): New variable.
38438 (setjmp_mod_CFLAGS): Likewise.
38439 (setjmp_LDFLAGS): Likewise.
38440
38441 * normal/i386/setjmp.S: Moved from here ...
38442 * lib/i386/setjmp.S: ... Moved here
38443 * normal/x86_64/setjmp.S: Moved from here ...
38444 * lib/x86_64/setjmp.S: ... Moved here
38445 * normal/powerpc/setjmp.S: Moved from here ...
38446 * lib/powerpc/setjmp.S: ... Moved here
38447 * normal/sparc64/setjmp.S: Moved from here ...
38448 * lib/sparc64/setjmp.S: ... Moved here
38449
38450 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38451 returns_twice in mingw.
38452
38453 * script/lua/grub_lib.c: New file.
38454 * script/lua/grub_lib.h: Likewise.
38455 * script/lua/grub_lua.h: Likewise.
38456 * script/lua/grub_main.c: Likewise.
38457 * script/lua/lapi.c: Likewise.
38458 * script/lua/lapi.h: Likewise.
38459 * script/lua/lauxlib.c: Likewise.
38460 * script/lua/lauxlib.h: Likewise.
38461 * script/lua/lbaselib.c: Likewise.
38462 * script/lua/lcode.c: Likewise.
38463 * script/lua/lcode.h: Likewise.
38464 * script/lua/ldblib.c: Likewise.
38465 * script/lua/ldebug.c: Likewise.
38466 * script/lua/ldebug.h: Likewise.
38467 * script/lua/ldo.c: Likewise.
38468 * script/lua/ldo.h: Likewise.
38469 * script/lua/ldump.c: Likewise.
38470 * script/lua/lfunc.c: Likewise.
38471 * script/lua/lfunc.h: Likewise.
38472 * script/lua/lgc.c: Likewise.
38473 * script/lua/lgc.h: Likewise.
38474 * script/lua/linit.c: Likewise.
38475 * script/lua/liolib.c: Likewise.
38476 * script/lua/llex.c: Likewise.
38477 * script/lua/llex.h: Likewise.
38478 * script/lua/llimits.h: Likewise.
38479 * script/lua/lmathlib.c: Likewise.
38480 * script/lua/lmem.c: Likewise.
38481 * script/lua/lmem.h: Likewise.
38482 * script/lua/loadlib.c: Likewise.
38483 * script/lua/lobject.c: Likewise.
38484 * script/lua/lobject.h: Likewise.
38485 * script/lua/lopcodes.c: Likewise.
38486 * script/lua/lopcodes.h: Likewise.
38487 * script/lua/loslib.c: Likewise.
38488 * script/lua/lparser.c: Likewise.
38489 * script/lua/lparser.h: Likewise.
38490 * script/lua/lstate.c: Likewise.
38491 * script/lua/lstate.h: Likewise.
38492 * script/lua/lstring.c: Likewise.
38493 * script/lua/lstring.h: Likewise.
38494 * script/lua/lstrlib.c: Likewise.
38495 * script/lua/ltable.c: Likewise.
38496 * script/lua/ltable.h: Likewise.
38497 * script/lua/ltablib.c: Likewise.
38498 * script/lua/ltm.c: Likewise.
38499 * script/lua/ltm.h: Likewise.
38500 * script/lua/lua.h: Likewise.
38501 * script/lua/luaconf.h: Likewise.
38502 * script/lua/lualib.h: Likewise.
38503 * script/lua/lundump.c: Likewise.
38504 * script/lua/lundump.h: Likewise.
38505 * script/lua/lvm.c: Likewise.
38506 * script/lua/lvm.h: Likewise.
38507 * script/lua/lzio.c: Likewise.
38508 * script/lua/lzio.h: Likewise.
38509
5e898c9d 385102009-05-16 Bean <bean123ch@gmail.com>
38511
38512 * include/grub/kernel.h (grub_module_header_types): Add type
38513 OBJ_TYPE_CONFIG.
38514
38515 * kern/main.c (grub_load_config): New function.
38516 (grub_main): Call grub_load_config to read boot config.
38517
38518 * grub-mkimage (generate_image): New parameter config_path.
38519 (options): New option --config.
38520 (main): Parse --config option, and pass it to generate_image.
38521
cf353a47 385222009-05-14 Christian Franke <franke@computer.org>
38523
38524 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38525 This fixes build on Cygwin.
38526
3834887f 385272009-05-14 Pavel Roskin <proski@gnu.org>
38528
38529 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38530 jump. This saves two bytes, so the typical case of 2 swapped
38531 drives would fit 32 bytes.
38532
8090fc01 385332009-05-13 Pavel Roskin <proski@gnu.org>
38534
ac963883 38535 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38536 grub_uint32_t to avoid a warning.
38537
8090fc01 38538 * loader/i386/linux.c (allocate_pages): When assigning
38539 real_mode_mem, cast through grub_size_t to fix a warning. The
38540 code already makes sure that the value would fit a pointer.
38541 (grub_linux_setup_video): Cast render_target->data to
38542 grub_size_t to fix a warning.
38543
18f547ad 385442009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 38545
38546 * commands/i386/pc/drivemap.c: New file - implement drivemap
38547 command.
38548 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38549 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38550
6f6a8b28 385512009-05-13 Pavel Roskin <proski@gnu.org>
38552
38553 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38554 embedding_area_exists.
38555
15fbf4c4 385562009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38557
38558 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38559 it easier to understand / work with.
59978c8a 38560 Improve warning messages for cases where there's no embedding area,
38561 or when it is too small (or core.img too large).
15fbf4c4 38562
238e871f 385632009-05-13 Pavel Roskin <proski@gnu.org>
38564
0ab3a9a4 38565 * loader/i386/pc/multiboot2.c: Add necessary includes for
38566 grub_multiboot2_real_boot().
38567
a2c8c5f8 38568 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38569 PX record is always little-endian. We only need the lower 2
38570 bytes of the mode.
38571
faec96af 38572 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38573 facilitate code reuse.
38574 (grub_cpio_mount): Use "struct head", not a char buffer. This
38575 fixes a warning reported by gcc 4.4.
38576
238e871f 38577 * kernel/disk.c (grub_disk_read): Use void pointer for the
38578 buffer.
38579 (grub_disk_write): Use const void pointer for the buffer.
38580 Adjust all callers. Remove unnecessary casts.
38581
901d2f0c 385822009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38583
38584 * util/i386/pc/grub-install.in: Update copyright year.
38585
18f547ad 385862009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 38587
38588 gptsync
38589
38590 * commands/gptsync.c: new file
38591 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38592 (gptsync_mod_SOURCES): new variable
38593 (gptsync_mod_CFLAGS): likewise
38594 (gptsync_mod_LDFLAGS): likewise
18f547ad 38595 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 38596 new definition
38597 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38598 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38599 * conf/i386-ieee1275.rmk: likewise
38600 * conf/i386-pc.rmk: likewise
38601 * conf/powerpc-ieee1275.rmk: likewise
38602
b4ba690a 386032009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38604
38605 Fixed grub-emu
38606
38607 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38608 (grub_dl_ref): likewise
38609
317e1a44 386102009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38611
38612 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38613 split in two functions (one for msdos and one for gpt).
38614
041b8094 386152009-05-08 Pavel Roskin <proski@gnu.org>
38616
752473c2 38617 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38618 not modified.
38619
041b8094 38620 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38621 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38622 Initialize them with -1. Add sanity check for bad1. Eliminate
38623 nerr variable.
38624
172800ce 386252009-05-08 David S. Miller <davem@davemloft.net>
38626
38627 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38628
29aa5e81 386292009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38630
38631 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 38632 existence.
29aa5e81 38633
96613b62 386342009-05-05 Felix Zielcke <fzielcke@z-51.de>
38635
38636 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 38637 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 38638
eef73c8a 386392009-05-05 David S. Miller <davem@davemloft.net>
38640
38641 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38642
119494b5 386432009-05-05 Pavel Roskin <proski@gnu.org>
38644
38645 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38646 of grub_dl_ref() and grub_dl_unref().
38647 * commands/parttool.c: Remove preprocessor conditionals around
38648 grub_dl_ref() and grub_dl_unref().
38649 * fs/affs.c: Likewise.
38650 * fs/afs.c: Likewise.
38651 * fs/cpio.c: Likewise.
38652 * fs/ext2.c: Likewise.
38653 * fs/fat.c: Likewise.
38654 * fs/hfs.c: Likewise.
38655 * fs/hfsplus.c: Likewise.
38656 * fs/iso9660.c: Likewise.
38657 * fs/jfs.c: Likewise.
38658 * fs/minix.c: Likewise.
38659 * fs/ntfs.c: Likewise.
38660 * fs/reiserfs.c: Likewise.
38661 * fs/sfs.c: Likewise.
38662 * fs/udf.c: Likewise.
38663 * fs/ufs.c: Likewise.
38664 * fs/xfs.c: Likewise.
38665 * include/grub/dl.h: Likewise.
38666 * loader/xnu.c: Likewise.
38667
de5fd76e 386682009-05-04 Pavel Roskin <proski@gnu.org>
38669
38670 * commands/acpi.c: Remove unused variable my_mod.
38671 * partmap/amiga.c: Likewise.
38672 * partmap/apple.c: Likewise.
38673 * partmap/gpt.c: Likewise.
38674 * partmap/pc.c: Likewise.
38675 * partmap/sun.c: Likewise.
38676 * term/gfxterm.c: Likewise.
38677 * term/i386/pc/vesafb.c: Likewise.
38678 * term/i386/pc/vga.c: Likewise.
38679
983598ad 386802009-05-04 David S. Miller <davem@davemloft.net>
38681
38682 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38683 pointer args to grub_ieee1275_get_property().
38684
8aadec43 38685 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38686
9554b15e 38687 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38688 devices, and do not traverse down under controller nodes.
38689
67e23c90 38690 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38691 (grub_ofdisk_open): Use it to un-escape "," characters.
38692 * kern/disk.c (find_part_sep): New.
38693 (grub_disk_open): Use it to find the first non-escaped ','
38694 character in the disk name.
38695 * util/ieee1275/devicemap.c (escape_of_path): New.
38696 (grub_util_emit_devicemap_entry): Use it.
38697 * util/sparc64/ieee1275/grub-install.in: Update script to
38698 strip partition specifiers properly by not triggering on
38699 '\' escaped ',' characters.
38700
74bfdd2f 387012009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38702
38703 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38704 to 0x300.
38705 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38706 resolutions.
38707 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38708 on documentation from Wikipedia).
38709
4241d2b1 387102009-05-04 Pavel Roskin <proski@gnu.org>
38711
38712 * disk/ata.c: Spelling fixes.
38713 * disk/raid.c: Likewise.
38714 * disk/usbms.c: Likewise.
38715 * disk/dmraid_nvidia.c: Likewise.
38716 * kern/ieee1275/openfw.c: Likewise.
38717 * kern/ieee1275/init.c: Likewise.
38718 * kern/ieee1275/cmain.c: Likewise.
38719 * boot/i386/pc/cdboot.S: Likewise.
38720 * video/readers/png.c: Likewise.
38721 * video/i386/pc/vbe.c: Likewise.
38722 * fs/udf.c: Likewise.
38723 * fs/hfs.c: Likewise.
38724 * fs/reiserfs.c: Likewise.
38725 * efiemu/runtime/efiemu.c: Likewise.
38726 * efiemu/main.c: Likewise.
38727 * efiemu/mm.c: Likewise.
38728 * include/grub/elf.h: Likewise.
38729 * include/grub/xnu.h: Likewise.
38730 * include/grub/usbdesc.h: Likewise.
38731 * include/grub/usb.h: Likewise.
38732 * include/grub/script_sh.h: Likewise.
38733 * include/grub/lib/LzmaEnc.h: Likewise.
38734 * include/grub/efiemu/efiemu.h: Likewise.
38735 * include/grub/command.h: Likewise.
38736 * normal/menu.c: Likewise.
38737 * normal/main.c: Likewise.
38738 * normal/datetime.c: Likewise.
38739 * bus/usb/uhci.c: Likewise.
38740 * mmap/i386/uppermem.c: Likewise.
38741 * mmap/mmap.c: Likewise.
38742 * commands/acpi.c: Likewise.
38743 * commands/test.c: Likewise.
38744 * partmap/apple.c: Likewise.
38745 * font/font.c: Likewise.
38746 * loader/sparc64/ieee1275/linux.c: Likewise.
38747 * loader/macho.c: Likewise.
38748 * loader/i386/bsd_trampoline.S: Likewise.
38749 * loader/i386/bsd.c: Likewise.
38750 * loader/xnu.c: Likewise.
38751 * term/i386/pc/vesafb.c: Likewise.
38752 * term/usb_keyboard.c: Likewise.
38753 * util/resolve.c: Likewise.
38754 * util/getroot.c: Likewise.
38755
0cfc0083 387562009-05-04 Felix Zielcke <fzielcke@z-51.de>
38757
38758 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38759
7c1d00cd 387602009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38761
38762 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38763 build error.
38764
b01f0548 387652009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38766
38767 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38768 parameter only available on BIOS.
38769
ecc3eb22 387702009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38771
38772 Removed wrong semicolon in declaration
38773
38774 * grub/misc.h (grub_dprintf): remove semicolon
38775
112972a9 387762009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38777
38778 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38779 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38780 is done by grub_cmd_linux() now).
38781 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38782 restore video to text mode.
38783 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38784 indicates lack of "vga=" parameter. "vga=0" is mapped to
38785 `GRUB_LINUX_VID_MODE_NORMAL'.
38786
afd5c115 387872009-05-04 Felix Zielcke <fzielcke@z-51.de>
38788
38789 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38790 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38791 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 38792 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 38793 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38794 `grub_script.tab.c'.
38795
38796 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38797 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38798 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38799 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38800 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38801
faa517ce 38802 * Makefile.in: Remove duplicated 2008 in Copyright line.
38803
ae0c0bdc 388042009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38805
473d1e45 38806 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 38807 unconditionally.
38808 * include/grub/util/misc.h (grub_util_warn): New declaration.
38809
38810 * util/i386/pc/grub-install.in: Understand --force and pass it down
38811 to grub-setup.
38812
38813 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38814 down to setup().
38815 (setup): Improve error messages and add warnings when requested to
38816 install in odd layouts. Refuse to install using blocklists unless
38817 --force was set.
38818
18f547ad 388192009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 38820
38821 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38822
6d260daa 388232009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38824
38825 Updated copyright year
38826
38827 * fs/hfsplus.c: updated copyright year
18f547ad 38828
69f853f8 388292009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38830
38831 HFS+ UUID
38832
18f547ad 38833 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 38834 in the space previously used by unused3
38835 (grub_hfsplus_uuid): new function
38836 (grub_hfsplus_fs): added uuid field
38837
4c402e73 388382009-05-03 Pavel Roskin <proski@gnu.org>
38839
38840 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38841 suppress warnings. It's no longer needed.
38842 * disk/host.c: Likewise.
38843 * disk/ata_pthru.c: Likewise.
38844 * disk/loopback.c: Likewise.
38845 * hook/datehook.c: Likewise.
38846 * parttool/pcpart.c: Likewise.
38847 * fs/i386/pc/pxe.c: Likewise.
38848 * fs/ntfscomp.c: Likewise.
38849 * efiemu/main.c: Likewise.
38850 * mmap/mmap.c: Likewise.
38851 * commands/crc.c: Likewise.
38852 * commands/hexdump.c: Likewise.
38853 * commands/hdparm.c: Likewise.
38854 * commands/acpi.c: Likewise.
38855 * commands/echo.c: Likewise.
38856 * commands/minicmd.c: Likewise.
38857 * commands/blocklist.c: Likewise.
38858 * commands/memrw.c: Likewise.
38859 * commands/loadenv.c: Likewise.
38860 * commands/usbtest.c: Likewise.
38861 * commands/lsmmap.c: Likewise.
38862 * commands/boot.c: Likewise.
38863 * commands/parttool.c: Likewise.
38864 * commands/configfile.c: Likewise.
38865 * commands/search.c: Likewise.
38866 * commands/ieee1275/suspend.c: Likewise.
38867 * commands/cat.c: Likewise.
38868 * commands/i386/pc/pxecmd.c: Likewise.
38869 * commands/i386/pc/play.c: Likewise.
38870 * commands/i386/pc/halt.c: Likewise.
38871 * commands/i386/pc/vbeinfo.c: Likewise.
38872 * commands/i386/pc/vbetest.c: Likewise.
38873 * commands/lspci.c: Likewise.
38874 * commands/date.c: Likewise.
38875 * commands/handler.c: Likewise.
38876 * commands/ls.c: Likewise.
38877 * commands/test.c: Likewise.
38878 * commands/cmp.c: Likewise.
38879 * commands/efi/loadbios.c: Likewise.
38880 * commands/efi/fixvideo.c: Likewise.
38881 * commands/halt.c: Likewise.
38882 * commands/help.c: Likewise.
38883 * commands/reboot.c: Likewise.
38884 * hello/hello.c: Likewise.
38885 * script/sh/main.c: Likewise.
38886 * loader/xnu.c: Likewise.
38887 * term/terminfo.c: Likewise.
38888 * term/i386/pc/serial.c: Likewise.
38889 * term/usb_keyboard.c: Likewise.
38890
515b5079 388912009-05-03 David S. Miller <davem@davemloft.net>
38892
38893 * normal/menu.c: Include grub/parser.h
38894
dfc31a22 388952009-05-03 Pavel Roskin <proski@gnu.org>
38896
2fee74f1 38897 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38898 not char*.
38899 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38900 Suggested by Javier Martín <lordhabbit@gmail.com>
38901
dfc31a22 38902 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38903 efiemu??.o doesn't exist.
38904 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38905 copying.
38906
18f547ad 389072009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 38908
38909 FreeBSD 64-bit support
38910
18f547ad 38911 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 38912 and loader/i386/bsd_trampoline.S
38913 (bsd_mod_ASFLAGS): new variable
38914 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38915 (FREEBSD_MODTYPE_KERNEL64): likewise
38916 (grub_bsd64_trampoline_start): likewise
38917 (grub_bsd64_trampoline_end): likewise
38918 (grub_bsd64_trampoline_selfjump): likewise
38919 (grub_bsd64_trampoline_gdt): likewise
38920 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38921 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38922 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38923 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 38924 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 38925 of "attrib" member
38926 * loader/i386/bsd_pagetable.c: new file
38927 * loader/i386/bsd_trampoline.S: likewise
38928 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38929 (ALIGN_VAR): likewise
38930 (entry_hi): new variable
38931 (kern_end_mdofs): likewise
38932 (is_64bit): likewise
38933 (grub_freebsd_add_meta): use ALIGN_VAR
38934 (grub_e820_mmap): new declaration
38935 (grub_freebsd_add_mmap): new function
38936 (grub_freebsd_add_meta_module): support 64 bit kernels
38937 (grub_freebsd_list_modules): use ALIGN_VAR
38938 (gdt_descriptor): new declaration
38939 (grub_freebsd_boot): support 64 bit kernels
38940 (grub_bsd_elf64_hook): new function
38941 (grub_bsd_load_elf): support elf64
38942
038c5720 389432009-05-03 Bean <bean123ch@gmail.com>
38944
38945 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38946 after we get the result of if statement.
38947
fc45fb58 389482009-05-03 Bean <bean123ch@gmail.com>
38949
38950 * Makefile.in (enable_efiemu): New variable.
38951
38952 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38953 set.
38954 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38955 path.
38956 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38957 path, add -mno-red-zone option.
38958 (efiemu64_s.o): Likewise.
38959 (efiemu64.o): Use macro $^ for source file.
38960
38961 * configure.ac (--enable-efiemu): New option.
38962
bbee0f2b 389632009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38964
38965 xnu support
38966
38967 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38968 (pkglib_MODULES): add xnu.mod
38969 (xnu_mod_SOURCES): new variable
38970 (xnu_mod_CFLAGS): likewise
38971 (xnu_mod_LDFLAGS): likewise
38972 (xnu_mod_ASFLAGS): likewise
38973 * conf/i386-pc.rmk: likewise
38974 * conf/x86_64-efi.rmk: likewise
7dd4a573 38975 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 38976 new declaration
38977 * include/grub/i386/macho.h: new file
38978 * include/grub/i386/xnu.h: likewise
38979 * include/grub/macho.h: likewise
38980 * include/grub/machoload.h: likewise
38981 * include/grub/x86_64/macho.h: likewise
38982 * include/grub/x86_64/xnu.h: likewise
38983 * include/grub/xnu.h: likewise
38984 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38985 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38986 * loader/i386/efi/xnu.c: new file
38987 * loader/i386/pc/xnu.c: likewise
38988 * loader/i386/xnu.c: likewise
38989 * loader/i386/xnu_helper.S: likewise
38990 * loader/macho.c: likewise
38991 * loader/xnu.c: likewise
38992 * loader/xnu_resume.c: likewise
38993 * util/grub-dumpdevtree: likewise
38994 * include/grub/i386/pit.h: include grub/err.h
38995 (grub_pit_wait): export
38996 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 38997
5caf964d 389982009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38999
39000 Efiemu
7dd4a573 39001
5caf964d 39002 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 39003 _linux_efi, linux_efi.
39004 new files in grub-emu
5caf964d 39005 new targets efiemu32.o and efiemu64.o
39006 * loader/linux_normal_efiemu.c: likewise
39007 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 39008 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 39009 files to copy
39010 * include/grub/autoefi.h: new file
7dd4a573 39011 * include/grub/i386/efiemu.h: likewise
5caf964d 39012 * include/grub/i386/pc/efiemu.h: likewise
39013 * include/grub/efi/api.h: add LL suffix when necessary
39014 new definitions relating to tables
39015 * include/grub/efiemu/efiemu.h: new file
39016 * include/grub/efiemu/runtime.h: likewise
39017 * efiemu/prepare.c: likewise
39018 * efiemu/loadcore_common.c: likewise
39019 * efiemu/loadcore64.c: likewise
39020 * efiemu/runtime/efiemu.sh: likewise
39021 * efiemu/runtime/efiemu.S: likewise
39022 * efiemu/runtime/efiemu.c: likewise
39023 * efiemu/runtime/config.h: likewise
39024 * efiemu/prepare32.c: likewise
39025 * efiemu/main.c: likewise
39026 * efiemu/modules/pnvram.c: likewise
39027 * efiemu/modules/i386: likewise
39028 * efiemu/modules/i386/pc: likewise
39029 * efiemu/modules/acpi.c: likewise
39030 * efiemu/i386/pc/cfgtables.c: likewise
39031 * efiemu/i386/loadcore64.c: likewise
39032 * efiemu/i386/loadcore32.c: likewise
39033 * efiemu/prepare64.c: likewise
39034 * efiemu/loadcore.c: likewise
39035 * efiemu/symbols.c: likewise
39036 * efiemu/mm.c: likewise
39037 * efiemu/loadcore32.c: likewise
7dd4a573 39038
390392009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 39040
39041 ACPI spoofing
39042
39043 * commands/acpi.c: new file
39044 * commands/i386/pc/acpi.c: likewise
39045 * commands/efi/acpi.c: likewise
39046 * include/grub/acpi.h: likewise
39047 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39048 (acpi_mod_SOURCES): new variable
39049 (acpi_mod_CFLAGS): likewise
39050 (acpi_mod_LDFLAGS): likewise
39051 * conf/i386-efi.rmk: likewise
39052 * conf/x86_64-efi.rmk: likewise
39053
7dd4a573 390542009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 39055
39056 Missing part from mmap patch
39057
39058 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39059 (grub_mmap_unregister)
39060 (grub_mmap_free_and_unregister): use grub_mmap_register
39061
7dd4a573 390622009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 39063
39064 Mmap services
39065
39066 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39067 * loader/i386/linux.c (find_mmap_size): likewise
39068 (allocate_pages): likewise
39069 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39070 (grub_fill_multiboot_mmap): likewise
39071 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39072 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39073 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39074 (OPENBSD_MMAP_RESERVED): likewise
39075 * include/grub/i386/pc/memory.h: include grub/memory.h
39076 (grub_lower_mem): removed
39077 (grub_upper_mem): likewise
39078 (GRUB_MACHINE_MEMORY_ACPI): new definition
39079 (GRUB_MACHINE_MEMORY_NVS): likewise
39080 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39081 (GRUB_MACHINE_MEMORY_HOLE): likewise
39082 (grub_machine_mmap_register): likewise
39083 (grub_machine_mmap_unregister): likewise
39084 (grub_machine_get_upper): likewise
39085 (grub_machine_get_lower): likewise
39086 (grub_machine_get_post64): likewise
39087 * include/grub/i386/efi/memory.h: new file
39088 * include/grub/x86_64/efi/memory.h: likewise
39089 * include/grub/efi/memory.h: likewise
39090 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39091 (mmap_mod_SOURCES): new variable
39092 (mmap_mod_LDFLAGS): likewise
39093 (mmap_mod_ASFLAGS): likewise
39094 * conf/i386-coreboot.rmk: likewise
39095 * conf/i386-ieee1275.rmk: likewise
39096 * conf/i386-efi.rmk: likewise
39097 * conf/x86_64-efi.rmk: likewise
39098 * include/grub/types.h (UINT_TO_PTR): new macro
39099 (PTR_TO_UINT32): likewise
39100 (PTR_TO_UINT64): likewise
39101 * include/grub/memory.h: new file
39102 * mmap/i386/pc/mmap.c: likewise
39103 * mmap/i386/pc/mmap_helper.S: likewise
39104 * mmap/i386/uppermem.c: likewise
39105 * mmap/mmap.c: likewise
39106 * mmap/efi/mmap.c: likewise
7dd4a573 39107 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 39108 grub_upper_mem
39109 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39110 (grub_upper_mem): likewise
39111 (grub_machine_init): don't use grub_upper_mem,
39112 make grub_lower_mem local
39113 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39114 grub_mmap_iterate and grub_mmap_get_upper
39115 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39116
d558e6b5 391172009-05-02 Bean <bean123ch@gmail.com>
39118
39119 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39120 script/sh/parser.y.
39121 (pkglib_MODULES): Add normal.mod and sh.mod.
39122 (normal_SOURCES): New variable.
39123 (normal_mod_CFLAGS): Likewise.
39124 (normal_mod_LDFLAGS): Likewise.
39125 (sh_mod_SOURCES): Likewise.
39126 (sh_mod_CFLAGS): Likewise.
39127 (sh_mod_LDFLAGS): Likewise.
39128
39129 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39130 script/sh/lexer.c_DEPENDENCIES.
39131 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39132 kern/rescue_reader.c and kern/rescue_parser.c.
39133 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39134 (grub_emu_SOURCES): Change source files.
39135 (pkglib_MODULES): Remove normal.mod.
39136 (normal_SOURCES): Removed.
39137 (normal_mod_CFLAGS): Likewise.
39138 (normal_mod_LDFLAGS): Likewise.
39139 * conf/i386-coreboot.rmk: Likewise.
39140 * conf/i386-efi.rmk: Likewise.
39141 * conf/i386-ieee1276.rmk: Likewise.
39142 * conf/powerpc-ieee1275.rmk: Likewise.
39143 * conf/sparc64-ieee1275.rmk: Likewise.
39144 * conf/x86_64-efi.rmk: Likewise.
39145
39146 * include/grub/command.h (grub_command_execute): New inline function.
39147
39148 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39149
39150 * include/grub/normal.h: Remove <grub/setjmp.h>.
39151 (grub_fs_module_list): Moved to normal/autofs.c.
39152 (grub_exit_env): Removed.
39153 (grub_command_execute): Likewise.
39154 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39155 parameter script.
39156 (read_command_list): New function declaration.
39157 (read_fs_list): Likewise.
39158
39159 * include/parser.h: Include <grub/reader.h>.
39160 (grub_parser_split_cmdline): Change type of getline parameter.
39161 (grub_parser): New structure.
39162 (grub_parser_class): New variable.
39163 (grub_parser_execute): New function declaration.
39164 (grub_register_rescue_parser): Likewise.
39165 (grub_parser_register): New inline function.
39166 (grub_parser_unregister): Likewise.
39167 (grub_parser_get_current): Likewise.
39168 (grub_parser_set_current): Likewise.
39169
39170 * include/grub/reader.h: New file.
39171 * kern/reader.c: Likewise.
39172 * kern/rescue_parser.c: Likewise.
39173 * kern/rescue_reader.c: Likewise.
39174 * normal/autofs.c: Likewise.
39175 * normal/dyncmd.c: Likewise.
39176
39177 * include/grub/rescue.h: Removed.
39178 * normal/command.h: Likewise.
39179
39180 * include/grub/script.h: Moved to ...
39181 * include/grub/script_sh.h: ... Moved here.
39182 * normal/execute.c: Moved to ...
39183 * script/sh/execute.c: ... Moved here.
39184 * normal/function.c: Moved to ...
39185 * script/sh/function.c: ... Moved here.
39186 * normal/lexer.c: Moved to ...
39187 * script/sh/lexer.c: ... Moved here.
39188 * normal/parser.y: Moved to ...
39189 * script/sh/parser.y: ... Moved here.
39190 * normal/script.c: Moved to ...
39191 * script/sh/script.c: ... Moved here.
39192
39193 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39194 <grub/reader.h>.
39195 (grub_exit_env): Removed.
39196 (fs_module_list): Moved to normal/autofs.c.
39197 (grub_file_getline): Don't handle comment here.
39198 (free_menu): Skip removed field entry->commands.
39199 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39200 script parameter.
39201 (read_config_file): Removed nested parameter, change getline function.
39202 (grub_enter_normal_mode): Removed.
39203 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39204 (read_command_list): Likewise.
39205 (autoload_fs_module): Moved to normal/autofs.c.
39206 (read_fs_list): Likewise.
39207 (reader_nested): New variable.
39208 (grub_normal_execute): Run parser.sh to switch to sh parser.
39209 (grub_cmd_rescue): Removed.
39210 (cmd_normal): Removed.
39211 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39212 rescue command.
39213 (grub_cmdline_run): New function.
39214 (grub_normal_reader_init): Likewise.
39215 (grub_normal_read_line): Likewise.
39216 (grub_env_write_pager): Likewise.
39217 (cmdline): New variable.
39218 (grub_normal_reader): Likewise.
39219 (GRUB_MOD_INIT): Register normal reader and set as current, register
39220 pager hook, register normal command with grub_register_command_prio,
39221 so that it won't show up in command.lst.
39222 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39223 grub_fs_autoload_hook.
39224
39225 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39226 (grub_menu_execute_entry): Replace grub_script_execute with
39227 grub_parser_execute, change parameter to grub_command_execute.
39228
39229 * normal/menu_text.c: Remove <grub/script.h>.
39230
39231 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39232 and <grub/parser.h>.
39233 (run): Change editor_getline to use new parser interface. Change
39234 parameter to grub_command_execute.
39235
39236 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39237 <grub/reader.h> and <grub/parser.h>.
39238 (grub_load_normal_mode): Execute normal command.
39239 (grub_main): Call grub_register_core_commands,
39240 grub_register_rescue_parser and grub_register_rescue_reader, use
39241 grub_reader_loop to enter input loop.
39242
7dd4a573 39243 * kern/parser.c (grub_parser_split_cmdline): Change type of
39244 getline parameter.
d558e6b5 39245 (grub_parser_class): New variable.
39246 (grub_parser_execute): New function.
39247
39248 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39249 * loader/multiboot2.c: Likewise.
39250 * loader/sparc64/ieee1275/linux.c: Likewise.
39251
39252 * util/grub-emu.c (read_command_list): New dummy function.
39253
18db813d 392542009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39255
39256 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39257 count to 16 for CCISS and IDA.
39258
6c67de15 392592009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39260
39261 * normal/menu_text.c (grub_wait_after_message): Print a newline
39262 after waiting for user input.
39263
39264 * loader/i386/linux.c: Include `<grub/normal.h>'.
39265 (grub_cmd_linux): Improve the error message about `ask' mode, by
39266 waiting for user input so it's not missed (we can do this, since
39267 user requested interaction).
39268
d9dc87b0 392692009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39270
39271 Added missing lst to grub-mkrescue
39272
39273 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39274 and ${input_dir}/parttool.lst
39275
ac8a2baa 392762009-04-30 David S. Miller <davem@davemloft.net>
39277
ad22a610 39278 * util/hostdisk.c (device_is_wholedisk): New function.
39279 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39280 zero only if device_is_wholedisk() returns true.
39281
6966215d 39282 * util/hostdisk.c (convert_system_partition_to_system_disk):
39283 Handle virtual disk devices named /dev/vdiskX as found on sparc
39284 and powerpc.
39285
ac8a2baa 39286 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39287 lettered partition specifier is found, convert to numbered.
39288
979b4fb4 392892009-04-29 David S. Miller <davem@davemloft.net>
39290
e2bf39b2 39291 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39292 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39293
3c64e104 39294 * normal/command.c: Add missing newline at end of file.
39295
979b4fb4 39296 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39297 warnings.
39298 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39299 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39300 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39301 ihandles have a 32-bit type but need to be stored in a "void *".
39302
136d9f82 393032009-04-28 Pavel Roskin <proski@gnu.org>
39304
9459c306 39305 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39306 not disk. Adjust all dependencies.
2e08a26a 39307 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 39308 grub_disk_close().
39309
136d9f82 39310 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39311 parent's partition, don't copy it by reference, as it gets freed
39312 on close.
39313
7dd4a573 393142009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 39315
39316 Preboot hooks support
39317
39318 * commands/boot.c (struct grub_preboot_t): new declaration
39319 (preboots_head): new variable
39320 (preboots_tail): likewise
39321 (grub_loader_register_preboot_hook): new function
39322 (grub_loader_unregister_preboot_hook): likewise
39323 (grub_loader_set): launch preboot hooks
39324 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39325 (grub_loader_register_preboot_hook): new declaration
39326 (grub_loader_unregister_preboot_hook): likewise
39327
5af922b5 393282009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39329
39330 Warning fix
39331
7dd4a573 39332 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 39333 calling grub_dprintf
39334
a5562c30 393352009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39336
39337 Bug and warning fixes
39338
7dd4a573 39339 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 39340 declaration
39341 * commands/test.c (test_parse): fixed bug with file tests and corrected
39342 declaration of find_file
39343
4006f85c 393442009-04-26 Pavel Roskin <proski@gnu.org>
39345
39346 * Makefile.in: Don't install empty manual pages if help2man is
39347 missing. Use help2man option for output, not shell redirection.
39348
5c77c3de 393492009-04-26 David S. Miller <davem@davemloft.net>
39350
39351 * util/grub-mkdevicemap.c (make_device_map): Add missing
39352 NESTED_FUNC_ATTR to process_device().
39353
033b10a8 393542009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39355
39356 Test command
39357
39358 * commands/test.c: rewritten to use bash-like test
39359
e4343593 393602009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39361
39362 Parttool autoloading and improvements
39363
7dd4a573 39364 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 39365 (parttool.lst): new target
39366 * genmk.rb: generate parttool-*
39367 (CLEANFILES): add #{parttool}
39368 (PARTTOOLFILES): new variable
39369 * genparttoollist.sh: new file
7dd4a573 39370 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 39371 (grub_pcpart_type): likewise
39372 * commands/parttool.c (helpmsg): new variable
39373 (grub_cmd_parttool): output help if not enough arguments are supplied
39374 autoload modules
39375 (GRUB_MOD_INIT(parttool)): use helpmsg
39376
0d312500 393772009-04-24 David S. Miller <davem@davemloft.net>
39378
7dd4a573 39379 Avoiding opening same device multiple times in device iterator.
0d312500 39380
39381 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 39382 and use it to build a list of partitions in iterate_disk() and
0d312500 39383 iterate_partition().
39384
ac20caff 39385 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39386 on disk->data.
39387
0dcf7495 39388 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39389 grub_devalias_iterate() result instead of unconditional 0.
39390 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39391 Also, capture hook return value, either directly or via
39392 grub_children_iterate(), and propagate to caller.
39393 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39394 grub_children_iterate): Return value is now 'int' instead of
39395 'grub_err_t'.
39396 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39397 like a proper iterator, stopping when hooks return non-zero.
39398 (grub_devalias_iterate): Likewise.
39399
c8c08833 394002009-04-23 David S. Miller <davem@davemloft.net>
39401
39402 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39403
f01005a8 394042009-04-22 David S. Miller <davem@davemloft.net>
39405
39406 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39407 is larger than address_cells, use that value for address_cells too.
39408
4e8269da 39409 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39410 IEEE1275_MAX_PATH_LEN): Define.
39411 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39412 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39413 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39414 'devtype'. Explicitly NULL terminate devalias expansion.
39415
a1447506 39416 * util/sparc64/ieee1275/misc.c: New file.
39417 * util/sparc64/ieee1275/grub-setup.c: New file.
39418 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39419 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39420 * util/sparc64/ieee1275/grub-install.in: New file.
39421 * util/ieee1275/ofpath.c: New file.
39422 * util/ieee1275/devicemap.c: New file.
39423 * util/devicemap.c: New file.
39424 * util/deviceiter.c: New file.
39425 * kern/sparc64/ieee1275/init.c: New file.
39426 * include/grub/util/ofpath.h: New file.
39427 * include/grub/util/deviceiter.h: New file.
39428 * util/grub-mkdevicemap.c: Include deviceiter.h.
39429 Implement using grub_util_emit_devicemap_entry and
39430 grub_util_iterate_devices.
39431 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39432 util/devicemap.c into grub-mkdevicemap
39433 * conf/i386-efi.rmk: Likewise.
39434 * conf/i386-ieee1275.rmk: Likewise.
39435 * conf/i386-pc.rmk: Likewise.
39436 * conf/powerpc-ieee1275.rmk: Likewise.
39437 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39438 images and installation utilities. Build kernel as image
39439 instead of as elf binary. Use common rules as much as possible.
39440
7dd4a573 394412009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 39442
39443 Correct GPT definition
39444
7dd4a573 39445 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 39446 of "attrib" member
39447
c6c5219f 394482009-04-19 Felix Zielcke <fzielcke@z-51.de>
39449
39450 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39451
0552ff9f 394522009-04-19 David S. Miller <davem@davemloft.net>
39453
39454 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39455 (grub_rescue_cmd_linux): Rename to...
39456 (grub_cmd_linux): and fix prototype.
39457 (grub_rescue_cmd_initrd): Rename to...
39458 (grub_cmd_initrd): and fix prototype.
39459 (cmd_linux, cmd_initrd): New.
39460 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39461 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39462
d1a282fc 394632009-04-17 Pavel Roskin <proski@gnu.org>
39464
07c5039f 39465 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39466 format.
39467 (grub_ohci_transfer): Likewise.
39468
b012002d 39469 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39470
1bc09c35 39471 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39472 return without a value. Fix inconsistent indentation.
39473
e0ff9126 39474 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39475 match struct grub_fs.
39476
d1a282fc 39477 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39478 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39479 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39480 * commands/lspci.c (grub_lspci_iter): Likewise.
39481
a96df3f2 394822009-04-16 Bean <bean123ch@gmail.com>
39483
39484 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39485 value.
39486
41bb0fe9 394872009-04-15 Pavel Roskin <proski@gnu.org>
39488
39489 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39490 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39491 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39492 definitions.
39493
596c6970 394942009-04-15 Felix Zielcke <fzielcke@z-51.de>
39495
39496 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 39497 that no multiple data or metadata areas are supported and `Unknown
596c6970 39498 metadata header'.
39499
7dd4a573 395002009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 39501
39502 Move loader out of the kernel
39503
39504 * kern/loader.c: moved to ...
39505 * commands/boot.c: ... moved here
39506 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39507 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39508 * include/grub/kernel.h (grub_machine_fini): export
39509 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39510 (grub_loader_set): likewise
39511 (grub_loader_unset): likewise
39512 (grub_loader_boot): likewise
39513 * conf/common.rmk: new module boot.mod
39514 (pkglib_MODULES): add boot.mod
39515 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39516 (grub_emu_SOURCES): likewise
39517 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39518 (grub_emu_SOURCES): likewise
39519 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39520 (grub_emu_SOURCES): likewise
39521 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39522 (grub_emu_SOURCES): likewise
39523 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39524 (grub_emu_SOURCES): likewise
7dd4a573 39525 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39526 (grub_emu_SOURCES): likewise
0d5d5653 39527 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 39528 (grub_emu_SOURCES): likewise
0d5d5653 39529
7dd4a573 395302009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 39531
39532 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 39533
5999d619 39534 * kern/misc.c (grub_itoa): Removed function
39535 (grub_ltoa): likewise
39536 (grub_vsprintf): use grub_lltoa
39537
7dd4a573 395382009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 39539
39540 Restore grub-emu
39541
39542 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39543 * conf/i386-coreboot.rmk: likewise
39544 * conf/i386-ieee1275.rmk: likewise
39545 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 39546
20318222 395472009-04-15 Felix Zielcke <fzielcke@z-51.de>
39548
39549 * INSTALL: Add that `./autogen.sh' needs to be run before
39550 `./configure.'.
39551
d05f0df3 395522009-04-14 Bean <bean123ch@gmail.com>
39553
39554 * Makefile.in (pkglib_DATA): Add handler.lst.
39555 (handler.lst): New rule.
39556
39557 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39558 * conf/i386-coreboot.rmk: Likewise.
39559 * conf/i386-ieee1275.rmk: Likewise.
39560 * conf/i386-efi.rmk: Likewise.
39561 * conf/x86_64-efi.rmk: Likewise.
39562 * conf/powerpc-ieee1275.rmk: Likewise.
39563 * conf/sparc64-ieee1275.rmk: Likewise.
39564
39565 * genhandlerlist.sh: New file.
39566
39567 * genmk.rb: Add rules to generate handler.lst.
39568
39569 * include/grub/normal.h (grub_file_getline): New function definition.
39570 (read_handler_list): Likewise.
39571 (free_handler_list): Likewise.
39572
39573 * include/grub/term.h (grub_term_register_input): Add name parameter
39574 for auto generation of handler.lst.
39575 (grub_term_register_output): Likewise.
39576
39577 * normal/handler.c: New file.
39578
39579 * normal/main.c (get_line): Renamed to grub_file_getline.
39580 (read_config_file): Use the newly renamed grub_file_getline.
39581 (read_command_list): Likewise.
39582 (read_fs_list): Likewise.
39583 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39584 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39585
39586 * term/efi/console.c (grub_console_init): Add name parameter for auto
39587 generation of handler.lst.
39588 * term/gfxterm.c: Likewise.
39589 * term/i386/pc/at_keyboard.c: Likewise.
39590 * term/i386/pc/console.c: Likewise.
39591 * term/i386/pc/serial.c: Likewise.
39592 * term/i386/pc/vesafb.c: Likewise.
39593 * term/i386/pc/vga.c: Likewise.
39594 * term/i386/pc/vga_text.c: Likewise.
39595 * term/ieee1275/ofconsole.c: Likewise.
39596 * term/usb_keyboard.c: Likewise.
39597
33c846be 395982009-04-14 Bean <bean123ch@gmail.com>
39599
39600 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39601 properly with null character.
39602
4484e01e 396032009-04-14 Felix Zielcke <fzielcke@z-51.de>
39604
39605 * configure: Remove.
39606 * config.h.in: Likewise.
f93d668e 39607 * stamp-h.in: Likewise.
4484e01e 39608 * DISTLIST: Likewise.
39609 * conf/common.mk: Likewise.
39610 * conf/i386-coreboot.mk: Likewise.
39611 * conf/i386-efi.mk: Likewise.
39612 * conf/i386-ieee1275.mk: Likewise.
39613 * conf/i386.mk: Likewise.
39614 * conf/i386-pc.mk: Likewise.
39615 * conf/powerpc-ieee1275.mk: Likewise.
39616 * conf/sparc64-ieee1275.mk: Likewise.
39617 * conf/x86_64-efi.mk: Likewise.
39618
39619 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39620 develop on GRUB.
39621
7dd4a573 396222009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 39623 David S. Miller <davem@davemloft.net>
39624
39625 * util/hostdisk.c (make_device_name): Fix buffer length
39626 calculations.
39627
e25b5a8c 396282009-04-14 Felix Zielcke <fzielcke@z-51.de>
39629
39630 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39631 <sys/param.h> and <sys/sysctl.h>.
39632 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39633 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39634 opening the device and reset them afterwards.
39635
1f1f580c 396362009-04-13 Pavel Roskin <proski@gnu.org>
39637
39638 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39639 Reported by John Stanley <jpsinthemix@verizon.net>
39640
7ebc2d6b 396412009-04-13 Robert Millan <rmh@aybabtu.com>
39642
39643 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 39644 that name for menuentries when appropriate.
7ebc2d6b 39645
d8ba3667 396462009-04-13 Felix Zielcke <fzielcke@z-51.de>
39647
39648 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39649
cba416eb 396502009-04-13 Robert Millan <rmh@aybabtu.com>
39651
39652 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39653 to Linux, simply abort telling the user it's no longer supported.
39654
a547a745 396552009-04-13 Felix Zielcke <fzielcke@z-51.de>
39656
39657 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 39658 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 39659 `freebsd_loadenv' only when devices.hints exist.
39660
232a769c 396612009-04-13 Pavel Roskin <proski@gnu.org>
39662
39663 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39664
c3012039 396652009-04-13 Felix Zielcke <fzielcke@z-51.de>
39666
39667 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39668 partition number.
39669 (grub_drive): Likewise.
39670
234022fe 396712009-04-13 David S. Miller <davem@davemloft.net>
39672
39673 * kern/sparc64/ieee1275/ieee1275.c: New file.
39674 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39675 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39676 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39677 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39678 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39679 grub_ieee1275_alloc_physmem): Declare new exported functions.
39680
d8e1836c 39681 * include/grub/sparc64/ieee1275/loader.h: New file.
39682 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39683 * include/grub/sparc64/kernel.h: Likewise.
39684 * loader/sparc64/ieee1275/linux.c: Likewise.
39685
96bd81ec 39686 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39687 (grub_fstest_SOURCES): Likewise.
39688
6a4737e5 39689 * util/hostdisk.c (make_device_name): Do not make any assumptions
39690 about the length of drive names.
39691
1d7a72fd 39692 * kern/dl.c (grub_dl_load_file): Close file immediately when
39693 we are done using it.
39694
56bc2471 396952009-04-12 David S. Miller <davem@davemloft.net>
39696
39697 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39698 values. Noticed by Pavel Roskin.
39699
df38d0bb 39700 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39701 target compiler.
7dd4a573 39702
e382e93a 39703 * genmk.rb: Add more flexible image type specification, also
39704 pass --strip-unneeded to objcopy.
39705 * conf/i386-pc.rmk: Use *_FORMAT.
39706 * conf/i386-pc.mk: Rebuilt.
39707
f5dbbca9 39708 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39709 (OFDISK_HASH_SZ): Define.
39710 (ofdisk_hash): New hash table.
39711 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39712 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39713 instead of device phandle which is not unique.
39714
91c88b12 39715 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39716 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39717 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39718 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39719 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39720 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39721 GRUB_KERNEL_MACHINE_DATA_END): Define.
39722 (grub_kernel_image_size, grub_total_module_size): Declare.
39723
5b5d4aa5 397242009-04-12 Pavel Roskin <proski@gnu.org>
39725
7dd4a573 39726 * configure.ac: Change the logic when we check for target tools.
39727 Do it when the target is specified and it's different from the
39728 specified value of the host.
5b5d4aa5 39729
c91e1793 397302009-04-11 Felix Zielcke <fzielcke@z-51.de>
39731
39732 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39733 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39734 GNU/kFreeBSD. Check if a device is a character device. Use
39735 DIOCGMEDIASIZE to get the size.
39736 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39737 support for GNU/kFreeBSD.
39738 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39739 is a character device instead of a block device. Add support for
39740 FreeBSD device names.
39741
39742 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39743 is a character device instead of a block device.
39744
39745 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39746 is a character device instead of a block device.
39747
b1ac8644 397482009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39749
39750 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39751 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39752 FreeBSD. Check if a device is a character device. Use
39753 DIOCGMEDIASIZE to get the size.
39754 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39755 support for FreeBSD.
39756 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39757 is a character device instead of a block device. Add support for
39758 FreeBSD device names.
39759
39760 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39761 a character device instead of a block device.
39762 (grub_util_check_char_device): New function.
39763
39764 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39765 a character device instead of a block device.
39766
39767 * include/grub/util/getroot.h (grub_util_check_char_device): New
39768 prototype.
39769
a3f7515a 397702009-04-11 David S. Miller <davem@davemloft.net>
39771
39772 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39773 static libgcc.
39774 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39775 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39776 function, if present.
39777 (__bswapdi2): Likewise.
39778
0d44993d 39779 * include/grub/sparc64/ieee1275/boot.h: New file.
39780 * boot/sparc64/ieee1275/boot.S: Likewise.
39781 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39782
ed3d2bc2 39783 * kern/misc.c (grub_ltoa): New function.
39784 (grub_vsprintf): Use it to format 'long' integers.
39785
d3bfb59c 397862009-04-10 David S. Miller <davem@davemloft.net>
39787
39788 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39789 slots are of type grub_ieee1275_cell_t.
39790 (grub_nand_read): Likewise.
39791 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39792 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39793 macros are used to compare values in arg/ret block of the call.
39794 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39795 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39796 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39797 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39798 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39799 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39800 grub_ieee1275_close, grub_ieee1275_set_property,
39801 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39802 grub_ieee1275_cell_t.
39803 * kern/ieee1275/openfw.c (grub_map): Likewise.
39804 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39805 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39806
450e2238 39807 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39808 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39809 (grub_devalias_iterate): Likewise.
39810
7dd4a573 398112009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 39812
39813 UFS improvements
39814
39815 * fs/ufs.c (INODE_NBLOCKS): new definition
39816 (struct grub_ufs_dirent): added fields for non-BSD dirents
39817 (grub_ufs_get_file_block): fixed double indirect handling
39818 (grub_ufs_lookup_symlink): use more robust way to determine whether
39819 symlink is inline
39820 (grub_ufs_find_file): support for non-BSD dirents
39821 (grub_ufs_dir): support for non-BSD dirents
39822
e7e6862a 398232009-04-10 Bean <bean123ch@gnail.com>
39824
39825 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39826 attribute, otherwise the size would be wrong for i386 platform.
39827
39828 * include/grub/pci.h (grub_pci_read_word): New inline function.
39829 (grub_pci_read_byte): Likewise.
39830 (grub_pci_write): Likewise.
39831 (grub_pci_write_word): Likewise.
39832 (grub_pci_write_byte): Likewise.
39833
39834 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39835
39836 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39837 (find_framebuf): Scan pci to locate the frame buffer address.
39838
39839 * commands/efi/fixvideo.c: New file.
39840
39841 * commands/efi/loadbios.c: Likewise.
39842
39843 * commands/memrw.c: Likewise.
39844
39845 * util/grub-dumpbios.in: Likewise.
39846
39847 * conf/common.rmk (grub-dumpbios): New utility.
39848 (pkglib_MODULES): New module memrw.mod.
39849 (memrw_mod_SOURCE): New macro.
39850 (memrw_mod_CFLAGS): Likewise.
39851 (memrw_mod_LDFLAGS): Likewise.
39852
7dd4a573 39853 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 39854 fixvideo.mod.
39855 (loadbios_mod_SOURCE): New macro.
39856 (loadbios_mod_CFLAGS): Likewise.
39857 (loadbios_mod_LDFLAGS): Likewise.
39858 (fixvideo_mod_SOURCE): Likewise.
39859 (fixvideo_mod_CFLAGS): Likewise.
39860 (fixvideo_mod_LDFLAGS): Likewise.
39861
7dd4a573 39862 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 39863 fixvideo.mod.
39864 (loadbios_mod_SOURCE): New macro.
39865 (loadbios_mod_CFLAGS): Likewise.
39866 (loadbios_mod_LDFLAGS): Likewise.
39867 (fixvideo_mod_SOURCE): Likewise.
39868 (fixvideo_mod_CFLAGS): Likewise.
39869 (fixvideo_mod_LDFLAGS): Likewise.
39870
af63ada2 398712009-04-08 Felix Zielcke <fzielcke@z-51.de>
39872
39873 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39874
c2cdde70 398752009-04-07 David S. Miller <davem@davemloft.net>
39876
39877 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39878 support for R_SPARC_OLO10 relocations. Fix compile warning for
39879 R_SPARC_WDISP30 case.
ea3f72cf 39880 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 39881
761319cf 398822009-04-06 Pavel Roskin <proski@gnu.org>
39883
1007d1f5 39884 * include/grub/misc.h (ARRAY_SIZE): New macro.
39885 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39886 New macro.
39887 * loader/i386/linux.c (allocate_pages): Use free_pages().
39888 (grub_linux_unload): Don't use free_pages().
39889 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39890 wrong index. Treat all other modes as text modes.
39891 (grub_cmd_linux): Initialize vid_mode unconditionally to
39892 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39893
761319cf 39894 * commands/help.c (print_command_help): Use cmd->prio, not
39895 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39896
ea761d40 398972009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 39898
ea761d40 39899 Parttool
39900
39901 * parttool/pcpart.c: new file
39902 * commands/parttool.c: likewise
39903 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39904 (parttool_mod_SOURCES): new variable
39905 (parttool_mod_CFLAGS): likewise
39906 (parttool_mod_LDFLAGS): likewise
39907 (pcpart_mod_SOURCES): likewise
39908 (pcpart_mod_CFLAGS): likewise
39909 (pcpart_mod_LDFLAGS): likewise
7dd4a573 39910 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 39911 and parttool/pcpart.c
39912 * conf/i386-efi.rmk: likewise
39913 * conf/i386-ieee1275.rmk: likewise
39914 * conf/i386-pc.rmk: likewise
39915 * conf/powerpc-ieee1275.rmk: likewise
39916 * conf/sparc64-ieee1275.rmk: likewise
39917 * conf/x86_64-ieee1275.rmk: likewise
39918
05aaebfb 399192009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39920
39921 Support for mtime and further expandability of dir command
39922
39923 * include/grub/lib/datetime.h: moved to ...
7dd4a573 39924 * include/grub/datetime.h: ... moved here and added
05aaebfb 39925 declaration of grub_unixtime2datetime. All users updated
7dd4a573 39926 * include/grub/fs.h: new syntax for dir and mtime functions in
39927 struct grub_fs
05aaebfb 39928 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39929 and GRUB_FSHELP_FLAGS_MASK
39930 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39931 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39932 (grub_ext2_mtime): new function
39933 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39934 (grub_hfsplus_mtime): new function
39935 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39936 (GRUB_UFS_ATTR_FILE): likewise
39937 (GRUB_UFS_ATTR_LNK): likewise
39938 (struct grub_ufs_sblock): new fields mtime
39939 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39940 all users updated
39941 (grub_ufs_dir): mtime support
39942 (grub_ufs_mtime): new function
39943 * fs/affs.c (grub_affs_dir): use new dir syntax
39944 * fs/afs.c (grub_afs_dir): likewise
39945 * fs/cpio.c (grub_cpio_dir): likewise
39946 * fs/fat.c (grub_fat_find_dir): likewise
39947 * fs/hfs.c (grub_hfs_dir): likewise
39948 * fs/iso9660.c (grub_iso9660_dir): likewise
39949 * fs/jfs.c (grub_jfs_dir): likewise
39950 * fs/minix.c (grub_minix_dir): likewise
39951 * fs/ntfs.c (grub_ntfs_dir): likewise
39952 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39953 * fs/sfs.c (grub_sfs_dir): likewise
39954 * fs/xfs.c (grub_xfs_dir): likewise
39955 * util/hostfs.c (grub_hostfs_dir): likewise
39956 * lib/datetime.c: moved to ...
39957 * normal/datetime.c: ... moved here
39958 (grub_unixtime2datetime): new function
39959 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 39960 * normal/completion.c (iterate_dir): use new dir syntax
39961 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 39962 last modification time of a volume
7dd4a573 39963 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 39964 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 39965 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 39966 (normal_mod_SOURCES): likewise
39967 (datetime_mod_SOURCES): Removed lib/datetime.c
39968 * conf/i386-efi.rmk: likewise
7dd4a573 39969 * conf/i386-ieee1275.rmk: likewise
05aaebfb 39970 * conf/i386-pc.rmk: likewise
39971 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 39972 * conf/sparc64-ieee1275.rmk: likewise
39973 * conf/x86_64-efi.rmk: likewise
05aaebfb 39974
8a7e1a14 399752009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39976
39977 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 39978
39979 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 39980 on grub_fat_find_dir
39981 (grub_fat_find_dir): use grub_fat_iterate_dir
39982 (grub_fat_label): likewise
39983
04186a9c 399842009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39985
7dd4a573 39986 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 39987 and command.h
39988 remove extraneous kernel_elf_HEADERS
39989
da4c0bb6 399902009-04-04 Bean <bean123ch@gnail.com>
39991
39992 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39993
39994 * util/misc.c: Likewise.
39995
54ad9555 399962009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39997
39998 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39999 instead of grub_printf.
40000
7a6bf9f2 400012009-04-03 Robert Millan <rmh@aybabtu.com>
40002
40003 * loader/i386/linux.c (grub_linux_setup_video): Fill
40004 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40005 values from `mode info' structure instead of hardcoded
40006 values.
40007
3fcc2083 400082009-04-01 Pavel Roskin <proski@gnu.org>
40009
40010 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40011 unused now.
40012 * genmk.rb: Likewise.
40013 * configure.ac: Likewise.
40014
5ec9740b 400152009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40016
40017 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40018 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40019
5270cec8 400202009-04-01 David S. Miller <davem@davemloft.net>
40021
40022 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 40023 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 40024 (grub_setjmp): Mark with 'returns_twice' attribute.
40025 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40026 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40027 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40028
9c3dd854 400292009-04-01 Robert Millan <rmh@aybabtu.com>
40030
40031 Reapply fix from 2008-07-28 which was accidentally reverted; also
40032 perform the same fix to a similar check in same function.
40033
40034 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40035 with the same number are found, just use issue a warning with
40036 grub_dprintf(), as this error has been reported to be non-fatal.
40037
0d818b7e 400382009-03-31 Pavel Roskin <proski@gnu.org>
40039
40040 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40041 for cross-compilation.
40042
95646d92 400432009-03-30 Robert Millan <rmh@aybabtu.com>
40044
40045 Fix i386-ieee1275 build.
40046
40047 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40048 Remove declaration.
40049
6a003ed1 400502009-03-30 Pavel Roskin <proski@gnu.org>
40051
40052 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40053 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40054 zero-terminated, rely only on the strlen value. Fix comparison
40055 of strings differing in length.
40056
92f33540 400572009-03-30 Robert Millan <rmh@aybabtu.com>
40058
40059 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40060 checking for abi version. Improve error messages on BIOS to notify
40061 user about `linux16' command.
40062
a8c48fd5 400632009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40064
f968172e 40065 Leak fixes
a8c48fd5 40066
f968172e 40067 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40068 in case of collision
40069 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 40070
9c323f09 400712009-03-29 Robert Millan <rmh@aybabtu.com>
40072
40073 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40074 set `vid_mode' accordingly.
40075 (grub_linux_boot): Process `vid_mode' and set video mode.
40076
ae68f423 400772009-03-29 Robert Millan <rmh@aybabtu.com>
40078
40079 * util/grub.d/10_linux.in (linux_entry): New function.
40080 Factorize generation of Linux boot entries.
40081
5709cfc4 400822009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40083
40084 Make the format of Environment Block plain text. The boot loader
40085 part is not tested well yet.
7dd4a573 40086
5709cfc4 40087 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40088 (buffer): Removed.
40089 (envblk): Likewise.
40090 (usage): Remove "info" and "clear". Add "unset". Update the
40091 description of "set", as this does not delete variables any
40092 longer.
40093 (create_envblk_file): Complete rewrite.
40094 (open_envblk_file): Likewise.
40095 (cmd_info): Removed.
40096 (cmd_list): Likewise.
40097 (cmd_set): Likewise.
40098 (cmd_clear): Likewise.
40099 (list_variables): New function.
40100 (write_envblk): Likewise.
40101 (set_variables): Likewise.
40102 (unset_variables): Likewise.
40103 (main): Complete rewrite.
40104
40105 * commands/loadenv.c (buffer): Removed.
40106 (envblk): Likewise.
40107 (open_envblk_file): New function.
40108 (read_envblk_file): Complete rewrite.
40109 (grub_cmd_load_env): Likewise.
40110 (grub_cmd_list_env): Likewise.
40111 (struct blocklist): New struct.
40112 (free_blocklists): New function.
40113 (check_blocklists): Likewise.
40114 (write_blocklists): Likewise.
40115 (grub_cmd_save_env): Complete rewrite.
40116
40117 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40118 a plain text signature.
40119 (GRUB_ENVBLK_MAXLEN): Removed.
40120 (struct grub_envblk): Complete rewrite.
40121 (grub_envblk_find): Removed.
40122 (grub_envblk_insert): Likewise.
40123 (grub_envblk_open): New prototype.
40124 (grub_envblk_set): Likewise.
40125 (grub_envblk_delete): Put const to VALUE.
40126 (grub_envblk_iterate): Put const to NAME and VALUE.
40127 (grub_envblk_close): New prototype.
40128 (grub_envblk_buffer): New inline function.
40129 (grub_envblk_size): Likewise.
40130
40131 * lib/envblk.c: Include grub/mm.h.
40132 (grub_env_find): Removed.
40133 (grub_envblk_open): New function.
40134 (grub_envblk_close): Likewise.
40135 (escaped_value_len): Likewise.
40136 (find_next_line): Likewise.
40137 (grub_envblk_insert): Removed.
40138 (grub_envblk_set): New function.
40139 (grub_envblk_delete): Complete rewrite.
40140 (grub_envblk_iterate): Likewise.
40141
a9368fd3 401422009-03-28 Robert Millan <rmh@aybabtu.com>
40143
40144 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40145 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40146 variables. Use 16-bit loader.
40147 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40148 loader.
40149 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40150 (grub_linux16_boot): ... this. Update all users.
40151 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40152 (grub_linux_boot): ... this. Update all users.
40153
40154 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40155 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40156 commands to `linux16' and `initrd16'.
40157 (GRUB_MOD_FINI(linux)): Rename to ...
40158 (GRUB_MOD_FINI(linux16)): ... this.
40159
e4dd5a7e 401602009-03-24 Pavel Roskin <proski@gnu.org>
40161
40162 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40163 not just for compilation.
40164
c04d6e05 401652009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40166
40167 Move multiboot helper out of kernel
40168
40169 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40170 `loader/i386/multiboot_helper.S'.
40171 * conf/i386-coreboot.rmk: Likewise
40172 * conf/i386-ieee1275.rmk: Likewise
40173
40174 * kern/i386/loader.S: Move multiboot helpers from here...
40175 * loader/i386/multiboot_helper.S: ...moved here
40176 * include/grub/i386/loader.h: Move declarations of multiboot
40177 helpers from here...
40178 * include/grub/i386/multiboot.h: ...moved here
40179 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40180
42a5b3fc 401812009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40182
40183 * kern/env.c (grub_env_context_open): Added an argument to specify
40184 whether a new context inherits exported variables from current
40185 one. This is useful when making a sandbox to interpret a config
40186 file.
40187 All callers updated.
40188
40189 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40190
b28bbc4e 401912009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40192
40193 * kern/env.c (grub_env_context_close): Fix memory leaks.
40194
f04f02e4 401952009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40196
40197 * normal/main.c (grub_normal_execute): Added an argument
40198 BATCH to specify if an interactive interface should be provided
40199 after reading a config file.
40200 All callers updated.
40201 (read_command_list): Prevent being executed twice.
40202 (read_fs_list): Likewise.
40203
42a5b3fc 40204 * include/grub/normal.h (grub_normal_execute): Updated the
40205 prototype.
f04f02e4 40206
41473ac2 402072009-03-22 Pavel Roskin <proski@gno.org>
40208
fbc00b0c 40209 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40210 _start.
40211 * kern/i386/pc/startup.S: Likewise.
40212 * kern/i386/efi/startup.S: Likewise.
40213 * kern/i386/ieee1275/startup.S: Likewise.
40214 * kern/i386/coreboot/startup.S: Likewise.
40215 * kern/x86_64/efi/startup.S: Likewise.
40216
41473ac2 40217 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40218 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40219 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40220
2274cc8f 402212009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40222
40223 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40224
40225 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40226 limit detection.
40227 Use vaddr of correct segment for entry_point.
40228
b1b797cb 402292009-03-21 Bean <bean123ch@gmail.com>
40230
40231 * commands/blocklist.c: Add include file <grub/command.h>, remove
40232 <grub/normal.h> and <grub/arg.h>.
40233 (grub_cmd_blocklist): Use the new command interface.
40234 (GRUB_MOD_INIT): Likewise.
40235 (GRUB_MOD_FINI): Likewise.
40236 * commands/boot.c: Likewise.
40237 * commands/cat.c: Likewise.
40238 * commands/cmp.c: Likewise.
40239 * commands/configfile.c: Likewise.
40240 * commands/crc.c: Likewise.
40241 * commands/echo.c: Likewise.
40242 * commands/halt.c: Likewise.
40243 * commands/handler.c: Likewise.
40244 * commands/hdparm.c: Likewise.
40245 * commands/help.c: Likewise.
40246 * commands/hexdump.c: Likewise.
40247 * commands/loadenv.c: Likewise.
40248 * commands/ls.c: Likewise.
40249 * commands/lsmmap.c: Likewise.
40250 * commands/lspci.c: Likewise.
40251 * commands/loadenv.c: Likewise.
40252 * commands/read.c: Likewise.
40253 * commands/reboot.c: Likewise.
40254 * commands/search.c: Likewise.
40255 * commands/sleep.c: Likewise.
40256 * commands/test.c: Likewise.
40257 * commands/usbtest.c: Likewise.
40258 * commands/videotest.c: Likewise.
40259 * commands/i386/cpuid.c: Likewise.
40260 * commands/i386/pc/halt.c: Likewise.
40261 * commands/i386/pc/play.c: Likewise.
40262 * commands/i386/pc/pxecmd.c: Likewise.
40263 * commands/i386/pc/vbeinfo.c: Likewise.
40264 * commands/i386/pc/vbetest.c: Likewise.
40265 * commands/ieee1275/suspend.c: Likewise.
40266 * disk/loopback.c: Likewise.
40267 * font/font_cmd.c: Likewise.
40268 * hello/hello.c: Likewise.
40269 * loader/efi/appleloader.c: Likewise.
40270 * loader/efi/chainloader.c: Likewise.
40271 * loader/i386/bsd.c: Likewise.
40272 * loader/i386/efi/linux.c: Likewise.
40273 * loader/i386/ieee1275/linux.c: Likewise.
40274 * loader/i386/linux.c: Likewise.
40275 * loader/i386/pc/chainloader.c: Likewise.
40276 * loader/i386/pc/linux.c: Likewise.
40277 * loader/powerpc/ieee1275/linux.c: Likewise.
40278 * loader/multiboot_loader.c: Likewise.
40279 * term/gfxterm.c: Likewise.
40280 * term/i386/pc/serial.c: Likewise.
40281 * term/terminfo.c: Likewise.
40282
40283 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40284 * term/i386/pc/vga.c: Likewise.
40285 * video/readers/jpeg.c: Likewise.
40286 * video/readers/png.c: Likewise.
40287 * video/readers/tga.c: Likewise.
40288
40289 * util/grub-fstest (cmd_loopback): Removed.
40290 (cmd_blocklist): Likewise.
40291 (cmd_ls): Likewise.
40292 (grub_register_command): Likewise.
40293 (grub_unregister_command): Likewise.
40294 (execute_command): Use grub_command_find to locate command and execute
40295 it.
40296
40297 * include/grub/efi/chainloader.h: Removed.
40298 * loader/efi/chainloader_normal.c: Likewise.
40299 * loader/i386/bsd_normal.c: Likewise.
40300 * loader/i386/pc/chainloader_normal.c: Likewise.
40301 * loader/i386/pc/multiboot_normal.c: Likewise.
40302 * loader/linux_normal.c: Likewise.
40303 * loader/multiboot_loader_normal.c: Likewise.
40304 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40305
40306 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40307 and grub_register_command_p1.
40308
40309 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40310 kern/command.c, lib/arg.c and commands/extcmd.c.
40311 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40312 (minicmd_mod_SOURCES): New variable.
40313 (minicmd_mod_CFLAGS): Likewise.
40314 (minicmd_mod_LDFLAGS): Likewise.
40315 (extcmd_mod_SOURCES): Likewise.
40316 (extcmd_mod_CFLAGS): Likewise.
40317 (extcmd_mod_LDFLAGS): Likewise.
40318 (boot_mod_SOURCES): Removed.
40319 (boot_mod_CFLAGS): Likewise.
40320 (boot_mod_LDFLAGS): Likewise.
40321
40322 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40323 kern/corecmd.c.
40324 (kernel_img_HEADERS): Add command.h.
40325 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40326 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40327 and lib/arg.c.
40328 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40329 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40330 remove the corresponding normal mode command.
40331 (normal_mod_SOURCES): Remove normal/arg.c.
40332 * conf/i386-coreboot.rmk: Likewise.
40333 * conf/i386-efi.rmk: Likewise.
40334 * conf/i386-ieee1275.rmk: Likewise.
40335 * conf/powerpc-ieee1275.rmk: Likewise.
40336 * conf/x86_64-efi.rmk: Likewise.
40337
40338 * include/grub/arg.h: Move from here ...
40339 * include/grub/lib/arg.h: ... to here.
40340
40341 * normal/arg.c: Move from here ...
40342 * lib/arg.c: ... to here.
40343
40344 * commands/extcmd.c: New file.
40345 * commands/minicmd.c: Likewise.
40346 * include/grub/command.h: Likewise.
40347 * include/grub/extcmd.h: Likewise.
40348 * kern/command.c: Likewise.
40349 * kern/corecmd.c: Likewise.
40350
40351 * kern/list.c (grub_list_iterate): Return int instead of void.
40352 (grub_list_insert): New function.
40353 (grub_prio_list_insert): Likewise.
40354
40355 * kern/rescue.c (grub_rescue_command): Removed.
40356 (grub_rescue_command_list): Likewise.
40357 (grub_rescue_register_command): Likewise.
40358 (grub_rescue_unregister_command): Likewise.
40359 (grub_rescue_cmd_boot): Move to minicmd.c
40360 (grub_rescue_cmd_help): Likewise.
40361 (grub_rescue_cmd_info): Likewise.
40362 (grub_rescue_cmd_boot): Likewise.
40363 (grub_rescue_cmd_testload): Likewise.
40364 (grub_rescue_cmd_dump): Likewise.
40365 (grub_rescue_cmd_rmmod): Likewise.
40366 (grub_rescue_cmd_lsmod): Likewise.
40367 (grub_rescue_cmd_exit): Likewise.
40368 (grub_rescue_print_devices): Moved to corecmd.c.
40369 (grub_rescue_print_files): Likewise.
40370 (grub_rescue_cmd_ls): Likewise.
40371 (grub_rescue_cmd_insmod): Likewise.
40372 (grub_rescue_cmd_set): Likewise.
40373 (grub_rescue_cmd_unset): Likewise.
7d074e3c 40374 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 40375 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 40376 commands, remove grub_rescue_register_command calls.
b1b797cb 40377
7d074e3c 40378 * normal/command.c (grub_register_command): Removed.
b1b797cb 40379 (grub_unregister_command): Likewise.
40380 (grub_command_find): Likewise.
40381 (grub_iterate_commands): Likewise.
40382 (rescue_command): Likewise.
40383 (export_command): Moved to corecmd.c.
40384 (set_command): Removed.
40385 (unset_command): Likewise.
40386 (insmod_command): Likewise.
40387 (rmmod_command): Likewise.
40388 (lsmod_command): Likewise.
40389 (grub_command_init): Likewise.
40390
40391 * normal/completion.c (iterate_command): Use cmd->prio to check for
40392 active command.
40393 (complete_arguments): Use grub_extcmd_t structure to find options.
40394 (grub_normal_do_completion): Change function grub_iterate_commands to
40395 grub_command_iterate.
40396
40397 * normal/execute.c (grub_script_execute_cmd): No need to parse
40398 argument here.
40399
40400 * normal/main.c (grub_dyncmd_dispatcher): New function.
40401 (read_command_list): Register unload commands as dyncmd.
40402 (grub_cmd_normal): Use new command interface, register rescue,
40403 unregister normal at entry, register normal, unregister rescue at exit.
40404
40405 * include/grub/list.h (grub_list_test_t): New type.
40406 (grub_list_iterate): Return int instead of void.
40407 (grub_list_insert): New function.
40408 (GRUB_AS_NAMED_LIST_P): New macro.
40409 (GRUB_AS_PRIO_LIST): Likewise.
40410 (GRUB_AS_PRIO_LIST_P): Likewise.
40411 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40412 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40413 (grub_prio_list): New structure.
40414 (grub_prio_list_insert): New function.
40415 (grub_prio_list_remove): New inline function.
40416
40417 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40418 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40419 (GRUB_COMMAND_FLAG_MENU): Likewise.
40420 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40421 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40422 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40423 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40424 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40425 (grub_command): Likewise.
40426 (grub_register_command): Likewise.
40427 (grub_command_find): Likewise.
40428 (grub_iterate_commands): Likewise.
40429 (grub_command_init): Likewise.
40430 (grub_arg_parse): Likewise.
40431 (grub_arg_show_help): Likewise.
40432
40433 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40434 (grub_rescue_unregister_command): Likewise.
40435
40436 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40437 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40438 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40439
40440 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40441 grub_rescue_cmd_initrd.
40442 * include/grub/i386/loader.h: Likewise.
40443 * include/grub/x86_64/loader.h: Likewise.
40444
40445 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40446
1f4147aa 404472009-03-21 Bean <bean123ch@gmail.com>
40448
40449 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40450 instead of stat in mingw environment.
40451
40452 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40453
40454 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40455
40456 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40457 AC_CONFIG_LINKS.
40458
2156d5ba 404592009-03-21 Bean <bean123ch@gmail.com>
40460
40461 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40462 out of range error.
40463
177b82ca 404642009-03-18 Michel Dänzer <michel@daenzer.net>
40465
40466 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40467 checking inode flags for EXT4_EXTENTS_FLAG.
40468
14aad807 404692009-03-18 Robert Millan <rmh@aybabtu.com>
40470
40471 * loader/i386/linux.c: Include `<grub/video.h>' and
40472 `<grub/i386/pc/vbe.h>'..
40473 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40474 (grub_linux32_boot): Attempt to configure video settings with
40475 grub_linux_setup_video().
40476 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40477 to avoid grub_console_fini() which would step out of graphical mode
40478 unconditionally.
40479
8cf83a27 404802009-03-14 Robert Millan <rmh@aybabtu.com>
40481
40482 Fix build on powerpc.
40483 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40484
40164e75 404852009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40486
40487 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40488 background image command.
40489
c58bc32a 404902009-03-12 Colin D Bennett <colin@gibibit.com>
40491
40492 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40493 (grub_gfxterm_putchar): Extract pairs of identical calls to
40494 draw_cursor out of conditional blocks.
40495
5415144a 404962009-03-11 Pavel Roskin <proski@gnu.org>
40497
40498 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40499 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40500
6394042e 405012009-03-11 Robert Millan <rmh@aybabtu.com>
40502
40503 * loader/i386/multiboot_elfxx.c
40504 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40505
b7b50e5f 405062009-03-11 Felix Zielcke <fzielcke@z-51.de>
40507
40508 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40509 `kern/handler.c'.
40510
1ca7fc96 405112009-03-11 Robert Millan <rmh@aybabtu.com>
40512
40513 * loader/i386/multiboot.c (code_size): New variable.
40514 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 40515 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 40516 4-byte alignment to MBI and others by increasing
7d074e3c 40517 `boot_loader_name_length' appropriately.
1ca7fc96 40518
40519 * loader/i386/multiboot_elfxx.c
40520 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40521
a83ea1d2 405222009-03-09 Felix Zielcke <fzielcke@z-51.de>
40523
40524 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40525 `fs/ext2.c'.
40526
aa9f3bff 405272009-03-08 Robert Millan <rmh@aybabtu.com>
40528
40529 Make loader/i386/linux.c usable on i386-pc again.
40530
40531 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40532 memory to heap.
40533 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40534 `#error' stanza.
40535
d8b3b60e 405362009-03-07 Bean <bean123ch@gmail.com>
40537
40538 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40539 allocation.
40540
b362c9e9 405412009-03-06 Robert Millan <rmh@aybabtu.com>
40542
40543 Fix display issue on terminals with screen size other than 80x25
40544 (e.g. gfxterm with resolution higher than 640x480).
40545
40546 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 40547 position relative to the center of the terminal instead of relying
b362c9e9 40548 on a hardcoded offset.
40549
9304eef1 405502009-03-04 Robert Millan <rmh@aybabtu.com>
40551
40552 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40553 installed.
40554
40555 * Makefile.in (host_kernel): New variable.
40556 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40557 scripts instead of just the windows one.
40558 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40559
eabc95fb 405602009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 40561
40562 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40563 `kern/handler.c'.
40564 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40565 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40566 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40568 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40569 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40570
ceb1223c 405712009-03-04 Felix Zielcke <fzielcke@z-51.de>
40572
40573 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40574 or if there's no space for the disk label and print the partition number on a
40575 invalid magic.
40576
4910684a 405772009-03-04 Felix Zielcke <fzielcke@z-51.de>
40578
40579 * util/misc.c: Include <time.h>.
40580 (grub_millisleep): New function.
40581
7e9ca17a 405822009-03-04 Bean <bean123ch@gmail.com>
40583
40584 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40585 another option -mno-red-zone.
40586
40587 * commands/handler.c: Change module description.
40588
40589 * kern/handler.c: Add missing space at the end of description line.
40590
40591 * kern/list.c: Likewise.
40592
f501677c 405932009-03-03 Robert Millan <rmh@aybabtu.com>
40594
40595 Move more components to the relocation area, and fix mbi pointer
40596 handling to use the destination rather than the origin (thanks to
40597 Vladimir Serbinenko for spotting).
40598
40599 * loader/i386/multiboot.c (mbi_dest): New variable.
40600 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40601 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40602 relocation area.
40603
9902d047 406042009-03-01 Bean <bean123ch@gmail.com>
40605
50fb7002 40606 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 40607 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40608 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40609 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40610
40611 * loader/i386/efi/linux.c (acpi_guid): New variable.
40612 (acpi_guid): Likewise.
40613 (EBDA_SEG_ADDR): New constant.
40614 (LOW_MEM_ADDR): Likewise.
40615 (FAKE_EBDA_SEG): Likewise.
40616 (fake_bios_data): New function.
40617 (grub_linux_boot): Call fake_bios_data.
40618
71b9f361 406192009-03-01 Bean <bean123ch@gmail.com>
40620
40621 * commands/terminal.c: Removed.
40622
40623 * commands/handler.c: New file.
40624
40625 * include/grub/list.h: Likewise.
40626
40627 * include/grub/handler.h: Likewise.
40628
40629 * kern/list.c: Likewise.
40630
40631 * kern/handler.c: Likewise.
40632
40633 * kern/term.h: Include header file <grub/handler.h>.
40634 (grub_term_input): Move next field to the beginning.
40635 (grub_term_output): Likewise.
40636 (grub_term_input_class): New variable.
40637 (grub_term_output_class): Likewise.
40638 (grub_term_register_input): Changed to inline function.
40639 (grub_term_register_output): Likewise.
40640 (grub_term_unregister_input): Likewise.
40641 (grub_term_unregister_output): Likewise.
40642 (grub_term_set_current_input): Likewise.
40643 (grub_term_set_current_output): Likewise.
40644 (grub_term_get_current_input): Likewise.
40645 (grub_term_get_current_output): Likewise.
40646 (grub_term_iterate_input): Removed.
40647 (grub_term_iterate_output): Likewise.
40648
40649 * kern/term.c (grub_term_list_input): Removed.
40650 (grub_term_list_output): Likewise.
40651 (grub_term_input_class): New variable.
40652 (grub_term_output_class): Likewise.
50fb7002 40653 (grub_cur_term_input): Change variable as macro.
71b9f361 40654 (grub_cur_term_output): Likewise.
40655 (grub_term_register_input): Removed.
40656 (grub_term_register_output): Likewise.
40657 (grub_term_unregister_input): Likewise.
40658 (grub_term_unregister_output): Likewise.
40659 (grub_term_set_current_input): Likewise.
40660 (grub_term_set_current_output): Likewise.
40661 (grub_term_iterate_input): Likewise.
40662 (grub_term_iterate_output): Likewise.
40663 (grub_term_get_current_input): Likewise.
40664 (grub_term_get_current_output): Likewise.
40665
40666 * util/grub-editenv.c: Include header file <grub/handler.h>.
40667 (grub_term_get_current_input): Removed.
40668 (grub_term_get_current_output): Likewise.
40669 (grub_term_input_class): New variable.
50fb7002 40670 (grub_term_output_class): Likewise.
71b9f361 40671
40672 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40673 (grub_term_get_current_output): Likewise.
40674 (grub_term_input_class): New variable.
50fb7002 40675 (grub_term_output_class): Likewise.
71b9f361 40676
40677 * util/grub-probe.c (grub_term_get_current_input): Removed.
40678 (grub_term_get_current_output): Likewise.
40679 (grub_term_input_class): New variable.
50fb7002 40680 (grub_term_output_class): Likewise.
71b9f361 40681
40682 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40683 (grub_term_get_current_output): Likewise.
40684 (grub_term_input_class): New variable.
50fb7002 40685 (grub_term_output_class): Likewise.
71b9f361 40686
40687 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40688 (terminal_mod_SOURCES): Likewise.
40689 (terminal_mod_CFLAGS): Likewise.
40690 (terminal_mod_LDFLAGS): Likewise.
40691
40692 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40693 handler.c.
40694 (kernel_img_SOURCES): Add list.c and handler.c.
40695 (kernel_img_HEADERS): Add list.h and handler.h.
40696
40697 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40698 handler.c.
40699 (kernel_mod_SOURCES): Add list.c and handler.c.
40700 (kernel_mod_HEADERS): Add list.h and handler.h.
40701
40702 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40703 handler.c.
40704 (kernel_elf_SOURCES): Add list.c and handler.c.
40705 (kernel_elf_HEADERS): Add list.h and handler.h.
40706
40707 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40708 handler.c.
40709 (kernel_elf_SOURCES): Add list.c and handler.c.
40710 (kernel_elf_HEADERS): Add list.h and handler.h.
40711
40712 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40713 handler.c.
40714 (kernel_mod_SOURCES): Add list.c and handler.c.
40715 (kernel_mod_HEADERS): Add list.h and handler.h.
40716
40717 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40718 handler.c.
40719 (kernel_elf_SOURCES): Add list.c and handler.c.
40720 (kernel_elf_HEADERS): Add list.h and handler.h.
40721
8a31787f 407222009-02-27 Robert Millan <rmh@aybabtu.com>
40723
40724 Factorize elf32 / elf64 code in Multiboot loader. This will
40725 prevent it from getting out of sync again.
40726
40727 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40728 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40729 grub_multiboot_load_elf64): Move from here ...
40730 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40731 grub_multiboot_load_elf): ... to here (new file).
40732
51cd3dfc 407332009-02-27 Robert Millan <rmh@aybabtu.com>
40734
40735 * util/grub.d/10_linux.in: Rename "single-user mode" to
40736 "recovery mode".
40737
6e8c9c3a 407382009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40739
40740 Don't leak in SCSI code.
40741 * disk/scsi.c (grub_scsi_close): free `scsi'.
40742
4b6bf4f9 407432009-02-27 Robert Millan <rmh@aybabtu.com>
40744
40745 * loader/i386/pc/multiboot.c: Move from here ...
40746 * loader/i386/multiboot.c: ... to here. Update all users.
40747
b9413424 407482009-02-27 Robert Millan <rmh@aybabtu.com>
40749
40750 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40751 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40752
50fb7002 407532009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 40754
40755 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40756 b-tree.
40757
8cc50345 407582009-02-27 Robert Millan <rmh@aybabtu.com>
40759
40760 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40761 `0x' qualifier as 0 when base is specified as parameter).
40762
6e09b8b7 407632009-02-24 Bean <bean123ch@gmail.com>
40764
40765 * configure.ac: Check for -mcmodel=large in x86_64 target.
40766
40767 * include/grub/efi/api.h (efi_call_10): New macro.
40768 (efi_wrap_10): New function.
40769
40770 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40771 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40772 (GRUB_PE32_REL_BASED_LOW): Likewise.
40773 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40774 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40775 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40776 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40777 (GRUB_PE32_REL_BASED_REL): Likewise.
40778 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40779 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40780 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40781
40782 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40783 issue.
40784
40785 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40786 (efi_wrap_10): New function.
40787
40788 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40789
40790 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40791 MB/MBP model (NV chipset).
40792 (devdata_devs): Add devpath_5 to the list.
40793
40794 * load/i386/efi/linux.c (video_base): Remove variable.
40795 (RGB_MASK): New macro.
40796 (RGB_MAGIC): Likewise.
40797 (LINE_MIN): Likewise.
40798 (LINE_MAX): Likewise.
40799 (FBTEST_STEP): Likewise.
40800 (FBTEST_COUNT): Likewise.
40801 (fb_list): New variable.
40802 (grub_find_video_card): Remove function.
40803 (find_framebuf): New function.
40804 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40805 line length.
40806
40807 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40808 problem for x86_64.
40809
74b21bee 408102009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40811
40812 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40813
40814 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40815 coding tool name.
40816
a455f472 408172009-02-22 Robert Millan <rmh@aybabtu.com>
40818
40819 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40820 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40821 in our relocation, instead of using it directly from heap. Also
40822 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40823
6374daf3 408242009-02-21 Robert Millan <rmh@aybabtu.com>
40825
40826 Implement USB keyboard support (based on patch by Marco Gerards)
40827
40828 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40829 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40830 (usb_keyboard_mod_LDFLAGS): New variables.
40831
40832 * term/usb_keyboard.c: New file.
40833
8fa4ea70 408342009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40835
40836 Corrected wrong declaration
40837
40838 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40839
353976ac 408402009-02-14 Christian Franke <franke@computer.org>
40841
40842 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40843 (grub_lspci_iter): Print class code and programming interface byte.
40844
6aa1169b 408452009-02-14 Christian Franke <franke@computer.org>
40846
40847 * gendistlist.sh: Ignore `.svn' directories.
40848
265372ca 408492009-02-14 Felix Zielcke <fzielcke@z-51.de>
40850
40851 * fs/fat.c: Add 2009 to Copyright line.
40852
9ff516f3 408532009-02-14 Christian Franke <franke@computer.org>
40854
40855 * commands/hdparm.c: New file. Provides `hdparm' command
40856 which sends ATA commands via grub_disk_ata_pass_through ().
40857
40858 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40859
40860 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40861 and <grub/cpu/io.h> to include/grub/ata.h.
40862 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40863 (GRUB_CDROM_SECTOR_SIZE): Remove.
40864 (GRUB_ATA_*): Move to include/grub/ata.h.
40865 (GRUB_ATAPI_*): Likewise.
40866 (enum grub_ata_commands): Likewise.
40867 (enum grub_ata_timeout_milliseconds): Likewise.
40868 (struct grub_ata_device): Likewise.
40869 (grub_ata_regset): Likewise.
40870 (grub_ata_regget): Likewise.
40871 (grub_ata_regset2): Likewise.
40872 (grub_ata_regget2): Likewise.
40873 (grub_ata_check_ready): Likewise.
40874 (grub_ata_wait_not_busy): Remove static, exported in
40875 include/grub/ata.h.
40876 (grub_ata_wait_drq): Likewise.
40877 (grub_ata_pio_read): Likewise.
40878
40879 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40880 function for hdparm.mod.
40881
40882 * include/grub/ata.h: New file, contains declarations from
40883 disk/ata.c.
40884 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40885
40886 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40887 (grub_disk_ata_pass_through): New exported variable.
40888
40889 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40890
772e23da 408912009-02-13 Colin D Bennett <colin@gibibit.com>
40892
40893 Support multiple fallback entries, and provide an API to support
40894 executing default+fallback menu entries. Renamed the `terminal' menu
40895 viewer to `text'.
40896
40897 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40898 variable declaration.
40899 (grub_menu_execute_callback): New structure declaration.
40900 (grub_menu_execute_callback_t): New typedef.
40901 (grub_menu_execute_with_fallback): New function declaration.
40902 (grub_menu_get_entry): Likewise.
40903 (grub_menu_get_timeout): Likewise.
40904 (grub_menu_set_timeout): Likewise.
40905
40906 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40907
40908 * normal/menu.c (grub_wait_after_message): Moved to
40909 `normal/menu_text.c'.
40910 (draw_border): Likewise.
40911 (print_message): Likewise.
40912 (print_entry): Likewise.
40913 (print_entries): Likewise.
40914 (grub_menu_init_page): Likewise.
40915 (get_entry_number): Likewise.
40916 (print_timeout): Likewise.
40917 (run_menu): Likewise.
40918 (grub_menu_execute_entry): Likewise.
40919 (show_text_menu): Likewise.
40920 (get_and_remove_first_entry_number): New function.
40921 (grub_menu_execute_with_fallback): Likewise.
40922 (get_entry): Renamed to ...
40923 (grub_menu_get_entry): .. this and made it global.
40924 (get_timeout): Renamed to ...
40925 (grub_menu_get_timeout): ... this and made it global.
40926 (set_timeout): Renamed to ...
40927 (grub_menu_set_timeout): ... this and made it global.
40928 (grub_normal_terminal_menu_viewer): Renamed to ...
40929 (grub_normal_text_menu_viewer): ... this.
40930
40931 * normal/menu_text.c: New file. Extracted text-menu-specific code
40932 from normal/menu.c.
40933
40934 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40935 (normal_mod_SOURCES): Likewise.
40936
40937 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40938 (normal_mod_SOURCES): Likewise.
40939
40940 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40941 (normal_mod_SOURCES): Likewise.
40942
40943 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40944 (normal_mod_SOURCES): Likewise.
40945
40946 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40947 (normal_mod_SOURCES): Likewise.
40948
40949 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40950 (normal_mod_SOURCES): Likewise.
40951
40952 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40953 (normal_mod_SOURCES): Likewise.
40954
16ac430e 409552009-02-11 Robert Millan <rmh@aybabtu.com>
40956
40957 * util/grub.d/00_header.in: Update old reference to `font' command.
40958
06ff20fc 409592009-02-10 Felix Zielcke <fzielcke@z-51.de>
40960
40961 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40962
40963 Based on patch from Javier Martín.
40964
96da9407 409652009-02-09 Felix Zielcke <fzielcke@z-51.de>
40966
40967 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 40968 to avoid false positives with FAT.
96da9407 40969 (grub_fstest_SOURCES): Likewise.
40970 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40971 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40972 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40973 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40974 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40975 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40976
6dca6fe4 409772009-02-09 Felix Zielcke <fzielcke@z-51.de>
40978
06ff20fc 40979 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 40980 bpb.version_specific.fat12_or_fat16.fstype and
40981 bpb.version_specific.fat32.fstype.
40982
2550c62f 409832009-02-08 Robert Millan <rmh@aybabtu.com>
40984
be110b30 40985 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 40986
56978920 409872009-02-08 Robert Millan <rmh@aybabtu.com>
40988
40989 * Makefile.in (host_os, host_cpu): New variables.
40990 (target_os): Remove. Update all users.
40991
d64399b5 409922009-02-08 Marco Gerards <marco@gnu.org>
40993
40994 * Makefile.in (enable_grub_emu_usb): New variable.
40995 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40996 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40997 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40998 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40999 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41000 `usbtest.mod' and `usbms.mod'.
41001 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41002 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41003 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41004 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41005 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41006 variables.
41007
41008 * disk/usbms.c: New file.
41009
41010 * include/grub/usb.h: Likewise.
41011
41012 * include/grub/usbtrans.h: Likewise.
41013
41014 * include/grub/usbdesc.h: Likewise.
41015
41016 * bus/usb/usbtrans.c: Likewise.
41017
41018 * bus/usb/ohci.c: Likewise.
41019
41020 * bus/usb/uhci.c: Likewise.
41021
41022 * bus/usb/usbhub.c: Likewise.
41023
41024 * bus/usb/usb.c: Likewise.
41025
41026 * commands/usbtest.c: Likewise.
41027
41028 * util/usb.c: Likewise.
50fb7002 41029
d64399b5 41030 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41031
41032 * configure.ac: Test for libusb presence.
50fb7002 41033
d64399b5 41034 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41035
2b40d6bb 410362009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41037
41038 * kern/mm.c: Add more comments.
41039
73a4ce81 410402009-02-08 Robert Millan <rmh@aybabtu.com>
41041
41042 Patch from Javier Martín.
41043 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41044 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41045
f821ce59 410462009-02-08 Robert Millan <rmh@aybabtu.com>
41047
41048 * fs/cpio.c: Split tar functionality to ...
41049 * fs/tar.c: ... here (new file). Update all users.
41050
aebfc4b0 410512009-02-07 Robert Millan <rmh@aybabtu.com>
41052
41053 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41054 backward-incompatible features.
41055
41056 Based on patch from Javier Martín, with some adjustments.
41057
50fb7002 410582009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 41059
41060 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41061
0bb5115e 410622009-02-07 Robert Millan <rmh@aybabtu.com>
41063
41064 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41065 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41066 after the RAID stuff.
41067
38a0f8e7 410682009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41069
50fb7002 41070 Fixes problem when running vbetest command as reported by
38a0f8e7 41071 Vladimir Serbinenko <phcoder@gmail.com>.
41072
41073 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41074
3143cc1c 410752009-02-04 Felix Zielcke <fzielcke@z-51.de>
41076
41077 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41078 /dev/md/NpN style mdraid devices.
41079
9cba6fce 410802009-02-03 Felix Zielcke <fzielcke@z-51.de>
41081
41082 * util/unifont2pff.rb: Remove.
41083
e507a2c1 410842009-02-03 Felix Zielcke <fzielcke@z-51.de>
41085
41086 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41087 `#'.
41088
d2c2b4cd 410892009-02-03 Felix Zielcke <fzielcke@z-51.de>
41090
41091 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41092 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41093 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41094 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41095 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41096 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41097 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41098
b4315fb0 410992009-02-02 Christian Franke <franke@computer.org>
41100
41101 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41102
de3aa260 411032009-02-01 Felix Zielcke <fzielcke@z-51.de>
41104
7c3ff286 41105 * INSTALL: Note that we now require at least autoconf 2.59 and
41106 that LZO is optional.
de3aa260 41107
825a182b 411082009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41109
41110 Base on patch on bug #24154 created by Tomas Tintera
41111 <trosos@seznam.cz>.
41112
41113 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41114
a69ef770 411152009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41116
7c3ff286 41117 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 41118 <bero@arklinux.org>.
41119
41120 * normal/parser.y (script_init): Add missing semicolon.
41121
6fa42fa6 411222009-01-31 Colin D Bennett <colin@gibibit.com>
41123
7c3ff286 41124 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 41125 (free_menu_entry_classes): Added.
41126 (grub_normal_menu_addentry): Added class property handling.
41127 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41128 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41129
41130 * normal/menu_viewer.c: New file.
41131
41132 * normal/menu.c (run_menu_entry): Renamed to ...
41133 (grub_menu_execute_entry): ... this and made it as global.
41134 (grub_menu_run): Renamed to ...
41135 (show_text_menu): ... this and made it local.
41136 (show_text_menu): Adapt to new function names.
41137 (grub_normal_terminal_menu_viewer): New global variable.
41138
41139 * include/grub/menu.h: New file.
41140
41141 * include/grub/menu_viewer.h: New file.
41142
41143 * include/grub/normal.h: Added include to grub/menu.h.
41144 (grub_menu_entry): Moved to include/grub/menu.h.
41145 (grub_menu_entry_t): Likewise.
41146 (grub_menu): Likewise.
41147 (grub_menu_t): Likewise.
41148 (grub_normal_terminal_menu_viewer): Added.
41149 (grub_menu_execute_entry): Likewise.
41150 (grub_menu_run): Removed.
41151
41152 * DISTLIST: Added include/grub/menu.h.
41153 Added include/grub/menu_viewer.h.
41154 Added normal/menu_viewer.c.
41155
411562009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41157
41158 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41159 arglist for menutitle arguments.
41160
41161 * normal/main.c (grub_normal_menu_addentry): Likewise.
41162
41163 * normal/parser.y (menuentry): Likewise.
41164
41165 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41166
41167 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41168 (grub_script_create_cmdmenu): Likewise.
41169
41170 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41171
41172 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41173 changes.
41174
41175 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41176
41177 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41178
41179 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41180
41181 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41182
41183 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41184
41185 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41186
56192c23 411872009-01-30 Christian Franke <franke@computer.org>
41188
41189 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41190 in option help text.
41191
d72521b3 411922009-01-27 Pavel Roskin <proski@gnu.org>
41193
41194 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41195
994b5e84 411962009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41197
41198 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41199
41200 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41201
41202 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41203 unregister function.
41204
6a7eab2c 412052009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41206
41207 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41208
41209 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41210
41211 * util/grub-mkfont.c (usage): Fix typo.
41212
41213 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41214
1806b56e 412152009-01-26 Daniel Mierswa <impulze@impulze.org>
41216
3fb18f09 41217 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41218
336e1fb9 41219 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41220
1806b56e 41221 * kern/misc.c (grub_strcasecmp): New function.
41222 (grub_strcasecmp): Use grub_size_t instead of int for length.
41223 Fix return value.
41224 * include/grub/misc.h: Update function prototypes.
41225
580b2a0f 412262009-01-26 Robert Millan <rmh@aybabtu.com>
41227
41228 * configure.ac: Fix cross-compilation check.
ef257b36 41229
d31c24f1 412302009-01-22 Christian Franke <franke@computer.org>
41231
41232 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41233 (precision) digit string. Allow `.format2' without `format1' (width).
41234 Limit input chars for `%s' output to `format2' if specified. This is
41235 compatible with standard printf ().
41236
3138b44c 412372009-01-22 Christian Franke <franke@computer.org>
41238
41239 * disk/ata.c (grub_ata_wait_status): Replace by ...
41240 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41241 other status bits may be invalid while BSY is asserted.
41242 (grub_ata_check_ready): New function.
41243 (grub_ata_cmd): Removed.
41244 (grub_ata_wait_drq): New function.
41245 (grub_ata_strncpy): Remove inline.
41246 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41247 and error check now done by grub_ata_wait_drq ().
41248 (grub_ata_pio_write): Likewise.
41249 (grub_atapi_identify): Set DEV before check for !BSY. Use
41250 grub_ata_wait_drq () to wait for data.
41251 (grub_ata_device_initialize): Add status register check to
41252 detect missing SATA slave devices. Add debug messages.
41253 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41254 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41255 transfer loop by grub_ata_pio_write ().
41256 (grub_ata_identify): Set DEV before check for !BSY. Use
41257 grub_ata_wait_drq () to wait for data.
ef257b36 41258 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 41259 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41260 read/write in one loop. Fix invalid command on write. Fix incomplete
41261 command on (size % batch) == 0. Add missing error check after write of
41262 last block. Add debug messages.
41263 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41264
59a64ef6 412652009-01-19 Christian Franke <franke@computer.org>
41266
41267 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41268 (GRUB_ATAPI_IREASON_*): Likewise.
41269 (grub_ata_pio_write): Fix timeout error return.
41270 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41271 (grub_atapi_wait_drq): New function.
41272 (grub_atapi_packet): New parameter `size'.
41273 Use grub_atapi_wait_drq () and direct write instead of
41274 grub_ata_pio_write ().
41275 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41276 reads the number of bytes requested by the device for each DRQ
41277 assertion.
41278 (grub_atapi_write): Remove old implementation, return not
41279 implemented instead.
41280
1cfe20b3 412812009-01-19 Christian Franke <franke@computer.org>
41282
41283 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41284 of 512 to calculate data size.
41285 (grub_scsi_read12): Likewise.
41286 (grub_scsi_write10): Likewise.
41287 (grub_scsi_write12): Likewise.
41288 (grub_scsi_read): Adjust size according to blocksize.
41289 Add checks for invalid blocksize and unaligned transfer.
41290
bee5fe5d 412912009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41292
41293 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41294
ef257b36 41295 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 41296 width glyphs.
41297
3e643f8c 412982009-01-19 Robert Millan <rmh@aybabtu.com>
41299
41300 * config.guess: Update to latest version from config git.
41301 * config.sub: Likewise.
41302
4fa80998 413032009-01-17 Felix Zielcke <fzielcke@z-51.de>
41304
41305 * Makefile.in: Change font compilation to use new grub-mkfont instead
41306 of java version.
41307
41308 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41309 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41310 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41311 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41312 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41313 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41314 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41315 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41316 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41317
7086085b 413182009-01-16 Christian Franke <franke@computer.org>
41319
41320 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41321 (enum grub_ata_timeout_milliseconds): New enum.
41322 (grub_ata_wait_status): Add parameter milliseconds.
41323 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41324 recovery from timed-out commands.
41325 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41326 return grub_errno instead of REG_ERROR.
41327 (grub_ata_pio_write): Add parameter milliseconds.
41328 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41329 Pass milliseconds to grub_ata_wait_status () and
41330 grub_ata_pio_read ().
41331 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41332 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41333 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41334 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41335 It is not suitable for device detection, because DEV bit is ignored,
41336 the command may run too long, and not all devices set the signature
41337 properly.
41338 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41339 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41340 Fix device selection, DEV bit must be set first to address the registers
41341 of the correct device.
41342 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41343 grub_ata_pio_read/write ().
41344 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41345 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41346
4a412913 413472009-01-13 Carles Pina i Estany <carles@pina.cat>
41348
41349 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41350
7795c55e 413512009-01-13 Bean <bean123ch@gmail.com>
d913988c 41352
41353 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41354
7795c55e 413552009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 41356
41357 * Makefile.in: (enable_grub_mkfont): New variable.
41358 (freetype_cflags): Likewise.
41359 (freetype_libs): Likewise.
41360
41361 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41362 (grub_mkfont_SOURCES): New variable.
41363 (grub_mkfont_CFLAGS): Likewise.
41364 (grub_mkfont_LDFLAGS): Likewise.
41365
41366 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41367 library if `--enable-grub-mkfont' is requested.
41368 (enable_grub_mkfont): New variable.
41369 (freetype_cflags): Likewise.
41370 (freetype_libs): Likewise.
41371
41372 * util/grub-mkfont.c: New file.
41373
093af1fe 413742009-01-12 Christian Franke <franke@computer.org>
41375
41376 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41377 mode check. Fix setting of compat_use[].
41378
f36cc108 413792009-01-10 Robert Millan <rmh@aybabtu.com>
41380
41381 Update a few copyright years which we forgot to do in 2008 (only for
41382 files whose changes made in 2008 were copyright-significant)
41383
41384 * Makefile.in: Add 2008 to Copyright line.
41385 * disk/ieee1275/ofdisk.c: Likewise.
41386 * disk/efi/efidisk.c: Likewise.
41387 * kern/dl.c: Likewise.
41388 * kern/sparc64/ieee1275/init.c: Likewise.
41389 * kern/mm.c: Likewise.
41390 * kern/efi/mm.c: Likewise.
41391 * boot/i386/pc/boot.S: Likewise.
41392 * genfslist.sh: Likewise.
41393 * fs/iso9660.c: Likewise.
41394 * fs/hfs.c: Likewise.
41395 * fs/jfs.c: Likewise.
41396 * fs/minix.c: Likewise.
41397 * fs/ufs.c: Likewise.
41398 * gensymlist.sh.in: Likewise.
41399 * genkernsyms.sh.in: Likewise.
41400 * include/grub/misc.h: Likewise.
41401 * include/grub/types.h: Likewise.
41402 * include/grub/symbol.h: Likewise.
41403 * include/grub/elf.h: Likewise.
41404 * include/grub/kernel.h: Likewise.
41405 * include/grub/disk.h: Likewise.
41406 * include/grub/dl.h: Likewise.
41407 * include/grub/i386/linux.h: Likewise.
41408 * include/grub/i386/pc/biosdisk.h: Likewise.
41409 * include/grub/efi/api.h: Likewise.
41410 * include/grub/efi/pe32.h: Likewise.
41411 * include/grub/util/misc.h: Likewise.
41412 * normal/execute.c: Likewise.
41413 * normal/arg.c: Likewise.
41414 * normal/completion.c: Likewise.
41415 * normal/lexer.c: Likewise.
41416 * normal/parser.y: Likewise.
41417 * normal/misc.c: Likewise.
41418 * commands/i386/pc/vbeinfo.c: Likewise.
41419 * commands/hexdump.c: Likewise.
41420 * commands/terminal.c: Likewise.
41421 * commands/ls.c: Likewise.
41422 * commands/help.c: Likewise.
41423 * partmap/pc.c: Likewise.
41424 * loader/efi/chainloader.c: Likewise.
41425 * loader/multiboot_loader.c: Likewise.
41426 * loader/i386/pc/multiboot2.c: Likewise.
41427 * term/efi/console.c: Likewise.
41428 * term/i386/pc/serial.c: Likewise.
41429 * util/lvm.c: Likewise.
41430 * util/console.c: Likewise.
41431 * util/i386/efi/grub-mkimage.c: Likewise.
41432 * util/raid.c: Likewise.
41433
7f02114b 414342009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41435
41436 * commands/videotest.c: Removed include to grub/machine/memory.h.
41437
41438 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41439 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41440 (video_mod_SOURCES): Removed.
41441 (video_mod_CFLAGS): Likewise.
41442 (video_mod_LDFLAGS): Likewise.
41443 (gfxterm_mod_SOURCES): Likewise.
41444 (gfxterm_mod_CFLAGS): Likewise.
41445 (gfxterm_mod_LDFLAGS): Likewise.
41446 (videotest_mod_SOURCES): Likewise.
41447 (videotest_mod_CFLAGS): Likewise.
41448 (videotest_mod_LDFLAGS): Likewise.
41449 (bitmap_mod_SOURCES): Likewise.
41450 (bitmap_mod_CFLAGS): Likewise.
41451 (bitmap_mod_LDFLAGS): Likewise.
41452 (tga_mod_SOURCES): Likewise.
41453 (tga_mod_CFLAGS): Likewise.
41454 (tga_mod_LDFLAGS): Likewise.
41455 (jpeg_mod_SOURCES): Likewise.
41456 (jpeg_mod_CFLAGS): Likewise.
41457 (jpeg_mod_LDFLAGS): Likewise.
41458 (png_mod_SOURCES): Likewise.
41459 (png_mod_CFLAGS): Likewise.
41460 (png_mod_LDFLAGS): Likewise.
41461
41462 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41463 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41464 (video_mod_SOURCES): Added.
41465 (video_mod_CFLAGS): Likewise.
41466 (video_mod_LDFLAGS): Likewise.
41467 (videotest_mod_SOURCES): Likewise.
41468 (videotest_mod_CFLAGS): Likewise.
41469 (videotest_mod_LDFLAGS): Likewise.
41470 (bitmap_mod_SOURCES): Likewise.
41471 (bitmap_mod_CFLAGS): Likewise.
41472 (bitmap_mod_LDFLAGS): Likewise.
41473 (tga_mod_SOURCES): Likewise.
41474 (tga_mod_CFLAGS): Likewise.
41475 (tga_mod_LDFLAGS): Likewise.
41476 (jpeg_mod_SOURCES): Likewise.
41477 (jpeg_mod_CFLAGS): Likewise.
41478 (jpeg_mod_LDFLAGS): Likewise.
41479 (png_mod_SOURCES): Likewise.
41480 (png_mod_CFLAGS): Likewise.
41481 (png_mod_LDFLAGS): Likewise.
41482 (gfxterm_mod_SOURCES): Likewise.
41483 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 41484 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 41485
41486 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41487 grub/machine/console.h.
41488
644fff97 414892009-01-04 Jerone Young <jerone@gmail.com>
41490
41491 Make on screen instructions clearer
41492
41493 Based on patch created by Jidanni <jidanni@jidanni.org>
41494
41495 * normal/menu.c: print clearer instructions on the screen
41496
1e901a75 414972009-01-02 Colin D Bennett <colin@gibibit.com>
41498
41499 New font engine.
34c44600 41500
1e901a75 41501 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41502 build system and fixed gfxterm.c to work with different sized fonts.
41503
41504 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 41505
1e901a75 41506 * configure: Re-generated.
34c44600 41507
1e901a75 41508 * DISTLIST: Removed font/manager.c.
41509 Added font/font.c.
41510 Added font/font_cmd.c.
34c44600 41511
1e901a75 41512 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41513 compilation.
34c44600 41514
1e901a75 41515 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 41516
41517 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 41518
41519 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 41520
1e901a75 41521 * normal/menu.c: Likewise.
34c44600 41522
1e901a75 41523 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41524 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 41525
1e901a75 41526 * include/grub/font.h: Replaced with new file.
34c44600 41527
1e901a75 41528 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41529 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41530 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41531 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41532 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 41533 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 41534 fg_red, fg_green, fg_blue, fg_alpha.
41535 (grub_video_adapter): Removed blit_glyph.
34c44600 41536 (grub_video_blit_glyph): Removed.
41537
1e901a75 41538 * font/manager.c: Removed file.
34c44600 41539
41540 * font/font.c: New file.
41541
1e901a75 41542 * font/font_cmd.c: Likewise.
34c44600 41543
1e901a75 41544 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 41545
1e901a75 41546 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41547 (grub_video_vbe_map_rgba): Likewise.
41548 (grub_video_vbe_unmap_color_int): Likewise.
41549 (grub_video_vbe_blit_glyph): Removed.
41550 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 41551
1e901a75 41552 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41553 (get_pixel): Likewise.
34c44600 41554 (set_pixel): Likewise.
41555
1e901a75 41556 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 41557
1e901a75 41558 * term/gfxterm.c: Adapted to new font engine.
34c44600 41559
1e901a75 41560 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 41561
1e901a75 41562 * term/i386/pc/vga.c: Likewise.
34c44600 41563
1e901a75 41564 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 41565
1e901a75 41566 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 41567
1e901a75 41568 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 41569
1e901a75 41570 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 41571
1e901a75 41572 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 41573
1e901a75 41574 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 41575
1e901a75 41576 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 41577
1e901a75 41578 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 41579
1e901a75 41580 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41581
41582 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 41583
1e901a75 41584 * util/grub-mkconfig_lib.in: Changed font extension.
41585
278922e8 415862008-12-28 Felix Zielcke <fzielcke@z-51.de>
41587
41588 * util/getroot.c (grub_util_get_grub_dev): Add support for
41589 /dev/md/dNNpNN style partitionable mdraid devices.
41590
3ced05cf 415912008-12-12 Alex Smith <alex@alex-smith.me.uk>
41592
41593 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41594 at a time limit of the PXE TFTP API correctly.
41595 (grub_pxefs_close): Likewise.
41596
7fd0ee30 415972008-11-29 Robert Millan <rmh@aybabtu.com>
41598
34c44600 41599 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 41600 grub_ata_device_initialize() calls.
41601
34c44600 416022008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 41603
41604 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41605 iteration failed.
41606 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41607
89313780 416082008-11-28 Robert Millan <rmh@aybabtu.com>
41609
41610 Fix build on powerpc-ieee1275. Based on patch created by
41611 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41612 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41613 `kern/ieee1275/mmap.c'.
41614 * include/grub/powerpc/ieee1275/memory.h: New file.
41615
15257703 41616 Provide grub-install on coreboot.
41617 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41618 (grub_install_SOURCES): New variable.
41619 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41620 usable on coreboot.
41621
9fc5388a 416222008-11-25 Felix Zielcke <fzielcke@z-51.de>
41623
41624 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41625 to `grub_term_input_t'.
41626 (grub_term_get_current_output): Change return type to
41627 `grub_term_output_t'.
41628
bc3a2f31 416292008-11-22 Robert Millan <rmh@aybabtu.com>
41630
34c44600 41631 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 41632 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41633 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41634 grub_vga_text_cls().
41635
80fc88f2 41636 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 41637 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 41638
cbf36fd3 41639 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41640 to 0x200000 (avoids trouble with some OFW implementations, and matches
41641 with the one in Yaboot).
41642 Reported by Manoel Abranches
41643
73e8e268 416442008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 41645
41646 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41647 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41648
73e8e268 41649 * util/grub-mkconfig_lib.in (grub_warn): New function.
41650 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41651 warnings, to obtain consistent formatting.
41652 * util/grub.d/00_header.in: Likewise.
41653 * util/update-grub_lib.in: Likewise.
41654
e94045a1 41655 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 41656 Move comment text to `#error' stanza.
e94045a1 41657
79d29fd7 41658 Harmonize ieee1275's grub_available_iterate() with the generic
41659 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41660 build problem on i386-ieee1275):
41661 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41662 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41663 parameter `type'. Update all users of this function.
41664 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41665 `kern/ieee1275/mmap.c'.
41666 * kern/ieee1275/init.c
41667 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41668 with ...
41669 (grub_machine_mmap_iterate): ... this.
41670 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41671 return type to `grub_err_t'. Update all implementations of this
41672 function prototype.
41673 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41674 Likewise.
41675
60d6b16e 41676 Add `lsmmap' command (lists firmware-provided memory map):
41677 * commands/lsmmap.c: New file.
41678 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41679 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41680 variables.
41681 * conf/powerpc-ieee1275.rmk: Likewise.
41682 * conf/i386-coreboot.rmk: Likewise.
41683 * conf/i386-ieee1275.rmk: Likewise.
41684
ebaaf49b 416852008-11-19 Robert Millan <rmh@aybabtu.com>
41686
41687 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 41688 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41689 constraints to initrd allocation (based on code from
41690 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41691 for Linux to find it.
ebaaf49b 41692
dfab719f 416932008-11-14 Robert Millan <rmh@aybabtu.com>
41694
41695 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41696 order to cope with duplicate slashes.
41697
10fc3eb9 416982008-11-14 Robert Millan <rmh@aybabtu.com>
41699
41700 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41701 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41702 don't want to mess with lower memory, because it is used in the Linux
41703 loader.
41704
41705 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 41706 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 41707 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41708 is in our heap (probably as a result of it being corrupted during
2f2a3442 41709 decompression). Add #error instance with comment to explain why this
41710 loader isn't currently usable on PC/BIOS.
10fc3eb9 41711
e2e07847 417122008-11-14 Robert Millan <rmh@aybabtu.com>
41713
41714 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 41715 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 41716
fe8e8d69 417172008-11-12 Robert Millan <rmh@aybabtu.com>
41718
41719 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41720
41721 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41722 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41723 from here ...
41724 * include/grub/i386/pc/memory.h: ... to here.
41725
976b07d0 417262008-11-12 Robert Millan <rmh@aybabtu.com>
41727
41728 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41729 split).
41730
41731 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41732 (grub_console_cur_color, grub_console_real_putchar)
41733 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41734 (grub_console_setcolorstate, grub_console_setcolor)
41735 (grub_console_getcolor): Move from here ...
41736 * include/grub/i386/vga_common.h: ... to here (new file).
41737
41738 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41739 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41740 `<grub/i386/io.h>'.
41741 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41742 `<grub/i386/vga_common.h>'.
41743
76679cd3 417442008-11-12 Robert Millan <rmh@aybabtu.com>
41745
41746 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41747 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41748 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41749 variables.
41750 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41751 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41752
41753 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41754 grub_console_init() with call to grub_vga_text_init().
41755 (grub_machine_fini): Replace call to
41756 grub_console_fini() with call to grub_vga_text_fini() and
41757 grub_at_keyboard_fini().
41758
41759 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41760 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41761 (grub_console_setcolorstate, grub_console_setcolor)
41762 (grub_console_getcolor): New function prototypes.
41763
41764 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41765 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41766 (grub_vga_text_setcursor): Static-ize.
41767 (grub_vga_text_term): New structure.
41768 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41769
41770 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41771 (grub_console_cur_color, grub_console_standard_color)
41772 (grub_console_normal_color, grub_console_highlight_color)
41773 (map_char, grub_console_putchar, grub_console_getcharwidth)
41774 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41775 (grub_console_getcolor): Move from here ...
41776 * term/i386/vga_common.c: ... to here (same function names).
41777
95b841d3 417782008-11-12 Robert Millan <rmh@aybabtu.com>
41779
41780 Use newly-added Multiboot support in coreboot.
41781
41782 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41783 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41784
41785 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41786 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41787 (codestart): Store the MBI in `startup_multiboot_info' when we're
41788 being loaded using Multiboot.
41789
41790 * kern/i386/coreboot/init.c (grub_machine_init): Move
41791 grub_at_keyboard_init() call to beginning of function (useful for
41792 debugging). Call grub_machine_mmap_init() before attempting to use
41793 grub_machine_mmap_iterate().
41794 (grub_lower_mem, grub_upper_mem): Move from here ...
41795 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41796 here (new file).
41797
41798 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41799 function prototype.
41800
761ca975 418012008-11-12 Robert Millan <rmh@aybabtu.com>
41802
41803 Fix a regression introduced by the at_keyboard.mod split. Because
41804 some terminals are default on some platforms and non-default on
41805 others, the first terminal being registered determines which is
41806 going to be default.
41807
41808 * kern/term.c (grub_term_register_input): If this is the first
41809 terminal being registered, set it as the current one.
41810 (grub_term_register_output): Likewise.
41811
41812 * term/efi/console.c (grub_console_init): Do not call
41813 grub_term_set_current_output() or grub_term_set_current_input().
41814 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41815 * term/i386/pc/console.c (grub_console_init): Likewise.
41816 (grub_console_fini): Do not call grub_term_set_current_input()
41817 (but leave grub_term_set_current_output() to restore text mode).
41818
6c529df7 418192008-11-10 Robert Millan <rmh@aybabtu.com>
41820
41821 * util/grub.d/00_header.in: Add backward compatibility check for
41822 versions of terminal.mod that don't understand `terminal_input' or
41823 `terminal_output'.
41824
132e4113 418252008-11-09 Robert Millan <rmh@aybabtu.com>
41826
41827 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41828 `terminal_input' / `terminal_output', not `terminal'.
41829
ac293d50 418302008-11-08 Robert Millan <rmh@aybabtu.com>
41831
41832 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 41833 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 41834
0025933a 418352008-11-08 Robert Millan <rmh@aybabtu.com>
41836
41837 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 41838 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 41839 members. Update all users.
41840 * util/console.c (grub_ncurses_term): Split in ...
41841 (grub_ncurses_term_input): ... this, and ...
41842 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 41843 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 41844
37c86336 418452008-11-08 Robert Millan <rmh@aybabtu.com>
41846
41847 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41848 (PKGDATA): Add $(pkgdata_SRCDIR).
41849 (pkglib_BUILDDIR): New variable.
41850 (pkgdata_SRCDIR): New variable.
41851 (build_env.mk): New target.
41852 (include_DATA): New variable.
41853 (install-local): Install $(include_DATA) files in $(includedir).
41854
b6c15a2d 418552008-11-07 Pavel Roskin <proski@gnu.org>
41856
d99d46f1 41857 * gendistlist.sh: Use C locale for sorting to ensure consistent
41858 output on all systems.
41859
b6c15a2d 41860 * util/grub.d/00_header.in: Remove incorrect space before
41861 "serial".
41862
c32ee8c9 418632008-11-07 Robert Millan <rmh@aybabtu.com>
41864
41865 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41866 per specification.
41867 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41868 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41869 (based on find_multi_boot1_header).
41870 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41871 using find_multi_boot2_header(), and abort if neither Multiboot or
41872 Multiboot headers were found.
41873
651c29b7 418742008-11-07 Robert Millan <rmh@aybabtu.com>
41875
41876 Modularize at_keyboard.mod:
41877
41878 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41879 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41880 (at_keyboard_mod_LDFLAGS): New variables.
41881
41882 Actual terminal split:
41883
41884 * include/grub/term.h (struct grub_term): Split in ...
41885 (struct grub_term_input): ... this, and ...
41886 (struct grub_term_output): ... this. Update all users.
41887 (grub_term_set_current): Split in ...
41888 (grub_term_set_current_input): ... this, and ...
41889 (grub_term_set_current_output): ... this.
41890 (grub_term_get_current): Split in ...
41891 (grub_term_get_current_input): ... this, and ...
41892 (grub_term_get_current_output): ... this.
41893 (grub_term_register): Split in ...
41894 (grub_term_register_input): ... this, and ...
41895 (grub_term_register_output): ... this.
41896 (grub_term_unregister): Split in ...
41897 (grub_term_unregister_input): ... this, and ...
41898 (grub_term_unregister_output): ... this.
41899 (grub_term_iterate): Split in ...
41900 (grub_term_iterate_input): ... this, and ...
41901 (grub_term_iterate_output): ... this.
41902
41903 * kern/term.c (grub_term_list): Split in ...
41904 (grub_term_list_input): ... this, and ...
41905 (grub_term_list_output): ... this. Update all users.
41906 (grub_cur_term): Split in ...
41907 (grub_cur_term_input): ... this, and ...
41908 (grub_cur_term_output): ... this. Update all users.
41909 (grub_term_set_current): Split in ...
41910 (grub_term_set_current_input): ... this, and ...
41911 (grub_term_set_current_output): ... this.
41912 (grub_term_get_current): Split in ...
41913 (grub_term_get_current_input): ... this, and ...
41914 (grub_term_get_current_output): ... this.
41915 (grub_term_register): Split in ...
41916 (grub_term_register_input): ... this, and ...
41917 (grub_term_register_output): ... this.
41918 (grub_term_unregister): Split in ...
41919 (grub_term_unregister_input): ... this, and ...
41920 (grub_term_unregister_output): ... this.
41921 (grub_term_iterate): Split in ...
41922 (grub_term_iterate_input): ... this, and ...
41923 (grub_term_iterate_output): ... this.
41924
41925 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41926 a check for input and one for output (and only attempt to get keys
41927 from user when input works).
41928
41929 * util/grub-probe.c (grub_term_get_current): Split in ...
41930 (grub_term_get_current_input): ... this, and ...
41931 (grub_term_get_current_output): ... this.
41932 * util/grub-fstest.c: Likewise.
41933 * util/i386/pc/grub-setup.c: Likewise.
41934 * util/grub-editenv.c: Likewise.
41935
41936 Portability adjustments:
41937
41938 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41939 `term/i386/pc/at_keyboard.c'.
41940 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41941 grub_keyboard_controller_init() (now handled by terminal .init).
41942 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41943 grub_at_keyboard_init().
41944 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41945 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41946 at_keyboard.mod via input terminal interface).
41947 * include/grub/i386/coreboot/console.h: Convert into a stub for
41948 `<grub/i386/pc/console.h>'.
41949
41950 Migrate full terminals to new API:
41951
41952 * term/efi/console.c (grub_console_term): Split into ...
41953 (grub_console_term_input): ... this, and ...
41954 (grub_console_term_output): ... this. Update all users.
41955 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41956 (grub_ofconsole_init): Split into ...
41957 (grub_ofconsole_init_input): ... this, and ...
41958 (grub_ofconsole_init_output): ... this.
41959 (grub_ofconsole_term): Split into ...
41960 (grub_ofconsole_term_input): ... this, and ...
41961 (grub_ofconsole_term_output): ... this. Update all users.
41962 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41963 (grub_serial_term_input): ... this, and ...
41964 (grub_serial_term_output): ... this. Update all users.
41965 * term/i386/pc/console.c (grub_console_term): Split into ...
41966 (grub_console_term_input): ... this, and ...
41967 (grub_console_term_output): ... this. Update all users.
41968 (grub_console_term_input): Only enable it on PC/BIOS platform.
41969 (grub_console_init): Remove grub_keyboard_controller_init() call.
41970
41971 Migrate input terminals to new API:
41972
41973 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41974 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41975 i386-specific anyway).
41976 (grub_console_checkkey): Rename to ...
41977 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41978 users.
41979 (grub_keyboard_controller_orig): New variable.
41980 (grub_console_getkey): Rename to ...
41981 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41982 users.
41983 (grub_keyboard_controller_init): Static-ize. Save original
41984 controller value so that it can be restored ...
41985 (grub_keyboard_controller_fini): ... here (new function).
41986 (grub_at_keyboard_term): New structure.
41987 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41988 functions.
41989
41990 Migrate output terminals to new API:
41991
41992 * term/i386/pc/vga.c (grub_vga_term): Change type to
41993 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41994 members. Update all users.
41995 * term/gfxterm.c (grub_video_term): Change type to
41996 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41997 members. Update all users.
41998 * include/grub/i386/pc/console.h (grub_console_checkkey)
41999 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42000 etc).
42001
42002 Migrate `terminal' command and userland tools to new API:
42003
42004 * commands/terminal.c (grub_cmd_terminal): Split into ...
42005 (grub_cmd_terminal_input): ... this, and ...
42006 (grub_cmd_terminal_output): ... this.
42007 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42008 `terminal_input' and `terminal_output'.
42009 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42010 `terminal_input' / `terminal_output' API.
42011 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42012 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42013 provided ${GRUB_TERMINAL}, convert it).
42014
96e5d876 420152008-11-04 Robert Millan <rmh@aybabtu.com>
42016
42017 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42018 for FreeBSD.
42019 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42020
556f3775 420212008-11-03 Bean <bean123ch@gmail.com>
42022
42023 * kern/elf.c (grub_elf32_load): Revert to previous code.
42024 (grub_elf64_load): Likewise.
42025
42026 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42027
926b9823 420282008-11-01 Robert Millan <rmh@aybabtu.com>
42029
42030 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42031 (TARGET_CPPFLAGS): Likewise.
42032 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42033
1432e958 420342008-11-01 Carles Pina i Estany <carles@pina.cat>
42035
42036 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42037
dba3f844 420382008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 42039
42040 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42041 addition of objects until the code is not going to be able to fail.
42042
dba3f844 420432008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 42044
42045 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42046 (add a missing NULL check, and correct them by moving the pointer
42047 operations after the actual check).
42048
7ab28c21 420492008-10-29 Robert Millan <rmh@aybabtu.com>
42050
42051 * util/i386/pc/grub-install.in: Handle empty string as output from
42052 make_system_path_relative_to_its_root().
42053
1b7748eb 420542008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42055
42056 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42057 circular metadata worst case scenario. If the metadata is circular
42058 then copy the wrap in place.
42059 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42060 project lib/format_text/layout.h
42061 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42062
c9618ab2 420632008-10-03 Felix Zielcke <fzielcke@z-51.de>
42064
7a36edca 42065 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 42066
bf981c62 420672008-10-03 Felix Zielcke <fzielcke@z-51.de>
42068
42069 * util/update-grub_lib.in: Mention filename in warning message.
42070
6d994591 420712008-09-29 Felix Zielcke <fzielcke@z-51.de>
42072
42073 * NEWS: Update for rename of update-grub to grub-mkconfig.
42074
18ade780 420752008-09-29 Felix Zielcke <fzielcke@z-51.de>
42076
42077 * util/update-grub_lib.in: Copy to ...
42078 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 42079 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 42080 * util/update-grub.in: Rename to ...
42081 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42082 option. Add `--output' option to allow users to specify the generated
42083 configuration file. Default to stdout.
42084 (update_grub_dir): Rename to ...
42085 (grub_mkconfig_dir): ... this.
42086 (grub_cfg): Default to an empty string.
42087 * conf/common.rmk (update-grub): Rename to ...
42088 (grub-mkconfig): ... this.
42089 (update-grub_lib): Copy to ...
42090 (grub-mkconfig_lib): ... this.
42091 (update-grub_SCRIPTS): Copy to ...
42092 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42093 (update-grub_DATA): Rename to ...
42094 (grub-mkconfig_DATA): ... this.
42095
556ce6ac 420962008-09-28 Robert Millan <rmh@aybabtu.com>
42097
42098 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42099 to `modified'. Add the real `created' field.
42100 (grub_iso9660_uuid): Use `modified' rather than `created' for
42101 constructing the UUID.
42102
421032008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 42104
42105 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42106 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42107
92274e85 421082008-09-28 Bean <bean123ch@gmail.com>
42109
42110 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42111 Thanks to Christian Franke for finding this bug.
42112
add6f17a 421132008-09-25 Robert Millan <rmh@aybabtu.com>
42114
42115 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42116 instances of grub_util_get_disk_name() (see previous commit).
42117
d2a367b8 421182008-09-25 Robert Millan <rmh@aybabtu.com>
42119
42120 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42121 `util/i386/get_disk_name.c'.
42122 * conf/i386-efi.rmk: Likewise.
42123 * conf/x86_64-efi.rmk: Likewise.
42124 * conf/i386-coreboot.rmk: Likewise.
42125 * conf/i386-ieee1275.rmk: Likewise.
42126 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42127 `util/ieee1275/get_disk_name.c'.
42128 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42129 * util/ieee1275/get_disk_name.c: Remove file.
42130 * util/i386/get_disk_name.c: Remove file.
42131 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42132 "hd%d" for device.map entries, rather than using
42133 grub_util_get_disk_name().
42134
81a06771 421352008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 42136
42137 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42138 warning.
42139 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42140
5a004279 421412008-09-24 Carles Pina i Estany <carles@pina.cat>
42142
42143 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42144 Changed to 0x5100.
42145 (GRUB_TERM_PPAGE): Changed to 0x4900.
42146
397093d3 421472008-09-24 Robert Millan <rmh@aybabtu.com>
42148
42149 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42150 macros (they were i386-pc specific).
42151 * include/grub/sparc64/ieee1275/console.h: Likewise.
42152 * include/grub/efi/console.h: Likewise.
42153
a91b6c7c 421542008-09-22 Bean <bean123ch@gmail.com>
42155
42156 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42157 resident and in attribute list.
42158
42159 * include/grub/ntfs.h (BMP_LEN): Removed.
42160
c40fd116 421612008-09-22 Bean <bean123ch@gmail.com>
42162
81a06771 42163 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 42164 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42165
42166 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42167 error occurs, as grub_disk_open will call grub_disk_close, which will
42168 call p->close (scsi).
42169
81a06771 421702008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 42171
42172 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42173 (AC_PREREQ): Bumped to 2.59.
42174 (AC_TRY_COMPILE): Replace obsolete macro with ...
42175 (AC_COMPILE_IFELSE): ... this.
42176 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42177 (AC_LINK_IFELSE): ... this.
42178
5dc43410 421792008-09-21 Felix Zielcke <fzielcke@z-51.de>
42180
42181 * autogen.sh: Add a call to `gendistlist.sh'.
42182
9035dce4 421832008-09-19 Christian Franke <franke@computer.org>
42184
42185 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42186 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42187 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42188 Export __enable_execute_stack() to modules.
42189 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42190 New function.
42191
7fd75377 421922008-09-09 Felix Zielcke <fzielcke@z-51.de>
42193
040030b3 42194 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42195 Sort the list.
42196
421972008-09-09 Felix Zielcke <fzielcke@z-51.de>
42198
42199 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 42200 #include <grub/util/hostdisk.h>.
42201
89d5ffcf 422022008-09-08 Robert Millan <rmh@aybabtu.com>
42203
42204 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42205 segments when their filesz is zero (grub_file_read() interprets
81a06771 42206 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 42207 Use `lowest_segment' rather than 0 for calculating the current
42208 segment load address.
42209
40da438f 422102008-09-08 Robert Millan <rmh@aybabtu.com>
42211
42212 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42213 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42214 clobbered useful information.
42215
ddbf5556 422162008-09-08 Robert Millan <rmh@aybabtu.com>
42217
42218 * include/grub/util/biosdisk.h: Move to ...
42219 * include/grub/util/hostdisk.h: ... here. Update all users.
42220 * util/biosdisk.c: Move to ...
42221 * util/hostdisk.c: ... here. Update all users.
42222
783d0f48 422232008-09-07 Robert Millan <rmh@aybabtu.com>
42224
42225 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42226 variables.
42227 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42228 and length can be stored directly in the `mbi->mmap_addr' and
42229 `mbi->mmap_length' struct fields.
42230
548e2ea5 422312008-09-07 Robert Millan <rmh@aybabtu.com>
42232
42233 * conf/i386.rmk: New file. Provides declaration for building
42234 `cpuid.mod'.
42235 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42236 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42237 variables.
42238 Include `conf/i386.mk'.
42239 * conf/i386-efi.rmk: Likewise.
42240 * conf/x86_64-efi.rmk: Likewise.
42241 * conf/i386-coreboot.rmk: Likewise.
42242 * conf/i386-ieee1275.rmk: Likewise.
42243
0ea85a37 422442008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42245
42246 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42247 Adds optimization support for BGR based modes.
42248
42249 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42250 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42251 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42252 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42253 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42254 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42255 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42256 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42257 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42258 (grub_video_i386_vbeblit_index_index): Likewise.
42259 (grub_video_i386_vbeblit_replace_directN): Added.
42260 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42261 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42262 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42263 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42264 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42265 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 42266 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 42267 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42268 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42269 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42270 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42271 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42272 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42273
42274 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42275 (grub_video_i386_vbefill_R8G8B8): Likewise.
42276 (grub_video_i386_vbefill_index): Likewise.
42277 (grub_video_i386_vbefill_direct32): Added.
42278 (grub_video_i386_vbefill_direct24): Likewise.
42279 (grub_video_i386_vbefill_direct16): Likewise.
42280 (grub_video_i386_vbefill_direct8): Likewise.
42281
81a06771 42282 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 42283 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42284 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42285 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42286 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42287 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 42288
0ea85a37 42289 * video/video.c (grub_video_get_blit_format): Updated to use new
42290 blit formats. Added handling for 16 bit color modes.
81a06771 42291
42292 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 42293 fillers.
42294 (common_blitter): Updated to use new blitters.
42295
42296 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42297 Removed.
42298 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42299 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42300 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42301 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42302 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42303 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42304 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42305 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42306 (grub_video_i386_vbeblit_index_index): Likewise.
42307 (grub_video_i386_vbeblit_replace_directN): Added.
42308 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42309 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42310 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42311 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42312 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42313 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42314 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42315 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42316 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42317 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42318 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42319 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42320 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 42321
0ea85a37 42322 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42323 (grub_video_i386_vbefill_R8G8B8): Likewise.
42324 (grub_video_i386_vbefill_index): Likewise.
42325 (grub_video_i386_vbefill_direct32): Added.
42326 (grub_video_i386_vbefill_direct24): Likewise.
42327 (grub_video_i386_vbefill_direct16): Likewise.
42328 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 42329
0ea85a37 42330 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42331 types.
81a06771 42332
0ea85a37 42333 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42334 types.
81a06771 42335
0ea85a37 42336 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42337 blitter types.
81a06771 42338
0ea85a37 42339 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42340 types.
42341
e8a83df6 423422008-09-06 Felix Zielcke <fzielcke@z-51.de>
42343
42344 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42345 RAID level 1.
42346
6bcd8ee5 423472008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 42348
6bcd8ee5 42349 * fs/iso9660.c (grub_iso9660_date): New structure.
42350 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42351 (grub_iso9660_uuid): New function.
c375ae58 42352
59261157 423532008-09-05 Bean <bean123ch@gmail.com>
42354
42355 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42356
42357 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42358 insensitive bit for names in Win32 and Win32 & DOS namespace.
42359
42360 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42361
42362 * include/grub/types.h (LONG_MAX): Likewise.
42363
58b6645a 423642008-09-04 Felix Zielcke <fzielcke@z-51.de>
42365
4ee55921 42366 * util/getroot.c: Include <config.h>.
42367 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42368 add support for /dev/md/N devices and handle LVM double dash escaping.
42369
423702008-09-04 Felix Zielcke <fzielcke@z-51.de>
42371
42372 * config.guess: Update to latest version from config git.
42373 * config.sub: Likewise.
58b6645a 42374
9124f65d 423752008-09-03 Robert Millan <rmh@aybabtu.com>
42376
42377 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42378 `disk->total_sectors'.
42379
81a06771 423802008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 42381
42382 * include/grub/normal.h: Fixed incorrect comment for
42383 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42384
81a06771 423852008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 42386
42387 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42388 values with defines.
42389
42390 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42391 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42392 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42393 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42394 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42395 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42396 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42397 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42398 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42399 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42400 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42401 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42402 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42403 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42404 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42405 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42406 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42407 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42408 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42409
93d5cbf8 424102008-08-31 Robert Millan <rmh@aybabtu.com>
42411
42412 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42413 declaration.
42414 (grub_multiboot): Fix a few warnings.
42415
21751d50 424162008-08-31 Robert Millan <rmh@aybabtu.com>
42417
42418 * loader/i386/pc/multiboot.c: Update comment not to say that
42419 boot_device support is unimplemented.
42420
e27a75c5 424212008-08-31 Robert Millan <rmh@aybabtu.com>
42422
42423 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42424 or memory map support are unimplemented.
42425
81a06771 424262008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 42427
42428 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42429
81a06771 424302008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 42431
42432 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42433 total video memory in 'vbeinfo' output; show color format details for
42434 each video mode.
42435
7c5d8d95 424362008-08-30 Pavel Roskin <proski@gnu.org>
42437
42438 * util/genmoddep.c: Remove for real this time.
42439 * DISTLIST: Remove util/genmoddep.c.
42440
4cebd25a 424412008-08-30 Robert Millan <rmh@aybabtu.com>
42442
42443 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42444 as required by Multiboot spec (it was already 4-byte aligned, but
42445 only by chance).
42446
b497a269 424472008-08-29 Pavel Roskin <proski@gnu.org>
42448
e3925185 42449 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42450 * kern/powerpc/ieee1275/startup.S: ... this.
42451 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42452 * DISTLIST: Likewise.
42453
b497a269 42454 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42455 grub/cpu/kernel.h. Add start label for consistency with other
42456 platforms. Add grub_prefix immediately after start. Add jump
42457 to the code after grub_prefix.
42458 * include/grub/powerpc/kernel.h: Provide valid values for
42459 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42460
6e5a42fe 424612008-08-29 Bean <bean123ch@gmail.com>
42462
42463 * configure.ac: Change host_os to cygwin for mingw.
42464 (asprintf): New check for function.
42465
42466 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42467 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42468
42469 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 42470 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 42471 sync, sleep and grub_util_get_disk_size for mingw.
42472
42473 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42474 to get size in mingw.
42475 (open_device): Use flag O_BINARY if it's defined.
42476 (find_root_device): Add dummy code for mingw.
42477
42478 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42479 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42480 (get_scsi_disk_name): Return 0 for mingw.
42481
42482 * util/hostfs.c: #include <grub/util/misc.h>.
42483 (grub_hostfs_open): Use "rb" flag to open file, use
42484 grub_util_get_disk_size to get disk size for mingw.
42485
42486 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42487 (asprintf): New function if HAVE_ASPRINTF is not set.
42488 (sync): New function for mingw.
42489 (sleep): Likewise.
42490 (grub_util_get_disk_size): Likewise.
42491
ab3f2673 424922008-08-28 Pavel Roskin <proski@gnu.org>
42493
42494 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42495 kern/time.c.
42496
1c282483 424972008-08-28 Robert Millan <rmh@aybabtu.com>
42498
42499 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42500
678e849c 425012008-08-28 Robert Millan <rmh@aybabtu.com>
42502
42503 Change find_grub_drive() syntax so it doesn't prevent it from
42504 detecting NULL names as errors.
42505
42506 * util/biosdisk.c (find_grub_drive): Move free slot search code
42507 from here ...
42508 (find_free_slot): ... to here.
42509 (read_device_map): Use find_free_slot() to search for free slots.
42510
965c75ca 425112008-08-27 Marco Gerards <marco@gnu.org>
42512
42513 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42514 (scsi_mod_SOURCES): New variable.
42515 (scsi_mod_CFLAGS): Likewise
42516 (scsi_mod_LDFLAGS): Likewise.
42517
42518 * disk/scsi.c: New file.
42519
42520 * include/grub/scsi.h: Likewise.
42521
42522 * include/grub/scsicmd.h: Likewise.
42523
42524 * disk/ata.c: Include <grub/scsi.h>.
42525 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42526 instead.
42527 (grub_ata_iterate): Skip ATAPI devices.
42528 (grub_ata_open): Only handle ATAPI devices.
42529 (struct grub_atapi_read): Removed.
42530 (grub_atapi_readsector): Likewise.
42531 (grub_ata_read): No longer handle ATAPI devices.
42532 (grub_ata_write): Likewise.
42533 (grub_atapi_iterate): New function.
42534 (grub_atapi_read): Likewise.
42535 (grub_atapi_write): Likewise.
42536 (grub_atapi_open): Likewise.
42537 (grub_atapi_close): Likewise.
42538 (grub_atapi_dev): New variable.
42539 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42540 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42541
42542 * include/grub/disk.h (enum grub_disk_dev_id): Add
42543 `GRUB_DISK_DEVICE_SCSI_ID'.
42544
c07ae501 425452008-08-26 Robert Millan <rmh@aybabtu.com>
42546
42547 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42548 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42549 descriptive.
42550
5ed20adc 425512008-08-23 Bean <bean123ch@gmail.com>
42552
42553 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42554 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42555 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42556 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42557 dm_nv.mod.
42558 (raid5rec_mod_SOURCES): New macro.
42559 (raid5rec_mod_CFLAGS): Likewise.
42560 (raid5rec_mod_LDFLAGS): Likewise.
42561 (raid6rec_mod_SOURCES): Likewise.
42562 (raid6rec_mod_CFLAGS): Likewise.
42563 (raid6rec_mod_LDFLAGS): Likewise.
42564 (mdraid_mod_SOURCES): Likewise.
42565 (mdraid_mod_CFLAGS): Likewise.
42566 (mdraid_mod_LDFLAGS): Likewise.
42567 (dm_nv_mod_SOURCES): Likewise.
42568 (dm_nv_mod_CFLAGS): Likewise.
42569 (dm_nv_mod_LDFLAGS): Likewise.
42570
42571 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42572 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42573 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42574
42575 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42576 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42577
42578 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42579
42580 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42581
42582 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42583
42584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42585
42586 * disk/raid5_recover.c: New file.
42587
42588 * disk/raid6_recover.c: Likewise.
42589
42590 * disk/mdraid_linux.c: Likewise.
42591
42592 * disk/dmraid_nvidia.c: Likewise.
42593
42594 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42595 ULONG_MAX.
42596
42597 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42598 calculate the size of raid device.
42599 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42600 different layout of raid5.
42601 (grub_raid_scan_device): Remove code specific to mdraid.
42602 (grub_raid_list): New variable.
42603 (free_array): New function.
42604 (grub_raid_register): Likewise.
42605 (grub_raid_unregister): Likewise.
42606 (grub_raid_rescan): Likewise.
42607 (GRUB_MOD_INIT): Don't iterate device here.
42608 (GRUB_MOD_FINI): Use free_array to release resource.
42609
42610 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42611 (grub_raid5_recover_func_t): New function variable type.
42612 (grub_raid6_recover_func_t): Likewise.
42613 (grub_raid5_recover_func): New variable.
42614 (grub_raid6_recover_func): Likewise.
42615 (grub_raid_register): New function.
42616 (grub_raid_unregister): Likewise.
42617 (grub_raid_rescan): Likewise.
42618 (grub_raid_block_xor): Likewise.
42619
42620 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42621 (CMD_CRC): New macro.
42622 (part): Removed.
42623 (read_file): Handle device as well as file.
42624 (cmd_crc): New function.
42625 (fstest): Handle multiple disks.
42626 (options): Remove part, raw and long, add root and diskcount.
42627 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 42628 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 42629 add handling for the new options, support multiple disks.
42630
42631 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42632
29c18915 426332008-08-23 Bean <bean123ch@gmail.com>
42634
42635 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42636
42637 * genfslist.sh: Ignore kernel.mod.
42638
42639 * genpartmaplist.sh: Likewise.
42640
8415f261 426412008-08-23 Robert Millan <rmh@aybabtu.com>
42642
42643 * util/getroot.c (find_root_device): Skip anything that starts with
42644 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42645
d5a7dc5b 426462008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 42647
d5a7dc5b 42648 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42649 * util/grub.d/00_header.in: Allow the administrator to change default
42650 gfxmode via ${GRUB_GFXMODE}.
42651
380cfbb4 426522008-08-21 Felix Zielcke <fzielcke@z-51.de>
42653
42654 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42655
c9baafe7 426562008-08-21 Robert Millan <rmh@aybabtu.com>
42657
42658 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42659 loader.
42660 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42661 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42662
e290bef2 426632008-08-20 Carles Pina i Estany <carles@pina.cat>
42664
42665 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42666 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42667
f9dbfc96 426682008-08-19 Robert Millan <rmh@aybabtu.com>
42669
42670 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42671 (struct grub_virtual_screen): Remove `cursor_color'.
42672 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42673 initialization.
42674 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42675
dd6bd6ab 426762008-08-18 Robert Millan <rmh@aybabtu.com>
42677
42678 Unify (identical) linux_normal.c files.
42679 * loader/i386/efi/linux_normal.c: Move from here ...
42680 * loader/linux_normal.c: ... to here. Update all users.
42681 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42682 * loader/i386/ieee1275/linux_normal.c: Likewise.
42683
7f42f83e 426842008-08-18 Robert Millan <rmh@aybabtu.com>
42685
42686 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42687 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42688 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42689 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42690 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42691 New macros.
42692 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42693 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42694 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42695 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42696 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42697 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42698 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42699 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42700 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42701 portably using grub_getxy().
42702 Replace `-EFI' with `-bzImage' in boot message.
42703
38487ddb 427042008-08-17 Robert Millan <rmh@aybabtu.com>
42705
42706 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42707
deceb3ec 427082008-08-17 Robert Millan <rmh@aybabtu.com>
42709
42710 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42711
42712 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42713 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42714 (grub_machine_mmap_iterate): New function declaration.
42715 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42716 structure.
42717 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42718 macros.
42719
42720 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42721 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42722 Move e820 parsing from here ...
42723 * kern/i386/pc/mmap.c: New file.
42724 (grub_machine_mmap_iterate): ... to here.
42725
42726 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42727 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42728 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42729 (grub_available_iterate): Redeclare to return `void', and redeclare
42730 its hook to use grub_uint64_t as addr and size parameters, and rename
42731 to ...
42732 (grub_machine_mmap_iterate): ... this. Update all users.
42733
42734 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42735 to make it more readable. Rename to ...
42736 (grub_machine_mmap_iterate): ... this.
42737
42738 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42739 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42740 (grub_multiboot): Allocate an extra region after the payload, and fill
42741 it with a Multiboot memory map. Adjust a.out loader to calculate size
42742 with the extra space.
42743 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42744 with the extra space.
42745
f8aa0f43 427462008-08-17 Carles Pina i Estany <carles@pina.cat>
42747
9807deb9 42748 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 42749
605f5bb6 427502008-08-17 Felix Zielcke <fzielcke@z-51.de>
42751
42752 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42753 mdate-sh to the list `find' searches for.
42754 * DISTLIST: Regenerated.
42755
210db6c6 427562008-08-16 Felix Zielcke <fzielcke@z-51.de>
42757
42758 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42759 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 42760 genmoddep.awk, gensymlist.sh.in.
42761 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 42762 * DISTLIST: Regenerated.
48cdbfd4 42763 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 42764
1082b929 427652008-08-16 Robert Millan <rmh@aybabtu.com>
42766
42767 * disk/raid.c (grub_raid_init): Handle/report errors set by
42768 grub_device_iterate().
42769 * disk/lvm.c (grub_lvm_init): Likewise.
42770
42ce5170 427712008-08-15 Bean <bean123ch@gmail.com>
42772
42773 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42774 and datehook.mod.
42775 (datetime_mod_SOURCES): New macro.
42776 (datetime_mod_CFLAGS): Likewise.
42777 (datetime_mod_LDFLAGS): Likewise.
42778 (date_mod_SOURCES): Likewise.
42779 (date_mod_CFLAGS): Likewise.
42780 (date_mod_LDFLAGS): Likewise.
42781 (datehook_mod_SOURCES): Likewise.
42782 (datehook_mod_CFLAGS): Likewise.
42783 (datehook_mod_LDFLAGS): Likewise.
42784
42785 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42786 and datehook.mod.
42787 (datetime_mod_SOURCES): New macro.
42788 (datetime_mod_CFLAGS): Likewise.
42789 (datetime_mod_LDFLAGS): Likewise.
42790 (date_mod_SOURCES): Likewise.
42791 (date_mod_CFLAGS): Likewise.
42792 (date_mod_LDFLAGS): Likewise.
42793 (datehook_mod_SOURCES): Likewise.
42794 (datehook_mod_CFLAGS): Likewise.
42795 (datehook_mod_LDFLAGS): Likewise.
42796
42797 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42798 and datehook.mod.
42799 (datetime_mod_SOURCES): New macro.
42800 (datetime_mod_CFLAGS): Likewise.
42801 (datetime_mod_LDFLAGS): Likewise.
42802 (date_mod_SOURCES): Likewise.
42803 (date_mod_CFLAGS): Likewise.
42804 (date_mod_LDFLAGS): Likewise.
42805 (datehook_mod_SOURCES): Likewise.
42806 (datehook_mod_CFLAGS): Likewise.
42807 (datehook_mod_LDFLAGS): Likewise.
42808
42809 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42810 and datehook.mod.
42811 (datetime_mod_SOURCES): New macro.
42812 (datetime_mod_CFLAGS): Likewise.
42813 (datetime_mod_LDFLAGS): Likewise.
42814 (date_mod_SOURCES): Likewise.
42815 (date_mod_CFLAGS): Likewise.
42816 (date_mod_LDFLAGS): Likewise.
42817 (datehook_mod_SOURCES): Likewise.
42818 (datehook_mod_CFLAGS): Likewise.
42819 (datehook_mod_LDFLAGS): Likewise.
42820
42821 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42822 and datehook.mod.
42823 (datetime_mod_SOURCES): New macro.
42824 (datetime_mod_CFLAGS): Likewise.
42825 (datetime_mod_LDFLAGS): Likewise.
42826 (date_mod_SOURCES): Likewise.
42827 (date_mod_CFLAGS): Likewise.
42828 (date_mod_LDFLAGS): Likewise.
42829 (datehook_mod_SOURCES): Likewise.
42830 (datehook_mod_CFLAGS): Likewise.
42831 (datehook_mod_LDFLAGS): Likewise.
42832
42833 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42834
42835 * commands/date.c: New file.
42836
42837 * hook/datehook.c: Likewise.
42838
42839 * include/grub/lib/datetime.h: Likewise.
42840
42841 * include/grub/i386/cmos.h: Likewise.
42842
42843 * lib/datetime.c: Likewise.
42844
42845 * lib/i386/datetime.c: Likewise.
42846
42847 * lib/efi/datetime.c: Likewise.
42848
0e9242da 428492008-08-14 Robert Millan <rmh@aybabtu.com>
42850
42851 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42852 (grub_mkelfimage_SOURCES): New variable.
42853 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42854
42855 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42856 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42857 * conf/powerpc-ieee1275.rmk: Likewise.
42858 * conf/i386-ieee1275.rmk: Likewise.
42859
42860 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42861 * kern/i386/coreboot/init.c: Likewise.
42862
42863 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42864 with `<grub/cpu/kernel.h>'.
42865 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42866 to ...
42867 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42868 * kern/i386/coreboot/startup.S: Likewise.
42869
42870 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42871 (GRUB_MOD_GAP): Remove.
42872 * include/grub/powerpc/kernel.h: New file.
42873 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42874 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42875 * include/grub/i386/kernel.h: New file.
42876 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42877 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42878 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42879
42880 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42881 `grub-mkelfimage'.
42882 Use --directory when invoking grub_mkimage.
42883
42884 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42885 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42886 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42887 and GRUB_KERNEL_CPU_PREFIX.
42888
b86408f8 428892008-08-14 Felix Zielcke <fzielcke@z-51.de>
42890
d5e619ca 42891 * include/grub/err.h (grub_err_printf): New function prototype.
42892 * util/misc.c (grub_err_printf): New function.
42893 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42894 grub_printf.
42895 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 42896
7161f0e0 428972008-08-13 Robert Millan <rmh@aybabtu.com>
42898
42899 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42900
a1967522 429012008-08-13 Robert Millan <rmh@aybabtu.com>
42902
42903 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42904 boot entry.
42905
371458b5 429062008-08-12 Robert Millan <rmh@aybabtu.com>
42907
42908 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42909 of the relocation code from here ...
42910 (grub_multiboot): ... to here.
42911 (forward_relocator, backward_relocator): Move from here ...
42912 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42913 (grub_multiboot_backward_relocator): ... to here.
42914 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42915 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42916 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42917 (grub_multiboot_forward_relocator_end)
42918 (grub_multiboot_backward_relocator)
42919 (grub_multiboot_backward_relocator_end): New variables.
42920
05f9452b 429212008-08-12 Bean <bean123ch@gmail.com>
42922
42923 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42924
20024ab0 429252008-08-11 Robert Millan <rmh@aybabtu.com>
42926
42927 * kern/i386/linuxbios/startup.S: Move from here ...
42928 * kern/i386/coreboot/startup.S: ... to here.
42929
42930 * kern/i386/linuxbios/init.c: Move from here ...
42931 * kern/i386/coreboot/init.c: ... to here.
42932
42933 * kern/i386/linuxbios/table.c: Move from here ...
42934 * kern/i386/coreboot/mmap.c: ... to here.
42935
42936 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42937
e352e9cd 429382008-08-11 Robert Millan <rmh@aybabtu.com>
42939
42940 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42941 errors. Leave it to the upper layer to handle them.
42942
2d05bc6a 429432008-08-09 Christian Franke <franke@computer.org>
42944
42945 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42946 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42947 Install `grub.d/10_windows' only on Cygwin.
42948 * configure.ac: Add subst of `target_os'.
42949 Check `target_os' also before setting TARGET_OBJ2ELF.
42950 Add `--enable-grub-pe2elf'.
42951
042bd419 429522008-08-08 Robert Millan <rmh@aybabtu.com>
42953
42954 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42955 (grub_last_time): Change type to grub_uint64_t.
42956 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42957 (grub_disk_close): Likewise.
42958
42959 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42960 (run_menu): Migrate code from to using grub_get_time_ms().
42961
42962 * util/misc.c (grub_get_time_ms): New function.
42963
7f280db5 429642008-08-08 Marco Gerards <marco@gnu.org>
42965
42966 * disk/ata.c (grub_ata_regget): Change return type to
42967 `grub_uint8_t'.
42968 (grub_ata_regget2): Likewise.
42969 (grub_ata_wait_status): New function.
42970 (grub_ata_wait_busy): Removed function, updated all users to use
42971 `grub_ata_wait_status'.
42972 (grub_ata_wait_drq): Likewise.
42973 (grub_ata_cmd): New function.
42974 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42975 error handling.
42976 (grub_ata_pio_write): Add error handling.
42977 (grub_atapi_identify): Likewise.
42978 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42979 handling.
42980 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42981 handling. Actually use the detected registers. Reorder the
42982 detection logic such that it is easier to read.
42983 (grub_ata_pciinit): Do not assign the same ID to each controller.
42984 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42985 handling.
42986 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42987
42988 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42989
1fbc5e66 429902008-08-08 Marco Gerards <marco@gnu.org>
42991
42992 * NEWS: Update.
42993
819ce6c0 429942008-08-07 Bean <bean123ch@gmail.com>
42995
42996 * include/grub/x86_64/pci.h: New file.
42997
5c41d44d 429982008-08-07 Christian Franke <franke@computer.org>
42999
43000 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43001 (TIMER2_GATE): Likewise.
43002 (grub_pit_wait): Add enable/disable of the timer2 gate
43003 bit of port 0x61. This fixes a possible infinite loop.
43004
5ebc275d 430052008-08-07 Bean <bean123ch@gmail.com>
43006
43007 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43008 kern/i386/tsc.c and kern/i386/pit.c.
43009
43010 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43011 x86_64 platform.
43012
43013 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43014 <grub/i386/tsc.h>.
43015
43016 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43017
e383b3d0 430182008-08-07 Bean <bean123ch@gmail.com>
43019
43020 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43021
43022 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43023
43024 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43025 multiple inclusion. Add #include <grub/types.h>.
43026
1cbb58ac 430272008-08-06 Christian Franke <franke@computer.org>
43028
43029 * conf/common.rmk: Build and install `10_windows'.
43030 * util/grub.d/10_windows.in: New script.
43031
337f5a1e 430322008-08-06 Pavel Roskin <proski@gnu.org>
43033
43034 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43035
057bc4ac 430362008-08-06 Robert Millan <rmh@aybabtu.com>
43037
43038 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43039 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43040
2b99f123 430412008-08-06 Bean <bean123ch@gmail.com>
43042
43043 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43044 (grub_pxefs_fs_int): Remove dummy definition.
43045 (grub_pxefs_open): Use data->block_size to store the current block
43046 size setting.
43047 (grub_pxefs_read): Use block size stored in data->block_size. As the
43048 value of grub_pxe_blksize can be changed after the file is opened.
43049
9f0234cb 430502008-08-06 Bean <bean123ch@gmail.com>
43051
43052 * fs/i386/pc/pxe.c (curr_file): new variable.
43053 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43054 require the dummy internal file system anymore.
43055 (grub_pxefs_read): Removed.
43056 (grub_pxefs_close): Likewise.
43057 (grub_pxefs_fs_int): Likewise.
43058 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43059 connection when we switch file.
43060 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43061
a55d42e0 430622008-08-06 Robert Millan <rmh@aybabtu.com>
43063
43064 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43065 `halt.mod'.
43066 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43067 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43068
43069 * kern/i386/halt.c: New file.
43070 * kern/i386/reboot.c: Likewise.
43071 * include/grub/i386/reboot.h: Likewise.
43072 * include/grub/i386/halt.h: Likewise.
43073
43074 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43075 Include `<grub/cpu/halt.h>'.
43076 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43077 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43078
43079 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43080 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43081 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43082 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43083 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43084 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43085 from here ...
43086 * include/grub/i386/at_keyboard.h: ... to here.
43087
24371d26 430882008-08-05 Robert Millan <rmh@aybabtu.com>
43089
43090 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43091 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43092 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43093 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43094 `kern/generic/millisleep.c'.
43095
43096 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43097 instead of grub_get_rtc().
43098 (grub_tsc_init): Initialize `tsc_boot_time'.
43099
43100 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43101 (grub_machine_init): Use grub_tsc_init() rather than
43102 installing an RTC-based handler via grub_install_get_time_ms().
43103
43104 * kern/i386/pit.c: New file.
43105 * include/grub/i386/pit.h: Likewise.
43106
9e7007b3 431072008-08-05 Bean <bean123ch@gmail.com>
43108
43109 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43110
43111 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43112 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43113 (pxe_mod_SOURCES): New macro.
43114 (pxe_mod_CFLAGS): Likewise.
43115 (pxe_mod_LDFLAGS): Likewise.
43116 (pxecmd_mod_SOURCES): Likewise.
43117 (pxecmd_mod_CFLAGS): Likewise.
43118 (pxecmd_mod_LDFLAGS): Likewise.
43119
43120 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43121 (grub_pxe_call): Likewise.
43122
43123 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43124
43125 * commands/i386/pc/pxecmd.c: New file.
43126
9f0234cb 43127 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 43128
43129 * include/grub/i386/pc/pxe.h: Likewise.
43130
6977d49f 431312008-08-05 Bean <bean123ch@gmail.com>
43132
43133 * util/console.c (grub_console_cur_color): New variable.
43134 (grub_console_standard_color): Likewise.
43135 (grub_console_normal_color): Likewise.
43136 (grub_console_highlight_color): Likewise.
43137 (color_map): Likewise.
43138 (use_color): Likewise.
43139 (NUM_COLORS): New macro.
43140 (grub_ncurses_setcolorstate): Handle color properly.
43141 (grub_ncurses_setcolor): Don't change color here, just remember the
43142 settings, color will be set in grub_ncurses_setcolorstate.
43143 (grub_ncurses_getcolor): New function.
43144 (grub_ncurses_init): Initialize color pairs.
43145 (grub_ncurses_term): New member grub_ncurses_getcolor.
43146
9c2ff3ee 431472008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 43148
9c2ff3ee 43149 High resolution timer support. Implemented for x86 CPUs using TSC.
43150 Extracted generic grub_millisleep() so it's linked in only as needed.
43151 This requires a Pentium compatible CPU; if the RDTSC instruction is
43152 not supported, then it falls back on the generic grub_get_time_ms()
43153 implementation that uses the machine's RTC.
43154
43155 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43156 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43157 `kern/generic/millisleep.c'.
43158
43159 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43160 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43161
43162 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43163 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43164
43165 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43166
43167 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43168 `kern/generic/millisleep.c'.
43169
43170 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43171
43172 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43173
43174 * kern/generic/rtc_get_time_ms.c: New file.
43175
43176 * kern/generic/millisleep.c: New file.
337f5a1e 43177
9c2ff3ee 43178 * kern/misc.c: Don't include
43179 <kern/time.h> anymore.
43180 (grub_millisleep_generic): Removed.
43181
43182 * commands/sleep.c (grub_interruptible_millisleep): Uses
43183 grub_get_time_ms() instead of grub_get_rtc().
43184
43185 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43186 function.
43187 (grub_cpu_is_cpuid_supported): New inline function.
43188 (grub_cpu_is_tsc_supported): New inline function.
43189 (grub_tsc_init): New function prototype.
43190 (grub_tsc_get_time_ms): New function prototype.
43191
43192 * kern/i386/tsc.c (grub_get_time_ms): New file.
43193
43194 * include/grub/time.h: Include <grub/types.h.
43195 (grub_millisleep_generic): Removed.
43196 (grub_get_time_ms): New prototype.
43197 (grub_install_get_time_ms): New prototype.
43198 (grub_rtc_get_time_ms): New prototype.
43199
43200 * kern/time.c (grub_get_time_ms): New function.
43201 (grub_install_get_time_ms): New function.
43202
43203 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43204 <grub/time.h> anymore.
43205 (grub_millisleep): Removed.
43206 (grub_machine_init): Call grub_tsc_init.
43207
43208 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43209 get_time_ms() implementation.
43210
43211 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43212 (ieee1275_get_time_ms): New function.
43213 (grub_machine_init): Install get_time_ms() implementation.
43214
43215 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43216 (grub_machine_init): Call grub_tsc_init().
43217 (grub_millisleep): Removed.
bf06a93f 43218
9c2ff3ee 43219 * kern/ieee1275/init.c (grub_millisleep): Removed.
43220 (grub_machine_init): Install ieee1275_get_time_ms()
43221 implementation.
43222 (ieee1275_get_time_ms): New function.
43223 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43224 real work.
43225
9ec92aaf 432262008-08-05 Marco Gerards <marco@gnu.org>
43227
43228 * disk/ata.c: Include <grub/pci.h>.
43229 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43230 (grub_ata_initialize): Rewritten.
43231 (grub_ata_device_initialize): New function.
43232
8d23f507 432332008-08-04 Pavel Roskin <proski@gnu.org>
43234
43235 * kern/main.c: Include grub/mm.h.
43236
5e15ee3d 432372008-08-04 Robert Millan <rmh@aybabtu.com>
43238
43239 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43240 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43241 corruption problem).
43242
a9053f8f 432432008-08-04 Robert Millan <rmh@aybabtu.com>
43244
43245 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43246 warnings introduced in my last commit.
43247
dd19c7d7 432482008-08-03 Robert Millan <rmh@aybabtu.com>
43249
43250 Make PCI available on all i386 architectures.
43251
43252 * include/grub/i386/pc/pci.h: Move from here ...
43253 * include/grub/i386/pci.h: ... to here.
43254
43255 * include/grub/i386/pc/pci.h: Remove.
43256 * include/grub/i386/efi/pci.h: Remove.
43257 * include/grub/x86_64/efi/pci.h: Remove.
43258
43259 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43260 `<grub/cpu/pci.h>'.
43261
43262 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43263 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43264 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43265
43266 * conf/i386-ieee1275.rmk: Likewise.
43267
e14a6184 432682008-08-03 Robert Millan <rmh@aybabtu.com>
43269
43270 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43271 (grub_console_setcursor): Make it possible to set cursor off.
43272
52768e37 432732008-08-03 Robert Millan <rmh@aybabtu.com>
43274
43275 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43276 of modules instead of assuming which platform provides what.
43277 * util/update-grub.in: Likewise.
43278
2d52f57f 432792008-08-03 Robert Millan <rmh@aybabtu.com>
43280
43281 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43282 instead of `grub_install_dos_part' to determine whether a drive needs
43283 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 43284 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 43285
2a5cd121 432862008-08-02 Robert Millan <rmh@aybabtu.com>
43287
43288 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43289
93808428 432902008-08-02 Robert Millan <rmh@aybabtu.com>
43291
43292 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43293 of informational grub_dprintf() calls.
43294
3bd0a12a 432952008-08-02 Robert Millan <rmh@aybabtu.com>
43296
43297 * disk/memdisk.c (memdisk_size): Don't initialize.
43298 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43299
43300 * include/grub/i386/pc/kernel.h
43301 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43302 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43303 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43304 (grub_arch_memdisk_size): Remove.
43305
43306 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43307 field (was only used to transfer a constant). Add `type' field to
43308 support multiple module types.
43309 (grub_module_iterate): New function.
43310
43311 * kern/device.c (grub_device_open): Do not hide error messages
43312 when grub_disk_open() fails. Use grub_print_error() instead.
43313
43314 * kern/i386/pc/init.c (grub_arch_modules_addr)
43315 (grub_arch_memdisk_size): Remove functions.
43316 (grub_arch_modules_addr): Return the module address in high memory
43317 (now that it isn't copied anymore).
43318
43319 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43320 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43321 decompression routine (grub_total_module_size already includes that
43322 now). Don't copy modules back to low memory.
43323
43324 * kern/main.c: Include `<grub/mm.h>'.
43325 (grub_load_modules): Split out (and use) ...
43326 (grub_module_iterate): ... this function, which iterates through
43327 module objects and runs a hook.
43328 Comment out grub_mm_init_region() call, as it would cause non-ELF
43329 modules to be overwritten.
43330
43331 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43332 the memdisk image in its own region, make it part of the module list.
43333 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43334 (main): Parse --memdisk|-m option, and pass user-provided path as
43335 parameter to generate_image().
43336 (add_segments): Pass `memdisk_path' down to load_modules().
43337 (load_modules): Embed memdisk image in module section when requested.
43338 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43339 `header.type' instead of `header.offset'.
43340
43341 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43342 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43343 (memdisk_mod_LDFLAGS): New variables.
43344 * conf/i386-coreboot.rmk: Likewise.
43345 * conf/i386-ieee1275.rmk: Likewise.
43346
a927cc73 433472008-08-02 Robert Millan <rmh@aybabtu.com>
43348
43349 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43350 (backward_relocator): New variables. Used to allocate and relocate
43351 the payload, respectively.
43352 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 43353 address, install the appropriate relocator code in each bound of
a927cc73 43354 the payload, and set the entry point such that
43355 grub_multiboot_real_boot() will jump to one of them.
43356
43357 * kern/i386/loader.S (grub_multiboot_payload_size)
43358 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43359 (grub_multiboot_payload_entry_offset): New variables.
43360 (grub_multiboot_real_boot): Set cpu context to what the relocator
43361 expects, and jump to the relocator instead of the payload.
43362
43363 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43364 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43365 (grub_multiboot_payload_entry_offset): Export.
43366
b15d8a0c 433672008-08-01 Bean <bean123ch@gmail.com>
43368
43369 * normal/menu_entry.c (editor_getline): Don't return the original
43370 string as result, as it will be released by lexer once it has done
43371 using it.
43372
cdfb3d22 433732008-08-01 Robert Millan <rmh@aybabtu.com>
43374
43375 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43376 within menuentries, not before them.
43377 util/grub.d/10_hurd.in: Likewise.
43378
9175e93d 433792008-08-01 Bean <bean123ch@gmail.com>
43380
43381 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43382 (bufio_mod_SOURCES): New macro.
43383 (bufio_mod_CFLAGS): Likewise.
43384 (bufio_mod_LDFLAGS): Likewise.
43385
43386 * include/grub/bufio.h: New file.
43387
43388 * io/bufio.c: Likewise.
43389
43390 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43391 (grub_video_reader_png): Use grub_buffile_open to open file.
43392
43393 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43394 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43395
43396 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43397 (grub_video_reader_tga): Use grub_buffile_open to open file.
43398
43399 * font/manager.c: Include <grub/bufio.h>.
43400 (add_font): Use grub_buffile_open to open file.
43401
3d8383e7 434022008-07-31 Robert Millan <rmh@aybabtu.com>
43403
43404 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43405 ELF segments, use a macro for arbitrarily accessing any of them instead
43406 of preparing a pointer that allows access to one at a time.
43407 (grub_multiboot_load_elf64): Likewise.
43408
16e641b6 434092008-07-31 Bean <bean123ch@gmail.com>
43410
43411 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43412 GRUB_KERNEL_MACHINE_DATA_END.
43413
59198b72 434142008-07-30 Robert Millan <rmh@aybabtu.com>
43415
43416 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43417 Increase from 0x50 to 0x60.
43418 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43419 use UUIDs to identify the root drive for them. If that's not
43420 possible, abort.
43421 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43422 check, for cross-disk installs.
43423
ae88bca3 434242008-07-30 Robert Millan <rmh@aybabtu.com>
43425
43426 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43427 is non-empty, use it to set the `prefix' environment variable instead
43428 of the usual approach.
43429 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43430 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43431 environment variable instead of dummy make_install_device().
43432
43433 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43434 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 43435 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 43436
43437 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43438 New variable reference.
43439 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43440 New macro. Defines offset of `grub_prefix' within startup.S (relative
43441 to `start').
43442 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43443 section within startup.S (relative to `start').
43444 * include/grub/i386/coreboot/kernel.h: Likewise.
43445
43446 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43447 Overwrite grub_prefix with its contents, at the beginning of the
43448 first segment.
43449 (main): Understand -p|--prefix.
43450
14f41dd1 434512008-07-30 Robert Millan <rmh@aybabtu.com>
43452
43453 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43454
4ca049a3 434552008-07-30 Robert Millan <rmh@aybabtu.com>
43456
43457 * term/i386/pc/vga_text.c (grub_console_cls): Use
43458 grub_console_gotoxy() to go back to beginning of the screen.
43459 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43460
2921d337 434612008-07-29 Christian Franke <franke@computer.org>
43462
43463 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43464 Add conversion of emulated mount points on Cygwin.
43465
b609876d 434662008-07-29 Christian Franke <franke@computer.org>
43467
43468 * util/update-grub.in: Add a check for admin
43469 group on Cygwin.
43470 Remove old `grub.cfg.new' before creation.
43471 Add `-f' to `mv' to handle the different filesystem
43472 semantics of Windows.
43473
e93e4679 434742008-07-29 Bean <bean123ch@gmail.com>
43475
43476 * normal/main.c (get_line): Fix buffer overflow bug.
43477
41694fd0 434782008-07-28 Robert Millan <rmh@aybabtu.com>
43479
43480 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43481 (struct grub_apple_header): New struct. Describes the layout of
43482 the partmap header.
43483 (apple_partition_map_iterate): Check the header magic as well as the
43484 partition magic (which was already being checked).
43485
cfd0b4e6 434862008-07-28 Pavel Roskin <proski@gnu.org>
43487
43488 * genmk.rb: Add a warning to the beginning of the output that
43489 it's a generated file and should not be edited.
43490
93cce016 434912008-07-28 Robert Millan <rmh@aybabtu.com>
43492
43493 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43494 with the same number are found, just use issue a warning with
43495 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 43496
cd1df915 434972008-07-27 Robert Millan <rmh@aybabtu.com>
43498
43499 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43500 information.
43501
b70a8427 435022008-07-27 Bean <bean123ch@gmail.com>
43503
43504 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43505 (grub_fat_find_dir): Ignore case when comparing filename.
43506
8f5e379f 435072008-07-27 Bean <bean123ch@gmail.com>
43508
43509 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43510 smallino, as it's more descriptive, and i8count can be confused with
43511 the other field count.
43512 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43513 inode type.
43514
a85cd5a0 435152008-07-27 Bean <bean123ch@gmail.com>
43516
43517 * commands/crc.c: New file.
43518
43519 * lib/crc.c: Likewise.
43520
43521 * include/grub/lib/crc.h: Likewise.
43522
43523 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43524
43525 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43526 (hexdump): Move this function to ...
43527
43528 * lib/hexdump.c: ... here.
43529
43530 * include/grub/hexdump.h: Renamed to ...
43531
43532 * include/grub/lib/hexdump.h: ... this.
43533
43534 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43535
43536 * util/grub-editenv.c: Likewise.
43537
43538 * include/envblk.h: Renamed to ...
43539
43540 * include/lib/envblk.h: ... this.
43541
43542 * util/envblk.c: Renamed to ...
43543
43544 * lib/envblk.c: ... this.
43545
43546 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43547 lib/hexdump.c.
43548 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43549 (pkglib_MODULES): Add crc.mod.
43550 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43551 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43552 (crc_mod_SOURCES): New macro.
43553 (crc_mod_CFLAGS): Likewise.
43554 (crc_mod_LDFLAGS): Likewise.
43555
43556 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43557
43558 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43559
43560 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43561
43562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43563
43564 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43565
c298def0 435662008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 43567
43568 * commands/help.c: Include <grub/term.h>.
43569 (TERM_WIDTH): Removed. Updated all users.
43570
cc349fb3 435712008-07-27 Pavel Roskin <proski@gnu.org>
43572
43573 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43574 spurious warnings about a comment within a comment.
43575
9051607e 435762008-07-25 Robert Millan <rmh@aybabtu.com>
43577
43578 * util/getroot.c (find_root_device): Skip devices that match
43579 /dev/dm-[0-9]. This lets the real device be found for any type of
43580 abstraction (LVM, EVMS, RAID..).
43581 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43582 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43583 device is found first, find_root_device() will now skip it.
43584
01453bfc 435852008-07-24 Pavel Roskin <proski@gnu.org>
43586
43587 * include/grub/types.h: Use __builtin_bswap32() and
43588 __builtin_bswap64() with gcc 4.3 and newer.
43589
6af9849f 435902008-07-24 Christian Franke <franke@computer.org>
43591
3a0fa256 43592 * util/i386/pc/grub-install.in: If `--debug' is specified,
43593 pass `--verbose' to grub-setup.
43594 Abort script if make_system_path_relative_to_its_root() fails.
43595
7810e747 435962008-07-24 Bean <bean123ch@gmail.com>
43597
43598 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43599 variable `target_platform' should be `platform'.
43600
42290e17 436012008-07-24 Bean <bean123ch@gmail.com>
43602
51cc5193 43603 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 43604 (grub_png_init_fixed_block): New function.
43605 (grub_png_decode_image_data): Handle fixed huffman code compression.
43606
2a8a80e4 436072008-07-24 Bean <bean123ch@gmail.com>
43608
43609 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43610 (grub_pe2elf_SOURCES): New macro.
43611 (CLEANFILES): Add grub-pe2elf.
43612
43613 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43614 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43615 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43616 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43617 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43618 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43619 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43620 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43621 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43622 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43623 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43624 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43625 (GRUB_PE32_DT_FUNCTION): Likewise.
43626 (GRUB_PE32_REL_I386_DIR32): Likewise.
43627 (GRUB_PE32_REL_I386_REL32): Likewise.
43628 (grub_pe32_symbol): New structure.
43629 (grub_pe32_reloc): Likewise.
43630
43631 * util/grub-pe2elf.c: New file.
43632
43633 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43634 start symbol in non pc platform.
43635
43636 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43637
43638 The following patches are from Christian Franke.
43639
43640 * include/grub/dl.h: Remove .previous, gas supports this only
43641 for ELF format.
43642
43643 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43644 Remove .type, gas supports this only for ELF format.
43645
43646 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43647 nullbytes in symbol table. This fixes an infinite loop if table is
43648 zero filled.
43649
43650 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43651 TARGET_IMG_LDFLAGS and EXEEXT.
43652
43653 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43654 TARGET_IMG_LDFLAGS_AC.
43655 (grub_CHECK_STACK_ARG_PROBE): New function.
43656
43657 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43658
43659 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43660
43661 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43662 to set TARGET_IMG_LD* accordingly.
43663 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43664 Add call to grub_CHECK_STACK_ARG_PROBE.
43665 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43666
43667 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43668
43669 * genmk.rb: Add EXEEXT to CLEANFILES.
43670
12ccdb75 436712008-07-23 Robert Millan <rmh@aybabtu.com>
43672
43673 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43674 define the codes for arrows and lines used for the menu).
43675 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43676 as well.
43677
43678 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43679 fonts, because the latter are too slow.
43680
18eeaf04 436812008-07-21 Bean <bean123ch@gmail.com>
43682
43683 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43684 a20. Run keyboard test last, as it will cause macbook to halt.
43685
b095e2ad 436862008-07-18 Pavel Roskin <proski@gnu.org>
43687
43688 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43689 load foreign architecture modules correctly anyway. Keep
43690 support for loading host architecture modules, whether we
43691 compile them or not.
43692
737feb35 436932008-07-17 Pavel Roskin <proski@gnu.org>
43694
3f4ce737 43695 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43696 change target_cpu. The compiler default can mismatch target_cpu
43697 in any case.
43698
4ad2d049 43699 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43700 * kern/efi/efi.c: Likewise.
43701
f6130a12 43702 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43703 target compiler is functional.
43704 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43705 are set up.
43706
58393a2d 43707 * configure.ac: Default to efi platform for x86_64-apple. Allow
43708 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43709 adjustments from the rest, only do them if target is not
43710 explicitly given. Merge other adjustments with the final sanity
43711 check. Remove an extraneous check for supported CPU. Be
43712 specific which CPU and which platform is not supported.
43713
737feb35 43714 * configure.ac: Default to pc platform for x86_64.
43715
546f966a 437162008-07-17 Robert Millan <rmh@aybabtu.com>
43717
43718 Partial LinuxBIOS -> Coreboot rename.
43719
43720 * conf/i386-linuxbios.rmk: Renamed to ...
43721 * conf/i386-coreboot.rmk: ... this.
43722 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43723 * configure.ac: Accept "coreboot" as input platform (but maintain
43724 compatibility with "linuxbios").
43725 * include/grub/i386/linuxbios: Renamed to ...
43726 * include/grub/i386/coreboot: ... this.
43727
20011694 437282008-07-17 Bean <bean123ch@gmail.com>
43729
43730 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 43731 (appleldr_mod_SOURCE): New variable.
20011694 43732 (appleldr_mod_CFLAGS): Likewise.
43733 (appleldr_mod_LDFLAGS): Likewise.
43734 (pci_mod_SOURCES): Likewise.
43735 (pci_mod_CFLAGS): Likewise.
43736 (pci_mod_LDFLAGS): Likewise.
43737 (lspci_mod_SOURCES): Likewise.
43738 (lspci_mod_CFLAGS): Likewise.
43739 (lspci_mod_LDFLAGS): Likewise.
43740
43741 * conf/x86_64-efi.rmk: New file.
43742
43743 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43744 macro.
43745 (grub_efidisk_write): Likewise.
43746
43747 * include/efi/api.h (efi_call_0): New macro.
43748 (efi_call_1): Likewise.
43749 (efi_call_2): Likewise.
43750 (efi_call_3): Likewise.
43751 (efi_call_4): Likewise.
43752 (efi_call_5): Likewise.
43753 (efi_call_6): Likewise.
43754
43755 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43756 grub_rescue_cmd_chainloader.
43757
43758 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43759 (grub_pe32_optional_header): Change some fields based on i386 or
43760 x86_64 platform.
43761 (GRUB_PE32_PE32_MAGIC): Likewise.
43762
43763 * include/grub/efi/uga_draw.h: New file.
43764
43765 * include/grub/elf.h (STN_ABS): New constant.
43766 (R_X86_64_NONE): Relocation constant for x86_64.
43767 (R_X86_64_64): Likewise.
43768 (R_X86_64_PC32): Likewise.
43769 (R_X86_64_GOT32): Likewise.
43770 (R_X86_64_PLT32): Likewise.
43771 (R_X86_64_COPY): Likewise.
43772 (R_X86_64_GLOB_DAT): Likewise.
43773 (R_X86_64_JUMP_SLOT): Likewise.
43774 (R_X86_64_RELATIVE): Likewise.
43775 (R_X86_64_GOTPCREL): Likewise.
43776 (R_X86_64_32): Likewise.
43777 (R_X86_64_32S): Likewise.
43778 (R_X86_64_16): Likewise.
43779 (R_X86_64_PC16): Likewise.
43780 (R_X86_64_8): Likewise.
43781 (R_X86_64_PC8): Likewise.
43782
43783 * include/grub/i386/efi/pci.h: New file.
43784
43785 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43786 Change it value based on platform.
43787 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43788 (GRUB_E820_RAM): Likewise.
43789 (GRUB_E820_RESERVED): Likewise.
43790 (GRUB_E820_ACPI): Likewise.
43791 (GRUB_E820_NVS): Likewise.
43792 (GRUB_E820_EXEC_CODE): Likewise.
43793 (GRUB_E820_MAX_ENTRY): Likewise.
43794 (grub_e820_mmap): New structure.
43795 (linux_kernel_header): Change the efi field according to different
43796 kernel version, also field from linux_kernel_header.
43797
43798 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43799
43800 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43801 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43802 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43803 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43804 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43805 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43806 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43807 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43808 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43809 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43810
43811 * include/grub/x86_64/efi/kernel.h: New file.
43812
43813 * include/grub/x86_64/efi/loader.h: Likewise.
43814
43815 * include/grub/x86_64/efi/machine.h: Likewise.
43816
43817 * include/grub/x86_64/efi/pci.h: Likewise.
43818
43819 * include/grub/x86_64/efi/time.h: Likewise.
43820
43821 * include/grub/x86_64/linux.h: Likewise.
43822
43823 * include/grub/x86_64/setjmp.h: Likewise.
43824
43825 * include/grub/x86_64/time.h: Likewise.
43826
43827 * include/grub/x86_64/types.h: Likewise.
43828
43829 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43830 GRUB_TARGET_SIZEOF_VOID_P.
43831
43832 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43833 (grub_efi_locate_handle): Likewise.
43834 (grub_efi_open_protocol): Likewise.
43835 (grub_efi_set_text_mode): Likewise.
43836 (grub_efi_stall): Likewise.
43837 (grub_exit): Likewise.
43838 (grub_reboot): Likewise.
43839 (grub_halt): Likewise.
43840 (grub_efi_exit_boot_services): Likewise.
43841 (grub_get_rtc): Likewise.
43842
43843 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43844 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43845 (grub_efi_allocate_pages): Wrap efi calls.
43846 (grub_efi_free_pages): Wrap efi calls.
43847 (grub_efi_get_memory_map): Wrap efi calls.
43848
43849 * kern/x86_64/dl.c: New file.
43850
43851 * kern/x86_64/efi/callwrap.S: Likewise.
43852
43853 * kern/x86_64/efi/startup.S: Likewise.
43854
43855 * loader/efi/appleloader.c: Likewise.
43856
43857 * loader/efi/chainloader.c (cmdline): New variable.
43858 (grub_chainloader_unload): Wrap efi calls.
43859 (grub_chainloader_boot): Likewise.
43860 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43861 command line.
43862
43863 * loader/efi/chainloader_normal.c (chainloader_command):
43864 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43865 command line.
43866
43867 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43868 method.
43869 (grub_e820_add_region): New function.
43870 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43871 booting.
43872 (grub_find_video_card): New function.
43873 (grub_linux_setup_video): New function.
43874 (grub_rescue_cmd_linux): Probe for video information.
43875
43876 * normal/x86_64/setjmp.S: New file.
43877
43878 * term/efi/console.c (map_char): New function.
43879 (grub_console_putchar): Map unicode char.
43880 (grub_console_checkkey): Wrap efi calls.
43881 (grub_console_getkey): Likewise.
43882 (grub_console_getwh): Likewise.
43883 (grub_console_gotoxy): Likewise.
43884 (grub_console_cls): Likewise.
43885 (grub_console_setcolorstate): Likewise.
43886 (grub_console_setcursor): Likewise.
43887
43888 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43889
59652a20 438902008-07-16 Pavel Roskin <proski@gnu.org>
43891
ef294055 43892 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43893 format strings.
43894
59652a20 43895 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43896 pointer, not an integer. This fixes a warning and prevents
43897 precision loss on 64-bit systems.
43898 (relocate_addresses): Remove unneeded cast.
43899
afc3b5d7 439002008-07-15 Pavel Roskin <proski@gnu.org>
43901
506b2b3e 43902 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43903
62ead89c 43904 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43905
c4cd51d7 43906 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43907 Fix comparison between signed and unsigned.
43908
0d3d8f28 43909 * include/grub/i386/ieee1275/console.h: Declare
43910 grub_console_init() and grub_console_fini().
43911
8804b286 43912 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43913 It's empty and unused.
43914
ee01cf35 43915 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43916 beginning to avoid warnings with some compilers.
43917
afc3b5d7 43918 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43919 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43920
e4e8eaa5 439212008-07-14 Pavel Roskin <proski@gnu.org>
43922
407aceb4 43923 * kern/env.c (grub_register_variable_hook): Don't copy empty
43924 string, it leaks memory. Pass "" to grub_env_set(), it should
43925 handle constant strings.
43926
e4e8eaa5 43927 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43928 * commands/cmp.c (grub_cmd_cmp): Likewise.
43929 * kern/dl.c (grub_dl_flush_cache): Likewise.
43930 (grub_dl_load_core): Likewise.
43931 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43932 (grub_elf64_load_phdrs): Likewise.
43933
d4e2dad3 439342008-07-13 Pavel Roskin <proski@gnu.org>
43935
43936 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43937 between signed and unsigned.
43938 (LzmaEnc_Finish): Fix warning about an unused parameter.
43939
aa24b516 439402008-07-13 Bean <bean123ch@gmail.com>
43941
43942 * Makefile.in (enable_lzo): New rule.
43943
43944 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43945
43946 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43947
43948 * boot/i386/pc/lnxboot.S: #include <config.h>.
43949
43950 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 43951 its value according to the compression algorithm used, lzo or lzma.
aa24b516 43952
43953 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43954 compression algorithm according to configure macro.
43955
43956 * kern/i386/pc/startup.S (codestart): Likewise.
43957
43958 * kern/i386/pc/lzma_decode.S: New file.
43959
43960 * include/grub/lib/LzFind.h: Likewise.
43961
43962 * include/grub/lib/LzHash.h: Likewise.
43963
43964 * include/grub/lib/LzmaDec.h: Likewise.
43965
43966 * include/grub/lib/LzmaEnc.h: Likewise.
43967
43968 * include/grub/lib/LzmaTypes.h: Likewise.
43969
43970 * lib/LzFind.c: Likewise.
43971
43972 * lib/LzmaDec.c: Likewise.
43973
43974 * lib/LzmaEnc.c: Likewise.
43975
4ae821ac 439762008-07-13 Bean <bean123ch@gmail.com>
43977
43978 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43979 (grub_ext4_extent_header): New structure.
43980 (grub_ext4_extent): Likewise.
43981 (grub_ext4_extent_idx): Likewise.
43982 (grub_ext4_find_leaf): New function.
43983 (grub_ext2_read_block): Handle extents.
43984
9a745147 439852008-07-12 Robert Millan <rmh@aybabtu.com>
43986
43987 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43988
d49a4cf6 439892008-07-11 Robert Millan <rmh@aybabtu.com>
43990
43991 * util/grub.d/40_custom.in: New file. Example on how to add custom
43992 entries to /etc/grub.d.
43993 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43994 40_custom (implicitly, by merging all the grub.d rules).
43995
947414b4 439962008-07-11 Pavel Roskin <proski@gnu.org>
43997
0059cf6f 43998 * commands/read.c (grub_getline): Fix invalid memory access.
43999 Don't add newline to the variable value.
44000
947414b4 44001 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44002 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44003 (serial_hw_get_port): Check validity of the port number.
44004 (grub_cmd_serial): Check return value of serial_hw_get_port().
44005
62a02d00 440062008-07-07 Pavel Roskin <proski@gnu.org>
44007
44008 * boot/i386/pc/diskboot.S (notification_string): Replace
44009 "Loading kernel" with just "loading". This is shorter, less
44010 confusing and saves a few bytes for possible future changes.
44011
3e5581b0 440122008-07-05 Pavel Roskin <proski@gnu.org>
44013
ea387a48 44014 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44015 size for ATAPI devices, they are undefined. Output sector
44016 number in decimal form.
44017
3e5581b0 44018 * disk/ata.c: Use named constants for status bits.
44019
fdecb8fd 440202008-07-04 Pavel Roskin <proski@gnu.org>
44021
bcd35b90 44022 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44023 grub_addr_t before casting it to the void pointer to fix a
44024 warning. Non-addressable regions are discarded earlier.
44025 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44026 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44027 (check_signature): Don't shadow table_header.
44028 (grub_linuxbios_table_iterate): Cast numeric constants to
44029 grub_linuxbios_table_header_t.
44030 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44031 grub_stop().
44032
af58ab3d 44033 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44034 prevent warnings.
44035
1759aa57 44036 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44037 pointer, which can cause warnings. Support 64-bit addresses.
44038
fdecb8fd 44039 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44040 of sizeof(long). This fixes PowerPC image generation on x86_64.
44041
8516d2a8 440422008-07-04 Robert Millan <rmh@aybabtu.com>
44043
44044 This fixes a performance issue when pc & gpt partmap iterators
44045 didn't abort iteration even after our hook found what it was
fe987087 44046 looking for (often causing expensive probes of non-existent drives).
8516d2a8 44047
44048 Some callers relied on previous buggy behaviour, since they would
34c44600 44049 raise an error when their own hooks caused early abortion of its
8516d2a8 44050 iteration.
44051
44052 * kern/device.c (grub_device_open): Improve error message.
44053 * disk/lvm.c (grub_lvm_open): Likewise.
44054 * disk/raid.c (grub_raid_open): Likewise.
44055
44056 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44057 when hook requests it, independently of grub_errno.
44058 (pc_partition_map_probe): Do not fail when find_func() caused
44059 early abortion of pc_partition_map_iterate().
44060
44061 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44062 when hook requests it, independently of grub_errno.
44063 (gpt_partition_map_probe): Do not fail when find_func() caused
44064 early abortion of gpt_partition_map_iterate().
44065
44066 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44067 when hook requests it, independently of grub_errno. Do not fail when
44068 part_map_iterate_hook() caused early abortion of p->iterate().
44069
44070 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44071 when grub_partition_iterate() returned with non-zero.
44072
277d0de9 440732008-07-03 Pavel Roskin <proski@gnu.org>
44074
44075 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44076 like we do in grub_ata_pio_read().
44077 (grub_ata_readwrite): Always write individual sectors. Fix the
44078 sector count for the remainder.
44079 (grub_ata_write): Enable writing to ATA devices. Correctly
44080 report error for ATAPI devices.
44081
d4c9b428 440822008-07-02 Pavel Roskin <proski@gnu.org>
44083
e43fc690 44084 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44085 warning.
44086
f707af42 44087 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44088 for every read sector, we already increment it for the whole
44089 batch. This fixes reading more than 256 sectors at once.
44090
11e16b15 44091 * util/grub-editenv.c (cmd_info): Cast argument to long
44092 explicitly. ptrdiff_t reduces to int on i386.
44093
cbabfdd4 44094 * util/grub-editenv.c (main): Be specific which parameter is
44095 missing.
44096
b8fbce0a 44097 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44098 (memdisk): Make memdisk_orig_addr a pointer.
44099
c9c8e606 44100 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44101 for file offsets, use grub_off_t instead. Fix printf format
44102 warnings.
44103
ca62e598 44104 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44105 there. Real unexpected warnings should not drown in the noise
44106 about known problems.
44107
ce8d1766 44108 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44109 grub_disk_addr_t for memory addresses.
44110
00c7a56a 44111 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44112 explicitly to fix a warning.
44113
08d3ef09 44114 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44115
cb71ba20 44116 * Makefile.in (MODULE_LDFLAGS): New variable.
44117 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44118 the linker accepts --build-id=none.
44119 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44120 MODULE_LDFLAGS.
44121 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44122
d4c9b428 44123 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44124 those in Linux XFS code. Provide a way to access 64-bit parent
44125 inode.
44126 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44127 the end of struct grub_xfs_dir_header.
44128
d4156eee 441292008-07-02 Bean <bean123ch@gmail.com>
44130
44131 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44132 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44133 and GRUB_IEEE1275_FLAG_NO_ANSI.
44134
44135 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44136 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44137 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44138
44139 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44140 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44141
44142 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44143 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44144
44145 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44146 esc sequence on non ANSI terminal.
44147 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44148
44149 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44150 beginning of file.
44151
2270f77b 441522008-07-02 Bean <bean123ch@gmail.com>
44153
44154 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44155 (grub_editenv_SOURCES): New variable.
44156 (pkglib_MODULES): Add loadenv.mod.
44157 (loadenv_mod_SOURCES): New variable.
44158 (loadenv_mod_CFLAGS): Likewise.
44159 (loadenv_mod_LDFLAGS): Likewise.
44160
44161 * include/grub/envblk.h: New file.
44162
44163 * util/envblk.c: New file.
44164
44165 * util/grub-editenv.c: New file.
44166
44167 * commands/loadenv.c: New file.
44168
0e9e51ec 441692008-07-01 Pavel Roskin <proski@gnu.org>
44170
d89b7634 44171 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44172 not unsigned char. This fixes warnings and is consistent with
44173 other tags.
44174
bf1835b1 44175 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44176
8222a04b 44177 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44178
6a42d99d 44179 * term/tparm.c (analyze): Always set *popcount.
44180
10b159d1 44181 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44182 cast to fix a warning.
44183
b8789f6c 44184 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44185 cast to suppress a warning.
44186
29d7e38a 44187 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44188 grub_fshelp_read_file() expects.
44189
f341f669 44190 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44191 write uuid as a 32-bit value in CPU byte order, so declare and
44192 use it as such.
44193
0e9e51ec 44194 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44195 long if the format specifier expects it.
44196 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44197 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44198 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44199 long to fix a warning.
44200 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44201 grub_dprintf() arguments to fix warnings.
44202
3aefa857 442032008-06-30 Pavel Roskin <proski@gnu.org>
44204
56c7668b 44205 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44206 install_bsd_part immediately before core.img is embedded or
44207 modified on disk. This fixes core.img verification if core.img
44208 cannot be embedded.
44209
3aefa857 44210 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44211 core_path to calculate the blocklist.
44212 Patch from Javier Martín <lordhabbit@gmail.com>
44213
5444088d 442142008-06-29 Robert Millan <rmh@aybabtu.com>
44215
44216 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44217 block to disk block.
44218 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44219 Patch from Niels Böhm <bitbucket@arcor.de>
44220
674835c8 442212008-06-29 Robert Millan <rmh@aybabtu.com>
44222
44223 * util/update-grub_lib.in (font_path): Search for fonts in
44224 /boot/grub first, which is more likely to be readable (we aren't
44225 deciding where fonts live, just looking for them).
44226
f527dbc8 442272008-06-26 Pavel Roskin <proski@gnu.org>
44228
6c2d8df6 44229 * util/biosdisk.c (read_device_map): Don't leave dead map
44230 entries for devices failing stat() check.
44231
f527dbc8 44232 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44233 core_path_dev for the core.img path on the target device.
44234
aebe3d13 442352008-06-26 Robert Millan <rmh@aybabtu.com>
44236
44237 * disk/fs_uuid.c: New file.
44238 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44239 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44240 (fs_uuid_mod_LDFLAGS): New variables.
44241 * include/grub/disk.h (grub_disk_dev_id): Add
44242 `GRUB_DISK_DEVICE_UUID_ID'.
44243 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44244 implement iterate().
44245
37aaf354 442462008-06-26 Robert Millan <rmh@aybabtu.com>
44247
44248 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44249 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44250 Linux image includes no initrd.
44251
25ff262a 442522008-06-21 Javier Martín <lordhabbit@gmail.com>
44253
44254 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44255 call to resolve the core image location that effectively appended the
44256 name twice.
44257
76a2bd44 442582008-06-21 Robert Millan <rmh@aybabtu.com>
44259
44260 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44261 call from here ...
44262
44263 * util/grub.d/10_hurd.in: ... to here ...
44264 * util/grub.d/10_linux.in: ... and here.
44265
650e1c79 442662008-06-19 Robert Millan <rmh@aybabtu.com>
44267
fe987087 44268 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 44269 after it has been set by grub_machine_set_prefix().
44270
6ce63911 442712008-06-19 Robert Millan <rmh@aybabtu.com>
44272
44273 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44274 search result when not saving to variable, not the other way around.
44275 When saving to variable, abort iteration as soon as a match is found.
44276
73940cec 442772008-06-19 Robert Millan <rmh@aybabtu.com>
44278
44279 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44280 check for partition that provides /boot/grub. Its logic is flawed,
44281 as it prevents prepare_grub_to_access_device() from being called
44282 multiple times.
44283
3c62a39d 442842008-06-19 Robert Millan <rmh@aybabtu.com>
44285
44286 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44287 "insmod" command directly when abstraction modules are needed,
fe987087 44288 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 44289 since it had already been processed).
44290
47395a42 442912008-06-19 Pavel Roskin <proski@gnu.org>
44292
44293 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44294 changed. This is needed in case GRUB_LIBDIR changes.
44295 * conf/i386-ieee1275.rmk: Likewise.
44296 * conf/i386-linuxbios.rmk: Likewise.
44297 * conf/i386-pc.rmk: Likewise.
44298 * conf/powerpc-ieee1275.rmk: Likewise.
44299
a145ac2d 443002008-06-18 Pavel Roskin <proski@gnu.org>
44301
44302 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44303 kernel_elf_symlist.c to symlist.c for consistency with other
44304 architectures. Update all users.
44305 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44306
7847c51e 443072008-06-18 Robert Millan <rmh@aybabtu.com>
44308
44309 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44310 it in prefix.
44311
44312 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44313 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44314 a RAID device, run setup() for all members independently on whether
44315 LVM abstraction is being used.
44316 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44317 If grub-mkimage has set `*install_dos_part == -2', don't override this
44318 value.
44319 Perform *install_dos_part adjustments independently on whether
44320 we're embedding or not.
44321 Clarify error message when image is too big for embedding.
44322 Remove duplicate *install_dos_part stanza.
44323
b23e5644 443242008-06-17 Robert Millan <rmh@aybabtu.com>
44325
44326 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44327 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44328 variables.
44329 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44330 values in grub_ofconsole_normal_color and
44331 grub_ofconsole_highlight_color (they're not directly related to
44332 background and foreground).
44333 (grub_ofconsole_setcolorstate): Extract background and foreground
44334 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44335
0aac2f79 443362008-06-17 Robert Millan <rmh@aybabtu.com>
44337
44338 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44339 /boot/grub for the check in last commit, not /boot (they could be
44340 different partitions).
44341
3cca7ef3 443422008-06-16 Robert Millan <rmh@aybabtu.com>
44343
44344 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44345 asked to setup access for the same partition that provides /boot,
44346 don't bother using UUIDs since our root already has the value we
44347 want.
44348
347396d8 443492008-06-16 Robert Millan <rmh@aybabtu.com>
44350
44351 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44352 I2O devices.
44353 Patch from Sven Mueller <sven@debian.org>.
44354
991477f8 443552008-06-16 Robert Millan <rmh@aybabtu.com>
44356
44357 * util/update-grub.in: Check for $EUID instead of $UID.
44358 Reported by Vincent Zweije.
44359
d31a32a1 443602008-06-16 Bean <bean123ch@gmail.com>
44361
fe987087 44362 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 44363 (grub_ext2_read_block): Likewise.
44364 (grub_ext2_read_inode): Likewise.
44365 (grub_ext2_mount): Likewise.
44366 (grub_ext2_close): Likewise.
44367 (grub_ext3_get_journal): Removed.
44368
fe987087 44369 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 44370 (grub_reiserfs_read_symlink): Likewise.
44371 (grub_reiserfs_mount): Likewise.
44372 (grub_reiserfs_open): Likewise.
44373 (grub_reiserfs_read): Likewise.
44374 (grub_reiserfs_close): Likewise.
44375 (grub_reiserfs_get_journal): Removed.
44376
44377 * fs/fshelp.c (grub_fshelp_read): Removed.
44378 (grub_fshelp_map_block): Likewise.
44379
44380 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44381 (grub_fshelp_journal): Likewise.
44382 (grub_fshelp_read): Likewise.
44383 (grub_fshelp_map_block): Likewise.
44384
3540a760 443852008-06-16 Pavel Roskin <proski@gnu.org>
44386
44387 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44388 floating point anymore.
44389 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44390
95614c84 443912008-06-15 Pavel Roskin <proski@gnu.org>
44392
44393 * commands/ls.c (grub_ls_list_files): Use integer calculations
44394 for human readable format, avoid floating point use.
44395 * kern/misc.c (grub_ftoa): Remove.
44396 (grub_vsprintf): Remove floating point support.
44397
50465dd6 443982008-06-15 Robert Millan <rmh@aybabtu.com>
44399
fe6b695a 44400 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 44401 devices.
44402 Reported by Max Vozeler.
44403
a9207284 444042008-06-15 Robert Millan <rmh@aybabtu.com>
44405
44406 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44407 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44408 skipped later.
44409 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44410 the beginning of the prefix.
44411
44412 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44413 It is assumed that if we have a memdisk, grub-mkimage has set
44414 grub_prefix to include the "(memdisk)" drive in it.
44415
a7cbd45a 444162008-06-15 Robert Millan <rmh@aybabtu.com>
44417
44418 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44419 Initialize keyboard controller after registering the terminal, so that
44420 grub_printf() can be called from grub_keyboard_controller_init().
44421
21cf716a 444222008-06-15 Robert Millan <rmh@aybabtu.com>
44423
44424 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44425 extent-btree which is written as big endian on disk.
44426 Reported by Alain Greppin <al@chilibi.org>.
44427
23a64d8e 444282008-06-14 Robert Millan <rmh@aybabtu.com>
44429
44430 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44431 * util/i386/pc/grub-install.in (modules): Likewise.
44432
d687651c 444332008-06-13 Pavel Roskin <proski@gnu.org>
44434
44435 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44436
dfe9ddd4 444372008-06-13 Bean <bean123ch@gmail.com>
44438
44439 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44440
44441 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44442
44443 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44444 to indicate sparse block.
44445
16ae7781 444462008-06-12 Pavel Roskin <proski@gnu.org>
44447
e6d1a308 44448 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44449 number, grub_fshelp_read() does it for us.
44450
16ae7781 44451 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44452 linear disk read with journal translation.
44453 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44454 * include/grub/fshelp.h: Declare grub_fshelp_read().
44455
40fd3a2b 444562008-06-09 Pavel Roskin <proski@gnu.org>
44457
44458 * fs/minix.c (grub_minix_mount): Handle error reading
44459 superblock.
44460
f5679726 444612008-06-08 Robert Millan <rmh@aybabtu.com>
44462
44463 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44464 don't append the RAID prefix afterwards.
44465 Reported by Clint Adams.
44466
ce525529 444672008-06-08 Robert Millan <rmh@aybabtu.com>
44468
44469 Based on description from Pavel:
44470 * kern/disk.c (grub_disk_check_range): Rename to ...
44471 (grub_disk_adjust_range): ... this. Add a comment explaining the
44472 tasks performed by this function.
44473
ad4936a0 444742008-06-08 Robert Millan <rmh@aybabtu.com>
44475
44476 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44477 `num_serial' (for consistency with other variables).
44478 (struct grub_ntfs_data): Add `uuid' member.
44479 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44480 (grub_ntfs_uuid): New function.
44481 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44482
dc20b0f9 444832008-06-07 Pavel Roskin <proski@gnu.org>
44484
44485 * util/biosdisk.c (open_device): Revert last change to the
44486 function, it broke installation. The sector needs to be
44487 different dependent on which device is opened.
44488
c5e3cfba 444892008-06-06 Robert Millan <rmh@aybabtu.com>
44490
44491 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44492 rest of GRUB, and breakage doesn't happen if its value were modified.
44493
44494 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44495 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44496 a constant (same value).
44497 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44498 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44499
26a1f8c4 445002008-06-06 Robert Millan <rmh@aybabtu.com>
44501
44502 * util/biosdisk.c (open_device): Do not modify sector offset when
44503 accessing a partition. kern/disk.c already handles this for us.
44504
25d6b327 445052008-06-06 Robert Millan <rmh@aybabtu.com>
44506
44507 * util/grub-emu.c (grub_machine_init): Move code in this function from
44508 here ...
44509 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44510 segfault in case grub_printf() is called).
44511
44512 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44513 grub_probe. Update all users not to explicitly add it again.
44514 (grub_device): New variable; contains corresponding device for grubdir.
44515 (fs_module, partmap_module, devabstraction_module): Pass
44516 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44517 every time.
44518
9ece62fb 445192008-06-05 Robert Millan <rmh@aybabtu.com>
44520
44521 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44522 is found, print it (same layout as with labels).
44523
1ad36d37 445242008-06-04 Robert Millan <rmh@aybabtu.com>
44525
44526 * util/biosdisk.c (get_drive): Rename to ...
44527 (find_grub_drive): ... this. Update all users.
44528
44529 (get_os_disk): Rename to ...
44530 (convert_system_partition_to_system_disk): ... this. Update all users.
44531
44532 (find_drive): Rename to ...
44533 (find_system_device): ... this. Update all users.
44534
e6a30859 445352008-06-04 Robert Millan <rmh@aybabtu.com>
44536
44537 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44538 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44539 (make_device_map): Likewise.
44540
00c108a4 445412008-06-01 Robert Millan <rmh@aybabtu.com>
44542
44543 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44544 before dereferencing it.
44545
44546 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44547 union with fat12/fat16-specific ones. Add some new fields, including
44548 `num_serial' for both versions.
44549 (struct grub_fat_data): Add `uuid' member.
44550 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44551 names. Initialize `data->uuid' using `num_serial'.
44552 (grub_fat_uuid): New function.
44553 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44554
44555 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44556 (grub_reiserfs_uuid): New function.
44557 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44558 member.
44559
44560 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44561 (grub_xfs_uuid): New function.
44562 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44563
1385c5bb 445642008-06-01 Robert Millan <rmh@aybabtu.com>
44565
44566 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44567 code that is backward compatible with pre-uuid search command.
44568
c682dfd7 445692008-05-31 Robert Millan <rmh@aybabtu.com>
44570
44571 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44572 floppies after everything else, to ensure floppy drive isn't accessed
44573 unnecessarily (patch from Bean).
44574
b7db5d47 445752008-05-31 Robert Millan <rmh@aybabtu.com>
44576
44577 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44578 not print device names when we were asked to set a variable.
44579
6e037aa9 445802008-05-31 Robert Millan <rmh@aybabtu.com>
44581
44582 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44583 using "cursor-on" and "cursor-off" commands (understood at least by
44584 the Open Firmware flavour on OLPC).
44585
41305bc8 445862008-05-31 Michael Gorven <michael@gorven.za.net>
44587
44588 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44589 on and off sequences.
44590
69ba137e 445912008-05-31 Robert Millan <rmh@aybabtu.com>
44592
44593 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44594 * util/update-grub.in: Likewise.
44595
520ae21b 445962008-05-30 Pavel Roskin <proski@gnu.org>
44597
44598 * util/biosdisk.c (linux_find_partition): Simplify logic and
44599 make the code more universal. Keep special processing for
44600 devfs, but use a simple rule for all other devices. If the
44601 device ends with a number, append 'p' and the partition number.
44602 Otherwise, append only the partition number.
44603
5786569b 446042008-05-30 Robert Millan <rmh@aybabtu.com>
44605
44606 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44607 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44608 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44609 the `root' parameter to Linux.
44610
51500452 446112008-05-30 Robert Millan <rmh@aybabtu.com>
44612
44613 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44614 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44615 --fs_uuid with --fs-uuid.
44616 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44617 all filesystems support them).
44618
811d3878 446192008-05-30 Robert Millan <rmh@aybabtu.com>
44620
44621 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 44622 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 44623
cab63c95 446242008-05-30 Robert Millan <rmh@aybabtu.com>
44625
44626 * util/grub.d/00_header.in: Remove obsolete comment referencing
44627 convert_system_path_to_grub_path().
44628 * util/update-grub.in: Likewise.
44629 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44630 (convert_system_path_to_grub_path): Add a warning message explaining
44631 that this function is deprecated. Rely on is_path_readable_by_grub()
44632 for the readability checks.
44633 (font_path): Use is_path_readable_by_grub() for the readability
44634 check rather than convert_system_path_to_grub_path().
44635
972e2f7a 446362008-05-30 Robert Millan <rmh@aybabtu.com>
44637
44638 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44639 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44640 converting it first.
44641 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44642 grub.cfg for access to font file, and afterwards call it again to set
44643 the root device.
44644
62191274 446452008-05-30 Robert Millan <rmh@aybabtu.com>
44646
44647 * commands/search.c (options): Add --fs_uuid option.
44648 (search_fs_uuid): New function.
44649 (grub_cmd_search): Fix --set argument passing.
44650 Use search_fs_uuid() when requested via --fs_uuid.
44651 (grub_search_init): Update help message.
44652 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44653 and redeclare it as an array of 16-bit words.
44654 (grub_ext2_uuid): New function.
44655 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44656 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44657 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44658 (GRUB_DEVICE_BOOT_UUID): New variables.
44659 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44660 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44661 whenever possible.
44662 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44663 just assume `root' variable has the right value.
44664 * util/grub.d/10_linux.in: Likewise.
44665 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44666 via PRINT_FS_UUID.
44667 (main): Recognise `-t fs_uuid' argument.
44668
01b73ec8 446692008-05-30 Robert Millan <rmh@aybabtu.com>
44670
44671 * util/biosdisk.c (map): Redefine structure to hold information
44672 about GRUB drive name.
fe6b695a 44673 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 44674 drive names.
44675 (call_hook): Remove.
44676 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44677 member. Assume drive has partitions.
44678 (grub_util_biosdisk_open): Access device names via `.device' struct
44679 member.
44680 (open_device): Likewise.
44681 (find_drive): Likewise.
44682 (read_device_map): Adjust map[] usage to match the new struct
44683 definition. Don't check for duplicates (still possible, but not cheap
44684 anymore).
44685 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44686 (make_device_name): Remove assumption of BIOS-like drive names.
44687
22f16596 446882008-05-30 Pavel Roskin <proski@gnu.org>
44689
44690 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44691 compiling execute.c doesn't need grub_script.tab.h anymore.
44692 (normal/command.c_DEPENDENCIES): Likewise.
44693 (normal/function.c_DEPENDENCIES): Likewise.
44694 * conf/i386-ieee1275.rmk: Likewise.
44695 * conf/i386-linuxbios.rmk: Likewise.
44696 * conf/i386-pc.rmk: Likewise.
44697 * conf/powerpc-ieee1275.rmk: Likewise.
44698 * conf/sparc64-ieee1275.rmk: Likewise.
44699
528ad8f2 447002008-05-29 Pavel Roskin <proski@gnu.org>
44701
d1dff95d 44702 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44703 when scanning metadata for volume group name.
44704
528ad8f2 44705 * include/grub/script.h: Don't include grub_script.tab.h. It's
44706 a generated file, which may only be included from the files with
44707 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44708 use union YYSTYPE, as the later allows forward declaration.
44709 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44710
47248e08 447112008-05-29 Robert Millan <rmh@aybabtu.com>
44712
44713 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44714 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44715 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44716 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44717 scan codes.
44718
ee632529 447192008-05-29 Robert Millan <rmh@aybabtu.com>
44720
44721 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44722 control key combinations.
44723
eee96e08 447242008-05-29 Robert Millan <rmh@aybabtu.com>
44725
44726 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44727 * util/ieee1275/grub-install.in: ... to here.
44728 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44729 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44730 (grub_install_SOURCES): Likewise.
44731
da9a6a94 447322008-05-29 Robert Millan <rmh@aybabtu.com>
44733
44734 * fs/affs.c: Update copyright year.
44735 * fs/ext2.c: Likewise.
44736 * fs/fshelp.c: Likewise.
44737 * fs/hfsplus.c: Likewise.
44738 * fs/ntfs.c: Likewise.
44739 * fs/xfs.c: Likewise.
44740 * include/grub/fshelp.h: Likewise.
44741 * util/grub-mkdevicemap.c: Likewise.
44742
12e65f3a 447432008-05-28 Robert Millan <rmh@aybabtu.com>
44744
44745 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44746 might need to be fatfs to support some firmware implementations
44747 (e.g. OFW or EFI).
44748
23023641 447492008-05-28 Robert Millan <rmh@aybabtu.com>
44750
44751 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44752 devices.
44753 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44754 (make_device_map): Likewise.
44755
887d2619 447562008-05-20 Bean <bean123ch@gmail.com>
44757
44758 * fs/fshelp.c (grub_fshelp_map_block): New function.
44759 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44760 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44761
44762 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44763 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44764 (grub_fshelp_journal): New structure.
44765 (grub_fshelp_map_block): New function prototype.
44766 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44767 (grub_fshelp_map_block): Likewise.
44768
44769 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44770 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44771 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44772 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44773 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44774 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44775 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44776 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44777 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44778 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44779 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44780 (grub_ext2_sblock): New members for journal support.
44781 (grub_ext3_journal_header): New structure.
44782 (grub_ext3_journal_revoke_header): Likewise.
44783 (grub_ext3_journal_block_tag): Likewise.
44784 (grub_ext3_journal_sblock): Likewise.
44785 (grub_fshelp_node): New members logfile and journal.
44786 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44787 grub_fshelp_map_block to get real block number.
44788 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44789 number.
44790 (grub_ext2_read_inode): Likewise.
44791 (grub_ext3_get_journal): New function.
44792 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44793 (grub_ext2_close): Release memory used by journal.
44794
44795 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44796 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44797 (grub_reiserfs_transaction_header): Renamed to
44798 grub_reiserfs_description_block, replace field data with real_blocks.
44799 (grub_reiserfs_commit_block): New structure.
44800 (grub_reiserfs_data): New member journal.
44801 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44802 number.
44803 (grub_reiserfs_read_symlink): Likewise.
44804 (grub_reiserfs_iterate_dir): Likewise.
44805 (grub_reiserfs_open): Likewise.
44806 (grub_reiserfs_read): Likewise.
44807 (grub_reiserfs_get_journal): New function.
44808 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44809 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44810 using grub_reiserfs_get_journal.
44811 (grub_reiserfs_close): Release memory used by journal.
44812
44813 * fs/affs.c (grub_affs_read_block): Change block type to
44814 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44815
44816 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44817
44818 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44819
44820 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44821
44822 * fs/udf.c (grub_udf_read_block): Change block type to
44823 grub_disk_addr_t. Use type cast to avoid warning.
44824
44825 * fs/xfs.c (grub_xfs_read_block): Likewise.
44826
b7c6bed5 448272008-05-16 Christian Franke <franke@computer.org>
44828
44829 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44830 to ensure that break with ESC will always work.
44831 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44832 Remove ESC from keyboard queue.
44833
eedf167f 448342008-05-16 Christian Franke <franke@computer.org>
44835
44836 * util/biosdisk.c: [__CYGWIN__] Add includes.
44837 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44838 (get_os_disk): Move variable declarations to OS specific
44839 parts to avoid warning.
44840 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44841 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44842 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44843 Cygwin.
44844 * util/getroot.c: [__CYGWIN__] Add includes.
44845 (strip_extra_slashes): Fix "/" case.
44846 [__CYGWIN__] (get_win32_path): New function.
44847 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44848 [__CYGWIN__] (find_root_device): Disable.
44849 [__CYGWIN__] (get_bootsec_serial): New function.
44850 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44851 [__linux__] (grub_guess_root_device): Add early returns to simplify
44852 structure.
44853 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44854 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44855 check for Linux only.
44856
a079699e 448572008-05-15 Bean <bean123ch@gmail.com>
44858
44859 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44860 keyboard hang problem in apple's intel mac.
44861
1cf4059a 448622008-05-09 Robert Millan <rmh@aybabtu.com>
44863
44864 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44865 devices.
44866 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44867 (make_device_map): Likewise.
44868 Reported by Aurelien Jarno <aurel32@debian.org>
44869
ed759390 448702008-05-07 Ian Campbell <ijc@hellion.org.uk>
44871
44872 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44873 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44874 (make_device_map): Output entries for xvd type disks.
44875
b56c4eaa 448762008-05-07 Robert Millan <rmh@aybabtu.com>
44877
44878 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44879 devices.
44880 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44881 (make_device_map): Likewise.
44882 Reported by Roland Dreier <rdreier@cisco.com>
44883
7f8866ed 448842008-05-07 Robert Millan <rmh@aybabtu.com>
44885
44886 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44887 grub_strstr() call. Correct a few mistakes in failure path handling.
44888
b0346e0f 448892008-05-06 Robert Millan <rmh@aybabtu.com>
44890
44891 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44892 Do not print a trailing slash (therefore, the root directory is an
44893 empty string).
44894 (convert_system_path_to_grub_path): Do not remove trailing slash
44895 from make_system_path_relative_to_its_root() output.
44896
44897 * util/i386/pc/grub-install.in: Add trailing slash to output from
44898 make_system_path_relative_to_its_root().
44899
6cf12cbd 449002008-05-06 Robert Millan <rmh@aybabtu.com>
44901
44902 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44903 ensures that output lines aren't intermangled with those sent to
44904 stderr (via grub_util_info()).
44905 * util/grub-probe.c (grub_refresh): Likewise.
44906 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44907
0fbb3117 449082008-05-05 Christian Franke <franke@computer.org>
44909
44910 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44911 Add Cygwin device names.
44912 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44913 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44914 (check_device): Return error instead of success on empty name.
44915 (make_device_map): Move label inside linux specific code to
44916 prevent compiler warning.
44917
8124cdb7 449182008-04-30 Robert Millan <rmh@aybabtu.com>
44919
44920 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44921 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44922 first boot option.
44923 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44924
094c01d0 449252008-04-29 Robert Millan <rmh@aybabtu.com>
44926
44927 * docs/grub.cfg: New file (example GRUB configuration).
44928
f4b1fc02 449292008-04-26 Robert Millan <rmh@aybabtu.com>
44930
329ce2a5 44931 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44932 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44933 and `disk/ieee1275/nand.c'.
f4b1fc02 44934
25f16ec1 449352008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 44936
25f16ec1 44937 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44938 i386-linuxbios.
44939
44940 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44941 change the buffer size to 4096 for cdrom device.
44942
44943 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44944 and nand.mod.
44945 (_linux_mod_SOURCES): New variable.
44946 (_linux_mod_CFLAGS): Likewise.
44947 (_linux_mod_LDFLAGS): Likewise.
44948 (linux_mod_SOURCES): Likewise.
44949 (linux_mod_CFLAGS): Likewise.
44950 (linux_mod_LDFLAGS): Likewise.
44951 (nand_mod_SOURCES): Likewise.
44952 (nand_mod_CFLAGS): Likewise.
44953 (nand_mod_LDFLAGS): Likewise.
44954
44955 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44956 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44957 type property. (nand device in olpc don't have this property)
44958
44959 * include/grub/disk.h (grub_disk_dev_id): New macro
44960 GRUB_DISK_DEVICE_NAND_ID.
44961
44962 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44963 function prototype.
44964 (grub_rescue_cmd_initrd): Likewise.
44965
44966 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44967 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44968 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 44969
25f16ec1 44970 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44971 GRUB_MACHINE_IEEE1275 is defined.
44972
44973 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44974 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44975
44976 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44977 on nested function heap_init.
44978 (grub_upper_mem): New variable for i386-ieee1275.
44979 (grub_get_extended_memory): New function for i386-ieee1275.
44980 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44981
44982 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44983 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44984 property.
f19dbdb7 44985
25f16ec1 44986 * loader/i386/ieee1275/linux.c: New file.
44987
44988 * loader/i386/ieee1275/linux_normal.c: New file.
44989
44990 * disk/ieee1275/nand.c: New file.
44991
e89d61e9 449922008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44993
44994 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44995 value.
44996 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44997
602566f6 449982008-04-18 Robert Millan <rmh@aybabtu.com>
44999
45000 Restructures early code path on ieee1275 to unify grub_main() as
45001 the first C function that is executed in every platform.
45002
45003 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45004 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45005 cmain().
45006 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45007 * kern/ieee1275/cmain.c (cmain): Rename to ...
45008 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45009 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45010 at the beginning.
45011
57490c2b 450122008-04-18 Robert Millan <rmh@aybabtu.com>
45013
45014 * util/update-grub.in: Fix syntax error when setting
45015 `GRUB_PRELOAD_MODULES'.
45016 Reported by Stephane Chazelas <stephane@artesyncp.com>
45017
1977517d 450182008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45019
45020 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45021 section into account, newer toolchains generate unique build ids
45022 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 45023 we want build ids to be preserved
1977517d 45024 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45025 far from other sections don't cause the raw binary images grow
45026 size
45027
bfb1f1a2 450282008-04-15 Robert Millan <rmh@aybabtu.com>
45029
45030 * disk/lvm.c: Update copyright year.
45031 * kern/misc.c: Likewise.
45032
01979850 450332008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45034
45035 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 45036 there is no memory left for physical volume name.
01979850 45037
0a1150e2 450382008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45039
45040 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45041 volume name mapping to support bigger than 9 character names properly.
45042
82ead3fe 450432008-04-13 Robert Millan <rmh@aybabtu.com>
45044
45045 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45046 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45047
e54a72f5 450482008-04-13 Christian Franke <franke@computer.org>
45049
45050 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45051 to create a floppy emulation boot CD when non emulation mode
45052 does not work.
45053 Enable Joliet CD filesystem extension.
45054
9fe86034 450552008-04-13 Robert Millan <rmh@aybabtu.com>
45056
45057 * kern/misc.c (grub_strncat): Fix off-by-one error.
45058 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45059
45060 * kern/env.c (grub_env_context_close): Clear current context, not
45061 previous one.
45062 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45063
45064 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45065
7ceeee39 450662008-04-13 Robert Millan <rmh@aybabtu.com>
45067
45068 Improve robustness when handling LVM.
45069
45070 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 45071 (and leave `*p' unmodified).
7ceeee39 45072 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45073 through it.
45074 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45075 iterating through it.
45076 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45077 through it.
fe6b695a 45078 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 45079 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45080 Don't assume `vg->pvs != NULL' when iterating through it.
45081
58cd3d85 450822008-04-13 Robert Millan <rmh@aybabtu.com>
45083
45084 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45085 * genmk.rb (partmap): New variable.
45086 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45087 (#{partmap}): New target rule.
45088 * genpartmaplist.sh: New file.
45089 * Makefile.in (pkglib_DATA): Add partmap.lst.
45090 (partmap.lst): New target rule.
45091 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45092 modules (including all partition maps), instead of preloading them.
45093
78b51059 450942007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45095
45096 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45097 `linux-boot-prober' (if installed) to detect other operating
45098 systems which are installed on the computer and add them to
45099 the boot menu.
45100 * conf/common.rmk: Build and install 30_os-prober.
45101
a91627b4 451022008-04-12 Robert Millan <rmh@aybabtu.com>
45103
45104 * kern/powerpc/ieee1275/init.c: Move from here ...
45105 * kern/ieee1275/init.c: ... to here. Update all users.
45106
45107 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45108 * kern/ieee1275/cmain.c: ... to here. Update all users.
45109
45110 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45111 * kern/ieee1275/openfw.c: ... to here. Update all users.
45112
45113 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45114 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45115
322562ea 451162008-04-10 Pavel Roskin <proski@gnu.org>
45117
45118 * configure.ac: Always use "_cv_" in cache variables for
45119 compatibility with Autoconf 2.62.
45120
a02a73c5 451212008-04-07 Robert Millan <rmh@aybabtu.com>
45122
45123 Revert grub/machine/init.h addition by Pavel (since it breaks on
45124 i386-ieee1275 and others):
45125 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45126 * util/powerpc/ieee1275/misc.c: Likewise.
45127
25c024b1 451282008-04-07 Robert Millan <rmh@aybabtu.com>
45129
45130 * util/grub-probe.c (probe): Improve error message.
45131
3cbd2f98 451322008-04-07 Robert Millan <rmh@aybabtu.com>
45133
45134 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45135 (this prevents the presence of a bogus entry from ruining the whole
45136 thing).
45137
87a297bf 451382008-04-06 Pavel Roskin <proski@gnu.org>
45139
36747a62 45140 * util/biosdisk.c: Include grub/util/biosdisk.h.
45141 * util/grub-fstest.c (execute_command): Make static.
45142 * util/grub-mkdevicemap.c (check_device): Likewise.
45143 * util/i386/pc/misc.c: Include grub/machine/init.h.
45144 * util/powerpc/ieee1275/misc.c: Likewise.
45145 * util/lvm.c: Include grub/util/lvm.h.
45146 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45147 grub/cache.h.
45148 * util/raid.c: Include grub/util/raid.h.
45149 (grub_util_getdiskname): Make static.
45150
87a297bf 45151 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45152 grub_hostfs_fini(), as they are called from grub_init_all() and
45153 grub_fini_all() respectively. This fixes an infinite loop in
45154 grub-fstest due to double registration of hostfs.
45155 Reported by Christian Franke <Christian.Franke@t-online.de>
45156
f6ce7629 451572008-04-05 Pavel Roskin <proski@gnu.org>
45158
45159 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45160 all 8 functions. Otherwise, probe function 0 only.
45161
070e49e4 451622008-04-04 Pavel Roskin <proski@gnu.org>
45163
8b088a4c 45164 * commands/lspci.c (grub_lspci_iter): Print the bus number
45165 correctly.
45166
4f657021 45167 * commands/lspci.c (grub_pci_classes): Fix typos.
45168 (grub_lspci_iter): Don't print func twice. Print vendor ID
45169 before device ID, as it's normally done.
45170
070e49e4 45171 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45172 Fix signedness warnings.
45173 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45174 Likewise.
45175 * util/ieee1275/get_disk_name.c: Include config.h so that
45176 _GNU_SOURCE is defined and getline() is declared. Mark an
45177 unused argument as such. Fix a signedness warning.
45178
ba7328dc 451792008-04-02 Pavel Roskin <proski@gnu.org>
45180
26887f22 45181 * genkernsyms.sh.in: Use more robust assignments for CC and
45182 srcdir. Quote srcdir.
45183 * gensymlist.sh.in: Likewise. Assert at the compile time that
45184 the symbol table is not empty.
45185
ba7328dc 45186 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45187 * fs/cpio.c (grub_cpio_read): Likewise.
45188
0f582c6b 451892008-04-01 Pavel Roskin <proski@gnu.org>
45190
4b6e1995 45191 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45192 * disk/host.c (grub_host_open): Likewise.
45193 * disk/loopback.c (grub_loopback_open): Likewise.
45194 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45195 disk->id as in disk/host.c, not a multi-character constant.
45196
828a2768 45197 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45198 later is obsolete, potentially dangerous and sets a bad example.
45199 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45200 * util/misc.c (grub_util_get_image_size): Likewise.
45201
2bb4fb47 45202 * disk/loopback.c (options): Improve help for "--partitions".
45203
0f582c6b 45204 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45205 options to align them with the short options, e.g. "echo -e".
45206
a33224e0 452072008-03-31 Bean <bean123ch@gmail.com>
45208
45209 * video/reader/png.c (grub_png_data): New member is_16bit and
45210 image_data.
45211 (grub_png_decode_image_header): Detect 16 bit png image.
45212 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45213 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45214 (grub_video_reader_png): Release memory occupied by image_data.
45215
45216 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45217 4096 bytes.
45218 (grub_nfs_mount): Skip the test for sector per cluster.
45219
45220 * include/grub/ntfs.h (MAX_SPC): Removed.
45221
86cb4f54 452222008-03-31 Bean <bean123ch@gmail.com>
45223
45224 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45225 (grub_probe_SOURCES): Add fs/afs.c.
45226 (grub_fstest_SOURCES): Likewise.
45227 (afs_mod_SOURCES): New variable.
45228 (afs_mod_CFLAGS): Likewise.
45229 (afs_mod_LDFLAGS): Likewise.
45230
45231 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45232 (grub_emu_SOURCES): Likewise.
45233
45234 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45235
45236 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45237
45238 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45239
45240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45241
45242 * fs/afs.c: New file.
45243
17c74c21 452442008-03-30 Pavel Roskin <proski@gnu.org>
45245
4cb68e89 45246 * disk/host.c: Include grub/misc.h to fix a warning.
45247 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45248 warnings about implicit declarations.
45249
8790bb04 45250 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45251 variable.
45252 * include/grub/i386/loader.h: Change declaration of
45253 grub_linux_boot() to match what grub_loader_set() expects.
45254 * util/getroot.c (grub_guess_root_device): Return const char* to
45255 fix a warning.
45256 * util/grub-probe.c (probe): Fix a warning about uninitialized
45257 abstraction_name variable.
45258 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45259 second argument as unused to fix a warning.
45260
9a3f3296 45261 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45262 missing grub_error() call.
45263
0ecef90d 45264 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45265 2.60 and newer uses it to define datadir.
45266
0bf6d401 45267 * commands/sleep.c: Fix warning about implicit declaration.
45268 * disk/memdisk.c: Likewise.
45269 * loader/aout.c: Likewise.
45270 * loader/i386/bsd_normal.c: Likewise.
45271 * util/grub-probe.c: Likewise.
45272
7cdacf97 45273 * commands/i386/cpuid.c (has_longmode): Make static.
45274 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45275 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45276
17c74c21 45277 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45278 GDT. This is more robust, as %ds can change.
45279 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45280 calling real_to_prot().
45281 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45282
80a3e68b 452832008-03-28 Pavel Roskin <proski@gnu.org>
45284
45285 * kern/i386/pc/startup.S: Assert that uncompressed functions
45286 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45287 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45288 code, as they push parts of the code (error handlers) beyond
45289 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45290 code as correctness and size.
45291
77bcd272 452922008-03-28 Pavel Roskin <proski@gnu.org>
45293
45294 * kern/i386/pc/startup.S
45295 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45296 data block address to the real mode, keep offset minimal. This
45297 works around a bug in AWARD BIOS on old Athlon systems, which
45298 makes CD detection hang.
45299
c5dfd43b 453002008-03-26 Pavel Roskin <proski@gnu.org>
45301
45302 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45303 const.
45304 * include/grub/normal.h: Add grub_parse_color_name_pair()
45305 declaration.
45306
bf962df2 453072008-03-24 Bean <bean123ch@gmail.com>
45308
45309 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45310 (cd_count): Removed.
45311 (cd_drive): New variable.
45312 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45313 (grub_biosdisk_call_hook): Likewise.
45314 (grub_biosdisk_iterate): Change cdrom detection method.
45315 (grub_biosdisk_open): Replace cd_start with cd_drive.
45316 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45317 detect cdrom device.
45318
45319 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45320 Removed.
45321 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45322 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45323 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45324 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45325 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45326 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45327 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45328 (grub_biosdisk_cdrp): New structure.
45329 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45330
45331 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45332
45333 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45334 device.
45335
45336 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45337 New function.
45338
68e7fc7a 453392008-03-20 Robert Millan <rmh@aybabtu.com>
45340
45341 Remove 2 TiB limit in ata.mod.
45342 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45343 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45344 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45345 grub_uint64_t instead of grub_uint32_t.
45346
38ad2cf5 453472008-03-05 Bean <bean123ch@gmail.com>
45348
45349 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45350 (grub_multiboot): Set boot device.
45351
45352 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45353
2b89344e 453542008-03-02 Bean <bean123ch@gmail.com>
45355
45356 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45357 symlink_buffer.
45358
87a95d1f 453592008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45360
45361 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45362 texinfo.tex.
45363
45364 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45365 modified.
45366
45367 * docs/fdl.texi: New file.
f19dbdb7 45368
87a95d1f 45369 * docs/mdate-sh: New file. Copied from gnulib.
45370 * docs/texinfo.tex: Likewise.
45371
45372 * config.guess: Updated from gnulib.
45373 * install-sh: Likewise.
45374
7dc15d8e 453752008-02-28 Robert Millan <rmh@aybabtu.com>
45376
45377 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45378 (aout_mod_SOURCES): New variable.
45379 (aout_mod_CFLAGS): Likewise.
45380 (aout_mod_LDFLAGS): Likewise.
45381
45382 * conf/i386-ieee1275.rmk: Likewise.
45383
b00ab696 453842008-02-28 Robert Millan <rmh@aybabtu.com>
45385
45386 * util/update-grub.in: Reorganise terminal validity check. Accept
45387 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45388 Based on suggestion by Franklin PIAT.
45389
79ca2d78 453902008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45391
45392 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45393 function.
45394 * util/getroot.c (grub_util_check_block_device): New function that
45395 returns the given argument if it is a block device and returns NULL else.
45396 * util/grub-probe.c (argument_is_device): New variable.
45397 (probe): Promote device_name from a variable to an argument. Receive
45398 device_name from grub_util_check_block_device() if path is NULL and from
45399 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 45400 (options): Introduce new parameter '-d, --device'.
79ca2d78 45401 (main): Add description of the new parameter to the help screen.
45402 Rename path variable to argument. Set argument_is_device if the '-d'
45403 option is given. Pass argument to probe() depending on
45404 argument_is_device.
45405
0d16e571 454062008-02-24 Bean <bean123ch@gmail.com>
45407
45408 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45409 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45410 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45411 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45412 (GRUB_ISO9660_VOLDESC_END): Likewise.
45413 (grub_iso9660_primary_voldesc): New member escape.
45414 (grub_iso9660_data): New member joliet.
45415 (grub_iso9660_convert_string): New function.
45416 (grub_iso9660_mount): Detect joliet extension.
45417 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45418 (grub_iso9660_iso9660_label): Likewise.
45419
45420 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45421 (grub_setup_SOURCES): Add fs/udf.c.
45422 (grub_fstest_SOURCES): Likewise.
45423 (udf_mod_SOURCES): New variable.
45424 (udf_mod_CFLAGS): Likewise.
45425 (udf_mod_LDFLAGS): Likewise.
45426
45427 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45428 (grub_emu_SOURCES): Likewise.
45429
45430 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45431
45432 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45433
45434 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45435
45436 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45437
45438 * fs/udf.c: New file.
45439
8a594a17 454402008-02-24 Robert Millan <rmh@aybabtu.com>
45441
45442 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45443 (normal/lexer.c_DEPENDENCIES): New variables.
45444 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45445 (normal/lexer.c_DEPENDENCIES): Likewise.
45446 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45447 (normal/lexer.c_DEPENDENCIES): Likewise.
45448 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45449 (normal/lexer.c_DEPENDENCIES): Likewise.
45450 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45451 (normal/lexer.c_DEPENDENCIES): Likewise.
45452 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45453 (normal/lexer.c_DEPENDENCIES): Likewise.
45454
2dc33c03 454552008-02-23 Robert Millan <rmh@aybabtu.com>
45456
45457 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45458 since they were intended to be in hex. This didn't break previously
45459 because of a bug in gpt_partition_map_iterate() (see below).
45460
45461 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45462 when checking the validity of GPT header.
45463 Remove `partno', since it always provides the same information as `i'.
45464
f6f4cfb0 454652008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45466
45467 * include/grub/efi/time.h: Fix a wrong comment.
45468
79ff665f 454692008-02-19 Pavel Roskin <proski@gnu.org>
45470
45471 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45472 message.
45473
d38e24c2 454742008-02-19 Bean <bean123ch@gmail.com>
45475
45476 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45477 (aout_mod_SOURCES): New variable.
45478 (aout_mod_CFLAGS): Likewise.
45479 (aout_mod_LDFLAGS): Likewise.
45480 (_bsd_mod_SOURCES): New variable.
45481 (_bsd_mod_CFLAGS): Likewise.
45482 (_bsd_mod_LDFLAGS): Likewise.
45483 (bsd_mod_SOURCES): New variable.
45484 (bsd_mod_CFLAGS): Likewise.
45485 (bsd_mod_LDFLAGS): Likewise.
45486
45487 * include/grub/aout.h: New file.
45488
45489 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45490
45491 * include/grub/i386/bsd.h: New file.
45492
45493 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45494 to make it public.
45495
45496 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45497 function is called, so that it's possible to change it inside the hook.
45498 (grub_elf64_load): Likewise.
45499 (grub_elf_file): Don't close the file if elf header is not found.
45500 (grub_elf_close): Close the file if grub_elf_file fails (The new
45501 grub_elf_file won't close it).
45502 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45503 (grub_elf64_size): Likewise.
45504
45505 * kern/i386/loader.S (grub_unix_real_boot): New function.
45506
45507 * loader/aout.c: New file.
45508
45509 * loader/i386/bsd.c: New file.
45510
45511 * loader/i386/bsd_normal.c: New file.
45512
45513 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45514
45515 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 45516 can test other formats.
d38e24c2 45517
b93bdb0f 455182008-02-19 Robert Millan <rmh@aybabtu.com>
45519
45520 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45521 (grub_gpt_partition_type_empty): Redefine with macro from
45522 `<grub/gpt_partition.h>'.
45523 (gpt_partition_map_iterate): Adjust partition type comparison.
45524
45525 Export `entry' as partmap-specific `part.data' struct.
45526 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45527
45528 * include/grub/gpt_partition.h (grub_gpt_header)
45529 (grub_gpt_partentry): ... to here (new file).
45530
45531 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45532
45533 (grub_gpt_partition_type_bios_boot): New const variable, defined
45534 with macro from `<grub/gpt_partition.h>'.
45535
45536 (setup): Replace `first_start' with `embed_region', which keeps
45537 track of the embed region (and is partmap-agnostic).
45538
45539 Replace find_first_partition_start() with find_usable_region(),
45540 which finds a usable region for embedding using partmap-specific
45541 knowledge (supports PC/MSDOS and GPT).
45542
45543 Fix all assumptions that the embed region start at sector 1, using
45544 `embed_region.start' from now on. Similarly, use `embed_region.end'
45545 rather than `first_start' to calculate available size.
45546
45547 In grub_util_info() message, replace "into after the MBR" with an
45548 indication of the specific sector our embed region starts at.
45549
66cb40f6 455502008-02-19 Robert Millan <rmh@aybabtu.com>
45551
45552 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45553 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45554 `commands/reboot.c'.
45555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45556 (halt_mod_SOURCES): Likewise.
45557 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45558 (halt_mod_SOURCES): Likewise.
45559
b7202015 455602008-02-17 Christian Franke <franke@computer.org>
45561
45562 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45563
32b0fc49 455642008-02-17 Robert Millan <rmh@aybabtu.com>
45565
45566 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45567 set `first_start' to 0 for non-PC/MSDOS partition maps.
45568
aca63502 455692008-02-16 Robert Millan <rmh@aybabtu.com>
45570
45571 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45572 do not assume partition map is PC/MSDOS before performing checks that
45573 are specific to that layout.
45574
0de8be86 455752008-02-13 Robert Millan <rmh@aybabtu.com>
45576
45577 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45578 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45579 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45580
c3db8364 455812008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45582
45583 * configure.ac: Only a cosmetic change on the handling of
45584 -fno-stack-protector.
45585
f714229e 455862008-02-12 Alexandre Boeglin <alex@boeglin.org>
45587
c3db8364 45588 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45589 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45590 reboot.c.
f714229e 45591 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45592 (halt_mod_SOURCES): New variable.
45593 (halt_mod_CFLAGS): Likewise.
45594 (halt_mod_LDFLAGS): Likewise.
45595 (reboot_mod_SOURCES): Likewise.
45596 (reboot_mod_CFLAGS): Likewise.
45597 (reboot_mod_LDFLAGS): Likewise.
45598
c3db8364 45599 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45600 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45601 reboot.c.
f714229e 45602 (halt_mod_SOURCES): Likewise.
45603 (reboot_mod_SOURCES): Likewise.
45604
c3db8364 45605 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45606 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 45607 (reboot_mod_SOURCES): Likewise.
45608
45609 * commands/i386/pc/reboot.c: merge this file ...
45610
45611 * commands/ieee1275/reboot.c: ... and this file ...
45612
45613 * commands/reboot.c: ... to this file.
c3db8364 45614 Add some precompiler directive to include the correct header for
45615 each machine.
f714229e 45616
45617 * commands/ieee1275/halt.c: move this file ...
45618
45619 * commands/halt.c: ... to here.
c3db8364 45620 Add some precompiler directive to include the correct header for
45621 each machine.
f714229e 45622
45623 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45624 (grub_halt): Likewise.
45625
45626 * kern/efi/efi.c (grub_reboot): New function.
45627 (grub_halt): Likewise.
45628
c74493e0 456292008-02-12 Robert Millan <rmh@aybabtu.com>
45630
45631 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45632 /dev (like it is done for /dev/mapper). This doesn't provide support
45633 for EVMS, but at least it is now easy to identify the problem when it
45634 arises.
45635
d0db4b04 456362008-02-11 Robert Millan <rmh@aybabtu.com>
45637
45638 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45639 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45640 comparing it with -1, not 0.
45641
bf748642 456422008-02-10 Robert Millan <rmh@aybabtu.com>
45643
45644 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45645 `disk/lvm.c'.
45646 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45647 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45648
45649 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45650 `disk/lvm.c' to the end of the list.
45651 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45652 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45653
b5db202a 456542008-02-10 Robert Millan <rmh@aybabtu.com>
45655
45656 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45657 grub_print_error() instead. This will let user know why we're entering
45658 rescue mode.
45659 Based on suggestions from Sam Morris.
45660
83abee31 456612008-02-10 Alexandre Boeglin <alex@boeglin.org>
45662
45663 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45664 on remaining N args, instead of "--" arg N times.
45665
78d5a08b 456662008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45667
45668 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45669 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45670 pattern for unknown glyphs.
45671
68807e5f 456722008-02-09 Robert Millan <rmh@aybabtu.com>
45673
45674 * configure.ac: Probe for `help2man'.
45675 * Makefile.in (builddir): New variable.
45676 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45677 or otherwise add a few flags/options to it.
45678 (install-local): For every executable utility or script that is
45679 installed, invoke $(HELP2MAN) to install a manpage based on --help
45680 output.
45681
45682 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45683 that it doesn't prevent --help from working in build tree.
45684
45685 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45686 with `bug-grub@gnu.org'.
45687 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45688 * util/update-grub.in (usage): New function.
45689 Implement proper argument check, with support for --help and --version
45690 (as well as existing -y).
45691
456922008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 45693
45694 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45695 avoid overwriting previous output.
45696 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45697
c1962162 456982008-02-09 Robert Millan <rmh@aybabtu.com>
45699
45700 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45701 drawing the menu.
45702
3dac2e3f 457032008-02-09 Robert Millan <rmh@aybabtu.com>
45704
45705 * commands/sleep.c: New file.
45706 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45707 (sleep_mod_SOURCES): New variable.
45708 (sleep_mod_CFLAGS): Likewise.
45709 (sleep_mod_LDFLAGS): Likewise.
45710
7a634e08 457112008-02-09 Robert Millan <rmh@aybabtu.com>
45712
45713 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45714 situations in which we can deduce the RAID size and the superblock
45715 doesn't match it.
45716
b92f0c18 457172008-02-09 Robert Millan <rmh@aybabtu.com>
45718
45719 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45720 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45721 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45722
45723 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45724 and return a grub_diskmemberlist_t composed of physical array members.
45725 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45726
45727 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45728 prototype.
45729 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45730 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45731 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45732
45733 * util/grub-probe.c (probe): Move partmap probing code from here ...
45734 (probe_partmap): ... to here.
45735 (probe): Use probe_partmap() once for the disk we're probing, and
45736 additionally, when such disk contains a memberlist() struct member,
45737 once for each disk that is contained in the structure returned by
45738 memberlist().
45739
91a4bf68 457402008-02-09 Robert Millan <rmh@aybabtu.com>
45741
45742 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45743 environment variable to 'all' in order to obtain debug output from
45744 non-util/ code.
45745 * util/i386/pc/grub-setup.c (main): Likewise.
45746
a96f9caa 457472008-02-08 Robert Millan <rmh@aybabtu.com>
45748
45749 * disk/raid.c (grub_raid_scan_device): Check for
45750 `array->device[sb.this_disk.number]' rather than for
45751 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 45752 guaranteed to be accessible.
a96f9caa 45753
b37a9222 457542008-02-08 Robert Millan <rmh@aybabtu.com>
45755
45756 * disk/raid.c: Update copyright.
45757 * fs/cpio.c: Likewise.
45758 * include/grub/raid.h: Likewise.
45759 * loader/i386/pc/multiboot.c: Likewise.
45760 * util/hostfs.c: Likewise.
45761
5626aee1 457622008-02-08 Robert Millan <rmh@aybabtu.com>
45763
45764 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45765 to a grub_disk_t array.
45766 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45767 `device[x]'.
45768 (grub_raid_scan_device): Replace `device[x].name' accesses with
45769 `device[x]->name'. Simplify initialization of `array->device[x]'.
45770
554f0187 457712008-02-08 Robert Millan <rmh@aybabtu.com>
45772
45773 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45774 grub_dprintf() calls.
45775 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45776 error message.
45777
1ec8425d 457782008-02-07 Christian Franke <franke@computer.org>
45779
45780 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45781 instead of fseek and ftell to support large files.
45782 (grub_hostfs_read): Likewise.
45783
f2156fda 457842008-02-07 Robert Millan <rmh@aybabtu.com>
45785
45786 Patch from Jeroen Dekkers.
45787 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 45788 failure, since successfully reading all array members might not be
f2156fda 45789 required.
45790
9216e0e7 457912008-02-06 Robert Millan <rmh@aybabtu.com>
45792
45793 * util/grub-probe.c (probe): Simplify partmap probing (with the
45794 assumption that the first word up to the underscore equals to
45795 the module name).
45796
b0dfd29a 457972008-02-06 Christian Franke <franke@computer.org>
45798
45799 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45800 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45801 last block of a cpio or tar stream.
45802 Check for "TRAILER!!!" instead of any empty data
45803 block to detect last block of a cpio stream.
45804 (grub_cpio_dir): Fix constness of variable np.
45805 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45806 cpio or tar trailer is detected. This fixes a crash
45807 on open of a non existing file.
45808
c32865bf 458092008-02-05 Bean <bean123ch@gmail.com>
45810
45811 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45812 address of entry.
45813 (grub_multiboot_load_elf64): Likewise.
45814 (grub_multiboot): Initialize mbi structure.
45815
45816 * util/grub-fstest.c: Don't include unused header file script.h.
45817
fe6b695a 45818 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 45819 of file.
45820 (grub_fstest_SOURCES): Likewise.
45821
409480b7 458222008-02-05 Robert Millan <rmh@aybabtu.com>
45823
45824 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45825 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45826 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45827 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45828
45829 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45830 (translation_table): Replace hardcoded values with macros
45831 provided by `<grub/term.h>'.
45832
45833 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45834 (keyboard_map): Correct/add a few values, with macros provided
45835 by `<grub/term.h>'.
45836 (keyboard_map_shift): Zero values that don't differ from their
45837 `keyboard_map' equivalents.
45838 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45839 Discard the second scan code that is always sent by Caps lock.
45840 Only use `keyboard_map_shift' when it provides a non-zero value,
45841 otherwise fallback to `keyboard_map'.
45842
99fadbaa 458432008-02-04 Bean <bean123ch@gmail.com>
45844
45845 * Makefile.in (enable_grub_fstest): New variable.
45846
45847 * conf/common.rmk (grub_fstest_init.lst): New rule.
45848 (grub_fstest_init.h): Likewise.
45849 (grub_fstest_init.c): Likewise.
45850 (util/grub-fstest.c_DEPENDENCIES): New variable.
45851 (grub_fstest_SOURCES): Likewise.
45852
45853 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45854
45855 * util/grub-fstest.c: New file.
45856
bf567c50 458572008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45858
45859 Make grub-setup handle a separate root device.
f19dbdb7 45860
bf567c50 45861 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45862 so that the root device can be compared with the destination
45863 device.
45864 When embedding the core image, if the root and destination devices
45865 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45866 0xFF.
45867 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 45868
9be6b98b 458692008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45870
45871 Add support for having a grub directory in a different drive. This
45872 is still only the data handling part.
f19dbdb7 45873
9be6b98b 45874 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45875 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45876 (grub_root_drive): New variable.
45877
45878 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45879 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45880 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45881 as it was.
45882
45883 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45884
45885 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45886 macro.
45887 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45888
45889 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45890 is bogus, because PXE booting does not specify any drive
45891 correctly.
45892
45893 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45894 am not sure if this is really correct.
45895
45896 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45897 is always identical to the boot drive when booting from a CD.
45898
45899 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45900 longer.
45901 (root_drive): New variable.
45902 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45903 (setup_sectors): Push %dx right after popping it, because %dh will
45904 be modified later.
45905 (copy_buffer): Restore %dx.
45906
e0ca0677 459072008-02-03 Robert Millan <rmh@aybabtu.com>
45908
45909 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45910 use `cdboot.img' for cdrom images.
45911
3b3f6629 459122008-02-03 Robert Millan <rmh@aybabtu.com>
45913
45914 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45915 only setup gfxterm when `font' command has succeeded.
45916
d42b3672 459172008-02-03 Robert Millan <rmh@aybabtu.com>
45918
45919 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45920 (grub_rescue_cmd_multiboot_loader)
45921 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45922
fa370ea6 459232008-02-03 Pavel Roskin <proski@gnu.org>
45924
e0c5dacb 45925 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 45926 %edx and %esi from stack only after grub_gate_a20() is called.
45927 grub_gate_a20() clobbers %edx.
45928
f2a76e1d 459292008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45930
45931 * configure.ac (AC_INIT): Bumped to 1.96.
45932
45933 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45934 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45935 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45936 video/readers/png.c.
45937
90fd32d1 459382008-02-03 Bean <bean123ch@gmail.com>
9be665dd 45939
45940 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45941 (cdboot_img_SOURCES): New variable.
45942 (cdboot_img_ASFLAGS): New variable.
45943 (cdboot_img_LDFLAGS): New variable.
45944
45945 * boot/i386/pc/cdboot.S: New file.
45946
45947 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45948 (cd_count): Likewise.
45949 (grub_biosdisk_get_drive): Add support for cd device.
45950 (grub_biosdisk_call_hook): Likewise.
45951 (grub_biosdisk_iterate): Likewise.
45952 (grub_biosdisk_open): Likewise.
45953 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45954 (grub_biosdisk_rw): Support reading from cd device.
45955 (GRUB_MOD_INIT): Iterate cd devices.
45956
45957 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45958 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45959 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45960
45961 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45962
4020aa53 459632008-02-02 Robert Millan <rmh@aybabtu.com>
45964
45965 * commands/read.c: New file.
45966 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45967 (read_mod_SOURCES): New variable.
45968 (read_mod_CFLAGS): Likewise.
45969 (read_mod_LDFLAGS): Likewise.
45970
e03a1132 459712008-02-02 Robert Millan <rmh@aybabtu.com>
45972
45973 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45974 determining whether menu has to be displayed.
45975
58c69220 459762008-02-02 Marco Gerards <marco@gnu.org>
45977
45978 * bus/pci.c: New file.
45979
45980 * include/grub/pci.h: Likewise.
45981
45982 * include/grub/i386/pc/pci.h: Likewise.
45983
45984 * commands/lspci.c: Likewise.
45985
45986 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45987 `lspci.mod'.
45988 (pci_mod_SOURCES): New variable.
45989 (pci_mod_CFLAGS): Likewise.
45990 (pci_mod_LDFLAGS): Likewise.
45991 (lspci_mod_SOURCES): Likewise.
45992 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 45993 (lspci_mod_LDFLAGS): Likewise.
58c69220 45994
c004e1b4 459952008-02-02 Bean <bean123ch@gmail.com>
45996
45997 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45998 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45999
46000 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46001 (grub_xfs_btree_node): New structure.
46002 (grub_xfs_btree_root): New structure.
46003 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46004 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46005 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46006 (GRUB_XFS_EXTENT_SIZE): Likewise.
46007 (grub_xfs_read_block): Support btree format type.
46008 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46009 Use directory block as basic unit.
46010
46011 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46012
46013 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46014 __attribute__ ((__regparm__ (1))).
46015
f95562bf 460162008-02-01 Robert Millan <rmh@aybabtu.com>
46017
46018 Correct a mistake in previous commit.
46019
46020 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46021 top.
46022 (normal/command.c_DEPENDENCIES): New variable.
46023
7d31f41f 460242008-02-01 Robert Millan <rmh@aybabtu.com>
46025
46026 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46027 top.
46028 (normal/command.c_DEPENDENCIES): New variable.
46029 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46030 * conf/i386-ieee1275.rmk: Likewise.
46031 * conf/i386-linuxbios.rmk: Likewise.
46032 * conf/i386-pc.rmk: Likewise.
46033 * conf/sparc64-ieee1275.rmk: Likewise.
46034 * conf/powerpc-ieee1275.rmk: Likewise.
46035 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46036
46037 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46038
60b6be74 460392008-02-01 Robert Millan <rmh@aybabtu.com>
46040
46041 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46042 call at beginning of function.
46043
078522ab 460442008-01-31 Pavel Roskin <proski@gnu.org>
46045
46046 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 46047 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46048 (grub_mkrescue_SOURCES): Likewise.
078522ab 46049 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46050
ccaa8a5f 460512008-01-30 Robert Millan <rmh@aybabtu.com>
46052
46053 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46054 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46055 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46056 (grub_probe_SOURCES): ... to here.
46057
46058 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46059 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46060 * conf/i386-ieee1275.rmk: Likewise.
46061 * conf/i386-linuxbios.rmk: Likewise.
46062 * conf/powerpc-ieee1275.rmk: Likewise.
46063
ae5a9cd7 460642008-01-30 Tristan Gingold <gingold@free.fr>
46065
46066 * kern/rescue.c: Silently accept empty lines.
46067
70bc2ef2 460682008-01-29 Bean <bean123ch@gmail.com>
46069
46070 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46071 (real_code_2): Code cleanup and change comment style.
46072 (move_memory): Avoid using 32-bit address mode.
46073
6a4d50ea 460742008-01-29 Bean <bean123ch@gmail.com>
46075
46076 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46077 (png_mod_SOURCES): New variable.
46078 (png_mod_CFLAGS): Likewise.
46079 (png_mod_LDFLAGS): Likewise.
46080
46081 * video/readers/png.c: New file.
46082
11cc30ac 460832008-01-28 Robert Millan <rmh@aybabtu.com>
46084
46085 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46086 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46087 `ifndef GRUB_MOD_GAP' hack.
46088 * util/elf/grub-mkimage.c (add_segments): Likewise.
46089
3abc589f 460902008-01-27 Robert Millan <rmh@aybabtu.com>
46091
46092 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46093 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 46094 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 46095
e1907778 460962008-01-27 Robert Millan <rmh@aybabtu.com>
46097
46098 Get grub-emu to build again (including parallel builds).
46099
46100 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46101 Split into ...
46102 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46103 (normal/execute.c_DEPENDENCIES): ... this, ...
46104 (grub-emu_DEPENDENCIES): ... and this.
46105
46106 * conf/i386-efi.rmk: Likewise.
46107 * conf/i386-linuxbios.rmk: Likewise.
46108 * conf/i386-ieee1275.rmk: Likewise.
46109 * conf/powerpc-ieee1275.rmk: Likewise.
46110 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46111
2216b101 461122008-01-27 Robert Millan <rmh@aybabtu.com>
46113
46114 * NEWS: Add a few items.
46115
f75172d9 461162008-01-27 Robert Millan <rmh@aybabtu.com>
46117
46118 Fix parallel builds with grub-emu. Based on earlier commit for
46119 grub-probe and grub-setup.
46120
46121 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46122 (util/grub-emu.c_DEPENDENCIES): ... this.
46123 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46124 (util/grub-emu.c_DEPENDENCIES): ... this.
46125 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46126 (util/grub-emu.c_DEPENDENCIES): ... this.
46127 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46128 (util/grub-emu.c_DEPENDENCIES): ... this.
46129 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46130 (util/grub-emu.c_DEPENDENCIES): ... this.
46131
3f51de77 461322008-01-27 Pavel Roskin <proski@gnu.org>
46133
46134 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46135 to create a gap between _end and the modules added to the image
46136 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46137 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46138 * util/elf/grub-mkimage.c (add_segments): Likewise.
46139
2033f53e 461402008-01-26 Pavel Roskin <proski@gnu.org>
46141
46142 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46143 just return an error.
46144
22da1f6f 461452008-01-26 Bean <bean123ch@gmail.com>
46146
46147 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46148 (grub_reiserfs_get_item): Save offset of the next item.
46149 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46150
2a9525e6 461512008-01-25 Robert Millan <rmh@aybabtu.com>
46152
46153 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46154 make all filesystem sources appear together (possibly fixing omissions
46155 while at it).
46156 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46157 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46158 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46160
46161 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46162 add `kern/file.c'.
46163 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46164 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46165 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46166 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46167
46168 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46169 (probe): Add a sanity check to make sure of our ability to read
46170 requested files when probing for filesystem type.
46171
46172 * genmk.rb: Update copyright year (2007).
46173
46174 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46175 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46176 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46177 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46178 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46179 : Remove function prototypes.
46180
b95f71b5 461812008-01-25 Robert Millan <rmh@aybabtu.com>
46182
46183 Revert my previous commits (based on wrong assumption of how grub_errno
46184 works).
46185
fe6b695a 46186 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 46187 * kern/file.c (grub_file_open): Likewise.
46188
d08bbb49 461892008-01-24 Pavel Roskin <proski@gnu.org>
46190
46191 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46192 that hang if GRUB tries to setup colors.
46193 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46194 colors for firmwares that don't support it.
46195 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46196 Recognize Open Hack'Ware, set flags to work around its
46197 limitations.
46198
605e36ed 461992008-01-24 Robert Millan <rmh@aybabtu.com>
46200
46201 * kern/file.c (grub_file_open): Do not account previous failures of
46202 unrelated functions when grub_errno is checked for.
46203 Reported by Oleg Strikov.
46204
bac332a1 462052008-01-24 Bean <bean123ch@gmail.com>
46206
46207 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46208 (grub_ufs_sblock): New member volume name.
46209 (grub_ufs_find_file): Fix string copy bug.
46210 (grub_ufs_label): Implement this function properly.
46211
46212 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46213 (grub_hfs_iterate_records): Use the correct file number for extents
46214 and catalog file. Fix problem in next index calculation.
46215 (grub_hfs_find_node): Replace recursive function call with loop.
46216 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46217
15c80c09 462182008-01-23 Robert Millan <rmh@aybabtu.com>
46219
46220 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46221 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46222 (grub_multiboot2_real_boot): New function prototype.
46223
46224 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46225 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46226
46227 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46228 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46229
305338fd 462302008-01-23 Robert Millan <rmh@aybabtu.com>
46231
46232 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46233 #ifdef'ed out grub_printf().
46234
3ea52685 462352008-01-23 Robert Millan <rmh@aybabtu.com>
46236
46237 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46238 grub_dprintf calls, since they make "debug=all" mode unusable.
46239 (grub_console_checkkey): Likewise.
46240
5882ae4b 462412008-01-23 Robert Millan <rmh@aybabtu.com>
46242
46243 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46244 `term/i386/pc/at_keyboard.c'.
46245 (pkglib_MODULES): Add `serial.mod'.
46246 (serial_mod_SOURCES): New variable.
46247 (serial_mod_CFLAGS): Likewise.
46248 (serial_mod_LDFLAGS): Likewise.
46249
46250 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46251 `<grub/powerpc/ieee1275/console.h>'.
46252 (grub_keyboard_controller_init): New function prototype.
46253 (grub_console_checkkey): Likewise.
46254 (grub_console_getkey): Likewise.
46255
46256 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46257 keyboard on i386.
46258
46259 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46260 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46261
06ab5303 462622008-01-23 Robert Millan <rmh@aybabtu.com>
46263
46264 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46265 present, "(memdisk)/boot/grub" becomes the default prefix.
46266
46267 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46268 a memdisk tarball with all the modules. Add --overlay=DIR option that
46269 allows users to overlay additional files into the image.
46270
dbb475a4 462712008-01-23 Robert Millan <rmh@aybabtu.com>
46272
46273 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46274 and `machine/memory.h'.
46275 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46276 (_multiboot_mod_SOURCES): New variable.
46277 (_multiboot_mod_CFLAGS): Likewise.
46278 (_multiboot_mod_LDFLAGS): Likewise.
46279 (multiboot_mod_SOURCES): Likewise.
46280 (multiboot_mod_CFLAGS): Likewise.
46281 (multiboot_mod_LDFLAGS): Likewise.
46282
46283 * include/grub/i386/ieee1275/loader.h: New file.
46284
46285 * include/grub/i386/ieee1275/machine.h: Likewise.
46286
46287 * include/grub/i386/ieee1275/memory.h: Likewise.
46288
46289 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46290 variable declaration.
46291 (grub_os_area_size): Likewise.
46292
46293 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46294 (grub_lower_mem, grub_upper_mem): New variables.
46295 (grub_stop_floppy): New function (just to make
46296 grub_multiboot2_real_boot() happy).
46297
46298 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46299 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46300 (grub_stop): New function.
46301 Include `"../realmode.S"' and `"../loader.S"'.
46302
46303 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46304 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46305
46306 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46307 rely on grub_multiboot2_real_boot() for final boot.
46308
25638629 463092008-01-22 Robert Millan <rmh@aybabtu.com>
46310
46311 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46312 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46313 device that doesn't look like an SD card.
46314 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46315 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46316 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46317 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46318 found.
46319
9dad816d 463202008-01-22 Robert Millan <rmh@aybabtu.com>
46321
46322 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46323 avoid claiming over our own code.
46324
34842f2d 463252008-01-22 Bean <bean123ch@gmail.com>
46326
46327 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46328 (jpeg_mod_SOURCES): New variable.
46329 (jpeg_mod_CFLAGS): Likewise.
46330 (jpeg_mod_LDFLAGS): Likewise.
46331
46332 * video/readers/jpeg.c : New file.
46333
44023a28 463342008-01-22 Bean <bean123ch@gmail.com>
46335
46336 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46337 there are no more items.
46338
bc2d8ac6 463392008-01-21 Robert Millan <rmh@aybabtu.com>
46340
46341 * kern/mm.c (grub_mm_init_region): Improve debug message.
46342
261bd4bc 463432008-01-21 Robert Millan <rmh@aybabtu.com>
46344
46345 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46346 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46347 address.
46348 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46349 a C macro.
46350 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46351 Indicates start of upper memory.
46352 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46353 (generate_image): Abort when image size is big enough to corrupt
46354 upper memory.
46355
46356 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46357 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46358 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46359 instead of hardcoding 0xA0000.
46360 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46361 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46362 instead of hardcoding 0xA0000.
46363
f970b55e 463642008-01-21 Robert Millan <rmh@aybabtu.com>
46365
46366 * disk/memdisk.c (memdisk_size): New variable.
46367 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46368 `memdisk_size'.
46369 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46370 image to dynamic memory.
46371 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46372 `memdisk_size'. Free memdisk block.
46373
1a8b0526 463742008-01-21 Robert Millan <rmh@aybabtu.com>
46375
46376 Fix detection of very small filesystems (like tar).
46377
46378 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46379 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46380 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46381 a problem with this disk).
46382
6e9b4aab 463832008-01-21 Robert Millan <rmh@aybabtu.com>
46384
46385 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46386 on grub_biosdisk_rw_standard() error.
46387
0d8837b2 463882008-01-21 Robert Millan <rmh@aybabtu.com>
46389
46390 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46391 recent changes.
46392 * kern/elf.c: Likewise.
46393 * kern/ieee1275/ieee1275.c: Likewise.
46394 * kern/powerpc/ieee1275/openfw.c: Likewise.
46395 * term/ieee1275/ofconsole.c: Likewise.
46396
ffd36e34 463972008-01-21 Robert Millan <rmh@aybabtu.com>
46398
46399 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46400
3f0093d0 46401 * include/grub/kernel.h (grub_arch_memdisk_addr)
46402 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 46403
3f0093d0 46404 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46405 (grub_arch_memdisk_size): ... to here.
ffd36e34 46406
6c391b21 464072008-01-21 Robert Millan <rmh@aybabtu.com>
46408
46409 Mostly based on bugfix from Bean.
46410
46411 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46412 attribute with hook() parameter.
46413 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46414 declaration.
46415 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46416 attribute with hook() parameter.
46417 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46418 declaration.
46419
55a581dc 464202008-01-21 Robert Millan <rmh@aybabtu.com>
46421
46422 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46423 (pkglib_MODULES): Add `memdisk.mod'.
46424 (memdisk_mod_SOURCES): New variable.
46425 (memdisk_mod_CFLAGS): Likewise.
46426 (memdisk_mod_LDFLAGS): Likewise.
46427
46428 * disk/memdisk.c: New file.
46429
46430 * include/grub/disk.h (grub_disk_dev_id): Add
46431 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46432
46433 * include/grub/i386/pc/kernel.h
46434 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46435 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46436 (grub_kernel_image_size): New variable declaration.
46437 (grub_total_module_size): Likewise.
46438 (grub_memdisk_image_size): Likewise.
46439
46440 * include/grub/i386/pc/memory.h
46441 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46442
46443 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46444 (grub_arch_memdisk_addr): New variable declaration.
46445 (grub_arch_memdisk_size): Likewise.
46446
46447 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46448 (grub_arch_memdisk_size): Likewise.
46449
46450 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46451 (codestart): Replace hardcoded `0x100000' with
46452 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46453
46454 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46455 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46456 not NULL, append the contents of the file it refers to, at the end of
46457 the compressed kernel image. Initialize `grub_memdisk_image_size'
46458 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46459 (options): Add "memdisk"|'m' option.
46460 (main): Parse --memdisk|-m option, and pass user-provided path as
46461 parameter to generate_image().
46462
3d7f54c9 464632008-01-20 Robert Millan <rmh@aybabtu.com>
46464
46465 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46466 grub_dprintf() calls from here ...
46467 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46468
0bf74728 464692008-01-20 Robert Millan <rmh@aybabtu.com>
46470
46471 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46472
46473 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46474 declaration.
46475 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46476 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46477 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 46478 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 46479 property).
46480 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46481 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46482
33bf70a7 464832008-01-19 Robert Millan <rmh@aybabtu.com>
46484
fe6b695a 46485 Get rid of confusing function (superseded by
33bf70a7 46486 `grub_ieee1275_get_integer_property')
46487 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46488 prototype.
46489 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46490 function.
46491 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46492 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 46493 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 46494
e2da7d26 464952008-01-19 Robert Millan <rmh@aybabtu.com>
46496
46497 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46498 command after "shut-down", since implementations differ on which
46499 the command for halt is.
46500
59f1fd8d 465012008-01-19 Robert Millan <rmh@aybabtu.com>
46502
46503 * include/grub/i386/linuxbios/console.h: Add header protection.
46504 (grub_keyboard_controller_init): New function prototype.
46505 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46506 (KEYBOARD_COMMAND_READ): Likewise.
46507 (KEYBOARD_COMMAND_WRITE): Likewise.
46508 (KEYBOARD_SCANCODE_SET1): Likewise.
46509 (grub_keyboard_controller_write): New function.
46510 (grub_keyboard_controller_read): Likewise.
46511 (grub_keyboard_controller_init): Likewise.
46512
46513 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46514 (grub_console_init): On coreboot/LinuxBIOS, call
46515 grub_keyboard_controller_init().
46516
5f5a7c15 465172008-01-19 Robert Millan <rmh@aybabtu.com>
46518
46519 PowerPC changes provided by Pavel Roskin.
46520
46521 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46522 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46523 don't rely on cmain() doing it.
46524 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46525 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46526
1210e168 465272008-01-16 Robert Millan <rmh@aybabtu.com>
46528
46529 * include/grub/i386/linuxbios/memory.h
46530 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46531 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46532 receive `table_header' as argument. Instead, probe for it in the
46533 known memory ranges where it can be present.
46534 (grub_available_iterate): Do not pass a fixed `table_header' address
46535 to grub_linuxbios_table_iterate().
46536
3d04eab8 465372008-01-15 Robert Millan <rmh@aybabtu.com>
46538
46539 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46540 * conf/i386-ieee1275.rmk: New file.
46541 * include/grub/i386/ieee1275/console.h: Likewise.
46542 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46543 * include/grub/i386/ieee1275/kernel.h: Likewise.
46544 * include/grub/i386/ieee1275/time.h: Likewise.
46545 * kern/i386/ieee1275/init.c: Likewise.
46546 * kern/i386/ieee1275/startup.S: Likewise.
46547
d1bc1b73 465482008-01-15 Robert Millan <rmh@aybabtu.com>
46549
46550 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46551 when pointers are 32-bit (but still do set it to one when they are
46552 64-bit).
46553
66a65807 465542008-01-15 Robert Millan <rmh@aybabtu.com>
46555
46556 * include/grub/ieee1275/ieee1275.h
46557 (grub_ieee1275_get_integer_property): New function prototype.
46558
46559 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46560 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 46561 grub_ieee1275_get_property() to handle endianness.
66a65807 46562
46563 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46564 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 46565 where appropriate.
66a65807 46566 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46567 (grub_map): Likewise.
46568 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46569
a83ccafd 465702008-01-15 Bean <bean123ch@gmail.com>
46571
46572 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46573 (grub_script_execute_cmdline): Reset grub_errno.
46574
46575 * normal/main.c (read_config_file): Reset grub_errno.
46576
46577 * normal/parse.y (script_init): New.
46578 (script): Move function and menuentry here.
46579 (delimiter): New.
46580 (command): Add delimiter at the end of command.
46581 (commands): Adjust to match the new command.
46582 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 46583 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 46584 (if): Use the new commands.
46585
46586 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46587
df6ecfc6 465882008-01-15 Robert Millan <rmh@aybabtu.com>
46589
46590 * normal/menu.c (run_menu): Move timeout message from here ...
46591 (print_timeout): ... to here.
46592 (run_menu): Use print_timeout() once during initial draw to print
46593 the whole message, and again in every clock tick to update only
46594 the number of seconds.
46595
87ae25eb 465962008-01-15 Robert Millan <rmh@aybabtu.com>
46597
46598 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46599 actual size of `available' from grub_ieee1275_get_property(), and
46600 restrict parsing to that bound.
46601
47bf09a4 466022008-01-15 Christian Franke <franke@computer.org>
46603
46604 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46605 (argp_program_version): Remove variable.
46606 (argp_program_bug_address): Likewise.
46607 (options): Convert from struct argp_option to struct option.
46608 (struct arguments): Remove.
46609 (parse_opt): Remove.
46610 (usage): New function.
46611 (main): Replace struct args members by simple variables.
46612 Replace argp_parse() by getopt_long().
46613 Add switch to evaluate options.
46614 Add missing "(...)" around root_dev in prefix string.
46615
c86f1469 466162008-01-14 Robert Millan <rmh@aybabtu.com>
46617
46618 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46619 for grub_ieee1275_exit(), in order to improve portability.
46620
e622c559 466212008-01-14 Robert Millan <rmh@aybabtu.com>
46622
46623 * util/grub.d/10_linux.in (prefix): Define.
46624 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46625
44cb1ec8 466262008-01-13 Pavel Roskin <proski@gnu.org>
46627
46628 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46629 grub_errno if no errors have been detected.
46630
1eb8c802 466312008-01-12 Robert Millan <rmh@aybabtu.com>
46632
46633 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46634 (grub_util_get_dev_abstraction): New function prototype.
46635
46636 * util/getroot.c: Include `<grub/util/getroot.h>'
46637 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46638 (grub_util_get_dev_abstraction): ... here (new function).
46639
46640 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46641 `PRINT_ABSTRACTION'.
46642 (probe): Probe for abstraction type when requested.
46643 (main): Understand `--target=abstraction'.
46644
46645 * util/i386/efi/grub-install.in: Add abstraction module to core
46646 image when it is found to be necessary.
46647 * util/i386/pc/grub-install.in: Likewise.
46648 * util/powerpc/ieee1275/grub-install.in: Likewise.
46649
46650 * util/update-grub_lib.in (font_path): Return system path without
46651 converting to GRUB path.
46652 * util/update-grub.in: Convert system path returned by font_path()
46653 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46654 abstraction module is needed for loading fonts (if any). Export
46655 that as `GRUB_PRELOAD_MODULES'.
46656 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46657 insmod commands).
46658
52bd3de9 466592008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46660
46661 Remove some unused code from reiserfs.
f19dbdb7 46662
52bd3de9 46663 * fs/reiserfs.c (struct grub_reiserfs_key)
46664 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46665 (struct grub_reiserfs_node_body): Removed.
46666 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46667 Likewise.
46668 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46669 Likewise.
46670 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46671 Likewise.
46672 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46673 Likewise.
46674 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46675 Likewise.
46676 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46677 Likewise.
46678 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46679 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46680 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46681
2f80039d 466822008-01-10 Robert Millan <rmh@aybabtu.com>
46683
46684 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46685 Determines if a file is garbage left by packaging systems, etc.
46686 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46687 for processing /etc/grub.d scripts.
46688 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46689 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46690 as a condition for processing Linux images.
46691
87888032 466922008-01-10 Pavel Roskin <proski@gnu.org>
46693
46694 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46695 to compile reiserfs.c on PowerPC.
46696
7e54fced 466972008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 46698
46699 * kern/device.c (grub_device_iterate): Do not abort device iteration
46700 when one of the devices cannot be opened.
46701 * kern/disk.c (grub_disk_open): Do not account previous failures of
46702 unrelated functions when grub_errno is checked for.
46703
5aa541e6 467042008-01-08 Robert Millan <rmh@aybabtu.com>
46705
46706 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46707 `! grub_linux_is_bzimage', change order of address comparison to make
46708 it more intuitive, and improve "too big zImage" error message.
46709
7076340d 467102008-01-08 Robert Millan <rmh@aybabtu.com>
46711
46712 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46713 `$(update-grub_DATA)'.
46714 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46715 targets.
46716
9ca70333 467172008-01-07 Robert Millan <rmh@aybabtu.com>
46718
46719 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46720 which instruction is modified by grub-setup during installation
46721 (since it wasn't obvious by only looking at this file).
46722
38ccf575 467232008-01-07 Robert Millan <rmh@aybabtu.com>
46724
46725 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46726 listing actual TODO items.
46727
f5db4291 467282008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46729
868967cf 46730 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46731 correctly.
46732 (grub_reiserfs_get_key_offset): Likewise.
46733 (grub_reiserfs_set_key_offset): Likewise.
46734 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 46735 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 46736
46737 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46738 better to remove the bitfield version completely.
f19dbdb7 46739
868967cf 467402008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 46741
f5db4291 46742 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46743 allocated from the heap, due to the fshelp implementation.
46744 (grub_reiserfs_dir): Free NODE, due to the same reason.
46745
492e6d9d 467462008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46747
46748 Mostly from Vincent Pelletier:
f19dbdb7 46749
492e6d9d 46750 * fs/reiserfs.c: New file.
f19dbdb7 46751
492e6d9d 46752 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46753 (reiserfs_mod_SOURCES): New variable.
46754 (reiserfs_mod_CFLAGS): Likewise.
46755 (reiserfs_mod_LDFLAGS): Likewise.
46756
46757 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46758 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46759 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46760 normal/color.c.
46761
9ce3e7c1 467622008-01-06 Robert Millan <rmh@aybabtu.com>
46763
46764 * normal/color.c: Remove `<grub/env.h>'.
46765
f3b58148 467662008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46767
46768 * include/grub/normal.h: Include <grub/env.h>.
46769
7ac3bcfa 467702008-01-05 Robert Millan <rmh@aybabtu.com>
46771
46772 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46773 usage example with `(hd0,1)'.
fb358190 46774 Reported by Samuel Thibault.
7ac3bcfa 46775
c8ee99d7 467762008-01-05 Robert Millan <rmh@aybabtu.com>
46777
46778 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46779 (grub_linux_boot_zimage): Rename to ...
46780 (grub_linux_boot): ... this.
46781 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46782 (grub_linux_boot_zimage): Conditionalize zImage copy.
46783
46784 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46785 (grub_linux_boot_bzimage): Remove prototype.
46786 (grub_linux_boot_zimage): Rename to ...
46787 (grub_linux_boot): ... this.
46788
46789 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46790 (grub_linux_boot): Remove function.
46791
0ece25b1 467922008-01-05 Robert Millan <rmh@aybabtu.com>
46793
46794 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46795 (grub_env_write_color_highlight): Likewise.
46796 (grub_wait_after_message): Likewise.
46797
46798 * normal/color.c: New file.
46799
46800 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46801 (normal_mod_DEPENDENCIES): Likewise.
46802
46803 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46804 (normal_mod_DEPENDENCIES): Likewise.
46805
46806 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46807 (normal_mod_DEPENDENCIES): Likewise.
46808
46809 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46810 (normal_mod_DEPENDENCIES): Likewise.
46811
46812 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46813 for waiting after a message is printed.
46814 * normal/main.c (read_config_file): Likewise.
46815 (grub_normal_init): Register grub_env_write_color_normal() and
46816 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46817 `color_highlight' variables as global.
46818
46819 * normal/menu.c (grub_wait_after_message): New function.
46820 (grub_color_menu_normal): New variable. Replaces ...
46821 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46822 (grub_color_menu_highlight): New variable. Replaces ...
46823 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46824 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46825 `GRUB_TERM_COLOR_STANDARD'.
46826 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46827 `normal_code' and `highlight_code' to `old_color_normal' and
46828 `old_color_highlight', respectively.
46829 (grub_menu_init_page): Update colors when drawing the menu, based on
46830 `menu_color_normal' and `menu_color_highlight' variables.
46831 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46832 a message is printed.
46833
182dd4e5 468342008-01-05 Robert Millan <rmh@aybabtu.com>
46835
46836 * kern/env.c (grub_env_context_open): Propagate hooks for global
46837 variables to new context.
46838
46839 * kern/main.c (grub_set_root_dev): Export `root' variable.
46840
ddf8f6ad 468412008-01-05 Robert Millan <rmh@aybabtu.com>
46842
46843 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 46844 discs unconditionally, since udev and others have options to provide
ddf8f6ad 46845 them.
46846
d8b43d9b 468472008-01-05 Robert Millan <rmh@aybabtu.com>
46848
46849 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46850
2bff2de3 468512008-01-04 Christian Franke <franke@computer.org>
46852
46853 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46854 of eisa_mmap.
46855
97eab917 468562008-01-03 Pavel Roskin <proski@gnu.org>
46857
46858 * kern/i386/linuxbios/init.c: Put "void" to all function
46859 declarations with no arguments.
46860 * kern/powerpc/ieee1275/init.c: Likewise.
46861 * term/i386/pc/at_keyboard.c: Likewise.
46862 * term/i386/pc/vga_text.c: Likewise.
46863 * util/grub-mkdevicemap.c: Likewise.
46864
b9416d00 468652008-01-02 Robert Millan <rmh@aybabtu.com>
46866
46867 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46868 message when loaded image is out of bounds.
46869 (grub_multiboot_load_elf64): Likewise.
46870
92695df9 468712008-01-02 Pavel Roskin <proski@gnu.org>
46872
46873 * util/grub.d/10_linux.in: Try version without ".old" when
46874 looking for initrd. It's better to use initrd from the newer
46875 kernel of the same version than no initrd at all.
46876
d98d9cad 468772008-01-01 Robert Millan <rmh@aybabtu.com>
46878
46879 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46880
dbfdce36 468812008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46882
f19dbdb7 46883 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 46884 grub_video_get_active_render_target.
46885 (grub_video_adapter): Added unmap_color and get_active_render_target.
46886
f19dbdb7 46887 * video/video.c: Added grub_video_unmap_color and
dbfdce36 46888 grub_video_get_active_render_target.
46889 (grub_video_get_info): Changed method to accept NULL pointer as an
46890 argument to allow detection of active video adapter.
46891
46892 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46893 grub_video_vbe_unmap_color_int.
46894 Added grub_video_vbe_unmap_color and
46895 grub_video_vbe_get_active_render_target.
46896 (grub_video_vbe_adapter): Added unmap_color and
46897 get_active_render_target.
46898
f19dbdb7 46899 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 46900 with grub_video_vbe_unmap_color_int.
46901
46902 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46903 (DEFAULT_NORMAL_COLOR): Likewise.
46904 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46905 (DEFAULT_FG_COLOR): Removed.
46906 (DEFAULT_BG_COLOR): Likewise.
46907 (DEFAULT_CURSOR_COLOR): Changed value.
46908 (grub_virtual_screen): Added standard_color_setting,
46909 normal_color_setting, highlight_color_setting and term_color.
46910 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46911 (bitmap_width): Added.
46912 (bitmap_height): Likewise.
46913 (bitmap): Likewise.
46914 (set_term_color): Likewise.
46915 (grub_virtual_screen_setup): Changed to use new terminal coloring
46916 settings.
46917 (grub_gfxterm_init): Added init for bitmap.
46918 (grub_gfxterm_fini): Added destroy for bitmap.
46919 (redraw_screen_rect): Updated to use background bitmap and new
46920 terminal coloring.
46921 (scroll_up): Added optimization for case when there is no bitmap.
46922 (grub_gfxterm_cls): Fixed to use correct background color.
46923 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46924 coloring.
46925 (grub_virtual_screen_setcolor): Likewise.
46926 (grub_virtual_screen_getcolor): Added.
46927 (grub_gfxterm_background_image_cmd): Likewise.
46928 (grub_video_term): Added setcolor and getcolor.
46929 (MOD_INIT): Added registration of background_image command.
46930 (MOD_TERM): Added unregistration for background_image command.
46931
c3c20931 469322007-12-30 Pavel Roskin <proski@gnu.org>
46933
46934 * loader/multiboot_loader.c: Fix multiboot command
46935 unregistration. Fix all typos in the word "multiboot".
46936
df266716 469372007-12-29 Pavel Roskin <proski@gnu.org>
94239199 46938
46939 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46940 support for initrd names used in Fedora.
46941
fc6e896c 469422007-12-26 Bean <bean123ch@gmail.com>
46943
46944 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46945 (cpio_mod_SOURCES): New variable.
46946 (cpio_mod_CFLAGS): Likewise.
46947 (cpio_mod_LDFLAGS): Likewise.
46948
46949 * fs/cpio.c: New file.
46950
46951 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46952
46953 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46954
46955 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46956
46957 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46958
533110ad 469592007-12-25 Robert Millan <rmh@aybabtu.com>
46960
46961 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46962 (grub_getcolor): New function.
46963
46964 * kern/term.c (grub_getcolor): New function.
46965 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46966 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46967 (print_entry): Set normal and highlight colors to
46968 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46969 respectively, before printing and restore them to old
46970 values afterwards.
46971 (grub_menu_init_page): Likewise. Fill an additional colored space
46972 that would otherwise be left blank.
46973
46974 * term/efi/console.c (grub_console_getcolor): New function.
46975 (struct grub_console_term.getcolor): New variable.
46976 * term/i386/pc/console.c (grub_console_getcolor): New function.
46977 (struct grub_console_term.getcolor): New variable.
46978 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46979 (struct grub_console_term.getcolor): New variable.
46980
46981 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46982 (struct grub_console_term.setcolor): Remove variable.
46983 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46984 (struct grub_console_term.setcolor): Remove variable.
46985 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46986 (struct grub_console_term.setcolor): Remove variable.
46987 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46988 (struct grub_console_term.setcolor): Remove variable.
46989
4931827f 469902007-12-25 Robert Millan <rmh@aybabtu.com>
46991
46992 * configure.ac: Search for possible unifont.hex locations, and
46993 define UNIFONT_HEX if found.
46994
46995 * Makefile.in (UNIFONT_HEX): Define variable.
46996 (DATA): Rename to ...
46997 (PKGLIB): ... this. Update all users.
46998 (PKGDATA): New variable.
46999 (pkgdata_IMAGES): Rename to ...
47000 (pkglib_IMAGES): ... this. Update all users.
47001 (pkgdata_MODULES): Rename to ...
47002 (pkglib_MODULES): ... this. Update all users.
47003 (pkgdata_PROGRAMS): Rename to ...
47004 (pkglib_PROGRAMS): ... this. Update all users.
47005 (pkgdata_DATA): Rename to ...
47006 (pkglib_DATA): ... this. Update all users.
47007 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47008 (unicode.pff, ascii.pff): New rules.
47009 (all-local): Add `$(PKGDATA)' dependency.
47010 (install-local): Process `$(PKGDATA)'.
47011
47012 * util/update-grub_lib.in (font_path): Search for *.pff files in
47013 a few more locations, including `${pkgdata}'.
47014
57e57e31 470152007-12-23 Robert Millan <rmh@aybabtu.com>
47016
47017 Patch from Bean <bean123ch@gmail.com>:
47018 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47019 `size'.
47020
4bc72aa9 470212007-12-21 Bean <bean123ch@gmail.com>
47022
47023 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47024 (ntfscomp_mod_SOURCES): New variable.
47025 (ntfscomp_mod_CFLAGS): Likewise.
47026 (ntfscomp_mod_LDFLAGS): Likewise.
47027
47028 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47029 (grub_probe_SOURCES): Likewise.
47030 (grub_emu_SOURCES): Likewise.
47031
47032 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47033 (grub_emu_SOURCES): Likewise.
47034
47035 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47036 (grub_emu_SOURCES): Likewise.
47037
47038 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47039 (grub_emu_SOURCES): Likewise.
47040
47041 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47042 (read_run_list): Renamed to grub_ntfs_read_run_list.
47043 (decomp_nextvcn): Moved to ntfscomp.c.
47044 (decomp_getch): Likewise.
47045 (decomp_get16): Likewise.
47046 (decomp_block): Likewise.
47047 (read_block): Likewise.
47048 (read_data): Partially moved to ntfscomp.c.
47049 (fixup): Change unsigned to grub_uint16_t.
47050 (read_mft): Change unsigned long to grub_uint32_t.
47051 (read_attr): Likewise.
47052 (read_data): Likewise.
47053 (read_run_data): Likewise.
47054 (read_run_list): Likewise.
47055 (read_mft): Likewise.
47056
47057 * fs/ntfscomp.c: New file.
47058
47059 * include/grub/ntfs.h: New file.
47060
af680a87 470612007-12-16 Robert Millan <rmh@aybabtu.com>
47062
47063 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47064 IDE disk check, since Linux is known to support 20 IDE disks.
47065 Reported by Colin Watson.
47066
84be7599 470672007-12-15 Bean <bean123ch@gmail.com>
47068
47069 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47070 (lnxboot_img_SOURCES): New variable.
47071 (lnxboot_img_ASFLAGS): Likewise.
47072 (lnxboot_img_LDFLAGS): Likewise.
47073
47074 * boot/i386/pc/lnxboot.S: New file.
47075
6af9db01 470762007-11-24 Pavel Roskin <proski@gnu.org>
47077
47078 * configure.ac: Test if '--build-id=none' is supported by the
47079 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47080 objcopy to generate incorrect binary files (binutils
47081 2.17.50.0.18-1 as shipped by Fedora 8).
47082 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47083 linking, so that build ID doesn't break the test.
47084
7361cfe6 470852007-11-24 Pavel Roskin <proski@gnu.org>
47086
47087 * include/grub/i386/time.h: use "void" in the argument list
47088 of grub_cpu_idle().
47089 * include/grub/powerpc/time.h: Likewise.
47090 * include/grub/sparc64/time.h: Likewise.
47091
1593e10c 470922007-11-18 Christian Franke <franke@computer.org>
47093
47094 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47095 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47096 This fixes the problem that function keys did not work in grub-emu.
47097
3b8db1a8 470982007-11-18 Christian Franke <franke@computer.org>
47099
47100 * disk/host.c (grub_host_open): Remove attribute unused from
47101 name parameter. Add check for "host". This fixes the problem
47102 that grub-emu does not find partitions.
47103
2e29408d 471042007-11-18 Christian Franke <franke@computer.org>
47105
47106 * util/hostfs.c (is_dir): New function.
47107 (grub_hostfs_dir): Handle missing dirent.d_type case.
47108 (grub_hostfs_read): Add missing fseek().
47109 (grub_hostfs_label): Clear label pointer. This fixes a crash
47110 of grub-emu on "ls (host)".
47111
398cd047 471122007-11-18 Christian Franke <franke@computer.org>
47113
47114 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47115 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47116 to 64 bit boundary by default.
47117
c405c391 471182007-11-18 Bean <bean123ch@gmail.com>
47119
47120 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47121 (hexdump_mod_SOURCES): New variable.
47122 (hexdump_mod_CFLAGS): Likewise.
47123 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 47124
c405c391 47125 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47126
47127 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47128
47129 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47130
47131 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47132
47133 * include/grub/hexdump.h: New file.
47134
47135 * commands/hexdump.c: New file.
47136
5cced7fd 471372007-11-10 Robert Millan <rmh@aybabtu.com>
47138
47139 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47140 in grub_outb() calls.
47141 (beep_on): Likewise.
47142
8b714eb0 471432007-11-10 Christian Franke <franke@computer.org>
47144
47145 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47146 (grub_menu_run): Likewise.
47147
ce0f1839 471482007-11-10 Robert Millan <rmh@aybabtu.com>
47149
47150 * include/grub/i386/efi/machine.h: New file.
47151 * include/grub/i386/linuxbios/machine.h: Likewise.
47152 * include/grub/i386/pc/machine.h: Likewise.
47153 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47154 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47155
47156 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47157 (serial_hw_io_addr): New variable.
47158 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47159 instead of `(unsigned short *) 0x400'.
47160
270c237d 471612007-11-10 Bean <bean123ch@gmail.com>
47162
47163 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47164
a87783bf 471652007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47166
47167 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47168 (vga_mod_SOURCES): Added.
47169 (vga_mod_CFLAGS): Likewise.
47170 (vga_mod_LDFLAGS): Likewise.
47171
47172 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47173 grub_outb() calls.
47174 (set_map_mask): Likewise.
47175 (set_read_map): Likewise.
47176 (set_read_address): Likewise.
47177 (vga_font): Removed variable.
47178 (get_vga_glyph): Removed function.
47179 (invalidate_char): Likewise.
47180 (write_char): Changed to use grub_font_get_glyph() for font
47181 information.
47182 (grub_vga_putchar): Likewise.
47183 (grub_vga_getcharwidth): Likewise.
47184
6433b448 471852007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47186
47187 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47188 flags.
47189 (pxeboot_img_LDFLAGS): Likewise.
47190 (diskboot_img_LDFLAGS): Likewise.
47191 (kernel_img_LDFLAGS): Likewise.
47192
49178511 471932007-11-06 Robert Millan <rmh@aybabtu.com>
47194
47195 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47196 in grub_outb() calls.
47197 (serial_hw_init): Likewise.
47198
53b052de 471992007-11-05 Robert Millan <rmh@aybabtu.com>
47200
47201 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47202 spaces. Skip non-regular files.
47203
5ab33bba 472042007-11-05 Robert Millan <rmh@aybabtu.com>
47205
47206 * kern/disk.c (grub_disk_firmware_fini)
47207 (grub_disk_firmware_is_tainted): New variables.
47208
47209 * include/grub/disk.h (grub_disk_firmware_fini)
47210 (grub_disk_firmware_is_tainted): Likewise.
47211
47212 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47213 (grub_disk_biosdisk_fini): ... to here.
47214 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47215 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47216 is set. Register grub_disk_biosdisk_fini() in
47217 `grub_disk_firmware_fini'.
47218
47219 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47220 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47221 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47222 to finish existing firmware disk interface.
47223
47224 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47225 (ata_mod_SOURCES): New variable.
47226 (ata_mod_CFLAGS): Likewise.
47227 (ata_mod_LDFLAGS): Likewise.
47228
0149ab7c 472292007-11-05 Robert Millan <rmh@aybabtu.com>
47230
47231 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47232 (grub_ata_wait): Reimplement using grub_millisleep().
47233
47234 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47235 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47236
be7ac41e 472372007-11-03 Marco Gerards <marco@gnu.org>
47238
47239 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47240 (CRTC_ADDR_PORT): New macro.
47241 (CRTC_DATA_PORT): Likewise.
47242 (CRTC_CURSOR): Likewise.
47243 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47244 (CRTC_CURSOR_ADDR_LOW): Likewise.
47245 (update_cursor): New function.
47246 (grub_console_real_putchar): Call `update_cursor'.
47247 (grub_console_gotoxy): Likewise.
47248 (grub_console_cls): Set the default color when clearing the
47249 screen.
47250 (grub_console_setcursor): Implemented.
47251
bb06ab2e 472522007-11-03 Marco Gerards <marco@gnu.org>
47253
47254 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47255 become activate.
47256 (grub_ata_pio_write): Likewise.
47257
47258 (grub_atapi_identify): Wait after issuing an ATA command.
47259 (grub_atapi_packet): Likewise.
47260 (grub_ata_identify): Likewise.
47261 (grub_ata_readwrite): Likewise.
47262
cf8f780b 472632007-11-03 Marco Gerards <marco@gnu.org>
47264
47265 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47266 (grub_ata_pio_write): Likewise.
47267 (grub_ata_readwrite): Use `grub_error', instead of
47268 returning `grub_errno'.
47269
ed649e54 472702007-11-03 Marco Gerards <marco@gnu.org>
47271
47272 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47273 grub_ata_pio_write once for every single sector, instead of for
47274 multiple sectors.
47275
ca25d8f0 472762007-10-31 Robert Millan <rmh@aybabtu.com>
47277
47278 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47279
47280 * conf/i386-linuxbios.rmk: New file.
47281
47282 * kern/i386/pc/hardware.c: Likewise.
47283 * term/i386/pc/at_keyboard.c: Likewise.
47284 * term/i386/pc/vga_text.c: Likewise.
47285
47286 * include/grub/i386/linuxbios/boot.h: Likewise.
47287 * include/grub/i386/linuxbios/console.h: Likewise.
47288 * include/grub/i386/linuxbios/init.h: Likewise.
47289 * include/grub/i386/linuxbios/kernel.h: Likewise.
47290 * include/grub/i386/linuxbios/loader.h: Likewise.
47291 * include/grub/i386/linuxbios/memory.h: Likewise.
47292 * include/grub/i386/linuxbios/serial.h: Likewise.
47293 * include/grub/i386/linuxbios/time.h: Likewise.
47294
47295 * kern/i386/linuxbios/init.c: Likewise.
47296 * kern/i386/linuxbios/startup.S: Likewise.
47297 * kern/i386/linuxbios/table.c: Likewise.
47298
e911ecc1 472992007-10-31 Marco Gerards <marco@gnu.org>
47300
47301 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47302 (ata_mod_SOURCES): New variable.
47303 (ata_mod_CFLAGS): Likewise.
47304 (ata_mod_LDFLAGS): Likewise.
47305
47306 * disk/ata.c: New file.
47307
47308 * include/grub/disk.h (grub_disk_dev_id): Add
47309 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 47310
7f66d0e0 473112007-10-31 Robert Millan <rmh@aybabtu.com>
47312
47313 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47314 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47315
47316 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47317 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47318
47319 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47320 `<grub/types.h>'.
47321
47322 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47323
5cd7dd46 473242007-10-27 Robert Millan <rmh@aybabtu.com>
47325
3236ca65 47326 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 47327
2ebfc90f 473282007-10-22 Robert Millan <rmh@aybabtu.com>
47329
47330 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47331 `"../realmode.S"'.
47332 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47333
73fcb0f3 473342007-10-22 Robert Millan <rmh@aybabtu.com>
47335
47336 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47337 (pkgdata_MODULES): Add `biosdisk.mod'.
47338 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47339 variables.
47340
47341 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47342 (grub_biosdisk_init): Replace with ...
47343 (GRUB_MOD_INIT(biosdisk)): ... this.
47344 (grub_biosdisk_fini): Replace with ...
47345 (GRUB_MOD_FINI(biosdisk)): ... this.
47346
47347 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47348 (grub_machine_init): Remove call to grub_biosdisk_init().
47349 (grub_machine_fini): Remove call to grub_machine_fini().
47350
47351 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47352
3381d274 473532007-10-22 Robert Millan <rmh@aybabtu.com>
47354
47355 * include/grub/time.h: New file.
47356 * include/grub/i386/time.h: Likewise.
47357 * include/grub/powerpc/time.h: Likewise.
47358 * include/grub/sparc64/time.h: Likewise.
47359
47360 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47361 instances to ...
47362 (KERNEL_MACHINE_TIME_HEADER): ... this.
47363 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47364 instances to ...
47365 (KERNEL_MACHINE_TIME_HEADER): ... this.
47366 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47367 instances to ...
47368 (KERNEL_MACHINE_TIME_HEADER): ... this.
47369
47370 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47371 (grub_millisleep): New function.
47372 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47373 (grub_millisleep): New function.
47374 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47375 Remove `grub/machine/time.h' include.
47376 (grub_millisleep): New function.
47377 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47378 Remove `grub/machine/time.h' include.
47379 (grub_millisleep): New function.
47380
47381 * include/grub/misc.h (grub_div_roundup): New function.
47382
47383 * kern/misc.c: Include `<grub/time.h>'.
47384 (grub_millisleep_generic): New function.
47385
47386 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47387 Add `time.h'.
47388 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47389 Add `time.h'.
47390 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47391 `machine/time.h'. Add `time.h'.
47392 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47393
a39a0312 473942007-10-21 Robert Millan <rmh@aybabtu.com>
47395
47396 * include/grub/misc.h (grub_max): New function.
47397
2aad70e2 473982007-10-21 Robert Millan <rmh@aybabtu.com>
47399
47400 * util/misc.c (grub_util_info): Call fflush() before returning.
47401
54b71c4b 474022007-10-20 Robert Millan <rmh@aybabtu.com>
47403
47404 * genmk.rb (Image): Copy `extra_flags' from here ...
47405 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47406
47407 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47408 to `argc' and `args' arguments.
47409
a979f513 474102007-10-17 Robert Millan <rmh@aybabtu.com>
47411
47412 * kern/i386/loader.S: New file.
47413
47414 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47415 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47416 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47417 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47418 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47419 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47420 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47421 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47422 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47423 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47424 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47425 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47426 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47427 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47428
47429 * kern/i386/realmode.S: New file.
47430
47431 * kern/i386/pc/startup.S (protstack): Moved from here ...
47432 * kern/i386/realmode.S (protstack)... to here.
47433 * kern/i386/pc/startup.S (gdt): Moved from here ...
47434 * kern/i386/realmode.S (gdt)... to here.
47435 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47436 * kern/i386/realmode.S (prot_to_real)... to here.
47437
47438 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47439 `kern/i386/realmode.S'.
47440
825fc8fd 474412007-10-17 Robert Millan <rmh@aybabtu.com>
47442
47443 * include/grub/i386/loader.h: New file.
47444
47445 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47446 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47447 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47448 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47449 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47450 * include/grub/i386/loader.h (grub_linux_prot_size)
47451 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47452 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47453 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47454 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47455
47456 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47457
e179b2f4 474582007-10-15 Robert Millan <rmh@aybabtu.com>
47459
47460 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47461 filesystem when dev->disk is unset.
47462 Do probe for filesystem even when dev->disk->has_partitions is set.
47463 In case a filesystem is found, always report it.
47464 In case it isn't, if dev->disk->has_partitions is set, report that
47465 a partition table was found instead of reporting that no filesystem
47466 could be identified.
47467
5db82af6 474682007-10-12 Robert Millan <rmh@aybabtu.com>
47469
47470 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47471 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47472
68f6ac74 47473 * include/grub/types.h (grub_host_to_target16): New macro.
47474 (grub_host_to_target32): Likewise.
47475 (grub_host_to_target64): Likewise.
47476 (grub_target_to_host16): Likewise.
47477 (grub_target_to_host32): Likewise.
47478 (grub_target_to_host64): Likewise.
5db82af6 47479
47480 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47481 Renamed from to ...
47482 (GRUB_MOD_ALIGN): ...this. Update all users.
47483
68f6ac74 47484 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47485 grub_host_to_target32.
47486 Replace grub_be_to_cpu32 with grub_target_to_host32.
47487 (load_modules): Likewise.
47488 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47489 Replace grub_be_to_cpu32 with grub_target_to_host32.
47490 Replace grub_cpu_to_be16 with grub_host_to_target16.
47491 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 47492
3cf497cc 474932007-10-12 Robert Millan <rmh@aybabtu.com>
47494
47495 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47496 * util/elf/grub-mkimage.c: ... here.
47497
47498 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47499 `util/powerpc/ieee1275/grub-mkimage.c'.
47500
c8cc3692 475012007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 47502
c8cc3692 47503 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47504 and make it easier to figure out.
47505 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47506 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47507 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47508 leave us with less than HEAP_MIN_SIZE total heap.
47509 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 47510
5c58b791 475112007-10-03 Robert Millan <rmh@aybabtu.com>
47512
47513 * include/grub/i386/io.h: New file.
47514 * commands/i386/pc/play.c (inb): Removed.
47515 (outb): Removed.
47516 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47517 with grub_outb().
afcd2ef8 47518 * term/i386/pc/serial.c (inb): Removed.
47519 (outb): Removed.
47520 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47521 with grub_outb().
47522 * term/i386/pc/vga.c (inb): Removed.
47523 (outb): Removed.
47524 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47525 with grub_outb().
5c58b791 47526
1a477ed6 475272007-10-02 Robert Millan <rmh@aybabtu.com>
47528
47529 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47530 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47531 Reported by Marcin Kurek.
47532
6b5d80fa 475332007-09-07 Robert Millan <rmh@aybabtu.com>
47534
47535 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47536 SmartFirmware version updates (as released by Sven Luther), and avoid
47537 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47538 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47539 known broken.
47540
5618afbf 475412007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47542
47543 From Hitoshi Ozeki:
47544 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47545 when merging two regions.
47546
6139dcd9 475472007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47548
508e39ee 47549 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47550 * normal/completion.c (grub_normal_do_completion): Likewise.
47551 Reported by Hitoshi Ozeki.
47552
475532007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 47554
6139dcd9 47555 Do not use devices at boot in chainloading.
f19dbdb7 47556
6139dcd9 47557 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47558 (boot_part_addr): Likewise.
47559 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47560 with BOOT_DRIVE and BOOT_PART_ADDR.
47561 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47562 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47563
38da6516 475642007-08-29 Robert Millan <rmh@aybabtu.com>
47565
47566 Patch from Simon Peter <dn.tlp@gmx.net>:
47567 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47568 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47569 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47570 util/i386/pc/grub-setup.c_DEPENDENCIES.
47571 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47572 util/grub-probe.c_DEPENDENCIES.
47573 * conf/powerpc-ieee1275.rmk: Likewise.
47574
29d0928c 475752007-08-28 Robert Millan <rmh@aybabtu.com>
47576
47577 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47578 to tell grub-mkdevicemap how to name devices.
47579 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47580 feature).
47581
47582 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47583 util/i386/get_disk_name.c.
47584 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47585 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47586 util/ieee1275/get_disk_name.c.
47587
47588 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47589
47590 * DISTLIST: Add util/i386/get_disk_name.c and
47591 util/ieee1275/get_disk_name.c.
47592
47593 * util/grub-mkdevicemap.c: Replace device naming logic with
47594 grub_util_get_disk_name() calls.
47595
5a0d3cca 475962007-08-20 Robert Millan <rmh@aybabtu.com>
47597
47598 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47599 (so that it works for both plural and singular quantities).
47600
8b72db2f 476012007-08-05 Robert Millan <rmh@aybabtu.com>
47602
47603 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47604 so that [xz] isn't taken into account when determining order.
47605
352466bf 476062007-08-02 Marco Gerards <marco@gnu.org>
47607
47608 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47609 `include/multiboot2.h', `include/grub/elfload.h',
47610 `include/multiboot.h', `include/grub/multiboot.h',
47611 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47612 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47613 `kern/elf.c', `loader/multiboot_loader.c',
47614 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47615 `loader/i386/pc/multiboot2.c',
47616 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47617 `util/i386/pc/grub-mkrescue.in'. Remove
47618 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47619 `include/grub/i386/pc/util/biosdisk.h' and
47620 `include/grub/powerpc/ieee1275/multiboot.h'.
47621
8f096014 476222007-08-02 Bean <bean123ch@gmail.com>
47623
47624 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47625 (ntfs_mod_SOURCES): New variable.
47626 (ntfs_mod_CFLAGS): Likewise.
47627 (ntfs_mod_LDFLAGS): Likewise.
47628
47629 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47630 (grub_probe_SOURCES): Likewise.
47631 (grub_emu_SOURCES): Likewise.
47632
47633 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47634 (grub_emu_SOURCES): Likewise.
47635
47636 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47637 (grub_emu_SOURCES): Likewise.
f19dbdb7 47638
8f096014 47639 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47640
47641 * fs/ntfs.c: New file.
47642
9959f7db 476432007-08-02 Bean <bean123ch@gmail.com>
47644
47645 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47646
47647 * file.h (grub_file): Likewise.
47648
47649 * fshelp.h (grub_fshelp_read_file): Likewise.
47650
47651 * util/i386/pc/grub-setup.c (setup): Likewise.
47652 (save_first_sector): Likewise.
47653 (save_blocklists): Likewise.
f19dbdb7 47654
9959f7db 47655 * fs/affs.c (grub_affs_read_file): Likewise.
47656
47657 * fs/ext2.c (grub_ext2_read_file): Likewise.
47658
47659 * fs/fat.c (grub_fat_read_data): Likewise.
47660
47661 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47662
47663 * fs/hfs.c (grub_hfs_read_file): Likewise.
47664
47665 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47666
47667 * fs/jfs.c (grub_jfs_read_file): Likewise.
47668
47669 * fs/minix.c (grub_minix_read_file): Likewise.
47670
47671 * fs/sfs.c (grub_sfs_read_file): Likewise.
47672
47673 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 47674
9959f7db 47675 * fs/xfs.c (grub_xfs_read_file): Likewise.
47676
47677 * command/blocklist.c (read_blocklist): Likewise.
47678 (print_blocklist): Likewise.
47679
0a203f83 476802007-08-02 Marco Gerards <marco@gnu.org>
47681
47682 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47683 `util/hostfs.c'.
47684
47685 * disk/host.c: New file.
47686
47687 * util/hostfs.c: Likewise.
47688
47689 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47690 return `GRUB_ERR_BAD_FS'.
47691 * fs/sfs.c (grub_sfs_mount): Likewise.
47692 * fs/xfs.c (grub_xfs_mount): Likewise.
47693
47694 * include/grub/disk.h (enum grub_disk_dev_id): Add
47695 `GRUB_DISK_DEVICE_HOST_ID'.
47696
47697 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47698
e5dfe777 476992007-07-24 Jerone Young <jerone@gmail.com>
47700
f19dbdb7 47701 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 47702 modules for compilation.
47703 * conf/powerpc-ieee1275.rmk: Likewise.
47704
47705 * include/multiboot.h: Move multiboot definitions to one file. Rename
47706 many definitions to not get grub specific.
47707 * include/multiboot2.h: Create header with multiboot 2 definitions.
47708 * include/grub/multiboot.h: Header for grub specific function
47709 prototypes and definitions.
47710 * include/grub/multiboot2.h: Likewise.
47711 * include/grub/multiboot_loader.h: Likewise.
47712 * include/grub/i386/pc/multiboot.h: Removed.
47713 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47714
47715 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47716 and 2 to allow for one multiboot and module commands.
47717 * loader/multiboot2.c: Add multiboot2 functionality.
47718 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47719 and definition names.
47720 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47721 2 functions.
47722 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47723 ieee1275 specific multiboot2 code.
47724
47725 * kern/i386/pc/startup.S: Change headers and definition names for
47726 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47727
daf0f0ba 477282007-07-22 Robert Millan <rmh@aybabtu.com>
47729
47730 * geninitheader.sh: Process file specified in first parameter rather
47731 than hardcoding grub_modules_init.lst.
fe6b695a 47732 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 47733 than hardcoding grub_modules_init.h.
47734
47735 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47736 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47737 grub_probe_init.[ch] and grub_setup_init.[ch].
47738
47739 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47740 grub_modules_init.h with grub_emu_init.h.
47741 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47742 grub_probe_init.[ch] files.
47743 * conf/i386-efi.rmk: Likewise.
47744 * conf/i386-pc.rmk: Likewise.
47745 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47746 grub_setup_init.[ch] files.
47747
47748 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47749 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47750 to initialize modules rather than a list of hardcoded functions.
47751 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47752 grub_init_all() to initialize modules rather than a list of hardcoded
47753 functions.
47754
54cdc1cc 477552007-07-22 Robert Millan <rmh@aybabtu.com>
47756
47757 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47758 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47759
ad0686cc 477602007-07-22 Robert Millan <rmh@aybabtu.com>
47761
47762 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47763 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47764 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47765 flag when running on SmartFirmware.
47766 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47767 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47768 was set.
47769
47770 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47771 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47772 rather than decreasing it.
47773
47774 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47775 there's not enough space to do it, fail in the same way as when it
47776 can't be done because there are no partitions.
47777
47778 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47779 when nvsetenv failed.
47780
969c02ec 477812007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47782
47783 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47784 because this rule is automatically generated.
47785 (grub-mkrescue): Removed for the same reason as above.
47786
5a79f472 477872007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47788
47789 Migrate to GNU General Public License Version 3.
f19dbdb7 47790
5a79f472 47791 * COPYING: Replaced with the plain text version of GPLv3.
47792
47793 * config.guess: Updated from gnulib.
47794 * config.sub: Likewise.
47795
47796 * geninit.sh: Output a GPLv3 copyright notice.
47797 * geninitheader.sh: Likewise.
47798 * genmodsrc.sh: Likewise.
47799 * gensymlist.sh.in: Likewise.
47800
47801 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47802 * boot/i386/pc/diskboot.S: Likewise.
47803 * boot/i386/pc/pxeboot.S: Likewise.
47804 * commands/blocklist.c: Likewise.
47805 * commands/boot.c: Likewise.
47806 * commands/cat.c: Likewise.
47807 * commands/cmp.c: Likewise.
47808 * commands/configfile.c: Likewise.
47809 * commands/echo.c: Likewise.
47810 * commands/help.c: Likewise.
47811 * commands/ls.c: Likewise.
47812 * commands/search.c: Likewise.
47813 * commands/terminal.c: Likewise.
47814 * commands/test.c: Likewise.
47815 * commands/videotest.c: Likewise.
47816 * commands/i386/cpuid.c: Likewise.
47817 * commands/i386/pc/halt.c: Likewise.
47818 * commands/i386/pc/play.c: Likewise.
47819 * commands/i386/pc/reboot.c: Likewise.
47820 * commands/i386/pc/vbeinfo.c: Likewise.
47821 * commands/i386/pc/vbetest.c: Likewise.
47822 * commands/ieee1275/halt.c: Likewise.
47823 * commands/ieee1275/reboot.c: Likewise.
47824 * commands/ieee1275/suspend.c: Likewise.
47825 * disk/loopback.c: Likewise.
47826 * disk/lvm.c: Likewise.
47827 * disk/raid.c: Likewise.
47828 * disk/efi/efidisk.c: Likewise.
47829 * disk/i386/pc/biosdisk.c: Likewise.
47830 * disk/ieee1275/ofdisk.c: Likewise.
47831 * font/manager.c: Likewise.
47832 * fs/affs.c: Likewise.
47833 * fs/ext2.c: Likewise.
47834 * fs/fat.c: Likewise.
47835 * fs/fshelp.c: Likewise.
47836 * fs/hfs.c: Likewise.
47837 * fs/hfsplus.c: Likewise.
47838 * fs/iso9660.c: Likewise.
47839 * fs/jfs.c: Likewise.
47840 * fs/minix.c: Likewise.
47841 * fs/sfs.c: Likewise.
47842 * fs/ufs.c: Likewise.
47843 * fs/xfs.c: Likewise.
47844 * hello/hello.c: Likewise.
47845 * include/grub/acorn_filecore.h: Likewise.
47846 * include/grub/arg.h: Likewise.
47847 * include/grub/bitmap.h: Likewise.
47848 * include/grub/boot.h: Likewise.
47849 * include/grub/cache.h: Likewise.
47850 * include/grub/device.h: Likewise.
47851 * include/grub/disk.h: Likewise.
47852 * include/grub/dl.h: Likewise.
47853 * include/grub/elfload.h: Likewise.
47854 * include/grub/env.h: Likewise.
47855 * include/grub/err.h: Likewise.
47856 * include/grub/file.h: Likewise.
47857 * include/grub/font.h: Likewise.
47858 * include/grub/fs.h: Likewise.
47859 * include/grub/fshelp.h: Likewise.
47860 * include/grub/gzio.h: Likewise.
47861 * include/grub/hfs.h: Likewise.
47862 * include/grub/kernel.h: Likewise.
47863 * include/grub/loader.h: Likewise.
47864 * include/grub/lvm.h: Likewise.
47865 * include/grub/misc.h: Likewise.
47866 * include/grub/mm.h: Likewise.
47867 * include/grub/net.h: Likewise.
47868 * include/grub/normal.h: Likewise.
47869 * include/grub/parser.h: Likewise.
47870 * include/grub/partition.h: Likewise.
47871 * include/grub/pc_partition.h: Likewise.
47872 * include/grub/raid.h: Likewise.
47873 * include/grub/rescue.h: Likewise.
47874 * include/grub/script.h: Likewise.
47875 * include/grub/setjmp.h: Likewise.
47876 * include/grub/symbol.h: Likewise.
47877 * include/grub/term.h: Likewise.
47878 * include/grub/terminfo.h: Likewise.
47879 * include/grub/tparm.h: Likewise.
47880 * include/grub/types.h: Likewise.
47881 * include/grub/video.h: Likewise.
47882 * include/grub/efi/api.h: Likewise.
47883 * include/grub/efi/chainloader.h: Likewise.
47884 * include/grub/efi/console.h: Likewise.
47885 * include/grub/efi/console_control.h: Likewise.
47886 * include/grub/efi/disk.h: Likewise.
47887 * include/grub/efi/efi.h: Likewise.
47888 * include/grub/efi/pe32.h: Likewise.
47889 * include/grub/efi/time.h: Likewise.
47890 * include/grub/i386/linux.h: Likewise.
47891 * include/grub/i386/setjmp.h: Likewise.
47892 * include/grub/i386/types.h: Likewise.
47893 * include/grub/i386/efi/kernel.h: Likewise.
47894 * include/grub/i386/efi/loader.h: Likewise.
47895 * include/grub/i386/efi/time.h: Likewise.
47896 * include/grub/i386/pc/biosdisk.h: Likewise.
47897 * include/grub/i386/pc/boot.h: Likewise.
47898 * include/grub/i386/pc/chainloader.h: Likewise.
47899 * include/grub/i386/pc/console.h: Likewise.
47900 * include/grub/i386/pc/init.h: Likewise.
47901 * include/grub/i386/pc/kernel.h: Likewise.
47902 * include/grub/i386/pc/loader.h: Likewise.
47903 * include/grub/i386/pc/memory.h: Likewise.
47904 * include/grub/i386/pc/multiboot.h: Likewise.
47905 * include/grub/i386/pc/serial.h: Likewise.
47906 * include/grub/i386/pc/time.h: Likewise.
47907 * include/grub/i386/pc/vbe.h: Likewise.
47908 * include/grub/i386/pc/vbeblit.h: Likewise.
47909 * include/grub/i386/pc/vbefill.h: Likewise.
47910 * include/grub/i386/pc/vbeutil.h: Likewise.
47911 * include/grub/i386/pc/vga.h: Likewise.
47912 * include/grub/ieee1275/ieee1275.h: Likewise.
47913 * include/grub/ieee1275/ofdisk.h: Likewise.
47914 * include/grub/powerpc/libgcc.h: Likewise.
47915 * include/grub/powerpc/setjmp.h: Likewise.
47916 * include/grub/powerpc/types.h: Likewise.
47917 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47918 * include/grub/powerpc/ieee1275/console.h: Likewise.
47919 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47920 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47921 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47922 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47923 * include/grub/powerpc/ieee1275/time.h: Likewise.
47924 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47925 * include/grub/sparc64/libgcc.h: Likewise.
47926 * include/grub/sparc64/setjmp.h: Likewise.
47927 * include/grub/sparc64/types.h: Likewise.
47928 * include/grub/sparc64/ieee1275/console.h: Likewise.
47929 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47930 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47931 * include/grub/sparc64/ieee1275/time.h: Likewise.
47932 * include/grub/util/biosdisk.h: Likewise.
47933 * include/grub/util/getroot.h: Likewise.
47934 * include/grub/util/lvm.h: Likewise.
47935 * include/grub/util/misc.h: Likewise.
47936 * include/grub/util/raid.h: Likewise.
47937 * include/grub/util/resolve.h: Likewise.
47938 * io/gzio.c: Likewise.
47939 * kern/device.c: Likewise.
47940 * kern/disk.c: Likewise.
47941 * kern/dl.c: Likewise.
47942 * kern/elf.c: Likewise.
47943 * kern/env.c: Likewise.
47944 * kern/err.c: Likewise.
47945 * kern/file.c: Likewise.
47946 * kern/fs.c: Likewise.
47947 * kern/loader.c: Likewise.
47948 * kern/main.c: Likewise.
47949 * kern/misc.c: Likewise.
47950 * kern/mm.c: Likewise.
47951 * kern/parser.c: Likewise.
47952 * kern/partition.c: Likewise.
47953 * kern/rescue.c: Likewise.
47954 * kern/term.c: Likewise.
47955 * kern/efi/efi.c: Likewise.
47956 * kern/efi/init.c: Likewise.
47957 * kern/efi/mm.c: Likewise.
47958 * kern/i386/dl.c: Likewise.
47959 * kern/i386/efi/init.c: Likewise.
47960 * kern/i386/efi/startup.S: Likewise.
47961 * kern/i386/pc/init.c: Likewise.
47962 * kern/i386/pc/lzo1x.S: Likewise.
47963 * kern/i386/pc/startup.S: Likewise.
47964 * kern/ieee1275/ieee1275.c: Likewise.
47965 * kern/powerpc/cache.S: Likewise.
47966 * kern/powerpc/dl.c: Likewise.
47967 * kern/powerpc/ieee1275/cmain.c: Likewise.
47968 * kern/powerpc/ieee1275/crt0.S: Likewise.
47969 * kern/powerpc/ieee1275/init.c: Likewise.
47970 * kern/powerpc/ieee1275/openfw.c: Likewise.
47971 * kern/sparc64/cache.S: Likewise.
47972 * kern/sparc64/dl.c: Likewise.
47973 * kern/sparc64/ieee1275/init.c: Likewise.
47974 * kern/sparc64/ieee1275/openfw.c: Likewise.
47975 * loader/efi/chainloader.c: Likewise.
47976 * loader/efi/chainloader_normal.c: Likewise.
47977 * loader/i386/efi/linux.c: Likewise.
47978 * loader/i386/efi/linux_normal.c: Likewise.
47979 * loader/i386/pc/chainloader.c: Likewise.
47980 * loader/i386/pc/chainloader_normal.c: Likewise.
47981 * loader/i386/pc/linux.c: Likewise.
47982 * loader/i386/pc/linux_normal.c: Likewise.
47983 * loader/i386/pc/multiboot.c: Likewise.
47984 * loader/i386/pc/multiboot_normal.c: Likewise.
47985 * loader/powerpc/ieee1275/linux.c: Likewise.
47986 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47987 * normal/arg.c: Likewise.
47988 * normal/cmdline.c: Likewise.
47989 * normal/command.c: Likewise.
47990 * normal/completion.c: Likewise.
47991 * normal/execute.c: Likewise.
47992 * normal/function.c: Likewise.
47993 * normal/lexer.c: Likewise.
47994 * normal/main.c: Likewise.
47995 * normal/menu.c: Likewise.
47996 * normal/menu_entry.c: Likewise.
47997 * normal/misc.c: Likewise.
47998 * normal/parser.y: Likewise.
47999 * normal/script.c: Likewise.
48000 * normal/i386/setjmp.S: Likewise.
48001 * normal/powerpc/setjmp.S: Likewise.
48002 * normal/sparc64/setjmp.S: Likewise.
48003 * partmap/acorn.c: Likewise.
48004 * partmap/amiga.c: Likewise.
48005 * partmap/apple.c: Likewise.
48006 * partmap/gpt.c: Likewise.
48007 * partmap/pc.c: Likewise.
48008 * partmap/sun.c: Likewise.
48009 * term/gfxterm.c: Likewise.
48010 * term/terminfo.c: Likewise.
48011 * term/efi/console.c: Likewise.
48012 * term/i386/pc/console.c: Likewise.
48013 * term/i386/pc/serial.c: Likewise.
48014 * term/i386/pc/vesafb.c: Likewise.
48015 * term/i386/pc/vga.c: Likewise.
48016 * term/ieee1275/ofconsole.c: Likewise.
48017 * util/biosdisk.c: Likewise.
48018 * util/console.c: Likewise.
48019 * util/genmoddep.c: Likewise.
48020 * util/getroot.c: Likewise.
48021 * util/grub-emu.c: Likewise.
48022 * util/grub-mkdevicemap.c: Likewise.
48023 * util/grub-probe.c: Likewise.
48024 * util/lvm.c: Likewise.
48025 * util/misc.c: Likewise.
48026 * util/raid.c: Likewise.
48027 * util/resolve.c: Likewise.
48028 * util/update-grub.in: Likewise.
48029 * util/update-grub_lib.in: Likewise.
48030 * util/grub.d/00_header.in: Likewise.
48031 * util/grub.d/10_hurd.in: Likewise.
48032 * util/grub.d/10_linux.in: Likewise.
48033 * util/i386/efi/grub-install.in: Likewise.
48034 * util/i386/efi/grub-mkimage.c: Likewise.
48035 * util/i386/pc/grub-install.in: Likewise.
48036 * util/i386/pc/grub-mkimage.c: Likewise.
48037 * util/i386/pc/grub-mkrescue.in: Likewise.
48038 * util/i386/pc/grub-setup.c: Likewise.
48039 * util/i386/pc/misc.c: Likewise.
48040 * util/powerpc/ieee1275/grub-install.in: Likewise.
48041 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48042 * util/powerpc/ieee1275/misc.c: Likewise.
48043 * video/bitmap.c: Likewise.
48044 * video/video.c: Likewise.
48045 * video/i386/pc/vbe.c: Likewise.
48046 * video/i386/pc/vbeblit.c: Likewise.
48047 * video/i386/pc/vbefill.c: Likewise.
48048 * video/i386/pc/vbeutil.c: Likewise.
48049 * video/readers/tga.c: Likewise.
48050
3572d015 480512007-07-02 Robert Millan <rmh@aybabtu.com>
48052
48053 * conf/i386-efi.rmk: Replace obsolete reference to
48054 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48055 with util/getroot.c.
48056 * conf/powerpc-ieee1275.rmk: Likewise.
48057 * conf/sparc64-ieee1275.rmk: Likewise.
48058
48059 * util/grub-emu.c (main): Fix unchecked pointer handling.
48060
2c2a681b 480612007-07-02 Robert Millan <rmh@aybabtu.com>
48062
48063 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48064 invocation to fail, in order to support partition-less media.
48065
48066 * util/i386/pc/grub-install.in: Likewise.
48067
48068 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48069 which fs or partmap modules are needed (akin to its sister scripts).
48070
48071 Also use grub-probe to get rid of unportable /proc/mounts check.
48072
48073 Print the same informational message that the other scripts do, before
fe6b695a 48074 exiting.
2c2a681b 48075
6193defe 480762007-06-23 Robert Millan <rmh@aybabtu.com>
48077
fe6b695a 48078 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 48079 a font file can be found and, if so, echo the GRUB path to it.
48080
48081 * util/update-grub.in: Handle multiple terminals depending on user
48082 input, platform availability and font file presence. Propagate
48083 variables of our findings to /etc/grub.d/ children.
48084
48085 * util/grub.d/00_header.in: Handle multiple terminals, based on
48086 environment setup by update-grub.
48087
eface1dc 480882007-06-23 Robert Millan <rmh@aybabtu.com>
48089
ba50d28f 48090 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 48091
bf697e28 480922007-06-21 Robert Millan <rmh@aybabtu.com>
48093
48094 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48095 indicate end of data section in kernel image.
48096 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48097 GRUB_KERNEL_MACHINE_DATA_END.
48098
48099 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48100 space for it.
48101 * kern/i386/efi/startup.S: Likewise.
48102
48103 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48104 during image generation. Implement --prefix option to override this
48105 patch.
48106 * util/i386/efi/grub-mkimage.c: Likewise.
48107
48108 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48109 code to make path relative to its root into a separate function.
48110
48111 * util/i386/pc/grub-install.in: Use newly provided
48112 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48113 pass the result to grub-install --prefix.
48114
baa574b4 481152007-06-13 Robert Millan <rmh@aybabtu.com>
48116
48117 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48118 DEFAULT_DEVICE_MAP.
48119 * util/grub-emu.c: Use above definitions from misc.h instead of
48120 defining them.
48121 * util/grub-mkdevicemap.c: Likewise.
48122 * util/i386/pc/grub-setup.c: Likewise.
48123 * util/grub-probe.c: Likewise.
48124 (probe): Abort with grub_util_error() when either
48125 grub_guess_root_device or grub_util_get_grub_dev fails.
48126
0215dcbf 481272007-06-12 Robert Millan <rmh@aybabtu.com>
48128
48129 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48130 "pager" assignment.
48131 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48132 "pcdata".
48133 * util/grub-probe.c (probe): Likewise for "drive_name".
48134
8af2ab7b 481352007-06-11 Robert Millan <rmh@aybabtu.com>
48136
48137 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48138 not just the cdrom one.
48139
59d31694 481402007-06-11 Robert Millan <rmh@aybabtu.com>
48141
48142 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48143 Add --pkglibdir=DIR option to override pkglibdir.
48144 Mention --image-type=TYPE in help output.
48145 Fix --grub-mkimage (it was a no-op).
fe6b695a 48146 Abort gracefully when no parameter is given.
59d31694 48147
7ee367e4 481482007-06-11 Robert Millan <rmh@aybabtu.com>
48149
48150 * util/i386/pc/grub-mkrescue.in: New file.
48151 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48152 * Makefile.in: Handle bin_SCRIPTS.
48153
29b0ed46 481542007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48155
48156 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48157 list of video modes.
48158
c0f90770 481592007-06-06 Robert Millan <rmh@aybabtu.com>
48160
48161 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48162 file doesn't exist, or if it is in a filesystem grub can't read.
48163
48164 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48165 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48166 header comment to fit in 80 columns when the variables are resolved.
48167
48168 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48169 could be identified by update-grub. Remove redundant check for
fe6b695a 48170 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 48171 handles that).
48172
fb36dc26 481732007-06-04 Robert Millan <rmh@aybabtu.com>
48174
48175 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48176
48177 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48178
48179 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48180
0c68c93e 481812007-06-04 Robert Millan <rmh@aybabtu.com>
48182
48183 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48184
48185 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48186 grub_apple_partition_map_fini.
48187
48188 * util/biosdisk.c
48189 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48190 to access >2 TiB disks).
48191
48192 Print disk->total_sectors with %llu instead of %lu, since this
48193 variable is always 64-bit (prevents wrong disk size from being displayed
48194 on either >2 TiB disk or big-endian CPU).
48195
48196 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48197 into a generic case that supports all (sane) partition maps.
48198
48199 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48200 breaks big-endian.
48201
48202 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48203 and grub_apple_partition_map_fini() after that.
48204
0f23eb74 482052007-06-01 Robert Millan <rmh@aybabtu.com>
48206
48207 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48208
48209 * util/grub.d/00_header.in: Only enable gfxterm when
48210 convert_system_path_to_grub_path() succeeds.
48211
42c71976 482122007-05-20 Robert Millan <rmh@aybabtu.com>
48213
48214 * util/update-grub_lib.in: New file.
48215 * DISTLIST: Add update-grub_lib.in.
48216 * conf/common.rmk: Generate update-grub_lib and install it in
48217 $(lib_DATA).
48218 * Makefile.in: Add install routine for $(lib_DATA).
48219
48220 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48221 function provided by update-grub_lib to support arbitrary paths of
48222 unifont.pff.
48223 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48224 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48225
5beb2291 482262007-05-19 Robert Millan <rmh@aybabtu.com>
48227
48228 * commands/i386/cpuid.c: New module.
48229 * DISTLIST: Add it.
48230 * conf/i386-efi.rmk: Enable cpuid.mod.
48231 * conf/i386-pc.rmk: Likewise.
48232
7262eca1 482332007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48234
48235 * kern/disk.c (grub_disk_read): Check return value of
48236 grub_realloc().
48237
260ba823 482382007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48239
48240 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48241 arrays.
48242 * disk/raid.c (grub_raid_open): Likewise.
48243
1ecb6cf2 482442007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48245
48246 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48247 stack instead of on the heap.
48248
48249 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48250 before doing a read on it.
48251
48252 * configure.ac: Only use -fno-stack-protector for the target
48253 environment.
f19dbdb7 48254
21c8cbb1 482552007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48256
48257 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48258 __attribute_ ((unused)) to mode_type argument.
48259
48260 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 48261
21c8cbb1 48262 * kern/misc.c (memcmp): Fix prototype.
48263
48264 * include/grub/partition.h [GRUB_UTIL]
48265 (grub_gpt_partition_map_init): Add prototype.
48266 (grub_gpt_partition_map_fini): Likewise.
48267
48268 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48269 at the right place.
48270
48271 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48272 (grub_fat_read_data): Likewise.
48273 (grub_fat_find_dir): Likewise.
48274
48275 * font/manager.c (find_glyph): Make table a const.
48276 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 48277
849d55d3 482782007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48279
48280 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48281 code, first search for device in /dev/mapper, then in /dev.
48282 (grub_util_get_grub_dev): New function.
48283 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48284 prototype.
48285 * util/grub-probe.c (probe): Remove check for RAID, call
48286 grub_util_get_grub_dev() instead of
48287 grub_util_biosdisk_get_grub_dev().
48288 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48289 grub_util_biosdisk_get_grub_dev().
48290 * util/i386/pc/grub-setup.c (main): Likewise.
48291
8fff7c2f 482922007-05-16 Robert Millan <rmh@aybabtu.com>
48293
48294 * DISTLIST: Update for the latest changes.
48295 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48296 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48297 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48298 grub/util/biosdisk.h.
48299 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48300 grub/util/biosdisk.h.
48301
48e12b52 483022007-05-16 Robert Millan <rmh@aybabtu.com>
48303
48304 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48305
46b9d128 483062007-05-16 Robert Millan <rmh@aybabtu.com>
48307
48308 * util/i386/efi/grub-install.in: New.
48309 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48310 newly added grub-install.
48311 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48312 include.
48313 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48314 grub/util/biosdisk.h.
48315 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48316 grub/util/biosdisk.h.
48317
2d1a40a9 483182007-05-16 Robert Millan <rmh@aybabtu.com>
48319
48320 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48321 * include/grub/util/biosdisk.h: ... here.
48322 * util/i386/pc/biosdisk.c: Moved to ...
48323 * util/biosdisk.c: ... here.
48324 * util/i386/pc/getroot.c: Moved to ...
48325 * util/getroot.c: ... here.
48326 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48327 * util/grub-mkdevicemap.c: ... here.
48328 * util/i386/pc/grub-probe.c: Moved to ...
48329 * util/grub-probe.c: ... here.
48330
9e26e3bc 483312007-05-15 Robert Millan <rmh@aybabtu.com>
48332
48333 * util/update-grub.in: Remove duplicated line in grub.cfg header
48334 message.
48335
57f96397 483362007-05-13 Robert Millan <rmh@aybabtu.com>
48337
48338 * util/update-grub.in: Fix a few assumptions about the devices holding
48339 /, /boot and /boot/grub being the same.
48340 * util/grub.d/00_header.in: Likewise.
48341 * util/grub.d/10_hurd.in: Likewise.
48342 * util/grub.d/10_linux.in: Likewise.
48343
48344 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48345 patterns. Use that to define the `.old' suffix as older than `'.
48346
48347 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48348
48349 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48350 the grub.cfg header message.
48351
2e610d62 483522007-05-11 Robert Millan <rmh@aybabtu.com>
48353
48354 * util/update-grub.in: Create device.map if it doesn't already exist,
48355 before attempting to run grub-probe.
48356 Check for grub-probe and grub-mkdevicemap with the same code
48357 grub-install is using.
48358 Remove test mode.
48359
3f6a10ef 483602007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48361
48362 * Makefile.in: Add the datarootdir autoconf variable.
48363
02e7b75e 483642007-05-09 Robert Millan <rmh@aybabtu.com>
48365
48366 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 48367 fail gracefully if dev->disk->partition == NULL.
02e7b75e 48368
75f396cc 483692007-05-07 Robert Millan <rmh@aybabtu.com>
48370
48371 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48372 determine partition map module.
48373 * util/i386/pc/grub-install.in: Use this feature to decide which
48374 partition module to load, instead of hardcoding pc and gpt.
48375
da65cb36 483762007-05-07 Robert Millan <rmh@aybabtu.com>
48377
48378 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48379 source directory differs from build directory.
48380
b57d6a91 483812007-05-05 Robert Millan <rmh@aybabtu.com>
48382
48383 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48384 initialisation.
48385
509d00f1 483862007-05-05 Robert Millan <rmh@aybabtu.com>
48387
48388 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48389
c48f23ef 483902007-05-05 Robert Millan <rmh@aybabtu.com>
48391
48392 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48393 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48394
20b97658 483952007-05-05 Robert Millan <rmh@aybabtu.com>
48396
48397 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48398 (grub_probe_SOURCES): Likewise.
48399 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48400 GPT and initialize dos_part and bsd_part accordingly.
48401 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48402 install_bsd_part.
48403 (main): Activate gpt module for use during partition identification,
48404 and deactivate it afterwards.
48405 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48406 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48407 partition identification, and deactivate it afterwards.
48408
99123174 484092007-05-05 Robert Millan <rmh@aybabtu.com>
48410
48411 * term/i386/pc/console.c (grub_console_fini): Call
48412 grub_term_set_current() before grub_term_unregister().
48413
ebd97f6e 484142007-05-04 Robert Millan <rmh@aybabtu.com>
48415
48416 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48417 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48418 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48419 and update-grub_DATA.
48420 * conf/common.rmk: Build and install update-grub components.
48421 * conf/common.mk: Regenerate.
48422 * util/update-grub.in: New. Core of update-grub.
48423 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48424 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48425 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48426 * util/grub.d/README: New. Document grub.d directory layout.
48427
b06a264d 484282007-05-01 Robert Millan <rmh@aybabtu.com>
48429
48430 * util/grub-emu.c: Move initialization functions
48431 grub_util_biosdisk_init() and grub_init_all() before
48432 grub_util_biosdisk_get_grub_dev(), which relies on them.
48433
41f0050e 484342007-04-19 Robert Millan <rmh@aybabtu.com>
48435
48436 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48437 it is used later.
48438
04582bb3 484392007-04-18 Jerone Young <jerone@gmail.com>
48440
f19dbdb7 48441 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 48442 stanza.
48443
08db4632 484442007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 48445
08db4632 48446 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48447 continue on and look for device node with real device name.
48448
801b76be 484492007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 48450
fe6b695a 48451 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 48452 ability.
48453 * Makefile.in: Add autoconf package transformation code.
48454 * util/i386/pc/grub-install.in: Likewise.
48455 * util/powerpc/ieee1275/grub-install.in: Likewise.
48456
6795c4e1 484572007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48458
48459 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48460 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48461 (EXT2_REVISION): Likewise.
48462 (EXT2_INODE_SIZE): Likewise.
48463 (struct grub_ext2_block_group): Added a missing member
48464 "used_dirs".
48465 (grub_ext2_read_inode): Divide by the inode size in a superblock
48466 instead of 128 to obtain INODES_PER_BLOCK.
48467 Use the macro EXT2_INODE_SIZE instead of directly using
48468 SBLOCK->INODE_SIZE.
48469
d70af616 484702007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48471
48472 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48473 superblock instead of the structure size to compute an
48474 offset. This fixes the problem that GRUB could not read a
48475 filesystem when inode size is different from 128-byte.
48476
3b801603 484772007-03-05 Marco Gerards <marco@gnu.org>
48478
48479 * normal/main.c (read_config_file): When "menu" is not set, create
48480 an initial context.
48481
4785bfe4 484822007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48483
48484 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48485 (HEAP_LIMIT): New macro.
48486 (grub_claim_heap): Claim memory up to `heaplimit'.
48487
a0cbb023 484882007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48489
48490 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48491 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48492 (_start): Likewise.
48493 (grub_arch_modules_addr): Return address after `_end'.
48494 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48495 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48496 (add_segments): Calculate `_end' from phdr size and location.
48497 (ALIGN_UP): Moved to ...
48498 * include/grub/misc.h: here.
48499 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48500 New macro.
48501 (GRUB_IEEE1275_MODULE_BASE): Removed.
48502
fd7d8eba 485032007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48504
48505 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48506 loop boundary.
48507
9b09e6fc 485082007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48509
48510 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48511 All users updated.
48512 (grub_elf64_load_hook_t): Likewise.
48513 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48514 debug output.
48515
3ce27299 485162007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48517
48518 * kern/mm.c: Update copyright.
48519 (grub_mm_debug): Correct syntax error.
48520 (grub_mm_dump_free): New function.
48521 (grub_debug_free): Call `grub_free'.
48522 * include/grub/mm.h: Update copyright.
48523 (grub_mm_dump_free): Add declaration.
48524
077d5fee 485252007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48526
48527 * include/grub/ieee1275/ieee1275.h: Update copyright.
48528 * kern/powerpc/ieee1275/init.c: Likewise.
48529 * kern/powerpc/ieee1275/openfw.c: Likewise.
48530
48531 * loader/powerpc/ieee1275/linux.c: Likewise.
48532 * include/grub/elfload.h: Likewise.
48533 * kern/elf.c: Likewise.
48534 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48535 callers.
48536 (grub_elf64_load): Likewise.
48537 (grub_elf32_load_segment): Move to a nested function.
48538 (grub_elf64_load_segment): Likewise.
48539
dc946850 485402007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48541
48542 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48543 prototype.
48544 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48545 (grub_heap_len): Likewise.
48546 (HEAP_SIZE): New macro.
48547 (grub_claim_heap): New function.
48548 (grub_machine_init): Don't claim heap directly. Call
48549 `grub_claim_heap'.
48550 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48551 (grub_available_iterate): New function.
48552
baa2a121 485532007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48554
48555 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48556 * configure.ac: Use it for testing the HOST and TARGET compilers.
48557
4fe9862e 485582006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48559
48560 * Makefile.in (enable_grub_emu): New variable.
48561 * configure.ac (--enable-grub-emu): New option.
48562 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48563 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48564 * conf/i386-pc.rmk: Likewise.
48565 * conf/powerpc-ieee1275.rmk: Likewise.
48566 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48567
a8aa5762 485682006-12-12 Marco Gerards <marco@gnu.org>
48569
48570 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48571
48572 * kern/env.c (grub_env_unset): Don't free the member `value' when
48573 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48574 pointer.
48575
48576 * normal/main.c (current_menu): Removed.
48577 (free_menu): Unset the `menu' environment variable.
48578 (grub_normal_menu_addentry): Make use of the environment variable
48579 `menu', instead of using the global `current_menu'. Allocate
48580 memory for the sourcecode of this entry.
48581 (read_config_file): New argument `nested', changed all callers.
48582 Only in the case of a new context, initialize a new menu. Set the
48583 `menu' environment variable.
48584 (grub_normal_execute): Don't set and unset the environment
48585 variable `menu' here anymore. Only free the menu when leaving the
48586 context.
48587
48588 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48589 leak.
48590
957b3a3e 485912006-12-11 Marco Gerards <marco@gnu.org>
48592
48593 * normal/menu_entry.c (run): Fix off by one bug so the last line
48594 is executed. Move the loader check to outside the loop.
48595
ef875714 485962006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48597
48598 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48599
4e739985 486002006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48601
48602 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48603 the number of sectors. Reported by Andrey Shuvikov
48604 <mr_hyro@yahoo.com>.
f19dbdb7 48605
790707f2 486062006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48607
48608 * kern/disk.c (grub_disk_read): When there is a read error, always
48609 try to read only the necessary data.
f19dbdb7 48610
790707f2 48611 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48612 disk/raid.c.
48613 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48614 prototype.
48615 [GRUB_UTIL] (grub_raid_fini): Likewise.
48616 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 48617 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 48618 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48619 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48620 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48621 and grub_raid_fini().
f19dbdb7 48622
03e58196 486232006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48624
48625 * include/grub/types.h (__unused): Rename to UNUSED.
48626 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48627 (grub_elf64_size): Likewise.
f19dbdb7 48628
ae4f23bf 486292006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48630
48631 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48632 grub_error_push and grub_error_pop in the error-handling path.
48633 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48634 length.
48635
2166cc83 486362006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48637
48638 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48639 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48641 (kernel_elf_SOURCES): Likewise.
48642 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48643 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48644 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48645 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48646 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48647 (elf_mod_SOURCES): New variable.
48648 (elf_mod_CFLAGS): Likewise.
48649 (elf_mod_LDFLAGS): Likewise.
48650 * include/grub/types.h (__unused): New macro.
48651 * include/grub/elfload.h: New file.
48652 * kern/elf.c: Likewise.
48653 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48654 (ELF32_LOADMASK): New macro.
48655 (ELF64_LOADMASK): Likewise.
48656 (vmlinux): Removed.
48657 (grub_linux_load32): New function.
48658 (grub_linux_load64): Likewise.
48659 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48660 Use grub_elf_t instead of grub_file_t.
48661
a09d5aa5 486622006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48663
48664 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48665 `catch_result' to struct set_color_args.
48666
d976fc51 486672006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48668
48669 * normal/menu.c: Include grub/script.h.
48670 * normal/menu_entry.c: Likewise.
48671 * include/grub/normal.h: Do not include grub/script.h.
48672
67507549 486732006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48674
48675 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48676
69203a99 486772006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48678
48679 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48680 disk.
48681 (grub_disk_close): Print debug messages when closing a disk.
48682 (grub_disk_read): Print debug messages when disk read fails.
48683 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48684 filesystem type.
48685 * kern/partition.c: Include misc.h.
48686 (grub_partition_iterate): Print debug messages when detecting
48687 partition type.
48688
e2b8278c 486892006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48690
48691 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48692 is negative.
48693 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48694
97b2f2ff 486952006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48696
48697 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48698 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48699
6555d655 487002006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48701
48702 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48703 instead of sizeof(lv). Patch by Michael Guntsche.
48704
4d42b77f 487052006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48706
48707 * disk/lvm.c: Rename VGS to VG_LIST.
48708 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48709 (grub_lvm_open): Likewise.
48710 Thanks to Michael Guntsche for finding this bug.
48711
5d74d927 487122006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48713
48714 * configure.ac (AC_INIT): Bumped to 1.95.
48715
a1bb27e4 487162006-10-14 Robert Millan <rmh@aybabtu.com>
48717
48718 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48719 with "/dev/.static/dev/md".
48720
e0994b8b 487212006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48722
48723 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48724 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48725 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48726 DRIVE_NAME are always freed.
48727
48728 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48729 DOS_PART, as a DOS partition is counted from one instead of zero
48730 now. Reported by Robert Millan.
48731
ddd5cee9 487322006-10-14 Robert Millan <rmh@aybabtu.com>
48733
48734 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48735 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48736 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48737 string returned by grub_guess_root_device.
48738 * util/i386/pc/grub-setup.c: Likewise.
48739 * util/i386/pc/grub-probefs.c: Likewise.
48740
48741 * util/i386/pc/grub-probefs.c: Rename to ...
48742 * util/i386/pc/grub-probe.c: ... this.
48743 * DISTLIST: Remove grub-probefs, add grub-probe.
48744 * conf/i386-efi.rmk: Likewise.
48745 * conf/i386-pc.rmk: Likewise.
48746 * util/i386/pc/grub-install.in: Likewise.
48747
48748 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48749 choose which information we want to print.
48750
2b002173 487512006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48752
48753 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48754 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48755 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48756 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48757 video/readers/tga.c and video/i386/pc/vbeutil.c.
48758
487592006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48760
48761 Added support for RAID and LVM.
f19dbdb7 48762
2b002173 48763 * disk/lvm.c: New file.
48764 * disk/raid.c: Likewise.
48765 * include/grub/lvm.h: Likewise.
f19dbdb7 48766 * include/grub/raid.h: Likewise.
2b002173 48767 * include/grub/util/lvm.h: Likewise.
48768 * include/grub/util/raid.h: Likewise.
48769 * util/lvm.c: Likewise.
48770 * util/raid.c: Likewise.
48771
48772 * include/grub/disk.h (grub_disk_dev_id): Add
48773 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48774 (grub_disk_get_size): New prototype.
48775 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48776 returns a partition.
48777 (grub_disk_get_size): New function.
f19dbdb7 48778
2b002173 48779 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48780 verbatim if grub_install_dos_part is -2.
48781
48782 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48783 and LVM devices.
48784
48785 * util/i386/pc/grub-setup.c (setup): New argument
48786 MUST_EMBED. Force embedding of GRUB when the argument is
48787 true. Close FILE before returning.
48788 (main): Add support for RAID and LVM.
f19dbdb7 48789
2b002173 48790 * conf/common.rmk: Add RAID and LVM modules.
48791 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48792 util/lvm.c.
48793 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48794
48795 * kern/misc.c (grub_strstr): New function.
48796 * include/grub/misc.h (grub_strstr): New prototype.
48797
050548d0 487982006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48799
48800 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48801
da849d2d 488022006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48803
48804 * kern/misc.c (grub_strtoull): Guess the base only if not
48805 specified.
48806
97b2f2ff 488072006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 48808
48809 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48810 PowerMac support.
48811
97b2f2ff 488122006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 48813
48814 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48815
48816 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48817 Remove `flags' argument. All callers changed.
48818 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48819 (IEEE1275_IHANDLE_INVALID): New variable.
48820 (IEEE1275_CELL_INVALID): New variable.
48821 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48822 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48823 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48824 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48825 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48826 codes from Open Firmware. All callers updated.
48827 (grub_ieee1275_next_property): Directly return Open Firmware return
48828 code.
48829 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48830 Standardize error checking from `grub_ieee1275_get_property'.
48831 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48832 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48833
97b2f2ff 488342006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 48835
48836 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48837 `instance_to_package_args' to `instance_to_path_args'.
48838
48839 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48840 `grub_ieee1275_chosen'.
48841
48842 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48843 `grub_ieee1275_interpret'.
48844
97b2f2ff 488452006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 48846
48847 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48848
97b2f2ff 488492006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 48850
48851 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48852 (__cmpdi): Likewise.
48853
48854 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48855 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48856 `grub_ssize_t'.
48857
02bb8acc 48858 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 48859
48860 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48861 to type `grub_ssize_t'.
48862 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48863
7f9a8531 488642006-09-22 Marco Gerards <marco@gnu.org>
48865
48866 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48867 newlines.
48868
b5ef1102 488692006-09-22 Marco Gerards <marco@gnu.org>
48870
48871 * commands/echo.c: New file.
48872
48873 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48874
48875 * conf/common.rmk (echo_mod_SOURCES): New variable.
48876 (echo_mod_CFLAGS): Likewise.
48877 (echo_mod_LDFLAGS): Likewise.
48878
2cff3677 488792006-09-22 Marco Gerards <marco@gnu.org>
48880
48881 * normal/main.c (get_line): Malloc memory instead of using
48882 preallocated memory. Removed the arguments `cmdline' and
48883 `max_len'. Updated all callers.
48884
6ba4688b 488852006-09-22 Marco Gerards <marco@gnu.org>
48886
48887 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48888 (normal_mod_DEPENDENCIES): Likewise.
48889
48890 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48891 (normal_mod_DEPENDENCIES): Likewise.
48892
48893 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48894
e02ac02c 488952006-09-22 Johan Rydberg <jrydberg@gnu.org>
48896
48897 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48898 programs.
48899 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48900 (normal_mod_DEPENDENCIES): Likewise.
48901 * conf/i386-pc.mk: Regenerate.
48902 * conf/i386-efi.mk: Likewise
48903 * conf/common.mk: Likewise.
48904 * conf/powerpc-ieee1275.mk: Likewise.
48905 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 48906
8d252e44 489072006-09-22 Robert Millan <rmh@aybabtu.com>
48908
48909 Sync with i386 version.
48910 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48911 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48912
209bf7ac 489132006-09-21 Robert Millan <rmh@aybabtu.com>
48914
48915 Import from GRUB Legacy (lib/device.c):
48916 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48917 (init_device_map) [__linux__]: Add support for I2O devices.
48918
6b146090 489192006-09-14 Marco Gerards <marco@gnu.org>
48920
48921 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48922 `-melf_i386'.
48923
e38600a8 489242006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 48925
48926 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48927 /boot/grub/*.lst.
78fa1790 48928
2952da5d 48929 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 48930
2952da5d 48931 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48932 before adding it to device.map.
48933
01b82a64 489342006-08-15 Johan Rydberg <jrydberg@gnu.org>
48935
fe6b695a 48936 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 48937 compiles a file; using the -MD option.
48938 * conf/common.mk: Regenerate.
48939 * conf/i386-pc.mk: Likewise.
48940 * conf/i386-efi.mk: Likewise.
48941 * conf/powerpc-ieee1275.mk: Likewise.
48942 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 48943
1064790d 489442006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48945
48946 Move the prototypes of grub_setjmp and grub_longjmp to
48947 cpu/setjmp.h, so that each architecture may specify different
48948 attributes.
f19dbdb7 48949
1064790d 48950 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48951 (grub_longjmp): Likewise.
48952 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48953 (grub_longjmp): Likewise.
48954 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48955 (grub_longjmp): Likewise.
48956
48957 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48958 [!GRUB_UTIL] (grub_longjmp): Removed.
48959
29dda3ed 489602006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48961
48962 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48963 "color!" method does not return any value.
48964
ad2a06ed 489652006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48966
48967 * include/grub/bitmap.h: New file.
48968
48969 * include/grub/i386/pc/vbeutil.h: Likewise.
48970
48971 * video/bitmap.c: Likewise.
48972
48973 * video/readers/tga.c: Likewise.
48974
48975 * video/i386/pc/vbeutil.c: Likewise.
48976
48977 * commands/videotest.c: Code cleanup and updated to reflect to new
48978 video API.
48979
48980 * term/gfxterm.c: Likewise.
48981
48982 * video/video.c: Likewise.
48983
48984 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48985 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48986 (bitmap_mod_SOURCES): New entry.
48987 (bitmap_mod_CFLAGS): Likewise.
48988 (bitmap_mod_LDFLAGS): Likewise.
48989 (tga_mod_SOURCES): Likewise.
48990 (tga_mod_CFLAGS): Likewise.
48991 (tga_mod_LDFLAGS): Likewise.
48992
48993 * include/grub/video.h (grub_video_blit_operators): New enum type.
48994 (grub_video_render_target): Changed as forward declaration and moved
48995 actual definition to be video driver specific.
48996 (grub_video_adapter.blit_bitmap): Added blitting operator.
48997 (grub_video_adapter.blit_render_target): Likewise.
48998 (grub_video_blit_bitmap): Likewise.
48999 (grub_video_blit_render_target): Likewise.
49000
49001 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49002 driver specific render target definition.
49003 (grub_video_vbe_map_rgba): Added driver internal helper.
49004 (grub_video_vbe_unmap_color): Updated to use
49005 grub_video_i386_vbeblit_info.
49006 (grub_video_vbe_get_video_ptr): Likewise.
49007
49008 * include/grub/i386/pc/vbeblit.h
49009 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49010 grub_video_i386_vbeblit_info.
49011 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49012 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49013 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49014 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49015 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49016 (grub_video_i386_vbeblit_index_index): Likewise.
49017 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49018 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49019 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49020 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49021 operator.
49022 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49023 operator.
49024
49025 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49026 include/grub/i386/pc/vbeblit.h.
49027
49028 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49029 Updated to use grub_video_i386_vbeblit_info.
49030 (grub_video_i386_vbefill_R8G8B8): Likewise.
49031 (grub_video_i386_vbefill_index): Likewise.
49032 (grub_video_i386_vbefill): Added generic filler.
49033
49034 * video/i386/pc/vbefill.c: Updated to reflect changes on
49035 include/grub/i386/pc/vbefill.h.
49036
49037 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49038 grub_video_i386_vbeblit_info.
49039 (grub_video_vbe_unmap_color): Likewise.
49040 (grub_video_vbe_blit_glyph): Likewise.
49041 (grub_video_vbe_scroll): Likewise.
49042 (grub_video_vbe_draw_pixel): Removed function.
49043 (grub_video_vbe_get_pixel): Likewise.
49044 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49045 updated code to use it.
49046 (common_blitter): Added common blitter for render target and bitmap.
49047 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49048 (grub_video_vbe_blit_render_target): Likewise.
49049
bc8c036d 490502006-07-30 Johan Rydberg <jrydberg@gnu.org>
49051
49052 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49053 is in text mode if there is no console control protocol instance
49054 available.
49055
684a8eff 490562006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49057
49058 * include/grub/video.h: Code cleanup.
49059
49060 * include/grub/i386/pc/vbe.h: Likewise.
49061
49062 * video/i386/pc/vbe.c: Likewise.
49063
49064 * video/i386/pc/vbeblit.c: Likewise.
49065
49066 * video/i386/pc/vbefill.c: Likewise.
49067
49068 * video/video.c: Likewise. Also added more comments.
49069
5915059b 490702006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49071
49072 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49073 (struct grub_biosdisk_dap): Likewise.
49074
49075 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49076 linkage settings for all functions.
49077
90ce5d56 490782006-07-12 Marco Gerards <marco@gnu.org>
49079
49080 * configure.ac (--enable-mm-debug): Fix typo.
49081
49082 * genkernsyms.sh.in: Use proper quoting for `CC'.
49083
43e7f879 490842006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49085
49086 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49087 (normal_mod_ASFLAGS): Remove "-m32".
49088
4889bdec 490892006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49090
49091 * util/misc.c: Include config.h.
49092 [!HAVE_MEMALIGN]: Do not include malloc.h.
49093 (grub_memalign): Use posix_memalign, if present. Then, use
49094 memalign, if present. Otherwise, emit an error.
49095
49096 * util/grub-emu.c: Do not include malloc.h.
49097
49098 * include/grub/util/misc.h: Include unistd.h. This is required for
49099 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49100 D. Eades III <hde@foobar-qux.org>.
49101
49102 * configure.ac (AC_GNU_SOURCE): Added.
49103 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49104 type.
49105
fd39d4da 491062006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49107
49108 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49109 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49110
b786f3b5 491112006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49112
49113 * include/grub/types.h (grub_host_addr_t): Rename to
49114 grub_target_addr_t.
49115 (grub_host_off_t): Rename to grub_target_off_t.
49116 (grub_host_size_t): Rename to grub_target_size_t.
49117 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49118 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49119
49120 * include/grub/kernel.h (struct grub_module_header): Change type
49121 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49122 (grub_module_info): Likewise.
f19dbdb7 49123
051988bb 491242006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49125
49126 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49127 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49128 Velazquez <jesus.velazquez@gmail.com>.
49129
deae281b 491302006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49131
49132 Count partitions from 1 instead of 0 in the string representation
49133 of partitions. Still use 0-based internally.
f19dbdb7 49134
deae281b 49135 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49136 (sun_partition_map_iterate): Use grub_partition_t instead of
49137 struct grub_partition *. Cast DESC->START_CYLINDER to
49138 grub_uint64_t after converting the endian.
49139 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49140 (sun_partition_map_get_name): Add 1 to P->INDEX.
49141
49142 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49143 PCDATA->DOS_PART.
49144 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49145
49146 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49147 zero instead of one.
49148 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49149 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49150
49151 * partmap/apple.c (apple_partition_map_iterate): Change the type
49152 of POS to unsigned.
49153 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49154 (apple_partition_map_get_name): Add 1 into P->INDEX.
49155
49156 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49157 of POS to unsigned.
49158 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49159 calculate the offset of a partition.
49160 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49161 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49162
49163 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49164 SECTOR to grub_disk_addr_t.
49165 (acorn_partition_map_iterate): Likewise.
49166 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49167 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49168 top.
49169 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49170
49171 * kern/i386/pc/init.c (make_install_device): Add 1 into
49172 GRUB_INSTALL_DOS_PART.
49173
49174 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49175 conditional.
49176
524a1e6a 491772006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49178
49179 Clean up the code to support 64-bit addressing in disks and
49180 files. This change is not enough for filesystems yet.
f19dbdb7 49181
524a1e6a 49182 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49183 type of "start" to grub_uint64_t.
49184 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49185 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49186 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49187 convert addresses.
49188
49189 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49190 to grub_disk_addr_t.
49191
49192 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49193 string.
49194
49195 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49196
49197 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49198 to char *.
49199
49200 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49201
49202 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49203
49204 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49205
49206 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49207 to grub_off_t, to detect an error from grub_file_seek.
49208 (grub_multiboot_load_elf32): Likewise.
49209
49210 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49211 maximum unsigned long value when an overflow is detected.
49212 (grub_strtoull): New function.
49213 (grub_divmod64): Likewise.
49214 (grub_lltoa): use grub_divmod64.
49215
49216 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49217 grub_disk_addr_t.
49218 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49219 the pointer to next character. Use grub_strtoull instead of
49220 grub_strtoul.
49221 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49222 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49223 respectively.
49224
fe6b695a 49225 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 49226 return value is signed.
49227 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49228 test if OFFSET is less than zero, as OFFSET is unsigned now.
49229
49230 * kern/disk.c (struct grub_disk_cache): Change the type of
49231 "sector" to grub_disk_addr_t.
49232 (grub_disk_cache_get_index): Change the type of SECTOR to
49233 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49234 unsigned after shifting.
49235 (grub_disk_cache_invalidate): Change the type of SECTOR to
49236 grub_disk_addr_t.
49237 (grub_disk_cache_unlock): Likewise.
49238 (grub_disk_cache_store): Likewise.
49239 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49240 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49241 grub_disk_addr_t and grub_uint64_t, respectively.
49242 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49243 body, as the value of OFFSET is tweaked by
49244 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49245 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49246 respectively.
49247 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49248 body, as the value of OFFSET is tweaked by
49249 grub_disk_check_range. Change the types of LEN and N to
49250 grub_size_t.
49251
49252 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49253 and "saved_offset" to grub_off_t.
49254 (test_header): Cast BUF to char *.
49255 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49256 to char *.
49257 (grub_gzio_read): Change the types of OFFSET and SIZE to
49258 grub_off_t and grub_size_t, respectively.
49259
49260 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49261 Removed.
49262 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49263 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49264 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49265 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49266 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49267
49268 * include/grub/types.h (grub_off_t): Unconditionally set to
49269 grub_uint64_t.
49270 (grub_disk_addr_t): Changed to grub_uint64_t.
49271
49272 * include/grub/partition.h (struct grub_partition): Change the
49273 types of "start", "len" and "offset" to grub_disk_addr_t,
49274 grub_uint64_t and grub_disk_addr_t, respectively.
49275 (grub_partition_get_start): Return grub_disk_addr_t.
49276 (grub_partition_get_len): Return grub_uint64_t.
49277
49278 * include/grub/misc.h (grub_strtoull): New prototype.
49279 (grub_divmod64): Likewise.
49280
49281 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49282 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49283 grub_off_t, respectively.
49284 All callers and references changed.
49285
49286 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49287 grub_size_t in "read".
49288 All callers and references changed.
49289
49290 * include/grub/file.h (struct grub_file): Change the types of
49291 "offset" and "size" to grub_off_t and grub_off_t,
49292 respectively. Change the type of SECTOR to grub_disk_addr_t in
49293 "read_hook".
49294 (grub_file_read): Change the type of LEN to grub_size_t.
49295 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49296 grub_off_t.
49297 (grub_file_size): Return grub_off_t.
49298 (grub_file_tell): Likewise.
49299 All callers and references changed.
49300
49301 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49302 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49303 "write".
49304 (struct grub_disk): Change the type of "total_sectors" to
49305 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 49306 "read_hook".
524a1e6a 49307 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49308 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49309 (grub_disk_write): Likewise.
49310 All callers and references changed.
49311
49312 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49313 char * for grub_strncmp to silence gcc.
49314 (grub_iso9660_mount): Likewise.
49315 (grub_iso9660_mount): Likewise.
49316 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49317 return statement.
49318 (grub_iso9660_iterate_dir): Likewise.
49319 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49320
49321 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49322 LEN to grub_disk_addr_t and grub_size_t, respectively.
49323
49324 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49325
49326 * fs/jfs.c (grub_jfs_read_file): Likewise.
49327
49328 * fs/minix.c (grub_jfs_read_file): Likewise.
49329
49330 * fs/sfs.c (grub_jfs_read_file): Likewise.
49331
49332 * fs/ufs.c (grub_jfs_read_file): Likewise.
49333
49334 * fs/xfs.c (grub_jfs_read_file): Likewise.
49335
49336 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49337 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49338 respectively.
49339
49340 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49341 BLKNR to -1 instead of returning GRUB_ERRNO.
49342 (grub_ext2_read_file): Change the types of SECTOR and
49343 LEN to grub_disk_addr_t and grub_size_t, respectively.
49344
49345 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49346 LEN to grub_disk_addr_t and grub_size_t, respectively.
49347
49348 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49349 grub_file_read.
49350
49351 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49352 string. Do not cast SECTOR explicitly.
49353
49354 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49355 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49356 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49357 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49358 over 2TB and LBA mode is not supported, raise an error.
49359 (get_safe_sectors): New function.
49360 (grub_biosdisk_read): Use get_safe_sectors.
49361 (grub_biosdisk_write): Likewise.
49362
49363 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49364 (grub_efidisk_write): Likewise.
49365
49366 * disk/loopback.c (delete_loopback): Cosmetic changes.
49367 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49368 correctly.
49369 (grub_loopback_open): Likewise.
49370 (grub_loopback_read): Likewise. Also, change the type of POS to
49371 grub_off_t, and fix the usage of grub_memset.
49372
49373 * commands/i386/pc/play.c: Include grub/machine/time.h.
49374
49375 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49376 print FILE->SIZE.
49377
49378 * commands/configfile.c: Include grub/env.h.
49379
49380 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49381 GRUB_ERRNO directly instead. Change the type of POS to
49382 grub_off_t. Follow the coding standard.
49383
49384 * commands/blocklist.c: Include grub/partition.h.
49385 (grub_cmd_blocklist): Return an error if the underlying device is
49386 not a disk. Take the starting sector of a partition into account,
49387 if a partition is used.
49388
49389 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49390 a length field.
49391 (lba_mode): Support 64-bit addresses.
49392 (chs_mode): Likewise.
49393 (copy_buffer): Adapted to the new offsets of a length field and a
49394 segment field.
49395 (blocklist_default_start): Allocate 64-bit space.
49396
49397 * boot/i386/pc/boot.S (force_lba): Removed.
49398 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 49399 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 49400 space.
49401 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49402 is useless.
49403 (lba_mode): Refactored to support a 64-bit address. More size
49404 optimization.
49405 (setup_sectors): Likewise.
49406
53af98ad 494072006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49408
49409 * DISTLIST: Added include/grub/i386/linux.h. Removed
49410 include/grub/i386/pc/linux.h
49411
49412 * configure.ac (AC_INIT): Bumped to 1.94.
49413
49414 * config.guess: Updated from gnulib.
49415 * config.sub: Likewise.
49416 * install-sh: Likewise.
49417 * mkinstalldirs: Likewise.
49418
b4c1940a 494192006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49420
49421 * conf/common.rmk (grub_modules_init.lst): Depended on
49422 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49423 MODSRCFILES.
49424
49425 * genmk.rb (PModule::rule): Reverted the previous change.
49426
cfca1cfd 494272006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49428
49429 * conf/common.rmk (grub_modules_init.lst): Depends on
49430 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49431 that the target does not exist before producing.
49432 (grub_modules_init.h): Remove the target before generating.
49433 (grub_emu_init.c): Likewise.
49434
49435 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49436
aa6d7826 494372006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49438
49439 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49440 for the target-specific tests. Make sure that we also have the
49441 up-to-date target variables for those tests.
49442
26c607b9 494432006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49444
49445 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49446 (PModule::rule): Likewise.
49447
0162321a 494482006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49449
49450 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49451 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49452 target-specific flags should be prefixed.
49453 (PModule::rule): Likewise.
49454
6c826348 494552006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49456
49457 * configure.ac (CMP): Check if cmp is available explicitly.
49458
b977bf01 494592006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49460
49461 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49462 (target_cpu): New variable.
49463 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 49464
b977bf01 49465 * util/i386/pc/grub-install.in (host_cpu): Removed.
49466 (target_cpu): New variable.
49467 (pkglibdir): Use target_cpu instead of host_cpu.
49468
49469 * util/genmoddep.c: Removed.
f19dbdb7 49470
b977bf01 49471 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49472 instead of GRUB_HOST_SIZEOF_VOID_P.
49473 * kern/dl.c: Likewise.
49474
49475 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49476 ...
49477 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49478 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49479 (GRUB_TARGET_SIZEOF_LONG): ... this.
49480 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49481 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49482 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49483 to ...
49484 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49485 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49486 (GRUB_TARGET_SIZEOF_LONG): ... this.
49487 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49488 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49489 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49490 to ...
49491 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49492 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49493 (GRUB_TARGET_SIZEOF_LONG): ... this.
49494 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49495 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49496
49497 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49498 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49499 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49500 instead of GRUB_HOST_SIZEOF_LONG.
49501 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49502 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49503 GRUB_CPU_WORDS_BIGENDIAN.
49504 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49505 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49506 grub_host_ssize_t.
49507
49508 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49509 (genmoddep_SOURCES): Likewise.
49510 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49511 (genmoddep_SOURCES): Likewise.
49512 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49513 (genmoddep_SOURCES): Likewise.
49514 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49515 Likewise.
49516 (genmoddep_SOURCES): Likewise.
49517
49518 * genmoddep.awk: New file.
49519
49520 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49521 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49522 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49523 (PModule::rule): Likewise.
49524 (Program::rule): Likewise.
49525 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49526 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49527 respectively.
49528
49529 * configure.ac: Rewritten intensively to use host and target
49530 instead of build and host, respectively.
49531
49532 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49533 (host_cpu): Removed.
49534 (target_cpu): New variable.
49535 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49536 (BUILD_CC): Removed.
49537 (BUILD_CFLAGS): Likewise.
49538 (BUILD_CPPFLAGS): Likewise.
49539 (TARGET_CC): New variable.
49540 (TARGET_CFLAGS): Likewise.
49541 (TARGET_CPPFLAGS): Likewise.
49542 (TARGET_LDFLAGS): Likewise.
49543 (AWK): Likewise.
49544 (include): Use target_cpu instead of host_cpu.
49545 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 49546
b977bf01 49547 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49548
f09771a1 495492006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49550
49551 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49552 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49553 field 'false' to 'exec_on_false'.
49554 (grub_script_create_cmdif): Renamed argument names to reflect above
49555 changes.
49556
49557 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49558
49559 * normal/script.c (grub_script_create_cmdif): Likewise.
49560
118f4fb3 495612006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49562
49563 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49564 top.
49565 (grub_hfsplus_btree_recptr): Likewise.
49566 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49567 FILEBLOCK both to pass a block number and store next block
49568 number.
49569 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49570 overflow file correctly. Specify errors appropriately, because
49571 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49572 grub_hfsplus_btree_recptr to get the pointer to a found key.
49573 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49574 is found.
49575
49576 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49577 linux.mod.
49578 (_linux_mod_SOURCES): New variable.
49579 (_linux_mod_CFLAGS): Likewise.
49580 (_linux_mod_LDFLAGS): Likewise.
49581 (linux_mod_SOURCES): Likewise.
49582 (linux_mod_CFLAGS): Likewise.
49583 (linux_mod_LDFLAGS): Likewise.
49584
49585 * DISTLIST: Added loader/i386/efi/linux.c,
49586 loader/i386/efi/linux_normal.c and
49587 include/grub/i386/efi/loader.h.
49588
49589 * loader/i386/efi/linux.c: New file.
49590 * loader/i386/efi/linux_normal.c: Likewise.
49591 * include/grub/i386/efi/loader.h: Likewise.
49592
89a7d726 495932006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49594
49595 * commands/blocklist.c: New file.
49596
49597 * DISTLIST: Added commands/blocklist.c.
49598
49599 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 49600 color for the background, and a darker color for the foreground.
89a7d726 49601 (grub_console_checkkey): Return READ_KEY.
49602 (grub_console_cls): Set the background to
49603 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49604
49605 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49606
49607 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49608 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49609
49610 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49611 prototype.
49612
49613 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49614 BG. The spec is wrong again.
49615
49616 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49617 prototype.
49618 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49619
49620 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49621 commands/blocklist.c.
49622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 49623
89a7d726 49624 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49625 (blocklist_mod_SOURCES): New variable.
49626 (blocklist_mod_CFLAGS): Likewise.
49627 (blocklist_mod_LDFLAGS): Likewise.
49628
75c8f258 496292006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49630
49631 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49632 duplication.
49633 (lba_mode): Use %eax more intensively to reduce the code size.
49634
da2eb181 496352006-05-20 Marco Gerards <marco@gnu.org>
49636
49637 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49638
49639 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49640 for `menuentry'.
49641 (script): Accept leading newlines.
49642 (newlines): New rule to describe 0 or more newlines.
49643 (commands): Accept `command' with trailing newline. Fixed the
49644 order in which arguments were passed to `grub_script_add_cmd'.
49645 Accept commands separated by newlines.
49646 (function): Changed to accept newlines.
49647 (menuentry) Rewritten.
49648
49649 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49650 front of the list, instead of to the end.
49651
577b4050 496522006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49653
49654 * util/i386/pc/grub-install.in (bindir): New variable.
49655 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49656 Shaver <lbgwjl@gmail.com>.
49657
0d6e1189 496582006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49659
49660 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49661 grub/machine/linux.h
49662 * loader/i386/pc/linux.c: Likewise.
49663
49664 * include/grub/i386/pc/linux.h: Moved to ...
49665 * include/grub/i386/linux.h: ... here.
49666
49667 * include/grub/i386/linux.h (struct linux_kernel_params): New
49668 struct.
f19dbdb7 49669
31b86e9f 496702006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49671
49672 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49673 checking.
49674 (grub_video_vbe_blit_glyph): Likewise.
49675 (grub_video_vbe_blit_bitmap): Likewise.
49676 (grub_video_vbe_blit_render_target): Likewise.
49677
83b984de 496782006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49679
49680 * configure.ac (--with-platform): Properly quote the square
49681 brackets.
49682
5f0413bd 496832006-05-08 Marco Gerards <marco@gnu.org>
49684
49685 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49686 this...
49687 (kernel_elf_HEADERS): ...to this. Updated all users.
49688 (grubof_symlist.c): Renamed from this...
49689 (kernel_elf_symlist.c): ...to this. Updated all users.
49690 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49691 (grubof_SOURCES): Renamed from this...
49692 (kernel_elf_SOURCES): ...to this.
49693 (grubof_HEADERS): Renamed from this...
49694 (kernel_elf_HEADERS): ...to this.
49695 (grubof_CFLAGS): Renamed from this...
49696 (kernel_elf_CFLAGS): ...to this.
49697 (grubof_ASFLAGS): Renamed from this...
49698 (kernel_elf_ASFLAGS): ...to this.
49699 (grubof_LDFLAGS): Renamed from this...
49700 (kernel_elf_LDFLAGS): ...to this.
49701
49702 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49703 this...
49704 (kernel_elf_HEADERS): ...to this. Updated all users.
49705 (grubof_symlist.c): Renamed from this...
49706 (kernel_elf_symlist.c): ...to this. Updated all users.
49707 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49708 (grubof_SOURCES): Renamed from this...
49709 (kernel_elf_SOURCES): ...to this.
49710 (grubof_HEADERS): Renamed from this...
49711 (kernel_elf_HEADERS): ...to this.
49712 (grubof_CFLAGS): Renamed from this...
49713 (kernel_elf_CFLAGS): ...to this.
49714 (grubof_ASFLAGS): Renamed from this...
49715 (kernel_elf_ASFLAGS): ...to this.
49716 (grubof_LDFLAGS): Renamed from this...
49717 (kernel_elf_LDFLAGS): ...to this.
49718
49719 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49720 `kernel.elf' instead of `grubof'.
49721
05568c2e 497222006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49723
49724 Add --with-platform to configure. Use pkglibdir instead of
49725 pkgdatadir. This is reported by Roger Leigh.
49726
49727 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49728 (host_vendor): Likewise.
49729 (host_os): Likewise.
49730 (pkgdatadir): Likewise.
49731 (platform): New variable.
49732 (pkglibdir): Likewise.
49733 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 49734
05568c2e 49735 * util/i386/pc/grub-install.in (datadir): Removed.
49736 (host_vendor): Likewise.
49737 (host_os): Likewise.
49738 (pkgdatadir): Likewise.
49739 (platform): New variable.
49740 (pkglibdir): Likewise.
49741 Use PKGLIBDIR instead of PKGDATADIR.
49742
49743 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49744 instead of GRUB_DATADIR.
49745 (main): Likewise.
49746 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49747 (main): Likewise.
49748 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49749 (main): Likewise.
49750
49751 * configure.ac (--with-platform): New option.
49752 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49753
49754 * Makefile.in: Include a makefile based on PLATFORM instead of
49755 HOST_VENDOR.
49756 (pkgdatadir): Not appended by the machine type.
49757 (pkglibdir): Appended by the machine type.
49758 (host_vendor): Removed.
49759 (platform): New variable.
49760 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49761 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49762 (uninstall): Likewise.
49763
4e93851c 497642006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49765
49766 Use the environment context in the menu. Remove the commands
49767 "default" and "timeout", and use variables instead.
f19dbdb7 49768
4e93851c 49769 * normal/menu.c: Include grub/env.h.
49770 (print_entry): Cast TITLE to silence gcc.
49771 (get_timeout): New function.
49772 (set_timeout): Likewise.
49773 (get_entry_number): Likewise.
49774 (run_menu): Use a default entry, a fallback entry and a timeout
49775 in the environment variables "default", "fallback" and
49776 "timeout". Also, tweak the default entry if it is not within the
49777 current menu entries.
49778 (grub_menu_run): Use a fallback entry in the environment variable
49779 "fallback".
49780
49781 * normal/main.c (read_config_file): Do not initialize
49782 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49783 NEWMENU->TIMEOUT.
49784 (grub_normal_execute): Use a data slot to store the menu.
49785
49786 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49787 fallback_entry and timeout.
49788 (struct grub_menu_list): Removed.
49789 (grub_menu_list_t): Likewise.
49790 (struct grub_context): Likewise.
49791 (grub_context_t): Likewise.
49792 (grub_context_get): Likewise.
49793 (grub_context_get_current_menu): Likewise.
49794 (grub_context_push_menu): Likewise.
49795 (grub_context_pop_menu): Likewise.
49796 (grub_default_init): Likewise.
49797 (grub_default_fini): Likewise.
49798 (grub_timeout_init): Likewise.
49799 (grub_timeout_fini): Likewise.
49800
49801 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49802 and timeout.mod.
49803 (normal_mod_SOURCES): Removed normal/context.c.
49804
49805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49806 commands/default.c, commands/timeout.c and normal/context.c.
49807 (normal_mod_SOURCES): Removed normal/context.c.
49808
49809 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49810 commands/timeout.c and normal/context.c.
49811 (normal_mod_SOURCES): Removed normal/context.c.
49812
49813 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49814 commands/default.c, commands/timeout.c and normal/context.c.
49815 (normal_mod_SOURCES): Removed normal/context.c.
49816
49817 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49818 timeout.mod.
49819 (default_mod_SOURCES): Removed.
49820 (default_mod_CFLAGS): Likewise.
49821 (default_mod_LDFLAGS): Likewise.
49822 (timeout_mod_SOURCES): Removed.
49823 (timeout_mod_CFLAGS): Likewise.
49824 (timeout_mod_LDFLAGS): Likewise.
49825
49826 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49827 normal/context.c.
49828
49829 * commands/default.c: Removed.
49830 * commands/timeout.c: Likewise.
49831 * normal/context.c: Likewise.
49832
1eb9cc1d 498332006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49834
49835 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49836
385bd9c1 498372006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49838
49839 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49840 "next" to "prev" for readability.
49841 (struct grub_env_sorted_var): New struct.
49842 (grub_env_context): Renamed to ...
49843 (initial_context): ... this.
49844 (grub_env_var_context): Renamed to ...
49845 (current_context): ... this.
49846 (grub_env_find): Look only at CURRENT_CONTEXT.
49847 (grub_env_context_open): Rewritten to copy exported variables from
49848 previous context.
49849 (grub_env_context_close): Rewritten according to the new
49850 scheme. Also, add an assertion to prevent the initial context from
49851 removed.
49852 (grub_env_insert): Removed the code for the sorted list.
49853 (grub_env_remove): Likewise.
49854 (grub_env_export): Simply mark the variable with
49855 GRUB_ENV_VAR_GLOBAL.
49856 (grub_env_set): A cosmetic change for naming consistency.
49857 (grub_env_get): Likewise.
49858 (grub_env_unset): Likewise.
49859 (grub_env_iterate): Rewritten to sort variables within this
49860 function.
49861 (grub_register_variable_hook): Fixed for naming consistency. Call
49862 grub_env_find again, only if NAME is not found at the first time.
49863 (mangle_data_slot_name): New function.
49864 (grub_env_set_data_slot): Likewise.
49865 (grub_env_get_data_slot): Likewise.
49866 (grub_env_unset_data_slot): Likewise.
49867
49868 * include/grub/env.h (grub_env_var_type): New enum.
49869 (GRUB_ENV_VAR_LOCAL): New constant.
49870 (GRUB_ENV_VAR_GLOBAL): Likewise.
49871 (GRUB_ENV_VAR_DATA): Likewise.
49872 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49873 "type".
49874 (grub_env_set): Replace VAR with NAME for consistency.
49875 (grub_register_variable_hook): Likewise.
49876 (grub_env_export): Specify the name of the argument.
49877 (grub_env_set_data_slot): New prototype.
49878 (grub_env_get_data_slot): Likewise.
49879 (grub_env_unset_data_slot): Likewise.
49880
7f362539 498812006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49882
49883 Extend the loader so that GRUB can accept a loader which comes
49884 back to GRUB when a loaded image exits. Also, this change adds
49885 support for a chainloader on EFI.
f19dbdb7 49886
7f362539 49887 * term/efi/console.c: Include grub/misc.h.
49888 (grub_console_checkkey): Display a scan code on the top for
49889 debugging. This will be removed once the EFI port gets stable.
49890 Correct the scan code mapping.
49891
49892 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49893 allocate memory from larger regions, in order to reduce the number
49894 of allocated regions. Otherwise, the MacOSX loader panics.
49895 (filter_memory_map): Avoid less than 1MB for compatibility with
49896 other loaders.
49897 (add_memory_regions): Allocate from the tail of a region, if
49898 possible, to avoid allocating a region near to 1MB, for the MacOSX
49899 loader.
49900
49901 * kern/efi/init.c (grub_efi_set_prefix): Specify
49902 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49903
49904 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49905 argument IMAGE_HANDLE and specify it to get a loaded image.
49906 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49907 grub_efi_get_loaded_image.
fe6b695a 49908 (grub_efi_get_filename): Divide the length by the size of
7f362539 49909 grub_efi_char16_t.
49910 (grub_efi_get_device_path): New function.
49911 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49912 the length by the size of grub_efi_char16_t for a file path device
49913 path node.
49914
49915 * kern/loader.c (grub_loader_noreturn): New variable.
49916 (grub_loader_set): Accept a new argument NORETURN. Set
49917 GRUB_LOADER_NORETURN to NORETURN.
49918 All callers changed.
49919 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49920 grub_machine_fini.
49921
49922 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49923 prototype.
49924 (grub_efi_get_loaded_image): Take an argument to specify an image
49925 handle.
49926
49927 * include/grub/loader.h (grub_loader_set): Added one more argument
49928 NORETURN.
49929
49930 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49931 instead of grub_efi_open_protocol.
49932 (grub_efidisk_get_device_name): Likewise.
49933 (grub_efidisk_close): Print a newline.
49934 (grub_efidisk_get_device_handle): Fixed to use
49935 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49936 GRUB_EFI_DEVICE_PATH_TYPE.
49937
49938 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49939 * kern/efi/efi.c (device_path_guid): ... here.
49940
49941 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49942 chain.mod.
49943 (kernel_mod_HEADERS): Added efi/disk.h.
49944 (_chain_mod_SOURCES): New variable.
49945 (_chain_mod_CFLAGS): Likewise.
49946 (_chain_mod_LDFLAGS): Likewise.
49947 (chain_mod_SOURCES): Likewise.
49948 (chain_mod_CFLAGS): Likewise.
49949 (chain_mod_LDFLAGS): Likewise.
49950
49951 * DISTLIST: Added include/grub/efi/chainloader.h,
49952 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49953
49954 * include/grub/efi/chainloader.h: New file.
49955 * loader/efi/chainloader.c: Likewise.
49956 * loader/efi/chainloader_normal.c: Likewise.
49957
c0111d6e 499582006-04-30 Marco Gerards <marco@gnu.org>
49959
49960 * commands/configfile.c (grub_cmd_source): New function.
49961 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49962 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49963
df5341da 499642006-04-30 Marco Gerards <marco@gnu.org>
49965
49966 * normal/execute.c (grub_script_execute_cmd): Change the return
49967 type to `grub_err_t'. Correctly return the error.
49968 (grub_script_execute_cmdline): In case a command line is not a
49969 command or a function, try to interpret it as an assignment.
49970
f85934bd 499712006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49972
49973 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49974 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49975 skip a node whose name is obviously invalid as UTF-16,
49976 i.e. contains a NUL character. Stop the iteration when the last
49977 directory entry is found. Instead of using the return value of
49978 grub_hfsplus_btree_iterate_node, store the value in RET and use
49979 it, because the iterator can be stopped by the last directory
49980 entry.
49981
8f8a2cf8 499822006-04-30 Marco Gerards <marco@gnu.org>
49983
49984 * include/grub/env.h (grub_env_export): New prototype. Reported
49985 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49986
a27e84ce 499872006-04-30 Marco Gerards <marco@gnu.org>
49988
49989 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49990 size of the extents in a catalog file record.
49991
eaef0553 499922006-04-29 Marco Gerards <marco@gnu.org>
49993
49994 * commands/configfile.c (grub_cmd_configfile): Execute the
49995 configfile within its own context.
49996
49997 * include/grub/env.h (grub_env_context_open): New prototype.
49998 (grub_env_context_close): Likewise.
49999
50000 * kern/env.c (grub_env): Removed.
50001 (grub_env_sorted): Likewise.
50002 (grub_env_context): New variable.
50003 (grub_env_var_context): Likewise.
50004 (grub_env_find): Search both the active context and the global
50005 context.
50006 (grub_env_context_open): New function.
50007 (grub_env_context_close): Likewise.
50008 (grub_env_insert): Likewise.
50009 (grub_env_remove): Likewise.
50010 (grub_env_export): Likewise.
50011 (grub_env_set): Changed to use helper functions to avoid code
50012 duplication.
50013 (grub_env_iterate): Rewritten so both the current context and the
50014 global context are being used.
50015
50016 * normal/command.c (export_command): New function.
50017 (grub_command_init): Register the `export' function.
50018
7b455f4d 500192006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50020
50021 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50022 explicitly to suppress gcc's warnings.
50023 * fs/fat.c (grub_fat_find_dir): Likewise.
50024 (grub_fat_label): Likewise.
50025 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50026 (grub_xfs_mount): Likewise.
50027 (grub_xfs_label): Likewise.
50028 * fs/affs.c (grub_affs_mount): Likewise.
50029 (grub_affs_label): Likewise.
50030 (grub_affs_iterate_dir): Likewise.
50031 * fs/sfs.c (grub_sfs_mount): Likewise.
50032 (grub_sfs_iterate_dir): Likewise.
50033 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50034 * fs/hfs.c (grub_hfs_mount): Likewise.
50035 (grub_hfs_cmp_catkeys): Likewise.
50036 (grub_hfs_find_dir): Likewise.
50037 (grub_hfs_dir): Likewise.
50038 (grub_hfs_label): Likewise.
50039 * fs/jfs.c (grub_jfs_mount): Likewise.
50040 (grub_jfs_opendir): Likewise.
50041 (grub_jfs_getent): Likewise.
50042 (grub_jfs_lookup_symlink): Likewise.
50043 (grub_jfs_label): Likewise.
50044 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50045 (grub_hfsplus_iterate_dir): Likewise.
50046 (grub_hfsplus_btree_iterate_node): Made static.
50047
50048 * util/grub-emu.c (prefix): New variable.
50049 (grub_machine_set_prefix): New function.
50050 (main): Do not set the environment variable "prefix" here. Only
50051 set PREFIX, which is used later by grub_machine_set_prefix.
50052
50053 * include/grub/video.h: Do not include grub/symbol.h.
50054 (grub_video_register): Not exported. This symbol is not defined in
50055 the kernel.
50056 (grub_video_unregister): Likewise.
50057 (grub_video_iterate): Likewise.
50058 (grub_video_setup): Likewise.
50059 (grub_video_restore): Likewise.
50060 (grub_video_get_info): Likewise.
50061 (grub_video_get_blit_format): Likewise.
50062 (grub_video_set_palette): Likewise.
50063 (grub_video_get_palette): Likewise.
50064 (grub_video_set_viewport): Likewise.
50065 (grub_video_get_viewport): Likewise.
50066 (grub_video_map_color): Likewise.
50067 (grub_video_map_rgb): Likewise.
50068 (grub_video_map_rgba): Likewise.
50069 (grub_video_fill_rect): Likewise.
50070 (grub_video_blit_glyph): Likewise.
50071 (grub_video_blit_bitmap): Likewise.
50072 (grub_video_blit_render_target): Likewise.
50073 (grub_video_scroll): Likewise.
50074 (grub_video_swap_buffers): Likewise.
50075 (grub_video_create_render_target): Likewise.
50076 (grub_video_delete_render_target): Likewise.
50077 (grub_video_set_active_render_target): Likewise.
50078
50079 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50080 Undefined.
50081 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50082
50083 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50084 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50085 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50086 instead of $(srcdir)/genkernsyms.sh.
50087
50088 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50089 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50090 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50091 instead of $(srcdir)/genkernsyms.sh.
50092
50093 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50094 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50095 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50096 instead of $(srcdir)/genkernsyms.sh.
50097
50098 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50099 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50100 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50101 instead of $(srcdir)/genkernsyms.sh.
50102
50103 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50104 genkernsyms.sh.
50105
50106 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50107 genkernsyms.sh.
50108 (gensymlist.sh): New target.
50109 (genkernsyms.sh): Likewise.
50110
50111 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50112 genkernsyms.sh.in and gensymlist.sh.in.
50113
50114 * genkernsyms.sh: Removed.
50115 * gensymlist.sh: Likewise.
f19dbdb7 50116
7b455f4d 50117 * genkernsyms.sh.in: New file.
50118 * gensymlist.sh.in: Likewise.
50119
1885bb27 501202006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50121
50122 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50123 clobber "prefix", since we may have already set it manually.
50124
71538dff 501252006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50126
50127 * kern/misc.c (abort): New alias for grub_abort.
50128
2965c7cc 501292006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50130
50131 A new machine-specific function "grub_machine_set_prefix" is
50132 defined. This is called after loading modules, so that a prefix
50133 initialization can use modules. Also, this change adds an
50134 intensive debugging feature for the memory manager via the
50135 configure option "--enable-mm-debug".
f19dbdb7 50136
2965c7cc 50137 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50138 PART.LEN.
50139
50140 * kern/sparc64/ieee1275/init.c (abort): Removed.
50141 (grub_stop): Likewise.
50142 (grub_exit): New function.
50143 (grub_set_prefix): Renamed to ...
50144 (grub_machine_set_prefix): ... this.
50145 (grub_machine_init): Do not call grub_set_prefix.
50146
50147 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50148 (grub_machine_set_prefix): ... this.
50149 (grub_machine_init): Do not call grub_set_prefix.
50150
50151 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50152 (grub_machine_init): Do not set the prefix here.
50153
50154 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50155
50156 * kern/efi/init.c: Include grub/mm.h.
50157 (grub_efi_set_prefix): New function.
50158
50159 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50160 (grub_efi_get_filename): New function.
50161 (grub_print_device_path): Renamed to ...
50162 (grub_efi_print_device_path): ... this.
50163
50164 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50165 [MM_DEBUG] (grub_realloc): Likewise.
50166 [MM_DEBUG] (grub_free): Likewise.
50167 [MM_DEBUG] (grub_memalign): Likewise.
50168 [MM_DEBUG] (grub_mm_debug): New variable.
50169 [MM_DEBUG] (grub_debug_malloc): New function.
50170 [MM_DEBUG] (grub_debug_free): New function.
50171 [MM_DEBUG] (grub_debug_realloc): New function.
50172 [MM_DEBUG] (grub_debug_memalign): New function.
50173
50174 * kern/misc.c (grub_abort): Print a newline to distinguish
50175 the message.
50176
50177 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50178 grub_set_root_dev after loading modules. This is necessary when
50179 setting a prefix depends on modules.
50180
50181 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50182 (grub_efi_print_device_path): ... this.
50183 (grub_efi_get_filename): New prototype.
50184 (grub_efi_set_prefix): Likewise.
50185
50186 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50187 and grub/disk.h.
50188 (grub_efidisk_get_device_handle): New prototype.
50189 (grub_efidisk_get_device_name): Likewise.
50190
50191 * include/grub/mm.h: Include config.h.
50192 (MM_DEBUG): Removed.
50193 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50194 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50195 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50196 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50197 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50198 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50199 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50200 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50201 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50202
50203 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50204
50205 * disk/efi/efidisk.c: Include grub/partition.h.
50206 (iterate_child_devices): New function.
50207 (add_device): First, compare only last device path nodes, so that
50208 devices are sorted by the types.
50209 (grub_efidisk_get_device_handle): New function.
50210 (grub_efidisk_get_device_name): Likewise.
50211
50212 * configure.ac (--enable-mm-debug): New option to enable the
50213 memory manager debugging feature. This makes the binary much
50214 bigger, so is disabled by default.
50215
9cacaa17 502162006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50217
50218 Use grub_abort instead of grub_stop, and grub_exit must be
50219 define in each architecture now. Also, this change adds support
50220 for EFI disks.
f19dbdb7 50221
9cacaa17 50222 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50223 (grub_getkey): New function.
50224 (grub_term_get_current): Likewise.
50225
50226 * util/i386/pc/grub-setup.c: Include grub/term.h.
50227 (grub_getkey): New function.
50228 (grub_term_get_current): Likewise.
50229
50230 * util/misc.c (grub_stop): Renamed to ...
50231 (grub_exit): ... this.
50232
50233 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50234 (grub_exit): ... this.
50235 (grub_machine_init): Use grub_abort instead of abort.
50236 (grub_stop): Removed.
50237
50238 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50239 abort.
50240
50241 * kern/i386/pc/startup.S (grub_exit): New function.
50242 (cold_reboot): New label.
50243
50244 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50245 (grub_efi_init): Call grub_efidisk_init.
50246 (grub_efi_fini): Call grub_efidisk_fini.
50247
50248 * kern/efi/efi.c: Include grub/mm.h.
50249 (grub_efi_console_control_guid): Renamed to ...
50250 (console_control_guid): ... this.
50251 (grub_efi_loaded_image_guid): Renamed to ...
50252 (loaded_image_guid): ... this.
50253 (grub_efi_locate_handle): New function.
50254 (grub_efi_open_protocol): Likewise.
50255 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50256 GRUB_EFI_CONSOLE_CONTROL_GUID.
50257 (grub_efi_exit): Removed.
50258 (grub_stop): Likewise.
50259 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50260 (grub_exit): New function.
50261 (grub_print_device_path): Likewise.
50262
50263 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50264 (grub_enter_rescue_mode): Register "exit".
50265
50266 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50267 (grub_abort): New function.
50268
50269 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50270
50271 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50272
50273 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50274
50275 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50276 (grub_print_device_path): New prototype.
50277 (grub_efi_locate_handle): Likewise.
50278 (grub_efi_open_protocol): Likewise.
50279
50280 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50281 * disk/efi/efidisk.c: Likewise.
50282
50283 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50284
50285 * include/grub/efi/console_control.h
50286 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50287
50288 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50289 last 8 bytes as an array.
50290 (GRUB_EFI_DISK_IO_GUID): New macro.
50291 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50292 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50293 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50294 grub_uint8_t.
50295 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50296 (struct grub_efi_device_path): Rename the member "sub_type" to
50297 "subtype".
50298 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50299 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50300 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50301 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50302 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50303 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50304 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50305 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50306 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50307 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50308 (struct grub_efi_pci_device_path): New structure.
50309 (grub_efi_pci_device_path_t): New type.
50310 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50311 (struct grub_efi_pccard_device_path): New structure.
50312 (grub_efi_pccard_device_path_t): New type.
50313 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50314 (struct grub_efi_memory_mapped_device_path): New structure.
50315 (grub_efi_memory_mapped_device_path_t): New type.
50316 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50317 (struct grub_efi_vendor_device_path): New structure.
50318 (grub_efi_vendor_device_path_t): New type.
50319 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50320 (struct grub_efi_controller_device_path): New structure.
50321 (grub_efi_controller_device_path_t): New type.
50322 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50323 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50324 (struct grub_efi_acpi_device_path): New structure.
50325 (grub_efi_acpi_device_path_t): New type.
50326 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50327 (struct grub_efi_expanded_acpi_device_path): New structure.
50328 (grub_efi_expanded_acpi_device_path_t): New type.
50329 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50330 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50331 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50332 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50333 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50334 (struct grub_efi_atapi_device_path): New structure.
50335 (grub_efi_atapi_device_path_t): New type.
50336 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50337 (struct grub_efi_fibre_channel_device_path): New structure.
50338 (grub_efi_fibre_channel_device_path_t): New type.
50339 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50340 (struct grub_efi_1394_device_path): New structure.
50341 (grub_efi_1394_device_path_t): New type.
50342 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50343 (struct grub_efi_usb_device_path): New structure.
50344 (grub_efi_usb_device_path_t): New type.
50345 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50346 (struct grub_efi_usb_class_device_path): New structure.
50347 (grub_efi_usb_class_device_path_t): New type.
50348 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50349 (struct grub_efi_i2o_device_path): New structure.
50350 (grub_efi_i2o_device_path_t): New type.
50351 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50352 (struct grub_efi_mac_address_device_path): New structure.
50353 (grub_efi_mac_address_device_path_t): New type.
50354 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50355 (struct grub_efi_ipv4_device_path): New structure.
50356 (grub_efi_ipv4_device_path_t): New type.
50357 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50358 (struct grub_efi_ipv6_device_path): New structure.
50359 (grub_efi_ipv6_device_path_t): New type.
50360 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50361 (struct grub_efi_infiniband_device_path): New structure.
50362 (grub_efi_infiniband_device_path_t): New type.
50363 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50364 (struct grub_efi_uart_device_path): New structure.
50365 (grub_efi_uart_device_path_t): New type.
50366 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50367 (struct grub_efi_vendor_messaging_device_path): New structure.
50368 (grub_efi_vendor_messaging_device_path_t): New type.
50369 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50370 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50371 (struct grub_efi_hard_drive_device_path): New structure.
50372 (grub_efi_hard_drive_device_path_t): New type.
50373 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50374 (struct grub_efi_cdrom_device_path): New structure.
50375 (grub_efi_cdrom_device_path_t): New type.
50376 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50377 (struct grub_efi_vendor_media_device_path): New structure.
50378 (grub_efi_vendor_media_device_path_t): New type.
50379 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50380 (struct grub_efi_file_path_device_path): New structure.
50381 (grub_efi_file_path_device_path_t): New type.
50382 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50383 (struct grub_efi_protocol_device_path): New structure.
50384 (grub_efi_protocol_device_path_t): New type.
50385 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50386 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50387 (struct grub_efi_bios_device_path): New structure.
50388 (grub_efi_bios_device_path_t): New type.
50389 (struct grub_efi_disk_io): New structure.
50390 (grub_efi_disk_io_t): New type.
50391 (struct grub_efi_block_io_media): New structure.
50392 (grub_efi_block_io_media_t): New type.
50393 (struct grub_efi_block_io): New structure.
50394 (grub_efi_block_io_t): New type.
50395
50396 * include/grub/misc.h (grub_stop): Removed.
50397 (grub_exit): New prototype.
50398 (grub_abort): Likewise.
50399
50400 * include/grub/disk.h (enum grub_disk_dev_id): Added
50401 GRUB_DISK_DEVICE_EFIDISK_ID.
50402
50403 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50404 disk/efi/efidisk.c.
50405 (kernel_syms.lst): Remove the target if an error occurs.
50406
49986a9f 504072006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50408
50409 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50410 as it was simply too buggy.
50411
970d3b8a 504122006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50413
50414 * kern/misc.c (grub_lltoa): New function.
50415 (grub_vsprintf): Added support for the long long suffix,
50416 i.e. "ll".
50417
ff04ec24 504182006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50419
50420 * Makefile.in (LDFLAGS): Add variable.
50421 (LD): Remove variable.
50422 * configure.ac: Add -m32 to LDFLAGS.
50423 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50424 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50425 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50426 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50427 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50428 variables.
50429 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50430 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50431 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50432
37e5e1a4 504332006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50434
50435 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50436 length for unknown glyph.
50437
c352d8dd 504382006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50439
2eab1c0d 50440 Add support for pre-loaded modules into the EFI port.
f19dbdb7 50441
2eab1c0d 50442 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50443 completely. Accept one more argument DIR. The caller has changed.
50444
50445 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50446
50447 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50448 (grub_efi_loaded_image_guid): New variable.
50449 (grub_efi_get_loaded_image): New function.
50450 (grub_arch_modules_addr): Likewise.
50451
50452 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50453 prototype.
50454
50455 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50456 (struct grub_efi_loaded_image): New structure.
50457 (grub_efi_loaded_image_t): New type.
50458
504592006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 50460
c352d8dd 50461 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50462 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50463 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50464
6d01d6b4 504652006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50466
50467 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50468
976a4ea0 504692006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50470
50471 * DISTLIST: Added include/grub/efi/console.h,
50472 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50473 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50474
50475 * include/grub/efi/console.h: New file.
50476 * include/grub/efi/time.h: Likewise.
50477 * include/grub/i386/efi/kernel.h: Likewise.
50478 * kern/efi/init.c: Likewise.
50479 * kern/efi/mm.c: Likewise.
50480 * term/efi/console.c: Likewise.
f19dbdb7 50481
976a4ea0 50482 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50483 (grub_stop): Removed.
50484 (grub_get_rtc): Likewise.
50485 (grub_machine_init): Simply call grub_efi_init.
50486 (grub_machine_fini): Call grub_efi_fini.
50487
50488 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50489 (grub_efi_output_string): Removed.
50490 (grub_efi_stall): New function.
50491 (grub_stop): Likewise.
50492 (grub_get_rtc): Likewise.
50493
50494 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50495 (grub_efi_stall): New prototype.
50496 (grub_efi_allocate_pages): Likewise.
50497 (grub_efi_free_pages): Likewise.
50498 (grub_efi_get_memory_map): Likewise.
50499 (grub_efi_mm_init): Likewise.
50500 (grub_efi_mm_fini): Likewise.
50501 (grub_efi_init): Likewise.
50502 (grub_efi_fini): Likewise.
50503
50504 * include/grub/i386/efi/time.h: Do not include
50505 grub/symbol.h. Include grub/efi/time.h.
50506 (GRUB_TICKS_PER_SECOND): Removed.
50507 (grub_get_rtc): Likewise.
50508
50509 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50510 Added padding. The EFI spec is buggy.
50511 (GRUB_EFI_BLACK): New macro.
50512 (GRUB_EFI_BLUE): Likewise.
50513 (GRUB_EFI_GREEN): Likewise.
50514 (GRUB_EFI_CYAN): Likewise.
50515 (GRUB_EFI_RED): Likewise.
50516 (GRUB_EFI_MAGENTA): Likewise.
50517 (GRUB_EFI_BROWN): Likewise.
50518 (GRUB_EFI_LIGHTGRAY): Likewise.
50519 (GRUB_EFI_BRIGHT): Likewise.
50520 (GRUB_EFI_DARKGRAY): Likewise.
50521 (GRUB_EFI_LIGHTBLUE): Likewise.
50522 (GRUB_EFI_LIGHTGREEN): Likewise.
50523 (GRUB_EFI_LIGHTCYAN): Likewise.
50524 (GRUB_EFI_LIGHTRED): Likewise.
50525 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50526 (GRUB_EFI_YELLOW): Likewise.
50527 (GRUB_EFI_WHITE): Likewise.
50528 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50529 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50530 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50531 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50532 (GRUB_EFI_BACKGROUND_RED): Likewise.
50533 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50534 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50535 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50536 (GRUB_EFI_TEXT_ATTR): Likewise.
50537
50538 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50539 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50540 (kernel_mod_HEADERS): Added efi/time.h.
50541
83709125 505422006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50543
50544 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50545 include/grub/efi/api.h, include/grub/efi/console_control.h,
50546 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50547 include/grub/i386/efi/time.h, kern/efi/efi.c,
50548 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50549 and util/i386/efi/grub-mkimage.c.
50550
50551 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50552
50553 * genmk.rb (PModule#rule): Do not export symbols if
50554 #{prefix}_EXPORTS is set to "no".
50555
50556 * conf/i386-efi.mk: New file.
50557 * conf/i386-efi.rmk: Likewise.
50558 * include/grub/efi/api.h: Likewise.
50559 * include/grub/efi/console_control.h: Likewise.
50560 * include/grub/efi/efi.h: Likewise.
50561 * include/grub/efi/pe32.h: Likewise.
50562 * include/grub/i386/efi/time.h: Likewise.
50563 * kern/efi/efi.c: Likewise.
50564 * kern/i386/efi/init.c: Likewise.
50565 * kern/i386/efi/startup.S: Likewise.
50566 * util/i386/efi/grub-mkimage.c: Likewise.
50567
505682006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 50569
50570 * include/grub/script.h: Include <grub/parser.h> and
50571 "grub_script.tab.h".
50572 (struct grub_lexer_param): New struct.
50573 (struct grub_parser_param): Likewise.
50574 (grub_script_create_arglist): Pass the state in an argument.
50575 (grub_script_add_arglist): Likewise.
50576 (grub_script_create_cmdline): Likewise.
50577 (grub_script_create_cmdblock): Likewise.
50578 (grub_script_create_cmdif): Likewise.
50579 (grub_script_create_cmdmenu): Likewise.
50580 (grub_script_add_cmd): Likewise.
50581 (grub_script_arg_add): Likewise.
50582 (grub_script_lexer_ref): Likewise.
50583 (grub_script_lexer_deref): Likewise.
50584 (grub_script_lexer_record_start): Likewise.
50585 (grub_script_lexer_record_stop): Likewise.
50586 (grub_script_mem_record): Likewise.
50587 (grub_script_mem_record_stop): Likewise.
50588 (grub_script_malloc): Likewise.
50589 (grub_script_yylex): Likewise.
50590 (grub_script_yyparse): Likewise.
50591 (grub_script_yyerror): Likewise.
50592 (grub_script_yylex): Likewise.
50593 (grub_script_lexer_init): Return the state.
50594
50595 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50596 (grub_script_lexer_done): Likewise.
50597 (grub_script_lexer_getline): Likewise.
50598 (grub_script_lexer_refs): Likewise.
50599 (script): Likewise.
50600 (newscript): Likewise.
50601 (record): Likewise.
50602 (recording): Likewise.
50603 (recordpos): Likewise.
50604 (recordlen): Likewise.
50605 (grub_script_lexer_init): Return the state instead of setting
50606 global variables.
50607 (grub_script_lexer_ref): Use the newly added argument for state
50608 instead of globals.
50609 (grub_script_lexer_deref): Likewise.
50610 (grub_script_lexer_record_start): Likewise.
50611 (grub_script_lexer_record_stop): Likewise.
50612 (recordchar): Likewise.
50613 (nextchar): Likewise.
50614 (grub_script_yylex2): Likewise.
50615 (grub_script_yylex): Likewise.
50616 (grub_script_yyerror): Likewise.
50617
50618 * normal/parser.y (func_mem): Removed variable.
50619 (menu_entry): Likewise.
50620 (err): Likewise.
50621 (%lex-param): New parser option.
50622 (%parse-param): Likewise.
50623 (script): Always return the AST.
50624 (argument): Pass the state around.
50625 (arguments): Likewise.
50626 (grubcmd): Likewise.
50627 (commands): Likewise.
50628 (function): Likewise.
50629 (menuentry): Likewise.
50630 (if_statement): Likewise.
50631 (if): Likewise.
50632
50633 * normal/script.c (grub_script_memused): Removed variable.
50634 (grub_script_parsed): Likewise.
50635 (grub_script_malloc): Added a state argument. Use that instead of
50636 global variables.
50637 (grub_script_mem_record): Likewise.
50638 (grub_script_mem_record_stop): Likewise.
50639 (grub_script_arg_add): Likewise.
50640 (grub_script_add_arglist): Likewise.
50641 (grub_script_create_cmdline): Likewise.
50642 (grub_script_create_cmdif): Likewise.
50643 (grub_script_create_cmdmenu): Likewise.
50644 (grub_script_add_cmd): Likewise.
50645 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 50646
e2a8c904 506472006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 50648
50649 * normal/command.c (grub_command_init): Remove the title command.
50650
50651 * normal/lexer.c (grub_script_yylex): Renamed from this...
50652 (grub_script_yylex2): ... to this.
50653 (grub_script_yylex): New function. Temporary
50654 introduced to filter some tokens.
50655 (grub_script_yyerror): Print a newline.
50656
50657 * normal/main.c (read_config_file): Output information about the
50658 lines that contain errors. Wait for a key after all lines have
50659 been processed. Don't return an empty menu.
50660
50661 * normal/parser.y (func_mem): Don't initialize.
50662 (menu_entry): Likewise.
50663 (err): New variable.
50664 (script): Don't return anything when an error was encountered.
50665 (ws, returns): Removed rules.
50666 (argument): Disabled concatenated variable support.
50667 (arguments): Remove explicit separators.
50668 (grubcmd): Likewise.
50669 (function): Likewise.
50670 (menuentry): Likewise.
50671 (if): Likewise.
50672 (commands): Likewise. Add error handling.
50673
50674 * normal/script.c (grub_script_create_cmdline): If
50675 `grub_script_parsed' is 0, assume the parser encountered an error.
50676
c9a86192 506772006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50678
50679 * configure.ac: Add support for EFI. Fix the typo
50680 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50681
70f3b243 506822006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50683
50684 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50685 foreign multibyte characters should be shown correctly.
50686
65f201ad 506872006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50688
50689 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50690 calculation.
50691 (read_config_file): Made it to close file before returning.
50692
b4b93674 506932006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50694
50695 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50696 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50697 video/i386/pc/vbefill.c.
50698
50699 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50700 video/i386/pc/vbefill.c.
50701
50702 * include/grub/video.h (grub_video_blit_format): New enum.
50703 (grub_video_mode_info): Added new member blit_format.
50704 (grub_video_get_blit_format): New function prototype.
50705
50706 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50707 function prototype.
50708 (grub_video_vbe_map_rgb): Likewise.
50709 (grub_video_vbe_unmap_color): Likewise.
50710
50711 * include/grub/i386/pc/vbeblit.h: New file.
50712
50713 * include/grub/i386/pc/vbefill.h: New file.
50714
50715 * video/video.c (grub_video_get_blit_format): New function.
50716 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50717 (grub_video_vbe_map_rgb): Likewise.
50718 (grub_video_vbe_unmap_color): Likewise.
50719
50720 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50721 optimized fills.
50722 (grub_video_vbe_blit_render_target): Changed to use more optimized
50723 blits.
50724 (grub_video_vbe_setup): Added detection for optimized settings.
50725 (grub_video_vbe_create_render_target): Likewise.
50726
50727 * video/i386/pc/vbeblit.c: New file.
50728
50729 * video/i386/pc/vbefill.c: New file.
50730
c2379b9c 507312006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50732
50733 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50734 here...
50735
50736 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50737 parsing to support both hex and dec ranges. If filename was missing
50738 show usage information.
50739
bd0d7896 507402006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50741
50742 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50743 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50744
50745 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50746 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50747 (video_mod_SOURCES): Added.
50748 (video_mod_CFLAGS): Likewise.
50749 (video_mod_LDFLAGS): Likewise.
50750 (gfxterm_mod_SOURCES): Likewise.
50751 (gfxterm_mod_CFLAGS): Likewise.
50752 (gfxterm_mod_LDFLAGS): Likewise.
50753 (videotest_mod_SOURCES): Likewise.
50754 (videotest_mod_CFLAGS): Likewise.
50755 (videotest_mod_LDFLAGS): Likewise.
50756 (vesafb_mod_SOURCES): Removed.
50757 (vesafb_mod_CFLAGS): Likewise.
50758 (vesafb_mod_LDFLAGS): Likewise.
50759 (vga_mod_SOURCES): Likewise.
50760 (vga_mod_CFLAGS): Likewise.
50761 (vga_mod_LDFLAGS): Likewise.
50762
50763 * commands/videotest.c: New file.
50764
50765 * font/manager.c (fill_with_default_glyph): Modified to use
50766 grub_font_glyph.
50767 (grub_font_get_glyph): Likewise.
50768 (fontmanager): Renamed from this...
50769 (font_manager): ... to this.
50770
50771 * include/grub/font.h (grub_font_glyph): Added new structure.
50772 (grub_font_get_glyph): Modified to use grub_font_glyph.
50773
50774 * include/grub/misc.h (grub_abs): Added as inline function.
50775
50776 * include/grub/video.h: New file.
50777
50778 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50779 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50780 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50781 (grub_vbe_get_controller_info): Renamed from this...
50782 (grub_vbe_bios_get_controller_info): ... to this.
50783 (grub_vbe_get_mode_info): Renamed from this...
50784 (grub_vbe_bios_get_mode_info): ... to this.
50785 (grub_vbe_set_mode): Renamed from this...
50786 (grub_vbe_bios_set_mode): ... to this.
50787 (grub_vbe_get_mode): Renamed from this...
50788 (grub_vbe_bios_get_mode): ... to this.
50789 (grub_vbe_set_memory_window): Renamed from this...
50790 (grub_vbe_bios_set_memory_window): ... to this.
50791 (grub_vbe_get_memory_window): Renamed from this...
50792 (grub_vbe_bios_get_memory_window): ... to this.
50793 (grub_vbe_set_scanline_length): Renamed from this...
50794 (grub_vbe_set_scanline_length): ... to this.
50795 (grub_vbe_get_scanline_length): Renamed from this...
50796 (grub_vbe_bios_get_scanline_length): ... to this.
50797 (grub_vbe_set_display_start): Renamed from this...
50798 (grub_vbe_bios_set_display_start): ... to this.
50799 (grub_vbe_get_display_start): Renamed from this...
50800 (grub_vbe_bios_get_display_start): ... to this.
50801 (grub_vbe_set_palette_data): Renamed from this...
50802 (grub_vbe_bios_set_palette_data): ... to this.
50803 (grub_vbe_set_pixel_rgb): Removed.
50804 (grub_vbe_set_pixel_index): Likewise.
50805
50806 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50807 from this...
50808 (grub_vbe_bios_get_controller_info): ... to this.
50809 (grub_vbe_get_mode_info): Renamed from this...
50810 (grub_vbe_bios_get_mode_info): ... to this.
50811 (grub_vbe_set_mode): Renamed from this...
50812 (grub_vbe_bios_set_mode): ... to this.
50813 (grub_vbe_get_mode): Renamed from this...
50814 (grub_vbe_bios_get_mode): ... to this.
50815 (grub_vbe_set_memory_window): Renamed from this...
50816 (grub_vbe_bios_set_memory_window): ... to this.
50817 (grub_vbe_get_memory_window): Renamed from this...
50818 (grub_vbe_bios_get_memory_window): ... to this.
50819 (grub_vbe_set_scanline_length): Renamed from this...
50820 (grub_vbe_set_scanline_length): ... to this.
50821 (grub_vbe_get_scanline_length): Renamed from this...
50822 (grub_vbe_bios_get_scanline_length): ... to this.
50823 (grub_vbe_set_display_start): Renamed from this...
50824 (grub_vbe_bios_set_display_start): ... to this.
50825 (grub_vbe_get_display_start): Renamed from this...
50826 (grub_vbe_bios_get_display_start): ... to this.
50827 (grub_vbe_set_palette_data): Renamed from this...
50828 (grub_vbe_bios_set_palette_data): ... to this.
50829 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50830 getting corrupted after calling it. Added more pushes and pops.
50831 (grub_vbe_bios_set_mode): Likewise.
50832 (grub_vbe_bios_get_mode): Likewise.
50833 (grub_vbe_bios_get_memory_window): Likewise.
50834 (grub_vbe_bios_set_scanline_length): Likewise.
50835 (grub_vbe_bios_get_scanline_length): Likewise.
50836 (grub_vbe_bios_get_display_start): Likewise.
50837 (grub_vbe_bios_set_palette_data): Likewise.
50838
50839 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50840 (cl_insert): Likewise.
50841 (cl_delete): Likewise.
50842
50843 * term/gfxterm.c: New file.
50844
50845 * term/i386/pc/vesafb.c: Removed file.
50846
50847 * video/video.c: New file.
50848
50849 * video/i386/pc/vbe.c (real2pm): Added new function.
50850 (grub_video_vbe_draw_pixel): Likewise.
50851 (grub_video_vbe_get_video_ptr): Likewise.
50852 (grub_video_vbe_get_pixel): Likewise
50853 (grub_video_vbe_init): Likewise.
50854 (grub_video_vbe_fini): Likewise.
50855 (grub_video_vbe_setup): Likewise.
50856 (grub_video_vbe_get_info): Likewise.
50857 (grub_video_vbe_set_palette): Likewise.
50858 (grub_video_vbe_get_palette): Likewise.
50859 (grub_video_vbe_set_viewport): Likewise.
50860 (grub_video_vbe_get_viewport): Likewise.
50861 (grub_video_vbe_map_color): Likewise.
50862 (grub_video_vbe_map_rgb): Likewise.
50863 (grub_video_vbe_map_rgba): Likewise.
50864 (grub_video_vbe_unmap_color): Likewise.
50865 (grub_video_vbe_fill_rect): Likewise.
50866 (grub_video_vbe_blit_glyph): Likewise.
50867 (grub_video_vbe_blit_bitmap): Likewise.
50868 (grub_video_vbe_blit_render_target): Likewise.
50869 (grub_video_vbe_scroll): Likewise.
50870 (grub_video_vbe_swap_buffers): Likewise.
50871 (grub_video_vbe_create_render_target): Likewise.
50872 (grub_video_vbe_delete_render_target): Likewise.
50873 (grub_video_vbe_set_active_render_target): Likewise.
50874 (grub_vbe_set_pixel_rgb): Remove function.
50875 (grub_vbe_set_pixel_index): Likewise.
50876 (index_color_mode): Remove static variable.
50877 (active_mode): Likewise.
50878 (framebuffer): Likewise.
50879 (bytes_per_scan_line): Likewise.
50880 (grub_video_vbe_adapter): Added new static variable.
50881 (framebuffer): Likewise.
50882 (render_target): Likewise.
50883 (initial_mode): Likewise.
50884 (mode_in_use): Likewise.
50885 (mode_list): Likewise.
50886
5f97350b 508872006-03-10 Marco Gerards <marco@gnu.org>
50888
50889 * configure.ac (AC_INIT): Bumped to 1.93.
50890
50891 * DISTLIST: Added `include/grub/hfs.h'.
50892
a3c5c6f8 508932006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50894
50895 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50896 18H, which might help the BIOS falling back to next boot media.
50897
6de53d26 508982006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50899
50900 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50901 Poe Chen <poe.poechen@gmail.com>.
50902
77c4a393 509032006-01-17 Marco Gerards <marco@gnu.org>
50904
50905 * include/grub/normal.h: Include <grub/script.h>.
50906 (grub_command_list): Removed struct.
50907 (grub_command_list_t): Removed type.
50908 (grub_menu_entry): Remove members `num' and `command_list'. Add
50909 members `commands' and `sourcecode'.
50910 * include/grub/script.h: Add inclusion guards.
50911 (grub_script_cmd_menuentry): New struct.
50912 (grub_script_execute_menuentry): New prototype.
50913 (grub_script_lexer_record_start): Likewise.
50914 (grub_script_lexer_record_stop): Likewise.
50915 * normal/execute.c (grub_script_execute_menuentry): New function.
50916 * normal/lexer.c (record, recording, recordpos, recordlen): New
50917 variables.
50918 (grub_script_lexer_record_start): New function.
50919 (grub_script_lexer_record_stop): Likewise.
50920 (recordchar): Likewise.
50921 (nextchar): Likewise.
50922 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50923 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50924 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50925 (current_menu): New variable.
50926 (free_menu): Mainly rewritten.
50927 (grub_normal_menu_addentry): New function.
50928 (read_config_file): Rewritten.
50929 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 50930 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 50931 the menu entry.
50932 (run): Mainly rewritten.
50933 * normal/parser.y (menu_entry): New variable.
50934 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50935 (menuentry): New rule.
50936 (command): Add `menuentry'.
50937 (if_statement): Allow additional returns before `fi'.
50938 * normal/script.c (grub_script_create_cmdmenu): New function.
50939
144f1f98 509402006-01-03 Marco Gerards <marco@gnu.org>
50941
50942 * INSTALL: GNU Bison is required.
50943 * configure.ac: Rewritten the test to detect Bison.
50944 * Makefile.in (YACC): New variable. Reported by Xun Sun
50945 <xun.sun.cn@gmail.com>.
50946
af4b2d89 509472006-01-03 Marco Gerards <marco@gnu.org>
50948
50949 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50950 the HFS+ filesystem to filesystem blocks.
50951 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50952 GCC warning is silenced.
50953
15643b71 509542006-01-03 Marco Gerards <marco@gnu.org>
50955
50956 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50957 read from disk from big endian to host byte order.
50958
00905879 509592006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50960
50961 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50962 documentation.
50963 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50964 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50965 embedded HFS+ filesystem.
50966 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50967 (grub_hfs_sblock): Move from here...
50968 * include/grub/hfs.h: To here... New file.
50969 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50970 documentation.
50971 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50972 New macros.
50973 (grub_hfsplus_volheader): Change type of member `magic' to
50974 `grub_uint16_t'.
50975 (grub_hfsplus_data): Add new member `embedded_offset'.
50976 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50977 returned block.
50978 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50979 Calculate the offset.
50980
8899bc3e 509812005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50982
50983 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50984 Removed.
50985 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50986
ae8c0277 509872005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50988
50989 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50990 ENV->NAME is NULL after allocating ENV->VALUE.
50991
07084456 509922005-12-25 Marco Gerards <marco@gnu.org>
50993
50994 * kern/env.c (grub_env_set): Rewritten the error handling code.
50995
4750f5f1 509962005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50997
50998 * geninit.sh: Made more robust, and more portable.
50999
50214199 510002005-12-25 Marco Gerards <marco@gnu.org>
51001
51002 Add support for Apple HFS+ filesystems.
f19dbdb7 51003
50214199 51004 * fs/hfsplus.c: New file.
51005
51006 * DISTLIST: Added `fs/hfsplus.c'.
51007
51008 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51009 (hfsplus_mod_SOURCES): New variable.
51010 (hfsplus_mod_CFLAGS): Likewise.
51011 (hfsplus_mod_LDFLAGS): Likewise.
51012 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51013 (grub_setup_SOURCES): Likewise.
51014 (grub_mkdevicemap_SOURCES): Likewise.
51015 (grub_emu_SOURCES): Likewise.
51016 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51017
51018 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51019
51020 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51021
befaed6c 510222005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51023
51024 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51025 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51026 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51027 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51028 normal/lexer.c, normal/parser.y, normal/script.c, and
51029 partmap/gpt.c.
51030 Removed kern/sparc64/cache.c.
51031
51032 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51033 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51034 grub_emu_init.c.
51035
51036 * configure.ac (AC_INIT): Bumped to 1.92.
51037
6a124103 510382005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51039
51040 * kern/err.c (grub_error_push): Added new function to support error
51041 stacks.
51042 (grub_error_pop): Likewise.
51043 (grub_error_stack_items): New local variable to support error stacks.
51044 (grub_error_stack_pos): Likewise.
51045 (grub_error_stack_assert): Likewise.
51046 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51047 stack depth.
51048 (grub_print_error): Added support to print errors from error stack.
51049
51050 * include/grub/err.h (grub_error_push): Added function prototype.
51051 (grub_error_pop): Likewise.
51052
be973c1b 510532005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51054
51055 * configure.ac: Accept `powerpc64' as host_cpu.
51056 (amd64): Rename to `biarch32'.
51057
51058 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51059 non-cacheline-aligned addresses.
51060
51061 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51062 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51063 if `size' is non-zero.
51064
b04216ab 510652005-12-03 Marco Gerards <mgerards@xs4all.nl>
51066
51067 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51068 and `cd' to make sure the filename is not prefixed with a
51069 directory name.
51070 (pkgdata_MODULES): Add `gpt.mod'.
51071 (gpt_mod_SOURCES): New variable.
51072 (gpt_mod_CFLAGS): Likewise.
51073 (gpt_mod_LDFLAGS): Likewise.
51074
51075 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51076
51077 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51078 New macro.
51079
51080 * partmap/gpt.c: New file.
51081
51082 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51083 GPT partition map is detected.
51084
41730ed9 510852005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51086
51087 * commands/i386/pc/play.c: New file.
51088 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51089 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51090 macros.
f19dbdb7 51091
95dc3643 510922005-11-27 Marco Gerards <mgerards@xs4all.nl>
51093
51094 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51095 ((unused))' to silence gcc warning.
51096
1569ec51 510972005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51098
51099 * configure.ac: Correct `AC_PROG_YACC' test.
51100
9abde152 511012005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51102
51103 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51104 check before installing files.
51105
44b83271 511062005-11-22 Mike Small <smallm@panix.com>
51107
51108 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51109 number regex so multidigit numbers are recognized correctly.
51110
511112005-11-22 Mike Small <smallm@panix.com>
51112
51113 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51114 debugging message before attempting to claim memory.
51115 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51116 multiple addresses in case of failure.
51117
9c12956b 511182005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51119
51120 * term/tparm.c (get_space): Remove empty `if' statement.
51121
51122 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51123
51124 * kern/parser.c (check_varstate): Rename `state' to 's'.
51125
aeaf81d9 511262005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51127
51128 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51129 variable definitions to the beginning of each function. Sort stack
51130 variables by size.
51131 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51132 `buf' argument to `char *'.
51133
79bbb63f 511342005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51135
51136 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51137 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 51138 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 51139 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51140 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51141 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51142 configfile.mod, search.mod, gzio.mod and test.mod.
51143 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51144 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51145 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51146 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51147 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51148 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51149 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51150 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51151 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51152 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51153 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51154 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51155 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51156 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51157 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51158 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51159 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51160 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51161 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51162 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51163 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51164 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51165 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51166
51167 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51168 `grep --include'.
51169 (pkgdata_MODULES): Add test.mod.
51170
233b1628 511712005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51172
51173 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51174 appending to variables with "+=".
51175 (PModule): Use full pathname to generate *.lst filenames.
51176
51177 * Makefile.in: Fixed list rules moved from genmk.rb.
51178 (.DELETE_ON_ERROR): New special target.
51179 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51180
51181 * conf/i386-pc.rmk: Include conf/common.mk.
51182 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 51183 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 51184 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51185 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51186 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51187 configfile.mod, search.mod, gzio.mod and test.mod.
51188 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51189 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51190 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51191 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51192 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51193 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51194 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51195 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51196 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51197 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51198 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51199 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51200 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51201 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51202 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51203 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51204 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51205 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51206 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51207 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51208 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51209 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51210 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51211 here...
51212 * conf/common.rmk: ... to here. New file.
51213
51214 * conf/common.mk: New file.
51215
16f820c8 512162005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51217
51218 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51219 (grub_script.tab.c): ... here.
51220
51221 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51222 (grub_script.tab.c): ... here.
51223
51224 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51225 (grub_script.tab.c): ... here.
51226
51227 * normal/command.c (grub_command_find): Fixed a memory leak of
51228 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51229
63ba1554 512302005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51231
51232 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51233 "@" which marks the start of a comment on ARM.
51234 (VARIABLE): Likewise.
51235
7f67dc13 512362005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51237
79bbb63f 51238 Add support for Linux/ADFS partition tables.
7f67dc13 51239
51240 * partmap/acorn.c: New file.
51241
51242 * include/grub/acorn_filecore.h: Likewise.
51243
51244 * DISTLIST: Added `partmap/acorn.c' and
51245 `include/grub/acorn_filecore.h'.
f19dbdb7 51246
7f67dc13 51247 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51248 `partmap/acorn.c'.
51249 (pkgdata_MODULES): Add `acorn.mod'.
51250 (acorn_mod_SOURCES): New variable.
51251 (acorn_mod_CFLAGS): Likewise.
51252
51253 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51254 `partmap/acorn.c'.
51255 (pkgdata_MODULES): Add `acorn.mod'.
51256 (acorn_mod_SOURCES): New variable.
51257 (acorn_mod_CFLAGS): Likewise.
51258
51259 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51260 (pkgdata_MODULES): Add `acorn.mod'.
51261 (acorn_mod_SOURCES): New variable.
51262 (acorn_mod_CFLAGS): Likewise.
51263 (acorn_mod_LDFLAGS): Likewise.
51264
51265 * include/types.h (grub_disk_addr_t): New typedef.
51266
6d099807 512672005-11-13 Marco Gerards <mgerards@xs4all.nl>
51268
51269 * geninit.sh: New file.
51270
51271 * geninitheader.sh: Likewise.
51272
51273 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51274 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51275 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51276 * commands/configfile.c (grub_configfile_init)
51277 (grub_configfile_fini): Likewise.
51278 * commands/default.c (grub_default_init, grub_default_fini):
51279 Likewise.
51280 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51281 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51282 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51283 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51284 Likewise.
51285 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51286 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51287 Likewise.
51288 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 51289 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 51290 Likewise.
51291 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51292 Likewise.
fe6b695a 51293 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 51294 Likewise.
51295 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51296 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51297 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51298 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51299 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51300 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51301 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51302 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51303 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51304 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51305 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51306 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51307 * partmap/amiga.c (grub_amiga_partition_map_init)
51308 (grub_amiga_partition_map_fini): Likewise.
51309 * partmap/apple.c (grub_apple_partition_map_init)
51310 (grub_apple_partition_map_fini): Likewise.
51311 * partmap/pc.c (grub_pc_partition_map_init)
51312 (grub_pc_partition_map_fini): Likewise.
51313 * partmap/sun.c (grub_sun_partition_map_init,
51314 grub_sun_partition_map_fini): Likewise.
51315 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51316 Likewise.
51317
51318 * util/grub-emu.c: Include <grub_modules_init.h>.
51319 (main): Don't initialize and de-initialize any modules directly,
51320 use `grub_init_all' and `grub_fini_all' instead.
51321
51322 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51323 `grub_vesafb_mod_init'.
51324 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51325 all users.
51326 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51327 `grub_vga_mod_init'. Updated all users.
51328 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 51329
6d099807 51330 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51331 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51332 rules.
51333
51334 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51335 Generate a function to initialize the module in utilities.
51336 Updated all callers.
51337 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51338 initialize the module in utilities. Updated all callers.
51339
9046bcf0 513402005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51341
51342 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51343 escape sequence and a literal ^L to clear the screen.
51344
51345 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51346 when returning from Open Firmware.
51347
d13ea639 513482005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51349
51350 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51351 (grub_ofconsole_height): Likewise.
51352 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51353 manually insert a '\n'.
51354 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51355 `grub_ofconsole_height'. Return early if these are already set.
51356
a8fcf206 513572005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51358
51359 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51360 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51361 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51362 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51363 and `normal/script.c'.
51364 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51365 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51366 (test_mod_SOURCES): New variable.
51367 (test_mod_CFLAGS): Likewise.
51368 (test_mod_LDFLAGS): Likewise.
51369 (pkgdata_MODULES): Add `test.mod'.
51370 (grub_script.tab.c): New rule.
51371 (grub_script.tab.h): Likewise.
51372
b6b32745 513732005-11-07 Marco Gerards <mgerards@xs4all.nl>
51374
51375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51376 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51377 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51378 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51379 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51380 (test_mod_SOURCES): New variable.
51381 (test_mod_CFLAGS): Likewise.
51382 (pkgdata_MODULES): Add `test.mod'.
51383 (grub_script.tab.c): New rule.
51384 (grub_script.tab.h): Likewise.
51385
daac212a 513862005-11-06 Marco Gerards <mgerards@xs4all.nl>
51387
51388 Add initial scripting support.
51389
51390 * commands/test.c: New file.
51391 * include/grub/script.h: Likewise.
51392 * normal/execute.c: Likewise.
51393 * normal/function.c: Likewise.
51394 * normal/lexer.c: Likewise.
51395 * normal/parser.y: Likewise.
51396 * normal/script.c: Likewise.
51397
51398 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 51399
daac212a 51400 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51401 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51402 `normal/function.c' and `normal/script.c'.
51403 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51404 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 51405 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51406 variables.
daac212a 51407 (pkgdata_MODULES): Add `test.mod'.
51408 (grub_script.tab.c): New rule.
51409 (grub_script.tab.h): Likewise.
51410
51411 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51412
51413 * include/grub/normal.h (grub_test_init): New prototype.
51414 (grub_test_fini): Likewise.
f19dbdb7 51415
daac212a 51416 * normal/command.c: Include <grub/script.h>.
51417 (grub_command_execute): Rewritten.
f19dbdb7 51418
daac212a 51419 * util/grub-emu.c (main): Call `grub_test_init' and
51420 `grub_test_fini'.
51421
77500b2b 514222005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51423
51424 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51425 to 0.
51426 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51427 there are no pending characters.
51428
e45deb9e 514292005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51430
51431 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51432 `grub_strndup' to drop device arguments. Replace unnecessary
51433 `grub_strndup' with `grub_strdup'.
51434
4ce32619 514352005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51436
51437 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51438 `debug' environment variable has been set.
51439
514402005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 51441
4ce32619 51442 * Makefile.in (install-local): Use $(DATA).
51443 (uninstall): Likewise.
51444 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51445 (sbin_UTILITIES): ... to here.
51446 (sbin_SCRIPTS): New variable.
51447 (grub_install_SOURCES): New variable.
51448 * util/powerpc/ieee1275/grub-install.in: New file.
51449 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51450 variable.
51451 (add_segments): Call `grub_util_get_path'.
51452
25fe6f03 514532005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51454
51455 From Timothy Baldwin:
51456 * commands/ls.c (grub_ls_list_files): Close FILE with
51457 grub_file_close.
51458 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51459
04ccf3ec 514602005-10-24 Marco Gerards <mgerards@xs4all.nl>
51461
51462 * include/grub/parser.h: New file.
51463
51464 * kern/parser.c: Likewise.
51465
51466 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51467 (grub_setup_SOURCES): Likewise.
51468 (grub_probefs_SOURCES): Likewise.
51469 (grub_emu_SOURCES): Likewise.
51470 (kernel_img_HEADERS): Add `parser.h'.
51471
51472 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51473 (grub_emu_SOURCES): Add `kern/parser.c'.
51474 (grubof_SOURCES): Likewise.
51475
51476 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51477 (grubof_SOURCES): Add `kern/parser.c'.
51478
51479 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51480
51481 * kern/misc.c (grub_split_cmdline): Removed function.
51482
51483 * kern/rescue.c: Include <grub/parser.h>.
51484 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51485 of `grub_split_cmdline'.
51486
51487 * normal/command.c: Include <grub/parser.h>.
51488 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51489 of `grub_split_cmdline'.
51490
51491 * normal/completion.c: Include <grub/parser.h>.
51492 (cmdline_state): New variable.
51493 (iterate_dir): End the filename with a quote depending on the
51494 command line state.
51495 (get_state): new function.
51496 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51497 split the arguments and determine the current argument. When the
51498 argument string is not quoted, escape all spaces.
51499
6d8f4b0e 515002005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51501
51502 * normal/sparc64/setjmp.S: New file.
51503
15cf03ed 515042005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51505
51506 * include/grub/sparc64/libgcc.h: New file.
51507 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51508 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51509 normal/sparc64/setjmp.c.
51510
03e8661a 515112005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51512
51513 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51514 * kern/sparc64/cache.S: New file.
51515 * kern/sparc64/cache.c: Removed.
51516 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51517 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51518 -mtune=ultrasparc.
51519 (COMMON_LDFLAGS): Add -melf64_sparc.
51520 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51521 (grubof_SOURCES): Use cache.S instead of cache.c.
51522 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51523 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51524 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51525 commented though.
51526 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51527 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51528 (linux_mod_CFLAGS): Commented out.
51529 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51530 out because module isn't built.
51531 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51532 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51533 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51534 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51535 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51536 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51537 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51538 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51539 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51540 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51541 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51542 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51543 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51544 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51545
34eeec8a 515462005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51547
51548 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51549 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51550 longer, because HFS should not be used on PC.
51551
708367a3 515522005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51553
51554 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51555 consistently within the loop.
51556
6fa1251a 515572005-10-15 Marco Gerards <mgerards@xs4all.nl>
51558
51559 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51560 directory can not be read.
51561
4801580b 515622005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51563
51564 * configure.ac (AC_INIT): Increase the version number to 1.91.
51565
51566 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51567 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51568 term/i386/pc/serial.c.
51569
219ad426 515702005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51571
51572 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51573 file size must be permitted.
51574
51575 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51576 between %ah and %al.
51577
688e5699 515782005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51579
51580 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51581 grub_uint64_t.
51582 Call the hook with a NUL-terminated filename.
51583 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51584 grub_cpu_to_be32.
51585
51586 * kern/term.c (cursor_state): New variable.
51587 (grub_term_set_current): Reset the cursor state on a new
51588 terminal.
51589 (grub_setcursor): Rewritten to use CURSOR_STATE.
51590 (grub_getcursor): New function.
51591
51592 * include/grub/term.h (grub_getcursor): New prototype.
51593
51594 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51595 integers on ARM. Reported by Timothy Baldwin
51596 <T.E.Baldwin99@members.leeds.ac.uk>.
51597
bb34586c 515982005-10-11 Marco Gerards <mgerards@xs4all.nl>
51599
51600 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51601 allocated.
51602 (grub_sfs_dir): Likewise.
51603
9a909877 516042005-10-09 Marco Gerards <mgerards@xs4all.nl>
51605
51606 Add support for the SFS filesystem.
51607
51608 * fs/sfs.c: New file.
51609
51610 * DISTLIST: Added `fs/sfs.c'.
51611
51612 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51613 (grub_probefs_SOURCES): Likewise.
51614 (grub_emu_SOURCES): Likewise.
51615 (pkgdata_MODULES): Add `sfs.mod'.
51616 (sfs_mod_SOURCES): New variable.
51617 (sfs_mod_CFLAGS): Likewise.
51618 (sfs_mod_LDFLAGS): Likewise.
51619
51620 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51621 (pkgdata_MODULES): Add `sfs.mod'.
51622 (sfs_mod_SOURCES): New variable.
51623 (sfs_mod_CFLAGS): Likewise.
51624
51625 * util/grub-emu.c (main): Call `grub_sfs_init' and
51626 `grub_sfs_fini'.
51627
51628 * include/grub/fs.h (grub_sfs_init): New prototype.
51629 (grub_sfs_fini): Likewise.
51630
57bdbde3 516312005-10-07 Marco Gerards <mgerards@xs4all.nl>
51632
51633 Add support for the AFFS filesystem.
51634
51635 * fs/affs.c: New file.
51636
51637 * DISTLIST: Added `fs/affs.c'.
51638
51639 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51640 (grub_probefs_SOURCES): Likewise.
51641 (grub_emu_SOURCES): Likewise.
51642 (pkgdata_MODULES): Add `affs.mod'.
51643 (affs_mod_SOURCES): New variable.
51644 (affs_mod_CFLAGS): Likewise.
51645 (affs_mod_LDFLAGS): Likewise.
51646
51647 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51648 (pkgdata_MODULES): Add `affs.mod'.
51649 (affs_mod_SOURCES): New variable.
51650 (affs_mod_CFLAGS): Likewise.
51651
51652 * util/grub-emu.c (main): Call `grub_affs_init' and
51653 `grub_affs_fini'.
51654
51655 * include/grub/fs.h (grub_affs_init): New prototype.
51656 (grub_affs_fini): Likewise.
51657
047b67e0 516582005-10-01 Marco Gerards <mgerards@xs4all.nl>
51659
51660 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51661
59b8208a 516622005-10-01 Marco Gerards <mgerards@xs4all.nl>
51663
51664 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51665 `-m32' to CFLAGS.
51666
51667 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51668 linking.
f19dbdb7 51669
59b8208a 51670 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51671 (COMMON_LDFLAGS): New variable.
51672 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51673 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51674 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51675 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51676 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51677 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51678 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51679 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51680 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51681 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51682 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51683 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51684 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51685 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51686 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51687 variables.
51688 (normal_mod_ASFLAGS): Add `-m32'.
51689
51690 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51691 (grub_host_size_t, grub_host_ssize_t): New types.
51692 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 51693 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 51694 `GRUB_HOST_SIZEOF_VOID_P'.
51695
51696 * include/grub/kernel.h (struct grub_module_header): Type of
51697 member offset changed to `grub_host_off_t'. Type of member size
51698 changed to `grub_host_size_t'.
51699 (struct grub_module_info): Type of member offset changed to
51700 `grub_host_off_t'. Type of member size changed to
51701 `grub_host_size_t'.
51702
b4093103 517032005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51704
51705 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 51706
b4093103 51707 * kern/i386/pc/startup.S (multiboot_header): New label.
51708 (multiboot_entry): Likewise.
51709 (multiboot_trampoline): Likewise.
51710
51711 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51712 Increased to 0x4A0.
51713
51714 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51715 put parentheses after a question mark.
51716 [!GRUB_UTIL] (my_mod): New variable.
51717
51718 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51719
b2499b29 517202005-09-28 Marco Gerards <mgerards@xs4all.nl>
51721
51722 Adds support for the XFS filesystem. Btrees are not supported
51723 yet.
51724
51725 * fs/xfs.c: New file.
51726
51727 * DISTLIST: Added `fs/xfs.c'.
51728
51729 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51730 (grub_probefs_SOURCES): Likewise.
51731 (grub_emu_SOURCES): Likewise.
51732 (pkgdata_MODULES): Add `xfs.mod'.
51733 (xfs_mod_SOURCES): New variable.
51734 (xfs_mod_CFLAGS): Likewise.
51735
51736 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51737 (pkgdata_MODULES): Add `xfs.mod'.
51738 (xfs_mod_SOURCES): New variable.
51739 (xfs_mod_CFLAGS): Likewise.
51740
51741 * util/grub-emu.c (main): Call `grub_xfs_init' and
51742 `grub_xfs_fini'.
51743
51744 * include/grub/fs.h (grub_xfs_init): New prototype.
51745 (grub_xfs_fini): Likewise.
51746
f19dbdb7 51747
83d37a62 517482005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51749
51750 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51751 color modes, allow greater than 16 colors to be configured as
51752 a default palette.
51753
47d2d65e 517542005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51755
51756 * normal/completion.c (complete_arguments): Add the qualifier
51757 const into OPTIONS.
51758
51759 From Omniflux <omniflux+lists@omniflux.com>:
51760 * include/grub/terminfo.h: New file.
51761 * include/grub/tparm.h: Likewise.
51762 * include/grub/i386/pc/serial.h: Likewise.
51763 * term/terminfo.c: Likewise.
51764 * term/tparm.c: Likewise.
51765 * term/i386/pc/serial.c: Likewise.
51766 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51767 serial.mod.
51768 (terminfo_mod_SOURCES): New variable.
51769 (terminfo_mod_CFLAGS): Likewise.
51770 (serial_mod_SOURCES): Likewise.
51771 (serial_mod_CFLAGS): Likewise.
51772
48b671ff 517732005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51774
51775 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51776 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51777 and kern/powerpc/ieee1275/cmain.c, respectively.
51778
51779 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51780 * kern/powerpc/ieee1275/crt0.S: ... here.
51781
51782 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51783 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 51784
48b671ff 51785 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51786 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51787 instead of boot/powerpc/ieee1275/crt0.S and
51788 boot/powerpc/ieee1275/cmain.c, respectively.
51789
51790 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51791 sectors. It was not used anyway.
51792
09fc77a7 517932005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51794
51795 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51796 `unused parameter' warning.
51797
003789c7 517982005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51799
51800 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51801 function.
51802 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51803 getcharwidth.
51804
67f44c86 518052005-08-28 Marco Gerards <metgerards@student.han.nl>
51806
51807 * include/grub/normal.h (enum grub_completion_type): Added
51808 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51809
51810 * normal/cmdline.c (print_completion): Handle
51811 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51812 * normal/menu_entry.c (store_completion): Likewise.
51813
51814 * normal/completion.c (complete_arguments): New function.
51815 (grub_normal_do_completion): Call `complete_arguments' when the
51816 current words start with a dash.
51817
0b5abe02 518182005-08-27 Marco Gerards <metgerards@student.han.nl>
51819
51820 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51821 `gzio.mod' instead of `io.mod').
51822
d9864ee1 518232005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51824
51825 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51826 (DISTDIRS): Added io and video.
51827 Rewrite the search routine to make an output consistently.
51828
51829 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51830 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51831 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51832 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51833 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51834 util/powerpc/ieee1275/misc.c.
f19dbdb7 51835
d9864ee1 51836 * include/grub/gzio.h: New file.
51837 * io/gzio.c: Likewise.
f19dbdb7 51838
d9864ee1 51839 * kern/file.c (grub_file_close): Call grub_device_close only if
51840 FILE->DEVICE is not NULL.
51841
51842 * include/grub/mm.h [!NULL] (NULL): New macro.
51843
51844 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51845
51846 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51847 (pkgdata_MODULES): Added gzio.mod.
51848 (gzio_mod_SOURCES): New variable.
51849 (gzio_mod_CFLAGS): Likewise.
51850
51851 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51852 (pkgdata_MODULES): Added gzio.mod.
51853 (gzio_mod_SOURCES): New variable.
51854 (gzio_mod_CFLAGS): Likewise.
51855
51856 * commands/cat.c: Include grub/gzio.h.
51857 (grub_cmd_cat): Use grub_gzfile_open instead of
51858 grub_file_open.
f19dbdb7 51859
d9864ee1 51860 * commands/cmp.c: Include grub/gzio.h.
51861 (grub_cmd_cmp): Use grub_gzfile_open instead of
51862 grub_file_open.
51863
51864 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51865 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51866 grub_file_open.
51867 (grub_rescue_cmd_module): Likewise.
51868
fa46f4b5 518692005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51870
51871 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51872 kern/sparc64/ieee1275/init.c because it contains _start.
51873 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51874
e9211b5d 518752005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51876
51877 * configure.ac: Add support for sparc64 host with ieee1275
51878 firmware.
51879 * configure: Generated from configure.ac.
51880 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51881 instead of int.
51882 (grub_ofdisk_read): Likewise.
51883 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51884 pointers as (void *) to remove a warning.
51885 (grub_ofdisk_close): Likewise.
51886 (grub_ofdisk_read): Likewise.
51887 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51888 returns, so make it return void to remove a warning.
51889 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51890 Corresponding prototype change.
51891 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51892 values, and cast the pointers as (void *) to remove a warning.
51893 (grub_mm_dump): Likewise.
51894 * conf/sparc64-ieee1275.mk: New file.
51895 * conf/sparc64-ieee1275.rmk: Likewise.
51896 * include/grub/sparc64/setjmp.h: Likewise.
51897 * include/grub/sparc64/types.h: Likewise.
51898 * include/grub/sparc64/ieee1275/console.h: Likewise.
51899 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51900 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51901 * include/grub/sparc64/ieee1275/time.h: Likewise.
51902 * kern/sparc64/cache.c: Likewise.
51903 * kern/sparc64/dl.c: Likewise.
51904 * kern/sparc64/ieee1275/init.c: Likewise.
51905 * kern/sparc64/ieee1275/openfw.c: Likewise.
51906
385c6a92 519072005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51908
51909 * util/console.c (grub_ncurses_putchar): If C is greater than
51910 0x7f, set C to a question mark.
51911 (grub_ncurses_getcharwidth): New function.
51912 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51913 getcharwidth.
51914
51915 * normal/menu.c (print_entry): Made aware of Unicode. First,
51916 convert TITLE to UCS-4, and predict the cursor position by
51917 grub_getcharwidth.
51918
51919 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51920 const to SRC.
51921 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51922
16ccb8b1 519232005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51924
51925 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51926 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51927 grub_strcat.
51928
51929 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51930 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51931 grub_strcpy and grub_strlen. Take it into account that a space
51932 character is inserted as a delimiter.
51933
6a85ce79 519342005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51935
51936 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 51937 invalid magic in the error.
6a85ce79 51938
51939 * commands/search.c: New file.
f19dbdb7 51940
6a85ce79 51941 * util/grub-emu.c (main): Call grub_search_init and
51942 grub_search_fini.
51943
51944 * kern/rescue.c (grub_rescue_print_disks): Removed.
51945 (grub_rescue_print_devices): New function.
51946 (grub_rescue_cmd_ls): Use grub_device_iterate with
51947 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51948 grub_rescue_print_disks.
51949
51950 * kern/partition.c (grub_partition_iterate): Return the result of
51951 PARTMAP->ITERATE instead of GRUB_ERRNO.
51952
51953 * kern/device.c: Include grub/partition.h.
51954 (grub_device_iterate): New function.
51955
51956 * include/grub/partition.h (grub_partition_iterate): Return int
51957 instead of grub_err_t.
51958
51959 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51960 prototype.
51961 [GRUB_UTIL] (grub_search_fini): Likewise.
51962
51963 * include/grub/device.h (grub_device_iterate): New prototype.
51964
51965 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51966 commands/search.c.
51967 (pkgdata_MODULES): Added search.mod.
51968 (search_mod_SOURCES): New variable.
51969 (search_mod_CFLAGS): Likewise.
51970
51971 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51972 (pkgdata_MODULES): Added search.mod.
51973 (search_mod_SOURCES): New variable.
51974 (search_mod_CFLAGS): Likewise.
51975
51976 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51977 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51978 All callers changed.
51979
51980 * DISTLIST: Added commands/search.c.
51981
ef095434 519822005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51983
51984 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51985 conversion.
51986 (grub_getcharwidth): New function.
51987
51988 * kern/misc.c (grub_utf8_to_ucs4): New function.
51989
51990 * include/grub/term.h (struct grub_term): Added a new member
51991 "getcharwidth".
51992 (grub_getcharwidth): New prototype.
51993
51994 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51995
51996 * term/i386/pc/console.c (map_char): New function. Segregated from
51997 grub_console_putchar.
51998 (grub_console_putchar): Use map_char.
51999 (grub_console_getcharwidth): New function.
52000 (grub_console_term): Specified grub_console_getcharwidth as
52001 getcharwidth.
52002
52003 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52004 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52005
52006 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52007 GRUB_ERRNO.
52008 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52009 on grub_strtoul completely.
52010 (write_char): Declare local variables in the beginning of the
52011 function.
52012 (grub_vesafb_getcharwidth): New function.
52013 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52014 getcharwidth.
52015
1f0a95e4 520162005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52017
52018 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52019 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52020 commands/i386/pc/vbetest.c.
52021
52022 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52023 call grub_vbe_get_controller_info again, because the returned
52024 information is volatile.
52025 (grub_vbe_set_video_mode): Mostly rewritten.
52026 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52027 grub_vbe_status_t correctly.
52028 (grub_vbe_get_video_mode_info): Likewise.
52029 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52030 several if statements.
52031
52032 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52033 * commands/i386/pc/vbeinfo.c: ... this.
52034
52035 * commands/i386/pc/vbe_test.c: Renamed to ...
52036 * commands/i386/pc/vbetest.c: ... this.
52037
52038 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52039 ...
52040 (grub_cmd_vbeinfo): ... this. Save video modes before
52041 iterating. Skip a video mode, if it is not available, not enough
52042 information is given or it is monochrome. Show the memory
52043 model. Leave the interpretation of MODEVAR to grub_strtoul
52044 completely.
52045 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52046 (GRUB_MOD_FINI): Likewise.
52047
52048 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52049 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52050 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52051 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52052 grub_strtoul completely.
52053 (real2pm): Removed.
52054 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52055 (GRUB_MOD_FINI): Likewise.
52056
52057 * normal/misc.c: Include grub/mm.h.
52058
52059 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52060 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52061 (vbe_list_modes_mod_SOURCES): Removed.
52062 (vbe_list_modes_mod_CFLAGS): Likewise.
52063 (vbe_test_mod_SOURCES): Likewise.
52064 (vbe_test_mod_CFLAGS): Likewise.
52065 (vbeinfo_mod_SOURCES): New variable.
52066 (vbeinfo_mod_CFLAGS): Likewise.
52067 (vbetest_mod_SOURCES): Likewise.
52068 (vbetest_mod_CFLAGS): Likewise.
52069
992ffbbe 520702005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52071
52072 * normal/misc.c: New file.
52073
52074 * DISTLIST: Added normal/misc.c.
f19dbdb7 52075
992ffbbe 52076 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52077 DISK to HOOK. Call HOOK with DISK.
52078 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52079 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52080 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52081
52082 * normal/menu_entry.c (struct screen): Added a new member
52083 "completion_shown".
52084 (completion_buffer): New global variable.
52085 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52086 (store_completion): New function.
52087 (complete): Likewise.
52088 (clear_completions): Likewise.
52089 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52090 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52091 a tab, call complete.
52092
52093 * normal/completion.c (disk_dev): Removed.
52094 (print_simple_completion): Likewise.
52095 (print_partition_completion): Likewise.
52096 (print_func): New global variable.
52097 (add_completion): Do not take the arguments WHAT or PRINT any
52098 longer. Added a new argument TYPE. Instead of printing directly,
52099 call PRINT_FUNC if not NULL.
52100 All callers changed.
52101 (complete_device): Use a local variable DEV instead of
52102 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52103 (grub_normal_do_completion): Take a new argument HOOK. Do not
52104 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52105 empty string, return NULL instead.
52106 All callers changed.
52107
52108 * normal/cmdline.c (print_completion): New function.
52109
52110 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52111 to HOOK.
52112 All callers changed.
52113
52114 * kern/disk.c (grub_print_partinfo): Removed.
52115
52116 * include/grub/partition.h (struct grub_partition_map): Add a new
52117 argument DISK into HOOK of ITERATE.
52118 (grub_partition_iterate): Add a new argument DISK to HOOK.
52119
52120 * include/grub/normal.h (enum grub_completion_type): New enum.
52121 (grub_completion_type_t): New type.
52122 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52123 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52124 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52125 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52126 (grub_normal_do_completion): Added a new argument HOOK.
52127 (grub_normal_print_device_info): New prototype.
52128
52129 * include/grub/disk.h (grub_print_partinfo): Removed.
52130
52131 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52132 (normal_mod_SOURCES): Likewise.
52133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52134 (normal_mod_SOURCES): Likewise.
52135
52136 * commands/ls.c (grub_ls_list_disks): Use
52137 grub_normal_print_device_info instead of grub_print_partinfo. Free
52138 PNAME.
52139 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52140 duplicating the code.
52141
0bd41162 521422005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52143
52144 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 52145 follow GCS more precisely.
52146 * commands/i386/pc/vbe_test.c: Likewise.
52147 * include/grub/i386/pc/vbe.h: Likewise.
52148 * term/i386/pc/vesafb.c: Likewise.
52149 * video/i386/pc/vbe.c: Likewise.
0bd41162 52150
6323696a 521512005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52152
52153 * DISTLIST: Added term/i386/pc/vesafb.c
52154 DISTLIST: Added video/i386/pc/vbe.c
52155 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52156 DISTLIST: Added commands/i386/pc/vbe_test.c.
52157 * commands/i386/pc/vbe_list_modes.c: New file.
52158 * commands/i386/pc/vbe_test.c: Likewise.
52159 * term/i386/pc/vesafb.c: Likewise.
52160 * video/i386/pc/vbe.c: Likewise.
52161 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52162 (grub_vbe_probe) Added prototype.
52163 (grub_vbe_set_video_mode) Likewise.
52164 (grub_vbe_get_video_mode) Likewise.
52165 (grub_vbe_get_video_mode_info) Likewise.
52166 (grub_vbe_set_pixel_rgb) Likewise.
52167 (grub_vbe_set_pixel_index) Likewise.
52168 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52169 (pkgdata_MODULES): Added vesafb.mod.
52170 (pkgdata_MODULES): Added vbe_list_modes.mod.
52171 (pkgdata_MODULES): Added vbe_test.mod.
52172 (vbe_mod_SOURCES): Added.
52173 (vbe_mod_CFLAGS): Likewise.
52174 (vesafb_mod_SOURCES): Likewise.
52175 (vesafb_mod_CFLAGS): Likewise.
52176 (vbe_list_modes_mod_SOURCES): Likewise.
52177 (vbe_list_modes_mod_CFLAGS): Likewise.
52178 (vbe_test_mod_SOURCES): Likewise.
52179 (vbe_test_mod_CFLAGS): Likewise.
52180
0a74e62f 521812005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52182
0a74e62f 52183 * normal/command.c (grub_command_execute): If INTERACTIVE is
52184 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52185 CMDLINE. Disable the pager if INTERACTIVE is true.
52186 All callers are changed.
52187
52188 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52189 before reading a config file.
52190 * normal/main.c (read_config_file): Even if a command is not
52191 found, register it if it is within an entry.
52192
52193 * util/grub-emu.c: Include sys/types.h and unistd.h.
52194 (options): Added --hold.
52195 (struct arguments): Added a new member "hold".
52196 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52197 missing.
52198 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52199 cleared by a debugger, if it is not zero.
52200
52201 * include/grub/normal.h (grub_command_execute): Add an argument
52202 INTERACTIVE.
52203
e51f85ae 522042005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52205
52206 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52207
e9c6f39b 522082005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52209
52210 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52211 program with another one, because the old one didn't detect a bug
52212 in gcc-3.4. Always use regparm 2, because the new test is still
52213 not enough for gcc-4.0. Someone must investigate a simple test
52214 case which detects a bug in gcc-4.0.
52215
8de3495c 522162005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52217
52218 * DISTLIST: Added normal/completion.c.
52219
52220 * normal/completion.c: New file.
f19dbdb7 52221
8de3495c 52222 * term/i386/pc/console.c (grub_console_getwh): New function.
52223 (grub_console_term): Assign grub_console_getwh to getwh.
52224
52225 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52226 function is defined in normal/completion.c as
52227 grub_normal_do_completion.
52228 (grub_cmdline_get): Use grub_normal_do_completion instead of
52229 grub_tab_complete.
52230
52231 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52232 returns non-zero, otherwise return 0.
52233 (grub_partition_iterate): First, probe the partition map. Then,
52234 call ITERATE only for this partition map.
52235
52236 * kern/misc.c (grub_strncmp): Rewritten.
52237
52238 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52239 returns non-zero. Otherwise return 0.
52240
52241 * include/grub/partition.h (grub_partition_map_iterate): Return
52242 int instead of void.
52243
52244 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52245
52246 * include/grub/misc.h (grub_strncmp): Change the type of N to
52247 grub_size_t.
52248
52249 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52250 of void.
52251
52252 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 52253 unsigned explicitly before comparing it with I.
8de3495c 52254
52255 * kern/main.c (grub_env_write_root): Add the attribute unused into
52256 VAR.
52257
52258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52259 normal/completion.c.
52260 (normal_mod_SOURCES): Likewise.
52261 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52262 (normal_mod_SOURCES): Likewise.
52263
52264 * normal/command.c (grub_iterate_commands): If ITERATE returns
52265 non-zero, return one immediately.
52266
e85e144b 522672005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52268
52269 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52270 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52271 descriptions.
52272 (grub_vbe_get_controller_info): New function.
52273 (grub_vbe_get_mode_info): Likewise.
52274 (grub_vbe_set_mode): Likewise.
52275 (grub_vbe_get_mode): Likewise.
52276 (grub_vbe_set_memory_window): Likewise.
52277 (grub_vbe_get_memory_window): Likewise.
52278 (grub_vbe_set_scanline_length): Likewise.
52279 (grub_vbe_get_scanline_length): Likewise.
52280 (grub_vbe_set_display_start): Likewise.
52281 (grub_vbe_get_display_start): Likewise.
52282 (grub_vbe_set_palette_data): Likewise.
52283 * include/grub/i386/pc/vbe.h: New file.
52284
c46153d2 522852005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52286
52287 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52288 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52289 * DISTLIST: Likewise.
52290 * kern/ieee1275/of.c: Moved to ...
52291 * kern/ieee1275/ieee1275.c: ... here.
52292
0cb90c45 522932005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52294
52295 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52296 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52297 Pass 0 as `end' parameter to grub_strtoul().
52298
a19fb360 522992005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52300
52301 * include/grub/powerpc/ieee1275/console.h: Do not include
52302 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52303 ifdef.
52304 (grub_console_cur_color): Remove i386-specific prototype.
52305 (grub_console_real_putchar): Likewise.
52306 (grub_console_checkkey): Likewise.
52307 (grub_console_getkey): Likewise.
52308 (grub_console_getxy): Likewise.
52309 (grub_console_gotoxy): Likewise.
52310 (grub_console_cls): Likewise.
52311 (grub_console_setcursor): Likewise.
52312 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52313 Include <grub/machine/console.h>.
52314 * term/ieee1275/ofconsole.c: Likewise.
52315
4ac9bd04 523162005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52317
52318 * Makefile.in (LIBLZO): New variable.
52319
52320 * configure.ac: Check for LZO version 2.
52321
52322 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52323 lzo/lzo1x.h instead of lzo1x.h.
52324
52325 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52326 of -llzo.
52327
52328 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52329 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52330
52331 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52332 copying the data from PARTITION to P.
52333
f4917dfd 523342005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52335
52336 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52337 negative, unload the module.
52338
52339 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52340 map is "pc_partition_map" but not "pc".
52341 (usage): Fix the description. The options are --boot-image and
52342 --core-image but not --boot-file or --core-file.
52343 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52344 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52345 DEFAULT_DIRECTORY.
52346
52347 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52348 --core-file. Specify INSTALL_DEVICE as an argument.
52349
52350 * util/console.c: Include config.h.
52351 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52352 [HAVE_NCURSES_H]: Include ncurses.h.
52353 [HAVE_CURSES_H]: Include curses.h.
52354 [!A_NORMAL] (A_NORMAL): Defined as zero.
52355 [!A_STANDOUT] (A_STANDOUT): Likewise.
52356
52357 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52358 -lncurses.
52359 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52360
52361 * configure.ac: Check for curses libraries and headers.
52362
52363 * Makefile.in (LIBCURSES): New variable.
52364
52365 * genmk.rb (Script::rule): Set the executable bits.
52366
52367 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52368 name of the PC partition map is "pc_partition_map" but not "pc".
52369
0e143073 523702005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52371
52372 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52373 (modules): Likewise.
52374 (usage): Added descriptions for --modules and --grub-probefs.
52375 Handle --modules and --grub-probefs. Save the arguments in MODULES
52376 and GRUB_PROBEFS, respectively.
52377 Auto-detect a filesystem module against GRUBDIR. If the result is
52378 empty and modules are not specified explicitly, abort the
52379 installation. Add the result to MODULES.
52380
52381 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52382 disk/powerpc/ieee1275/ofdisk.c,
52383 include/grub/powerpc/ieee1275/init.h and
52384 term/powerpc/ieee1275/ofconsole.c.
52385 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52386 term/ieee1275/ofconsole.c.
52387
52388 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52389
52390 * COPYING: Upgraded to the latest version. Only the address of the
52391 FSF office has changed.
f19dbdb7 52392
efd6e6d5 523932005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52394
52395 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52396 kern/ieee1275.c with kern/ieee1275/of.c.
52397
52398 * kern/ieee1275.c: Moved to ...
52399 * kern/ieee1275/of.c: ... here.
52400
8ceafda2 524012005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52402
52403 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 52404 readability.
8ceafda2 52405
52406 * config.guess: Updated to the latest version from gnulib.
52407 * config.sub: Likewise.
52408 * install.sh: Likewise.
52409 * mkinstalldirs: Likewise.
52410
52411 * include/grub/console.h: Removed. This file is arch-specific. Do
52412 not put this in include/grub.
52413
52414 * include/grub/i386/pc/console.h: Resurrected.
52415
52416 * util/console.c: Include grub/machine/console.h instead of
52417 grub/console.h.
52418 * util/grub-emu.c: Likewise.
52419
267f6cd9 524202005-08-04 Marco Gerards <metgerards@student.han.nl>
52421
52422 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52423 hardcoded value.
f19dbdb7 52424
267f6cd9 52425 From Vincent Pelletier <subdino2004@yahoo.fr>
52426 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52427 Redefined to use grub_getwh.
52428 (grub_term): New member named getwh.
52429 (grub_getwh): New prototype.
52430 * kern/term.c (grub_getwh): New function.
52431 * term/i386/pc/console.c (grub_console_getwh): New function.
52432 (grub_console_term): New member `getwh'.
52433 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52434 (grub_vga_term): New member `getwh'.
0b5abe02 52435 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 52436 grub_ssize_t.
52437 (grub_ofconsole_getw): New function.
52438 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52439 (grub_ofconsole_term): New field named getwh and new initial
52440 value.
52441
3be7266d 524422005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52443
52444 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52445 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52446 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52447 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52448 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52449 of <grub/machine/ieee1275.h>.
52450 * commands/ieee1275/reboot.c: Likewise.
52451 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52452 * kern/ieee1275.c: ... to here. All users updated. Change all
52453 parameter structs to use new type `grub_ieee1275_cell_t'.
52454 * term/powerpc/ieee1275/ofconsole.c: Move ...
52455 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52456 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52457 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52458 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52459 to return int.
52460 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52461 Remove unused prototypes. All users updated.
52462 * include/grub/powerpc/ieee1275/console.h: Removed.
52463 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52464 `grub_ieee1275_cell_t'.
52465 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52466 Cast comparisons with -1 to the correct type.
52467 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52468 type to match `grub_ieee1275_entry_fn'.
52469
8b5f3938 524702005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52471
52472 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52473
52474 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52475 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52476 partmap/sun.c.
52477 (grub_probefs_SOURCES): New variable.
52478
52479 * util/i386/pc/grub-probefs.c: New file.
52480
52481 * util/i386/pc/grub-setup.c (main): Call
52482 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52483 grub_hfs_init and grub_jfs_init to initialize the system. Call
52484 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52485 grub_pc_partition_map_fini to finish the system.
52486
ea409713 524872005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52488
52489 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52490 function.
52491 (grub_multiboot_load_elf32): Likewise.
52492 (grub_multiboot_is_elf64): Likewise.
52493 (grub_multiboot_load_elf64): Likewise.
52494 (grub_multiboot_load_elf): Likewise.
52495 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52496 an ELF32 or ELF64 file.
52497 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52498
52499 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52500 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52501 NULL before calling FS->LABEL.
52502 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52503 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52504 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52505 before calling FS->LABEL.
52506
141a288b 525072005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52508
52509 * util/i386/pc/grub-install.in (datadir): New variable.
52510 (libdir): Removed.
52511 (pkgdatadir): New variable.
52512 (pkglibdir): Removed.
52513
0d5f8a54 525142005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52515
52516 * DISTLIST: Added util/i386/pc/grub-install.in.
52517
52518 * util/i386/pc/grub-install.in: New file.
52519
52520 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52521 (grub_install_SOURCES): Likewise.
52522
52523 * genmk.rb: Added support for scripts.
52524 (Script): New class.
52525 (scripts): New variable.
52526
52527 * Makefile.in (install-local): Install sbin_SCRIPTS by
52528 INSTALL_SCRIPT.
52529 (uninstall): Remove sbin_SCRIPTS.
52530
52531 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52532 device, try to get a GRUB device by
52533 grub_util_biosdisk_get_grub_dev.
52534 Free DEST_DEV.
52535
52536 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52537 description for --device-map.
52538
5f968e1e 525392005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52540
52541 Change the semantics of variable hooks. They now return strings
52542 instead of error values.
f19dbdb7 52543
5f968e1e 52544 * util/i386/pc/grub-setup.c: Include grub/env.h.
52545 (setup): Use grub_device_set_root instead of grub_env_set.
52546
52547 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52548 grub_env_get instead of grub_device_set_root and
52549 grub_device_get_root, respectively.
52550
52551 * kern/main.c (grub_env_write_root): New function.
52552 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52553 grub_env_set instead of grub_device_set_root.
52554
52555 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52556 many variables.
52557 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52558 rather than calling ENV->WRITE_HOOK afterwards.
52559 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52560 passing a pointer of a pointer.
52561 (grub_register_variable_hook): Change the types of "read_hook" and
52562 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52563 respectively.
52564 Allocate the default empty string on the heap, because this string
52565 may be freed later.
52566
52567 * kern/device.c: Include grub/env.h.
52568 (grub_device_set_root): Removed.
52569 (grub_device_get_root): Likewise.
52570 (grub_device_open): Use grub_env_get instead of
52571 grub_device_get_root.
52572
52573 * include/grub/env.h (grub_env_read_hook_t): New type.
52574 (grub_env_write_hook_t): Likewise.
52575 (grub_env_var): Change the types of "read_hook" and "write_hook"
52576 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52577 (grub_register_variable_hook): Likewise.
52578
52579 * include/grub/device.h (grub_device_set_root): Removed.
52580 (grub_device_set_root): Likewise.
52581
52582 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52583 make sure that DIRNAME terminates with '/', so that
52584 grub_fat_find_dir will fail if PATH is not a directory.
52585
52586 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52587 from DIRNAME.
52588 Use the qualifier auto for print_files and print_files_long.
52589 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52590 as a regular file.
52591 Put a newline only if there is no error.
52592 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52593 used.
52594
896f0afd 525952005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52596
52597 * kern/partition.c (grub_partition_probe): Initialize PART to
52598 NULL. Otherwise, when no partition map is registered, this returns
52599 a garbage.
52600
b28b81b2 526012005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52602
52603 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52604 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52605 valid.
52606
5f3607e0 526072005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52608
52609 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52610 information on each device, if it does not have partitions. Print
52611 "Device" instead of "Disk", because this function is not specific
52612 to disk devices.
52613
52614 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52615 static to ensure that it is put on the memory rather than a
52616 register.
52617
502c87e8 526182005-07-17 Yoshinori Okuji <okuji@enbug.org>
52619
52620 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52621 (grub_cat_init): Likewise.
52622 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52623 (options): Likewise.
52624 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52625 (grub_configfile_init): Likewise.
52626 * font/manager.c (GRUB_MOD_INIT): Likewise.
52627 * commands/help.c (GRUB_MOD_INIT): Likewise.
52628 (grub_help_init): Likewise.
52629 * normal/command.c (grub_command_init): Likewise.
52630 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52631 * disk/loopback.c (grub_loop_init): Likewise.
52632 (GRUB_MOD_INIT): Likewise.
52633 * commands/ls.c (grub_ls_init): Likewise.
52634 (GRUB_MOD_INIT): Likewise.
52635 (options): Likewise.
52636 * commands/boot.c (grub_boot_init): Likewise.
52637 (GRUB_MOD_INIT): Likewise.
52638 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52639 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52640 (GRUB_MOD_INIT): Likewise.
52641 * commands/cmp.c (grub_cmp_init): Likewise.
52642 (GRUB_MOD_INIT): Likewise.
52643
52644 * normal/arg.c: Use <> instead of "" to include header files.
52645 (SHORT_ARG_HELP): New macro.
52646 (SHORT_ARG_USAGE): Likewise.
52647 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52648 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52649 descriptions.
52650 (find_short): Check if C is 'h' or 'u' explicitly.
52651 (grub_arg_show_help): Use space characters instead of tabs. Treat
52652 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52653 are shown with --help and --usage only if they are not used for
52654 the command itself.
52655 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52656 'h' and 'u'.
52657
52658 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52659 const into "longarg". Change the type of "shortarg" to int.
52660
f806d18e 526612005-07-17 Yoshinori Okuji <okuji@enbug.org>
52662
52663 * boot/i386/pc/boot.S (boot_drive_check): New label.
52664
52665 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52666 macro.
52667
52668 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52669 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52670
e293232b 526712005-07-17 Yoshinori Okuji <okuji@enbug.org>
52672
52673 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52674 When turning off Gate A20, skip the check and return immediately,
52675 because this is not fatal usually.
52676
ebedfd00 526772005-07-17 Yoshinori Okuji <okuji@enbug.org>
52678
52679 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52680 be 0x7C00 instead of 0x8000.
52681
52682 * boot/i386/pc/pxeboot.S: Rewritten.
52683
52684 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52685 EXT_C.
52686 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52687 result.
52688
654fc59f 526892005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52690
52691 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52692 robustness. This routine now supports a BIOS call and System
52693 Control Port A to modify the gate A20.
52694
52695 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52696 Increased to 0x440.
52697
09f9923f 526982005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52699
52700 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52701 device path and resulting ihandle.
52702 (grub_ofdisk_close): dprintf the ihandle being closed.
52703 (grub_ofdisk_read): dprintf function parameters.
52704 * kern/mm.c (grub_mm_init_region): Likewise.
52705 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52706 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52707 size, and boot arguments.
52708 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52709 before loading into memory.
52710 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52711 before loading into memory.
52712
7ef504d8 527132005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52714
52715 * kern/mm.c: Added much documentation.
52716 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52717 8, set to 5 instead of 8.
52718
e0f050c2 527192005-07-10 Yoshinori Okuji <okuji@enbug.org>
52720
52721 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52722
52723 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52724 (grub_mkdevicemap_SOURCES): New variable.
52725
52726 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52727 lib/device.c of GRUB Legacy.
52728
7224189a 527292005-07-10 Yoshinori Okuji <okuji@enbug.org>
52730
52731 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52732 instead of PATH is NULL.
52733
68c864eb 527342005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52735
52736 * commands/cmp.c (BUFFER_SIZE): New macro.
52737 (grub_cmd_cmp): Close the right file at the right time. Compare
52738 only data just read. Don't report files of different size as
52739 identical. Dynamically allocate buffers. Move variable
52740 declarations at the beginning of function.
52741
e6f3e614 527422005-07-09 Yoshinori Okuji <okuji@enbug.org>
52743
52744 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52745 reverse.
52746
f8f1559a 527472004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52748
52749 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52750 when backspace is pressed at beginning of line.
52751
39c9d41d 527522005-07-03 Yoshinori Okuji <okuji@enbug.org>
52753
52754 * DISTLIST: Added genfslist.sh.
52755
52756 * normal/main.c (fs_module_list): New variable.
52757 (autoload_fs_module): New function.
52758 (read_fs_list): Likewise.
52759 (grub_normal_execute): Call read_fs_list.
52760
52761 * kern/fs.c (grub_fs_autoload_hook): New variable.
52762 (grub_fs_probe): Added support for auto-loading.
52763
52764 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52765 (grub_fs_module_list_t): New type.
52766
52767 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52768 (grub_fs_autoload_hook): New prototype.
52769
52770 * genfslist.sh: New file.
f19dbdb7 52771
39c9d41d 52772 * genmk.rb: Added a rule to generate a filesystem list.
52773
121c1d83 527742005-06-30 Marco Gerards <metgerards@student.han.nl>
52775
52776 * configure.ac: Fix the test for cross-compiling.
52777
52778 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52779 define GRUB_UTIL anymore.
52780
52781 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52782 so this function works on other systems than just big endian.
52783 (load_modules): Likewise.
52784 (add_segments): Likewise.
52785
e75d76e1 527862005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52787
52788 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52789 contains `l' modifier, get a long from va_arg().
52790
50b5a0a7 527912005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52792
52793 * kern/mm.c (grub_free): If the next free block which is being
52794 merged is the first free block, set the first block to the block
52795 being freed.
52796 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52797
89371b20 527982005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52799
52800 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52801 `grub_ieee1275_chosen'.
52802
168d6e58 528032005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52804
52805 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52806 (grub_ieee1275_chosen): New variable.
52807 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52808 `chosen'.
52809 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52810 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52811 Rename first argument to `phandle' for consistency.
52812 (grub_ieee1275_get_property_length): Likewise.
52813 (grub_ieee1275_next_property): Likewise. Change type of first argument
52814 to grub_ieee1275_phandle_t.
52815 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52816 Move export next to declaration.
52817 (grub_ieee1275_chosen): New variable.
52818 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52819 Correct cosmetic typo.
52820 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52821 `grub_ieee1275_chosen'.
52822 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52823 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52824 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52825 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52826 `grub_ieee1275_chosen'.
52827
ca5baa3f 528282005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52829
52830 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52831 /chosen/bootargs.
52832 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52833 /chosen/bootargs as "variable=value" pairs.
52834
708b345f 528352005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52836
52837 * include/grub/misc.h (grub_dprintf): New macro.
52838 (grub_real_dprintf): New prototype.
52839 (grub_strword): Likewise.
52840 (grub_iswordseparator): Likewise.
52841 * kern/misc.c (grub_real_dprintf): New function.
52842 (grub_strword): Likewise.
52843 (grub_iswordseparator): Likewise.
52844
f4c5e67c 528452005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52846
52847 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52848 (roundup): Remove macro.
52849 (grub_ieee1275_flags): Make static.
52850 (grub_ieee1275_realmode): Remove.
52851 (grub_ieee1275_test_flag): New function.
52852 (grub_ieee1275_set_flag): Likewise.
52853 (find_options): Rename to `grub_ieee1275_find_options'; update
52854 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52855 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52856 (cmain): New prototype.
52857 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52858 `grub_ieee1275_flags' directly.
52859 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52860 machine/biosdisk.h.
52861 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52862 Don't include grub/machine/init.h.
52863 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52864 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52865 Remove prototype.
52866 (grub_ieee1275_realmode): Likewise.
52867 (grub_ieee1275_flag): New enum.
52868 (grub_ieee1275_test_flag): New prototype.
52869 (grub_ieee1275_set_flag): New prototype.
52870 * include/grub/powerpc/ieee1275/init.h: Remove file.
52871 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52872 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52873 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52874 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52875 comment.
52876 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52877 `grub_ieee1275_test_flag'.
52878 (grub_ieee1275_encode_devname): Likewise.
52879
ed16607e 528802005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52881
52882 * include/grub/powerpc/ieee1275/ieee1275.h
52883 (grub_ieee1275_encode_devname): New prototype.
52884 (grub_ieee1275_get_filename): Likewise.
52885 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52886 function.
52887 (grub_set_prefix): Likewise.
52888 (grub_machine_init): Call grub_set_prefix.
52889 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52890 (grub_parse_type): New enum.
52891 (grub_ieee1275_get_devargs): New function.
52892 (grub_ieee1275_get_devname): Likewise.
52893 (grub_ieee1275_parse_args): Likewise.
52894 (grub_ieee1275_get_filename): Likewise.
52895 (grub_ieee1275_encode_devname): Likewise.
52896
be369920 528972005-03-30 Marco Gerards <metgerards@student.han.nl>
52898
52899 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52900 `grub_loader_unset'.
52901
a5ce3a4a 529022005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52903
52904 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52905 instead of grub_ieee1275_interpret.
52906 (grub_halt_init): New function.
52907 (grub_halt_fini): Likewise.
52908 (GRUB_MOD_INIT): Correct message grammar.
52909 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52910 instead of grub_ieee1275_interpret.
52911 (grub_reboot_init): New function.
52912 (grub_reboot_fini): Likewise.
52913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52914 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52915 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52916 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52917 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52918 function.
52919 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52920 Add prototype.
52921 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52922 prototype.
52923 (grub_halt): Likewise.
52924 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52925 (cmain): Remove __attribute__((unused)).
52926 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52927 (grub_heap_len): Likewise.
52928 (grub_machine_fini): New function.
52929 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52930 (grub_halt): Likewise.
52931 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52932 function.
52933 * util/powerpc/ieee1275/misc.c: New file.
52934
0058f771 529352005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52936
52937 * DISTLIST: New file.
52938 * gendistlist.sh: Likewise.
f19dbdb7 52939
0058f771 52940 * Makefile.in (COMMON_DISTFILES): Removed.
52941 (BOOT_DISTFILES): Likewise.
52942 (CONF_DISTFILES): Likewise.
52943 (DISK_DISTFILES): Likewise.
52944 (FS_DISTFILES): Likewise.
52945 (INCLUDE_DISTFILES): Likewise.
52946 (KERN_DISTFILES): Likewise.
52947 (LOADER_DISTFILES): Likewise.
52948 (TERM_DISTFILES): Likewise.
52949 (UTIL_DISTFILES): Likewise.
52950 (DISTFILES): Likewise.
52951 (uninstall): Uninstall files in $(pkgdata_DATA).
52952 (DISTLIST): New target.
52953 (distdir): Use the contents of the file DISTLIST to get a list of
52954 distributed files.
52955
46b3b8a5 529562005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52957
52958 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52959 descriptor. This is ported from GRUB Legacy.
52960
52961 * gencmdlist.sh: Added an extra semicolon to make it work with
52962 old sed versions. Reported by Robert Bihlmeyer
52963 <robbe@orcus.priv.at>.
52964
5822ff87 529652005-03-08 Yoshinori Okuji <okuji@enbug.org>
52966
52967 Automatic loading of commands is supported.
f19dbdb7 52968
5822ff87 52969 * normal/main.c (read_command_list): New function.
52970 (grub_normal_execute): Call read_command_list.
52971
52972 * normal/command.c (grub_register_command): Return zero or CMD.
52973 Allocate CMD->NAME from the heap.
52974 Initialize CMD->MODULE_NAME to zero.
52975 Find the same name as well. If the same command is found and it is
52976 a dummy command, overwrite members. If it is not a dummy command,
52977 return zero.
52978 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52979 (grub_command_find): If a dummy command is found, load a module
52980 and retry to find a command only once.
52981
52982 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52983 make sure that each command is loaded.
52984
52985 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52986 macro.
52987 (struct grub_command): Remove const from the member `name'.
52988 Add a new member `module_name'.
52989 (grub_register_command): Return grub_command_t.
52990
52991 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52992 sure that each command is loaded.
52993
52994 * genmk.rb (PModule::rule): Specify a module name without the
52995 suffix ".mod" to gencmdlist.sh.
52996
7b1f4b57 529972005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52998
52999 * gencmdlist.sh: New file.
f19dbdb7 53000
7b1f4b57 53001 * genmk.rb (PModule::rule): Generate a rule for a command list.
53002 Clean command.lst.
53003 Generate command.lst from $(COMMANDFILES).
53004
53005 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53006 (DATA): Added $(pkgdata_DATA).
53007 (install-local): Install files in $(pkgdata_DATA).
53008
062aaf39 530092005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53010
53011 * term/i386/pc/vga.c (debug_command): Removed.
53012 (GRUB_MOD_INIT): Do not register the command "debug".
53013
53014 From Hollis Blanchard:
53015 * commands/configfile.c: New file.
53016 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53017 commands/configfile.c.
53018 (pkgdata_MODULES): Added configfile.mod.
53019 (configfile_mod_SOURCES): New variable.
53020 (configfile_mod_CFLAGS): Likewise.
53021 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53022 commands/configfile.c.
53023 (pkgdata_MODULES): Added configfile.mod.
53024 (configfile_mod_SOURCES): New variable.
53025 (configfile_mod_CFLAGS): Likewise.
53026 * util/grub-emu.c (main): Call grub_configfile_init and
53027 grub_configfile_fini.
53028 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53029 prototype.
53030 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 53031
cee01aa6 530322005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53033
53034 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53035 address.
53036
53037 * commands/help.c (grub_cmd_help): Do not print newlines after
53038 the last command in print_command_help.
53039
93f3a1d8 530402005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53041
53042 * commands/default.h: New file.
53043 * commands/timeout.h: Likewise.
53044 * normal/context.c: Likewise.
f19dbdb7 53045
93f3a1d8 53046 * util/misc.c: Do not include sys/times.h.
53047 Include sys/time.h and grub/machine/time.h.
53048 (grub_get_rtc): Rewritten with gettimeofday.
53049
53050 * util/grub-emu.c (main): Call grub_default_init and
53051 grub_timeout_init before grub_normal_init, and call
53052 grub_timeout_fini and grub_default_fini after grub_main.
53053
53054 * util/console.c (grub_ncurses_checkkey): Return the read
53055 character or -1.
53056
53057 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53058 timeouts.
53059
53060 * normal/main.c (read_config_file): Push MENU. If this fails,
53061 print an error and wait for a user input.
53062 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53063 If a menu is empty or an error occurs, pop MENU.
53064 (grub_normal_execute): Pop and free MENU after grub_menu_run
53065 returns.
53066
53067 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53068
53069 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53070 include time.h.
53071 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53072 without GRUB_UTIL.
53073 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53074 time.h.
53075 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53076 without GRUB_UTIL.
53077
53078 * include/grub/normal.h (struct grub_menu_list): New struct.
53079 (grub_menu_list_t): New type.
53080 (struct grub_context): New struct.
53081 (grub_context_t): New type.
53082 (grub_register_command): Got rid of EXPORT_FUNC.
53083 (grub_unregister_command): Likewise.
53084 (grub_context_get): New prototype.
53085 (grub_context_get_current_menu): Likewise.
53086 (grub_context_push_menu): Likewise.
53087 (grub_context_pop_menu): Likewise.
53088 [GRUB_UTIL] (grub_default_init): Likewise.
53089 [GRUB_UTIL] (grub_default_fini): Likewise.
53090 [GRUB_UTIL] (grub_timeout_init): Likewise.
53091 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53092
53093 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53094 commands/timeout.c and normal/context.c.
53095 (pkgdata_MODULES): Added default.mod and timeout.mod.
53096 (normal_mod_SOURCES): Added normal/context.c.
53097 (default_mod_SOURCES): New variable.
53098 (default_mod_CFLAGS): Likewise.
53099 (timeout_mod_SOURCES): Likewise.
53100 (timeout_mod_CFLAGS): Likewise.
53101 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53102 conf/i386-pc.rmk.
53103 (pkgdata_MODULES): Added default.mod and timeout.mod.
53104 (normal_mod_SOURCES): Added normal/context.c.
53105 (default_mod_SOURCES): New variable.
53106 (default_mod_CFLAGS): Likewise.
53107 (timeout_mod_SOURCES): Likewise.
53108 (timeout_mod_CFLAGS): Likewise.
53109
53110 * Makefile.in (all-local): Added $(MKFILES).
53111
4ed2e1dd 531122005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53113
53114 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53115 (grub_emu_SOURCES): Likewise.
53116 (pkgdata_MODULES): Add `sun.mod'.
53117 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53118 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53119 `partmap/sun.c'.
53120 (pkgdata_MODULES): Add `sun.mod'.
53121 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53122 * include/grub/partition.h (grub_sun_partition_map_init): New
53123 prototype.
53124 (grub_sun_partition_map_fini): Likewise.
53125 * partmap/sun.c: New file.
53126 * util/grub-emu.c (main): Initialize and de-initialize the sun
53127 partitionmap support.
53128
4d4e372e 531292005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53130
53131 This implements an Emacs-like menu entry editor.
f19dbdb7 53132
4d4e372e 53133 * normal/menu_entry.c: New file.
f19dbdb7 53134
4d4e372e 53135 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53136 characters to ASCII.
53137 (saved_char): New variable.
53138 (grub_ncurses_checkkey): Rewritten completely.
53139 (grub_ncurses_getkey): Likewise.
53140 (grub_ncurses_init): Call raw instead of cbreak.
53141
53142 * normal/menu.c (print_entry): Do not put a space.
53143 (init_page): Renamed to ...
53144 (grub_menu_init_page): ... this. All callers changed.
53145 (edit_menu_entry): Removed.
53146 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53147
53148 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53149
53150 * kern/misc.c (grub_vprintf): Call grub_refresh.
53151
53152 * normal/menu.c (DISP_LEFT): Renamed to ...
53153 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53154 * normal/menu.c (DISP_UP): Renamed to ...
53155 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53156 * normal/menu.c (DISP_RIGHT): Renamed to ...
53157 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53158 * normal/menu.c (DISP_DOWN): Renamed to ...
53159 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53160 * normal/menu.c (DISP_HLINE): Renamed to ...
53161 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53162 * normal/menu.c (DISP_VLINE): Renamed to ...
53163 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53164 * normal/menu.c (DISP_UL): Renamed to ...
53165 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53166 * normal/menu.c (DISP_UR): Renamed to ...
53167 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53168 * normal/menu.c (DISP_LL): Renamed to ...
53169 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53170 * normal/menu.c (DISP_LR): Renamed to ...
53171 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53172 * normal/menu.c (TERM_WIDTH): Renamed to ...
53173 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53174 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53175 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53176 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53177 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53178 * normal/menu.c (TERM_MARGIN): Renamed to ...
53179 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53180 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53181 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53182 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53183 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53184 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53185 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53186 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53187 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53188 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53189 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53190 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53191 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53192 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53193 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53194 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53195 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53196 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53197 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53198 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53199 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53200 All callers changed.
53201
53202 * include/grub/normal.h: New prototype.
53203
53204 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53205 normal/menu_entry.c.
53206 (normal_mod_SOURCES): Likewise.
53207 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53208 (normal_mod_SOURCES): Likewise.
53209
e6b92c8a 532102005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53211
53212 * include/grub/normal.h (grub_halt_init): New prototype.
53213 (grub_halt_fini): Likewise.
53214 (grub_reboot_init): Likewise.
53215 (grub_reboot_fini): Likewise.
53216
53217 * util/grub-emu.c: Include signal.h.
53218 (main_env): New global variable.
53219 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53220 catch C-c.
53221 (grub_machine_fini): New function.
53222 (main): Call grub_halt_init and grub_reboot_init before
53223 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53224 Call setjmp with MAIN_ENV to go back afterwards.
53225 Call grub_machine_fini right before return.
53226
53227 * include/grub/util/misc.h: Include setjmp.h.
53228 (main_env): New prototype.
53229
53230 * include/grub/kernel.h (grub_machine_fini): New prototype.
53231 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53232 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53233
53234 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53235 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53236 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 53237
e6b92c8a 53238 * util/i386/pc/misc.c: New file.
f19dbdb7 53239
e6b92c8a 53240 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53241 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53242 commands/i386/pc/reboot.c.
53243
c642636f 532442005-02-14 Guillem Jover <guillem@hadrons.org>
53245
53246 * include/grub/dl.h (grub_dl_check_header): New prototype.
53247 (grub_arch_dl_check_header): Change return type to grub_err_t,
53248 remove size parameter and export function. Update all callers.
53249 * kern/dl.c (grub_dl_check_header): New function.
53250 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53251 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53252 are inside the core.
53253 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53254 independent ELF header checks.
53255 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53256 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53257 `grub_dl_check_header' instead of explicit checks. Check for the
53258 ELF type.
53259 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53260 `grub_dl_check_header' instead of explicit checks. Remove arch
53261 specific ELF header checks.
53262
e6b92c8a 53263 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53264 argument SIZE.
53265
5eabe94b 532662005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53267
53268 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53269 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53270
1b14a681 532712005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53272
53273 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 53274 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 53275 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 53276 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 53277 * partmap/amiga.c (amiga_partition_map_iterate): Return
53278 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53279 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53280
aca108aa 532812005-02-01 Guillem Jover <guillem@hadrons.org>
53282
53283 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53284 help info.
53285
c9f9c556 532862005-01-31 Marco Gerards <metgerards@student.han.nl>
53287
53288 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53289 Removed prototype.
53290 (grub_rescue_cmd_linux): New prototype.
53291 (grub_rescue_cmd_initrd): Likewise.
53292 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53293 `bi_rec'.
53294 (grub_linux_release_mem): Release the memory for the initrd.
53295 (grub_load_linux): Renamed from this...
53296 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53297 Changed `entry' not to be static. Loop over memory regions to
53298 find another one when the default fails.
53299 (grub_rescue_cmd_initrd): New function.
53300 (grub_linux_init): Remove function.
53301 (grub_linux_fini): Likewise.
53302 (GRUB_MOD_INIT): Register `initrd'.
53303 (GRUB_MOD_FINI): Unregister `initrd'.
53304 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53305 Function removed.
53306 (grub_linux_normal_fini): Likewise.
53307 (GRUB_MOD_INIT): Register `initrd'.
53308 (GRUB_MOD_FINI): Unregister `initrd'.
53309
990cf3aa 533102005-01-31 Marco Gerards <metgerards@student.han.nl>
53311
53312 * commands/help.c: New file.
53313 * normal/arg.c (show_help): Renamed to...
53314 (grub_arg_show_help): ... this.
53315 * commands/i386/pc/halt.c: New file.
53316 * commands/i386/pc/reboot.c: Likewise.
53317 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53318 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53319 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53320 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53321 variables.
53322 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53323 `commands/help.c'.
53324 (pkgdata_MODULES): Add `help.mod'.
53325 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53326 * grub/i386/pc/init.h (grub_reboot): New prototype.
53327 (grub_halt): Likewise.
53328 * include/grub/normal.h (grub_arg_show_help): New prototype.
53329 (grub_help_init): Likewise.
53330 (grub_help_fini): Likewise.
53331 * util/grub-emu.c (main): Initialize and deinitialize the help
53332 command.
53333
53334 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53335
53336 * normal/command.c (grub_command_init): Fixed the description of
53337 the `set' and `unset' commands.
53338
533392005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 53340
53341 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53342 function.
53343 * commands/ieee1275/halt.c: New file.
53344 * commands/ieee1275/reboot.c: Likewise.
53345 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53346 `__attribute__ ((unused))'. Some GCS related fixed.
53347 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53348 (grub_suspend_fini): Likewise.
53349 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53350 and `halt.mod'.
53351 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53352 (halt_mod_CFLAGS): New variables.
53353 * include/grub/powerpc/ieee1275/ieee1275.h
53354 (grub_ieee1275_interpret): New prototype.
53355
1ab09cc7 533562005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53357
53358 * include/grub/misc.h (memmove): New prototype.
53359 (memcpy): Likewise.
53360
8b8cbdb2 533612005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53362
53363 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53364 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53365
e3741a27 533662005-01-22 Marco Gerards <metgerards@student.han.nl>
53367
53368 * kern/misc.c (grub_strndup): Function rewritten.
53369
776bd780 533702005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53371
53372 * normal/menu.c (TERM_WIDTH): Macro redefined.
53373 (TERM_TOP_BORDER_Y): Likewise.
53374 (draw_border): Replaced while-loop by a for-loop. Make the number
53375 of lines consistent with the number of lines displayed in
53376 print_entries. Added a margin below the rectangle.
53377 (print_entry): Make the entry fit in the rectangle.
53378 (print_entries): Display the scroll arrows next to the right
53379 border.
53380
78026bce 533812005-01-21 Marco Gerards <metgerards@student.han.nl>
53382
53383 * fs/minix.c (grub_minix_find_file): Reserve more space for
53384 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53385 `grub_strncpy' to copy `path' into it.
53386
67bbaf0f 533872005-01-21 Marco Gerards <metgerards@student.han.nl>
53388
53389 Add the loopback device, a device via which files can be accessed
53390 as devices.
f19dbdb7 53391
67bbaf0f 53392 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53393 (pkgdata_MODULES): Add loopback.mod.
53394 (loopback_mod_SOURCES): New variable.
53395 (loopback_mod_CFLAGS): Likewise.
53396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53397 `disk/loopback.c'.
53398 (pkgdata_MODULES): Add loopback.mod.
53399 (loopback_mod_SOURCES): New variable.
53400 (loopback_mod_CFLAGS): Likewise.
53401 * disk/loopback.c: new file.
53402 * include/grub/normal.h (grub_loop_init): New prototype.
53403 (grub_loop_fini): New prototype.
53404 * util/grub-emu.c (main): Initialize and de-initialize loopback
53405 support.
53406 * include/grub/disk.h (grub_disk_dev_id): Add
53407 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53408
6f1c18bd 534092005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53410
53411 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53412 function.
53413 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53414 (suspend_mod_SOURCES): New variable.
53415 (suspend_mod_CFLAGS): Likewise.
53416 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53417 New prototype.
53418 * commands/ieee1275/suspend.c: New file.
53419
b38551da 534202005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53421
53422 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 53423 ((unused))' to `__attribute__ ((used))'.
b38551da 53424 (GRUB_MOD_FINI): Likewise.
53425 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53426 * genmk.rb (PModule): Assign space to common symbols when linking
53427 modules.
53428
777aff39 534292005-01-20 Marco Gerards <metgerards@student.han.nl>
53430
53431 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53432 `unsigned' arguments to `grub_size_t'.
53433 (grub_malloc): Likewise.
53434 (grub_realloc): Likewise.
53435 (grub_memalign): Likewise.
53436 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53437 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53438 * util/misc.c (grub_malloc): Likewise.
53439 (grub_realloc): Likewise.
53440 * kern/mm.c (get_header_from_pointer): Change the casts to
53441 `unsigned' into a cast to `grub_size_t'.
53442
53443 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53444 point to `currnode' when `currnode' is changed.
53445
53446 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53447 Schottelius <nico-linux@schottelius.org>.
53448
d0ff18e1 534492005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53450
53451 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53452 (note_path): Remove variable.
53453 (GRUB_IEEE1275_NOTE_NAME): New macro.
53454 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53455 (grub_ieee1275_note_hdr): New structure.
53456 (grub_ieee1275_note_desc): Likewise.
53457 (grub_ieee1275_note): Likewise.
53458 (load_note): Remove `dir' argument. All callers updated. Remove
53459 `note_img' and `path'. Do not load a file from `note_path'.
53460 Initialize a struct grub_ieee1275_note and write that to `out'.
53461 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53462
4ca7004c 534632005-01-05 Marco Gerards <metgerards@student.han.nl>
53464
53465 * util/misc.c (grub_util_read_image): Revert last change. It
53466 called `grub_util_read_at', which seeks from the beginning of the
53467 file.
53468
0b412211 534692005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53470
53471 * TODO: Add note about endianness in grub-mkimage.
53472 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53473 section.
53474 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53475 (grub_mkimage_SOURCES): New target.
53476 * include/grub/kernel.h (grub_start_addr): Remove variable.
53477 (grub_end_addr): Likewise.
53478 (grub_total_module_size): Likewise.
53479 (grub_kernel_image_size): Likewise.
53480 (GRUB_MODULE_MAGIC): New constant.
53481 (grub_module_info): New structure.
53482 (grub_arch_modules_addr): New prototype.
53483 (grub_get_end_addr): Remove prototype.
53484 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53485 * include/grub/powerpc/ieee1275/kernel.h: New file.
53486 * include/grub/util/misc.h (grub_util_get_fp_size): New
53487 prototype.
53488 (grub_util_read_at): Likewise.
53489 (grub_util_write_image_at): Likewise.
53490 * kern/main.c (grub_get_end_addr): Remove function.
53491 (grub_load_modules): Call grub_arch_modules_addr instead of using
53492 grub_end_addr. Look for a grub_module_info struct in memory. Use
53493 the grub_module_info fields instead of calling grub_get_end_addr
53494 as loop conditions. Move grub_add_unused_region code here.
53495 (grub_add_unused_region): Remove function.
53496 * kern/i386/pc/init.c: Include grub/cache.h.
53497 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53498 one call to add_mem_region.
53499 (grub_arch_modules_addr): New function.
53500 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53501 (grub_total_module_size): Likewise.
53502 Include grub/machine/kernel.h.
53503 (grub_arch_modules_addr): New function.
53504 * util/grub-emu.c (grub_end_addr): Remove variable.
53505 (grub_total_module_size): Likewise.
53506 (grub_arch_modules_addr): New function.
53507 * util/misc.c: Include unistd.h.
53508 (grub_util_get_fp_size): New function.
53509 (grub_util_read_at): Likewise.
53510 (grub_util_write_image_at): Likewise.
53511 (grub_util_read_image): Call grub_util_read_at.
53512 (grub_util_write_image): Call grub_util_write_image_at.
53513 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53514 additional memory in kernel_img for a struct grub_module_info.
53515 Fill in that grub_module_info.
53516 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53517
458786f8 535182005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53519
53520 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53521 New function.
53522 * include/grub/powerpc/ieee1275/ieee1275.h
53523 (grub_ieee1275_milliseconds): New prototype.
53524 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53525 Change to 1000.
53526 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53527 grub_ieee1275_milliseconds.
53528
ac507d1b 535292005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53530
53531 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53532 variable.
53533 (find_options): New function.
53534 (cmain): Call find_options.
53535 * include/grub/powerpc/ieee1275/ieee1275.h
53536 (grub_ieee1275_realmode): New extern variable.
53537 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53538 grub_map if grub_ieee1275_realmode is false.
53539
6b8fd1c4 535402004-12-29 Marco Gerards <metgerards@student.han.nl>
53541
53542 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53543 lines are inserted and make it work like readline. Reported by
53544 Vincent Pelletier <subdino2004@yahoo.fr>.
53545
8514a1e0 535462004-12-28 Marco Gerards <metgerards@student.han.nl>
53547
53548 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53549
53550 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53551 `kern/powerpc/cache.S'.
53552
924b6140 535532004-12-27 Marco Gerards <metgerards@student.han.nl>
53554
53555 * genmk.rb: Handle the `Program' class in the main loop. Written
53556 by Johan Rydberg <jrydberg@gnu.org>.
53557 (Program): New class.
53558 (programs): New variable.
53559 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53560 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53561 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53562 (help_arch): Function removed.
53563 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53564 `powerpc/libgcc.h' and `loader.h'.
53565 (pkgdata_PROGRAMS): New variable.
53566 (sbin_UTILITIES): Variable removed.
53567 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53568 (grubof_SOURCES): Variable re-defined so it only includes the
53569 core functionality.
53570 (grubof_CFLAGS): Remove `-DGRUBOF'.
53571 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53572 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53573 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53574 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53575 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53576 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53577 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53578 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53579 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53580 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53581 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53582 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53583 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53584 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53585 (pc_mod_CFLAGS): New variables.
53586 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53587 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53588 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53589 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53590 Moved from here...
53591 * include/grub/i386/pc/init.h (grub_os_area_addr)
53592 (rub_os_area_size): ... to here.
53593 * include/grub/powerpc/ieee1275/ieee1275.h
53594 (grub_ieee1275_entry_fn): Export symbol.
53595 * include/grub/powerpc/ieee1275/init.h: New file.
53596 * include/grub/powerpc/libgcc.h: Likewise.
53597 * include/grub/cache.h: Likewise.
53598 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53599 <hollis@penguinppc.org>.
53600 * kern/dl.c: Include <grub/cache.h>.
53601 (grub_dl_flush_cache): New function.
53602 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53603 for this module.
53604 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53605 (grub_console_init): Removed prototypes.
53606 (grub_machine_init): Don't initialize the modules anymore.
53607 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53608 static.
53609 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53610 Macro undef removed.
53611 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53612 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53613 relocation `R_PPC_REL32'. Return an error when the relocation is
53614 unknown.
53615 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53616 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53617 * util/misc.c (grub_arch_sync_caches): Likewise.
53618
e4b47e0c 536192004-12-19 Marco Gerards <metgerards@student.han.nl>
53620
53621 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53622 `symlist.c', add `grubof_symlist.c'.
53623 (symlist.c): Variable removed.
53624 (grubof_HEADERS): Variable added.
53625 (grubof_symlist.c): New target.
53626 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53627 `kernel_img_HEADERS'.
53628 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53629 * kern/powerpc/dl.c: New file.
53630 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53631 Function removed.
53632 (grub_arch_dl_relocate_symbols): Likewise.
53633 (grub_register_exported_symbols): Likewise.
53634
4ceb3636 536352004-12-13 Marco Gerards <metgerards@student.han.nl>
53636
53637 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53638 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53639 to fail instead. Reported by Vincent Pelletier
53640 <subdino2004@yahoo.fr>.
53641
53642 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53643 it is not allocated. Reported by Vincent Pelletier
53644 <subdino2004@yahoo.fr>.
53645
53646 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53647 output so the output looks better.
f19dbdb7 53648
3f1578fe 536492004-12-04 Marco Gerards <metgerards@student.han.nl>
53650
53651 Modulize the partition map support and add support for the amiga
53652 partition map.
f19dbdb7 53653
3f1578fe 53654 * commands/ls.c: Include <grub/partition.h> instead of
53655 <grub/machine/partition.h>.
53656 * kern/disk.c: Likewise.
53657 * kern/rescue.c: Likewise.
53658 * loader/i386/pc/chainloader.c: Likewise.
53659 * normal/cmdline.c: Likewise.
53660 * kern/powerpc/ieee1275/init.c: Likewise.
53661 (grub_machine_init): Call `grub_pc_partition_map_init',
53662 `grub_amiga_partition_map_init' and
53663 `grub_apple_partition_map_init'.
53664 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53665 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53666 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53667 `partition.h' and `pc_partition.h'.
53668 (grub_setup_SOURCES): Remove
53669 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53670 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53671 (grub_emu_SOURCES): Likewise.
53672 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53673 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53674 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53675 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53676 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53677 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53678 (grubof_SOURCES): Likewise.
53679 * disk/i386/pc/partition.c: File removed.
53680 * disk/powerpc/ieee1275/partition.c: Likewise.
53681 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53682 * include/grub/i386/pc/partition.h: Likewise.
53683 * kern/partition.c: New file.
53684 * partmap/amiga.c: Likewise.
53685 * partmap/apple.c: Likewise.
53686 * partmap/pc.c: Likewise.
53687 * include/grub/partition.h: Likewise..
53688 * include/grub/pc_partition.h: Likewise.
53689 * util/grub-emu.c: Include <grub/partition.h> instead of
53690 <grub/machine/partition.h>.
53691 (main): Call `grub_pc_partition_map_init',
53692 `grub_amiga_partition_map_init' and
53693 `grub_apple_partition_map_init' and deinitialize afterwards.
53694 * util/i386/pc/biosdisk.c: Include `#include
53695 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53696 `<grub/machine/partition.h>'.
53697 * util/i386/pc/grub-setup.c: Likewise.
53698 * util/i386/pc/biosdisk.c: Likewise.
53699 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53700 partition information in case of a PC partition.
53701 * util/i386/pc/grub-setup.c: Include `#include
53702 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53703 `<grub/machine/partition.h>'.
53704 (setup): Only access the PC specific partition information in case
53705 of a PC partition.
53706
0ef4ced9 537072004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 53708
0ef4ced9 53709 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53710 (grub_longjmp): Likewise.
53711 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53712 20.
53713 * normal/powerpc/setjmp.S: New file.
53714 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53715 `normal/powerpc/setjmp.S'.
53716 (grubof_CFLAGS): Add `-DGRUBOF'.
53717 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53718 [GRUB_UTIL && !GRUBOF].
f19dbdb7 53719
19950e29 537202004-11-16 Marco Gerards <metgerards@student.han.nl>
53721
53722 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53723 property named `name'. Correctly handle the error returned by
53724 `grub_ieee1275_finddevice' if a device can not be opened.
53725
a2fea427 537262004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53727
53728 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53729 `actual' for negativity.
53730 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53731 kern/fshelp.c.
53732
41ea0ea3 537332004-11-01 Marco Gerards <metgerards@student.han.nl>
53734
53735 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53736 (PAGE_OFFSET): New macro.
53737 (CRTC_ADDR_PORT): Likewise.
53738 (CRTC_DATA_PORT): Likewise.
53739 (START_ADDR_HIGH_REGISTER): Likewise.
53740 (START_ADDR_LOW_REGISTER): Likewise.
53741 (GRAPHICS_ADDR_PORT): Likewise.
53742 (GRAPHICS_DATA_PORT): Likewise.
53743 (READ_MAP_REGISTER): Likewise.
53744 (INPUT_STATUS1_REGISTER): Likewise.
53745 (INPUT_STATUS1_VERTR_BIT): Likewise.
53746 (page): New variable.
53747 (wait_vretrace): New function.
53748 (set_read_map): Likewise.
53749 (set_start_address): Likewise.
53750 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53751 the right page.
53752 (check_vga_mem): Take the page into account.
53753 (write_char): Likewise.
53754 (write_cursor): Likewise.
53755 (scroll_up): Likewise. Copy the page to the page that is not
53756 shown and switch between both pages.
53757 (grub_vga_putchar): Fix off by one error.
53758 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53759 account.
53760
ad0bd20b 537612004-11-01 Marco Gerards <metgerards@student.han.nl>
53762
53763 Add support for iso9660 (including rockridge).
f19dbdb7 53764
ad0bd20b 53765 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53766 (iso9660_mod_SOURCES): New variable.
53767 (iso9660_mod_CFLAGS): Likewise.
53768 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53769 * include/grub/fs.h (grub_iso9660_init): New prototype.
53770 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53771 * fs/iso9660.c: New file.
53772
53773 * include/grub/misc.h (grub_strncat): New prototype.
53774 * kern/misc.c (grub_strncat): New function.
f19dbdb7 53775
ad0bd20b 53776 * fs/hfs.c (grub_hfs_mount): Translate the error
53777 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53778 * fs/jfs.c (grub_jfs_mount): Likewise.
53779 * fs/ufs.c (grub_ufs_mount): Likewise.
53780
a5477a59 537812004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53782
53783 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53784 which initialized BAT registers.
53785 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53786 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53787 Move from here...
53788 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53789 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53790 ... to here.
53791 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53792 (grub_mapclaim): Likewise.
53793 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53794 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53795 hand.
53796
9304c1f8 537972004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53798
53799 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53800 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53801 -ffreestanding and -msoft-float.
53802
86f4ae25 538032004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53804
53805 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53806 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53807 set in grub_ieee1275_flags.
53808
38912228 538092004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53810
53811 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53812 prototype.
53813 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53814 grub_console_init first.
53815 Change the memory range used for grub_ieee1275_claim and
53816 grub_mm_init_region.
53817 Print an error message if the claim fails.
53818 Include <grub/misc.h>.
53819
d1923dc8 538202004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53821
53822 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53823 Call grub_children_iterate for device nodes of type `scsi',
53824 `ide', or `ata'.
53825 (grub_ofdisk_open): Remove manual device alias resolution.
53826 Fix memory leak when device cannot be opened.
f19dbdb7 53827 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 53828 (grub_children_iterate): New prototype.
53829 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53830 New function.
53831 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53832 Return -1 if args.size was -1.
53833
4512e4f3 538342004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53835
53836 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53837 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53838 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53839 Open Firmware's memory for it; claim memory from _start to _end.
53840 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53841 (_end): New extern.
53842 (_start): Zero BSS from __bss_start to _end.
53843 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53844 New extern.
53845 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53846
4d61feb0 538472004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53848
ad0bd20b 53849 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53850 -1 if args.base was -1.
4d61feb0 53851
026fa2f9 538522004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53853
53854 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53855 escape sequence instead of a literal ^L. Also call
53856 grub_ofconsole_gotoxy.
53857
9f2220ef 538582004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53859
53860 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53861 void * arguments to grub_addr_t. All callers updated. Also make
53862 the `result' argument optional.
53863 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53864 All callers updated.
53865
8a572cd7 538662004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53867
53868 * commands/ls.c (grub_ls_list_files): Use the string following the
53869 initial ')', if present, as the filesystem path.
53870 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53871
53872 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53873
18aa81f2 538742004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53875
53876 Make the source code of the menu interface more readable.
f19dbdb7 53877
18aa81f2 53878 * normal/menu.c: Include grub/mm.h.
53879 (TERM_WIDTH): New macro.
53880 (TERM_HEIGHT): Likewise.
53881 (TERM_INFO_HEIGHT): Likewise.
53882 (TERM_MARGIN): Likewise.
53883 (TERM_SCROLL_WIDTH): Likewise.
53884 (TERM_TOP_BORDER_Y): Likewise.
53885 (TERM_LEFT_BORDER_X): Likewise.
53886 (TERM_BORDER_WIDTH): Likewise.
53887 (TERM_MESSAGE_HEIGHT): Likewise.
53888 (TERM_BORDER_HEIGHT): Likewise.
53889 (TERM_NUM_ENTRIES): Likewise.
53890 (TERM_FIRST_ENTRY_Y): Likewise.
53891 (TERM_ENTRY_WIDTH): Likewise.
53892 (TERM_CURSOR_X): Likewise.
53893 (draw_border): Use macros instead of magic numbers.
53894 (print_entry): Likewise.
53895 (print_entries): Likewise.
53896 (run_menu): Likewise. Also, handle the key 'e'.
53897 (run_menu_entry): Ignore empty command lines.
53898 (print_message): Added a new argument EDIT. If EDIT is true,
53899 print a different message.
53900 (init_page): Likewise.
53901 (edit_menu_entry): New function. Not implemented yet.
53902
b47efe30 539032004-09-17 Marco Gerards <metgerards@student.han.nl>
53904
53905 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53906 can be loaded from normal mode.
f19dbdb7 53907
b47efe30 53908 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53909 `multiboot.mod'.
53910 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53911 (multiboot_mod_CFLAGS): New variables.
53912 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 53913 * loader/i386/pc/multiboot_normal.c: Likewise.
53914
b47efe30 53915 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53916 attribute `unused'.
f19dbdb7 53917
b47efe30 53918 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53919 `fdiro' to read the mode information from instead of `diro'.
53920
53921 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53922 looking up a symlink.
53923
53924 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53925 macro.
53926 * normal/command.c (grub_command_execute): Don't parse the
53927 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53928 flags of the command.
53929
53930 * normal/menu.c (grub_menu_run): Fix typo.
53931
da75ac71 539322004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53933
53934 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53935
53936 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53937 `y + 1' instead of `y - 1'.
53938
53939 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 53940
062b24c2 539412004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53942
53943 From Hollis Blanchard <hollis@penguinppc.org>:
53944 * kern/misc.c (memmove): New alias for grub_memmove.
53945 (memcmp): New alias for grub_memcmp.
53946 (memset): New alias for grub_memset.
f19dbdb7 53947 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 53948 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 53949 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 53950 (grub_ieee1275_get_property): Likewise.
f19dbdb7 53951
8ddad845 539522004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53953
53954 Added normal mode command `chainloader' as module chain.mod, which
53955 depends on normal.mod and _chain.mod.
f19dbdb7 53956
8ddad845 53957 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53958 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53959 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53960 Deleted prototype.
53961 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53962 but arguments parsing moved to ...
53963 (grub_chainloader_cmd): ... here. New function.
53964 * include/grub/i386/pc/chainloader.h: New file.
53965 * loader/i386/pc/chainloader_normal.c: Likewise.
53966
2c1f4ce3 539672004-09-11 Marco Gerards <metgerards@student.han.nl>
53968
53969 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53970 (grub_mkimage_LDFLAGS): Likewise.
53971 (grub_emu_SOURCES): Likewise.
53972 (kernel_img_HEADERS): Added fshelp.h.
53973 * fs/ext2.c: Include <grub/fshelp.h>.
53974 (FILETYPE_REG): New macro.
53975 (FILETYPE_INO_REG): Likewise.
53976 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53977 Changed all users.
53978 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53979 all users.
53980 (grub_fshelp_node): New struct.
53981 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53982 to a pointer.
53983 (grub_ext2_get_file_block): Removed function.
53984 (grub_ext2_read_block): New function.
53985 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53986 This function was written.
53987 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53988 (grub_ext2_find_file): Removed function.
53989 (grub_ext2_read_symlink): New function.
53990 (grub_ext2_iterate_dir): Likewise.
53991 (grub_ext2_open): Rewritten.
53992 (grub_ext2_dir): Rewritten.
53993 * include/grub/fshelp.h: New file.
53994 * fs/fshelp.c: Likewise.
53995
3c52136a 539962004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53997
53998 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53999 (print_message): Add a missing newline.
54000 (run_menu): Added timeout support.
54001 (run_menu_entry): New local function.
54002 (grub_menu_run): Added support for booting.
54003
54004 * kern/loader.c (grub_loader_is_loaded): New function.
54005
54006 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54007 (grub_get_rtc): Exported.
54008
54009 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54010 (grub_get_rtc): Exported.
54011
54012 * include/grub/normal.h (struct grub_command_list): Remove
54013 constant from the member `command'.
54014
54015 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54016
54017 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54018
54019 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54020
aa033560 540212004-08-28 Marco Gerards <metgerards@student.han.nl>
54022
54023 Add support for the JFS filesystem.
54024
54025 * fs/jfs.c: New file.
54026 * include/grub/fs.h (grub_jfs_init): New prototype.
54027 (grub_jfs_fini): New prototype.
54028 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54029 (grub_emu_SOURCES): Likewise.
54030 (pkgdata_MODULES): Add jfs.mod.
54031 (jfs_mod_SOURCES): New variable.
54032 (jfs_mod_CFLAGS): Likewise.
54033 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54034 (grubof_SOURCES): Likewise.
54035 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54036
54037 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54038 endian to the host endian.
54039 (grub_fat_utf16_to_utf8): Move function from there...
54040 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 54041 the endianness of the source string anymore.
aa033560 54042 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54043
94bc45af 540442004-08-24 Marco Gerards <metgerards@student.han.nl>
54045
54046 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54047 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54048 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54049 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 54050
94bc45af 54051 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54052 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54053 for `node_found' and `it_dir'.
54054 (grub_hfs_dir): Add prototype for `dir_hook'.
54055
54056 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54057 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54058 and `indir32' to silence a gcc warning.
54059
54060 * include/grub/fs.h (grub_hfs_init): New prototype.
54061 (grub_hfs_fini): Likewise.
f19dbdb7 54062
54063
97543f08 540642004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54065
54066 Each disk device has its own id now. This is useful to make use
54067 of multiple disk devices.
f19dbdb7 54068
97543f08 54069 * include/grub/disk.h (grub_disk_dev_id): New enum.
54070 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54071 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54072
54073 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54074 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54075
54076 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54077 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54078
54079 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54080 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54081
54082 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54083 "id" which is used by the cache manager.
54084
54085 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54086 of just "GRUB".
54087
64372eb4 540882004-08-18 Marco Gerards <metgerards@student.han.nl>
54089
54090 * fs/hfs.c: New file.
54091 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54092 (grub_emu_SOURCES): Likewise.
54093 (pkgdata_MODULES): Add hfs.mod.
54094 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54095 (grubof_SOURCES): Likewise.
54096 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54097
54098 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54099 * kern/misc.c (grub_strncasecmp): Add function.
54100
cc61b58f 541012004-08-14 Marco Gerards <metgerards@student.han.nl>
54102
54103 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54104 with parentheses.
54105
54106 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54107 (grub_ext2_dir): In case the directory entry type is unknown, read
54108 it from the inode.
54109
0ef123f6 541102004-08-02 Peter Bruin <pjbruin@dds.nl>
54111
54112 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54113 grub_load_linux instead of grub_rescue_cmd_linux as second
54114 argument of grub_rescue_register_command.
54115
54116 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54117
a447c5df 541182004-07-27 Marco Gerards <metgerards@student.han.nl>
54119
54120 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54121 function.
54122 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54123 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54124 `loader/powerpc/ieee1275/linux.c',
54125 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54126 * include/grub/powerpc/ieee1275/ieee1275.h
54127 (grub_ieee1275_release): New prototype.
54128 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54129 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54130 normal, boot, linux and linux_normal.
54131 * loader/powerpc/ieee1275/linux.c: New file.
54132 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54133
5a9e3546 541342004-07-12 Marco Gerards <metgerards@student.han.nl>
54135
54136 * normal/arg.c (grub_arg_parse): Correct error handling after
54137 reallocating the argumentlist (check if `argl' is not null instead
54138 of checking if `args' is not null).
54139 * kern/mm.c (grub_realloc): Return the same pointer when using the
54140 same region, instead of returning the header address.
54141
e15199cb 541422004-07-11 Marco Gerards <metgerards@student.han.nl>
54143
54144 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54145 one block instead of two when looking for the initial partition.
54146 (grub_partition_probe): Initialize the local variable `p' with 0.
54147 Use base 10 for the grub_strtoul call.
54148 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54149 need for one local variable.
54150 (grub_strtoul): Don't add the new value to `num', instead of that
54151 just assign it.
54152
020616c2 541532004-07-11 Marco Gerards <metgerards@student.han.nl>
54154
54155 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54156 (pxeboot_img_SOURCES): New variable.
54157 (pxeboot_img_ASFLAGS): Likewise.
54158 (pxeboot_img_LDFLAGS): Likewise.
54159 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54160 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54161 <lode_leroy@hotmail.com>.
54162
6c51eb64 541632004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54164
54165 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54166 there was no input.
54167
cfb12aff 541682004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54169
54170 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54171 the history buffer logic.
54172
6eabba74 541732004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54174
54175 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54176 (FILETYPE_INO_SYMLINK): New macros.
54177 (grub_ext2_find_file): Check if the node is a directory using the
54178 inode stat information instead of using the filetype in the
54179 dirent. Exclude the first character of an absolute symlink.
54180 (grub_ext2_dir): Mask out the filetype part of the mode member of
54181 the inode.
54182
66e19ef8 541832004-05-24 Marco Gerards <metgerards@student.han.nl>
54184
54185 Add support for UFS version 1 and 2. Add support for the minix
54186 filesystem version 1 and 2, both the variants with 14 and 30 long
54187 filenames.
f19dbdb7 54188
66e19ef8 54189 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54190 fs/minix.c.
54191 (grub_emu_SOURCES): Likewise.
54192 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54193 (ufs_mod_SOURCES): New variable.
54194 (ufs_mod_CFLAGS): Likewise.
54195 (minix_mod_SOURCES): Likewise.
54196 (minix_mod_CFLAGS): Likewise.
54197 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54198 fs/minix.c.
54199 (grubof_SOURCES): Likewise.
54200 * fs/ufs.c: New file.
54201 * fs/minix.c: New file.
54202 * include/grub/fs.h (grub_ufs_init): New prototype.
54203 (grub_ufs_fini): Likewise.
54204 (grub_minix_init): Likewise.
54205 (grub_minix_fini): Likewise.
54206 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54207 minix fs.
54208
cc2e748a 542092004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54210
54211 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54212 commands/ls.c, commands/terminal.c, commands/boot.c,
54213 commands/cmp.c and commands/cat.c.
54214 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54215
54216 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54217 "env.h"
54218
4b13b216 542192004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54220
54221 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54222 and grub_, respectively. Because the conversion is trivial and
54223 mechanical, I omit the details here. Please refer to the CVS
54224 if you need more information.
54225
6a142551 542262004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54227
54228 * include/pupa: Renamed to ...
54229 * include/grub: ... this.
54230 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54231 * util/i386/pc/grub-mkimage.c: ... this.
54232 * util/i386/pc/pupa-setup.c: Renamed to ...
54233 * util/i386/pc/grub-setup.c: ... this.
54234 * util/pupa-emu.c: Renamed to ...
54235 * util/grub-emu.c: ... this.
54236
e56cdf21 542372004-03-29 Marco Gerards <metgerards@student.han.nl>
54238
54239 Add support for the newworld apple macintosh (PPC). This has been
54240 tested on the powerbook 2000 only. It only adds support for
54241 generic ieee1275 functions, console and disk support. This should
54242 be easy to port to other architectures with support for Open
54243 Firmware.
f19dbdb7 54244
e56cdf21 54245 * configure.ac: Accept the powerpc as host_cpu. In the case of
54246 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54247 specific tests are only executed while building for the i386.
54248 Inverse test for crosscompile.
54249 * genmk.rb (Utility): Allow assembler files.
54250 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54251 * conf/powerpc-ieee1275.rmk: New file.
54252 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54253 * disk/powerpc/ieee1275/partition.c: Likewise.
54254 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54255 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54256 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54257 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54258 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54259 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54260 * include/pupa/powerpc/ieee1275/loader.h
54261 * include/pupa/powerpc/setjmp.h: Likewise.
54262 * include/pupa/powerpc/types.h: Likewise.
54263 * kern/powerpc/ieee1275/init.c: Likewise.
54264 * kern/powerpc/ieee1275/openfw.c: Likewise.
54265 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54266
54267 These files were written by Johan Rydberg
54268 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 54269
e56cdf21 54270 * boot/powerpc/ieee1275/cmain.c: New file.
54271 * boot/powerpc/ieee1275/crt0.S: Likewise.
54272 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54273 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54274
8c8cc205 542752004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54276
54277 * Makefile.in: Update copyright.
54278 * genmodsrc.sh: Likewise.
54279 * gensymlist.sh: Likewise.
54280 * term/i386/pc/vga.c: Indent correctly.
54281
54282 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54283 bugreporting address.
54284 * util/i386/pc/pupa-setup.c (usage): Likewise,
54285 (main): Call pupa_ext2_init and pupa_ext2_fini.
54286
f19dbdb7 54287 * fs/fat.c (log2): Renamed to ...
8c8cc205 54288 (fat_log2): ... this.
54289 All callers changed.
54290 * kern/misc.c (memcpy): Alias to pupa_memmove.
54291 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54292 lvalue cast.
54293 * util/console.c (pupa_ncurses_fini): Return 0.
54294
54295 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54296 Move fail label here.
54297 [__GNU__]: Don't warn when using stat.
54298 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54299 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54300 long int. Use strtol instead of strtoul.
f19dbdb7 54301
db1771cf 543022004-03-14 Marco Gerards <metgerards@student.han.nl>
54303
54304 * commands/boot.c: New file.
54305 * commands/cat.c: Likewise.
54306 * commands/cmp.c: Likewise.
54307 * commands/ls.c: Likewise.
54308 * commands/terminal.c: Likewise.
54309 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54310 (pupa_register_command): Changed interface to match the new
54311 argument parser.
54312 (pupa_command_execute): Changed (almost rewritten) so it uses
54313 pupa_split_command. Added support for setting variables using the
54314 syntax `foo=bar'.
54315 (rescue_command): Changed to work with the new argument parser.
54316 (terminal_command): Moved from here to commands/terminal.c.
54317 (set_command): New function.
54318 (unset_command): New function.
54319 (insmod_command): New function.
54320 (rmmod_command): New function.
54321 (lsmod_command): New function.
54322 (pupa_command_init): Don't initialize the command terminal
54323 anymore. Initialize the commands set, unset, insmod, rmmod and
54324 lsmod.
54325 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54326 (kernel_img_HEADERS): Add arg.h and env.h.
54327 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54328 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54329 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54330 normal/arg.c.
54331 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54332 terminal.mod.
54333 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54334 (boot_mod_SOURCES): New variable.
54335 (terminal_mod_SOURCES): Likewise.
54336 (ls_mod_SOURCES): Likewise.
54337 (cmp_mod_SOURCES): Likewise.
54338 (cat_mod_SOURCES): Likewise.
54339
54340 * normal/arg.c: New file.
54341 * kern/env.c: Likewise.
54342 * include/pupa/arg.h: Likewise.
54343 * include/pupa/env.h: Likewise.
54344 * font/manager.c (font_command): Changed to match argument parsing
54345 interface changes.
54346 (PUPA_MOD_INIT): Likewise.
54347 * hello/hello.c (pupa_cmd_hello): Likewise.
54348 (PUPA_MOD_INIT): Likewise.
54349 * include/pupa/disk.h: Include <pupa/device.h>.
54350 (pupa_print_partinfo): New prototype.
54351 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54352 (pupa_dl_get_prefix): Likewise.
54353 * include/pupa/misc.h: Include <pupa/err.h>.
54354 (pupa_isgraph): New prototype.
54355 (pupa_isdigit): Likewise.
54356 (pupa_split_cmdline): Likewise.
54357 * include/pupa/normal.h: Include <pupa/arg.h>.
54358 (pupa_command): Changed the prototype of the member `func' to
54359 match the argument parsing interface. Added member `options'.
54360 (pupa_register_command): Updated to match function.
54361 (pupa_arg_parse): New prototype.
54362 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54363 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54364 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54365 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54366 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54367 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54368 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54369 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54370 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54371 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54372 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54373 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54374 * kern/disk.c: Include <pupa/file.h>.
54375 (pupa_print_partinfo): New function.
54376 * kern/dl.c: Include <pupa/env.h>.
54377 (pupa_dl_dir): Variable removed.
54378 (pupa_dl_load): Use the environment variable `prefix' instead of
54379 the variable pupa_dl_dir.
54380 (pupa_dl_set_prefix): Function removed.
54381 (pupa_dl_get_prefix): Likewise.
54382 * kern/i386/pc/init.c: Include <pupa/env.h>.
54383 (pupa_machine_init): Use the environment variable `prefix' instead of
54384 using pupa_dl_set_prefix to set the prefix.
54385 * kern/main.c: Include <pupa/env.h>.
54386 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54387 using pupa_dl_get_prefix to get the prefix.
54388 * kern/misc.c: Include <pupa/env.h>.
54389 (pupa_isdigit): New function.
54390 (pupa_isgraph): Likewise.
54391 (pupa_ftoa): Likewise.
54392 (pupa_vsprintf): Added support for printing values of the type
54393 `double'. Make it possible to format variable output when using
54394 formatting like `%1.2%f'.
54395 (pupa_split_cmdline): New function.
54396 * kern/rescue.c: Include <pupa/env.h>.
54397 (next_word): Removed function.
54398 (pupa_rescue_cmd_prefix): Likewise.
54399 (pupa_rescue_cmd_set): New function.
54400 (pupa_rescue_cmd_unset): New function.
54401 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54402 split the command line instead of splitting it here. Added
54403 support for setting variables using the syntax `foo=bar'. Don't
54404 initialize the prefix command anymore. Initialized the set and
54405 unset commands.
54406 * normal/cmdline.c: Include <pupa/env.h>.
54407 (pupa_tab_complete): Added prototypes for print_simple_completion,
54408 print_partition_completion, add_completion, iterate_commands,
54409 iterate_dev, iterate_part and iterate_dir. Moved code to print
54410 partition information from here to kern/disk.c.
fe6b695a 54411 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 54412 * normal/main.c: Include <pupa/env.h>.
54413 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54414 instead of using pupa_dl_get_prefix to get the prefix.
54415 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54416 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54417 warning.
54418 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54419 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54420 ((unused))' to silence a gcc warning.
54421 (pupa_vga_setcolor): Likewise.
54422 (debug_command): Changed to match argument parsing
54423 interface changes.
54424 * util/pupa-emu.c: Include <pupa/env.h>.
54425 (options): Added 0's for unused fields to silence a gcc warning.
54426 (argp): Likewise.
54427 (main): Use the environment variable `prefix' instead of using
54428 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54429 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54430 and terminal.
54431
54432 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54433 * util/misc.c: Include <malloc.h>.
54434 (pupa_malloc): Rewritten so errors are correctly reported.
54435 (pupa_realloc): Likewise.
54436 (pupa_memalign): Likewise.
54437 (pupa_mm_init_region): Declare unused variables with
54438 `__attribute__ ((unused))' to silence a gcc warning.
54439 * normal/i386/setjmp.S: Remove tab at the end of the file to
54440 silence a gcc warning.
54441 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54442 variables with `__attribute__ ((unused))' to silence a gcc
54443 warning.
54444 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54445 local variable i unsigned to silence a gcc warning.
54446
54447 * kern/term.c: Include <pupa/misc.h>.
54448 (pupa_more_lines): New variable.
54449 (pupa_more): Likewise.
54450 (pupa_putcode): When the pager is active pause at the end of every
54451 screen.
54452 (pupa_set_more): New function.
54453 * include/pupa/term.h (pupa_set_more): New prototype.
54454
54455
3b1139cb 544562004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54457
54458 Now this project is GRUB 2 rather than PUPA. The location of
54459 the CVS repository was moved to GRUB's.
f19dbdb7 54460
3b1139cb 54461 * configure.ac: Use bug-grub as the reporting address.
54462 Use GRUB instead of PUPA.
54463 Change the version number to 1.90.
54464
8367695c 544652004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54466
54467 * genkernsyms.sh: Updated copyright information.
54468 * genmk.rb: Likewise.
54469 * genmodsrc.sh: Likewise.
54470 * gensymlist.sh: Likewise.
54471 * boot/i386/pc/boot.S: Likewise.
54472 * boot/i386/pc/diskboot.S: Likewise.
54473 * disk/i386/pc/biosdisk.c: Likewise.
54474 * disk/i386/pc/partition.c: Likewise.
54475 * font/manager.c: Likewise.
54476 * fs/ext2.c: Likewise.
54477 * fs/fat.c: Likewise.
54478 * include/pupa/boot.h: Likewise.
54479 * include/pupa/device.h: Likewise.
54480 * include/pupa/disk.h: Likewise.
54481 * include/pupa/dl.h: Likewise.
54482 * include/pupa/elf.h: Likewise.
54483 * include/pupa/err.h: Likewise.
54484 * include/pupa/file.h: Likewise.
54485 * include/pupa/font.h: Likewise.
54486 * include/pupa/fs.h: Likewise.
54487 * include/pupa/kernel.h: Likewise.
54488 * include/pupa/loader.h: Likewise.
54489 * include/pupa/misc.h: Likewise.
54490 * include/pupa/mm.h: Likewise.
54491 * include/pupa/net.h: Likewise.
54492 * include/pupa/normal.h: Likewise.
54493 * include/pupa/rescue.h: Likewise.
54494 * include/pupa/setjmp.h: Likewise.
54495 * include/pupa/symbol.h: Likewise.
54496 * include/pupa/term.h: Likewise.
54497 * include/pupa/types.h: Likewise.
54498 * include/pupa/i386/setjmp.h: Likewise.
54499 * include/pupa/i386/types.h: Likewise.
54500 * include/pupa/i386/pc/biosdisk.h: Likewise.
54501 * include/pupa/i386/pc/boot.h: Likewise.
54502 * include/pupa/i386/pc/console.h: Likewise.
54503 * include/pupa/i386/pc/init.h: Likewise.
54504 * include/pupa/i386/pc/kernel.h: Likewise.
54505 * include/pupa/i386/pc/linux.h: Likewise.
54506 * include/pupa/i386/pc/loader.h: Likewise.
54507 * include/pupa/i386/pc/memory.h: Likewise.
54508 * include/pupa/i386/pc/multiboot.h: Likewise.
54509 * include/pupa/i386/pc/partition.h: Likewise.
54510 * include/pupa/i386/pc/time.h: Likewise.
54511 * include/pupa/i386/pc/vga.h: Likewise.
54512 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54513 * include/pupa/util/getroot.h: Likewise.
54514 * include/pupa/util/misc.h: Likewise.
54515 * include/pupa/util/resolve.h: Likewise.
54516 * kern/device.c: Likewise.
54517 * kern/disk.c: Likewise.
54518 * kern/dl.c: Likewise.
54519 * kern/err.c: Likewise.
54520 * kern/file.c: Likewise.
54521 * kern/fs.c: Likewise.
54522 * kern/loader.c: Likewise.
54523 * kern/main.c: Likewise.
54524 * kern/misc.c: Likewise.
54525 * kern/mm.c: Likewise.
54526 * kern/rescue.c: Likewise.
54527 * kern/term.c: Likewise.
54528 * kern/i386/dl.c: Likewise.
54529 * kern/i386/pc/init.c: Likewise.
54530 * kern/i386/pc/lzo1x.S: Likewise.
54531 * kern/i386/pc/startup.S: Likewise.
54532 * loader/i386/pc/chainloader.c: Likewise.
54533 * loader/i386/pc/linux.c: Likewise.
54534 * loader/i386/pc/multiboot.c: Likewise.
54535 * normal/cmdline.c: Likewise.
54536 * normal/command.c: Likewise.
54537 * normal/main.c: Likewise.
54538 * normal/menu.c: Likewise.
54539 * normal/i386/setjmp.S: Likewise.
54540 * term/i386/pc/console.c: Likewise.
54541 * term/i386/pc/vga.c: Likewise.
54542 * util/console.c: Likewise.
54543 * util/genmoddep.c: Likewise.
54544 * util/misc.c: Likewise.
54545 * util/pupa-emu.c: Likewise.
54546 * util/resolve.c: Likewise.
54547 * util/unifont2pff.rb: Likewise.
54548 * util/i386/pc/biosdisk.c: Likewise.
54549 * util/i386/pc/getroot.c: Likewise.
54550 * util/i386/pc/pupa-mkimage.c: Likewise.
54551 * util/i386/pc/pupa-setup.c: Likewise.
54552
e6eced71 545532004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54554
54555 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54556 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54557 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54558 reading and reset it after reading.
54559 (pupa_ext2_close): Return PUPA_ERR_NONE.
54560
54561 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54562 Correct value.
54563 (struct linux_kernel_header): Add kernel_version and
54564 initrd_addr_max.
54565 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54566 pupa_file_read succeeds.
54567 (pupa_rescue_cmd_initrd): Implement.
54568
5aded270 545692003-12-03 Marco Gerards <metgerards@student.han.nl>
54570
54571 * fs/ext2.c (pupa_ext2_label): New function.
54572 (pupa_ext2_fs): Added label.
54573 * fs/fat.c (pupa_fat_label): New function.
54574 (pupa_fat_fs): Added label.
54575 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54576
54577 * kern/misc.c (pupa_strndup): New function.
54578 * include/pupa/misc.h (pupa_strndup): New prototype.
54579
54580 * include/pupa/normal.h: Include <pupa/err.h>.
54581 (pupa_set_history): New prototype.
54582 (pupa_iterate_commands): New prototype.
54583 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54584 <pupa/disk.h>, <pupa/file.h>.
54585 (hist_size): New variable.
54586 (hist_lines): Likewise.
54587 (hist_end): Likewise.
54588 (hist_used): Likewise.
54589 (pupa_set_history): New function.
54590 (pupa_history_get): Likewise.
54591 (pupa_history_add): Likewise.
54592 (pupa_history_replace): Likewise.
54593 (pupa_tab_complete): Likewise.
54594 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54595 completion shows partitionnames while completing partitions, this
54596 feature was suggested by Jeff Bailey.
54597 * normal/command.c (pupa_iterate_commands): New function.
54598 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54599 (pupa_normal_init): Initialize history buffer.
54600 (PUPA_MOD_INIT): Likewise.
54601 (pupa_normal_fini): Free the history buffer.
54602 (PUPA_MOD_FINI): Likewise.
54603
54604 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54605 key.
54606
54607 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54608 * configure.ac [i386]: Check for regparam bug.
54609 (NESTED_FUNC_ATTR) [! i386]: Defined.
54610
1f7315a3 546112003-11-17 Marco Gerards <metgerards@student.han.nl>
54612
54613 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54614 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54615 (pupa_emu_SOURCES): New variable.
54616 (pupa_emu_LDFLAGS): Likewise.
54617 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54618 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54619 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54620 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54621 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54622 (pupa_jmp_buf): New typedef.
54623 (pupa_setjmp) [PUPA_UTIL]: New macro.
54624 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54625 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54626 (pupa_refresh): New prototype.
54627 * include/pupa/util/getroot.h: New file.
54628 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54629 it.
54630 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54631 (pupa_rescue_cmd_cat): Likewise.
54632 (pupa_rescue_cmd_ls): Likewise.
54633 (pupa_rescue_cmd_testload): Likewise.
54634 (pupa_rescue_cmd_lsmod): Likewise.
54635 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54636 * normal/menu.c (run_menu): Likewise.
54637 * kern/term.c (pupa_cls): Likewise.
54638 (pupa_refresh): New function.
54639 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54640 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54641 * util/console.c: New file.
f19dbdb7 54642
1f7315a3 54643 * util/i386/pc/getroot.c: New file.
54644 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54645 (pupa_putchar): New function.
54646 (pupa_refresh): Likewise.
54647 (xgetcwd): Function moved to ...
54648 (strip_extra_slashes): Likewise.
54649 (get_prefix): Likewise.
f19dbdb7 54650 * util/i386/pc/getroot.c: ... here.
1f7315a3 54651 (find_root_device): Function moved and renamed to...
54652 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54653 Changed all callers.
54654 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54655 and renamed to...
54656 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54657 Changed all callers.
54658 * util/misc.c (pupa_memalign): New function.
54659 (pupa_mm_init_region): Likewise.
54660 (pupa_register_exported_symbols): Likewise.
54661 (pupa_putchar): Function removed.
54662 * util/pupa-emu.c: New file.
54663
9a5c1ade 546642003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54665
54666 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54667 (_multiboot_mod_SOURCES): New variable.
54668 (_multiboot_mod_CFLAGS): Likewise.
54669 * loader/i386/pc/multiboot.c: New file.
54670 * include/pupa/i386/pc/multiboot.h: Likewise.
54671 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54672 (pupa_multiboot_real_boot): New function.
54673 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54674 (pupa_multiboot_real_boot): New prototype.
54675 (pupa_rescue_cmd_multiboot): Likewise
54676 (pupa_rescue_cmd_module): Likewise.
54677
54678 * kern/loader.c (pupa_loader_set): Continue when
54679 pupa_loader_unload_func() fails.
54680 (pupa_loader_unset): New function.
54681 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54682
54683 * kern/misc.c (pupa_stpcpy): New function.
54684 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54685
8e72a9c0 546862003-11-12 Marco Gerards <metgerards@student.han.nl>
54687
54688 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54689 for available extensions.
54690
54691 * include/pupa/i386/pc/time.h: New file.
54692 * kern/disk.c: Include <pupa/machine/time.h>.
54693 (PUPA_CACHE_TIMEOUT): New macro.
54694 (pupa_last_time): New variable.
54695 (pupa_disk_open): Flush the cache when there was a timeout.
54696 (pupa_disk_close): Reset the timer.
54697 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54698 pupa_currticks.
54699 * util/misc.c: Include <sys/times.h>
54700 (pupa_get_rtc): New function.
54701
c4adbd32 547022003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54703
54704 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54705 as blocks.
54706 (pupa_ext2_get_file_block): Use blocks member.
54707
54708 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54709 first block. Return -1 instead of pupa_errno on error.
54710
bfd30f06 547112003-10-27 Marco Gerards <metgerards@student.han.nl>
54712
54713 * README: In the pupa-mkimage example use _chain instead of chain
54714 and ext2 instead of fat.
54715 * TODO: Replace ext2fs with jfs as an example. Add an item for
54716 adding journal playback for ext2fs.
54717 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54718 (pkgdata_MODULES): Added ext2.mod.
54719 (ext2_mod_SOURCES): New variable.
54720 (ext2_mod_CFLAGS): Likewise.
54721 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54722 * include/pupa/misc.h (pupa_strncpy): New prototype.
54723 (pupa_strcat): Likewise.
54724 (pupa_strncmp): Likewise.
54725 * kern/misc.c (pupa_strcat): Enable function.
54726 (pupa_strncpy): New function.
54727 (pupa_strncmp): Likewise.
54728 * fs/ext2.c: New file.
f19dbdb7 54729
bfd30f06 54730 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54731 when the read failed before retrying.
54732 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54733 (_FILE_OFFSET_BITS): Likewise.
54734 * configure.ac: Added AC_SYS_LARGEFILE.
54735
98d15063 547362003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54737
54738 * genmk.rb (PModule#rule): Make sure to get only symbol names
54739 from the output of nm.
59cad637 54740 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 54741
18d9c7cd 547422003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54743
54744 I forgot to check in these changes for a long time. This adds
54745 incomplete support for VGA console, and this is still very
54746 buggy. Also, a lot of consideration is required for I18N,
54747 UNICODE, and VGA font issues. Therefore, assume that this is
54748 such that "better than nothing".
f19dbdb7 54749
18d9c7cd 54750 * font/manager.c: New file.
54751 * include/pupa/font.h: Likewise.
54752 * include/pupa/i386/pc/vga.h: Likewise.
54753 * term/i386/pc/vga.c: Likewise.
54754 * util/unifont2pff.rb: Likewise.
54755
54756 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54757 (pkgdata_MODULES): Added vga.mod and font.mod.
54758 (vga_mod_SOURCES): New variables.
54759 (vga_mod_CFLAGS): Likewise.
54760 (font_mod_SOURCES): Likewise.
54761 (font_mod_CFLAGS): Likewise.
54762
54763 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54764
54765 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 54766 (struct pupa_term): Added init and fini.
18d9c7cd 54767 Changed the argument of putchar to pupa_uint32_t.
54768
54769 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54770 (pupa_console_real_putchar): New prototype.
54771 (pupa_console_putchar): Removed.
54772 (pupa_console_checkkey): Exported.
54773 (pupa_console_getkey): Likewise.
54774
54775 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54776 characters.
54777
54778 * kern/term.c (pupa_term_set_current): Rewritten.
54779 (pupa_putchar): Likewise.
54780 (pupa_putcode): New function.
54781
54782 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54783 (pupa_console_real_putchar): ... this.
54784 (pupa_vga_set_mode): New function.
54785 (pupa_vga_get_font): Likewise.
54786
54787 * normal/command.c: Include pupa/term.h.
54788 (terminal_command): New function.
54789 (pupa_command_init): Register the command "terminal".
54790
54791 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54792 (DISP_UP): Likewise.
54793 (DISP_RIGHT): Likewise.
54794 (DISP_DOWN): Likewise.
54795 (DISP_HLINE): Likewise.
54796 (DISP_VLINE): Likewise.
54797 (DISP_UL): Likewise.
54798 (DISP_UR): Likewise.
54799 (DISP_LL): Likewise.
54800 (DISP_LR): Likewise.
54801
54802 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 54803
977329f5 548042003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54805
54806 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54807 FIX. Reverse the path_list.
54808
54809 * include/pupa/normal.h: Export pupa_register_command and
54810 pupa_unregister_command.
54811
54812 * hello/hello.c (pupa_cmd_hello): New module.
54813 * conf/i386-pc.rmk: Added hello.mod.
54814
1f5ab428 548152003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54816
54817 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 54818
1f5ab428 54819 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54820 (compress_kernel): New variable.
54821 (generate_image): Heavily modified to support compressing a
54822 large part of the core image.
54823
54824 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54825 leak.
54826 (pupa_util_load_image): New function.
54827
54828 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54829 (pupa_compressed_size): New variable.
54830 (codestart): Enable Gate A20 here.
54831 Decompress the compressed part of the core image.
54832 Rearrange the code to put functions and variables which are
54833 required for initialization in the non-compressed part.
54834 Include lzo1x.S.
54835
54836 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54837 here.
54838
54839 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54840
f19dbdb7 54841 * include/pupa/i386/pc/kernel.h
1f5ab428 54842 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54843 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54844 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54845 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54846 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54847
54848 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54849
54850 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54851 (Utility#rule): Likewise.
54852
54853 * configure.ac: Check if LZO is available.
54854
ce5bf700 548552003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54856
54857 * include/pupa/normal.h: New file.
54858 * include/pupa/setjmp.h: Likewise.
54859 * include/pupa/i386/setjmp.h: Likewise.
54860 * normal/cmdline.c: Likewise.
54861 * normal/command.c: Likewise.
54862 * normal/main.c: Likewise.
54863 * normal/menu.c: Likewise.
54864 * normal/i386/setjmp.S: Likewise.
f19dbdb7 54865
ce5bf700 54866 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54867 (pupa_rescue_cmd_initrd): Likewise.
54868
54869 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54870 Likewise.
54871
54872 * kern/i386/pc/startup.S (translation_table): New variable.
54873 (translate_keycode): New function.
54874 (pupa_console_getkey): Call translate_keycode.
54875
54876 * kern/rescue.c (attempt_normal_mode): New function.
54877 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54878 it failed, print a message.
54879
54880 * kern/mm.c (pupa_real_malloc): Print more information when a
54881 free magic is broken.
54882 (pupa_free): If the first free header is not free actually, set
54883 it to P.
54884
54885 * kern/main.c (pupa_load_normal_mode): Just load the module
54886 "normal".
54887 (pupa_main): Don't print the message
54888 "Entering into rescue mode..." here.
54889
54890 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54891 Declared.
54892 (pupa_rescue_cmd_initrd): Likewise.
54893 (pupa_rescue_cmd_initrd): Likewise.
54894
54895 * include/pupa/symbol.h (FUNCTION): Specify the type.
54896 (VARIABLE): Likewise.
54897
54898 * include/pupa/err.h (pupa_err_t): Added
54899 PUPA_ERR_UNKNOWN_COMMAND.
54900
54901 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54902 (pupa_dl_get_prefix): Likewise.
54903
54904 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54905 Added _chain.mod and _linux.mod instead of chain.mod and
54906 linux.mod.
54907 (chain_mod_SOURCES): Renamed to ...
54908 (_chain_mod_SOURCES): ... this.
54909 (chain_mod_CFLAGS): Renamed to ...
54910 (_chain_mod_CFLAGS): ... this.
54911 (linux_mod_SOURCES): Renamed to ...
54912 (_linux_mod_SOURCES): ... this.
54913 (linux_mod_CFLAGS): Renamed to ...
54914 (_linux_mod_CFLAGS): ... this.
54915 (normal_mod_SOURCES): New variable.
54916 (normal_mod_CFLAGS): Likewise.
54917 (normal_mod_ASFLAGS): Likewise.
54918
549192003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54920
54921 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54922 possible.
54923
fe6b695a 54924 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 54925 recursively.
54926 (pupa_dl_unref): Unrefer depending modules recursively.
54927 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54928 a module is unloaded before one depending on that module is
54929 unloaded.
54930 (pupa_dl_unload): Unload depending modules explicitly,
54931 if possible.
54932
c04da074 549332003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54934
54935 * include/pupa/i386/pc/linux.h: New file.
54936 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 54937
c04da074 54938 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54939 Removed.
54940 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54941 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54942 of PUPA_CHAINLOADER_BOOT_SECTOR.
54943
54944 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54945 (pupa_linux_prot_size): New variable.
54946 (pupa_linux_tmp_addr): Likewise.
54947 (pupa_linux_real_addr): Likewise.
54948 (pupa_linux_boot_zimage): New function.
54949 (pupa_linux_boot_bzimage): Likewise.
54950
54951 * kern/i386/pc/init.c (struct mem_region): New structure.
54952 (MAX_REGIONS): New macro.
54953 (mem_regions): New variable.
54954 (num_regions): Likewise.
54955 (pupa_os_area_addr): Likewise.
54956 (pupa_os_area_size): Likewise.
54957 (pupa_lower_mem): Likewise.
54958 (pupa_upper_mem): Likewise.
54959 (add_mem_region): New function.
54960 (compact_mem_regions): Likewise.
54961 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54962 the size of the conventional memory and that of so-called upper
54963 memory (before the first memory hole).
54964 Instead of adding each found region to free memory, use
54965 add_mem_region and add them after removing overlaps.
54966 Also, add only 1/4 of the upper memory to free memory. The rest
54967 is used for loading OS images. Maybe this is ad hoc, but this
54968 makes it much easier to relocate OS images when booting.
54969
54970 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54971 (pupa_enter_rescue_mode): Don't register initrd and module.
54972
54973 * kern/mm.c: Include pupa/dl.h.
54974
54975 * kern/main.c: Include pupa/file.h and pupa/device.h.
54976
54977 * kern/loader.c (pupa_loader_load_module_func): Removed.
54978 (pupa_loader_load_module): Likewise.
54979
54980 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54981 ``.o''.
54982
54983 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54984 (pupa_linux_tmp_addr): Likewise.
54985 (pupa_linux_real_addr): Likewise.
54986 (pupa_linux_boot_zimage): Likewise.
54987 (pupa_linux_boot_bzimage): Likewise.
54988
54989 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54990 (pupa_upper_mem): Likewise.
54991 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54992 module is too dangerous.
54993
54994 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54995 (pupa_os_area_size): Likewise.
54996 (pupa_loader_set): Remove the first argument. Loader doesn't
54997 manage modules or initrd any longer.
54998 (pupa_loader_load_module): Removed.
54999
55000 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55001 (linux_mod_SOURCES): New variable.
55002 (linux_mod_CFLAGS): Likewise.
55003
a13f9237 550042003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55005
55006 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55007 the length of a blocklist correctly.
55008
55009 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55010 Use ioctl only if the OS file is a block device.
55011 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55012 not very useful for normal files.
55013
55014 * kern/main.c (pupa_set_root_dev): New function.
55015 (pupa_load_normal_mode): Likewise.
55016 (pupa_main): Call those above.
55017
55018 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55019 pupa_uint16_t.
55020
55021 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55022
a5ffe966 550232003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55024
55025 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55026 (setup): Configure the installed partition information and the
55027 dl prefix.
55028
55029 * loader/i386/pc/chainloader.c (my_mod): New variable.
55030 (pupa_chainloader_unload): New function.
55031 (pupa_rescue_cmd_chainloader): Refer itself.
55032 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55033
55034 * kern/i386/pc/startup.S (install_partition): Removed.
55035 (version_string): Likewise.
55036 (config_file): Likewise.
55037 (pupa_install_dos_part): New variable.
55038 (pupa_install_bsd_part): Likewise.
55039 (pupa_prefix): Likewise.
55040 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55041
55042 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55043 and pupa/misc.h.
55044 (make_install_device): New function.
55045 (pupa_machine_init): Set the dl prefix.
55046
55047 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55048 (buf): Renamed to ...
55049 (linebuf): ... this.
55050 (pupa_rescue_cmd_prefix): New function.
55051 (pupa_rescue_cmd_insmod): Likewise.
55052 (pupa_rescue_cmd_rmmod): Likewise.
55053 (pupa_rescue_cmd_lsmod): Likewise.
55054 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55055 rmmod and lsmod.
55056
55057 * kern/mm.c (pupa_memalign): If failed even after invalidating
55058 disk caches, unload unneeded modules and retry.
55059
55060 * kern/misc.c (pupa_memmove): New function.
55061 (pupa_memcpy): Removed.
55062 (pupa_strcpy): New function.
55063 (pupa_itoa): Made static.
55064
55065 * kern/dl.c (pupa_dl_iterate): New function.
55066 (pupa_dl_ref): Likewise.
55067 (pupa_dl_unref): Likewise.
55068 (pupa_dl_unload): Return if succeeded or not.
55069 (pupa_dl_unload_unneeded): New function.
55070 (pupa_dl_unload_all): Likewise.
55071 (pupa_dl_init): Renamed to ...
55072 (pupa_dl_set_prefix): ... this.
55073 (pupa_dl_get_prefix): New function.
55074
55075 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55076 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55077 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55078 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55079 (pupa_install_dos_part): Declared.
55080 (pupa_install_bsd_part): Likewise.
55081 (pupa_prefix): Likewise.
55082 (pupa_boot_drive): Likewise.
55083
55084 * include/pupa/types.h: Fix a typo.
55085
55086 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55087 pupa_memmove.
55088 (pupa_memmove): Declared.
55089 (pupa_strcpy): Likewise.
55090
55091 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55092 pupa_mod_init takes one argument, its own module.
55093 (pupa_dl_unload_unneeded): Declared.
55094 (pupa_dl_unload_all): Likewise.
55095 (pupa_dl_ref): Likewise.
55096 (pupa_dl_unref): Likewise.
55097 (pupa_dl_iterate): Likewise.
55098 (pupa_dl_init): Renamed to ...
55099 (pupa_dl_set_prefix): ... this.
55100 (pupa_dl_get_prefix): Declared.
55101
55102 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 55103 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 55104 unloaded.
55105 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55106 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55107
55108 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55109 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55110
012d7999 551112003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55112
55113 * util/i386/pc/pupa-setup.c (setup): Define the internal
55114 function find_first_partition_start at the top level, because GCC
55115 3.0.x cannot compile internal functions in deeper scopes
55116 correctly.
55117 (find_root_device): Use lstat instead of stat.
55118 Don't follow symbolic links.
55119 Fix the path-constructing code.
55120
55121 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55122 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55123 by a BLKGETSIZE ioctl first, because block devices don't fill
55124 the member st_mode of the structure stat on Linux.
55125 [__linux__] (linux_find_partition): Use a temporary buffer
55126 REAL_DEV for the working space. Copy it to DEV before returning.
55127 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55128 buffer cache consistent.
55129 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55130 strncmp. The previous value was merely wrong.
55131 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55132
55133 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55134 FAT size is 12. The previous value was merely wrong.
55135
55136 * kern/main.c (pupa_main): Don't split the starting message from
55137 newlines.
55138
55139 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55140 LF, because BIOS goes crazy about character attributes in this
55141 case.
55142
1cc73a62 551432003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55144
55145 * include/i386/pc/util/biosdisk.h: New file.
55146 * util/i386/pc/biosdisk.c: Likewise.
55147 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 55148
1cc73a62 55149 * Makefile.in (INCLUDE_DISTFILES): Added
55150 include/pupa/i386/pc/util/biosdisk.h.
55151 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55152 directory util/i386/pc.
55153 (install-local): Added a rule for sbin_UTILITIES.
55154 (uninstall): Likewise.
55155
55156 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55157
55158 * util/misc.c (xrealloc): New function.
55159 (pupa_malloc): Likewise.
55160 (pupa_free): Likewise.
55161 (pupa_realloc): Likewise.
55162 (pupa_stop): Likewise.
55163 (pupa_putchar): Likewise.
55164
55165 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55166
55167 * include/pupa/util/misc.h (xrealloc): Declared.
55168
55169 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55170 macro.
55171 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55172 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55173
55174 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55175 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55176
55177 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55178 way should be implemented.
55179 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55180
55181 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55182 the size of NAME for safety.
55183 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55184 0x88.
55185
55186 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55187 (pupa_setup_SOURCES): Likewise.
55188
55189 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55190
08b70fe8 551912002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55192
55193 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55194 bunch of pushl's from pusha, because this destroys the return
55195 value.
55196
62ddcc8f 551972002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55198
55199 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55200 This means that any missing prototypes could be fatal. Also, you
55201 must take care when writing assembly code. See the comments at
55202 the beginning of startup.S, for more details.
f19dbdb7 55203
62ddcc8f 55204 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55205 compilation mechanism.
55206 (pupa_chainloader_real_boot): Likewise.
55207 (pupa_biosdisk_rw_int13_extensions): Likewise.
55208 (pupa_biosdisk_rw_standard): Likewise.
55209 (pupa_biosdisk_check_int13_extensions): Likewise.
55210 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55211 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55212 (pupa_get_memsize): Likewise.
55213 (pupa_get_mmap_entry): Likewise.
55214 (pupa_console_putchar): Likewise.
55215 (pupa_console_setcursor): Likewise.
55216 (pupa_getrtsecs): Use pushl instead of push.
55217
55218 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55219 memory instead of the stack for a mmap entry, because some
55220 BIOSes may ignore the maximum size and overflow.
55221
55222 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55223
55224 * genmk.rb (PModule#rule): Compile automatically generated
55225 sources with module-specific CFLAGS as well as other sources.
55226
9962ed99 552272002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55228
55229 * configure.ac: Check ld.
55230 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55231 respectively, before checking endianness and sizes.
55232
55233 * Makefile.in (LD): New variable.
f19dbdb7 55234
abdfc3c5 552352002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55236
55237 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55238
6a161fa9 552392002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55240
55241 * Changelog: New file.
55242