]> git.proxmox.com Git - grub2.git/blame - ChangeLog
grub-shell: support --files also for net boot
[grub2.git] / ChangeLog
CommitLineData
4b94e322
AB
12014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
2
3 * tests/util/grub-shell.in: Support --files also for netboot.
4
03d79a87
AB
52014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
6
3173c750
AB
7 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
8 memory leak (CID 73645, 73782).
03d79a87
AB
9 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
10 (CID 73635).
11
dbbac5a0
AB
122014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
13
14 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
15 inline array (CID 73610).
16
478b5675
AB
172014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
18
343dad41 19 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
f07784e8
AB
20 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
21 (Coverity CID 73813, 73710)
ea44693f
AB
22 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
23 and use after free (Coverity CID 73813, 73710, 73730)
24 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
25 CID 73854)
0415dbe2
AB
26 * util/grub-install-common.c (grub_install_get_target): Check return
27 value of grub_util_fd_read (Coverity CID 73819).
478b5675
AB
28 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
29 to hd.magic (Coverity CID 73587, 73888, bug 43690).
30
e2dd6daa
AB
312014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
32
33 * tests/util/grub-fs-tester.in: Consistently print output
34 of grub ls if test fails.
35
2ccaa3b9 362014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
004a2b1e
LL
37
38 * grub-core/kern/efi/init.c: check value of *path before
39 dereferencing.
40
72ec399a
MC
412014-11-03 Michael Chang <mchang@suse.com>
42
43 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
44 of neighbor solicitation packet in grub_netbuff_pull.
45
9a67e1ac
AB
462014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
47
48 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
49 avoid fatal warnings with older gcc (probably before 4.7).
50 * grub-core/loader/arm64/linux.c: Likewise.
51 * grub-core/loader/i386/linux.c: Likewise.
52 * grub-core/loader/i386/pc/linux.c: Likewise.
53 * grub-core/loader/ia64/efi/linux.c: Likewise.
54 * grub-core/loader/mips/linux.c: Likewise.
55 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
56 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
57
77063f4c
CW
582014-09-25 Colin Watson <cjwatson@ubuntu.com>
59
60 Fix in-tree --platform=none
61
62 * configure.ac: Only remove include/grub/cpu and
63 include/grub/machine in the --platform=none case, not all of
64 include/grub.
65
5d90f6e5
CW
662014-09-23 Colin Watson <cjwatson@ubuntu.com>
67
68 Add a new "none" platform that only builds utilities
69
70 * configure.ac: Add "none" platform. Default to it for unsupported
71 CPUs rather than stopping with a fatal error. Don't downgrade
72 x86_64-none to i386. Define COND_real_platform Automake conditional
73 if the platform is anything other than "none". Don't do any include
74 directory linking for "none".
75 * Makefile.am: Skip building grub-core and all bootcheck targets if
76 !COND_real_platform.
77 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
78 is defined.
79
954fe771
AB
802014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
81
82 Use grub_cpu_to_XXX_compile_time for constants.
83
0f1f95c7
VD
842014-09-21 Valentin Dornauer <valentin@unimplemented.org>
85
86 The AML parser implements only a small subset of possible AML
87 opcodes. On the Fujitsu Lifebook E744 this and another bug in
88 the parser (incorrect handling of TermArg data types) would lead
89 to the laptop not turning off (_S5 not found).
90
91 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
92 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
93 aren't always simply strings!); Add function to skip TermArgs
94 * include/grub/acpi.h: Add new opcodes
95
41c6f91f
VS
962014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * grub-core/normal/main.c: Don't drop to rescue console in
99 case of password-protected prompt and no menu entries.
100
7c378c39
VS
1012014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
102
103 * grub-core/commands/keylayouts.c: Ignore unknown keys.
104
2988a849
VS
1052014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
106
107 * grub-core/gmodule.pl.in: Accept newer binutils which output
108 empty column rather than 0x0.
109
0aece00c
MC
1102014-09-21 Michael Chang <mchang@suse.com>
111
112 * grub-core/osdep/unix/config.c: Remove extraneous comma.
113
1142014-09-21 Peter Jones <pjones@redhat.com>
631a8200
PJ
115
116 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
117 we don't free a random pointer from the stack.
118 * grub-core/loader/arm64/linux.c: Likewise.
119 * grub-core/loader/i386/linux.c: Likewise.
120 * grub-core/loader/i386/pc/linux.c: Likewise.
121 * grub-core/loader/ia64/efi/linux.c: Likewise.
122 * grub-core/loader/mips/linux.c: Likewise.
123 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
124 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
125
60049a0e
CW
1262014-09-15 Khem Raj <raj.khem@gmail.com>
127
a276b840
KR
128 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
129 _BSD_SOURCE to avoid warnings under glibc 2.20+.
130
54bd9a06
MC
1312014-09-08 Michael Chang <mchang@suse.com>
132
133 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
134 check; comparing &data->extent against addresses in the region it
135 points to is unpredictable.
136
2a5a532c
CW
1372014-09-07 Colin Watson <cjwatson@ubuntu.com>
138
139 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
140
141 * configure.ac: Remove -m64 from checks for -mcmodel=large and
142 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
143 already in TARGET_CFLAGS at this point, and they produce incorrect
144 results when building for x32.
145 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
146 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
147 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
148 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
149
4d94b2db
CW
1502014-09-07 Colin Watson <cjwatson@ubuntu.com>
151
152 * configure.ac: Remove several unnecessary semicolons.
153
1de3a480
CW
1542014-08-25 Colin Watson <cjwatson@ubuntu.com>
155
156 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
157 Initialise pend to pacify GCC.
158
c291f47b
AB
1592014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
160
161 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
162 gettext_printf).
163
3c058332
VS
1642014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
165
166 * grub-core/term/at_keyboard.c: Retry probing keyboard if
167 scancode setup failed.
168
d1224d20
VS
1692014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
170
171 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
172
0af3ae2d
VS
1732014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
174
175 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
176 safety to avoid triggerring VirtualBox bug.
177
33f6ce67
VS
1782014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
179
180 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
181
79c80b06
VS
182 Fixes hang on virtualbox.
183
0901e785
CW
1842014-07-08 Colin Watson <cjwatson@ubuntu.com>
185
186 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
187 kernels whose paths contain regex metacharacters.
188 * util/grub.d/10_kfreebsd.in: Likewise.
189 * util/grub.d/10_linux.in: Likewise.
190 * util/grub.d/20_linux_xen.in: Likewise.
191
192 Reported by: Heimo Stranner.
193
4250f552
CW
1942014-06-26 Colin Watson <cjwatson@ubuntu.com>
195
196 * docs/grub-dev.texi (Finding your way around): The build system no
197 longer uses AutoGen directly.
198
1f6af2a9
РП
1992014-06-21 Роман Пехов <roman_pekhov>
200
201 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
202
fa335308
GW
2032014-06-21 Glenn Washburn <development@efficientek.com>
204
205 * util/grub-install.c: Fix handling of --disk-module.
206
15bd333e
SR
2072014-06-21 Stephane Rochoy <sheda>
208
209 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
210 EFI system table.
211
3f3ec8ef
SR
2122014-06-21 Stephane Rochoy <sheda>
213
214 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
215 EFI system table physical address.
216
87de66d9
TW
2172014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
218
219 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
220
2c2c5c72
VS
2212014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
222
223 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
224
480c8985
VS
2252014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
226
227 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
228 check.
229
4b8b9135
VS
2302014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
231
232 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
233
234 Reported by: Yves Blusseau <blusseau@zetam.org>.
235
5a6db38d
PK
2362014-04-20 Piotr Krysiuk <piotras@gmail.com>
237
238 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
239 GDT in conventional memory.
240
3a310e84
CW
2412014-04-10 Colin Watson <cjwatson@ubuntu.com>
242
243 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
244 UUID. Other parts of grub-mkconfig tolerate these, they were
245 previously allowed here up to commit
246 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
247 practice when the system has active LVM snapshots.
248 Fixes Ubuntu bug #1287436.
249
c4badfe8
CW
2502014-04-10 Colin Watson <cjwatson@ubuntu.com>
251
252 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
253 "logical_volumes" block a little more accurately.
254
a72fc329
VS
2552014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
256
257 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
258
6f6d4aa0
VS
2592014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
260
261 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
262 pulled from libgcc.
263
8063ce19
VS
2642014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
265
266 Replace few instances of memcmp/memcpy in the code that should be
267 grub_memcmp/grub_memcpy.
268
97060667
VS
2692014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
270
271 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
272 device names.
273
4afd0107
TF
2742014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
275
276 btrfs: fix get_root key comparison failures due to endianness
277
278 * grub-core/fs/btrfs.c (get_root): Convert
279 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
280
24024dac
CW
2812014-03-31 Colin Watson <cjwatson@ubuntu.com>
282
283 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
284
285 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
286 no longer to be forgiving of trailing spaces on grub-probe output
287 lines, which among other things means that util/grub.d/10_linux.in
288 no longer detects LVM. To fix this, make grub-probe's output
289 delimiting more consistent. As a bonus, this improves the coverage
290 of the -0 option.
291
292 Fixes Debian bug #735935.
293
294 * grub-core/disk/cryptodisk.c
295 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
296 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
297 Likewise.
298 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
299 Update prototype.
300 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
301 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
302 probe_mods): Adjust for extra user-data arguments.
303 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
304 probe_abstraction): Use configured delimiter. Update callers.
305
9b35fe81
CW
3062014-03-31 Colin Watson <cjwatson@ubuntu.com>
307
308 * util/grub-probe,c (options): Make -0 work again (broken by
309 conversion to argp).
310 (main): Simplify logic.
311
46b74dd3
VS
3122014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
313
314 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
315
68f17b2b
FW
3162014-03-26 Fu Wei <fu.wei@linaro.org>
317
318 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
319
86402b4e
VS
3202014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
321
322 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
323 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
324
325 Suggested by: Markus Müller.
326
bec35dad
VS
3272014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
328
329 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
330 if E820 failed to return any regions.
331
dfc5ccfa
VS
3322014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
333
334 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
335 tables for low memory calculations.
336
4a70fed8
VS
3372014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
338
339 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
340 location to 640K.
341
f94b2b4e
VS
3422014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
343
344 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
345 region.
346
d0949e37
VS
3472014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
348
349 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
350 exclusively.
351
9585647a
PFS
3522014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
353
354 Add bootpath parser for open firmware.
355
356 It enables net boot even when there is no bootp/dhcp server.
357
358 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
359 and call it at grub_ieee1275_net_config_real.
360 * grub-core/kern/ieee1275/init.c: Add bootpath to
361 grub_ieee1275_net_config.
362 * include/grub/ieee1275/ieee1275.h: Likewise.
363
364
e4dbf247
PFS
3652014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
366
367 Add grub_env_set_net_property function.
368
369 * grub-core/net/bootp.c: Remove set_env_limn_ro.
370 * grub-core/net/net.c: Add grub_env_set_net_property.
371 * include/grub/net.h: Likewise.
372
006c78f3
VS
3732014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
374
375 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
376
511ece7c
VS
3772014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
378
379 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
380
9abbaae7
VS
3812014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
382
383 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
384 7 seconds to recover if last poweroff was bad.
385
d6b94c5e
VS
3862014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
387
388 * grub-core/disk/ahci.c: Properly handle transactions with no
389 transferred data.
390
07ea8daa
VS
3912014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
392
393 * grub-core/disk/ahci.c: Add safety cleanups.
394
3142b2fe
VS
3952014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
396
397 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
398 slots to avoid pointing to uninited area.
399
4686e163
VS
4002014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
401
402 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
403 enabling busmaster for the end.
404
ba424f37
VS
4052014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
406
407 * util/grub-mkfont.c: Downgrade warnings about unhandled features
408 to debug.
409
3beabdc8 4102014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7f64fb59
VS
411
412 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
413
ba584da1
PFS
4142014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
415
416 * .gitignore: add missing files and .exe variants.
417
35f2d96c
MG
4182014-01-26 Mike Gilbert <floppym@gentoo.org>
419
420 grub-install: support for partitioned partx loop devices.
421
422 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
423 /dev/loopX as being the parent of /dev/loopXpY.
424
9afe2053
VS
4252014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
428 Ensure that pointers are inited to NULL and that pointers are not
429 accessed after free.
5ae584c0
AB
430
4312014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
432
433 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
434 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
435 * include/grub/emu/misc.h: ... and here.
436 * include/grub/err.h: ... and here.
437 * util/import_gcry.py: ... and here (in files g10lib.h).
438
1440b7eb
AB
4392014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
440
441 * util/grub-mkimage.c: Make prefix argument mandatory.
442
61c8482b
VS
4432014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
444
445 Fix several translatable strings.
446
447 Suggested by: D. Prévot.
448
95cd131e
VS
4492014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
450
451 * util/grub-install.c: List available targets.
452
d0805930
CW
4532014-01-23 Colin Watson <cjwatson@ubuntu.com>
454
455 * util/grub-install.c (write_to_disk): Add an info message.
456
eec4237a
AB
4572014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
458
459 * Makefile.am: Allow adding extra files to generated Windows ZIP
460 archive by setting GRUB_WINDOWS_EXTRA_DIST.
461
36387ece
AB
4622014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
463
464 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
443b3222 465 Show detected font path in summary.
36387ece 466
6f65e36c
PFS
4672014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
468
469 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
470 interval gradually.
471 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
472 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
473 * grub-core/net/tftp.c (tftp_open): Likewise.
474 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
475
d99d2f84
PFS
4762014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
477
478 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
479 infinite loops.
480
481 In net/net.c there is a while (1) that only exits if there is a stop
482 condition and more then 10 packages or if there is no package received.
483
484 If GRUB is idle and enter in this loop, the only condition to leave is
485 if it doesn't have incoming packages. In a network with heavy traffic
486 this never happens.
487
049f6382
CW
4882014-01-19 Colin Watson <cjwatson@ubuntu.com>
489
490 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
491 EPERM when modifying kern.geom.debugflags. It is only a problem for
492 such things as installing GRUB to the MBR, in which case there'll be
493 an error later anyway, not for opening files during tests.
494
01504547
AB
4952014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
496
497 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
498 instead of MOD_FILES.
499 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
500 both with and without .exe.
501 * grub-core/genemuinitheader.sh: Same.
502
b204b718
VS
5032014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
504
505 * util/grub-install.c: Fix a typo.
506
41155a57
VS
5072014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
508
509 * grub-core/normal/main.c (read_config_file): Buffer config file.
510 Reduces boot time.
511
e0a85094
AB
5122014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
513
514 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
515 symbolic link to directory. It fails in Msys shell on Windows 2003.
516
0b47c57a
VS
5172014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
518
519 * Makefile.am (default_payload.elf): Add modules
520 multiboot cbmemc linux16 gzio echo help.
521
5222014-01-18 Mike Gilbert <floppym@gentoo.org>
6ba98355
MG
523
524 * Makefile.util.def: Link grub-ofpathname with zfs libs.
525
6c519b5c
VS
5262014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
527
528 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
529 conflicts.
530
531 Reported by: Andrey Borzenkov.
532
f371dd5d
AB
5332014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
534
535 * include/grub/misc.h: Move macros for compiler features to ...
536 * include/grub/compiler.h: ... new file.
537 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
538 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
539 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
540 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
541 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
542 * grub-core/video/capture.c: Include <grub/misc.h>.
543 * include/grub/command.h: Include <grub/misc.h>.
544 * include/grub/dl.h: Include <grub/misc.h>.
545 * include/grub/procfs.h: Include <grub/misc.h>.
546
1ecf96fc
AB
5472014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
548
549 * configure.ac: Add support for BUILD_EXEEXT and use it ...
550 * Makefile.am: ... here.
551 * Makefile.util.def: ... and here.
552 * grub-core/Makefile.am: ... and here.
553
5ef569df
AB
5542014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
555
556 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
557 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
558
3abb9563
VS
5592014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
560
561 * grub-core/term/terminfo.c: Recognize keys F1-F12.
562
9b9c4686 5632014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
dcecae1a
AB
564
565 * configure.ac: Add support for BUILD_LDFLAGS.
566 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
567 * grub-core/Makefile.am: ... and here.
568 * INSTALL: Mention BUILD_LDFLAGS.
569
ae80f312
VS
5702014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
571
572 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
573
7e7293d7
VS
5742014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
575
576 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
577 and has no //.
578
5acc8020
VS
5792014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
580
581 * NEWS: Add few missing entries.
582
ff66b8e7
CW
5832014-01-17 Colin Watson <cjwatson@ubuntu.com>
584
585 * util/grub.d/00_header.in (make_timeout): Use && rather than test
586 -a.
587 * util/grub.d/10_windows.in: Likewise.
588 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
589 than test -o.
590 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
591 rather than test -o.
592
5932014-01-17 Colin Watson <cjwatson@ubuntu.com>
09a836e5
CW
594
595 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
596 redundant preprocessor conditional.
597
ccd21a65
CW
5982014-01-08 Colin Watson <cjwatson@ubuntu.com>
599
600 * Makefile.util.def (grub-macbless): Change mansection to 8.
601
4d21c101
LL
6022014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
603
604 * grub-core/loader/arm64/linux.c: correctly set device path end length.
605
e7cfa8d5
AB
6062014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
607
608 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
609 arm64 to comply with EFI specification. Also use grubaa64.efi for
610 consistency.
611 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
612
94cee4a4
AB
6132014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
614
615 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
616 on MinGW-64 when compiling for 32 bits.
617
668add25
AB
6182013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
619
620 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
621
0e309454
VS
6222013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
623
624 * NEWS: Add few missing entries. Correct existing ones.
625
093dec73
VS
6262013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
627
628 Don't abort() on unavailable coreboot tables if not running on coreboot.
629
989af025
AB
6302013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
631
632 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
633 on mingw.
634
8442d3e9
CW
6352013-12-28 Colin Watson <cjwatson@ubuntu.com>
636
637 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
638 mention of it from 2.02.
639
645ff636 6402013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5bda44d7
VS
641
642 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
643
644 As these functions are used on pre-ARMv6 CPUs as well we don't want
645 to make assembler assume that architecture is higher than default one.
646
30a33846
CW
6472013-12-27 Colin Watson <cjwatson@ubuntu.com>
648
649 * NEWS: First draft of 2.02 entry.
650
51f941a0
CW
6512013-12-27 Colin Watson <cjwatson@ubuntu.com>
652
653 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
654 * docs/grub.texi (Getting the source code): Likewise.
655
a6e7719b
AB
6562013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
657
658 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
659 detection.
660
e8f07821
VS
6612013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
662
663 * configure.ac: Set version to 2.02~beta2.
664
dc3286ad
VS
6652013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
666
667 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
668
46f8d358
AB
6692013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
670
671 * util/grub-probe.c: Improve help message and simplify list handling.
672
09c47900
VS
6732013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
674
675 Fix buffer overflow in grub_efi_print_device_path.
676
4d6c6953
VS
6772013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
678
679 Show SATA device path.
680
faf4a65e
VS
6812013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
682
683 Revert grub-file usage in grub-mkconfig.
684
e5fa26e5
VS
6852013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
686
687 Make newly-created files other than grub.cfg world-readable.
688
569766e4
AB
6892013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
690
691 * util/grub.d/00_header.in: Improve compatibility with old config.
692
41272068
VS
6932013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
694
695 Make rijndael.c respect aliasing rules.
696
697 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
698
f7c7c4d4
VS
6992013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
700
701 Make grub_util_device_is_mapped_stat available in grub-emu core.
702
57bc5d43
VS
7032013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
704
705 Add -Qn to TARGET_CFLAGS if it's supported.
706 Fixes compilation on cygwin.
707
708 Reported by: Andrey Borzenkov.
709 Suggested by: Andrey Borzenkov.
710
6a7957f9
VS
7112013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
712
713 Save TARGET_CC version in modinfo.sh.
714
715 Suggested by: Andrey Borzenkov.
716
e88f0420
VS
7172013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
718
719 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
720 follow the same algorithm to avoid method mismatch. Don't assume
721 DMRAID- UUID to mean full disk but instead check that mapping is linear.
722
da986226
VS
7232013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
724
725 Declare GRUB_EFI_VENDOR_APPLE_GUID.
726
fba31b5f
VS
7272013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
728
729 Dump type and vendor specific data when printing device path.
730
3d369a01
CW
7312013-12-23 Colin Watson <cjwatson@debian.org>
732
733 Update some documentation to refer to Git rather than Bazaar.
734
735 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
736 than Bazaar.
737 * po/README: Likewise. Fix spelling mistake.
738
5b83ef97
CW
7392013-12-23 Colin Watson <cjwatson@ubuntu.com>
740
741 Don't distribute config.h.
742
743 * Makefile.am (platform_HEADERS): Move to ...
744 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
745 failure when building from a distributed tarball.
746
16f7455b
CW
7472013-12-23 Colin Watson <cjwatson@ubuntu.com>
748
749 * configure.ac: Fix spelling.
750 * grub-core/commands/parttool.c: Fix grammar.
751 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
752 Embedding Partition".
753
808e97c4
VS
7542013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
755
756 ARM64 support for grub-mkrescue.
757
e388db90
VS
7582013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
759
760 Install modinfo.sh to keep build information around.
761
cef39403
VS
7622013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
763
764 * grub-core/modinfo.sh.in: Add build config information.
765
a4d61002
VS
7662013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
767
768 ARM64 grub-file and grub-mkconfig support.
769
0c930a84
VS
7702013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
771
772 Remove leftover options defines.
773
74fa9ac1
VS
7742013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
775
776 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
777
62956fe7
VS
7782013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
779
780 * grub-core/loader/arm64/linux.c: Add missing bracket.
781
26063216
VS
7822013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
783
784 Add arm64-efi recognition to grub-file.
785
4cd0b55f
VS
7862013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
787
788 Fix ia64-efi recognition in grub-file.
789
95b56e3a
VS
7902013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
791
792 Recognize raspberry pi kernel in grub-file.
793
bbc52c22
VS
7942013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
795
796 Enable cache on ARM U-Boot port.
797
798 Without it the port is reidiculously slow.
799
943981ff
VS
8002013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
801
802 Fix ARM cache maintainance.
803
804 More code was converted from ASM to C for easier handling.
805
adabfb54
VS
8062013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
807
808 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
809 algorithm on v5.
810
811 Suggested by: Leif Lindholm.
812
77ec462a
AB
8132013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
814
815 * util/grub-mkconfig.in: Fix Xen platform conditions.
816
3bf2db89
AB
8172013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
818
819 * util/grub-mkrescue.c: Split single help message string in several
820 strings used in previous shell version.
821
30a9ab95
LL
8222013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
823
824 Add arm64 Linux loader.
825
c415eaa9
LL
8262013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
827
828 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
829
313fb3ce
VS
8302013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
831
832 Add module loading and parsing boot time checkpoints.
833
37f617c0
VS
8342013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
835
836 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
837 platforms.
838
3deedfc0
LW
8392013-12-22 Lars Wendler <polynomial-c@gentoo.org>
840
841 * util/grub-mkconfig.in: Skip non-executable files.
842
5ad9f728
VS
8432013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
844
845 Workaround buggy timer in raspberry pie by using our own timer
846 implementation.
847
eeb84997
VS
8482013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
849
850 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
851 Increase to 16 MiB to allow loading the whole memdisk.
852
0d8b81f8
VS
8532013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
854
855 Fix ARM Linux Loader on non-FDT platforms.
856
bf082198
VS
8572013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
858
859 * configure.ac: Choose link format based on host_os on emu.
860
0b602bf9
VS
8612013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
862
863 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
864
96650a82
VS
8652013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
866
867 * grub-core/kern/emu/main.c: Build fix for emu.
868
ca3e2088
VS
8692013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
870
871 Build fixes for argp.h with older gcc.
872
27db1a9b
VS
8732013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
874
875 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
876 in strings.
877
878 Suggested by: David Prévot.
879
8a913e66
VS
8802013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
881
882 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
883
ae558c2c
VS
8842013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
885
886 Enable -Wformat=2 if it's supported.
887
bbac6789
VS
8882013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
889
890 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
891 -Wmissing-declarations if supported.
892
ab216512
VS
8932013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
894
895 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
896 u32 as both HFS and HFS+ have 32-bit inodes.
897
0d4aa91d
VS
8982013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
899
900 * include/grub/misc.h (grub_strtol): Fix overflow.
901
a997af68
VS
9022013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
905 as return type in both conditionals.
906
36bcaf29
VS
9072013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
908
909 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
910 to use uint8_t for color.
911
74763e96
VS
9122013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
913
914 * util/misc.c (grub_util_get_image_size): Check for overflow.
915
80b29fc9
VS
9162013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
917
918 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
919 for size.
920
6e327fcd
VS
9212013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
924 for pointer difference.
925
62ce03cf
VS
9262013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
927
928 * util/import_gcry.py: Skip sample keys.
929
f4d70fd0
VS
9302013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
931
932 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
933
93bf55e6
VS
9342013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * configure.ac: Remove duplicate warning arguments.
937
579ee114
VS
9382013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
939
940 Add missing static qualifiers.
941
ee5283d6
VS
9422013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
943
944 Add missing includes.
945
5dbde526
VS
9462013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
947
948 Inline printf templates when possible to enable format checking.
949
d88ae4f0
VS
9502013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
951
952 * include/grub/crypto.h: Don't discard const attribute.
953
17b43559
VS
9542013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
957 was intended.
958
76a2a430
VS
9592013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
960
961 * grub-core/lib/crypto.c: Don't discard const attribute.
962
0d26164e
VS
9632013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
964
965 * grub-core/lib/disk.c: Fix potential overflow.
966
2622b1e8
VS
9672013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
968
969 * grub-core/lib/arg.c: Don't discard const attribute.
970
05126706
VS
9712013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
972
973 * grub-core/kern/dl.c: Don't discard const attribute.
974
2f9c4804
VS
9752013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
976
977 * grub-core/kern/disk.c: Fix potential overflow.
978
0438ebf1
VS
9792013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
980
981 * conf/Makefile.common: Don't include non-existing directory
982 grub-core/lib/libgcrypt-grub/include.
983
065adc34
VS
9842013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
985
986 Clarify several translatable messages.
987
496a6b30
DP
9882013-12-21 David Prévot <david@tilapin.org>
989
990 Correct some translatable strings.
991
971038be
CW
9922013-12-21 Colin Watson <cjwatson@ubuntu.com>
993
994 * util/grub-mkrescue.c: Rephrase mkrescue description.
995
bfdfeb25
VS
9962013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
9972013-12-21 Colin Watson <cjwatson@ubuntu.com>
998
999 Clarify several translatable messages.
1000
d642d761
CW
10012013-12-20 Colin Watson <cjwatson@ubuntu.com>
1002
1003 Be more verbose about some configure failures.
1004
3bc1b2da
CW
10052013-12-20 Colin Watson <cjwatson@ubuntu.com>
1006
1007 Fix various build problems on GNU/Hurd.
1008
1009 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1010 !defined (__GNU__).
1011 (xgetcwd): Likewise.
1012 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1013 [__GNU__]: Add prototype.
1014 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1015 long int using %ld rather than %d.
1016
871aa709
VS
10172013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 * util/grub-install.c: Inform user about install platform.
1020
2fa5a58c
VS
10212013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * configure.ac: Set version to 2.02~beta1.
1024
ee281fd0
AP
10252013-12-18 Allen Pais <allen.pais@oracle.com>
10262013-12-18 Bob Picco <bob.picco@oracle.com>
1027
1028 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1029
2e238b37
VS
10302013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1031
1032 Make grub_zlib_decompress handle incomplete chunks.
1033
1034 Fixes squash4.
1035
2984035e
VS
10362013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1037
1038 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1039 on i386-multiboot.
1040
b9f03772
AN
10412013-12-18 Aleš Nesrsta <starous@volny.cz>
1042
1043 * grub-core/disk/usbms.c: Retry on unknown errors.
1044 Reuse the same tag on retries.
1045
e3ef0d30
AN
10462013-12-18 Aleš Nesrsta <starous@volny.cz>
1047
1048 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1049
1050 Avoid confusing them with already completed transfers.
1051
72c9a507
VS
10522013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1053
1054 Remove xen VFB.
1055
1056 Due to XEN bug it prevents Linux boot. Remove it at least, until
1057 workaround is found.
1058
84455670
VS
10592013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 * po/exclude.pot: Add 2 missing excludes.
1062
64dd5fdc
VS
10632013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 Add missing license section in macbless.mod and macho.mod.
1066
a29f317a
VS
10672013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 Allow compilation without thumb-interwork as long as no thumb is
1070 involved or only thumb2 is used.
1071
113f7869
VS
10722013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1075
eba2afed
VS
10762013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1077
1078 Add __attribute__ ((sysv_abi)) only if it's really needed.
1079
1080 Some compilers don't support it.
1081
1962ed95
VS
10822013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1085
c2be6f7e
VS
10862013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 Remove -Wold-style-definition.
1089
1090 Not very useful and interaction of it with regexp depends on GCC
1091 version.
1092
7a7f5238
VS
10932013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1094
1095 Make grub_util_get_windows_path_real static.
1096
9246d5c8
VS
10972013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1098
1099 * grub-core/commands/fileXX.c: Silence cast-align.
1100 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1101
b3aea1bc
VS
11022013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1105 rather than LL suffix.
1106
bc8dd119
VS
11072013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1108
e8c360ca
VS
1109 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1110
11112013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1112
1113 * grub-core/loader/arm/linux.c: Use common initrd functions.
bc8dd119 1114
57a691b7
VS
11152013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1116
1117 Decrease number of strings to translate.
1118
74fa9417
VS
11192013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1122
636977b0
VS
11232013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 Mark strings for translation and add remaining ones to exclude list.
1126
ee4450eb
VS
11272013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1128
1129 * util/grub-file.c (main): Fix sizeof usage.
1130
11312013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
a43b3e5d
VS
1132
1133 Silence spurious warning.
1134
ee4450eb 11352013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
81294aff
VS
1136
1137 Remove check_nt_hiberfil as it's been superseeded by file command.
1138
a99c0a32
VS
11392013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1140
1141 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1142
8f5add13
VS
11432013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 Implement syslinux parser.
1146
8ff35d0a
VS
11472013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1150
ba144760
VS
11512013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 Support cpuid --pae.
1154
daaa89db
VS
11552013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1156
1157 Use AT keyboard on Yeeloong 3A.
1158
25a7863d
VS
11592013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 Add Yeeloong 3A reboot and halt.
1162
184c61dd
VS
11632013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1164
1165 Add Radeon Yeeloong 3A support.
1166
fd4650a5
VS
11672013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1168
1169 Add bonito 3A support.
1170
3e88fbfa
VS
11712013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1172
1173 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1174
1123bed9
VS
11752013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1176
1177 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1178
ebda165f
VS
11792013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1180
1181 * grub-core/loader/macho.c: Fix compilation on non-i386.
1182
fe7c20bf
VS
11832013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1184
1185 Add missing format_arg attribute to check that printf with translated
1186 messages has proper arguments.
1187
f4dab3d1
VS
11882013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1189
1190 Use grub_xasprintf to format translated error messages containing
1191 64-bit quantity.
1192
24d5934d
JM
11932013-12-17 Jon McCune <jonmccune@google.com>
1194
1195 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1196
d6c2782a
VS
11972013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 Unify message for unsupported relocation.
1200
50d2e959
VS
12012013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 Mark miscompile error for translation.
1204
18e76955
VS
12052013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1206
1207 Use %I64 and not %ll when using OS printf if compiling for windows.
1208
d218ec97
VS
12092013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1210
1211 Update Mac code to match new register_efi prototype.
1212
b8765fa0
VS
12132013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 Implement better integration with Mac firmware.
1216
1f032575
VS
12172013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1218
1219 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1220 load_addr.
1221
14829755
VS
12222013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 Include serial module in default_payload.elf.
1225
d45067a2
VS
12262013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1227
1228 Add explicit thumb interwork bx in asm files.
1229
1230 Shouldn't matter for armv >= 5 but let's be safe.
1231
30861754
VS
12322013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1233
1234 Implement Truecrypt ISO loader.
1235
e14d409b
VS
12362013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1237
1238 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1239
ec824e0f
VS
12402013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1241
1242 Implement grub_file tool and use it to implement generating of config
1243 in separate root.
1244
296f7606
VS
12452013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1246
1247 Change to v1 xen grants.
1248
2c384f1e
VS
12492013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1250
1251 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1252
1253 GRUB relied on %ebx being preserved across hypercall which isn't true.
1254
d16ff589
VS
12552013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1258
1259 GRUB relied on %rdi being preserved across hypercall which isn't true.
1260
71669c3b
VS
12612013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 Implement XEN VFB support.
1264
60d1dd3d
VS
12652013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 Remove grub_bios_interrupt on coreboot.
1268
1269 It's not used currently and cannot be used safely currently.
1270
a8201050
VS
12712013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1272
1273 Update exclude.pot and mark few strings for translation.
1274
6cc89597
VS
12752013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1276
1277 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1278
1279 Reported by: Jon McCune
1280
840a2c05
AB
12812013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1282
1283 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1284 Add verbose information which firmware directories were tried.
1285
35248820
AB
12862013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1287
1288 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1289 function to optionally redirect all three standard descriptors.
1290 Redefine grub_util_exec, grub_util_exec_redirect and
1291 grub_util_exec_redirect_null to use it.
1292 * include/grub/emu/exec.h: Define it.
1293 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1294 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1295 Use grub_util_exec_redirect_all to redirect error to NULL.
1296
2a123f4c
VS
12972013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 * grub-core/tests/sleep_test.c: Silence spurious warning.
1300
316c8d9a
VS
13012013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1302
1303 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1304 linker trying to "fixup" the code.
1305
8fcce8d5
VS
13062013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1307
1308 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1309
6f1f6a0c
VS
13102013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1311
1312 Add support for converting PE+ to Elf64.
1313
66a07ce2
VS
13142013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1315
1316 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1317
cc6fb517
VS
13182013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1319
1320 Remove practice of assigning random const pointers to device id.
1321
1322 This is not required as cache code already checks driver id as well.
1323
f009f07c
VS
13242013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1325
1326 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1327 with mingw.
1328
9fdec226
VS
13292013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1332 mingw or cygwin as API already matches.
1333
d87cb3ae
VS
13342013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1337
3e38c31a
VS
13382013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1341 not on long.
1342
f4171ebd
VS
13432013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1344
1345 Handle X86_64_PC64 relocation.
1346
1347 Those are generated by some cygwin compilers.
1348
252a289c
VS
13492013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 Determine the need for mingw-related stubs at compile time rather than
1352 using not very significant $target_os.
1353
23d2abc3
VS
13542013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1355
1356 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1357 may not work with ELF.
1358
4f979ccb
VS
13592013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 Use unix functions for temporary files and special files on cygwin.
1362
37378f74
VS
13632013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1364
1365 Define functions explicitly rather than using --defsym in tests
1366 whenever possible. Respect locality in remaining cases.
1367
6a09d83e
VS
13682013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1371
e477187b
AB
13722013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1373
1374 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1375 unlikely errors when getting EFI variables and make exhaustive search
1376 for all BootNNNN variables to find matching one.
1377
80b865bd
IC
13782013-12-15 Ian Campbell <ijc@hellion.org.uk>
1379
1380 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1381
04b02857
VS
13822013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 New functional test for sleep function.
1385
1386 This test allows to check sleep without qemu. Keep qemu version as
1387 well as functional test won't notice if all clocks are going too fast
1388 or too slow.
1389
39711101
VS
13902013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1391
1392 Add explicit sysv_abi on amd64 asm routines.
1393
d99af4f0
VS
13942013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1395
1396 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1397 num_table_entries.
1398
71043684
VS
13992013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1400
1401 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1402 functions.
1403
111bf5db
VS
14042013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1407 appropriate.
1408
24ca71c9
VS
14092013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1412
48ba5c0c
VS
14132013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1416 appropriate.
1417
8ae67045
VS
14182013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1421
1422 In case of quick removal of loopback and adding another one it may
1423 get same ID, confusing the cache system.
1424
ed559310
VS
14252013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1426
1427 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1428 appropriate.
1429
8fa26279
VS
14302013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1433 than converting to long.
1434
6f5f3337
VS
14352013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1436
1437 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1438
e7c418c5
VS
14392013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1440
1441 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1442 than almost useless pointer.
1443
7e47e27b
VS
14442013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1445
1446 Add gcc_struct to all packed structures when compiling with mingw.
1447
1448 Just "packed" doesn't always pack the way we expect.
1449
ae8159b9
VS
14502013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1453
74e7ad66
VS
14542013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * util/grub-pe2elf.c: Fix handling of .bss.
1457
814442ba
VS
14582013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1459
1460 Implement windows flavour of EFI install routines.
1461
5f5bb107
VS
14622013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1463
1464 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1465
a24725cc
VS
14662013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1467
1468 Change grub_install_register_efi interface to pass GRUB device.
1469
1470 This allows grub_install_register_efi to request partition info
1471 directly.
1472
38933cee
VS
14732013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1476
6d3cfe50
VS
14772013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 Do not use TCHAR string functions as they are not available on cygwin.
1480
4bad23a1
VS
14812013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 Workaround windows bug when querying EFI system partition parameters.
1484
6a5fe132
VS
14852013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1486
1487 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1488 by using bitfields.
1489
bc8fcf4b
VS
14902013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1491
1492 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1493
60b967be
VS
14942013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 Make i386-* other than i386-pc compileable under cygwin.
1497
6dc33377
VS
14982013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 Fix definition of grub_efi_hard_drive_device_path. Take care that
1501 existing code would work even if by some reason bogus definition is
1502 used by EFI implementations.
1503
f2c6ff15
VS
15042013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1507
6b8a1625
VS
15082013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1511 invocation.
1512
954c723a
VS
15132013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 * util/config.c: Remove trailing newline from distributor in simple
1516 parsing.
1517
607a39f9
VS
15182013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 * include/grub/efi/api.h: Rename protocol and interface to avoid
1521 conflict.
1522
df6fedca
VS
15232013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1524
ba584da1 1525 * .gitignore: add .exe variants. add missing files. remove few outdated
df6fedca
VS
1526 entries.
1527
f684d7e1
VS
15282013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1529
1530 * grub-core/osdep/exec.c: Use unix version on cygwin.
1531
0df77d79
VS
15322013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 Implement multiboot2 EFI BS specification.
1535
dafff9ce
VS
15362013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1537
1538 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1539 Crash happened only in some cases like a string starting at the
1540 half of the screen of same length.
1541
6644d973
VS
15422013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1543
1544 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1545 with EFI counterpart.
1546
44bbfa33
VS
15472013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1548
1549 Propagate the EFI commits to x86-efi specific parts.
1550
3e3dff24
VS
15512013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1552
1553 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1554
316dda71
VS
15552013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 Introduce grub_efi_packed_guid and use it where alignment is not
1558 guaranteed.
1559
219401b8
VS
15602013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1561
1562 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1563 unaligned u16 rather than u8[2].
1564
30d00537
VS
15652013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1568 for relocation range.
1569
979742bc
VS
15702013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1573 non-function pcrel21b relocation. It happens with .text.unlikely
1574 section.
1575
16c8f785
LL
15762013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1577
1578 * make MAX_USABLE_ADDRESS platform-specific
1579 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1580
3f1423e7
LL
15812013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1582
1583 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1584
dd73313c
JM
15852013-12-09 Jon McCune <jonmccune@google.com>
1586
1587 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1588 in grub-install and grub-bios-setup for x86 BIOS targets.
1589
eaf01c25
VS
15902013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 Add missing compile and link options for sparc64-emu.
1593
7a148da6
VS
15942013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1595
1596 Implement sparc64 trampolines (needed for sparc64-emu).
1597
21eee750
VS
15982013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1599
1600 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1601 range of R_SPARC_HI22.
1602 Implement R_SPARC_LM22.
1603
7b54b626
VS
16042013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1607 Do not explicitly check for symbol table as it's already checked in
1608 platform-independent layer.
1609
9a945e2a
VS
16102013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1611
1612 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1613 on ia64 as __clear_cache is a dummy on ia64.
1614
4f4ea1b4
VS
16152013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1618 Do not explicitly check for symbol table as it's already checked in
1619 platform-independent layer.
1620
fe4ae213
CW
16212013-12-09 Colin Watson <cjwatson@ubuntu.com>
1622
1623 * util/grub-mkconfig.in: Add missing newline to output.
1624
78b2b0a1
VS
16252013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1626
1627 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1628 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1629
d14772c4
VS
16302013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1633 compilation with GCC <= 4.2.
1634 * grub-core/kern/emu/argp_common.c: Likewise.
1635
388f3cd0
VS
16362013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1637
1638 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1639 right platform rather than leaking to sparc64-emu.
1640
11e4167a
VS
16412013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1642
1643 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1644 But ensure that the variables in question are indeed unsigned.
1645
fa7eb63d
VS
16462013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1647
1648 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1649
50b3a68d
VS
16502013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1651
1652 Remove grub_memalign on emu.
1653
fbbfb6ab
VS
16542013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1657 truncate incomplete lines but instead flushes them.
1658
a19293cb
VS
16592013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1662 and implement windows variant.
1663
d5c14e1e
VS
16642013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 Fix mips-emu compilation.
1667
b75db69a
VS
16682013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1669
1670 * configure.ac: Check for freetype library usability.
1671
c311ced5
VS
16722013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1673
1674 Make arm-emu work.
1675
c8fd2ddf
VS
16762013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1677
1678 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1679
c50e5f45
AB
16802013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1681
1682 * docs/grub.texi (Environment): Update color_normal and color_highlight
1683 defaults (light-gray instead of white).
1684
bb05e313
AB
16852013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1686
1687 * grub-core/normal/main.c (INIT): Set default color to light-gray
1688 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1689 and apparently BIOS defaults.
1690
f23bc651
VS
16912013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 Transform -C option to grub-mkstandalone to --core-compress available
1694 in all grub-install flavours.
1695
4c4ea9c7
VS
16962013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1697
1698 Merge GRUBFS and GRUB_FS variables.
1699
92e9352d
AB
17002013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1701
1702 Revert commit 69ca97c820, it caused failures when using OS device name
1703 in grub-install. Instead just strip off parenthesis in grub-install
1704 if (hdX) was passed.
1705
f585c905
AB
17062013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1707
1708 * util/grub-install.c (push_partmap_module): Add helper to convert
1709 partmap names to module names and use it in probe_mods(). Fixes
1710 failure to find partmap modules in diskfilter case.
1711
5ff24907
VS
17122013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1713
1714 * configure.ac: Make unifont mandatory on coreboot.
1715
0277eab7
VS
17162013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1717
1718 * configure.ac: Skip unifont 6.3 pcf and bdf.
1719
4861b6c8
VS
17202013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1721
1722 * Makefile.am: Remove partial font files if generation failed.
1723
3100cdc7
AB
17242013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1725
1726 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1727 strings.
1728 * include/grub/util/misc.h: Define it ...
1729 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1730
ad73cc33
AB
17312013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1732
1733 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1734 ${grub_probe}.
1735
41822625
VS
17362013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1737
1738 Don't add -mlong-calls when compiling with clang.
1739
896f483d
VS
17402013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * configure.ac: Fix a typo.
1743
8c534b85
VS
17442013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1745
1746 Revamp relocation handling.
1747
1748 Move more code to common dl.c. Add missing veneers for arm and arm64.
1749 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1750
a846dd4b
VS
17512013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1754
aa437b58
MG
17552013-12-05 Mike Gilbert <floppym@gentoo.org>
1756
1757 * INSTALL: Raise minimum python version to 2.6.
1758 * gentpl.py: Use python3-style print function.
1759
b0f311f4
VS
17602013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1761
1762 * util/grub-install.c: Mention Boot* variable.
1763
59b38922
CW
17642013-12-05 Colin Watson <cjwatson@ubuntu.com>
1765
1766 * grub-core/osdep/linux/hostdisk.c
1767 (grub_util_find_partition_start_os): Initialise start to avoid
1768 spurious compiler warning.
1769
0480665b
CW
17702013-12-05 Colin Watson <cjwatson@ubuntu.com>
1771
1772 On Linux, read partition start offsets from sysfs if possible, to
1773 cope with block device drivers that don't implement HDIO_GETGEO.
1774 Fixes Ubuntu bug #1237519.
1775
1776 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1777 function.
1778 (sysfs_partition_start): Likewise.
1779 (grub_util_find_partition_start_os): Try sysfs_partition_start
1780 before HDIO_GETGEO.
1781
bbeee1c4
LL
17822013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1783
1784 * grub-core/kern/fdt.c: Update struct size when adding node.
1785
e5ed2f69
VS
17862013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1787
1788 Handle unaligned .bss on sparc64.
1789
1790 Current code improperly assumes that both __bss_start and _end are
1791 aligned to 8-bytes. Eliminating this assumption and explicitly align
1792 modules.
1793
4a73746a
VS
17942013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1795
1796 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1797 so it doesn't land in the middle of loaded image.
1798
382b500e
VS
17992013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1800
1801 * configure.ac: Move all warning options that may be absent in
1802 gcc >= 3.1 to optional.
1803
1804 Note: while this allows to compile with older GCC, official requirements
1805 remain the same and no support for older GCC.
1806
3a82f8bb
CW
18072013-12-04 Colin Watson <cjwatson@ubuntu.com>
1808
1809 Copying the themes directory in grub-shell isn't
1810 parallel-test-friendly and breaks on the second test when the source
1811 directory is read-only (as in "make distcheck"). Instead, add a
1812 hidden --themes-directory option to grub-mkrescue et al, and use it
1813 in grub-shell.
1814
e3046431
VS
18152013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1818 as it's no longer necessarry.
1819
bdb6090d
VS
18202013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 * configure.ac: Allow compilation with older GCC for ARM.
1823
b73b70eb
VS
18242013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1825
1826 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1827 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1828 ppc.
1829
8a3f0a24
VS
18302013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1831
1832 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1833
6f07c4e4
VS
18342013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1835
1836 Pass font config to config.h and not by TARGET_CFLAGS as adding
1837 arguments doesn't work if TARGET_CFLAGS is specified on command
1838 line.
1839
60d5e9cb
VS
18402013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 * configure.ac: Add -Wvla if compiler supports it.
1843
cd15c394
VS
18442013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1847 Remove variable length arrays.
1848 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1849
bb6e299c
VS
18502013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1851
1852 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1853
85eb579a
VS
18542013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * include/grub/types.h: Declare all byteswaps as inline functions
1857 except compile-time ones.
1858
1859 Solves variable shadowing in constructions like
1860 cpu_to_le (le_to_cpu(x) + 1).
1861
47f88cc9
VS
18622013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1865
40b5739f
VS
18662013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1867
1868 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1869 minutes.
1870
234d9346
VS
18712013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1874 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1875
0c0eab52
CW
18762013-12-03 Colin Watson <cjwatson@ubuntu.com>
1877
1878 * grub-core/Makefile.core.def (setjmp): Distribute
1879 lib/arm64/setjmp.S.
1880
44d48847 18812013-12-03 Colin Watson <cjwatson@ubuntu.com>
8f236c14
CW
1882
1883 Add a new timeout_style environment variable and a corresponding
1884 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1885 controls hidden-timeout handling more simply than the previous
1886 arrangements, and pressing any hotkeys associated with menu entries
1887 during the hidden timeout will now boot the corresponding menu entry
1888 immediately.
1889
1890 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1891 generates a warning, and if it shows the menu it will do so as if
1892 the second timeout were not present. Other combinations are
1893 translated into reasonable equivalents.
1894
10955cda
CW
1895 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1896
9e4e6ddf
VS
18972013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1898
1899 * util/config.c: Add missing pointer adjustment.
1900 Reported by: qwertial
1901
5037aa9a
AB
19022013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1903
1904 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1905 directly, not via `cpu' link, to fix libgrub.pp generation.
1906
8a952d20
VS
19072013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1908
1909 New port arm64-efi.
1910
be0d4555
AB
19112013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1912
1913 * docs/grub.texi (sleep): Document exit codes.
1914
d74b9a1d
VS
19152013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1916
1917 Ensure that -mno-unaligned-access or some equivalent option is used.
1918
35de6d4b
VS
19192013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1920
1921 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1922 -march=armv3.
1923
ce55ed03
VS
19242013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1925
1926 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1927
8ddf84bf
CW
19282013-11-29 Colin Watson <cjwatson@ubuntu.com>
1929
1930 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1931 builds, since we don't have an EPS version of font_char_metrics.png.
1932 Add leading dot to image extension per the Texinfo documentation.
1933
fd0df6d0
CW
19342013-11-29 Colin Watson <cjwatson@ubuntu.com>
1935
1936 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1937 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1938 * util/grub-gen-widthspec.c: Likewise.
1939 * util/grub-mkfont.c: Likewise.
1940
69ca97c8
AB
19412013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1942
1943 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1944 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1945 failed to install on (hdX).
1946 * util/grub-setup.c (get_device_name): Remove, not needed after
1947 above change.
1948
eec893ae
VS
19492013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1952
621e167f
VS
19532013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1954
1955 * util/grub-fstest.c: Remove variable length arrays.
1956
d54f647a
VS
19572013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1958
1959 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1960
c8a0f1b2
VS
19612013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1964 computing crc32 rather than handling with md fundtions directly.
1965
726409a5
VS
19662013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1967
1968 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1969 checking fwstart.img rather than md fundtions directly.
1970
422e6e88
VS
19712013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * util/grub-mkrescue.c (main): Check that fread succeeded.
1974
af1faca3
VS
19752013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * conf/Makefile.common: Remove -mexplicit-relocs and
1978 -DUSE_ASCII_FALLBACK on yeeloong.
1979
1980 -DUSE_ASCII_FALLBACK is already added by font snippets.
1981 -mexplicit-relocs isn't needed is compiler/assemblera are
1982 configured properly.
1983 If they're not we shouldn't attempt to fix it by ourselves.
1984 Binary compare between before and after shows no difference.
1985
469021b4
VS
19862013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1989 sources in dependencies directly.
1990
1991 This was the only instance of "library" in core config. A bug was
1992 reported that -fno-stack-protector wasn't passed to it. Instead of
1993 figuring out why it failed just remove this construction used
1994 needlessly.
1995
83c256ba
VS
19962013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1997
1998 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1999 fgets succeeded.
2000
b67422d3
FL
20012013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2002
2003 * docs/grub.texi (ls): Fix command description in case of a device name
2004 passed as argument.
2005
2d76b4d8
VS
20062013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2007
2008 Eliminate variable length arrays in grub_vsnprintf_real.
2009
2010 A bit tricky because this function has to continue to work without
2011 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2012 but make all stack references use 32-bit offset rather than 8-bit one.
2013 So split va_args preparsing to separate function and put the prealloc
2014 into the caller.
2015
4f954122
VS
20162013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2019 Fixes build for windows.
2020
b1f742c1
VS
20212013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 * gentpl.py: Don't generate platform-dependent conditionals for
2024 platform-independent targets.
2025
16ef26fd
CW
20262013-11-27 Colin Watson <cjwatson@ubuntu.com>
2027
2028 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2029 references to mdadm from otherwise generic code.
2030 (grub_util_exec_pipe): Likewise.
2031 (grub_util_exec_pipe_stderr): Likewise.
2032 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2033 This function calls vgs, not mdadm; adjust variable names
2034 accordingly.
2035
cf8c80ff 20362013-11-27 Colin Watson <cjwatson@ubuntu.com>
ab4f1501
CW
2037
2038 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2039 of Autogen. The Autogen definitions files remain intact as they
2040 offer a useful abstraction.
2041
5c7206e4
CW
20422013-11-27 Colin Watson <cjwatson@ubuntu.com>
2043
2044 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2045 into no-ops, and use it in programs that copy files but do not need
2046 to take special care to sync writes (grub-mknetdir, grub-rescue,
2047 grub-mkstandalone).
2048
fc3f2b72
CW
20492013-11-26 Colin Watson <cjwatson@ubuntu.com>
2050
2051 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2052 than hardcoding /usr/local/bin/xorriso.
2053
1e4b3587
VS
20542013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 Add PCI command activation to all PCI drivers as required for coreboot
2057 and maybe some other firmwares.
2058
9208367d
VS
20592013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2062 and non-Apple variants of efiemu compile.
2063
67b9b7af
AB
20642013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2065
2066 * configure.ac: Add explicit check for linking format of
2067 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2068 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2069 hardcoding linking format.
2070
bee1b5ce
VS
20712013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2072
2073 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2074 and not pkgdatadir.
2075
07e3b047
CW
20762013-11-25 Colin Watson <cjwatson@ubuntu.com>
20772013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 Add a --locale-directory option to grub-install and related tools.
2080
2081 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2082 --locale-directory option.
2083 (enum grub_install_options): Add
2084 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2085 * util/grub-install-common.c (grub_install_help_filter): Handle
2086 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2087 (grub_install_parse): Likewise.
2088 (get_localedir): New function to check for a user-provided option
2089 before trying grub_util_get_localedir.
2090 (copy_locales): Use get_localedir rather than
2091 grub_util_get_localedir. Handle differing locale directory layouts.
2092 (grub_install_copy_files): Likewise.
2093
61e1b9a4
VS
20942013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2095
2096 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2097 Don't rely on PATH_MAX.
2098
c98dd165
VS
20992013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2100
2101 * grub-core/genmoddep.awk: Use more portable && rather than and.
2102
ff1c277e
VS
21032013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2104
2105 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2106 an object after data. While it doesn't seem right solution, it
2107 works well enough and OSX isn't main compilation platform.
2108
c8f7614b
VS
21092013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2110
2111 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2112 While it doesn't seem right solution, it works well enough and
2113 OSX isn't main compilation platform.
2114
246a434f
VS
21152013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2116
2117 * configure.ac: Add -static to LDFLAGS when using apple linker to
2118 prevent it from pulling in dynamic linker.
2119
5c066a81
VS
21202013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 Apple assembly doesn't handle symbol arithmetic well. So define an
2123 offset symbol in boot.S and use it.
2124
78f961ef
VS
21252013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 Apple assembly doesn't handle symbol arithmetic well. So instead
2128 of getting addres of kernel_sector + 4 define kernel_sector_high.
2129 It also makes code more readable.
2130
09bc0a57
VS
21312013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2132
2133 With Apple assembly in .macro environvemnt you have to use $$ instead
2134 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2135 to $$x on Apple and to $x on everything else.
2136
b700a427
VS
21372013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2138
2139 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2140 OBJCONV.
2141
4480b95d
VS
21422013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2145 and non-Apple. This instruction is shorter and faster,
2146 so no reason not to use it on both.
2147
e77c81f6
VS
21482013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2149
2150 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2151 .text when compiling for Apple.
2152
971dbee5
VS
21532013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2154
2155 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2156
6f2e82be
VS
21572013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2158
2159 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2160 %dx restore the probe worked on non-existant drive. Reorganize the
2161 code a little bit to free 2 bytes necessary for push/pop.
2162
9eec9699
VS
21632013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2166 Add missing cast to silence warning.
2167
5ae5c54c
KPA
21682013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2169
2170 * util/grub-install.c (update_nvram): Support --no-nvram flag
2171 for EFI targets.
2172
7b04fe6c
VS
21732013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2174
2175 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2176
e67566ce
VS
21772013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 * util/garbage-gen.c: Add missing include of sys/time.h.
2180
f93ddcfd
VS
21812013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2182
2183 Don't add -mflush-func if it's not supported by compiler.
2184
1bba40f5
VS
21852013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2186
2187 Move common BIOS/coreboot memory map declarations to
2188 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2189
f65e14dc
AB
21902013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2191
2192 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2193
14a94bba
VS
21942013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * INSTALL: Document why older clang versions aren't appropriate.
2197
8109c5d4
VS
21982013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2199
2200 * INSTALL: Document about clang for mips.
2201
a92b5cb8
VS
22022013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2203
2204 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2205 clang.
2206
4a23e2fe
VS
22072013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2208
2209 Add *-xen to the list of grub-install-common platforms.
2210
a3ba7410
VS
22112013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2212
2213 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2214 3 last commits.
2215
e1c22419
VS
22162013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2219
189090ce
VS
22202013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2221
2222 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2223 with -mcmodel=large.
2224
1a5b7b40
VS
22252013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2228 range-checking for 32-bit quantities.
2229
9cf12b20
VS
22302013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 * configure.ac: Compile with -fPIC when compiling with clang on
2233 mips.
2234
63a45330
VS
22352013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2236
2237 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2238 when compiling with clang.
2239
4a0aaad0
VS
22402013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2241
2242 clang emits calls to abort () under some unknown conditions.
2243 Export abort () when compiling with clang.
2244
095bb1bf
VS
22452013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 * docs/grub-dev.texi: Document stack and heap sizes.
2248
3937bd96
VS
22492013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2250
2251 * include/grub/i386/pc/memory.h: Decrease
2252 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2253 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2254 The binary doesn't change (checked). It's more to better reflect actual
2255 usage.
2256
ddb3efc9
VS
22572013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2258
2259 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2260 at compile time that enough of scratch size is available.
2261
4e42521d
VS
22622013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2263
2264 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2265 Previously we misaligned stack by 8 in startup.S and compensated
2266 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2267 right behaviour is to align stack in startup.S and keep it aligned
2268 in callwrap.S. startup.S part was committed few commits before. This
2269 takes care of callwrap.S.
2270 Reported by: Gary Lin.
2271
054efe54
VS
22722013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2273
2274 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2275 .data and .bss. May happen if compiler and assembly use different
2276 alignment.
2277
a0e1befb
VS
22782013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2281 way.
2282
c36c73f6
VS
22832013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 Add support for a new magic symbol _gp_disp on mips to handle PIC
2286 binaries.
2287
6f4a19f5
VS
22882013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2291
0d8f04cd
VS
22922013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2295 when rest of GRUB is compiled for hisher stepping. Instead use
2296 .set mips3/.set mips1 around cache and sync opcodes.
2297
49060520
VS
22982013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2301 do essentially the same thing, do it in similar way.
2302
c6a823e2
CW
23032013-11-21 Colin Watson <cjwatson@ubuntu.com>
2304
2305 * util/grub-mkrescue.c (main): If a source directory is not
2306 specified, read platform-specific files from subdirectories of
2307 pkglibdir, not pkgdatadir.
2308
b7f9aedf
CW
23092013-11-21 Colin Watson <cjwatson@ubuntu.com>
2310
2311 * grub-core/normal/progress.c: Remove unused file.
2312
7dd0a303
VS
23132013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2314
2315 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2316 array.
2317
ca120e31
VS
23182013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2319
2320 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2321 than grub.cfg.
2322
48eb35cd
VS
23232013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2324
2325 * coreboot.cfg: Add missing file.
2326
7f20dbbc
VS
23272013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2328
2329 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2330
55e706c9
AK
23312013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2332
2333 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2334 selectively skipping systems.
2335
4e7d433d
CW
23362013-11-19 Colin Watson <cjwatson@ubuntu.com>
2337
2338 * Makefile.util.def (grub-mkimage): Add
2339 grub-core/osdep/aros/config.c to extra_dist.
2340 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2341 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2342 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2343 grub-core/gnulib-no-gets.diff.
2344
7d44ff7d
VS
23452013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2346
2347 Add automated filesystem checking based on scripts I've used now for
2348 quite some time locally. Most of the test require root so they are
2349 skipped when run without necessarry privelegies.
2350
a8c3e5e3
CW
23512013-11-19 Colin Watson <cjwatson@ubuntu.com>
2352
2353 * util/grub-install.c (main): Adjust info messages to match
2354 installed paths of grub-bios-setup and grub-sparc64-setup.
2355
4402db3e
CW
23562013-11-19 Colin Watson <cjwatson@ubuntu.com>
2357
2358 * util/grub-install-common.c (copy_locales): Consistently use
2359 grub_util_get_localedir () rather than LOCALEDIR.
2360 (grub_install_copy_files): Likewise.
2361
7960d3e1
JT
23622013-11-19 Josh Triplett <josh@joshtriplett.org>
2363
2364 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2365 16-byte boundary, as required by the x86-64 ABI, before calling
2366 grub_main. In some cases, GCC emits code that assumes this
2367 alignment, which crashes if not aligned. The EFI firmware is also
2368 entitled to assume that stack alignment without checking.
2369
d53f4900
JT
23702013-11-18 Josh Triplett <josh@joshtriplett.org>
2371
2372 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2373 4k page boundaries as expected by firmware rather than 1k
2374 boundaries.
2375 (grub_mmap_malign_and_register): Likewise.
2376
bb2b275b
VS
23772013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2378
2379 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2380 fragmentation 512M is enough.
2381
45bf8b3a
VS
23822013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2383
2384 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2385 pointer to 32K. This is the size of cache element which is the most
2386 common allocation >1K. This way the pointer is always around blocks
2387 of 32K and so we keep performance while decreasing fragmentation.
2388
39ff43c5
VS
23892013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2390
2391 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2392 current memory when allocating large chunks. This significantly
2393 decreases memory fragmentation.
2394
60870be8
CW
23952013-11-18 Colin Watson <cjwatson@ubuntu.com>
2396
2397 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2398 but for symmetry).
2399 * tests/lzocompress_test.in: Skip if lzop is not installed.
2400 * tests/xzcompress_test.in: Skip if xz is not installed.
2401
a1f00cc5
CW
24022013-11-18 Colin Watson <cjwatson@ubuntu.com>
2403
2404 * util/grub-mkrescue.c (main): Fix typo.
2405
74e632fe
VS
24062013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2409 clock frequency to 200 MHz,
2410
efb8de49
VS
24112013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2412
2413 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2414
b7526e78
VS
24152013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2418 Load config file from (cbfsdisk)/etc/grub.cfg.
2419
b40ce651
VS
24202013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * util/grub-install-common.c (grub_install_copy_files): Fix module
2423 destination directory.
2424
1e8e2e78
CW
24252013-11-18 Colin Watson <cjwatson@ubuntu.com>
2426
2427 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2428 files have not been built.
2429
3bf4088b
CW
24302013-11-18 Colin Watson <cjwatson@ubuntu.com>
2431
2432 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2433 Handle errors from mkstemp.
2434 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2435
35c2851c
VS
24362013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2437
2438 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2439 on primary master on pseries.
2440
ea7c1a7d
VS
24412013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2442
2443 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2444 already loaded. This saves memory needed for tests,
2445
96adefdb
VS
24462013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2447
2448 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2449 work again.
2450
5e3cb8a7
VS
24512013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2452
2453 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2454 work again.
2455
256ee7ac
VS
24562013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2459 master since with some combinations of qemu and firmware only primary
2460 IDE channel is available.
2461
f8b4c3b6
VS
24622013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2465 low-memory platforms where we don't have enough memory for them.
2466 * grub-core/tests/videotest_checksum.c: Likewise.
2467
4bf70320
VS
24682013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2469
2470 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2471 already loaded. This saves memory needed for tests,
2472
a284320e
VS
24732013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 Fix handling of install lists.
2476
2df8f43d
VS
24772013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2480
6f1bc8bc
VS
24812013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2482
2483 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2484 the devices before accessing them.
2485
04f39f6d
VS
24862013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2487
2488 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2489 as file argument.
2490
35d4761c
VS
24912013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2494
33d02a42
VS
24952013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2498 (grub_file_close): Free file->name.
2499
7bbb60cf
VS
25002013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2503 (grub_load_public_key): Likewise.
2504 (grub_verify_signature_real): Likewise.
2505 (grub_cmd_verify_signature): Likewise.
2506
da93d675
VS
25072013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2510 memory leak.
2511
59c943ec
VS
25122013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2513
2514 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2515 (grub_longjmp): Restore r31.
2516 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2517
4336b5d8
VS
25182013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2521 modules to be in line with make_image_abs.
2522
44ce3a93
VS
25232013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2524
2525 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2526
2527 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2528
7d400406
IC
25292013-11-17 Ian Campbell <ijc@hellion.org.uk>
2530
2531 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2532
77dae919
VS
25332013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2534
2535 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2536 to leave some memory to firmware.
2537
0ab8e025
VS
25382013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2539
2540 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2541 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2542 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2543 Load gfxmenu.
2544
b80c2d6d
VS
25452013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2546
2547 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2548 now needs full arguments.
2549
6aa6077b
VS
25502013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2551
2552 * util/grub-mkrescue.c (main): Add trailing \n in
2553 .disk_label.contentDetails to be in line with previous shell script.
2554
66c00cb1
VS
25552013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2556
2557 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2558
3a129dba
VS
25592013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2560
2561 * util/grub-install-common.c (grub_install_parse): Recognize
2562 --compress=none like shell script did.
2563
8df6eff6
VS
25642013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * include/grub/misc.h: Replace check for __sparc64__ with one for
2567 __sparc__ as __sparc64__ isn't actually defined.
2568
889ebe92
VS
25692013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2570
2571 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2572 counterpart of fixing the naming of escc ports.
2573
d4d55b29
VS
25742013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2575
2576 * util/grub-install-common.c (platforms): Fix the order of entries and
2577 remove useless field val.
2578
55e2c84f
VS
25792013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * util/grub-install.c: Add new option --no-bootsector to skip
2582 installing of bootsector. Accept --grub-setup=/bin/true as
2583 backwards-compatible synonym.
2584
cd46aa6c
VS
25852013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2586
2587 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2588 order of qsort arguments (number of elements vs. element size).
2589
25902013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2591
2592 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2593 the function of these files exceeds what can be sanely handled in shell
2594 in posix-comaptible way. Also writing it in C extends the functionality
2595 to non-UNIX-like OS and minimal environments.
2596
9ef81064
VS
25972013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2600 compiling to thumb2.
2601 * grub-core/kern/arm/cache_armv7.S: Likewise.
2602 * grub-core/lib/arm/setjmp.S: Likewise.
2603
11a77932
LL
26042013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2605
2606 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2607 in grub_uboot_syscall
2608
080603f0
VS
26092013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2610
2611 Decrease stack usage in lexer.
2612
2613 We have only 92K of stack and using over 4K per frame is wasteful
2614
2615 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2616 as macros so that compiler would remove useless structure on stack.
2617 Better solution would be to fix flex not to put this structure on
2618 the stack but flex is external program.
2619
4f84ae0e
VS
26202013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2621
2622 Decrease stack usage in signature verification.
2623
2624 We have only 92K of stack and using over 4K per frame is wasteful
2625
2626 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2627 rather than stack.
2628 (grub_verify_signature_real): Likewise.
2629
e6a6182d
VS
26302013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2631
2632 Decrease stack usage in mdraid 0.9x.
2633
2634 We have only 92K of stack and using over 4K per frame is wasteful
2635
2636 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2637 rather than stack.
2638
1a454efe
VS
26392013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 Decrease stack usage in BtrFS.
2642
2643 We have only 92K of stack and using over 4K per frame is wasteful
2644
2645 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2646 rather than stack.
2647
7b5d51d8
VS
26482013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 Decrease stack usage in JFS.
2651
2652 We have only 92K of stack and using over 4K per frame is wasteful
2653
2654 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2655 stack. Note: this function is recursive.
2656 (grub_jfs_read_inode): Read only part we care about.
2657
593865b9
LL
26582013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2659
2660 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2661 handling
7b5d51d8 2662
31c0cd43
AB
26632013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2664
2665 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2666
c2fdb331
AB
26672013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2668
2669 * docs/grub.texi (Environment): Document cmdpath.
2670
9e18dfe2
AB
26712013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2672
2673 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2674 Remove "unused" attribute from arguments, they are used.
2675
59ba9d14
CW
26762013-11-15 Colin Watson <cjwatson@debian.org>
2677
2678 * .gitignore: Only ignore grub-mk* at the top level.
2679
23012db9
CW
26802013-11-15 Colin Watson <cjwatson@ubuntu.com>
2681
2682 * util/grub-reboot.in (usage): Fix a typo.
2683
6fcec439
VS
26842013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 Replace libgcc version of ctz with our own.
2687
2688 On upcoming arm64 port libgcc ctz* are not usable in standalone
2689 environment. Since we need ctz* for this case and implementation is
2690 in C we may as well use it on all concerned platforms.
2691
a9f25a08
VS
26922013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * configure.ac: Probe for linking format rather than guessing it based
2695 on target_os.
2696
c7995256
VS
26972013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2700 "1" prior to handoff.
2701
2702 Reported by: M A Young.
2703
e1aa5b66
VS
27042013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2707 \0 to all files.
2708
2709 Reported by: M A Young.
2710
da5ed5cf
VS
27112013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2714 compilation on NetBSD.
2715
5757a93e
VS
27162013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 * acinclude.m4: Don't add -P on initial nm test.
2719
2720 Note: even though this patch postdates Andrey's it bears 14 Nov as
2721 date due to timezone difference.
2722
a5986276
AB
27232013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2724
2725 * grub-core/Makefile.core.def (signature_test): Add missing
2726 tests/signatures.h.
2727
0de172a0
CW
27282013-11-14 Colin Watson <cjwatson@ubuntu.com>
2729
2730 * util/grub-install_header: Set localedir here, since this file is
2731 where it's used.
2732 * util/grub-install.in: Remove setting of localedir.
2733 * util/grub-mkrescue.in: Likewise.
2734
da45f43c
VS
27352013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2738
20aea949
VS
27392013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 * configure.ac: Move nm checks to the end.
2742 Call grub_PROG_NM_WORKS.
2743 * acinclude.m4: New check grub_PROG_NM_WORKS.
2744 Use $TARGET_CFLAGS -c when compiling test binary.
2745
1326b9ae
CW
27462013-11-14 Colin Watson <cjwatson@ubuntu.com>
2747
2748 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2749 unused variables.
2750
1fe26ab4
MG
27512013-11-14 Matthew Garrett <mjg@redhat.com>
2752
2753 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2754 cmdpath to firmware directory.
2755
83e9c273
VS
27562013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2757
2758 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2759 at the start of second iteration.
2760
ec525c18
VS
27612013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2762
2763 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2764
93fcc7ad
VS
27652013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2766
2767 * Makefile.am (default_payload.elf): New target for easier coreboot
2768 build.
2769
57ffe934
VS
27702013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2771
2772 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2773 clang (not necessarry with -no-integrated-as).
2774 * include/grub/symbol.h [__arm__]: Likewise.
2775
2312f06c
VS
27762013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * configure.ac: Use -no-integrated-as on arm with clang.
2779 * INSTALL: Mention ARM compilation with clang.
2780
2416415c
VS
27812013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2784 -mthumb-interwork.
2785
5da55172
CW
27862013-11-14 Colin Watson <cjwatson@ubuntu.com>
2787
2788 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2789 code for indirect block handling.
2790
2791 Saves 185 bytes on compressed image.
2792
da770328
PFS
27932013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2794
2795 Fix make clean.
2796
2797 * Makefile.am: Remove build-grub-* in make clean.
2798
f02e6b56
PFS
27992013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2800
2801 New files to gitignore.
2802
2803 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2804 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2805
035a26c1
LL
28062013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2807
2808 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2809
bc8a6137
LL
28102013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2811
2812 * .gitignore: fix rules for .dep* and add *.a post git migration
2813
6fe506b0
CW
28142013-11-13 Colin Watson <cjwatson@ubuntu.com>
2815
2816 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2817 to match INSTALL.
2818
81a2e438
CW
28192013-11-13 Colin Watson <cjwatson@ubuntu.com>
2820
2821 * grub-core/kern/misc.c: Don't redirect divisions in the
2822 GRUB_UTIL case.
2823 * include/grub/misc.h: Likewise.
2824
9b45c073
CW
28252013-11-13 Colin Watson <cjwatson@ubuntu.com>
2826
2827 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2828 systems that require checking the return value of write.
2829
11b2a9b7
CW
28302013-11-13 Colin Watson <cjwatson@ubuntu.com>
2831
2832 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2833 efibootmgr quiet when --debug is not used, rather than when it is.
2834
d743d22d
CW
28352013-11-13 Colin Watson <cjwatson@ubuntu.com>
2836
2837 * gentpl.py (define_macro_for_platform_dependencies): Remove
2838 first (and thus unused) of two definitions for this function.
2839 (platform_dependencies): Likewise.
2840
11da14b5
CW
28412013-11-13 Colin Watson <cjwatson@ubuntu.com>
2842
2843 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2844 functions, we only need to check this for the target, not the host.
2845 * configure.ac (grub_apple_cc): Likewise.
2846
2bdd0719
VS
28472013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2848
2849 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2850 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2851 asm to stay in arm even if surrounding is thumb.
2852
5e77d9cf
VS
28532013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2856 helper functions are needed for thumb.
2857
7d511625
VS
28582013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2861 level / 3 division explicitly unsigned. Saves few bytes.
2862
81023dbd
VS
28632013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2864
2865 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2866
b2e9294f
VS
28672013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2868
2869 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2870 division.
2871
16a22c38
VS
28722013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2875 grub_uboot_boot_data to asm part.
2876
c9cd02c9
VS
28772013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2880 literal load.
2881 (grub_uboot_syscall): Save/restore r9 and align stack.
2882
81498615
VS
28832013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2884
2885 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2886
ea57de18
VS
28872013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2890 occurencies with END.
2891
d0d1e3da
CW
28922013-11-13 Colin Watson <cjwatson@ubuntu.com>
2893
2894 * util/grub-editenv.c (help_filter, argp): Document how to delete
2895 the whole environment block.
2896 Reported by Dan Jacobson. Fixes Debian bug #726265.
2897
3809f016
CW
28982013-11-13 Colin Watson <cjwatson@ubuntu.com>
2899
2900 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2901 sectioning.
2902
46d8a203
JT
29032013-11-13 Josh Triplett <josh@joshtriplett.org>
2904
2905 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2906 increment/decrement.
2907
513eeb61
VS
29082013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2909
2910 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2911 compiling with clang.
2912
bc379c1a
VS
29132013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2916 ".".
2917
29182013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
286551b4 2919
16057d6b
VS
2920 Redirect all divisions to grub_divmod64.
2921
f649a6a8
VS
29222013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2923
2924 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2925
ef28ee8b
VS
29262013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 Add missing includes of loader.h.
2929
300f48c5
VS
29302013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2931
2932 * configure.ac: Allow disabling themes.
2933
2d357558
LS
29342013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2935
2936 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2937
0c62a5b2
VS
29382013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2941 until it becomes operational.
2942
b0720b49
VS
29432013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * grub-core/Makefile.core.def (legacy_password_test): Disable
2946 on platforms where no legacycfg is compiled.
2947 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2948 load legacy_password_test.
2949
d5bab2c0
VS
29502013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2951
2952 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2953
3ea0ccb3
VS
29542013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2955
2956 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2957
08772054
VS
29582013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2959
2960 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2961 strict-aliasing warning.
2962 (fsync): Silence cast warning.
2963
1dcb2715
VS
29642013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * grub-core/commands/verify.c: Remove variable length arrays.
2967 Load gcry_dsa/gcry_rsa automatically.
2968
61c22fdf
VS
29692013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * grub-core/tests/signature_test.c: New test.
2972
431e57a7
VS
29732013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2974
2975 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2976 API.
2977
b521bb81
VS
29782013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2979
2980 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2981 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2982
7d06b24e
VS
29832013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2986
3bbeade4
VS
29872013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * grub-core/fs/proc.c: Allow \0 in proc files.
2990
ba82db7a
VS
29912013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2994
801564c8
VS
29952013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2998
ac8cac1d
VS
29992013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3000
3001 * grub-core/fs/ext2.c: Remove variable length arrays.
3002
4b85f122
VS
30032013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3006 length arrays.
3007
c35fcdc0
VS
30082013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3009
3010 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3011 * grub-core/disk/cryptodisk.c: Likewise.
3012 * grub-core/disk/geli.c: Likewise.
3013 * grub-core/disk/luks.c: Likewise.
3014
15decd26
VS
30152013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3016
3017 * grub-core/tests/legacy_password_test.c: New test.
3018 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3019
9c6482b8
VS
30202013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3021
3022 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3023
41f26e0e
VS
30242013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3025
3026 * grub-core/tests/pbkdf2_test.c: New test.
3027
2def6616
VS
30282013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3029
3030 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3031
9e34a34e
VS
30322013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3033
3034 * grub-core/io/lzopio.c: Remove variable length arrays.
3035
5ccaf904
VS
30362013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * include/grub/crypto.h: Add maximums on hash size and cipher block
3039 size.
3040
44a387e0
VS
30412013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3044
a388e255
VS
30452013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3046
3047 * grub-core/tests/xnu_uuid_test.c: New test.
3048
a1ef7718
VS
30492013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3052 covers it).
3053
65ddb300
VS
30542013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3055
3056 * grub-core/commands/hashsum.c: Remove variable length arrays.
3057
31747dd5
VS
30582013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3059
3060 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3061 condition.
3062 * tests/grub_func_test.in: Increase memory allocation.
3063
6a74c4df
VS
30642013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3067 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3068 sys/mount.h.
3069
394c3e0a
VS
30702013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3073 (grub_util_get_fd_size_os): ...this.
3074 (grub_hostdisk_flush_initial_buffer): New empty function.
3075
60d31116
VS
30762013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3077
3078 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3079 without --defined-only.
3080
8445b011
VS
30812013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3082
3083 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3084 rip-relative addressing in prologue.
3085
8506a641
VS
30862013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3089 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3090
66acd9d6
VS
30912013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3094 Add missing semicolon.
3095
348d0535
VS
30962013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3097
3098 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3099
0d2d30bb
VS
31002013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * configure.ac: Check for lzma.h for enabling liblzma and allow
3103 manual disabling.
3104
631187be
VS
31052013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 Add missing includes of loader.h.
3108
e756ec82
FZ
31092013-11-11 Fam Zheng <famcool@gmail.com>
3110
3111 * util/grub.d/30_os-prober.in: Add minix entry.
3112
87d62d7d
VS
31132013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3114
3115 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3116 right buffer for temporary load.
3117
5460cfeb
VS
31182013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3119
3120 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3121
89977306
VS
31222013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3125 payload.
3126
3617c59b
VS
31272013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3130 not Types.h.
3131 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3132 environment.
3133 (LzmaDec_InitDicAndState): Make static.
3134
881c6a10
VS
31352013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3138
2024ade2
VS
31392013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3142
3143 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3144
674ad4f6
VS
31452013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 * docs/grub-dev.texi: Replace bzr references with git ones.
3148
5b99970e
AB
31492013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3150
3151 * docs/grub.texi (Simple configuration): Remove reference to
3152 grub-reboot from saved default entry description - grub-default
3153 does not use it anymore.
3154
3c2304d5
VS
31552013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3156
3157 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3158 compiled with.
3159
80cfd940
AB
31602013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3161
3162 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3163
33690255
VS
31642013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 Fix grub_machine_fini bitrot.
3167
3168 Reported by: Glenn Washburn.
3169
c61471fc
VS
31702013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3171
3172 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3173
54da019f
VS
31742013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3177 -DELF.
3178 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3179 instead of ELF*.
3180
31812013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
28668d80
VS
3182
3183 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3184 Add -march=core2 when testing compile of efiemu64.
3185
3186 Thanks Andrey Borzenkov for spotting this.
3187
9612ebc0
VS
31882013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3191 XEN PV environment and load kernels.
3192
1a46a3a4
VS
31932013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3196 * grub-core/loader/multiboot_mbi2.c: Likewise.
3197
2df12551
VS
31982013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3199
3200 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3201 handling.
3202
3c980381
VS
32032013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3206
3207 Tested by: Denis 'GNUtoo' Carikli.
3208
800f63d3
VS
32092013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3210
3211 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3212
9f8acdaa
VS
32132013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3214
5620eb53
VS
3215 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3216 Use to get rounded angle rather than truncated.
3217
32182013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3219
3220 * grub-core/term/serial.c: Add option for enabling/disabling
9f8acdaa
VS
3221 RTS/CTS flow control.
3222
2dc1eb6c
VS
32232013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3226 divisions.
3227
b9563c94
VS
32282013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3231 Use grub_fatal rather than divide by zero.
3232 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3233
d6d8e9a9
VS
32342013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3237 truncate.
3238 (grub_fixed_fsf_divide): Likewise.
3239
d06de6c8
VS
32402013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3241
3242 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3243 division by-zero and senseless negative divisions.
3244
6af7d49b
VS
32452013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3248 division by-zero and senseless negative divisions.
3249 (circprog_set_property): Don't accept negative num_ticks.
3250
bcfa6d72
VS
32512013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3254 division by-zero and senseless negative divisions.
3255
dd7f792c
VS
32562013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * configure.ac: Use elf_*_fbsd on kfreebsd.
3259
d061fda7
VS
32602013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 * grub-core/tests/div_test.c: New test.
3263
4db22500
VT
32642013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3265
3266 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3267 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3268 * grub-core/gfxmenu/view.c: Likewise.
3269 * grub-core/video/fb/video_fb.c: Introduce new functions:
3270 grub_video_set_area_status, grub_video_get_area_status,
3271 grub_video_set_region, grub_video_get_region.
3272 * grub-core/video/bochs.c: Likewise.
3273 * grub-core/video/capture.c: Likewise.
3274 * grub-core/video/video.c: Likewise.
3275 * grub-core/video/cirrus.c: Likewise.
3276 * grub-core/video/efi_gop.c: Likewise.
3277 * grub-core/video/efi_uga.c: Likewise.
3278 * grub-core/video/emu/sdl.c: Likewise.
3279 * grub-core/video/radeon_fuloong2e.c: Likewise.
3280 * grub-core/video/sis315pro.c: Likewise.
3281 * grub-core/video/sm712.c: Likewise.
3282 * grub-core/video/i386/pc/vbe.c: Likewise.
3283 * grub-core/video/i386/pc/vga.c: Likewise.
3284 * grub-core/video/ieee1275.c: Likewise.
3285 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3286 * include/grub/video.h: Likewise.
3287 * include/grub/video_fb.h: Likewise.
3288 * include/grub/fbfill.h: Updated render_target structure.
3289 grub_video_rect_t viewport, region, area
3290 int area_offset_x, area_offset_y, area_enabled
3291 * include/grub/gui.h: New helper function
3292 grub_video_bounds_inside_region.
3293 * docs/grub-dev.texi: Added information about new functions.
3294
c6b755df
VS
32952013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3298 for alignment.
3299
e2a68100
VS
33002013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3301
3302 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3303 missing attribute.
3304 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3305
c4f11a2a
VS
33062013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3307
3308 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3309 simple division on arm and ia64.
3310
e0a7bffa
VS
33112013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3312
3313 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3314 link with libgcc.
3315
38b864ea
VS
33162013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3317
3318 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3319
12359faf
VS
33202013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3321
3322 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3323 prefix symbol, not @.
3324
9fdc64a9
VS
33252013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3326
3327 * INSTALL: Add note about older gcc and clang.
3328
665c575b
VS
33292013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3330
3331 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3332
47dcf7b1
VS
33332013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3336 NULL pointer dereference.
3337
d59849b2
VS
33382013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3339
3340 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3341 clang.
3342
7a3f4a18
VS
33432013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3344
3345 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3346 warnings.
3347
7f084087
VS
33482013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3349
3350 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3351 function.
3352 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3353 * grub-core/disk/geli.c (ascii2hex): Likewise.
3354
d5524ca8
VS
33552013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3356
3357 * configure.ac: Run linker tests without -Werror.
3358 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3359 Change all occurences of -static-libgcc resp -lgcc to
3360 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3361
390cd7ca
VS
33622013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3363
3364 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3365
60375a88
VS
33662013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3367
3368 Allow compiling with clang (not really supported though).
3369
3370 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3371 unconditionally.
3372 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3373 Add -mrtd -mregparm=3 on i386 when not using clang.
3374 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3375
dd07e0c4
VS
33762013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3379 bindings.
3380 * grub-core/lib/reed_solomon.c: Likewise.
3381 * include/grub/i386/gdb.h: Likewise.
3382 * include/grub/i386/pc/int.h: Likewise.
3383 * include/grub/i386/pc/pxe.h: Likewise.
3384 * include/grub/ieee1275/ieee1275.h: Likewise.
3385
9d3ae8ec
VS
33862013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3387
3388 Import libgcrypt 1.5.3.
3389
c12936c5
VS
33902013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3391
3392 * configure.ac: Don't add -Wcast-align on x86.
3393
cdc17f60
VS
33942013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3395
3396 * configure.ac: Add -freg-struct-return on all platforms that
3397 support it.
3398
b35ec299
VS
33992013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 * acinclude.m4: Use -Werror on parameter tests.
3402 * configure.ac: Likewise.
3403
05f3a0d7
VS
34042013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3407
c966a489
VS
34082013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * configure.ac: Check that -malign-loops works rather than assuming that
3411 either -falign-loops or -malign-loops work.
3412
bb0c57ec
VS
34132013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3416
24f4e57c
VS
34172013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3418
3419 * configure.ac: Prevent cflags leaking to subsequent tests by always
3420 resetting cflags to target_cflags in target tests.
3421
ac319fbc
VS
34222013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3425 function.
3426
4bfe934c
VS
34272013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3430
40a5bfde
VS
34312013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3434
a67c755e
VS
34352013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 * grub-core/normal/cmdline.c (grub_cmdline_get):
3438 Remove nested functions.
3439
87a04a2d
VS
34402013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3441
3442 * tests/test_sha512sum.in: Make it work on emu.
3443
c03995d2
VS
34442013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3447 functions.
3448 (grub_bidi_line_logical_to_visual): Likewise.
3449
ec0ebb3f
VS
34502013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 Remove vestiges of -Wunsafe-loop-optimisations.
3453
3454 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3455 -Wno-unsafe-loop-optimisations.
3456 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3457 pragma.
3458 * grub-core/io/gzio.c: Likewise.
3459 * grub-core/script/parser.y: Likewise.
3460 * grub-core/script/yylex.l: Likewise.
3461 * util/grub-mkfont.c: Likewise.
3462
6ab537e3
VS
34632013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * util/grub-mkfont.c (process_cursive): Remove nested function.
3466
e6c368d4
VS
34672013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3470 (grub_boot_time): Likewise.
3471
4f1cfd22
VS
34722013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * include/grub/symbol.h (FUNCTION): Use @function rather than
3475 "function".
3476 (VARIABLE): Likewise.
3477
6d5a4cee
VS
34782013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3479
3480 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3481
f06c2172
VS
34822013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3485 (parse_dhcp_vendor): Likewise.
3486
7cb24eb5
VS
34872013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3490
f30c692c
VS
34912013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3494 Define after defining type and not before.
3495
8b66bb5d
VS
34962013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3499 type.
3500 (grub_gcm_decrypt): Likewise.
3501 (algo_decrypt): Likewise.
3502 (grub_zfs_decrypt_real): Transform error type.
3503
5d17fd0f
VS
35042013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3507
ac35a0f7
VS
35082013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3511 (grub_usbms_cbi_reset): Likewise.
3512 (grub_usbms_bo_reset): Likewise.
3513 (grub_usbms_reset): Likewise.
3514 (grub_usbms_attach): Likewise.
3515 (grub_usbms_transfer_cbi): Likewise.
3516
3ee08697
VS
35172013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3518
3519 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3520 "checksum = checksum;".
3521
70bb6c85
VS
35222013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3525 entry_type.
3526
c7f34744
VS
35272013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3530 BIOS disk check.
3531
3f63b4d8
VS
35322013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3535 type.
3536 (grub_ehci_fini_hw): Likewise.
3537 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3538
dac6ce73
VS
35392013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3542 return grub_usb_err_t for cosistency. All users updated.
3543
5701750c
VS
35442013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3545
3546 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3547 assigning to itself.
3548
9e236169
GLD
35492013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
35502013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3551
3552 Issue separate DNS queries for ipv4 and ipv6
3553
3554 Adding multiple questions on a single DNS query is not supportted by
3555 most DNS servers. This patch issues two separate DNS queries
3556 sequentially for ipv4 and then for ipv6.
3557
3558 Fixes: https://savannah.gnu.org/bugs/?39710
3559
3560 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3561 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3562 * (grub_net_dns_lookup): Now using separated dns packages.
3563 * (grub_cmd_nslookup): Add error condition.
3564 * (grub_cmd_list_dns): Print DNS option.
3565 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3566 --prefer-ipv4, and --prefer-ipv6.
3567 * include/grub/net.h (grub_dns_option_t): New enum.
3568 * (grub_net_network_level_address): option added.
3569
339eacce
VT
35702013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3571
3572 * grub-core/video/fb/video_fb.c: Merge two blit functions
3573 into one.
3574
810f991b
VS
35752013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * grub-core/term/terminfo.c: Add sequences for home and end.
3578
386571a2
VS
35792013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3580
3581 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3582 graphics console.
3583
3fe63754
VS
35842013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3585
3586 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3587 add mode 0x12.
3588
76681e71
VS
35892013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3590
3591 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3592 e-mail by Per Öberg.
3593
46522fb7
VS
35942013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3595
3596 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3597 name.
3598
e7d09ac4
AB
35992013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3600
3601 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3602 emu platforms.
3603 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3604
67508925
VS
36052013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3606
3607 * docs/grub.texi: Document usage of menuentry id.
3608
0c62124e
VS
36092013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3612
9b5d4eed
PL
36132013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3614
3615 * grub-core/commands/i386/nthibr.c: New command.
3616
79054c1d
VS
36172013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3620
44d47bbe
VS
36212013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3624 coordinate.
3625
323de05b
VS
36262013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 Support GRUB_DISABLE_SUBMENU config.
3629
3630 Inspired by patch from Prarit Bhargava.
3631
5a01722e
VS
36322013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3633
3634 * docs/grub.texi: Mention RSA support.
3635
1106c3f0
VS
36362013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 * grub-core/commands/verify.c: Add RSA support.
3639
a1dcc2cb
VS
36402013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3643 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3644 device is known to be ATAPI.
3645
ee7fb780
MF
36462013-11-03 Mike Frysinger <vapier>
3647
3648 * configure.ac: Don't add target-prefix.
3649
5ade4a42
VS
36502013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3653 variables.
3654
6cd66043
VS
36552013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3658 if language is English.
3659
090d7c81
VS
36602013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3663
dd614590
VS
36642013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * configure.ac: Don't add -m32/-m64 on emu.
3667
a8686589 36682013-11-02 neil
3669
3670 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3671 broken linux headers.
3672
fb9f12a0
VS
36732013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3676
e25f8e1f
VS
36772013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3680 Reed-Solomon recovery if more than half of redundancy info is 0.
3681
4685200f
VS
36822013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * util/grub-mount.c: Handle symlinks to directories.
3685
1397f0b5
VS
36862013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3687
3688 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3689 find_file recursively for symlink.
3690
8b3e6eb6
VS
36912013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3692
3693 * tests/util/grub-shell.in: Copy themes.
3694
a0c9d5c6
VS
36952013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3696
3697 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3698
5cf9459c
VS
36992013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 * configure.ac: Use 0x8000 for address instead of 8000.
3702
e7b66a28
VS
37032013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3706 signature.
3707
203f53fb
VS
37082013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3711 variable.
3712
02663ee9
VS
37132013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3714
3715 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3716
f169f65e
VS
37172013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3720 file_progress_read_hook.
3721 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3722
2855a0fc
VS
37232013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3724
3725 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3726 and double.
3727
bf0f3a8c
VS
37282013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3729
3730 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3731
cb72aa18
VS
37322013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 Rewrite blocklist functions in order to get progress when
3735 reading large extents and decrease amount of blocklist hook calls.
3736
896f9135
VS
37372013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3740 of SI suffixes.
3741
89295a06
VS
37422013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 Support --base-clock for serial command to handle weird cards with
3745 non-standard base clock.
3746
eb03ede0
VS
37472013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3748
3749 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3750 strncpy.
3751 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3752 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3753 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3754 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3755 + strcpy rather than strncpy.
3756
8fbe5c7d
VS
37572013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3760 (check_pool_label): Likewise. Fixes overflow.
3761 (nvlist_find_value): Fix comparison.
3762
e54b8f53
VS
37632013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3766 more appropriate functions.
3767
fa9b3dca
VS
37682013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3769
3770 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3771 realloc.
3772
9a021c55
VS
37732013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3776
80e8b13a
VS
37772013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3780 on core size.
3781
b61599ac
VS
37822013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3785
a602dc54
VS
37862013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3789 (initialize_tables): reset tl and td to NULL after freeing.
3790
93c12075
VS
37912013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3794
1ca4b75e
VS
37952013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3798 of supported tags.
3799
329550c4
VS
38002013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3803
00bfa988
VS
38042013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3805
3806 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3807 quirks.
3808
81afc5cc
VS
38092013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3810
3811 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3812 a page in protected space.
3813
cb3c4a47
VS
38142013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3817 allocate space for zero-sized modules.
3818
954f7bf5
VS
38192013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3820
3821 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3822
526d3d25
FL
38232013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3824
3825 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3826
74124c34
VS
38272013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3830 safeguards. Fixes a crash with i386/pc/console.c.
3831
5177391e
VS
38322013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3835 and grub_hostfs_init.
3836
64db14b0
VS
38372013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3840 windows method on other platforms without good stat as well.
3841
effe2036
VS
38422013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3845
82591fa6 38462013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 3847
82591fa6
VS
3848 Make / in btrfs refer to real root, not the default volume.
3849 Modify mkrelpath to work even if device is mounted with subvolid option.
3850
38512013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3852
3853 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
3854 extra_dist.
3855 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3856 extra_dist.
3857
30fd7198
VS
38582013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3859
3860 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3861 fails.
3862
8d179dae
BC
38632013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3864
3865 * docs/autoiso.cfg: New file.
3866
3bc9c8cf
VS
38672013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3868
3869 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3870 COND_GRUB_PE2ELF conditions.
3871
8b46b0ea
VS
38722013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3873
3874 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3875 "vnd", "rd" and "fd" disks.
3876
442b86de
VS
38772013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3878
3879 Move grub_disk_write out of kernel into disk.mod.
3880
04dea7e6
VS
38812013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3884 handling.
3885
38862013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
3887
3888 * grub-core/kern/misc.c (grub_abort): Make static
3889
04dea7e6 38902013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
3891
3892 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3893 transform invalid unicode codepoints.
3894
04dea7e6 38952013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
3896
3897 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3898 \0 checking.
3899
03dcac7f
VS
39002013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3901
3902 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3903
c81acb7f
VS
39042013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 Consolidate cpuid code.
3907
c1bee646
VS
39082013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 Move cpuid code to cpuid.h and TSC code to tsc.c.
3911
f37bf9c7
GS
39122013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3913
3914 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3915
4021132b
GS
39162013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3917
3918 * util/grub-mkconfig.in: Replace $0 with $self.
3919 * util/grub-reboot.in: Likewise.
3920 * util/grub-set-default.in: Likewise.
3921
3ace8d75
BC
39222013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3923
3924 * docs/osdetect.cfg: New file.
3925
1e6ad6a6
BC
39262013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3927
3928 * tests/util/grub-shell.in: Add new --debug option.
3929
188929eb
BC
39302013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3931
3932 * tests/test_unset.in: New test.
3933
7994a09a
BC
39342013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3935
3936 * tests/test_sha512sum.in: New test.
3937
2a8a7585
VS
39382013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3941 * include/grub/misc.h: Remove strncat.
3942 * grub-core/lib/posix_wrap/string.h: Likewise.
3943
cf8d6bbd
VS
39442013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3945
3946 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3947 Try to handle more than 0xFFFF packets.
3948 Reported by: Bernhard Übelacker <bernhardu>.
3949 He also spotted few overflows in first version of this patch.
3950
6d1fc99a
VS
39512013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3952
3953 * tests/date_unit_test.c: New test.
3954
10bafa1c
VS
39552013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3956
3957 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3958 of first three years after start of validity of unixtime.
3959
b1c6d037
VS
39602013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3961
3962 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3963 division as the one making more sense.
3964 (update_screen): Likewise.
3965 (complete): Likewise.
3966
5f4028d4
VS
39672013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3970
a2856736
VS
39712013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3972
3973 Make char and string width grub_size_t rather than grub_ssize_t.
3974
0a7e52b2
VS
39752013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3976
3977 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3978 unsigned.
3979 (grub_history_replace): Likewise.
3980
42829573
VS
39812013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3984 appropriate.
3985
3523b8d8
VS
39862013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3989 appropriate.
3990
d43c6489
VS
39912013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3992
3993 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3994 Use unsigned divisions rather than signed variants.
3995
f690f8b0
VS
39962013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3997
3998 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3999 unsigned arithmetics.
4000 Add missing break.
4001
74ff2c05
VS
40022013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4005
fb56391e
VS
40062013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4007
4008 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4009 rather than signed one.
4010 (recovery): Likewise.
4011
40f29060
VS
40122013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4013
4014 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4015
c64577a5
VS
40162013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4019 than signed.
4020
c16535a8
JM
40212013-10-25 Jon McCune <jonmccune@google.com>
4022
4023 * docs/grub.texi: Cleanup security documentation around signatures.
4024
6673d8e7
VS
40252013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4028
a105d375
VS
40292013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4030
4031 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4032 than int.
4033
af81ed88
VS
40342013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4035
4036 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4037 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4038 functions when compiling for kernel.
4039
ea899a57
VS
40402013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4043 unsigned long long when using %llu.
4044
c6dc6fa1
VS
40452013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4046
4047 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4048 terminal after updating progress.
4049
ad2dc003
VS
40502013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4053 argument. We don't disable Gate A20 in this code.
4054
b46684ae
VS
40552013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4056
4057 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4058 Conceptually based on change in branch "vbe-on-coreboot".
4059
f70d5c07
RM
40602013-10-24 Robert Millan <rmh@gnu.org>
4061
4062 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4063 numeric constants with their symbolic equivalent.
4064 Taken from branch "vbe-on-coreboot".
4065
bca274b4
VS
40662013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4067
4068 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4069
238f0489
VS
40702013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4071
4072 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4073 divmod64 for offset division.
4074
863c590b
PFS
40752013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4076
4077 Rename .bzrignore to .gitignore. Add "*.o" rule.
4078
4079 * .bzrignore: Renamed to...
4080 * .gitignore: ...this.
4081
84a0e969
PFS
40822013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4083
4084 Add new progress module that displays the load progress of files.
4085
4086 * grub-core/lib/progress.c: New file.
4087 * grub-core/Makefile.core.def (progress): New module.
4088 * grub-core/kern/file.c (grub_file_open): File name added.
4089 * (grub_file_read): Progress hook added.
4090 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4091 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4092 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4093 * include/grub/file.h (struct grub_file): Add progress module members.
4094 * include/grub/term.h (struct grub_term_output): Likewise.
4095 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4096 Terminal velocity added.
4097 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4098 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4099 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4100 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4101 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4102 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4103 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4104 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4105 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4106 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4107 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4108 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4109
0d711431
VS
41102013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4111
4112 Verify signatures of signatures unless --skip-sig is specified.
4113
f8401f76
VS
41142013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4115
4116 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4117 \0 checking.
4118
4119 Saves 70 bytes on compressed image.
4120
ac1feb61
VS
41212013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4122
4123 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4124 check.
4125
4126 Saves 10 bytes on compressed image.
4127
00f72e89
VS
41282013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4129
4130 * grub-core/kern/misc.c (grub_isprint): Move to ...
4131 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4132
4133 Saves 20 bytes on compressed image due to remving exporting.
4134
067e6ae7
VS
41352013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4136
4137 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4138
4139 Saves 5 bytes on compressed image.
4140
64a6c791
VS
41412013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4142
4143 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4144 function get_utf8.
4145
4146 Saves 379 bytes on compressed image.
4147
979d9f52
VS
41482013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4151
1437da54
VS
41522013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4155
4156 Saves 40 bytes on compressed image.
4157
d9ee2269
VS
41582013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4159
4160 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4161 mask rather than 64-bit type.
4162
4163 Saves 20 bytes on compressed image.
4164
63efa602
VS
41652013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4168 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4169
47601ffe
VS
4170 Saves 273 bytes on compressed image.
4171
2cc679ad
VS
41722013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4175 variable length arrays.
4176
4177 Saves 50 bytes on compressed image.
4178
2e4659b8
VS
41792013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4180
4181 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4182
2a40badf
VS
41832013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 * grub-core/fs/ufs.c: Remove variable length arrays.
4186
1ba6b9b9
VS
41872013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4190
f3e39341
VS
41912013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 * grub-core/fs/zfs.c: Remove variable length arrays.
4194 Reduces zfs.mod by 160 bytes (208 compressed).
4195
71523935
VS
41962013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4199
28153eb8
VS
42002013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 * grub-core/net/arp.c: Remove variable length arrays.
4203 * grub-core/net/bootp.c: Likewise.
4204 * grub-core/net/dns.c: Likewise.
4205 * grub-core/net/icmp6.c: Likewise.
4206 * grub-core/net/net.c: Likewise.
4207
88ce4cd7
VS
42082013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4209
4210 * grub-core/fs/ntfs.c: Remove variable length arrays.
4211 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4212 compressed).
4213
66123940
VS
42142013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * grub-core/fs/hfs.c: Remove variable length arrays.
4217 Reduces hfs.mod by 8 bytes (52 compressed).
4218
0927e5bd
VS
42192013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4220
4221 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 4222 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
4223 compressed).
4224
9c12ac97
VS
42252013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4226
4227 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 4228 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
4229 compressed).
4230
97ec2d71
VS
42312013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4232
4233 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 4234 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
4235 compressed).
4236
156e4ea0
VS
42372013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 * grub-core/fs/xfs.c: Remove variable length arrays.
4240 Reduces xfs.mod by 40 bytes (43 compressed).
4241
3b502c29
VS
42422013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4243
4244 * grub-core/fs/fshelp.c: Remove variable length arrays.
4245 Reduces fshelp.mod by 116 bytes (23 compressed).
4246
c7037f1d
VS
42472013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4248
4249 * grub-core/normal/completion.c: Remove variable length arrays.
4250 * grub-core/normal/menu_entry.c: Likewise.
4251
4252 Reduces normal.mod by 496 bytes.
4253
a07e6ad0
VS
42542013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4255
4256 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4257 by 356 bytes (158 compressed).
4258
2359bf88
VS
42592013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4260
4261 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4262 by 364 bytes (169 compressed).
4263
d28e1163
VS
42642013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4265
4266 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4267 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4268 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4269
e89c2d48
VS
42702013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4273 bitmasks to small structures of size chosen to fit in registers.
4274
7abdac8e
VS
42752013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 * conf/Makefile.common: Use -freg-struct-return on i386. This
4278 decreases code size and improves performance.
4279
518864c0
VS
42802013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4281
4282 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4283
bbd2b539
VS
42842013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4285
4286 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4287 "(null)" string.
4288 Simplify expressions to save around 256 bytes in kernel.img.
4289 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4290
99519c15
VS
42912013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4292
4293 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4294 Use GRUB_UTIL_FD_O_* rather than O_*.
4295
20285765
VS
42962013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 Add haiku-specific functions.
4299
887c0bb6
VS
43002013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4303
cd78a56f
VS
43042013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 Move stat () and device mode checking into OS-dependent files as
4307 long as performance doesn't suffer.
4308
a4012f07
VS
43092013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 Split make_system_path_relative_to_its_root into separate file
4312 relpath.c from getroot.c as it's common between unix and haiku
4313 but otherwise haiku doesn't use any functions from unix getroot.c.
4314
31de274d
VS
43152013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4318 New function.
4319 (grub_util_is_special_file): Likewise.
4320
40346de6
VS
43212013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4322
4323 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4324 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4325
d3923ab9
VS
43262013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4327
4328 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4329 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4330
663f6eb1
VS
43312013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4332
4333 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4334 (load_image): Likewise.
4335
44d1c20a
VS
43362013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4337
4338 * util/grub-render-label.c: Move backend part to ...
4339 * util/render-label.c: ... here.
4340
d0a116ee
VS
43412013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4342
4343 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4344 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4345
b47fcae6
VS
43462013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4347
4348 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4349
0f7c00c1
VS
43502013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4351
4352 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4353 CD-ROM in case when it's declared as having subpartitions.
4354
29013cba
VS
43552013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4356
4357 Don't add -lm on haiku.
4358
4359 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4360 and empty on haiku.
4361 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4362 -lm.
4363
e8559d24
VS
43642013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 * configure.ac: Use -melf_*_haiku as target on haiku.
4367
8104063c
VS
43682013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4369
4370 * Makefile.util.def: Add util/setup.c to extra_dist.
4371
fc3182c7
VS
43722013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4375 unknown types through.
4376
f90a3cc0
VS
43772013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4380 (grub_util_check_char_device): Likewise.
4381 * include/grub/emu/getroot.h: Likewise.
4382
1e3e7419
VS
43832013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4384
4385 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4386 memset rather than inline static function.
4387
92c88fc8
VS
43882013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4389
4390 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4391 not doing embedded decompressor.
4392
3cd910a2
VS
43932013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4394
4395 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4396 shadowing.
4397 * grub-core/kern/disk.c: Likewise.
4398 * grub-core/kern/misc.c: Likewise.
4399 * include/grub/parser.h: Likewise.
4400 * include/grub/script_sh.h: Likewise.
4401 * include/grub/zfs/zfs.h: Likewise.
4402
7b3aca00
VS
44032013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4404
4405 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4406
97dfe7e4
VS
44072013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4408
4409 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4410 defined before trying to use it.
4411
bf919aa9
VS
44122013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4415 warning.
4416
f4ccf29d
VS
44172013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4420 Use __unused__ rather than __used__ on gcc < 3.2.
4421
0d3a6f85
VS
44222013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4423
4424 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4425 gcc < 4.0.
4426 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4427
757e3eb7
VS
44282013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4429
4430 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4431
fb320faf
VS
44322013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4435 * include/grub/emu/misc.h: Likewise.
4436
ea73acd2
VS
44372013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4440 cur_color.
4441
71237a6f
VT
44422013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4443
4444 * grub-core/tests/checksums.h: Regenerated due to progress bar
4445 get_minimal_size changes.
4446
3d46c22f
BC
44472013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4448
4449 Added `tr' command support.
4450
4451 * grub-core/commands/tr.c: New file.
4452 * grub-core/Makefile.core.def: Build rules for new module.
4453
4454 * tests/grub_cmd_tr.in: New test.
4455 * Makefile.util.def: Build rules for new test.
4456
47e0a61f
VT
44572013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4458
4459 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4460
946fd073
VT
44612013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4462
4463 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4464 * docs/gurb.texi: Likewise.
4465
9c13c576
VT
44662013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4467
4468 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4469 Pixmap highlighted section with east and west slices was displayed
4470 incorrectly due to negative width of the central slice.
4471
ad543f12
VT
44722013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4473
4474 * docs/grub.texi: Graphical options information update.
4475 Removed outdated. Updated current. Inserted missed.
4476
6176a0cd
VS
44772013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * docs/grub.texi: Mention few new platform-specific commands.
4480
9688cae2
VS
44812013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4484 currently used so this doesn't really have any effect.
4485 Reported by: Douglas Ray <dougray>
4486
f7b69a3f
VS
44872013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4490 compilation but prevents gcc from displaying messages in non-Latin
4491 alphabets.
4492 * conf/Makefile.common: Likewise.
4493
ceca6ddf
HY
44942013-10-16 Hiroyuki YAMAMORI
4495
4496 Handle Japanese special keys.
4497 Reported by: Hiroyuki YAMAMORI.
4498 Codes supplied by: Hiroyuki YAMAMORI.
4499
ac48d334
VT
45002013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4501
4502 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4503
b2b71bff
VT
45042013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4505
4506 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4507 * docs/grub.texi: Likewise.
4508
669fc449
VS
45092013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4512 value in case of incomplete read.
4513 (grub_util_fd_write): Likewise.
4514
59381678
VS
45152013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4518
bacfefbb
VS
45192013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4520
4521 * util/grub-editenv.c (create_envblk_file): More from here ...
4522 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4523
f7c49570
VS
45242013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4525
4526 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4527 canonicalize file name before doing the rest.
4528
7b83ca44
VS
45292013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4530
4531 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4532 mingw32.
4533
df1e64c9
VS
45342013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4535
4536 Define grub_util_is_directory/regular/special_file and
4537 use OS-dependent versions rather than to rely on stat().
4538
ec16e026
VS
45392013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 * util/grub-mkimage.c: Move backend part to ...
4542 * util/mkimage.c: ... here.
4543
4b4eeb3c
VS
45442013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4545
4546 Allow compilation with mingw64 albeit with warnings due to lack of
4547 %llx/%llu.
4548
4549 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4550 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4551 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4552 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4553 on mingw64.
4554 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4555
f4e0adc0
VS
45562013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4557
4558 Remove leftover references to some of the system headers.
4559
e0127364
VS
45602013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4561
4562 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4563 read.
4564
20d53541
VS
45652013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4568 of strerror.
4569
5a869940
VS
45702013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4571
4572 Split out blocklist retrieving from setup.c to
4573 grub-core/osdep/blocklist.c and add windows implementation since
4574 generic version doesn't work on NTFS on Windows due to aggressive
4575 unflushable cache.
4576
c06c7520
VS
45772013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4580 files.
4581
8f53bb3f
VS
45822013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4583
4584 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4585 Cut tailing newline. Remove arbitrary limitation. Always use
4586 grub_util_tchar_to_utf8.
4587
148f1007
VS
45882013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4591 * tests/printf_unit_test.c (printf_test): Add %% tests.
4592 Reported by: Paulo Flabiano Smorigo.
4593
af3b06be
VS
45942013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4595
4596 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4597 implement fsync.
4598
27f9d02e
VS
45992013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4600
4601 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4602 use nvlist_lookup_string and don't use nvlist_print.
4603
f6a81f0a
VS
46042013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4605
4606 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4607 closedir to handle filename charset translation.
4608
d7750b32
VS
46092013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4610
4611 * include/grub/emu/hostdisk.h: Move file operations to
4612 * include/grub/emu/hostfile.h: ... here.
4613
2859196e
VS
46142013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4617 unicode path.
4618
c018c968
VS
46192013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4620
4621 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4622
7e45abce
VS
46232013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4626 and remove export.h.
4627
23934da2
VS
46282013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 * grub-core/kern/emu/error.c: Removed.
4631 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4632 explicitly as it's already in libgnu.a.
4633
c11ebcc8
VS
46342013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4635
4636 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4637 config-util.h include.
4638
70671037
VS
46392013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4640
4641 Split emunet into platform-dependent and GRUB-binding parts. Keep
4642 platform-dependent part in kernel for easy access to OS functions.
4643
25ac643a
VS
46442013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4645
4646 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4647 open/read/write.
4648
69ca5876
VS
46492013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4650
4651 * grub-core/osdep/windows/emuconsole.c: New file.
4652
d9d68ef0
AB
46532013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4654
4655 * conf/Makefile.extra-dist: Add osdep/*/init.c
4656
58e211cc
VS
46572013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4658
4659 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4660
588744d0
VS
46612013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4662
4663 * util/grub-probe.c (probe): Separate different drives in hint-str
4664 by spaces and not newlines.
4665 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4666
44016e52
AB
46672013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4668
4669 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4670 Handle CD-ROMs.
4671
6de9ee86
VS
46722013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4673
4674 Pass-through unknown E820 types. It required reorganisation of mmap
4675 module.
4676
f8f3f155
AB
46772013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4678
4679 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4680
b73249d2
VS
46812013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4684 fseeko.
4685
dac86b18 46862013-10-14 qwertial <qwertial>
4687
4688 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4689
17614b84
JM
46902013-10-14 Jon McCune <jonmccune@google.com>
4691
4692 * docs/grub.texi: Document new signatures possibility.
4693
6de292cb
VS
46942013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4697
84379b61
VS
46982013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4701 missing prototype.
4702 (grub_util_tchar_to_utf8): Likewise.
4703
21d85db1
VS
47042013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4705
4706 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4707 * grub-core/kern/emu/main.c: Add missing include.
4708 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4709 Don't call grub_util_init_nls.
4710 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4711 Likewise.
4712
66a1b3ee
VS
47132013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4714
4715 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4716 stat.
4717
e19bec17
VS
47182013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4719
4720 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4721
ee8c1b29
VS
47222013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4723
4724 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4725
bb338aaf
VS
47262013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 Add a wrapper for fopen. On unix-like systems just pass-through. On
4729 windows use unicode version.
4730
ae5540d3
VS
47312013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4732
4733 Move set_program_name and init_nls to host_init. On windows
4734 fix in this fuction console and argument charset as well.
4735
4cd3c4fe
AB
47362013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4737
4738 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4739 GRUB_ENABLE_CRYPTODISK.
4740
4741 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4742 GRUB_ENABLE_CRYPTODISK.
4743 * util/grub-mkconfig_lib.in: Likewise.
4744
78170f3e
CCZ
47452013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4746
4747 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4748
3414b6c0
MC
47492013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4750
4751 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4752 error when enabling debug.
4753
6d0740e8
IB
47542013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4755
4756 * configure.ac: Use -melf_*_obsd on openbsd.
4757
ff2d4dc4
VS
47582013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4759
4760 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4761
eac6ae82
VS
47622013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4763
4764 * include/grub/misc.h: Use gnu_printf rather than printf as format
4765 template since our functions are independent of libc.
4766
ba9baabe
VS
47672013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4768
4769 * util/grub-setup.c (setup): Move copying of partition table as
4770 futher up as possible to avoid possible overwrite by floppy routines.
4771
47722013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
4773
4774 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4775
145e2369
VT
47762013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4777
4778 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4779 * docs/grub.texi: Likewise.
4780
3530bc9d
VS
47812013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4782
4783 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4784 it's mostly unused. Move vestiges to the callers.
4785
fb9f59c3
VS
47862013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4787
4788 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4789 version of salt and hash. Use grub_snprintf rather than snprintf.
4790
9be1c255
VS
47912013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4792
4793 * docs/grub.texi: Fix problem with braces.
4794
ed8c0887
VS
47952013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4796
4797 * conf/Makefile.extra-dist: Fix extra-dist list.
4798 * grub-core/Makefile.core.def: Likewise.
4799
f72ab14e
VS
48002013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 * docs/grub.texi: Document disk names used on Windows and AROS.
4803
2fe53a22
VS
48042013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4807 with AROS devs.
4808 * grub-core/osdep/aros/hostdisk.c: Likewise.
4809
71c1d67a
VS
48102013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4811
4812 Avoid including hostfile.h when not necessarry as it pulls
4813 in OS-specific headers which may redefine generic names
4814 like "far".
4815
ad297ec7
VT
48162013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4817
4818 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4819 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4820 scrollbar_bottom_pad
4821 * docs/grub.texi: Likewise.
4822
6e9e5dc9
VT
48232013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4824
4825 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4826
761c718b
VS
48272013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4830
37149a2f
VS
48312013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4832
4833 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4834 Removed.
4835 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4836 Made static.
4837
3837a151
VS
48382013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4839
4840 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4841 leftover.
4842
caca1c70
VS
48432013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4844
4845 Move OS-specific driver configuration to grub_util_fd_open. This
4846 moves OS-dependent parts from kern/emu/hostdisk.c to
4847 grub-core/osdep/*/hostdisk.c.
4848
f7676b70
VS
48492013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4850
4851 * util/grub-mkimage.c (generate_image): Use size_t instead of
4852 grub_size_t.
4853 * util/grub-mkimagexx.c (locate_sections): Likewise.
4854 (load_image): Likewise.
4855
22f98db2
VS
48562013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4857
4858 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4859 size_t.
4860 (grub_util_write_image): Likewise.
4861
b102ce69
VS
48622013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4863
4864 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4865 get random when no RNG is available.
4866 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4867
acbbe5cb
VS
48682013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4869
4870 * include/grub/util/lvm.h: Removed.
4871
2112fb3f
VS
48722013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4875 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4876
79f78fbf
VS
48772013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4878
4879 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4880
c2e6f705
VS
48812013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4884
aabe433a
VS
48852013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 * grub-core/net/drivers/emu/emunet.c: Move to ..
4888 * grub-core/osdep/linux/emunet.c: ..here.
4889
9a2c903f
VS
48902013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4891
4892 * util/ieee1275/ofpath.c: Move to ...
4893 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4894 * grub-core/osdep/basic/ofpath.c: ..here.
4895
4a445f58
VS
48962013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 Move password-querying (util-version) routines to grub-core/osdep.
4899
c1ca4244
VS
49002013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4901
4902 Move sleep routines to grub-core/osdep.
4903
672fa55e
VS
49042013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4905
4906 Move OS-dependent files to grub-core/osdep and document it.
4907
a5b0365a
VS
49082013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4911 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4912
29072e99
VS
49132013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4916
f8772ea7
VS
49172013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4918
4919 * util/misc.c: Remove leftover inclusion of malloc.h.
4920
a1a315e7
VS
49212013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4922
4923 * include/grub/setjmp.h: Remove leftover GRUBOF.
4924
cef86fef
VS
49252013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4926
4927 * util/raid.c: Fold into ...
4928 * util/getroot_linux.c: ... here. Make all functions static.
4929
c4cf25ee
VS
49302013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4931
4932 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4933 macros to GRUB ones.
4934
53a5f5c2
VT
49352013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4936
4937 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4938 occasional bug. If there are too many boot entries or too low
4939 scrollbar height then we need to use another formula to calculate
4940 the position and size of the scrollbar thumb.
4941
de300af2
VS
49422013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4943
c4cf25ee 4944 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 4945
c5827364
VT
49462013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4947
4948 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4949 * docs/grub.texi: Likewise.
4950
dd2ed8b0
VT
49512013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4952
4953 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4954 viewport.
4955
7286c384
VT
49562013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4957
ffdfc1f3
VT
4958 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4959 minimal width calculations.
7286c384 4960
ea547e14
VS
49612013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4962
4963 * docs/grub.texi: Update note on colors on emu console.
4964
b726be76
VS
49652013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4968 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4969 it's FS and not GRUB limitation.
4970
a5f6ade6
VS
49712013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4974
3b0f3aa2
VS
49752013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4978
1db38304
ST
49792013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4980
4981 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4982 kernels by version order.
4983
fb295fc0
VS
49842013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4987
47345010
VS
49882013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4989
4990 Add AROS hostdisk and getroot routines.
4991
bf25f879
VS
49922013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4993
4994 Make cryptodisk and diskfilter probe data retrievable programmatically
4995 and not just printable.
4996
24ca4512
VS
49972013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4998
4999 Split random retrieving code into separate files.
5000
c7c177f0
VS
50012013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5002
5003 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5004 R_ARM_V4BX.
5005
d71b45ae
VS
50062013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5009 condition.
5010 * grub-core/tests/fake_input.c: Likewise.
5011 * grub-core/tests/cmdline_cat_test.c: Likewise.
5012
e44b9a83
VS
50132013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5014
5015 * grub-core/video/capture.c: Do not do finalization when .fini
5016 is called as there is explicit capture_end.
5017
4fa60739
VS
50182013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5019
5020 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5021 changing windows to avoid crash.
5022
17c8bc37
VS
50232013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5024
5025 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5026
9d4d7977
VS
50272013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5028
5029 * po/exclude.pot: Add several strings to exclude.
5030
0caa407c
VS
50312013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5034
9ae393da
VS
50352013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5036
5037 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5038 ./util/grub-gen-asciih.c to exclude list.
5039
498d5033
VS
50402013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5041
5042 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5043 and don't mark error strings for translation.
5044
7d93298f
VS
50452013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5048 properly in case of missing block size.
5049
b2cae20c
VS
50502013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 * grub-core/lib/arm/setjmp.S: Add missing license section.
5053
3896d6b4
VS
50542013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * po/swiss.sed: Add replacement for key names and for term computer.
5057
ebc1da55
VT
50582013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5059
5060 * grub-core/gfxmenu/theme_loader.c: New global options for the
5061 theme background image handling. desktop-image-scale-method,
5062 desktop-image-h-align, desktop-image-v-align.
5063 * grub-core/gfxmenu/view.c: Likewise.
5064 * include/gfxmenu_view.h: Likewise.
5065 * include/bitmap_scale.h: Proportional scale functions introduced.
5066 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5067 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5068 cases of unexpected input variables for scale functions.
5069 * docs/grub.texi: Updated documentation for new options.
5070
c5739143
VS
50712013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5072
5073 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5074
be74aeb3
VT
50752013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5076
5077 * grub-core/tests/checksums.h: Corrected due to changes in
5078 bilinear interpolation function.
5079
d999ac72
VT
50802013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5081
5082 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5083 to eliminate artefacts in bilinear interpolation.
5084
2b131610
VS
50852013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 * grub-core/video/readers/tga.c: Support paletted tga.
5088
de6e5ff8
VS
50892013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5090
5091 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5092 incorrect cbcr setting when in color mode.
5093
fa31ee9c
VS
50942013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5095
5096 * grub-core/video/readers/png.c: Support paletted images and clean up
5097 greyscale support.
5098
e84f8188
VS
50992013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5100
5101 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5102 usage of wrong table which resulted in mishandling of 4-byte
5103 sequences.
5104
51052013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
5106
5107 * grub-core/term/terminfo.c: Add Home and End key sequences.
5108
d72bff09
VS
51092013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5110
5111 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5112 Fix formula for computing total number of bytes.
5113
29648c5d
VS
51142013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5115
5116 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5117 image processing, fix big-endian and support grayscale.
5118
4a876492
VS
51192013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5120
5121 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5122 Correctly will with maximum transparency when using index color.
5123
3ccf16df
VS
51242013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5125
5126 * grub-core/video/readers/png.c: Support grayscale
5127
51282013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
5129
5130 * grub-core/video/readers/jpeg.c: Support grayscale.
5131
3ccf16df 51322013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
5133
5134 * grub-core/commands/loadenv.c: Support skipping signature check
5135 and variable names filtering.
5136
30b7f58f
VS
51372013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5138
5139 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5140 * grub-core/kern/emu/hostfs.c: Likewise.
5141 * util/getroot_unix.c: Likewise.
5142
bab7b1eb
VS
51432013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5144
5145 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5146 Migrate all explicit defines to this new one.
5147
43b1c99d
VS
51482013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5151 grub_util_fd_strerror when using grub_util_fd_*.
5152 (grub_util_fd_open_device): Likewise.
5153 (grub_util_biosdisk_read): Likewise.
5154 (grub_util_biosdisk_write): Likewise.
5155 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5156 (grub_util_fd_strerror): Likewise.
5157 (grub_util_fd_sync): Likewise.
5158 (grub_util_fd_close): Likewise.
5159 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5160 (grub_util_fd_close): Likewise.
5161 (grub_util_fd_strerror): Likewise.
5162 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5163 function proto rather than macro.
5164 (grub_util_fd_sync): Likewise.
5165 (grub_util_fd_open): Likewise.
5166 (grub_util_fd_strerror): New proto.
5167
e8fd80bc
VS
51682013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5171 platforms on which it doesn't work.
5172
bf645fda
VS
51732013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5176 stat immediately to where it's used.
5177
5177ba14
VS
51782013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5179
5180 * util/getroot.c (grub_util_check_block_device): Move to ...
5181 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5182 * util/getroot.c (grub_util_check_char_device): Move to ...
5183 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5184
9db826e1
VS
51852013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5186
5187 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5188 disk closing logic.
5189
49120085
AB
51902013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5191
5192 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5193
b3328b68
AB
51942013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5195
5196 * docs/grub.texi (File name syntax): Document ZFS filenames
5197 (/volume@snapshot/...).
5198
3fff48ab
VS
51992013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5202 Always return full path. Fixes a problem with mkrelpath.
5203
39cfdaa9
PFS
52042013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5205
5206 * util/grub-install.in: Add GPT PReP support.
5207 * util/grub-probe.c (probe): Support GPT partition type.
5208 (main): Support -t gpt_parttype.
5209
7c680e1f 52102013-09-23 Aleš Nesrsta <starous@volny.cz>
5211
5212 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5213
890bdabe
MM
52142013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5215
5216 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5217
9c262ff9
TH
52182013-09-23 Tim Hardeck <thardeck>
5219
5220 * util/grub.d/10_hurd.in: Filter out character for the class.
5221 * util/grub.d/10_kfreebsd.in: Likewise.
5222 * util/grub.d/10_linux.in: Likewise.
5223 * util/grub.d/20_linux_xen.in: Likewise.
5224
d755342a
MC
52252013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5226
5227 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5228 "changed".
5229
68b77707
JT
52302013-09-23 Josh Triplett <josh@joshtriplett.org>
5231
5232 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5233 boot partition.
5234
efa68bfa
VS
52352013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5236
5237 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5238 doesn't use posix_wrap. Keep literal -fno-builtin however.
5239
d9104204
VS
52402013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5241
5242 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5243
c248781a 52442013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
52452013-09-23 neil
5246
5830df88 5247 * configure.ac: Do not enable -Wmissing-noreturn as its
5248 usefulness is limited and creates problems on some OS notably with
5249 code generated by bison.
5250
52512013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
52522013-09-23 neil
5253
5254 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 5255 supported by all gcc and when it is, it's already enabled by -Wall.
5256
621bed69
VS
52572013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5258
5259 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5260 desactivated use of EDID at all.
5261
71764dc8 52622013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
52632013-09-23 neil
5264
5265 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5266 video if no text is available.
5267
affce7d4 52682013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
52692013-09-23 neil
5270
5271 * configure.ac: Substitute TARGET_RANLIB.
5272
52732013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
52742013-09-23 neil
affce7d4
VS
5275
5276 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5277
5278 Based on patches from AROS.
5279
0e8daad0 52802013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 52812013-09-23 neil
0e8daad0
VS
5282
5283 * grub-core/Makefile.am: Override STRIP and RANLIB.
5284 * configure.ac: compute TARGET_RANLIB.
5285 * INSTALL: Document TARGET_RANLIB
5286
5287 Based on patches from AROS.
5288
3f7d9c82
VS
52892013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5290
5291 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5292 that floppies are unpartitioned.
5293
bca8873a
VS
52942013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5295
5296 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5297 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5298
52992013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5302 less nice but more portable.
5303 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5304
a47a78be
VS
53052013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5306
5307 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5308 for cheat_fd.
5309 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5310 functions.
5311 (grub_cryptodisk_cheat_insert): Likewise.
5312 (grub_cryptodisk_close): Likewise.
5313
e85a5d5c
VS
53142013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5315
5316 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5317 Use windows path for DEFAULT_DIRECTORY.
5318
dad9fa6b
VS
53192013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5322 difference was likely just gcc version, not anything mingw-related.
5323
7e518ca8
VS
53242013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5325
5326 Use Winapi on both cygwin and mingw32 to share more code between both.
5327
d68d0157
AB
53282013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5329
5330 * util/grub-install.in: Add --grub-editenv option.
5331 * util/grub-install_header (grub_compress_file): Explicitly check for
5332 plain file to avoid cp error.
5333
775b284d
AB
53342013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5335
5336 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5337 names; fix LVM driver name (lvm, not lv).
5338 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5339 names.
5340
3ff4063d
VS
53412013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5342
5343 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5344 files rather than one file with loads of #if's.
5345 * util/getroot.c: Likewise.
5346
287faafe
VS
53472013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5348
5349 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5350
d1983764
VS
53512013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5352
5353 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5354 GNU/Hurd to the list of checked PRNG.
5355
15ce95c4
VS
53562013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5357
5358 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5359
207862dd 53602013-09-21 Ales Nesrsta <starous@volny.cz>
5361
7c680e1f 5362 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 5363
63653cfd
VS
53642013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5365
5366 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5367 * grub-core/disk/lvm.c: Add LVM UUIDs.
5368 * util/getroot.c: Use LVM UUIDs whenever possible.
5369
f5d3e7ef
AB
53702013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5371
5372 * docs/grub.texi (Networking commands): Add documentation for
5373 network related commands.
5374
53c6b7d6
VS
53752013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5376
5377 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5378 to determine if device is handled by devmapper.
5379 (convert_system_partition_to_system_disk): Likewise.
5380 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5381 already done in grub_util_open_dm.
5382
e70d6736
LL
53832013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5384
5385 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5386 Clean up stack manipulation (sync_caches_armv*)
5387
90379808
VS
53882013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 * util/lvm.c: Remove since unused. Remove remaining references.
5391
386701a8
VS
53922013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 Handle the case of partitioned LVM properly.
5395
5396 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5397 Stop on meeting LVM, mpath or DMRAID.
5398 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5399 (read_device_map): Likewise.
5400 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5401 device is full disk rather than erroring out on LVM and similar cases.
5402
53070787
VS
54032013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5404
5405 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5406
1bc783bd
VS
54072013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5408
5409 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5410 4K before the end.
5411 Reported by: Leif Lindholm
5412
436ad5c3
PW
54132013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
54142013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5415
5416 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5417 codes.
5418
607319c9
CW
54192013-09-18 Colin Watson <cjwatson@ubuntu.com>
5420
5421 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5422 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5423
d404d154
DR
54242013-09-18 Douglas Ray <dougray@cpan.org>
5425
5426 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5427 as secure.
5428
28851ef6
AN
54292013-09-18 Aleš Nesrsta <starous@volny.cz>
5430
5431 * docs/grub.texi: Fix broken link.
5432
897c3bc6
MC
54332013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5434
5435 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5436 to break endless loop.
5437
f1630459
VS
54382013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5439
5440 * util/grub-fstest.c: Fix several printf formats.
5441 * util/grub-mkimage.c: Likewise.
5442 * util/grub-mkimagexx.c: Likewise.
5443 * util/grub-script-check.c: Likewise.
5444
64463dfd
VS
54452013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5448 error.
5449
48972495
VS
54502013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5451
5452 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5453
5dd5e64b
VS
54542013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5455
5456 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5457 removed in current versions cygwin_conv_*.
5458
1c1f31e5
VS
54592013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5460
5461 * configure.ac: Disable efiemu runtime on cygwin.
5462
c546a259
VS
54632013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5464
5465 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5466 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5467
81690478
VS
54682013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5471 error message.
5472
6b87c10a
VS
54732013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5474
5475 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5476 windows variant.
5477 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5478 data.
5479
8f0baaac
VS
54802013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5481
5482 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5483 when on x86 and not cygwin.
5484 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5485 -Wl,-melf_x86_64.
5486
b224c266
VS
54872013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5488
5489 * configure.ac: Set CPP to build one when checkoing for freetype for
5490 build.
5491
506b336b
VS
54922013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5495 [!GRUB_BUILD]: Remove has_argument.
5496
8c8c87b7
VS
54972013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5498
5499 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5500 Replace with a dummy.
5501
7dc5ca13
VS
55022013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5503
5504 * configure.ac: Don't change host_os from mingw to cygwin.
5505
c3302aa5
VS
55062013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5507
5508 * configure.ac: Change target_os from windows to cygwin.
5509
7b780018
VS
55102013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5511
5512 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5513
5514 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5515 (build-grub-gen-asciih): Likewise.
5516 (build-grub-gen-widthspec): Likewise.
5517 * Makefile.util.def (grub-pe2elf): Remove.
5518 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5519 * configure.ac: Separate tests for build.
5520 Move ./build-grub-pe2elf to grub-core.
5521 Fix typo.
5522 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5523 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5524 defined.
5525 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5526 constants.
5527 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5528 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5529 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5530
984cfd8a
VS
55312013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5532
5533 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5534 mingw32 as well based on grub_util_get_disk_size.
5535 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5536 grub_util_get_fd_size.
5537 (sync): Removed.
5538 (fsync): Moved to ...
5539 * grub-core/kern/emu/misc.c (fsync): ... here.
5540
f82d79c9
VS
55412013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5542
5543 * include/grub/mm.h (grub_extend_alloc): Remove.
5544 * grub-core/loader/i386/pc/plan9.c: Use own version of
5545 grub_extend_alloc with appropriate types.
5546
fd7dd66d
VS
55472013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5548
5549 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5550
43ffba7c
VS
55512013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5554
3c7eac44
VS
55552013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5556
5557 Fix dependencies on cygwin.
5558
5559 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5560 dependencies when used and defined.
5561 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5562
bdb5ba47
VS
55632013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5564
5565 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5566 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5567
ed7fbf43
VS
55682013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5569
5570 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5571 implementation available to cause compile-time rather than runtime
5572 error.
5573
fc46e9fc
VS
55742013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5575
5576 * util/grub-fstest.c: Don't check for symlinks on windows.
5577
7f68269a
VS
55782013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5579
5580 * INSTALL: Mention unavailability of man pages when cross-compiling.
5581
8ed358e0
VS
55822013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5585 and gcry_log_bug.
5586 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5587
fc97214f
VS
55882013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5589
5590 * INSTALL: Document cross-compilation.
5591 * acinclude.m4: Determine whether nm support -P and --defined-only.
5592 * configure.ac: Add TARGET_ to all variables pertaining to target
5593 that don't have it yet.
5594 * gentpl.py: Likewise.
5595 * grub-core/Makefile.am: Likewise.
5596 * grub-core/genmod.sh.in: Likewise.
5597 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5598 as well.
5599
ca1fb563
IB
56002013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5601
5602 * configure.ac: Remove -Wempty-body. It's not essential and needs
5603 recent gcc.
5604
0031b229
IB
56052013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5606
5607 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5608 * util/getroot.c: Likewise.
5609
54ea2f44
VS
56102013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * grub-core/disk/ahci.c: Add needed explicit cast.
5613 * grub-core/lib/backtrace.c: Likewise.
5614 * grub-core/net/ip.c: Likewise.
5615 * grub-core/net/tcp.c: Likewise.
5616 * grub-core/net/udp.c: Likewise.
5617
3c601f8c
VS
56182013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5619
5620 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5621
1d679dda
VS
56222013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5623
5624 * util/import_gcry.py: Add final newline in visibility.h.
5625
00c28dd9
VS
56262013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5627
5628 * conf/Makefile.common: Fix typo.
5629
32af299a
VS
56302013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5633
e733cf52
VS
56342013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5635
5636 * Makefile.am (widthspec.h): Fix typo.
5637 * util/grub-gen-widthspec.c: Likewise.
5638
c6b066f2
VS
56392013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5640
5641 Move ascii.h and widthspec.h generation to a separate build-time-only
5642 tool.
5643
ad1fe3f9 56442013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5645
5646 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5647 Always fill bootdisk info and improve check for NetBSD disklabel.
5648
92a52dd4
VS
56492013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5650
5651 * conf/Makefile.extra-dist: Add util/bin2h.c.
5652 Reported by: floppym.
5653
b2e9d276
VS
56542013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5655
5656 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5657
7b966834
VS
56582013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * configure.ac: Disable unifont and starfield if no freetype was found.
5661
d5c1eef1
VS
56622013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5663
5664 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5665 on NetBSD and OpenBSD.
5666
66345b50 56672013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
5668
5669 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5670
66345b50 56712013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
5672
5673 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5674 reduced. Inheritant options are processed during the theme loading.
5675
66345b50 56762013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
5677
5678 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5679
369508b3
AS
56802013-08-14 Avik Sil <aviksil@in.ibm.com>
5681
5682 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5683
56842013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
5685
5686 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5687 using qemu.
5688
6f27a3f6
PFS
56892013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5690
5691 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5692 remove-potcdate.sed.
5693
c6ed362a
AB
56942013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5695
5696 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5697 unused attribute from pull argument.
5698
5e7d9464
AB
56992013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5700
5701 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5702 memory leak.
5703
dea55e2a
AB
57042013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5705
5706 * util/getroot.c (pull_lvm_by_command): add --separator option
5707 to vgs call to disable padding of output to 10 characters.
5708
f0b94ded
VS
57092013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5712 here ...
5713 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5714 here.
5715
b828fb5d
VS
57162013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5719 length.
5720
7c9d0c39
VS
57212013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5724 full Canadian cross. Tested with build=x86_64, host=arm,
5725 target=ppc-ieee1275.
5726
816719c8
VS
57272013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5728
5729 * configure.ac: Error if no $BUILD_CC could be found.
5730 Reported by: DevHC.
5731
2af2353b
VS
57322013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5733
5734 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5735 i386-multiboot.
5736
797abd0a
VS
57372013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5738
5739 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5740 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5741
36e87d25
CW
57422013-08-13 Colin Watson <cjwatson@ubuntu.com>
5743
5744 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5745 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5746 falling back to the partition device, otherwise a later call to this
5747 function may fail spuriously.
5748 Reported by Axel Beckert. Fixes Debian bug #708614.
5749
273349fe
GS
57502013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5751
5752 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5753
418f86c6
GS
57542013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5755
5756 Prevent shadowing of stdlib's devname(3) on BSD.
5757
5758 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5759 and devlast to diskname and disklast, respectively.
5760
c137aea0
CW
57612013-08-11 Colin Watson <cjwatson@ubuntu.com>
5762
5763 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5764
272dc8df 57652013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
5766
5767 * docs/grub.texi: Introduce terminal window position options:
5768 terminal-left: terminal window's left position
5769 terminal-top: terminal window's top position
5770 terminal-width: terminal window's width
5771 terminal-height: terminal window's height
5772 terminal-border: terminal window's border width
5773 * grub-core/gfxmenu/theme-loader.c: Likewise.
5774 * include/grub/gfxmenu_view.h: Likewise.
5775 * po/exlude.pot: Likewise.
5776 * grub-core/gfxmenu/view.c: Likewise.
5777 Also updated minimal window size.
5778 Also terminal_sanity_check function has been introduced.
272dc8df
VT
5779 * grub-core/tests/checksums.h: Update (terminal window height
5780 is adjusted now for low resolution screen)
b4743461 5781
748a4533
VS
57822013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5783
5784 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5785 position).
5786
fca5f944
VS
57872013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5788
5789 * po/exclude.pot: Add few recent exceptions.
5790
4f47d809
VS
57912013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5792
5793 * tests/grub_func_test.in: Add unicode.pf2.
5794
a62ae90c
VS
57952013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5798 standard rather than noral color, in line with other terminals.
5799
4ed41392
VS
58002013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5801
5802 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5803 analysis.
5804
3719fbc5
VS
58052013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5806
5807 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5808
459b1d91
VS
58092013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5810
5811 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5812 inappropriate printf.
5813
f4e1ab9d
AB
58142013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5815
5816 * .bzrignore: Remove grub-core/lib/dtc-grub,
5817 grub-core/Makefile.libfdt.def
5818 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5819
fa471bfa
VS
58202013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5821
5822 * include/grub/video.h (grub_video_register): Keep double-linked as
5823 well as single-linked invariants.
5824 Reported by: qwertial.
5825
d65be02b
VS
58262013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5827
5828 * grub-core/commands/nativedisk.c (get_uuid): Handle
5829 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5830
ba8bc620
VT
58312013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5832
5833 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5834 maximum of NW, N, NE heights instead of N's height and maximum of
5835 NW, W, SW widths instead of W's width. (So the box will be always
5836 correctly drawn)
5837
4f0ad029
GS
58382013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5839
5840 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5841 Fix misuse of variable count.
5842
43d53b72
LL
58432013-07-18 Leif Lindholm <leif.lindholm@arm.com>
58442013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
58452013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 5846
43d53b72
LL
5847 New ports to arm-uboot and arm-efi.
5848 Mostly by Leif Lindholm with some additions from
5849 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 5850
88f8d146
VS
58512013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5852
5853 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5854 and not before.
5855 Reported by: Leon Drugi.
5856
3f42504c
VS
58572013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5858
5859 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5860 Reported by: Paulo Flabiano Smorigo.
5861
d110499b
VT
58622013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5863
5864 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5865
a8674ad3
VT
58662013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5867
5868 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5869
286fe4b3
VS
58702013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5871
5872 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5873
1bd57aa3
VS
58742013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5875
5876 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5877
7a87d69f
AB
58782013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5879
5880 * grub-core/net/bootp.c: Export net_* variables.
5881 * grub-core/net/net.c: Likewise.
5882
b2182299
VS
58832013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5884
5885 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5886
795b3dc0
VS
58872013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5888
5889 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5890
68714c43
VS
58912013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5892
5893 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5894
af211bab
VS
58952013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5896
5897 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5898
0036f02d
MM
58992013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5900
5901 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5902 <= 0.
5903
6d0ddff3
MM
59042013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5905
5906 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5907 functions.
5908
038016f4
MM
59092013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5910
5911 * grub-core/fs/zfs/zfs_lz4.c: New file.
5912 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5913
776bdce2
MM
59142013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5915
5916 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5917
c71dbd40
MM
59182013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5919
5920 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5921 (check_pool_label): Likewise.
5922 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5923
59242013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
5925
5926 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5927
8e67b50f
AB
59282013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5929
5930 * docs/grub.texi (Commands): Document postition parameters
5931 for menuentry command.
5932
f5ae3717
AB
59332013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5934
5935 * util/grub-mknetdir.in: Remove stray line from help output.
5936
9c28da2a
VS
59372013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5938
5939 Remove early sm712 init as there is no reason for it (the "watchdog"
5940 effect was due to wrong GPIO map).
5941
139072b8
VS
59422013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5943
5944 * grub-core/commands/pcidump.c: Remove static variables.
5945
c6a61bda
VS
59462013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5947
5948 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5949
51369614
VS
59502013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5951
5952 * configure.ac: Move delimiter after the infos.
5953
efa8640a
VS
59542013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5955
5956 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5957
6f80a7b2
VS
59582013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5959
5960 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5961 not filling whole 8x16 space.
5962
a2371e19
VS
59632013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5964
5965 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5966
64fce2d8
VS
59672013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5968
5969 * configure.ac: Indicate which liblzma is used if any.
5970
eb272d84
PW
59712013-06-21 Paul Wise <pabs3@bonedaddy.net>
59722013-06-21 Craig Sanders <savannah@taz.net.au>
5973
5974 * util/grub-reboot.in: Document submenu usage.
5975
a9e5abee
CW
59762013-06-25 Colin Watson <cjwatson@ubuntu.com>
5977
5978 * .bzrignore: Update with a number of new test-related files.
5979
e639c204
CW
59802013-06-25 Colin Watson <cjwatson@ubuntu.com>
5981
5982 * util/grub-script-check.c: Fail on scripts containing no
5983 commands, to guard against corrupted grub-mkconfig setups that
5984 produce no useful output.
5985 * tests/grub_script_no_commands.in: New test.
5986 * Makefile.util.def (grub_script_no_commands): Add.
5987 Reported by Hans Putter. Fixes Debian bug #713886.
5988
a4c89b17
AB
59892013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5990
5991 * grub-core/disk/diskfilter.c: Forgot to remove comment
5992 from previous commit.
5993
5b06b53c
AB
59942013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5995
5996 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5997 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5998
702da5c9
AB
59992013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6000
6001 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6002
aa62a5b7
AB
60032013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6004
6005 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6006 rescan diskfilter devices until nothing new is found.
6007
4aa237c8
VS
60082013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6009
6010 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6011
93d8479b
VS
60122013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6013
6014 Don't try to detect cbfs on *-emu.
6015
837222cc
VS
60162013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6017
6018 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6019
99c971af
VS
60202013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6021
6022 Add support for processed coreboot payload chainloading.
6023
e6930a45
VS
60242013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6025
6026 Enable coreboot information commands even when not loaded as
6027 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6028
5027af38
VS
60292013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6030
6031 Support for cbfs. Also factor out the part which is common
6032 for all archives to a separate module. This splits tar from cpio
6033 as they are very different but keeps cpio, cpio_be, odc and newc
6034 together since they're very similar.
6035
a5b55c4b
DM
60362013-06-15 David Michael <fedora.dm0@gmail.com>
6037
6038 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6039 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6040
0301a8b3
VS
60412013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6042
6043 * tests/grub_script_eval.in: Really add the eval test.
6044
3d84cb17
VS
60452013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6046
6047 Move flavour-specific parts out of common cpio.c file and
6048 rename remaining to cpio_common.c
6049
593e430c
AB
60502013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6051
6052 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6053 off new function grub_script_execute_new_scope. Change callers to use
6054 either of them as appropriate.
6055 * grub-core/commands/eval.c: New command eval.
6056 * docs/grub.texi (Commands): Document it.
6057
63c29849
AB
60582013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6059
6060 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6061 to fetch values when listing.
6062
cc284112
AB
60632013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6064
6065 Fix make dist on non-pc.
6066
60672013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
6068
6069 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6070 without a device name.
6071
69544d1e
VS
60722013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6073
6074 Remove enable_executable_check as it's not needed anymore.
6075 Reported by: dougray.
6076
96dbe648
VS
60772013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6078
6079 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6080 ambigouos RAID before discovering RAIDs on top of it.
6081 Reported by: bodom.
6082
ccfc0bdb
VS
60832013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 Fix typo (failback vs fallback).
6086
f2587088
AB
60872013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6088
6089 * util/grub.d/30_os-prober.in: Add support for probing EFI
6090 System Partition (as of os-prober 1.58).
6091
cec5cf0c
VS
60922013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6093
6094 * configure.ac: Add yet another path to unifont. For parabola.
6095
e40b4596
JT
60962013-05-30 Josh Triplett <josh@joshtriplett.org>
6097
6098 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6099 handling to copy the killed characters to the kill buffer as
6100 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6101 stored as char. Eliminates UCS4 truncation and corruption
6102 observed when killing characters with Ctrl-u and yanking them
6103 back with Ctrl-y.
6104
fc4c4fdd
VS
61052013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6106
6107 Detach optional parts of gfxterm and integrate in with coreboot init.
6108
6570b205
VS
61092013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 Move blit and fill dispatcher to appropriate files to decrease export
6112 and relocation overhead.
6113
b8323067
VS
61142013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6115
6116 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6117 functions.
6118
3cc1878f
VS
61192013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6120
6121 * grub-core/Makefile.am: Fix compilation problem with some
6122 automake versions.
6123
4b80e43c
VS
61242013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6127
57e0c20c
VS
61282013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6129
6130 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6131 automake versions.
6132
4fd42c53
VS
61332013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6136 SSDT.
6137
1e908b34
RS
61382013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6139
6140 * grub-core/partmap/dfly.c: New partition map.
6141
1359e474
VS
61422013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6143
6144 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6145 checking.
6146 Reported by: Francesco Lavra.
6147
17806392
AB
61482013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6149
6150 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6151 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6152 false conditions.
6153 * conf/Makefile.common: define dist_grubconf_DATA
6154
cdce14fa
VS
61552013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6156
6157 Progressively skip menu elements on small terminals rather
6158 than crashing.
6159
c8d6cc3c
VS
61602013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6161
6162 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6163 to avoid losing last column.
6164
a73b31ce
VS
61652013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6166
6167 * po/exclude.pot: Add missing string "%C".
6168
1202c764
VS
61692013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6170
6171 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6172 after the test.
6173
50268344
VS
61742013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6175
6176 * util/grub-install.in: Gettextize "Not found" message.
6177
62b15edf
VS
61782013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6179
6180 Fix distfiles list.
6181 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6182
61832013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
6184
6185 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6186 present.
6187 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6188
709ad61b
VS
61892013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6190
6191 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6192
d128901a
VS
61932013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6194
6195 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6196 attribute since structure is not necessarily aligned.
6197
34b22f5c
AB
61982013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6199
6200 * docs/grub.texi (Device syntax): Clarify description of network
6201 drives.
6202
0f7e980b
VS
62032013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6204
6205 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6206 for vasprintf presence.
6207
30b03dc2
VS
62082013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 * util/grub-install.in: Handle efibootmgr presence check.
6211 Reported by: Leif Lindholm.
6212
0dc11c08
VS
62132013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6214
6215 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6216 new strings to translate.
6217
f8024c3f
VS
62182013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6221 yet another string (pun intended) to translate.
6222
b4c1da62
VS
62232013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6224
6225 * po/POTFILES-shell.in: Autogenerate it.
6226
0ef7478b
VS
62272013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6228
6229 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6230
8200fa15
VS
62312013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6232
6233 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6234 misnomer.
6235
091945b2
AB
62362013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6237
6238 * docs/grub.texi (Network): Add description of net_default_interface,
6239 net_default_ip and net_default_mac. Rewrite variables description
6240 to emphasize that they are per-interface.
6241
0e7b2e32
VS
62422013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6243
6244 New test: cmdline and cat.
6245
16f7c8f6
VS
62462013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6247
6248 * grub-core/commands/cat.c: Show UTF-8 characters.
6249
3e912fda
VS
62502013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6251
6252 * conf/Makefile.common: Poison float and double on non-emu.
6253
ee0220bc
VS
62542013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 * configure.ac: Don't disable extended registers on emu.
6257
89e0240c
VS
62582013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6259
6260 * configure.ac: Don't use extended registers on x86_64.
6261 Reported by: Peter Jones.
6262
e56d9637
VS
62632013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6264
6265 * grub-core/term/efi/console.c: Fix compile error.
6266
8098f655
VS
62672013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6268
6269 Compressed HFS+ support.
6270
16940e07
VS
62712013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6274 pixel".
6275
c5dbc13d
VS
62762013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 Menu color test.
6279
011f8ae8
VS
62802013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6281
6282 * grub-core/tests/setjmp_test.c: New test.
6283
2aa072d7
VS
62842013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6285
6286 New variables 'net_default_*' to determine MAC/IP of default interface.
6287
43fe02cb
VS
62882013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6289
6290 * tests/gettext_strings_test.in: A test to check for strings not
6291 marked for translation.
6292
bed06142
VS
62932013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * autogen.sh: Exclude unused libgcrypt files from translation.
6296
fb2666b5
VS
62972013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 Simplify few strings.
6300
d22840ec
VS
63012013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6302
6303 Mark few forgotten strings for translation.
6304
e34092fd
VS
63052013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6306
6307 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6308 rather than printf.
6309
47cf82b4
VS
63102013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6311
6312 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6313 rather than printf.
6314 * grub-core/video/readers/tga.c: Likewise.
6315
1eed0e6e
VS
63162013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 * tests/priority_queue_unit_test.cc: New test.
6319
c5b7697b
VS
63202013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6323 than printf.
6324
5945c2f8
AB
63252013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6326
6327 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6328 variable for one time boot menu entry.
6329
fa292343
B
63302013-05-05 Bean <bean123ch@gmail.com>
6331
6332 * grub-core/commands/testspeed.c: New command testspeed.
6333
310d4214
VS
63342013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6335
6336 Factor-out human-size printing.
6337
85002bf3
VS
63382013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 Agglomerate more mallocs to speed-up gfxterm.
6341
22b06e96
VS
63422013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 Speed-up gfxterm by slightly agglomerating mallocs.
6345
b7c036bc
VS
63462013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 More video checks.
6349
92323d1f
VS
63502013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6351
6352 Speed-up gfxterm by saving intermediate results in index+alpha
6353 format.
6354
0fb356a3
VS
63552013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6356
6357 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6358 test.
6359
44dea3f9
VS
63602013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6361
6362 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6363 line of timeout as it may contain the rest of long line.
6364
14af86e4
VS
63652013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6366
6367 * grub-core/normal/main.c: Fix freed memory dereference.
6368
03f7c8c3
VS
63692013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6370
6371 Fix several memory leaks.
6372
c686014c
VS
63732013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6374
6375 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6376
0788a695
VS
63772013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6378
6379 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6380
daf01d61
VS
63812013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6382
6383 Fix test -a and -o precedence.
6384 Reported by: adrian15.
6385
82ae74d7
VS
63862013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6387
6388 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6389
8cec7bd4
AB
63902013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6391
6392 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6393 and add it as source to functional_test module.
6394
aa73d688
VS
63952013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6396
6397 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6398
c104b6f9
VS
63992013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 New series of tests for gfxterm and gfxmenu.
6402
7391c4d5
VS
64032013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6404
6405 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6406 the theme path relative to $prefix/themes.
6407
cff50118
VS
64082013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6409
6410 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6411 Fix order bug.
6412 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6413
7c332bdc
VS
64142013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6415
6416 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6417 descriptor.
6418
a4f9a5ff
VS
64192013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6420
6421 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6422 grub_gfxmenu_timeout_notifications.
6423 (grub_gfxmenu_view_destroy): Likewise.
6424
b5a2114d
VS
64252013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6426
6427 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6428
a8905e8a
VS
64292013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 Several fixes to ieee1275 and big-endian video.
6432
813c1622
VS
64332013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6434
6435 Add missing exports on mips.
6436
3f3e7326
VS
64372013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6438
6439 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6440 if no unifont is found.
6441 Restore original keyboard.
6442
095accd1
VS
64432013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6444
6445 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6446 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6447
50361660
VS
64482013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6449
6450 First automated video test (running videotest and comparing results)
6451
cd0f6eec
VS
64522013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6455 instead of 2 to have full RGB/CMY test pattern.
6456
3f9634e5
VS
64572013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 Add few more tests.
6460
583e5b64
VS
64612013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6462
6463 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6464 ARCS. All users updated.
6465
aa7bcb99
VS
64662013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6467
6468 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6469
95ef1a54
VS
64702013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6471
6472 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6473
46546fc5
VS
64742013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6477 Reported by: qwertial.
6478
3476e0ef
VT
64792013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6480
6481 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6482 with syntax "XXX deg"/"XXX °".
6483
96f33fed
VS
64842013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6485
6486 Make PCI init in i386-qemu port more robust.
6487
64882013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
6489
6490 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6491 cached view is reused.
6492 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6493 open boot menus.
6494
c53b4e67
VS
64952013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6496
6497 Unify more code in grub-install_header.
6498
f7457fb2
VS
64992013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6500
6501 Add few new tests.
6502
e2f27a8c
VS
65032013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6504
6505 Enforce disabling of firmware disk drivers when native drivers kick in.
6506
ef9d8cd5
VS
65072013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 * grub-core/commands/nativedisk.c: Customize the list of modules on
6510 platform. Don't try to search for disks already using native drivers.
6511
f7bf6c31
VS
65122013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6513
6514 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6515 platforms.
6516
bdc4add8
VS
65172013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6520 handling of variables containing backslash.
6521
e9e46c9a
VS
65222013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6525 dereference.
6526 Reported by: qwertial.
6527
0e90dee8
VS
65282013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6529
6530 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6531
e0aacf24
VS
65322013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6533
6534 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6535 dereference.
6536 Reported by: qwertial.
6537
3c0003c3
VS
65382013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6539
6540 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6541
adb7d667
VS
65422013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6543
6544 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6545
7cd0df84
VS
65462013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6547
6548 New command `nativedisk'.
6549
02adbb93
VS
65502013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6551
6552 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6553 * grub-core/loader/i386/bsd.c: Likewise.
6554
9fb0fd4f
VS
65552013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6558
bd69257a
VS
65592013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6560
6561 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6562 grub_get_unaligned16 rather than shifts.
6563
178c2764
VS
65642013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6565
6566 * grub-core/kern/file.c: Use const char * rather than casting to
6567 non-const.
6568
eadfad24
VS
65692013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * grub-core/commands/probe.c: Add missing grub_device_close.
6572
9f73ebd4
VS
65732013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 * INSTALL: Document linguas.sh.
6576
965fa829
VS
65772013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6578
6579 Remove POTFILES.in and regenerate it in autogen.sh.
6580
d417ddc4
VS
65812013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6582
6583 Move --directory/--override-directorry to grub-install_header and unify.
6584
f97ec546
VS
65852013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 * grub-core/term/morse.c: Macroify dih and dah.
6588
b2d7470c
PFS
65892013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6590
6591 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6592
141e2a78
VS
65932013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6594
6595 * grub-core/term/ns8250.c: Systematically probe ports by writing
6596 to SR before using them.
6597
1dd70ebd
PFS
65982013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6599
6600 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6601 disks.
6602 (check_sas): Get sas_adress info.
6603
c796a107
VS
66042013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6607 ports.
6608
43168646
LD
66092013-04-27 Leon Drugi <eyak>
6610
6611 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6612 BSS clearing.
6613
e7b8fd08
VS
66142013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6615
6616 Core compression test.
6617
17f9fd29
VS
66182013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 Implement grub_machine_get_bootlocation for ARC.
6621
dc2a6c8b
VS
66222013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6623
6624 Improve AHCI detection and command issuing.
6625
f25a2ba6
VS
66262013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 Fix pseries test.
6629
a6393224
VS
66302013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6631
6632 Make 'make check' work on emu.
6633
db99fbe8
VS
66342013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6635
6636 Replace libcurses with our own vt100 handling for the ease of testing
6637 and decreasing prerequisites.
6638
b24ca7cd
VS
66392013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6640
6641 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6642
63314aa4
VS
66432013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6644
6645 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6646 compile when not needed.
6647
c1b00fff
VS
66482013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 * tests/pseries_test.in: New test.
6651
f93e89ef
VS
66522013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 Add test to check that different boot mediums work.
6655
c4b456d3
VS
66562013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6659 ofw limited ISO support.
6660
5fe67f39
VS
66612013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6662
6663 * configure.ac: Fix loongson conditional.
6664
7f63a64f
VS
66652013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6666
6667 Enable mipsel-arc.
6668
b04b5990
VS
66692013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6670
6671 Add serial on ARC platform.
6672
88d2f302
VS
66732013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6676 commit.
6677
86eb23bc
VS
66782013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6679
6680 * tests/partmap_test.in: Add missing double semicolon.
6681
eec3bb75
VS
66822013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6683
6684 * util/grub-mkrescue.in: Fix loongson filename.
6685
e0810df3
VS
66862013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6687
6688 * util/grub-mkrescue.in: Move all files that don't have a location
6689 set in stone under /boot/grub. Use ISO hard links rather than copies
6690 to save some space.
6691
65a6b30b
VS
66922013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6693
6694 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6695 bogus SLOF values.
6696
6aff0107
VS
66972013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 Make check work on mips-arc.
6700
5e013e56
VS
67012013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 * util/grub-mkrescue.in: Alias sashARCS as sash.
6704
d1989e2e
VS
67052013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6708 it's serial.
6709
1a25e72c
VS
67102013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 * util/grub-install.in: Fix target fo qemu_mips.
6713 Fix extension on EFI.
6714
a59a9826
VS
67152013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6718 in front of chosen entry to mark it even if highlighting is lost.
6719
1a40f80c
VS
67202013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6721
6722 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6723 gfxpayload=keep if cbfb is active.
6724
e343549c
VS
67252013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6728
45fbd9a2
VS
67292013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 Add missing video ids to coreboot and ieee1275 video.
6732
ab1440bd
VS
67332013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 * util/grub-mkrescue.in: Add mips-arc support.
6736
cdeb8324
VS
67372013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6738
6739 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6740
8528c879
VS
67412013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6742
6743 Move mips-arc link address. Previous link address was chosen
6744 in belief that RAM on SGI platforms grows down while in fact it
6745 grows up from an unusual base.
6746
17fca573
VS
67472013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6748
6749 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6750 Fix a type which prevented CD-ROM and floppy boot.
6751
d178788e
VS
67522013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 Support coreboot framebuffer.
6755
6756 * grub-core/video/i386/coreboot/cbfb.c: New file.
6757
fe4c3e7e
VS
67582013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6759
6760 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6761 detecting too small regions.
6762
ec2dd179
VS
67632013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6764
6765 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6766
872dac83
VS
67672013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6768
6769 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6770 Remove dprintf.
6771 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6772
90ec4b7f
VS
67732013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6774
6775 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6776 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6777 * grub-core/loader/powerpc/ieee1275/linux.c
6778 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6779
f32555dd
VS
67802013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6783 Look for /boot-rom as well as /rom/boot-rom.
6784
38649799
VS
67852013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6788 handling when creating text_layer failed.
6789 * grub-core/video/video.c (grub_video_create_render_target):
6790 Set result to 0 on error.
6791 (grub_video_delete_render_target): Do not dereference NULL.
6792
aeace7f7
VS
67932013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6796 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6797 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6798 (grub_linux_load64): Mask out 2 high bits.
6799
4eafa175
AB
68002013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6801
6802 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6803 more place.
6804
daaa64bd
VS
68052013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6806
6807 Add support for pseries and other bootinfo machines to grub-mkrescue.
6808
6809 Tested by: Paulo Flabiano Smorigo.
6810
d0d2daa6
VS
68112013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6812
6813 * util/grub-mkrescue.in: Add GPT for EFI boot.
6814
b193e100
VS
68152013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6816
6817 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6818 It improves performance in qemu.
6819
a0f8f3ac
VS
68202013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6821
6822 * build-aux/snippet: Add missing gnulib files.
6823
284df0e2
AB
68242013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6825
6826 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6827
740201f3
AB
68282013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6829
6830 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6831
a7e03923
PJ
68322013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
68332013-04-15 Peter Jones <pjones@redhat.com>
6834
6835 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6836 sectors.
6837 Based on patch by Peter Jones.
6838
25fc51a8
VS
68392013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6840
6841 Fix DMRAID partition handling.
6842
88017d47
VS
68432013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6844
6845 * tests/grub_cmd_date.in: Skip on sparc64.
6846
fa7d914e
VS
68472013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6850 firmware error messages.
6851
cbe57a48
VS
68522013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6855 source and destination differ.
6856
21aecce0
VS
68572013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6858
6859 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6860 detection.
6861
25092d29
VS
68622013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6863
6864 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6865 match config-util.h to avoid warnings and increase compatibility.
6866
79451522 68672013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 68682013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
6869
6870 Add option to compress files on install/image creation.
6871
78b7d77b
VS
68722013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6873
6874 * docs/grub-dev.texi: Rearrange menu to match the section order.
6875 Reported by: Bryan Hundven.
6876
cc2fa5ec
VS
68772013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6878
6879 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6880
b49fe879
VS
68812013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6882
6883 Move GRUB out of system area when using xorriso 1.2.9 or later.
6884
5351da81
VS
68852013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6886
6887 * tests/grub_cmd_date.in: Add missing exit 1.
6888
c9d586ea
VS
68892013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6890
6891 * tests/partmap_test.in: Skip on sparc64.
6892
3f729741
VS
68932013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6894
6895 Support grub-shell on sparc64.
6896
8ca86b3a
VS
68972013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6898
6899 Support mkrescue on sparc64.
6900
aa1af9bb
VS
69012013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6902
6903 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6904 Needed on OpenBIOS due to incomplete device tree.
6905
ac4fea79
VS
69062013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6907
6908 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6909 would be otherwise excluded.
6910
69112013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
6912
6913 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6914 Inline name defines used only once.
6915
fe22b071
VS
69162013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6917
6918 Fix memory leaks in ofnet.
6919 Reported by: Francesco Lavra.
6920
9d21381b
VS
69212013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6922
6923 * docs/man/grub-glue-efi.h2m: Add missing file.
6924
07aec23c
VS
69252013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6926
6927 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6928
67ab8353
VS
69292013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6930
6931 Better support Apple Intel Macs on CD.
6932
ba44ca6d
VS
69332013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6934
6935 Replace stpcpy with grub_stpcpy in tools.
6936
bbdd6305
VS
69372013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6938
6939 Handle Japanese special keys.
6940 Reported by: Hiroyuki YAMAMORI.
6941 Codes supplied by: Hiroyuki YAMAMORI.
6942
8573d302
VS
69432013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 * util/grub-mkimage.c: Document memdisk implying --prefix.
6946
d70dbab7
VS
69472013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6950 much we can do about it anyway.
6951
51a4c3e3
AN
69522013-04-12 Aleš Nesrsta <starous@volny.cz>
6953
6954 Fix handling of split transfers.
6955
92c8f58d
VS
69562013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6957
6958 * grub-core/net/http.c: Fix bad free.
6959
b7d17a49
VS
69602013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6963 than buffer size.
6964
a3d566d4
VS
69652013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6968
a936af56
VS
69692013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6970
6971 * tests/util/grub-shell.in: Fix it on powerpc.
6972
51212234
VS
69732013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6974
6975 Turn off QEMU ACPI-way since new releases don't have shutdown port
6976 anymore.
6977
a21eec9e
VS
69782013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6979
6980 * docs/grub.texi: Update coreboot status info.
6981
e3734b84
VS
69822013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6983
6984 * tests/grub_cmd_date.in: New test for datetime.
6985
f9d40055
VS
69862013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6987
6988 * tests/partmap_test.in: Fix missing qemudisk setting.
6989
dbc56d8f
VS
69902013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6991
6992 Support i386-ieee1275 grub-mkrescue and make check on it.
6993
a79b8a15
VS
69942013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6995
6996 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6997 feature for it.
6998
48f39bb4
VS
69992013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7000
7001 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7002 GRUB_CMDLINE_XEN_DEFAULT.
7003 Reported by: Marc Warne (GigaTux) <gigatux>
7004
053cfcdd
VS
70052013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7006
7007 Import new gnulib.
7008
93cd84df
VS
70092013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7010
7011 Use ACPI shutdown intests as traditional port was removed.
7012
f4b1fa4f
AB
70132013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7014
7015 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7016 distinction.
7017
49818a59
VS
70182013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7021 Fix few warining messages and leaks while on it.
7022
9277a306
AB
70232013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7024
7025 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7026 links under grub-core/lib/libgcrypt-grub/mpi.
7027
d5e2a158
VS
70282013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7029
7030 Fix ia64-efi image generation on big-endian machines. Deduplicate
7031 some code while on it.
7032 Reported by: Leif Lindholm.
7033
18866643
AB
70342013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7035
7036 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7037 as extra_dist.
7038
ca53deb8
AB
70392013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7040
7041 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7042
d4c4b8e1
BH
70432013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7044
7045 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7046 texinfo-5.1.
7047
47043f95
VS
70482013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7049
7050 * grub-core/normal/term.c: Few more fixes for menu entry editor
7051 rendering.
7052 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7053
a3216068
VS
70542013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7055
7056 * grub-core/normal/term.c: Few more fixes for menu entry editor
7057 rendering.
7058 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7059
21026747
AB
70602013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7061
7062 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7063 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7064
59624ca8
AB
70652013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7066
7067 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7068 instead of hardcoding grub.mo.
7069
1f44478c
FN
70702013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7071
7072 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7073
eeada7b1
VS
70742013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7077 grub-core/disk/geli.c.
7078
132867de
VS
70792013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7080
7081 * util/grub-mkfont.c: Prefer enum to #define.
7082
de73de17
VS
70832013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7084
7085 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7086
1865baa7
VS
70872013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7088
7089 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7090
ce7d92a9
VS
70912013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7092
7093 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7094
52eab656
VS
70952013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7096
7097 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7098
98b23b95
VS
70992013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7100
7101 * include/grub/bsdlabel.h: Use enums.
7102
0467a5dd
VS
71032013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7104
7105 Move GRUB_CHAR_BIT to types.h.
7106
16cc9f03
AB
71072013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7108
7109 * docs/grub.texi: Document more user commands.
7110
3152aecb
AB
71112013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7112
7113 * docs/grub.texi: Document menuentry --id option.
7114
c506fc30
FL
71152013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7116
7117 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7118
aa428238
VS
71192013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7120
7121 Unify file copying setup across different install scripts. Add
7122 options for performing partial install.
7123
efe0cdda
PJ
71242013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
71252013-04-04 Peter Jones <pjones@redhat.com>
7126
7127 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7128
f75835bd
VS
71292013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7130
7131 Use TSC as a possible time source on i386-ieee1275.
7132
2cd5ce6c
VS
71332013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7134
7135 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7136 Init err.
7137
c9625630
VS
71382013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 * util/grub-setup.c (setup): Handle some corner cases.
7141
be008941
VS
71422013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7143
7144 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7145
1a78d573
VS
71462013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7147
7148 * grub-core/commands/verify.c: Save verified file to avoid it being
7149 tampered with after verification was done.
7150
db8ff59f
VS
71512013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7152
7153 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7154 reported width by one to compensate for curesor algorithm problem.
7155
91bf46b1
VS
71562013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7157
7158 Fix screen corruption in menu entry editor and simplify the code
7159 flow while on it.
7160
a7b1d693
AB
71612013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7162
7163 * util/grub-mount.c (fuse_init): Return error if fuse_main
7164 failed.
7165
31df9ad8
FL
71662013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7167
7168 * include/grub/elf.h: Add missing ARM relocation codes and fix
7169 existing ones.
7170
07f392eb
VT
71712013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7172
7173 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7174
9efd73ec 71752013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
71762013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7177
7178 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7179 into account when calculating radius.
7180
71812013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
7182
7183 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7184
4985ddaa
VT
71852013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7186
7187 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7188
8c3635ff
RS
71892013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7190
7191 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7192 missing closing bracket.
7193
74a35e69
RS
71942013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7195
7196 * INSTALL: Mention xorriso requirement.
7197
40f1c000
AB
71982013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7199
7200 * grub-core/commands/verify.c: Fix hash algorithms values for
7201 the first three hashes - they start with 1, not with 0.
7202
e75fdee4
VS
72032013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7206 Try terminating EFI services several times due to quirks in some
7207 implementations.
7208
33028f4c
CW
72092013-03-26 Colin Watson <cjwatson@ubuntu.com>
7210
7211 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7212 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7213 BankField extended opcodes.
7214 (get_sleep_type): Add minimal scope handling (just enough to
7215 handle setting the scope to the root path).
7216 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7217 * include/grub/acpi.h: Add enumeration values for Event, Device,
7218 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7219
33871a10
VT
72202013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7221
7222 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7223 memory leak.
7224
8990963a
VS
72252013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7226
7227 * grub-core/disk/ahci.c: Give more time for AHCI request.
7228
daae8f9e
VS
72292013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7230
7231 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7232 command.
7233
6a7fb94b
VS
72342013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7235
7236 Replace the region at 0 from coreboot tables to available in BSD
7237 memory map.
7238
ff99babd
VS
72392013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7240
7241 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7242 non-BIOS platforms.
7243
30d6b1b2
VS
72442013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7247 platforms.
7248
6ccd0b31
VS
72492013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7252 handling of multi-device filesystems.
7253
23c9cc04
VS
72542013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7255
7256 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7257 platforms.
7258
ce50dbd7
VS
72592013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7260
7261 Add new 'proc' filesystem framework and put luks_script into it.
7262
d975e8d5
VS
72632013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7264
7265 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7266 and qemu.
7267
e73ba5e8
VS
72682013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7269
7270 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7271
92750e4c
VS
72722013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7273
7274 Add ability to generate newc additions on runtime.
7275
0ec45a68
VS
72762013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7277
7278 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7279 description.
7280
320abd43
VS
72812013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 * po/POTFILES.in: Regenerate.
7284
d7a6506e
VS
72852013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7286
7287 * grub-core/commands/verify.c (hashes): Add several hashes
7288 from the spec.
7289
8fe05def
VS
72902013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7291
7292 Slight improve in USB-related boot-time checkpoints.
7293
524e2766
VS
72942013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7295
7296 * grub-core/commands/boottime.c: Fix copyright header.
7297
cc19857a
VS
72982013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7299
7300 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7301 coreboot tables content. Support for cbmemc.
7302
ef8810e9
VS
73032013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7304
7305 Fix a conflict between ports structures with 2 controllers of
7306 same kind.
7307
e9dabdfa
VS
73082013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7309
7310 * include/grub/boottime.h: Add missing file.
7311
f6df57d2
VS
73122013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 Initialize USB ports in parallel to speed-up boot.
7315
d745dda7
VS
73162013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7317
7318 Fix USB devices not being detected when requested
7319 due to delayed attach.
7320
e5a2dd7b
VS
73212013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7322
e744219b
VS
7323 Implement boot time analysis framework.
7324
73252013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7326
7327 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
7328 descriptor to just receive it as argument rather than endpoint
7329 address.
7330
5dd6f587
VS
73312013-03-19 Aleš Nesrsta <starous@volny.cz>
7332
7333 Better estimate the maximum USB transfer size.
7334
2f1071d5
VS
73352013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7336
7337 Resend a packet if we got the wrong buffer in status.
7338
46ecfc49
VS
73392013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7340
7341 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7342 multiplication rather than division.
7343
ea811130
VS
73442013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7347 than divisions.
7348
d2789cf0
VS
73492013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7350
7351 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7352 operations to have intended shifts and not divisions.
7353
a9c94590
VS
73542013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7357 intended shifts rather than division.
7358
84cfe81b
VS
73592013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7360
7361 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7362 computation for some years before epoch. Avode confusing division
7363 while on it.
7364
21344ef6
VS
73652013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7366
7367 * grub-core/video/i386/pc/vbe.c
7368 (grub_video_vbe_print_adapter_specific_info): Replace division by
7369 shifts.
7370
3f2b4d1a
VS
73712013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7372
7373 Adjust types in gdb module to have intended unsigned shifts rather than
7374 signed divisions.
7375
3dac5878
VS
73762013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7377
7378 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7379 maximum size is 4G - 1 on hfs
7380
5341c0fb
VS
73812013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7382
7383 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7384
fc3ff2a2
VS
73852013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7386
7387 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7388 function.
7389
81455e8e
AB
73902013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7391
7392 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7393 causing gcc error with gcc 4.7.1.
7394
efd4f117
NZ
73952013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7396
7397 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7398 dereference null pointer. While the code is technically correct, gcc
7399 may eliminate a null check if pointer is already dereferenced.
7400
e11645f4
NZ
74012013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7402
7403 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7404 OOM check.
7405 * grub-core/normal/term.c (read_terminal_list): Likewise.
7406
77468368
VS
74072013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7408
7409 Lift up core size limits on some platforms. Fix potential memory
7410 corruption with big core on small memory systems. Document remaining
7411 limits.
7412
f6b58fe5
VS
74132013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7416 gotoxy to 0,0.
7417
19ce697d
VS
74182013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7419
7420 Remove all trampoline support. Add -Wtrampolines when
7421 present. Remove symbols used for trampolines to make
7422 link fail if trampolines are present.
7423
73b5d90f
VS
74242013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7425
7426 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7427 append out of its parent.
7428
cb758e96
VS
74292013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7430
7431 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7432 parent.
7433
3188131f
VS
74342013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7435
7436 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7437 all vars to a macro. All users updated.
7438
e42b2514
VS
74392013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7440
7441 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7442 i386-ieee1275.
7443
83e1a1a1
VS
74442013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7445
7446 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7447
1d5a880f
VS
74482013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7449
7450 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7451
6e4146c4
VS
74522013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7453
7454 Move to more hookless approach in IEEE1275 devices handling.
7455
99fcda8a
VS
74562013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7457
7458 * grub-core/kern/term.c (grub_term_normal_color),
7459 (grub_term_highlight_color): Add back lost defaults.
7460
73bf57e2
VS
74612013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7462
7463 Make elfload not use hooks. Opt for flags and iterators instead.
7464
7f8c105f
VS
74652013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7468 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7469
396d4091
VS
74702013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7471
7472 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7473
74742013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7475
7476 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7477 hook pass-through parameter. All users updated and unnested.
7478
74a27421
VS
74792013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7480
7481 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7482 out of its parent.
7483
b46d4213
VS
74842013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7485
7486 * grub-core/fs/hfs.c: Remove nested functions.
7487
e114c3cc
VS
74882013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7489
7490 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7491 the context through.
7492 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7493
f9b7d780
VS
74942013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7495
7496 * util/grub-editenv.c (list_variables): Move print_var out of its
7497 parent.
7498
ca9c2608
VS
74992013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7500
7501 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7502 function.
7503
5d983f5f
VS
75042013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7505
7506 * grub-core/gentrigtables.c: Make tables const.
7507
3056d3e7
VS
75082013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7509
7510 Remove nested functions from videoinfo iterators.
7511
e2303774
VS
75122013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7513
7514 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7515 for 64-bit platforms.
7516
f42e3a2f
VS
75172013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7518
7519 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7520 a FOR_CHILDREN macro.
7521
be174e5e
VS
75222013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7523
7524 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7525 platform from firmware path.
7526
0789b672
VS
75272013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7528
7529 Enable linux16 on non-BIOS systems for i.a. memtest.
7530
7531 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7532 correctly.
7533 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7534
005a9c32
VS
75352013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7536
7537 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7538 Fix end of table condition.
7539
ff2b3cd9
VS
75402013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7543 out of its parent.
7544
4fc40ff8
VS
75452013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7546
7547 * grub-core/fs/jfs.c: Remove nested functions.
7548
be42d97a
VS
75492013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7550
7551 * grub-core/fs/minix.c: Remove nested functions.
7552
99373ce4
VS
75532013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 * grub-core/fs/iso9660.c: Remove nested functions.
7556
5aec2afe
VS
75572013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7558
7559 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7560 of parent function.
7561
6c69e691
VS
75622013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7563
7564 * util/grub-fstest.c: Remove nested functions.
7565
43c91882
VS
75662013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7567
7568 * grub-core/loader/machoXX.c: Remove nested functions.
7569
4eb8b756
CW
75702013-02-27 Colin Watson <cjwatson@ubuntu.com>
7571
7572 Remove nested functions from disk and file read hooks.
7573
7574 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7575 (struct grub_disk): Add read_hook_data member.
7576 * include/grub/file.h (struct grub_file): Likewise.
7577 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7578 argument.
7579
7580 Update all callers.
7581
df6da5a5
AB
75822012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7583
7584 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7585 Fix off by one error in enumerating extended partitions.
7586
21aecde5
AB
75872013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7588
7589 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7590 memory leak if device name is not found.
7591
f1a19118
AB
75922013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7593
7594 * grub-core/normal/menu_entry.c (update_screen): remove
7595 unused variable `off' which caused scroll down arrow to be always shown.
7596
958bfd20
AB
75972013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7598
7599 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7600 access to unallocated memory.
7601
b7b78edb
AB
76022013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7603
7604 * Makefile.util.def: Add partmap/msdos.c to common library.
7605 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7606 * grub-core/disk/ldm.c: Check for existence of
7607 GRUB_PC_PARTITION_TYPE_LDM.
7608
28d468d6
VS
76092013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7610
7611 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7612 sizes and display sector size.
7613
d55ffb02
VS
76142013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 Implement new command cmosdump.
7617
b5ea6ce0
VS
76182013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7619
7620 Support Openfirmware disks with non-512B sectors.
7621
7622 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7623 size of the disk.
7624 * (grub_ofdisk_get_block_size): New function.
7625 * (grub_ofdisk_prepare): Use the correct block size.
7626 * (grub_ofdisk_read): Likewise.
7627 * (grub_ofdisk_write): Likewise.
7628 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7629 New proto.
7630
cc0e476f
VS
76312013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7632
7633 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7634
c5dbdc33
VS
76352013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7638 on first error.
7639
3f078c0f
VS
76402013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7643 freeing it.
7644
66a93674
VS
76452013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 Implement USBDebug (full USB stack variant).
7648
c9f0c134
VS
76492013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7650
7651 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7652 unless they have unexpected values.
7653
cfe1288b
VS
76542013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7655
7656 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7657 grub_print_error.
7658
e42b9969
VS
76592013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7660
7661 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7662 zero-out of port structure.
7663
cf94fd62
VS
76642013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7665
7666 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7667 of extended attributes.
7668
f81ef4b5
AB
76692013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7670
7671 * util/grub-install.in: change misleading comment about
7672 device.map creation
7673
af18fdb4
VS
76742013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7675
7676 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7677 when menu highlight color isn't set.
7678
08bcec50
M
76792013-01-27 C. Masloch <pushbx@38.de>
7680
7681 Improve FreeDOS direct loading support compatibility.
7682
7683 * include/grub/i386/relocator.h (grub_relocator16_state):
7684 New member ebp.
7685 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7686 variable.
7687 (grub_relocator16_boot): Handle %ebp.
7688 * grub-core/lib/i386/relocator16.S: Likewise.
7689 * grub-core/loader/i386/pc/freedos.c:
7690 Load BPB to pass kernel which partition to load from.
7691 Check that kernel file is not too large.
7692 Set register dl to BIOS unit number as well.
7693
7782b8a6
CW
76942013-01-22 Colin Watson <cjwatson@ubuntu.com>
7695
7696 * util/grub-reboot.in (usage): Document the need for
7697 GRUB_DEFAULT=saved.
7698 * util/grub-set-default.in (usage): Likewise.
7699 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7700
e661c180
VS
77012013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7702
7703 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7704 than defining WORDS_BIGENDIAN manually.
7705
1c22ca9a
VS
77062013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7707
7708 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7709 invariants.
7710
d44892fe
CW
77112013-01-21 Colin Watson <cjwatson@ubuntu.com>
7712
7713 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7714 nested.
7715 (blit_comb: add_device_width): Likewise.
7716
5fdbaed1
CW
77172013-01-21 Colin Watson <cjwatson@ubuntu.com>
7718
7719 Remove nested functions from USB iterators.
7720
7721 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7722 (grub_usb_controller_iterate_hook_t): Likewise.
7723 (grub_usb_iterate): Add hook_data argument.
7724 (grub_usb_controller_iterate): Likewise.
7725 (struct grub_usb_controller_dev.iterate): Likewise.
7726
7727 Update all implementations and callers.
7728
4250985a
VS
77292013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7730
7731 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7732 margin when not needed.
7733
7d8848f3
VS
77342013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7735
bc136973 7736 Make color variables global instead of it being per-terminal.
7d8848f3
VS
7737
77382013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7739
bc136973
VS
7740 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7741 asterisk.
7d8848f3 7742
ed12a003
CW
77432013-01-21 Colin Watson <cjwatson@ubuntu.com>
7744
7745 Fix powerpc and sparc64 build failures caused by un-nesting memory
7746 map iterators.
7747
6a0db449
CW
77482013-01-21 Colin Watson <cjwatson@ubuntu.com>
7749
7750 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7751 parameter declarations.
7752
ccd86b21
VS
77532013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7756
822b726b
VS
77572013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7758
7759 Improve spkmomdem reliability by adding a separator between bytes.
7760
115c2cc1
CW
77612013-01-21 Colin Watson <cjwatson@ubuntu.com>
7762
7763 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7764 an Acer registration utility with several sightings in the wild.
7765 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7766
fc524edf
CW
77672013-01-21 Colin Watson <cjwatson@ubuntu.com>
7768
7769 Remove nested functions from filesystem directory iterators.
7770
7771 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7772 (struct grub_fs.dir): Add hook_data argument.
7773
7774 Update all implementations and callers.
7775
53d3e4e3
CW
77762013-01-21 Colin Watson <cjwatson@ubuntu.com>
7777
7778 * docs/grub.texi (Multi-boot manual config): Fix typo for
7779 "recommended".
7780
c821711f
LL
77812013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7782
7783 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7784 until after its use in generate_image.
7785
6a0debbd
CW
77862013-01-20 Colin Watson <cjwatson@ubuntu.com>
7787
7788 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7789 initrd size to addr_min, since the initrd will be allocated after
7790 this address.
7791
f41e08db
AB
77922013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7793
7794 * conf/Makefile.common: Fix autogen rules to pass definition
7795 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7796
77529e0f
LL
77972013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7798
7799 * include/grub/elf.h: Update ARM definitions based on binutils.
7800
b879aa7b
VS
78012013-01-20 Aleš Nesrsta <starous@volny.cz>
7802
7803 Split long USB transfers into short ones.
7804
8eb8284d
AB
78052013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7806
7807 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7808 is interrupted by ESC.
7809
08dad2dc
VS
78102013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7811
7812 * util/grub-script-check.c (main): Uniform the error message.
7813
6c724b85
CW
78142013-01-20 Colin Watson <cjwatson@ubuntu.com>
7815
7816 Remove nested functions from ELF iterators.
7817
25239370
CW
78182013-01-20 Colin Watson <cjwatson@ubuntu.com>
7819
7820 Remove nested functions from device iterators.
7821
7822 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7823 (grub_arc_iterate_devs): Add hook_data argument.
7824 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7825 (struct grub_ata_dev.iterate): Add hook_data argument.
7826 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7827 (grub_device_iterate): Add hook_data argument.
7828 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7829 (struct grub_disk_dev.iterate): Add hook_data argument.
7830 (grub_disk_dev_iterate): Likewise.
7831 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7832 Likewise.
7833 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7834 Likewise.
7835 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7836 type.
7837 (struct grub_partition_map.iterate): Add hook_data argument.
7838 (grub_partition_iterate): Likewise.
7839 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7840 (struct grub_scsi_dev.iterate): Add hook_data argument.
7841
7842 Update all callers.
7843
6c0314d6
CW
78442013-01-20 Colin Watson <cjwatson@ubuntu.com>
7845
7846 Fix typos for "developer" and "development".
7847
600dc5f1
VS
78482013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7849
7850 Add license header to spkmodem-recv.c.
7851
17334a6b
VS
78522013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7853
7854 Rewrite spkmodem to use PIT for timing. Double the speed.
7855
7d462559
VS
78562013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7857
7858 Add new command pcidump.
7859
b78d6c32
VS
78602013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7861
7862 New terminal outputs using serial: morse and spkmodem.
7863
34f71cb8
VS
78642013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7865
7866 Improve bidi handling in entry editor.
7867
4542e71b
VS
78682013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7869
7870 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7871 argument to prevent name collision.
7872
09fd6d82
CW
78732013-01-15 Colin Watson <cjwatson@ubuntu.com>
7874
7875 Remove nested functions from script reading and parsing.
7876
7877 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7878 getline_data argument, passed to getline.
7879 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7880 getline_data argument, passed to grub_parser_split_cmdline.
7881 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7882 lexerstate->getline_data to lexerstate->getline.
7883 (grub_script_lexer_init): Add getline_data argument, saved in
7884 lexerstate->getline_data.
7885 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7886 argument, passed to grub_script_parse.
7887 * grub-core/script/script.c (grub_script_parse): Add getline_data
7888 argument, passed to grub_script_lexer_init.
7889 * include/grub/parser.h (grub_parser_split_cmdline): Update
7890 prototype. Update all callers to pass appropriate getline data.
7891 (struct grub_parser.parse_line): Likewise.
7892 (grub_rescue_parse_line): Likewise.
7893 * include/grub/reader.h (grub_reader_getline_t): Add void *
7894 argument.
7895 * include/grub/script_sh.h (struct grub_lexer_param): Add
7896 getline_data member.
7897 (grub_script_parse): Update prototype. Update all callers to pass
7898 appropriate getline data.
7899 (grub_script_lexer_init): Likewise.
7900 (grub_normal_parse_line): Likewise.
7901
7902 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7903 data argument.
7904 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7905 static instead of nested. Rename to ...
7906 (grub_parser_execute_getline): ... this.
7907 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7908 data argument.
7909 * grub-core/normal/main.c (read_config_file: getline): Make static
7910 instead of nested. Rename to ...
7911 (read_config_file_getline): ... this.
7912 (grub_normal_read_line): Add unused data argument.
7913 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7914 getline): Make static instead of nested. Rename to ...
7915 (grub_script_execute_sourcecode_getline): ... this.
7916 * util/grub-script-check.c (main: get_config_line): Make static
7917 instead of nested.
7918
d0d4b8a0
CW
79192013-01-15 Colin Watson <cjwatson@ubuntu.com>
7920
7921 Remove nested functions from memory map iterators.
7922
7923 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7924 argument, passed to hook.
7925 * grub-core/kern/i386/coreboot/mmap.c
7926 (grub_linuxbios_table_iterate): Likewise.
7927 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7928 instead of nested.
7929 (grub_machine_mmap_iterate): Add hook_data argument.
7930 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7931 Add hook_data argument, passed to hook.
7932 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7933 Likewise.
7934 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7935 Likewise.
7936 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7937 Likewise.
7938 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7939 Likewise.
7940 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7941 Likewise.
7942 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7943 Likewise.
7944 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7945 (grub_machine_mmap_iterate): Likewise.
7946 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7947 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7948 prototype.
7949 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7950 Remove NESTED_FUNC_ATTR from here and from all users.
7951 (grub_mmap_iterate): Update prototype.
7952 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7953 pass appropriate hook data.
7954 (grub_machine_mmap_iterate): Likewise.
7955
7956 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7957 static instead of nested.
7958 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7959 Rename to ...
7960 (lsmmap_hook): ... this.
7961 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7962 Likewise.
7963 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7964 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7965 heap_init): Likewise.
7966 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7967 Rename to ...
7968 (mmap_iterate_hook): ... this.
7969 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7970 Likewise.
7971 * grub-core/lib/ieee1275/relocator.c
7972 (grub_relocator_firmware_get_max_events: count): Likewise.
7973 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7974 to ...
7975 (grub_relocator_firmware_fill_events_iter): ... this.
7976 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7977 hook): Likewise. Rename to ...
7978 (grub_relocator_alloc_chunk_align_iter): ... this.
7979 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7980 Rename to ...
7981 (generate_e820_mmap_iter): ... this.
7982 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7983 Rename to ...
7984 (count_hook): ... this.
7985 (grub_linux_boot: hook): Likewise. Rename to ...
7986 (grub_linux_boot_mmap_find): ... this.
7987 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7988 (grub_linux_boot_mmap_fill): ... this.
7989 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7990 hook): Likewise. Rename to ...
7991 (grub_fill_multiboot_mmap_iter): ... this.
7992 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7993 hook): Likewise. Rename to ...
7994 (count_hook): ... this.
7995 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7996 hook): Likewise. Rename to ...
7997 (grub_fill_multiboot_mmap_iter): ... this.
7998 * grub-core/loader/powerpc/ieee1275/linux.c
7999 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8000 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8001 Likewise. Rename to ...
8002 (alloc_phys_choose): ... this.
8003 (determine_phys_base: get_physbase): Likewise.
8004 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8005 find_hook): Likewise.
8006 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8007 (malloc_hook: count_hook): Likewise.
8008 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8009 Likewise. Rename to ...
8010 (lower_hook): ... this.
8011 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8012 (upper_hook): ... this.
8013 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8014 (post64_hook): ... this.
8015 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8016 Likewise. Rename to ...
8017 (lower_hook): ... this.
8018 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8019 (upper_hook): ... this.
8020 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8021 (grub_mmap_iterate: fill_hook): Likewise.
8022 (fill_mask): Pass addr and mask within a single struct.
8023 (grub_cmd_badram: hook): Make static instead of nested. Rename
8024 to ...
8025 (badram_iter): ... this.
8026 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8027 (cutmem_iter): ... this.
8028
22099030
VS
80292013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8030
8031 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8032 delimit path in strings using quotes.
8033 * util/getroot.c (grub_guess_root_devices): Likewise.
8034 (grub_make_system_path_relative_to_its_root): Likewise.
8035 * util/grub-probe.c (probe): Likewise.
8036 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8037 (xrealpath): Likewise.
8038
4a9950ec
VS
80392013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 Fix compilation with older compilers.
8042
8043 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8044 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8045 declarations.
8046 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8047 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8048 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8049 identifier with b.
8050 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8051 * include/grub/crypto.h: Add type defines.
8052 * util/import_gcrypth.sed: Remove duplicate type defines.
8053
adcc6020
VS
80542013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8055
8056 New command list_trusted.
8057
8058 * grub-core/commands/verify.c (grub_cmd_list): New function.
8059
a4528937
CW
80602013-01-13 Colin Watson <cjwatson@ubuntu.com>
8061
8062 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8063 info message.
8064
ca3a7446
CW
80652013-01-13 Colin Watson <cjwatson@ubuntu.com>
8066
8067 Remove nested functions from PCI iterators.
8068
8069 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8070 passed to hook. Update all callers to pass appropriate hook data.
8071 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8072 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8073 Remove NESTED_FUNC_ATTR from here and from all users.
8074 (grub_pci_iterate): Update prototype.
8075 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8076 instead of nested. Rename to ...
8077 (grub_cs5536_find_iter): ... this.
8078 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8079 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8080 Likewise.
8081 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8082 Likewise.
8083 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8084 Likewise.
8085 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8086 Likewise.
8087 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8088 * grub-core/video/radeon_fuloong2e.c
8089 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8090 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8091 find_card): Likewise.
8092 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8093 Likewise.
8094
f8e98fee
VS
80952013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8096
8097 * grub-core/commands/verify.c: Mark messages for translating.
8098
055b36b6
VS
80992013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8100
8101 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8102 fatal.
8103
f7ff879b
VS
81042013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8105
8106 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8107 fatal.
8108
81092013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
8110
8111 * autogen.sh: Do not try to delete nonexistant files.
8112 * util/import_gcrypth.sed: Add some missing header removals.
8113
01323d49
CW
81142013-01-12 Colin Watson <cjwatson@ubuntu.com>
8115
8116 Clean up dangling references to grub-setup.
8117 Fixes Ubuntu bug #1082045.
8118
8119 * docs/grub.texi (Images): Refer generally to grub-install rather
8120 than directly to grub-setup.
8121 (Installing GRUB using grub-install): Remove direct reference to
8122 grub-setup.
8123 (Device map) Likewise.
8124 (Invoking grub-install): Likewise.
8125 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8126 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8127 * util/grub-install.in (usage): Likewise.
8128
8129 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8130 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8131 grub-setup.
8132 * configure.ac: Remove grub_setup output variable.
8133
8134 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8135 to grub-bios-setup.
8136 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8137 grub-setup to grub-sparc64-setup.
8138
5e3b8dcb
VS
81392013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8140
8141 Import gcrypt public-key cryptography and implement signature checking.
8142
535714bd
VS
81432013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8144
8145 * grub-core/fs/ntfs.c: Ue more appropriate types.
8146 * grub-core/fs/ntfscomp.c: Likewise.
8147 * include/grub/ntfs.h: Likewise.
8148
3e4f3566
VS
81492013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8150
8151 Support Apple FAT binaries on non-Apple platforms.
8152
8153 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8154 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8155 Likewise.
8156 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8157 Apple FAT binaries.
8158
4dedb13f
VS
81592013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8160
8161 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8162 sector devices.
8163
f8861eaf
CW
81642013-01-07 Colin Watson <cjwatson@ubuntu.com>
8165
8166 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8167 explicitly zeroing elements.
8168 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8169 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8170 of elements in a structure already allocated using grub_zalloc.
8171 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8172
86065b0a
CW
81732013-01-07 Colin Watson <cjwatson@ubuntu.com>
8174
8175 * docs/grub.texi (grub_cpu): New subsection.
8176 (grub_platform): Likewise.
8177
c6f1e92f
VS
81782013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8179
8180 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8181
f797ec85
VS
81822013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8183
8184 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8185 divisions.
8186
033d0b4b
VS
81872013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8188
8189 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8190 * grub-core/fs/ntfscomp.c: Likewise.
8191 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8192 (grub_ntfs_comp): Likewise.
8193
21d1b9a0
VS
81942013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8195
8196 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8197 Rename to ...
8198 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8199 of groups_per_block. All users updated.
8200
10ca8645
VS
82012013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8202
8203 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8204 grub_error properly.
8205 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8206 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8207
a4c3ed4c
VS
82082013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8209
8210 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8211 always in /boot/zfs.
8212 Reported by: Yuta Satoh.
8213
0b716507
YS
82142013-01-03 Yuta Satoh <nigoro>
8215
8216 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8217 ${grub_probe}
8218
00c05e22
VS
82192013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8220
8221 * configure.ac: Extend -Wno-trampolines to host.
8222
dadddb76
VS
82232013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8224
8225 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8226 entry->len = 0.
8227
54ce53ca
CW
82282013-01-03 Colin Watson <cjwatson@ubuntu.com>
8229
8230 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8231 (Invoking grub-script-check): Likewise.
8232
8912efca
CW
82332013-01-03 Colin Watson <cjwatson@ubuntu.com>
8234
8235 * docs/grub.texi (Invoking grub-mount): New section.
8236 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8237
c3fc8394
CW
82382013-01-02 Colin Watson <cjwatson@ubuntu.com>
8239
8240 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8241 test failures, so that a failing unit test correctly causes 'make
8242 check' to fail.
8243
45d26abb
CW
82442013-01-02 Colin Watson <cjwatson@ubuntu.com>
8245
8246 Fix failing printf test.
8247
8248 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8249 '$' in the correct order when collecting type information.
8250
971dd2c6
CW
82512013-01-02 Colin Watson <cjwatson@ubuntu.com>
8252
8253 * docs/grub.texi (configfile): Explain environment variable
8254 handling.
8255 (source): New section.
8256 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8257
5c67ea6c
CW
82582012-12-31 Colin Watson <cjwatson@ubuntu.com>
8259
8260 Remove several trivially-unnecessary uses of nested functions.
8261
8262 * grub-core/commands/i386/pc/sendkey.c
8263 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8264 instead of nested.
8265 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8266 Rename to ...
8267 (legacy_file_getline): ... this.
8268 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8269 Likewise.
8270 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8271 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8272 to ...
8273 (probe_dummy_iter): ... this.
8274 * grub-core/kern/i386/coreboot/mmap.c
8275 (grub_linuxbios_table_iterate: check_signature): Likewise.
8276 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8277 check_varstate): Likewise. Mark inline.
8278 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8279 an additional parameter.
8280 (find_long: fnd_long): Likewise. Pass two additional parameters.
8281 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8282 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8283 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8284 Likewise. Rename to ...
8285 (grub_cmos_find_port_iter): ... this.
8286 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8287 Rename to ...
8288 (find_rtc_iter): ... this.
8289
8290 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8291 function directly into the function body, since it is only called
8292 once.
8293
33a68ac6
CW
82942012-12-30 Colin Watson <cjwatson@ubuntu.com>
8295
8296 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8297 __attribute__ ((unused)).
8298 * grub-core/video/bochs.c (find_card): Likewise.
8299 * grub-core/video/cirrus.c (find_card): Likewise.
8300 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8301 * grub-core/video/sis315pro.c (find_card): Likewise.
8302 * grub-core/video/sm712.c (find_card): Likewise.
8303
608b647a
CW
83042012-12-28 Colin Watson <cjwatson@ubuntu.com>
8305
8306 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8307 Fixes Savannah bug #37821.
8308
fd49ceb3
CW
83092012-12-28 Colin Watson <cjwatson@ubuntu.com>
8310
8311 Apply program name transformations at build-time rather than at
8312 run-time. Fixes Debian bug #696465.
8313
8314 * acinclude.m4 (grub_TRANSFORM): New macro.
8315 * configure.ac: Create output variables with transformed names for
8316 most programs.
8317 * util/bash-completion.d/grub-completion.bash.in: Use
8318 pre-transformed variables for program names.
8319 * util/grub-install.in: Likewise.
8320 * util/grub-kbdcomp.in: Likewise.
8321 * util/grub-mkconfig.in: Likewise.
8322 * util/grub-mkconfig_lib.in: Likewise.
8323 * util/grub-mknetdir.in: Likewise.
8324 * util/grub-mkrescue.in: Likewise.
8325 * util/grub-mkstandalone.in: Likewise.
8326 * util/grub-reboot.in: Likewise.
8327 * util/grub-set-default.in: Likewise.
8328 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8329 * tests/util/grub-shell-tester.in: Remove unused assignment.
8330 * tests/util/grub-shell.in: Likewise.
8331 * util/grub.d/00_header.in: Likewise.
8332
7024b3c0
CW
83332012-12-28 Colin Watson <cjwatson@ubuntu.com>
8334
8335 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8336
8337 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8338 HAVE_RAW_DECL_GETS.
8339 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8340
e3501b13
VS
83412012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8342
8343 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8344 Reported by: Eriks Latosheks <foresterlv>.
8345
b40c88a9
VS
83462012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8347
8348 * docs/grub.texi (Network): Update instructions on generating netboot
8349 image.
8350
ce96d01c
VS
83512012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8352
8353 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8354 around device name if necessarry.
8355
0f596201
PFS
83562012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8357
8358 * util/grub-install.in: Follow the symbolic link parameter added
8359 to the file command.
8360
600d5bdb
AB
83612012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8362
8363 * util/grub-install.in: Remove stale TODO.
8364
64ebd2f4
PFS
83652012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8366
8367 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8368 dynamic allocation for the bootpath buffer.
8369
74b2fe3e
DTB
83702012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8371
8372 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8373 window too small.
8374
969b804f
VS
83752012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8376
8377 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8378 argument rather than font name. All users updated.
8379 (grub_gfxterm_set_window): Likewise.
8380
b9f5ebd6
VT
83812012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8382
8383 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8384 from working.
8385
258f43b7
VS
83862012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8387
8388 * util/getroot.c (convert_system_partition_to_system_disk): Support
8389 nbd disks.
8390
cc1ce5f9
VS
83912012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8392
8393 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8394 infinite loop on corrupted FS.
8395
e77a16ca
VS
83962012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8397
8398 Fix big-endian mtime.
8399
8400 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8401 together sec and usec.
8402 (grub_ufs_dir): Use correct byteswapping for UFS time.
8403
d9c48c7b
VS
84042012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8405
8406 Support big-endian UFS1.
8407
8408 * Makefile.util.def (libgrubmods): Add ufs_be.c
8409 * grub-core/Makefile.core.def (ufs1_be): New module.
8410 * grub-core/fs/ufs_be.c: New file.
8411 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8412 the file.
8413
2f9f40ba
LL
84142012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8415
8416 * include/grub/types.h: Fix functionality unaffecting typo in
8417 GRUB_TARGET_WORDSIZE conditional macro.
8418
48ff0889
PFS
84192012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8420
8421 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8422
03711240
GS
84232012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8424
8425 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8426 that /netbsd appears first (when it exists).
8427
a31b11bd
CJ
84282012-10-12 Christoph Junghans <ottxor@gentoo.org>
8429
8430 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8431 Fixes Savannah bug #37558.
8432
e8a5d5d4
CW
84332012-10-12 Colin Watson <cjwatson@ubuntu.com>
8434
8435 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8436 description of extract_entries_configfile.
8437
84382012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
8439
8440 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8441 preferred_address.
8442 (grub_cmd_linux): Likewise.
8443 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8444 preferred_lifetime. Update all users.
8445
288c757d
CW
84462012-09-26 Colin Watson <cjwatson@ubuntu.com>
8447
8448 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8449 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8450
0d35da3f
CW
84512012-09-26 Colin Watson <cjwatson@ubuntu.com>
8452
8453 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8454 errors from grub-probe to /dev/null, not stdout.
8455
b78c3127
VS
84562012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8457
8458 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8459 sector 1.
8460
473959f0
CW
84612012-09-24 Colin Watson <cjwatson@ubuntu.com>
8462
8463 * util/grub-install.in: Make the error message if $source_dir
8464 doesn't exist more useful.
8465
794c8c33
CW
84662012-09-22 Colin Watson <cjwatson@ubuntu.com>
8467
8468 Fix grub-emu build on FreeBSD.
8469
8470 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8471 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8472 headers on Linux.
8473 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8474 implementation is currently Linux-specific.
8475 * util/getroot.c (exec_pipe): Define only on Linux or when either
8476 libzfs or libnvpair is unavailable.
8477 (find_root_devices_from_poolname): Remove unused path variable.
8478
86d08fdb
CW
84792012-09-19 Colin Watson <cjwatson@ubuntu.com>
8480
8481 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8482 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8483 should fit before end == 63.
8484
735abf54
CW
84852012-09-19 Colin Watson <cjwatson@ubuntu.com>
8486
8487 * util/grub-setup.c (write_rootdev): Remove unused core_img
8488 parameter. Update all callers.
8489 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8490 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8491 GRUB_SETUP_BIOS.
8492
140acd3c
VS
84932012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8494
8495 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8496 (grub_add_tab): New function.
8497 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8498 * util/grub.d/10_illumos.in: Likewise.
8499 * util/grub.d/10_kfreebsd.in: Likewise.
8500 * util/grub.d/10_linux.in: Likewise.
8501 * util/grub.d/10_netbsd.in: Likewise.
8502 * util/grub.d/10_windows.in: Likewise.
8503 * util/grub.d/10_xnu.in: Likewise.
8504 * util/grub.d/20_linux_xen.in: Likewise.
8505 * util/grub.d/30_os-prober.in: Likewise.
8506
7ddffdad
VS
85072012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8508
8509 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8510 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8511 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8512 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8513 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8514 ieee1275-nocursor.
8515 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8516 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8517
4e092454
VS
85182012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8519
8520 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8521 le-conversion.
8522 Reported by: BURETTE, Bernard.
8523
735abf54 85242012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
8525
8526 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8527 from comment.
8528
dfd39dbd
CW
85292012-09-14 Colin Watson <cjwatson@ubuntu.com>
8530
8531 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8532 IEEE1275 machines. Fixes powerpc-emu compilation.
8533 * include/grub/terminfo.h: Likewise.
8534
3bfa763c
VS
85352012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8536
8537 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8538 a const pointer.
8539 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8540 const pointer.
8541 (efiemu_set_variable): Make vendor_guid a const pointer.
8542
250e475b
VS
85432012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8544
8545 Don't require grub-mkconfig_lib to generate manpages for programs.
8546
8547 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8548 dependencies, don't add grub-mkconfig_lib.
8549 (program): Pass empty adddeps.
8550 (script): Pass grub-mkconfig_lib as adddeps.
8551
592fd0e4
VS
85522012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8553
8554 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8555 * util/getroot.c (grub_find_device): Likewise.
8556 (get_mdadm_uuid): Likewise.
8557 (grub_util_is_imsm): Likewise.
8558 (grub_util_pull_device): Likewise.
8559 * util/grub-probe.c (probe): Likewise.
8560
801a3027
BG
85612012-09-10 Benoit Gschwind <gschwind>
8562
8563 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8564 (devs): Add devpath_8.
8565
c5052c81
PJ
85662012-09-08 Peter Jones <pjones@redhat.com>
8567
8568 * grub-core/Makefile.core.def (efifwsetup): New module.
8569 * grub-core/commands/efi/efifwsetup.c: New file.
8570 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8571 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8572 New define.
8573 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8574
8e832f71
JS
85752012-09-05 Jiri Slaby <jslaby@suse.cz>
8576
8577 * configure.ac: Add SuSe path.
8578
f0f55752
CW
85792012-09-05 Colin Watson <cjwatson@ubuntu.com>
8580
8581 * NEWS: Fix typo.
8582
ecadc4c2
CW
85832012-09-05 Colin Watson <cjwatson@ubuntu.com>
8584
8585 * util/import_gcry.py: Sort cipher_files, to make build system
8586 generation more deterministic.
8587
64498f25
VS
85882012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8589
8590 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8591 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8592 (grub_set_datetime): Likewise.
8593
9cc836a2
VS
85942012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8595
8596 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8597 warnings.
8598
bcfcea01
VS
85992012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8600
8601 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8602
a4099485
VS
86032012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8604
8605 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8606
265c162a
CW
86072012-09-04 Colin Watson <cjwatson@ubuntu.com>
8608
8609 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8610 required for checkouts from bzr, but it may be useful for users or
8611 distributors wishing to update translations against a tarball
8612 distribution, and it can be helpful for the tarball to be a superset
8613 of what's in bzr.
8614
3d171e95
CW
86152012-09-04 Colin Watson <cjwatson@ubuntu.com>
8616
8617 * Makefile.am (EXTRA_DIST): Add
8618 grub-core/tests/boot/linux.init-mips.S,
8619 grub-core/tests/boot/linux.init-ppc.S, and
8620 grub-core/tests/boot/linux-ppc.cfg.
8621
f2c2503e
CW
86222012-09-04 Colin Watson <cjwatson@ubuntu.com>
8623
8624 * grub-core/mmap/mips/loongson: Remove empty directory.
8625
86262012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
8627
8628 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8629 gone.
8630
ab2163d5
CW
86312012-09-04 Colin Watson <cjwatson@ubuntu.com>
8632
8633 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8634 grub-sparc64-setup.
8635
ce938140
GS
86362012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8637
8638 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8639
529f58a5
GS
86402012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8641
8642 * po/POTFILES.in: Regenerated.
8643
16cf79e9
GS
86442012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8645
8646 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8647 (NetBSD): New subsection.
8648
39b27f1e 86492012-07-22 Ales Nesrsta <starous@volny.cz>
8650
8651 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8652 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8653
a885261b
VS
86542012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8655
8656 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8657 * util/grub.d/10_hurd.in: Add missing quoting.
8658 * util/grub.d/10_illumos.in: Likewise.
8659 * util/grub.d/10_kfreebsd.in: Likewise.
8660 * util/grub.d/10_linux.in: Likewise.
8661 * util/grub.d/20_linux_xen.in: Likewise.
8662
7bd29c01
VS
86632012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8664
8665 New command `lsefi'.
8666
8667 * grub-core/Makefile.core.def (lsefi): New module.
8668 * grub-core/commands/efi/lsefi.c: New file.
8669 * include/grub/efi/api.h: Add more GUIDs.
8670
ac625d8f
VS
86712012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8672
8673 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8674 (grub_bsd_elf32_hook): Likewise.
8675 (grub_bsd_elf64_size_hook): Likewise.
8676 (grub_bsd_elf64_hook): Likewise.
8677 (grub_bsd_load_elf): Likewise.
8678
e73bb801
VS
86792012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8680
8681 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8682 if hash function is unavailable.
8683 (dec_stream_header): Likewise.
8684
e81db8b5
VS
86852012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8686
8687 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8688 filter state.
8689
d187a1c3
VS
86902012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8691
8692 Fix coreboot compilation.
8693
8694 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8695 (grub_vga_text_init_real): ... this.
8696 (grub_vga_text_fini): Rename to ...
8697 (grub_vga_text_fini_real): ... this.
8698
91a05f64
VS
86992012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8702
6af96df7
VS
87032012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8704
8705 * grub-core/lib/legacy_parse.c: Support clear and testload.
8706
4d569e12
VS
87072012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8708
8709 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8710
073b57bb
VS
87112012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8712
8713 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8714
a706f4cc
VS
87152012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8716
8717 * grub-core/net/tftp.c (ack): Fix endianness problem.
8718 (tftp_receive): Likewise.
8719 Reported by: Michael Davidsaver.
8720
e7850aa9
VS
87212012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8722
8723 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8724
87252012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8726
8727 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8728 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8729 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8730
35692881
VS
87312012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8732
8733 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8734 efi_mmap_size.
8735 Reported by: Stuart Hayes.
8736
c35fc5bd
VS
87372012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8738
8739 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8740
8741 * grub-core/Makefile.core.def (mda_text): New module.
8742 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8743 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8744 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8745 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8746 here.
8747 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8748 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8749 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8750 here.
8751 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8752 to ..
8753 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8754 ... here
8755 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8756 here.
8757 * grub-core/term/i386/vga_common.c: Removed.
8758 * include/grub/i386/vga_common.h: Likewise.
8759 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8760 (grub_vga_cr_bw_read): Likewise.
8761 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8762 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8763 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8764 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8765 grub_vga_cr_read/grub_vga_cr_write.
8766 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8767
5f91f701
VS
87682012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8769
8770 * configure.ac: Bump version to 2.00.
8771 * grub-core/normal/main.c (features): Add feature_200_final.
8772
0c4f85f6
VS
87732012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
87742012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8775
8776 * NEWS: Fix unclarity and language mistakes.
8777
f923ad22
VS
87782012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8779
8780 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8781 additional size to 3 pages.
8782 Reported by: Stuart Hayes.
8783
d22029ba
VS
87842012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8785
8786 * NEWS: Add 2.00 entry.
8787
58eee08f
VS
87882012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8789
8790 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8791 put explicit "/" for empty path.
8792 (wildcard_expand): Improve dprintf.
8793
c59bdff7
VS
87942012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8795
8796 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8797 it's equal to currnode. This can happen with "" symlink.
8798
5e6a440a
YB
87992012-06-27 Yves Blusseau <blusseau@zetam.org>
8800
8801 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8802 echo shell command by printf command.
8803
73a68bcb
VS
88042012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8805
8806 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8807 the value returned by firmware is the maximal position, not diumension.
8808 (grub_terminfo_output_state): Use a more sane fallback.
8809
392a603b
VS
88102012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8811
8812 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8813
42d0867f
VS
88142012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8815
8816 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8817 frequency to 150 MHz.
8818
489509f4
VS
88192012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8820
8821 Apple fixes.
8822
8823 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8824 __APPLE_
8825 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8826 definition.
8827 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8828
9f3fc883
VS
88292012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 Handle slash in HFS label.
8832
8833 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8834 (grub_hfs_dir): Tanslate slash.
8835 (grub_hfs_label): Don't translate slash.
8836
54853fd7
VS
88372012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8838
8839 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8840 network protocol listing since it introduces problematic dependency on
8841 net module.
8842
4dc02ddf
VS
88432012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8844
8845 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8846
c50c867d
VS
88472012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8848
8849 Init video early on yeeloong to avoid being rebooted by watchdog.
8850
8851 * grub-core/Makefile.am (gensm712): New target.
8852 (sm712_start.S): Likewise.
8853 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8854 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8855 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8856 description.
8857 * include/grub/vga.h: Move registry definitions to...
8858 * include/grub/vgaregs.h: ... here.
8859
5f92c8a1
VS
88602012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8861
8862 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8863 signedness.
8864
e9e6f111
VS
88652012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8866
8867 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8868 platforms with firmware disk drivers in the core.
8869
754ad9eb
VS
88702012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8871
8872 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8873 informative verbose message.
8874 (read_lv): Handle 64-bit segment size.
8875
315654c2
VS
88762012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8877
8878 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8879
fb022c79
VS
88802012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8881
8882 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8883 character but still remove trainling spaces.
8884 (grub_fat_label): Ignore archive flag.
8885
8645f72c
VS
88862012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8887
8888 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8889 cast between linux_kernel_header and linux_kernel_params.
8890
36498496
VS
88912012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8894 type for size.
8895 (grub_raid6_recover_func_t): Likewise.
8896 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8897 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8898
0b5ea6b8
VS
88992012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8902
650cfcfe
GS
89032012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8904
8905 Fix overflow.
8906
8907 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8908 [__NetBSD__]: Add explicit cast before bitshift.
8909
8a4d6a44
VS
89102012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8911
8912 * configure.ac: Bump to 2.00~rc1.
8913
2fb97ed3
VS
89142012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8915
8916 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8917 half of $a0.
8918
1fa097dc
VS
89192012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
89202012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8921
8922 * docs/grub.texi: Fix search syntax.
8923 (Multi-boot manual config): Put msdos rather than GPT example.
8924 Grammar corrections.
8925
c890ba78
VS
89262012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8927
8928 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8929
0f92dca7
VS
89302012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8931
8932 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8933
3988c4a0
VS
89342012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8935
8936 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8937 message on double free. Put the value of magic in case of mismatch.
8938
9e86d4c5
VS
89392012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 Speed-up video on yeeloong.
8942
8943 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8944 add cached_ptr.
8945 (grub_video_sm712_video_fini): Unmap cached_ptr.
8946 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8947 (grub_video_sm712_set_active_render_target): Removed.
8948 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8949 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8950 sync caches.
8951
ed24c312
VS
89522012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8953
8954 Avoid flushing the same line multiple times on loongson.
8955
8956 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8957 Step in 32 bytes and not 1 byte.
8958 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8959 Likewise.
8960
d1718e7d
VS
89612012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8962
8963 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8964 subvolumes.
8965
982f1909
VS
89662012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8967
8968 Implement flow control for http.
8969
8970 * grub-core/net/http.c (parse_line): Handle response 206.
8971 (http_receive): Stall if too many packets are in the queue.
8972 (http_establish): Fix range header.
8973 (http_seek): Fix double free.
8974 (http_close): Likewise.
8975 (http_packets_pulled): New function.
8976 (grub_http_protocol): Set http_seek
8977 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8978 (ack_real): Set window depending on i_stall.
8979 (grub_net_send_tcp_packet): Likewise.
8980 (grub_net_tcp_stall): New function.
8981 (grub_net_tcp_unstall): Likewise.
8982 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8983 (grub_net_tcp_unstall): Likewise.
8984
bd407d6e
VS
89852012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8986
8987 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8988
c7564b8e
VS
89892012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8990
8991 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8992
a3706162
VS
89932012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8994
8995 * tests/util/grub-shell.in: Fix a typo.
8996
b27069e0
VS
89972012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8998
8999 Implement flow control for tftp.
9000
9001 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9002 packets but stop only if stop condition is satisfied.
9003 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9004 `stall' instead of `eof' as stop condition.
9005 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9006 (http_err): Likewise.
9007 * grub-core/net/tftp.c (ack): Replace the first argument with data
9008 instead of socket.
9009 (tftp_receive): Stall if too many packets are in wait queue.
9010 (tftp_packets_pulled): New function.
9011 (grub_tftp_protocol): Set packets_pulled.
9012 * include/grub/net.h (grub_net_packets): New field count.
9013 (grub_net_put_packet): Increment count.
9014 (grub_net_remove_packet): Likewise.
9015 (grub_net_app_protocol): New field `packets_pulled'.
9016 (grub_net): New field `stall'.
9017
6b9cfac6
VS
90182012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9021 sync part to handle them.
9022
f35abd81
VS
90232012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9024
9025 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9026 * grub-core/net/drivers/ieee1275/ofnet.c
9027 (grub_ieee1275_net_config_real): Likewise.
9028
0e7ec820
VS
90292012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9030
9031 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9032 the direct route for server/gateway.
9033
9d611a31
VS
90342012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9035
9036 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9037 IP address to server name since we may not hame the DNS.
9038
418f45ab
VS
90392012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9040
9041 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9042 freeing random buffer on failure.
9043 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9044
44a0efc1
VS
90452012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9048
531e2241
VS
90492012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9050
9051 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9052 reserved bytes.
9053 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9054 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9055 Handle malloc error correctly.
9056
cde393c9
VS
90572012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9058
9059 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9060 blocks.
9061
538478d0
VS
90622012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9063
9064 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9065 increment.
9066
9b55efe0
VS
90672012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9068
9069 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9070 none is explicitly specified.
9071
9eb832c3
VS
90722012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9075 while reallocating.
9076
d6b7c7c9
VS
90772012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 Respect netmask from bootp/dhcp.
9080
9081 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9082 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9083 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9084 into ...
9085 (grub_net_add_ipv4_local): ... this.
9086 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9087 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9088 (grub_net_add_ipv4_local): New proto.
9089
67caf9eb
VS
90902012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9093 determining EFI memory map size.
9094
43657558
VS
90952012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9096
9097 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9098
eb6d0dd3
VS
90992012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9100
9101 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9102 when looking for partition separator.
9103
31230544
VS
91042012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9105
9106 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9107 Escape commas.
9108
918a2517
VS
91092012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9110
9111 Restructure FAT driver to avoid hook in label reading as it hits a
9112 GCC bug.
9113
9114 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9115 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9116 (grub_fat_iterate_dir): Split into ...
9117 (grub_fat_iterate_init): ... this, ...
9118 (grub_fat_iterate_fini): ... this, ...
9119 (grub_fat_iterate_dir_next): ... and this. All users updated.
9120
9f1d654e
VS
91212012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9122
9123 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9124 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9125 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9126 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9127 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9128 New fields last_key and last_key_time.
9129 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9130 extended key-esc into extended key-extended key.
9131
52f0f643
VS
91322012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9133
9134 Avoid unnecessary memcpy of whole video buffer.
9135
9136 * grub-core/video/fb/video_fb.c (dirty): New struct.
9137 (framebuffer): Add members current_dirty and previous_dirty.
9138 (dirty): New function.
9139 (grub_video_fb_fill_rect): Update dirty.
9140 (common_blitter): Likewise.
9141 (grub_video_fb_scroll): Likewise.
9142 (doublebuf_blit_update_screen): Copy only dirty part.
9143 (doublebuf_pageflipping_update_screen): Likewise.
9144 (grub_video_fb_doublebuf_blit_init): Init dirty.
9145 (doublebuf_pageflipping_init): Likewise.
9146 (grub_video_fb_setup): Likewise.
9147
e169a180
VS
91482012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9149
9150 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9151 poll rate.
9152
48556879
VS
91532012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9154
9155 Fix wildcard regexp dot and other special characters handling.
9156 Reported by: Robert Mabee.
9157
9158 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9159 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9160 (split_path): Trigger expansion on '?'.
9161 (unescape): New function.
9162 (wildcard_expand): Unescape parts copied without globbing.
9163 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9164 (grub_script_arglist_to_argv): Don't unescape expansions.
9165
0494408e
VS
91662012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9167
9168 * include/grub/net.h (grub_net_card): New member txbufsize.
9169 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9170 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9171 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9172 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9173 txbufsize.
9174 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9175 compatible property to check for macs. Set
9176 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9177 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9178 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9179 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9180 (send_card_buffer): Use txbuf.
9181 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9182 nested function out of the parent while on it.
9183
cc35fe8f
VS
91842012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9185
9186 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9187 presence check.
9188 (grub_ieee1275_net_config_real): Fix config pointer.
9189
970a0a09
VS
91902012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9191
9192 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9193 filename parsing to non-block devices.
9194
3e19bf87
VS
91952012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9196
9197 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9198
c62d1a0c
VS
91992012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9200
9201 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9202 All users updated.
9203
ef76bec3
VS
92042012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9205
9206 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9207 UUID search command even if hints probing failed.
9208
92092012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
9210
9211 * po/POTFILES.in: Regenerated.
9212
70aaf305
VS
92132012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 Speed-up video on fuloong.
9216
9217 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9218 New function.
9219 (grub_pci_device_unmap_range): Handle non-cached address.
9220 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9221 add direct_ptr.
9222 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9223 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9224 (grub_video_sis315pro_set_active_render_target): Removed.
9225 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9226 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9227 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9228 sync caches.
9229 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9230 New proto.
9231
10400f0b
VS
92322012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9233
9234 * docs/grub.texi (Multi-boot manual config): New section.
9235
ba67e2c6
VS
92362012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9237
9238 Avoid slow read-back from VRAM.
9239
9240 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9241 Move from here ...
9242 * grub-core/video/fb/video_fb.c
9243 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9244 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9245 (front_target): Remove front_target. Add pages.
9246 (grub_video_fb_init): Skip setting front_pages.
9247 (grub_video_fb_fini): Likewise.
9248 (doublebuf_blit_update_screen): Use pages.
9249 (grub_video_fb_doublebuf_blit_init): Likewise.
9250 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9251 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9252 (grub_video_fb_setup): Prefer doublebuffing.
9253
377c98cb
VS
92542012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9255
9256 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9257 gzio.
9258
eac49cff
VS
92592012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9260
9261 Add loongson tests.
9262
9263 * tests/util/grub-shell.in: Handle loongson.
9264 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9265 drivers.
9266 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9267 Reboot instead of shutdown if REBOOT is defined.
9268
0321415e
VS
92692012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9270
9271 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9272 sized ports since unlike on real hardware qemu supports only 32-bit
9273 regs.
9274
3f2bdd8f
VS
92752012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9276
9277 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9278 * util/grub-mkrescue.in: Handle loongson.
9279
29a049c9
VS
92802012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9281
9282 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9283 Set is_part appropriately.
9284 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9285 names. Canonicalize partition without full disk.
9286
4abde346
VS
92872012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9288
9289 Revert usb-quiesce since it's wrong.
9290
9291 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9292 (grub_ofdisk_init): Don't do quiesce.
9293
61f1d93b
VS
92942012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9295
9296 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9297 PowerMac workaround to Xserves as well.
9298 Information supplied by: Benjamin Herrenschmidt.
9299
a09eb541
VS
93002012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9301
9302 Don't assume that beginning address is also the entry point on ppc.
9303
9304 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9305 (grub_linux_boot): Use linux_entry.
9306 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9307 (grub_linux_load64): Likewise.
9308
505b3c9b
VS
93092012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9310
9311 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9312
cbe0b4ef
VS
93132012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9314
9315 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9316 needlessly lose the console.
9317
3006e981
VS
93182012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9319
9320 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9321 space.
9322
4e5a96b0
VS
93232012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9324
7da036bb
VS
9325 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9326 than current grub_get_rtc() not implemented when booted with
9327 coreboot without TSC.
9328
9329 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9330 Add machine/time.h to kernel headers on loongson.
9331 * grub-core/Makefile.core.def (kernel): Remove
9332 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9333 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9334 (grub_get_rtc): Likewise.
9335 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9336 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9337 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9338 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9339 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9340 rather than installing known non-working time source.
9341 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9342 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9343 * include/grub/time.h: Don't include machine/time.h.
9344 * include/grub/efi/time.h: Removed.
9345 * include/grub/i386/efi/time.h: Likewise.
9346 * include/grub/i386/ieee1275/time.h: Likewise.
9347 * include/grub/powerpc/ieee1275/time.h: Likewise.
9348 * include/grub/sparc64/ieee1275/time.h: Likewise.
9349 * include/grub/x86_64/efi/time.h: Likewise.
9350
93512012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9352
9353 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
9354
9355 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9356 value.
9357 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9358 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9359 with dotless variants when any combining above is present.
9360
5561c22d
VS
93612012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9362
9363 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9364 text and not binary.
9365
96f7e60e
VS
93662012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9367
9368 Stop polling as soon as we have the packet we were waiting for.
9369
9370 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9371 All users updated.
9372 * grub-core/net/arp.c (have_pending): New var.
9373 (pending_req): Likewise.
9374 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9375 stop indicator.
9376 (grub_net_arp_receive): Set have_pending.
9377 * grub-core/net/dns.c (recv_data): New field stop.
9378 (recv_hook): Set stop.
9379 (grub_net_dns_lookup): Init stop and use as stop condition.
9380 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9381 condition.
9382 * grub-core/net/net.c (grub_net_poll_cards): New argument
9383 stop_condition. Stop when it goes true.
9384 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9385 indicator.
9386 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9387
3e747239
VS
93882012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9389
9390 Keep TX and RX buffers on EFI rather than always allocate new ones.
9391
9392 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9393 card. All users updated.
9394 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9395 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9396 (get_card_packet): Likewise.
9397 (grub_efinet_findcards): Init new fields.
9398
f695e99a
VS
93992012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9400
9401 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9402 compilation error on sparc64.
9403
9e5e66d1
VS
94042012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9405
9406 Use ITC on IA64 rather than broken routine based on daytime.
9407
9408 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9409 ia64.
9410 (grub_get_rtc) [__ia64__]: Likewise.
9411 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9412 (get_itc): New function.
9413 (grub_rtc_get_time_ms): Likewise.
9414 (grub_machine_init): Calibrate ITC.
9415 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9416 Keep only on non-ia64. Don't export since it's broken and used only
9417 if TSC is unavailable.
9418
a1767404
VS
94192012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9420
9421 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9422 even if it's used.
9423 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9424 Skip if parent is unused.
9425
34b2bced
VS
94262012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9427
9428 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9429
5e619f40
VS
94302012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9431
9432 Fix wildcard escaping.
9433
9434 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9435 * grub-core/script/execute.c (wildcard_escape): .. to here.
9436 Don't escape dot.
9437 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9438 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9439 Don't escape dot.
9440 * grub-core/script/execute.c (gettext_append): Always escape.
9441 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9442 * grub-core/script/yylex.l: Don't cut away the escaping.
9443 * tests/grub_script_echo1.in: Add tests with wildcard.
9444
c8ca5855
VS
94452012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9446
9447 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9448 (ftdi_hw_configure): Likewise.
9449 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9450 define.
9451 (real_config): Handle 1.5 stop bits.
9452 (pl2303_hw_configure): Likewise.
9453
7183452c
VS
94542012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9455
9456 * Makefile.am: Add ppc linux bootcheck.
9457 * grub-core/tests/boot/linux-ppc.cfg: New file.
9458 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9459
f57c84cd
VS
94602012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * tests/grub_script_expansion.in: Skip network protocols.
9463
ecfc6207
VS
94642012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9465
9466 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9467
8d03d284
VS
94682012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9469
9470 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9471 --rom-directory.
9472 Add -graft-points.
9473
61c42af0
VS
94742012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9475
9476 ESCC serial driver for conducting sautomated tests in qemu.
9477 Not tested on real hardware.
9478
9479 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9480 * grub-core/term/ieee1275/escc.c: New file.
9481 * grub-core/Makefile.core.def (escc): New module.
9482
08fd1291
VS
94832012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9484
9485 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9486 invalid on error.
9487 (serial_hw_fetch): Don't read invalid handle.
9488 (serial_hw_put): Don't write into invalid handle.
9489
08dafeea
VS
94902012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9491
9492 Add a 1.5 stop bits value.
9493
9494 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9495 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9496 GRUB_SERIAL_STOP_BITS_1_5.
9497
9068fdcf
VS
94982012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9499
9500 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9501 value rather than let it uninited.
9502
f4d5820f
VS
95032012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9504
9505 * grub-core/commands/wildcard.c (+check_file): New function.
9506 (wildcard_expand): Don't expand to non-existing files, expand with
9507 suffix and not attempt to expand if not needed.
9508
3d2de9a7
VS
95092012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9512 out of partitions containing other partitions.
9513
c5c81ff9
VS
95142012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9515
9516 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9517 on some qemu versions with GRUB.
9518
9519 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9520 define.
9521 (grub_openbsd_bootarg_pcibios): New struct.
9522 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9523 Add PCIINFO.
9524
08a14e0b
VS
95252012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9526
9527 * tests/util/grub-shell.in: Trim firmware output on EFI.
9528
cede3ca3
VS
95292012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9530
9531 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9532 and coreboot since it's already in kernel.
9533
558d3a60
VS
95342012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9535
9536 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9537 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9538 to here. New return value start. All users updated.
9539 Recursively scan linear mappings.
9540 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9541 proto.
9542 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9543 Use grub_util_get_dm_node_linear_info.
9544 * util/getroot.c (convert_system_partition_to_system_disk): Use
9545 grub_util_info rather than grub_dprintf.
9546 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9547
60fde14d
VS
95482012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9549
9550 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9551
9552 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9553 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9554
24bd8838
VS
95552012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9556
9557 * include/grub/types.h (grub_set_unaligned64): New function.
9558 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9559 (setup): Likewise.
9560
7bc06a49
VS
95612012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9562
9563 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9564 (grub_ofdisk_fini): Quiesce USB devices.
9565
49cea015
VS
95662012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9567
9568 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9569 caches.
9570
8dcbe03b
VS
95712012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9572
9573 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9574
5b258735
VS
95752012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9576
9577 * grub-core/disk/pata.c (grub_pata_pio_read)
9578 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9579 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9580
37ba07eb
VS
95812012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9582
9583 Extend automated tests to qemu-mips.
9584
9585 * Makefile.am: reorganise tests and enable qemu-mips.
9586 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9587 * grub-core/tests/boot/linux.init-mips.S: New file.
9588 * tests/partmap_test.in: Handle ata0 disks.
9589 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9590 non-pc i386.
9591
070038f8
VS
95922012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9593
9594 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9595 ia64.
9596 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9597 quotes while on it.
9598
004be2cd
VS
95992012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9600
9601 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9602 (grub_halt): Likewise.
9603 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9604
b1622487
VS
96052012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9606
9607 * grub-core/term/serial.c (grub_serial_register)
9608 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9609 the behaviour in line with x86 platforms.
9610
b7b4ab33
VS
96112012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9612
9613 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9614 (grub_ata_strncpy): Likewise.
9615 (grub_ata_identify): Add missing byteswaps.
9616
5e3535ae
VS
96172012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9618
9619 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9620 byte-swap.
9621 (screen_read_char): Likewise.
9622 (grub_vga_text_cls): Likewise.
9623
c21b17e6
VS
96242012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9627 filenames.
9628 (make_file_path): Likewise.
9629
bf293dec
VS
96302012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9633 machines.
9634 Tested by: Paulo Flabiano Smorigo.
9635 Crucial information about API supplied by: Coleen <Last name unknown>.
9636 Reviewed by: Coleen <Last name unknown>.
9637
81f6ef0e
VS
96382012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9639
9640 * util/grub-mkimage.c: Disable -Wcast-align.
9641
7284143a
VS
96422012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9643
9644 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9645 as they are fatal.
9646
b99f3e00
VS
96472012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9648
9649 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9650
944f752d
VS
96512012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9652
9653 * util/grub-probe.c (escape_of_path): Fix double free.
9654
6cce6f38
VS
96552012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9656
9657 * grub-core/commands/videoinfo.c (hook): Show pitch.
9658
1e1eb50e
VS
96592012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9660
9661 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9662
1c715b5a
VS
96632012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9664
9665 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9666 (probe): Add ieee1275 to OFW devices.
9667
007ae52d
VS
96682012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9669
9670 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9671
4557a36d
VS
96722012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9673
9674 Handle IBM OFW path.
9675
9676 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9677 available.
9678 (of_path_of_scsi): Handle vdevice.
9679
efbeefe9
VS
96802012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9681
9682 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9683 Allocate in multiples of 16 to avoid adding a few bytes free region the
9684 windows bugs upon.
9685
15a940bb
VS
96862012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9689 Allocate in multiples of 16 to avoid adding a few bytes free region the
9690 windows bugs upon.
9691 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9692
6e5efd60
VS
96932012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9696 resolutions.
9697 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9698 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9699
0d3d137e
IS
97002012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9701
9702 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9703
45dbe300
VS
97042012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9705
9706 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9707 resulted in \\ at the end of the line.
9708
6d8db947
VS
97092012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9712 (grub_parser_cmdline_state): Likewise.
9713 (grub_parser_split_cmdline): Likewise.
9714
de89d338
VS
97152012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9718 /dev/root and /dev/dm-*.
9719
00d41dee
VS
97202012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9721
9722 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9723 fix partially stale display.
9724
f95d1f11
VS
97252012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9726
9727 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9728 substraction.
9729
6297e197
VS
97302012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9731
9732 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9733 Fix MBR remapping workaround.
9734 (grub_util_biosdisk_read) [__linux__]: Likewise.
9735
8a7ecad3
VS
97362012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9737
9738 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9739
2b34f944
VS
97402012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9741
9742 * configure.ac: Bump to beta6.
9743
684aef11
CW
97442012-05-31 Christer Weinigel <christer@weinigel.se>
9745
9746 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9747
05b0bb91
VS
97482012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9749
9750 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9751 (grub_cmd_linux): Likewise.
9752
bda36bfa
CW
97532012-05-31 Christer Weinigel <christer@weinigel.se>
9754
9755 Fix EHCI low-speed.
9756
9757 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9758 (GRUB_EHCI_MULT_TWO): Likewise.
9759 (GRUB_EHCI_MULT_THREE): Likewise.
9760 (GRUB_EHCI_CMASK_MASK): New enum value.
9761 (GRUB_EHCI_SMASK_MASK): Likewise.
9762 (GRUB_EHCI_CMASK_OFF): Likewise.
9763 (GRUB_EHCI_SMASK_OFF): Likewise.
9764 (grub_ehci_pci_iter): Enable periodic schedule.
9765 (grub_ehci_parse_notrun): Likewise.
9766 (grub_ehci_restore_hw): Likewise.
9767 (grub_ehci_setup_qh): Set flags for low speed transfers.
9768 (grub_ehci_find_qh): Use periodic list for low speed.
9769 (grub_ehci_setup_transfer): Check periodic queue as well.
9770 (grub_ehci_check_transfer): Likewise.
9771 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9772
e12bcb1c
PFS
97732012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9774
9775 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9776 parameter is used.
9777
bcc75fb3
PJ
97782012-05-31 Peter Jones <pjones@redhat.com>
9779
9780 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9781 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9782 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9783
f19cb95e
VS
97842012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9785
9786 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9787 uninited variable. Allocate at least setup_sects.
9788
a4e5ca80
VS
97892012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9790
9791 Fix handling of EFI with big memory maps.
9792
9793 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9794 (real_mode_mem): Likewise.
9795 (real_mode_target): Likewise.
9796 (real_mode_pages): Likewise.
9797 (prot_mode_pages): Likewise.
9798 (linux_params): New var.
9799 (linux_cmdline): Likewise.
9800 (free_pages): Don't set real mode variables.
9801 (allocate_pages): Don't allocate real mode memory.
9802 (grub_e820_add_region): Remove the limit.
9803 (grub_linux_boot): Allocate and copy real mode memory.
9804 (grub_linux_unload): Free linux_cmdline.
9805 (grub_cmd_linux): Use temporary storage for parameters.
9806 (grub_cmd_initrd): Likewise.
9807 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9808 (linux_kernel_params): Make it 1K big.
9809
ddb73558
VS
98102012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9811
9812 * Makefile.util.def: Remove -Wno-format.
9813 * grub-core/Makefile.core.def: Likewise.
9814
1c4afb60
VS
98152012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 * tests/cmp_unit_test.c: Add missing failure message.
9818 * tests/example_unit_test.c: Likewise.
9819 * tests/printf_unit_test.c: Likewise.
9820
941e3a6d
VS
98212012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9822
9823 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9824 relaxation of protective MBR requirements.
9825
b105df76
VS
98262012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9827
9828 * configure.ac: Add condition for COND_HOST_XNU.
9829 * Makefile.util.def (10_xnu): New script.
9830 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9831
84e1569e
VS
98322012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9835 objconv bug.
9836
130c0f77
VS
98372012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9838
9839 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9840 Binary on other platforms stays identical.
9841
6fd0b143
VS
98422012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9843
9844 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9845 Apple.
9846
0af1751d
VS
98472012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9848
9849 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9850
176d5f7d
VS
98512012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9852
9853 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9854 rather than defining size_t ourselves to avoid conflict.
9855
7de5e20a
VS
98562012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9859 initialisation to avoid __bzero reference.
9860
f7143efe
VS
98612012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9862
9863 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9864 version.
9865 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9866 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9867 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9868 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9869 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9870
e6ad0555
VS
98712012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9872
9873 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9874 * grub-core/kern/misc.c: Likewise.
9875 * grub-core/loader/i386/xnu.c: Likewise.
9876 * include/grub/i386/tsc.h: Likewise.
9877 * include/grub/symbol.h: Likewise.
9878
4a5a3c4a
VS
98792012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9880
9881 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9882 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9883 on older compiler.
9884
037f6d90
VS
98852012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9886
9887 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9888 Implement Apple flavour.
9889 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9890
f7194551
VS
98912012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9892
9893 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9894 (memmove) [__APPLE__]: Likewise.
9895 (memcpy) [__APPLE__]: Likewise.
9896 (memset) [__APPLE__]: Likewise.
9897 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9898 (memmove) [__APPLE__]: Likewise.
9899 (memcpy) [__APPLE__]: Likewise.
9900 (memset) [__APPLE__]: Likewise.
9901
85a730ca
VS
99022012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9903
9904 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9905 dependency discard.
9906
40e80b94
VS
99072012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9908
9909 * grub-core/normal/main.c (read_config_file): Provide config_file and
9910 config_directory.
9911 * util/grub.d/41_custom.in: Use config_directoy when available.
9912
9da59c32
VS
99132012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9914
9915 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9916 (grub_bfs_dir): Likewise.
9917
2787ae53
PJ
99182012-05-27 Peter Jones <pjones@redhat.com>
9919
9920 The old code gives arguments to a printf function which can't work
9921 correctly, and the compiler complains.
9922
9923 * grub-core/tests/example_functional_test.c (example_test): Add
9924 missing text.
9925 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9926 * include/grub/test.h (grub_test_assert_helper): New declaration.
9927 (grub_test_assert): Use grub_test_assert_helper.
9928
526ef13d
VS
99292012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9932 (exfctest): ... this to avoid overlong filenames.
9933 All users updated.
9934
20dd511c
VS
99352012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9936
9937 Handle "." and ".." on squashfs.
9938
9939 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9940 Make inode numbers into stack.
9941 (grub_squash_read_symlink): Use stack.
9942 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9943 (make_root_node): Fill stack.
9944 (grub_squash_open): Use stack.
9945
1d80c62a
VS
99462012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9947
9948 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9949 freeing.
9950
d336f652
VS
99512012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9952
9953 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9954 stderr on test calls.
9955
8b43f587
VS
99562012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9957
9958 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9959
80a3dc3f
VS
99602012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9961
9962 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9963
47e297d4
VS
99642012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9967 "..".
9968
df042ccb
VS
99692012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9970
9971 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9972 (grub_hfsplus_iterate_dir): Add "." and "..".
9973
fc977f48
VS
99742012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9975
9976 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9977 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9978
f3250e5f
VS
99792012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9980
9981 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9982 (find_path): Handle "." and "..".
9983
fd8ed4c5
VS
99842012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9985
9986 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9987 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9988 (grub_affs_iterate_dir): Handle hardlinks.
9989
4ce776d2
MG
99902012-05-26 Matthew Garrett <mjg@redhat.com>
9991
9992 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9993 (grub_efi_console_fini): Likewise.
9994 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9995 (grub_video_gop_fill_mode_info): Rename to ...
9996 (grub_video_gop_fill_real_mode_info): ... this.
9997 (grub_video_gop_fill_mode_info): New function.
9998 (grub_video_gop_setup): Setup double framebuffer.
9999 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10000 Free offscreen.
10001 (grub_video_gop_swap_buffers): Copy framebuffer.
10002 (grub_video_gop_fini): Free offscreen buffer.
10003 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10004 New enum.
10005 (grub_efi_gop_blt_pixel): New struct.
10006
683031ba
VS
100072012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * gentpl.py: Remove error disabling for objconv.
10010
c2deb798
VS
100112012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10012
10013 * configure.ac: Remove -Wunitialized as it's not available on older
10014 compilers.
10015
100162012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
10017
10018 Fix extent overflow comparator.
10019
10020 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10021 (grub_hfsplus_read_block): Set type.
10022 (grub_hfsplus_cmp_extkey): Compare type.
10023
d6b1fd36
VS
100242012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10025
10026 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10027
0a9aa0f6
VS
100282012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10029
10030 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10031 than 0.
10032
8360e159
VS
100332012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10034
10035 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10036 (dejavu_bold_14.pf2): New target.
10037
501b9e4b
VS
100382012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10039
10040 * configure.ac: Fix djvu font detection.
10041
7026b0e2
VS
100422012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10043
10044 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10045 ext* instead of ext2.
10046
c2a51ade
VS
100472012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10048
10049 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10050 name with \0.
10051
8f803a5d
JU
100522012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10053
10054 * docs/grub-dev.texi: Remove dot from .png.
10055
13c6353f
VS
100562012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10057
10058 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10059 protective entry in any slot.
10060 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10061 if protective entry is found in any slot.
10062
10063 Protective entry in non-first slot make no sense but is a widespread
10064 brain damage.
10065
4cf6be1b
VS
100662012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10067
10068 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10069
937d1c44
VS
100702012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10071
10072 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10073 with old reiserfs.
10074 (grub_reiserfs_open): Don't free root.
10075
021d90ec
VS
100762012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10077
10078 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10079 after freeing for safety.
10080
967b2b64
VS
100812012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10084 Reported by: Jordan Uggla.
10085
34274d02
JU
100862012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10087
967b2b64
VS
10088 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10089 actual implementation. Specifically, clarify that the grub menu will
10090 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10091 passed.
34274d02 10092
dcaaae9d
BH
100932012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10094
10095 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10096 of r0.
10097
7086ad52
VS
100982012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10099
10100 Remove unjustified hard dependency of normal.mod on gfxterm.
10101
10102 * include/grub/term.h (grub_term_output): New member fullscreen.
10103 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10104 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10105 (grub_gfxterm): Set .fullscreen.
10106 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10107 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10108
37ed2c9b
VS
101092012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10110
10111 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10112 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 10113 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 10114
a4469c88
VS
101152012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10116
10117 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10118
4e461486
VS
101192012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10120
10121 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10122 a bad FS.
10123
aa78f5c4
VS
101242012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10125
10126 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10127 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10128
197626b5
VS
101292012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10130
10131 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10132 (grub_jfs_mount): Fill caseins.
10133 (grub_jfs_find_file): Respect caseins.
10134
8ad3f28c
VS
101352012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10138 through UTF-16.
10139
0c6c324e
VS
101402012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10141
10142 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10143 New argument origpath. All users updated.
10144
c6666ba6
VS
101452012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10146
10147 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10148 (read_attr): Ensure that we read start of possibly compressed block.
10149
e28e5fe5
VS
101502012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10151
10152 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10153 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10154 All users updated.
10155
5fc23ab2
VS
101562012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10157
10158 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10159 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10160 (dejavu.pf2): Replace with ...
10161 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10162 this.
10163
79dbc21c
VS
101642012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10165
10166 * util/grub.d/20_linux_xen.in: Add missing line.
10167
d2fcfb0c
VS
101682012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10169
10170 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10171 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10172 (grub_utf16_to_utf8): Likewise.
10173
5560e9d6
VS
101742012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10175
10176 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10177 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10178 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10179 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10180 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10181 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10182
101832012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
10184
10185 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10186 a bad FS.
10187
5560e9d6 101882012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
10189
10190 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10191 (grub_udf_read_symlink): Handle read_string failure.
10192
5eae3175
VS
101932012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10194
10195 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10196 comment.
10197
c1ad82db
VS
101982012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 Fix handling of UDF symlinks.
10201
10202 * grub-core/fs/udf.c (read_string): New argument outbuf.
10203 All users updated.
10204 (grub_ufs_read_symlink): Rename to ...
10205 (grub_udf_read_symlink): ... this. All users updated.
10206 Handle symlinks with more than one component.
10207
33eca6e0
VS
102082012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10209
10210 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10211 symlinks. Replace leading colon with a slash.
10212
57f4a70b
VS
102132012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10214
10215 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10216 filename.
10217
38c8ee20
VS
102182012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10219
10220 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10221 match in inner node.
10222
2e57f28f
VS
102232012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10224
10225 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10226 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10227 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10228 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10229 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10230 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10231 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10232 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10233 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10234
fe8c2f11
VS
102352012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10236
10237 Use grub-probe and not cmp to check that disk is empty.
10238
10239 * util/grub-install.in: Use grub-probe for zero-check.
10240 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10241 (probe): Handle PRINT_ZERO_CHECK.
10242 (argp_parser): Handle -t zero_check.
10243
102442012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
10245
10246 Flush block cache on adding disk to device map.
10247
10248 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10249 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10250 adding.
10251 (read_device_map): Likewise.
10252 (open_device): Flush on opening.
10253
690434e8
VS
102542012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10255
10256 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10257 (handle_symlink): Fix off-by-one error.
10258 Canonicalize the target.
10259 (grub_cpio_dir): Canonicalize the name.
10260 Fix memory leak.
10261 Set directory.
10262 (grub_cpio_open): Canonicalize the name.
10263
742d2be6
VS
102642012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10265
10266 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10267 handling.
10268
3244fe96
VS
102692012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10270
10271 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10272 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10273
8aeb1837
VS
102742012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10277 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 10278 All users updated.
8aeb1837 10279
9133fd05
VS
102802012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10281
10282 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10283 counterpart.
10284
6d521c5b
VS
102852012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10286
10287 Fix UFS1 big file support.
10288
10289 * grub-core/fs/ufs.c (INODE): Removed.
10290 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10291 64-bit.
10292 (INODE_MODE): Simplify.
10293 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10294 (grub_ufs_lookup_symlink): Don't use INODE.
10295
21b82e17
VS
102962012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10297
10298 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10299
10300 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10301 (grub_minix_data): Replace log_block_size with block_size.
10302 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10303 (grub_minix_mount): Fill block_size.
10304
103052012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
10306
10307 * configure.ac: Bump to beta5.
10308
f417ed04
VS
103092012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10310
10311 Fix wrapped HFS+ handling.
10312
10313 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10314 blocks_start. All users updated.
10315 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10316 wrapping offset.
10317 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10318
607d282b
VS
103192012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10320
10321 Fix long symlinks on reiserfs.
10322
10323 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10324 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10325 (grub_reiserfs_iterate_dir): Save size for non-directories.
10326 (grub_reiserfs_open): Don't reread stat block as we already know the
10327 size.
10328 (grub_reiserfs_read): Split into...
10329 (grub_reiserfs_read_real): ... and ...
10330 (grub_reiserfs_read): ...this.
10331
ae16024d
VS
103322012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10333
10334 Fix non-indexed JFS.
10335
10336 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10337 (grub_jfs_data): New field namecomponentlen.
10338 (grub_jfs_mount): Fill namecomponentlen.
10339 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10340
eea1e26e
VS
103412012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10342
10343 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10344 * tests/grub_script_echo1.in: Add tests.
10345
df760f77
VS
103462012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * util/grub-install.in: Ignore empty devicetree directory.
10349
5efb817d
B
103502012-05-08 Bean <bean123ch@gmail.com>
10351
10352 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10353 All users updated.
10354 (free_rsm): Free header as well.
10355 (free_old_fragments): Fix memory leak.
10356 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10357 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10358 (destroy_pq): Likewise.
10359 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10360
668ea6d2
VS
103612012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10362
10363 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10364 resulting hash as a precaution.
10365
1739b1fe
VS
103662012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10367
10368 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10369 '_' in variable names.
10370 * grub-core/net/net.c (grub_net_network_level_interface_register):
10371 Likewise.
10372
6ae485aa
VS
103732012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 Fix AFFS with non-512B blocks.
10376
10377 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10378 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10379 (grub_affs_data): Replace blocksize with log_blocksize.
10380 (grub_affs_read_block): Fix non-512B blocks.
10381 (grub_affs_read_symlink): Likewise.
10382 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10383 (grub_affs_read): Fix non-512B blocks.
10384 (grub_affs_label): Likewise.
10385 (grub_affs_mtime): Likewise.
10386 (grub_affs_mount): Fix block detection routine.
10387
d20fab84
VS
103882012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10389
10390 Add filesystem mtime to AFFS.
10391
10392 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10393 (aftime2ctime): New function.
10394 (grub_affs_dir): Use aftime2ctime.
10395 (grub_affs_label): Fix return value.
10396 (grub_affs_mtime): New function.
10397 (grub_affs_fs): Add mtime.
10398
e87b10f5
VS
103992012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10400
10401 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10402 UTF-8.
10403
7dceec9b
VS
104042012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10405
10406 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10407 UTF-8.
10408
2f48221f
VS
104092012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10410
10411 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10412
dacd85cf
VS
104132012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10414
10415 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10416 flags.
10417 (FLAGS_CASE_SENSITIVE): New enum value.
10418 (cache_entry): New struct.
10419 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10420 cache_size and cache.
10421 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10422 Add log_blocksize and fshelp_flags.
10423 (grub_sfs_read_extent): Handle non-512 blocks.
10424 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10425 (grub_sfs_read_file): Handle non-512 blocks.
10426 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10427 fshelp_flags.
10428 (grub_sfs_read_symlink): Handle non-512 blocks.
10429 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10430 (grub_sfs_dir): Free cache.
10431 (grub_sfs_close): Likewise.
10432
24e9a854
VS
104332012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10434
10435 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10436 filesystems.
10437
62ace64d
VS
104382012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10439
10440 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10441
83b2e89c
VS
104422012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10443
10444 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10445
75ccaea3
VS
104462012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10447
10448 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10449 (grub_sfs_read_extent): Likewise.
10450 (grub_sfs_read_block): Likewise.
10451 (grub_sfs_mount): Likewise.
10452 (grub_sfs_iterate_dir): Likewise.
10453 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10454 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10455
1b8463f2
VS
104562012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10457
10458 Fix errors on compressed NTFS with 512B clusters.
10459
10460 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10461 types.
10462 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10463 not 0.
10464 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10465 Relax check for inline extents.
10466 (ntfscomp): Return correct -1 on error and not 0.
10467
4f8e368f
VS
104682012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10469
10470 * util/grub-install.in: Fix handling of prefix containing spaces.
10471
6f5d5ee8
VS
104722012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10473
10474 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10475 (grub_squash_read_data): Fix offset byte-swapping.
10476
ce41ab7a
VS
104772012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10478
10479 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10480 per common usage and preffered in several parts of code.
10481 (grub_memcmp): Likewise.
10482 (grub_strncmp): Likewise.
10483 * include/grub/misc.h (grub_strcasecmp): Likewise.
10484 (grub_strncasecmp): Likewise.
10485 * Makefile.util.def (cmp_test): New test.
10486 (grub_script_strcmp): Likewise.
10487 * tests/cmp_unit_test.c: New file.
10488 * tests/grub_script_strcmp.in: Likewise.
10489 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10490
49717bf4
VS
104912012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10492
10493 * include/grub/pci.h: Move enums into no-asm part.
10494
0a308f64
VS
104952012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10496
10497 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10498
1796965f
ST
104992012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10500
10501 * util/getroot.c (find_hurd_root_device): Try to make error message
10502 and comments to translators clearer.
10503
4e9b2819
VS
105042012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10505
10506 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10507
076aeb50
VS
105082012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10509
10510 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10511 btrfs.
10512
19424d94
VS
105132012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10514
10515 * docs/grub.cfg: Update.
10516
ebb73076
VS
105172012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * docs/grub.texi (PXE): Remove not present variables.
10520
9a1b669c
VS
105212012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10522
10523 * grub-core/net/net.c (defserver_set_env): New function.
10524 (defserver_get_env): Likewise.
10525 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10526
d38bf7d3
VS
105272012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10528
10529 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10530 entries.
10531
105322012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
10533
10534 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10535 * grub-core/kern/emu/hostdisk.c: Likewise.
10536
e5e4ca48
ST
105372012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10538
10539 Handle hurd userspace partitions.
10540
10541 * util/getroot.c (find_hurd_root_device): New function.
10542 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10543
56bb5dd5
VS
105442012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10545
10546 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10547 names.
10548 Reported by: Bastian Blank.
10549
9e8bc27a
VS
105502012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10551
10552 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10553 crossing page boundary.
10554
aa01499d
VS
105552012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10556
10557 Fix B-tree search in BFS, especially in presence of non-ASCII
10558 characters.
10559
10560 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10561 (find_in_b_tree): Use standard bsearch + btree algorithm.
10562
57006035
VS
105632012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10564
10565 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10566 and so on.
10567
9d34bb85
MG
105682012-05-03 Matthew Garrett <mjg@redhat.com>
105692012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10570
10571 Suspend broadcom cards in order to stop their DMA.
10572
10573 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10574 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10575 (pci): Don't build on x86 EFI.
10576 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10577 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10578 New function.
10579 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10580 stop_broadcom if running on EFI.
10581 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10582 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10583 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10584 (grub_pci_find_capability): New proto.
10585
01aab997
VS
105862012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10587
10588 * docs/grub.texi: Remove dot from the extension as it apparently
10589 doesn't work with some makeinfo versions.
10590
fbd8dca6
VS
105912012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10592
10593 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10594 with GRUB expectance.
10595
dab797f4
VS
105962012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10597
10598 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10599
1516bfb4
VS
106002012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10601
10602 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10603 zero after directory block since last entry may be not 0-terminated if
10604 it ends on block boundary. Use continue instead of if spanning whole
10605 loop.
10606
a3a0eace
VS
106072012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10608
10609 Support 4K sectors UDF inline files.
10610
10611 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10612 (grub_udf_extended_file_entry): Likewise.
10613 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10614 All users updated.
10615 (get_fshelp_size): New function.
10616 (grub_udf_read_icb): Read whole block.
10617 (grub_udf_iterate_dir): Likewise.
10618 (grub_udf_dir): Likewise.
10619 (grub_udf_open): Likewise.
10620
c82f16c1
VS
106212012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10622
10623 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10624
59fd2aac
VS
106252012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10626
10627 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10628 inline symlinks in addition to workaround.
10629
3b4afb4d
VS
106302012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10631
10632 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10633
f45c794a
VS
106342012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10635
10636 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10637
f25cecbd
VS
106382012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10639
10640 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10641
bb9a34e8
VS
106422012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10643
10644 Fix reiserfs big seek times.
10645
10646 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10647 exact. All users updated.
10648 (grub_reiserfs_read): Use nearest btree search for seeking.
10649 Fix return value on error.
10650
dc478aea
VS
106512012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10652
10653 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10654 entries.
10655 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10656 * docs/grub.texi: Update menuentry description.
10657
8db10f47
VS
106582012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10659
10660 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10661 crash when embedding onto filesystem.
10662
bcb288ed
VS
106632012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10664
10665 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10666 name.
10667
a626fdd7
VS
106682012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10669
10670 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10671
b2f68477
VS
106722012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10673
10674 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10675 commit.
10676
ba15b2af
B
106772012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
106782012-05-01 Bean <bean123ch@gmail.com>
10679
10680 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10681
a188012e
VS
106822012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10683
10684 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10685 Special behaviour for len = 0 to read whole file isn't used anywhere and
10686 can cause buffer ovewrflows in several places.
10687
f0a53ed2
VS
106882012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10689
10690 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10691
5ed554f0
VS
106922012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10693
10694 Handle RAIDZ on non-512B sectors.
10695
10696 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10697 max_children_ashift.
10698 (fill_vdev_info_real): Fill max_children_ashift.
10699 (read_device): Use max_children_ashift.
10700
ddc58357
VS
107012012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10702
10703 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10704
e3282399
VS
107052012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10706
10707 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10708 disk names.
10709 * docs/grub.texi: Update device.map parts.
10710
ee618bd4
VS
107112012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10712
10713 Don't scan into non-diskfilter devices having diskfilter names.
10714
10715 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10716 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10717 handling.
10718 (scan_disk_hook): New function.
10719
bdf88864
B
107202012-04-29 Bean <bean123ch@gmail.com>
10721
10722 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10723 allocation.
10724
32745f51
MK
107252012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10726
10727 * configure.ac: Detect starfield theme font path
10728 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10729
bc95c8c0
VS
107302012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10733 geometry on serial consoles.
10734
147fbcab
VS
107352012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10736
10737 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10738 because of network consoles.
10739
0f42c889
VS
107402012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10741
10742 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10743 handling.
10744
4a3594c9
VS
107452012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10746
10747 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10748 falls on Q syndrom.
10749
5cb53879
VS
107502012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10751
10752 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10753 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10754
b282dfe5
VS
107552012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10756
10757 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10758 Allocate at lest 8192 for temporary buffer as required for lzo.
10759
daa59f47
VS
107602012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10761
10762 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10763 to cluster_bits, since it's already added in.
10764 (grub_fat_read_data): Likewise.
10765
986748ce
VS
107662012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10767
10768 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10769 as long as cluster size is multiple of 512 bytes.
10770
a20f6ad0
VS
107712012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * util/grub-mkrescue.in: Fix locale directory.
10774
385f9abb
VS
107752012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10776
10777 * grub-core/kern/emu/hostdisk.c (map): Make static.
10778
1c557d30
B
107792012-04-23 Bean <bean123ch@gmail.com>
10780
10781 * util/grub-fstest.c (fstest): Add missing break.
10782
524b5d3a
ST
107832012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10784
10785 Fix hurd build.
10786
10787 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10788 not define nr variable.
fe4824e9 10789 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10790 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10791 grub_find_device): Do not define.
524b5d3a 10792
9a06490c
VS
107932012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10794
10795 Fix kfreebsd compile and behaviour.
10796
10797 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10798 format-security.
10799 * util/getroot.c: Fix wait.h include.
10800 (grub_guess_root_devices): Error if grub_find_device fails.
10801 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10802 (grub_util_get_dev_abstraction): Likewise.
10803 (grub_util_pull_device): Likewise.
10804 (grub_util_get_grub_dev): Likewise.
10805 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10806
48143d96
VS
108072012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10808
10809 Fix and unify wholedisk detection.
10810
10811 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10812 is_part. All users updated.
10813 (device_is_wholedisk): Removed.
10814 (grub_util_biosdisk_get_grub_dev): Use is_part.
10815
ebbd24f3
VS
108162012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10817
10818 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10819 mode.
10820
56f7aa1e
VS
108212012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10822
10823 * configure.ac: Bump to beta4.
10824
9c815e01
VS
108252012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10826
10827 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10828 --fs-uuid --set UUID syntax.
10829
59e2651a
VS
108302012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10831
10832 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10833 disunification.
10834
54e03cfc
VS
108352012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10838
81092a75
MK
108392012-04-18 Mads Kiilerich <mads@kiilerich.com>
10840
10841 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10842
f8315e14
MG
108432012-04-18 Mike Gilbert <floppym@gentoo.org>
10844
10845 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10846
1501ac21
B
108472012-04-18 Bean <bean123ch@gmail.com>
10848
10849 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10850 place.
10851
cb7f944e
VS
108522012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10853
10854 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10855 users updated.
10856 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10857 corresponding to GRUB partitions.
10858 (grub_util_biosdisk_write): Likewise.
10859
b72d44a1
VS
108602012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 Scan mdraid before LVM.
10863
10864 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10865 (grub_diskfilter_register_front): ... this.
10866 (grub_diskfilter_register_back): New function.
10867 All users of grub_diskfilter_register updated.
10868
33d918b8
VS
108692012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10870
10871 * util/grub-install.in: Fix an automatic target detection bug.
10872
c6ca973d
VS
108732012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10874
10875 * util/grub-install.in: New option --efi-directory.
10876
b41be562
VS
108772012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10878
10879 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10880 boot services if we have no other choice.
10881
108822012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10883
10884 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10885 document it.
10886 * tests/util/grub-shell.in: Update to --directory.
10887
e0595a73
VS
108882012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10889
10890 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10891
4ed80652
VS
108922012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10893
10894 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10895 (grub_minix_read_file): Likewise.
10896 (grub_minix_read_inode): Likewise.
10897 (grub_minix_find_file): Likewise.
10898 (grub_minix_dir): Likewise.
10899
56008077
VS
109002012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10901
10902 * util/grub-setup.c (setup): Fix partition handling and blocklist
10903 check.
10904
ee520775
VS
109052012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10906
10907 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10908 redundant buggy overlap check.
10909
16fc9293
VS
109102012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10911
10912 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10913 and grub-mknetdir.
10914
9bab65c4
VS
109152012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10916
10917 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10918 kh.loadflags on pre-2.00 kernels.
10919
3c491b47
VS
109202012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10921
10922 Terminate UNDI and PXE before launching the payload to avoid problems
10923 with DMA.
10924
10925 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10926 (grub_loader_flags): ... this. All users updated.
10927 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10928 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10929 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10930 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10931 function.
10932 (grub_pxe_restore): Likewise.
10933 (fini_hnd): New var.
10934 (GRUB_MOD_INIT): Register shutdown hook.
10935 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10936 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10937 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10938 (grub_loader_set): Rename second argument to flags.
10939
851ffada
VS
109402012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10941
10942 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10943 written bytes.
10944 (grub_get_num_of_utf8_bytes): New function.
10945 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10946 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10947 executing it.
10948 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10949 (grub_ucs4_to_utf8): Change return type.
10950
491c57a8
VS
109512012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10952
10953 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10954 warning.
851ffada
VS
10955 * grub-core/fs/bfs.c (hop_level): Likewise.
10956 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 10957
756773df
VS
109582012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10959
10960 * grub-core/lib/adler32.c: Recode due to license unclearness.
10961
fd556a96
VS
109622012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10963
10964 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10965 (test_header): Likewise.
10966
9f9d3f69
VS
109672012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10968
10969 Fix --help formatting.
10970
10971 * util/grub-mkconfig_lib.in (print_option_help): New function.
10972 (grub_fmt): Likewise.
10973 * util/grub-install.in: Use print_option_help and grub_fmt.
10974 * util/grub-kbdcomp.in: Likewise.
10975 * util/grub-mkconfig.in: Likewise.
10976 * util/grub-mknetdir.in: Likewise.
10977 * util/grub-mkrescue.in: Likewise.
10978 * util/grub-mkstandalone.in: Likewise.
10979 * util/grub-reboot.in: Likewise.
10980 * util/grub-set-default.in: Likewise.
10981 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10982
561ec77e
VS
109832012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10984
10985 * linguas.sh: Remove autogenerated *.po.
10986
7ec2b021
VS
109872012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10988
10989 * po/README: Move language fetcing to ...
10990 * linguas.sh: ... here.
10991 * po/README: Point to linguas.sh.
10992
a88f3270
VS
109932012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10994
10995 * po/README: Exclude ko.po due to disclaimer problems.
10996
d61357ce
VS
109972012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10998
10999 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11000 len = 0.
11001 (grub_gettext_translate_real): Handle 0th string.
11002 (grub_gettext_translate): Ensure that "" isn't translated.
11003
505e41dc
VS
110042012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11005
11006 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11007 TRANSLATORS comment.
11008 (grub_diskfilter_print_partmap): Propagate changing of error into
11009 warning.
11010
e44092db
VS
110112012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11012
11013 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11014 to uint64_t to prevent overflow.
11015 (grub_diskfilter_lv): Increase start_extent and extent_count
11016 to uint64_t to prevent overflow.
11017
9b83956a
VS
110182012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11019
11020 * configure.ac: Increase version.
11021
da0d5b3f
VS
110222012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11023
11024 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11025
11026 * po/Rules-translit: New file.
11027 * po/arabic.sed: Likewise.
11028 * po/cyrillic.sed: Likewise.
11029 * po/greek.sed: Likewise.
11030 * po/hebrew.sed: Likewise.
11031 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11032 * po/Makefile.in.in: Add extra_dist4.
11033
ac66b453
VS
110342012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11035
11036 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11037
11038 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11039 modify names. Introduce MODE_BIGENDIAN.
11040 * grub-core/fs/minix_be.c: New file.
11041 * grub-core/fs/minix2_be.c: Likewise
11042 * grub-core/fs/minix3_be.c: Likewise.
11043 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11044 minix3_be.
11045 * grub-core/Makefile.core.def (minix_be): New module.
11046 (minix2_be): Likewise.
11047 (minix3_be): Likewise.
11048
110492012-04-01 Felix <email@hamburg.de>
11050
11051 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11052 (devs): Add MBP 2011.
11053
0a2d5a82
VS
110542012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11055
11056 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11057
d1625889
VS
110582012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11059
11060 * grub-core/normal/cmdline.c (print_completion): New field
11061 prompt_len.
11062 (grub_cmdline_get): Handle width properly.
11063
6d36a236
VS
110642012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11065
11066 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11067
9576977e
VS
110682012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11069
11070 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 11071 after 29th of February.
9576977e 11072
d73ff15d
VS
110732012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11074
11075 Fix exfat endianness handling.
11076
11077 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11078 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11079 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11080 Byte-swap utf16 when necessary.
11081 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11082
bbb39a45
AB
110832012-03-31 Anton Blanchard <anton@samba.org>
110842012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11085
11086 Fix btrfs endianness handling.
11087
11088 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11089 (lower_bound): Make root uint64_t. Use root in le.
11090 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11091 (find_path): Fix template key init.
11092 (grub_btrfs_dir): Fix mtime byteswap.
11093 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11094
354e0af7
VS
110952012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11096
11097 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11098 recursion_depth. Break infinite resursions. All users updated.
11099
4e75f21c
VS
111002012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11101
11102 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11103 after free.
11104 Reported by: Peter Jones.
11105
25581802
AB
111062012-03-31 Anton Blanchard <anton@samba.org>
11107
11108 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11109 8 bit values.
11110
08fbf92e
VS
111112012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11112
11113 * util/grub-install.in: Fix nvram call for PreP.
11114
5d1182a6
VS
111152012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11116
11117 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11118 the error when some elements are missing into a warning.
11119
3f8cdd90
VS
111202012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11121
11122 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11123
51006716
CW
111242012-03-28 Colin Watson <cjwatson@ubuntu.com>
11125
11126 * docs/grub.texi (Invoking grub-probe): New section.
11127 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11128
e1bd676b
VS
111292012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11130
11131 Fix tab and wide character handling in editor and menu.
11132
11133 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11134 agglomerate control characters with combining marks.
11135 (bidi_line_wrap): Allow break on tab.
11136 (grub_unicode_get_comb_start): New function.
11137 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11138 and tab correctly.
11139 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11140 with a space.
11141 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11142 fixed_tab_size. All users updated.
11143 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11144 (grub_term_getcharwidth): Handle \t.
11145 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11146 and copy.
11147
22e6a774
VS
111482012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11149
11150 Handle big-endian mdraid.
11151
11152 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11153 * grub-core/Makefile.core.def (mdraid09_be): New module.
11154 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11155 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11156 * grub-core/disk/mdraid_linux_be.c: New file.
11157
3c0eae66
VS
111582012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11159
11160 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11161
b6cf74c9
VS
111622012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11163
11164 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11165 missing quotes which caused confusion among translators.
11166
83c93b9c
VS
111672012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11168
11169 * util/grub-mkconfig_lib.in: Fix typo.
11170
ac6fd218
VS
111712012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11172
11173 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11174 spaces.
11175 * tests/grub_script_leading_whitespace.in: New file.
11176 * Makefile.util.def (grub_script_leading_whitespace): New test.
11177
ba287dd8
VS
111782012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11179
11180 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11181 to work.
11182
d2d58d0a
VS
111832012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11184
11185 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11186 starts with control character.
11187
0382d9bb
VS
111882012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11189
11190 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11191 overflow.
11192 (grub_gdb_outbuf): Likewise.
11193
d83ff9f9
VS
111942012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11195
11196 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11197 zero terminator. Fixes a crash.
11198
2282da4a
VS
111992012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11200
11201 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11202 beyond 4 GiB.
11203 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11204 images independently of preffered adderss field.
11205
0ae4f0bd
VS
112062012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11207
11208 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11209 * grub-core/commands/regexp.c: Likewise.
11210 * grub-core/loader/i386/linux.c: Likewise.
11211 * grub-core/partmap/msdos.c: Likewise.
11212 * grub-core/script/execute.c: Likewise.
11213 * grub-core/term/gfxterm.c: Likewise.
11214
546fbe9b
VS
112152012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11216
11217 Add variable parsing in $"..." and fix several mismatches with bash.
11218
11219 * Makefile.util.def (grub_script_gettext): New test.
11220 * grub-core/script/execute.c (parse_string): New function.
11221 (gettext_append): Likewise.
11222 (grub_script_arglist_to_argv): Use gettext_append.
11223 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11224 * tests/grub_script_gettext.in: New file.
11225
9fdb2d7b
VS
112262012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11227
11228 Fix handling of leading spaces in scripts.
11229
11230 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11231 spaces.
11232 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11233 other than skipping \r. All users updated.
11234 * tests/grub_script_echo1.in: Add space-related tests.
11235 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11236
1a1ac4f6
VS
112372012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11240
b63d89b6
VS
112412012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11242
11243 * configure.ac: Bump up the version to beta2.
11244
17f38c0f
VS
112452012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11246
11247 Fix gettext reload bugs (e.g. inability to disable gettext
11248 once enabled).
11249
11250 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11251 main_context and secondary_context. All functions updated.
11252 (grub_gettext_translate): Rename to ...
11253 (grub_gettext_translate_real): ... this. Return NULL on failed
11254 translate.
11255 (grub_gettext_translate): Handle secondary context.
11256 (grub_gettext_delete_list): Close file and zero-out the context.
11257 (grub_mofile_open): Don't call grub_gettext_delete_list.
11258 Don't close file.
11259 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11260 if locale="" to avoid pointless error message.
11261 (grub_gettext_env_write_lang): Update lang even if load fails.
11262 Handle secondary context.
11263 (grub_gettext_reread_prefix): New function.
11264 (read_main): Likewise.
11265 (read_secondary): Likewise.
11266 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11267 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11268 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11269 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11270
8e56f870
VS
112712012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11272
11273 * configure.ac: Decrease warning level to avoid spurious warnings and
11274 to be able to compile with GCC 4.2.
11275 * Makefile.util.def: Remove -Wno-error=logical-op.
11276
82f6d455
WB
112772012-03-10 William Bittner <william.bittner@gmail.com>
11278
11279 * util/import_unicode.py: Add missing brackets around string for
11280 python 3 support.
11281
1ecd61a4
VS
112822012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11283
11284 Fix efi chainloader on network root.
11285
11286 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11287 network devices.
11288 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11289 New function.
11290
14361ee8
VS
112912012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11292
11293 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11294 unused show_text member.
11295 * docs/grub.texi: Document "text" property.
11296
922aabf3
VS
112972012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11298
11299 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11300 in dprintf.
11301
ec316771
VS
113022012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11303
11304 Fix IMSM handling on Fedora.
11305
11306 * util/getroot.c (grub_util_is_imsm): New function.
11307 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11308
0f021838
VS
113092012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11310
11311 * Makefile.am: Strip gold section.
11312 * conf/Makefile.common: Likewise.
11313 * gentpl.py: Likewise.
11314 * grub-core/Makefile.core.def: Likewise.
11315 * grub-core/genmod.sh.in: Likewise.
11316
1039c8eb
VS
113172012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11318
11319 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11320 * util/grub.d/20_linux_xen.in: Likewise.
11321 Based on Debian patch.
11322
6dd412cd
VS
113232012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11324
11325 * util/grub.d/10_linux.in: Fix syntax error resulting in
11326 Richard Laager's patch.
11327 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11328
3fd8bae5
VS
113292012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11330
11331 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11332 dependencies.
11333
7eea1671
RL
113342012-03-10 Richard Laager <rlaager@wiktel.com>
11335
11336 * util/grub.d/10_linux.in: Fix ZFS root passing.
11337
e8e0566b
VS
113382012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11341 * grub-core/commands/xnu_uuid.c: Likewise.
11342 * grub-core/loader/efi/appleloader.c: Likewise.
11343 * grub-core/script/execute.c: Likewise.
11344 * grub-core/script/main.c: Likewise.
11345 * util/grub-mkfont.c: Likewise.
11346
1acc5b1f
VS
113472012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11348
11349 * util/grub-mkfont.c (options): Use more appropriate "select" that
11350 "set" for face index.
11351
35d70620
VS
113522012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11353
11354 * util/grub-editenv.c (options): Gettextize command summaries.
11355
c9eb96b5
VS
113562012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11357
11358 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11359 "out of memory" error messagge.
11360
1f493136
VS
113612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11362
11363 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11364 of diskfilter for diskfilter on diskfilter support.
11365
6d790129
VS
113662012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11367
11368 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11369
005f46c9
VS
113702012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11371
11372 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11373 themes/starfield.
11374
c8f778a0
VS
113752012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11376
11377 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11378
de1e64eb
VS
113792012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11380
11381 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11382
c6d54211
VS
113832012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11384
11385 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11386 of error message.
11387
dd390777
VS
113882012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11389
11390 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11391
5fd1c522
VS
113922012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11393
11394 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11395 message.
c6d54211 11396 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 11397
fae01f6c
VS
113982012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11399
11400 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11401 Gettextize.
11402 * util/grub-mount.c (options): Likewise.
11403
292fdaff
VS
114042012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11405
11406 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11407 gettextize.
11408 * grub-core/commands/search_wrap.c (options): Likewise.
11409
ecdbae77
VS
114102012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11411
11412 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11413
52bfedfa
VS
114142012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11415
11416 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11417 size calculation.
11418 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11419 none is known.
11420
55b20e58
VS
114212012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11422
11423 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11424 "temporary" since it's used in identifier and is limited in space.
11425
fda9d101
VS
114262012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11427
11428 * po/POTFILES.in: Regenerate. Include *.h since they contain
11429 translatable strings as well.
11430
6a0295e2
VS
114312012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11432
11433 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11434 byte-swap on big-endian.
11435 Reported by: Lennart Sorensen
11436
807fb77c
VS
114372012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11438
11439 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11440 (allocate_pages): Improve dprintf.
11441 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11442 code32_start. Fill code32_start and kernel_alignment in params.
11443 (grub_cmd_initrd): Use prot_init_space.
11444
61ac50ba
VS
114452012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11446
11447 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11448
abdd26dd
VS
114492012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11450
11451 * util/grub-install.in: Add missing dot at the end of sentence.
11452
6e69da9c
VS
114532012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11454
11455 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11456 * grub-core/commands/videotest.c: Likewise.
11457 * grub-core/loader/i386/linux.c: Likewise.
11458
4a929343
VS
114592012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11460
11461 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11462 sentence.
11463 Reported by: Milo Casagrande.
11464
bb51c6c6
VS
114652012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11466
11467 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11468 * grub-core/commands/gptsync.c: Likewise.
11469 * grub-core/commands/hashsum.c: Likewise.
11470 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11471 * grub-core/commands/legacycfg.c: Likewise.
11472 * grub-core/io/gzio.c: Likewise.
11473 * grub-core/net/net.c: Likewise.
11474 * grub-core/term/gfxterm.c: Likewise.
11475 * grub-core/term/terminfo.c: Likewise.
11476 * grub-core/tests/test_blockarg.c: Likewise.
11477 * grub-core/video/video.c: Likewise.
11478 * util/grub-install.in: Likewise.
11479 * util/grub-mkfont.c: Likewise.
11480
b2b149cb
VS
114812012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11482
11483 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11484
c7c080ad
VS
114852012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 11488 Reported by: David Prévot.
c7c080ad 11489
f2e243c0
VS
114902012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11491
11492 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11493 description.
11494
09963c76
VS
114952012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11496
11497 * util/grub-script-check.c (main): Fix a syntax error message which was
11498 unclear.
11499
a50514a8
VS
115002012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11501
11502 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11503
4650daec
VS
115042012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11505
11506 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11507 messages.
11508
115092012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
11510
11511 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11512 without argument.
11513 * util/grub-mount.c (options): Likewise.
11514
bbc5a342
VS
115152012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11516
11517 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11518
ef292a87
VS
115192012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11520
11521 * grub-core/net/http.c: Add TRANSLATORS comments.
11522 * grub-core/normal/cmdline.c: Likewise.
11523 * grub-core/normal/misc.c: Likewise.
11524 * grub-core/partmap/msdos.c: Likewise.
11525 * grub-core/parttool/msdospart.c: Likewise.
11526 * grub-core/script/execute.c: Likewise.
11527 * grub-core/script/main.c: Likewise.
11528 * grub-core/term/terminfo.c: Likewise.
11529 * grub-core/video/bitmap.c: Likewise.
11530 * util/grub-install.in: Likewise.
11531 * util/grub-mkimage.c: Likewise.
11532 * util/grub-mklayout.c: Likewise.
11533 * util/grub-setup.c: Likewise.
11534
0fc19bd0
VS
115352012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11536
11537 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11538 with similar messages in grub-fstest.
11539
d95862ef
VS
115402012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11541
11542 * util/grub-install.in: Unify "option requires an argument" message
11543 with similar messages in other files.
11544 * util/grub-mkconfig.in: Likewise.
11545
b7308f90
VS
115462012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11547
11548 * util/grub-set-default.in: Replace printf with gettext_printf (the
11549 string in in question is already translated from grub-reboot)
11550
559dc587
VS
115512012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11552
11553 * configure.ac: Bump up the version to beta1.
11554
1a11761f
VS
115552012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11556
11557 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11558 case when min_align = 0.
11559
24539abd
VS
115602012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11561
11562 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11563 and fix a case when line_start overflows.
11564
32bd735b
VS
115652012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11566
11567 * util/grub-reboot.in (usage): Mention id posibility.
11568 * util/grub-set-default.in (usage): Likewise.
11569
1a2fd1e6
VS
115702012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11571
11572 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11573 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11574 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11575 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11576 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11577 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11578 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11579
90eeab76
VS
115802012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11581
11582 * grub-core/commands/menuentry.c (options): Remove
11583 GRUB_ARG_OPTION_REPEATABLE.
11584 Reported by: Andreas Vogel
11585
5ad1be82
AV
115862012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11587
11588 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11589
cb055286
HE
115902012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11591
11592 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11593 error.
11594
93b1cd79
VS
115952012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11596
11597 Use sort -V by the idea of Georgi Georgiev.
11598
11599 * util/grub-mkconfig_lib.in (version_sort): New function.
11600 (version_test_numeric): Use version_sort.
11601
0cdc126c
VS
116022012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11603
11604 Use submenus in grub-mkconfig.
11605
11606 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11607 * util/grub-mkconfig_lib.in (grub_quote): New function.
11608 (gettext_printf): Use gettext and not gettext_quoted to fix several
11609 messages.
11610 * util/grub.d/10_hurd.in: Use submenus.
11611 * util/grub.d/10_kfreebsd.in: Likewise.
11612 * util/grub.d/10_linux.in: Likewise.
11613 * util/grub.d/10_netbsd.in: Likewise.
11614 * util/grub.d/20_linux_xen.in: Likewise.
11615 * util/grub.d/30_os-prober.in: Likewise.
11616 * util/grub.d/10_illumos.in: Add missing quoting.
11617 * util/grub.d/10_windows.in: Likewise.
11618
d9bef9bc
VS
116192012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11620
11621 Fix menu title instability bug.
11622
11623 * grub-core/commands/menuentry.c (options): New option --id.
11624 (grub_normal_add_menu_entry): New argument id. All users updated.
11625 (grub_cmd_menuentry): Handle --id.
11626 (grub_menu_init): Accept unknown arguments.
11627 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11628 feature_menuentry_options.
11629 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11630 saved_entry.
11631 (get_entry_number): Match with id as well.
11632 * include/grub/menu.h (grub_menu_entry): New member id.
11633 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11634 * util/grub.d/00_header.in: Define menuentry_id_option.
11635 * util/grub.d/10_hurd.in: Define id.
11636 * util/grub.d/10_illumos.in: Likewise.
11637 * util/grub.d/10_kfreebsd.in: Likewise.
11638 * util/grub.d/10_linux.in: Likewise.
11639 * util/grub.d/10_netbsd.in: Likewise.
11640 * util/grub.d/10_windows.in: Likewise.
11641 * util/grub.d/20_linux_xen.in: Likewise.
11642 * util/grub.d/30_os-prober.in: Likewise.
11643
116442012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
11645
11646 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11647 "scope" with "body".
11648
7c8d0ce7
VS
116492012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11650
11651 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11652 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11653 prot_size and prot_file_size.
11654
49de079b
VS
116552012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11656
11657 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11658 All users updated. If easily=1 require raid-5/-6 to be full.
11659 (is_node_readable): Likewise.
11660 (scan_devices): Scan incomplete but readable LVs at the end.
11661 (grub_diskfilter_memberlist): Pull missing devices.
11662 (insert_array): Skip scanning until device is complete or scan is
11663 done otherwise.
11664 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11665 check.
11666 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11667 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11668
aff05d45
MG
116692012-03-03 Matthew Garrett <mjg@redhat.com>
116702012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11671
11672 Avoid EFI boot services when loading Linux.
11673
11674 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11675 avoid_efi_bootservices. All users updated.
11676 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11677 argument avoid_efi_bootservices. All users updated.
11678 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11679 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11680 align, min_align, relocatable, prefered_address. All users updated.
11681 Allocate avoiding boot services if kernel is relocatable.
11682 (grub_cmd_linux): Check if kernel is relocatable.
11683 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11684 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11685 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11686 avoid_efi_boot_services.
11687 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11688 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11689 (linux_kernel_params): Likewise.
11690
3935dde2
MG
116912012-03-03 Matthew Garrett <mjg@redhat.com>
116922012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11693
11694 Use EDID on EFI.
11695
11696 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11697 datasize_out.
11698 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11699 modes. Set gop_handle.
11700 (grub_video_gop_get_edid): New function.
11701 (grub_gop_get_preferred_mode): Likewise.
11702 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11703 (grub_video_efi_gop_adapter): Set .get_edid.
11704 * include/grub/efi/edid.h: New file.
11705 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11706
32107ec0
VS
117072012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11708
11709 * util/grub-install.in: Load efivars unconditionally.
11710
e70a2c50
VS
117112012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 * po/Rules-piglatin: Change suffix from .po-update-en to
11714 .po-update-en-piglatin.
11715
8f9cace1
VS
117162012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11717
11718 Add a pig farm.
11719
11720 * po/piglatin.sed: New file.
11721 * po/en@piglatin.header: Likewise.
11722 * po/Rules-piglatin: Likewise.
11723 * po/README: Add en@piglatin to autogenerated languages.
11724
8f95d002
VS
117252012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11726
11727 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11728 "Command for ...".
11729 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11730 "Check" since we don't check anything.
11731 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11732 is 64-bit one.
11733 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11734 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11735 (grub_md_sha512_real): Likewise.
11736
805a8dcc
VS
117372012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11738
11739 * grub-core/commands/gptsync.c: Fix typographic quoting.
11740 * grub-core/commands/ieee1275/suspend.c: Likewise.
11741 * grub-core/commands/parttool.c: Likewise.
11742 * grub-core/commands/search_wrap.c: Likewise.
11743 * grub-core/commands/videoinfo.c: Likewise.
11744 * grub-core/gfxmenu/gui_label.c: Likewise.
11745 * grub-core/hello/hello.c: Likewise.
11746 * grub-core/kern/emu/main.c: Likewise.
11747 * grub-core/net/net.c: Likewise.
11748 * grub-core/normal/menu.c: Likewise.
11749 * grub-core/normal/menu_text.c: Likewise.
11750 * grub-core/normal/misc.c: Likewise.
11751 * util/grub-editenv.c: Likewise.
11752 * util/grub-install.in: Likewise.
11753 * util/grub-kbdcomp.in: Likewise.
11754 * util/grub-mkconfig.in: Likewise.
11755 * util/grub-mknetdir.in: Likewise.
11756 * util/grub-mkrescue.in: Likewise.
11757 * util/grub-mkstandalone.in: Likewise.
11758 * util/grub-reboot.in: Likewise.
11759 * util/grub-set-default.in: Likewise.
11760 * util/grub-setup.c: Likewise.
11761 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11762
40211ab8
VS
117632012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11764
11765 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11766 * grub-core/commands/keystatus.c: Likewise.
11767 * grub-core/commands/loadenv.c: Likewise.
11768 * grub-core/commands/probe.c: Likewise.
11769 * grub-core/commands/regexp.c: Likewise.
11770 * grub-core/commands/true.c: Likewise.
11771 * grub-core/commands/videoinfo.c: Likewise.
11772 * grub-core/disk/cryptodisk.c: Likewise.
11773 * grub-core/disk/ldm.c: Likewise.
11774 * grub-core/disk/loopback.c: Likewise.
11775 * grub-core/disk/luks.c: Likewise.
11776 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11777 * grub-core/kern/disk.c: Likewise.
11778 * grub-core/kern/emu/hostdisk.c: Likewise.
11779
0c7d99c7
VS
117802012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11781
11782 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11783 * util/grub-install.in: Add missing quote in the comment.
11784
e7d2559b
VS
117852012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11786
11787 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11788 * grub-core/commands/lsmmap.c: Likewise.
11789 * grub-core/commands/minicmd.c: Likewise.
11790 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11791 * grub-core/commands/regexp.c: Likewise.
11792 * grub-core/gdb/gdb.c: Likewise.
11793 * grub-core/term/gfxterm.c: Likewise.
11794 * util/grub-mkconfig.in: Likewise.
11795 * util/grub-mkfont.c: Likewise.
11796 * util/grub-mklayout.c: Likewise.
11797 * util/grub-mknetdir.in: Likewise.
11798 * util/grub-mkrescue.in: Likewise.
11799 * util/grub.d/30_os-prober.in: Likewise.
11800
49ce9e50
VS
118012012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11802
11803 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11804 with "Direct color" and "Packed" with "Packed pixel".
11805 (grub_cmd_videoinfo): Simplify legend.
11806
e4b791fa
VS
118072012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11808
11809 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11810 absolutely unclear error message.
11811
fd1265cb
VS
118122012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11813
11814 * util/grub-mkstandalone.in: Remove confusing leftover print.
11815
8822a8a0
VS
118162012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11817
11818 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11819 comments.
11820 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11821 (GRUB_MOD_INIT): Likewise.
11822 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11823 VGA mode.
11824 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11825 comments.
11826 * util/grub-install.in (usage): Likewise.
11827 Spell ID in whole letters.
11828 Add missing ending dot.
11829 Quote variables.
11830 * util/grub-reboot.in: Fix capitalisation.
11831 * util/grub-set-default.in: Likewise.
11832
937fd0cc
VS
118332012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11834
11835 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11836 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11837 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11838 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11839 Disable -Werror for -Wdeprecated-declarations.
11840 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11841 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11842 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11843 (grub_util_get_grub_dev): Make luks handling dependent on
11844 HAVE_DEVICE_MAPPER and not __linux__.
11845 (get_win32_path): Fix format security.
11846 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11847 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11848 Don't try grub_find_zpool_from_dir.
11849 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11850 #ifdef-out paresdir.
11851
1bab1ae3
VS
118522012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11853
11854 * util/grub-pe2elf.c (usage): Add missing noreturn.
11855 (write_section_data): Rename name to shname to avoid shadowing.
11856 (write_symbol_table): Rename name to symname to avoid shadowing.
11857 Fix write_reloc_section call.
11858
ef023e42
VS
118592012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11860
11861 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11862 to ensure that it's after the last byte of .text.
11863
48afcb75
VS
118642012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11865
11866 * util/ieee1275/ofpath.c (my_isdigit): New function.
11867 (trailing_digits): Use my_isdigit.
11868 (strip_trailing_digits): Likewise.
11869
88d51eff
VS
118702012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11871
11872 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11873 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11874
17edc2ba
VS
118752012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11876
11877 * grub-core/kern/i386/pc/startup.S: Define __start.
11878
ad5518d7
VS
118792012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11880
11881 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11882 strip already transforms he format.
11883
9e95e1bf
VS
118842012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11885
11886 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11887
9cc3ee5c
VS
118882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11889
11890 * util/grub-install.in: Add missing gettext init.
11891 * util/grub-kbdcomp.in: Likewise.
11892 * util/grub-mkconfig.in: Likewise.
11893 * util/grub-mknetdir.in: Likewise.
11894 * util/grub-mkrescue.in: Likewise.
11895 * util/grub-mkstandalone.in: Likewise.
11896 * util/grub-reboot.in: Likewise.
11897 * util/grub-set-default.in: Likewise.
11898 * util/grub.d/00_header.in: Likewise.
11899 * util/grub.d/10_hurd.in: Likewise.
11900 * util/grub.d/10_windows.in: Likewise.
11901 * util/grub.d/30_os-prober.in: Likewise.
11902 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11903
49e08a06
VS
119042012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11905
11906 * po/Rules-swiss: Fix header comment.
11907
3809cb41
AV
119082012-02-29 Andreas Vogel <anvoit>
11909
11910 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11911 resulted in leak of arguments.
11912
fa6ec573
VS
119132012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11914
11915 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11916 reed_solomon_size const definition instead of computing it since
11917 Apple assembler doesn't support the later.
11918
22899b9c
VS
119192012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11920
11921 * gentpl.py (kernel): Rewrite Apple part.
11922
a132afc3
VS
119232012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11924
11925 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11926
9d742bd4
VS
119272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11928
11929 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11930 ELF section gap.
11931 (load_image): Likewise.
11932
f04a9a21
VS
119332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11934
11935 * configure.ac: Fix a typo in previous commit.
11936
46cf439c
VS
119372012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11938
11939 Don't add -Wl,-N on Apple platform.
11940
11941 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11942 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11943
c4c48c54
VS
119442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11945
11946 * grub-core/Makefile.core.def (lzma_decompress): Use
11947 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11948
31a12124
VS
119492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11950
11951 * grub-core/genmod.sh.in: Rewrite the Apple part.
11952
4f3aa1af
VS
119532012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11954
11955 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11956 comparison.
11957
7bd8b0c7
VS
119582012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11959
11960 * acinclude.m4 (grub_CHECK_PIC): New test.
11961 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11962
97304d7c
VS
119632012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11964
11965 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11966 to avoid the warning.
11967
fb883812
VS
119682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11969
11970 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11971 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11972 after. All users updated.
11973
a121c964
VS
119742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11975
11976 Use the common size routine in hostfs so we can read disks as well.
11977
11978 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11979 (grub_util_get_fd_size): ... this. Return size in bytes.
11980 All users updated.
11981 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11982 grub_util_get_fd_size.
11983
c66d6410
VS
119842012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11985
11986 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11987 Add blocksize retrieval.
11988
dfc8aeb0
VS
119892012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11990
11991 * configure.ac: Restore CFLAGS after efiemu check.
11992
403e25a5
VS
119932012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11994
11995 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11996 Apple bug.
11997
382775d1
VS
119982012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11999
12000 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12001
6fd4e6e4
VS
120022012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12003
12004 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12005 (grub_cmd_halt): Likewise.
12006
bea359d6
VS
120072012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12008
12009 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12010 for local arithmetics.
12011 Break %sp init into 2 instructions.
12012 Add 0 byte at the end.
12013
32eb6ee1
VS
120142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12015
12016 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12017 before loops.
12018
e8377389
VS
120192012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12020
12021 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12022 for context.
12023
8cb17de7
VS
120242012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12025
12026 * grub-core/disk/ldm.c (make_vg): Init part.name.
12027 (grub_ldm_detect): Silence spurious warning.
12028 (grub_util_is_ldm): Likewise.
12029
595717e6
VS
120302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12033 sane value to avoid a spurious warning.
12034
c4b7e588
VS
120352012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12036
12037 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12038 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12039
59824957
VS
120402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12041
12042 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12043 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12044
70115b99
VS
120452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12046
12047 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12048 hardcoding the relevant info.
12049
56733740
VS
120502012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12051
12052 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12053 missing const qualifiers.
12054 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12055
43481481
VS
120562012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12057
12058 * util/getroot.c [__APPLE__]: Add missing includes.
12059 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12060
3cb38f01
VS
120612012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12062
12063 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12064
d9dbf11e
VS
120652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12066
12067 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12068 avoid conflicts.
12069
0c42a45d
VS
120702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12071
12072 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12073
46c34eb0
VS
120742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12075
12076 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12077 and grub_file_close call.
12078
99ce1597
VS
120792012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12080
12081 Add LZSS Mach-O support (needed for new xnu kernelcache).
12082
12083 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12084 * grub-core/loader/lzss.c: New file.
12085 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12086 on Mach-O open failure.
12087 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12088 Don't free cmdsXX in uncompressedXX is set.
12089 (grub_macho_file): Init new fields.
12090 New argument is_64bit. All users updated.
12091 Handle compressed. Error out if no suitable architecture is found.
12092 Don't close file.
12093 (grub_macho_open): New argument is_64bit. All users updated.
12094 * grub-core/loader/macho32.c: Add defines for new fields.
12095 * grub-core/loader/macho64.c: Likewise.
12096 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12097 (grub_macho_parse): Handle compressed.
12098 Defer actual processing if compressed.
12099 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12100 "filename". All users updated.
12101 (grub_macho_size): New argument "filename". All users updated.
12102 (grub_macho_get_entry_point): Likewise.
12103 (grub_macho_load): Handle compressed.
12104 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12105 (GRUB_MACHO_LZSS_OFFSET): New define.
12106 (grub_decompress_lzss): New proto.
12107 * include/grub/machoload.h (grub_macho_file): New fields to handle
12108 compressed.
12109 (grub_macho_contains_macho64): Remove proto.
12110 (grub_macho_contains_macho32): Likewise.
12111 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12112
ebd17d6f
VS
121132012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12114
12115 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12116
2702b4e4
VS
121172012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12118
12119 Fix make dist.
12120
12121 * Makefile.am (starfield_theme_files): New var.
12122 (starfield_DATA): Use starfield_theme_files.
12123 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12124 Add bootcheck-related files.
12125 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12126 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12127 and font_char_metrics.txt.
12128 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12129 (setjmp): Add lib/ia64/longjmp.S.
12130 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12131 * po/POTFILES.in: Regenerate.
12132 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12133 DISTFILES.common.extra1.
12134 * util/devicemap.c: Removed.
12135 * grub-core/lib/i386/relocator_backward.S: Likewise.
12136 * util/import_gcry.py: Remove unused files. Add extra_dist for
12137 ChangeLog.
12138
cf1adfdf
VS
121392012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12140
12141 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12142 grub_gettext_delete_list before changing grub_gettext_max to avoid
12143 running out of array bounds.
12144
121452012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
12146
12147 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12148 grub_vga_text_init/grub_vga_text_fini.
12149
cf1adfdf 121502012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
12151
12152 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12153
541d92e9
VS
121542012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12155
12156 * configure.ac: Bump to 2.00~beta0.
12157
7931dddf
VS
121582012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12159
12160 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12161 missing initialisation.
12162
f1b16fa3
VS
121632012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12164
12165 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12166
83ddae23
VS
121672012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12168
12169 Support v2 xnu boot arguments.
12170
12171 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12172 New argument fsbfreq_out.
12173 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12174 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12175 be used.
12176 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12177 darwin_version.
12178 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12179 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12180 (grub_xnu_boot_params): Rename to ...
12181 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12182 (grub_xnu_boot_params_v2): New struct.
12183
dc693fe6
VS
121842012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12185
12186 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12187 zeroing of CRC field before computing CRC.
12188
5a6e39c2
VS
121892012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12190
12191 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12192 Change order of allocations to decrease fragmentation.
12193
6c21f5d7
VS
121942012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12195
12196 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12197
cfe456dc
CW
121982012-02-27 Colin Watson <cjwatson@ubuntu.com>
12199
12200 Use write-combining MTRR to speed up video with buggy BIOSes.
12201
12202 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12203 (cpuid): New define.
12204 (rdmsr): Likewise.
12205 (wrmsr): Likewise.
12206 (mtrr_base): Likewise.
12207 (mtrr_mask): Likewise.
12208 (grub_vbe_enable_mtrr_entry): New function.
12209 (grub_vbe_enable_mtrr): Likewise.
12210 (grub_vbe_disable_mtrr): Likewise.
12211 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12212 control off to BIOS.
12213 (grub_video_vbe_init): Fill mtrr.
12214 (grub_video_vbe_fini): Disable mtrr.
12215 (grub_video_vbe_get_info_and_fini): Likewise.
12216 (grub_video_vbe_setup): Enable mtrr.
12217
e3c78337
CW
122182012-02-27 Colin Watson <cjwatson@ubuntu.com>
12219
12220 * include/grub/partition.h (grub_partition_map): Change prototype of
12221 embed to take a maximum value for nsectors.
12222 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12223 * include/grub/fs.h (grub_fs): Likewise.
12224 * grub-core/partmap/msdos.c (embed_signatures): New array.
12225 (pc_partition_map_embed): Check for and avoid sectors matching any
12226 of the signatures in embed_signatures, up to max_nsectors.
12227 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12228 returned sector map to max_nsectors.
12229 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12230 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12231 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12232 * util/grub-setup.c (setup): Allow for the embedding area being
12233 split into multiple blocklists. Tell dest_partmap->embed the
12234 maximum number of sectors we care about.
12235
122362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12237
12238 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12239 Specify blocklist_install and reserver_first_sector for all fs.
12240 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12241 blocklists.
12242
984b973f
VS
122432012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12244
12245 * util/grub-install.in: Clarify strings.
12246 Fix source dir check.
12247
f122e0d6
RL
122482012-02-27 Richard Laager <rlaager@wiktel.com>
12249
12250 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12251 "zfs" and "fuse.zfs" as synonyms.
12252
071114bb
VS
122532012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12254
12255 * configure.ac: Put platform and target_cpu substitutions back since
12256 they are used for directories.
12257
817e6abc
RL
122582012-02-27 Richard Laager <rlaager@wiktel.com>
122592012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12260
12261 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12262 * util/grub.d/20_linux_xen.in: Likewise.
12263
897b7419
RL
122642012-02-27 Richard Laager <rlaager@wiktel.com>
12265
12266 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12267 with full paths.
12268
a414bd15
RL
122692012-02-27 Richard Laager <rlaager@wiktel.com>
12270
12271 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12272 unescape.
12273
30ac48c4
VS
122742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12275
12276 Don't use insecure popen in getroot.
12277
12278 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12279 (exec_pipe): ... here.
12280 (find_root_devices_from_poolname): Use exec_pipe.
12281
53f13848
VS
122822012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12283
12284 Remove platform and target_cpu replacement.
12285
12286 * configure.ac: Remove platform and target_cpu substitutions.
12287 * tests/util/grub-shell.in: Use modinfo.
12288 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12289 explicitly.
12290
90cb2803
VS
122912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12292
12293 Autodetect platform in grub-install but allow override.
12294
12295 * util/grub-install.in: Autodetect platform. Support --target and
12296 --directory. Read platform from modinfo.sh.
12297
b9136427
VS
122982012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12299
12300 Support btrfs multi-volume probe.
12301
12302 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12303 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12304 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12305 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12306 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12307 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12308 grub_find_root_devices_from_btrfs if on btrfs.
12309
c36e5cd1
VS
123102012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12311
12312 Remove any awareness of *.c util files about target.
12313
12314 * Makefile.util.def (grub-setup): Split to ...
12315 (grub-bios-setup): ... and this.
12316 (grub-sparc64-setup): ... and this.
12317 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12318 * docs/man/grub-setup.h2m: Split into ...
12319 * docs/man/grub-sparc64-setup.h2m: ... this.
12320 * docs/man/grub-bios-setup.h2m: ... and this.
12321 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12322 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12323 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12324 (grub_target_addr_t): Remove.
12325 (grub_target_size_t): Remove.
12326 (grub_target_ssize_t): Remove.
12327 * util/grub-install.in: Use new grub-*-setup.
12328 * util/grub-mkimagexx.c (Elf_Word): New define.
12329 (Elf_Half): Likewise.
12330 (Elf_Section): Likewise.
12331 (ELF_ST_TYPE): Likewise.
12332 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12333 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12334
584b2f8a
VS
123352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12336
12337 Replace grub_target_addr with more appropriate types.
12338
12339 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12340 grub_target_addr with grub_addr.
12341 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12342 grub_target_addr with grub_port.
12343 (grub_cmd_write): Likewise.
12344 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12345 grub_target_addr with grub_addr.
12346 (grub_cmd_write): Likewise.
12347 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12348
5a0dc6fb
VS
123492012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12350
12351 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12352 const qualifier for vendor_guid.
12353
786aff6e
VS
123542012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12355
12356 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12357 const qualifier.
12358 (efiemu_memequal): Likewise.
12359 (find_variable): Likewise.
12360
49017b17
VS
123612012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12362
12363 Fix missing console prototype on qemu-mips.
12364
12365 * include/grub/mips/qemu_mips/console.h: New file.
12366
c5988629
MG
123672012-02-27 Matthew Garrett <mjg@redhat.com>
123682012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12369
12370 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12371 * include/grub/efi/efi.h: Likewise.
12372 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12373 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12374 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12375 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12376 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12377 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12378
e33f8d69
MG
123792012-02-27 Matthew Garrett <mjg@redhat.com>
12380
12381 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12382
fb312cd9
VS
123832012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12384
12385 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12386 error.
12387
7134247c
VS
123882012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12389
12390 * configure.ac: Remove inappropriate use of program_transform_name
12391 on grubdir and bootdir but allow explicit specification of those
12392 variables.
12393
6a313124
VS
123942012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12395
12396 * util/grub-mknetdir.in (grub_prefix): Removed.
12397 (subdir): Use @bootdirname@ and @grubdirname@.
12398
2311c5ca
VS
123992012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12400
12401 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12402
7d5d60f7
VS
124032012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12404
12405 * po/POTFILES.in: Regenerated.
12406
8151bc82
VS
124072012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12408
12409 Remove improper use of program_transform_name on pkglibrootdir.
12410
12411 * configure.ac (pkglibrootdir): Removed.
12412 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12413 * util/grub-mkimage.c: Likewise.
12414
b4a6a533
VS
124152012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12418 warning.
12419
668f304f
VS
124202012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12421
12422 * util/grub-install.in: Use file identifier if no UUID is available
12423 or user explicitly prompted for it.
12424
665f2341
NP
124252012-02-27 Navdeep Parhar <nparhar@gmail.com>
12426
12427 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12428 (freebsd_get_zfs): New function.
12429 (grub_freebsd_boot): Pass zfs UUID.
12430 (grub_cmd_freebsd): Set zfs UUID.
12431
8151bc82 124322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
12433
12434 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12435 pkglibrootdir.
12436
e4c498a1
MG
124372012-02-27 Mike Gilbert <floppym@gentoo.org>
12438
12439 Add configure flag to control libzfs integration.
12440
12441 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12442
1e9a9a3f
VS
124432012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12444
12445 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12446 device.
12447 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12448 small devices.
12449
036985b8
VS
124502012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12451
12452 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12453 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12454 be used on non-modules.
12455
12456 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12457 Rename to grub_boot_init.
12458 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12459 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12460 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12461 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12462 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12463 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12464 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12465 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12466 includes.
12467 (grub_machine_init): Remove empty inits.
12468 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12469 includes.
12470 (grub_machine_init): Remove empty inits.
12471 * grub-core/term/arc/console.c: Remove explicit proto.
12472 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12473 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12474 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12475 grub_at_keyboard_fini.
12476 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12477 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12478 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12479 grub_gfxterm_fini.
12480 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12481 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12482 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12483 grub_vgatext_fini.
12484 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12485 * grub-core/term/serial.c (GRUB_MOD_INIT)
12486 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12487 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12488 grub_serial_fini.
12489 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12490 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12491 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12492 grub_terminfo_fini.
12493 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12494 (GRUB_MOD_FINI): Likewise.
12495 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12496 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12497 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12498 grub_video_radeon_fuloong2e_fini.
12499 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12500 [LOONGSON]: Rename to grub_video_sis315pro_init.
12501 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12502 grub_video_sis315pro_fini.
12503 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12504 [LOONGSON]: Rename to grub_video_sm712_init.
12505 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12506 grub_video_sm712_fini.
12507 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12508 (grub_at_keyboard_fini): Likewise.
12509 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12510 Don't declare grub_{modname}_init.
12511 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12512 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12513 New proto.
12514 (grub_keylayouts_fini) [!EMU]: Likewise.
12515 * include/grub/serial.h (grub_serial_init) [!EMU]:
12516 New proto.
12517 (grub_serial_fini) [!EMU]: Likewise.
12518 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12519 New proto.
12520 (grub_terminfo_fini) [!EMU]: Likewise.
12521 * include/grub/video.h (grub_font_init) [!EMU]:
12522 New proto.
12523 (grub_font_fini) [!EMU]: Likewise.
12524 (grub_gfxterm_init) [!EMU]: Likewise.
12525 (grub_gfxterm_fini) [!EMU]: Likewise.
12526 (grub_video_sm712_init) [!EMU]: Likewise.
12527 (grub_video_sm712_fini) [!EMU]: Likewise.
12528 (grub_video_sis315pro_init) [!EMU]: Likewise.
12529 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12530 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12531 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12532
d5534665
VS
125332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12534
12535 Make nand a prefix for nand devices.
12536
12537 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12538
10133b5f
VS
125392012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12540
12541 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12542 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12543
8e307a62
VS
125442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12545
12546 * include/grub/env.h (grub_env_find): Remove prototype.
12547 * grub-core/kern/env.c (grub_env_find): Make static.
12548 (grub_env_set): Remove useless set.
12549
a4c65f34
VS
125502012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12551
12552 * grub-core/kern/i386/realmode.S: Remove useless align.
12553
d87893d5
VS
125542012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12555
12556 * include/grub/dl.h (grub_dl_load_file): Don't export.
12557
50159add
VS
125582012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12559
12560 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12561 grub_dprintf.
12562
b2582b84
VS
125632012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12564
12565 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12566 grub_errors.
12567 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12568 not reloading whole superblock but only the part which is really needed.
12569 Remove useless grub_errors.
12570 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12571 grub_errors.
12572
e2a83395
VS
125732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12574
12575 Don't export grub_get_rtc.
12576
12577 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12578 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12579
e7d2a906
VS
125802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12581
12582 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12583
6cf1363b
VS
125842012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12585
12586 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 12587 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 12588
eece3349
VS
125892012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12590
12591 Remove prio_list.
12592
12593 * include/grub/list.h (grub_prio_list): Removed.
12594 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12595 GRUB_COMMAND_PRIO_MASK.
12596 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12597 GRUB_COMMAND_FLAG_ACTIVE.
12598 (grub_prio_list_insert): Removed.
12599 (grub_prio_list_remove): Likewise.
12600 (GRUB_AS_PRIO_LIST): Likewise.
12601 (GRUB_AS_PRIO_LIST_P): Likewise.
12602 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12603 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12604 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12605 * grub-core/kern/command.c (grub_register_command_prio): Inline
12606 the prio_list code.
12607 (grub_unregister_command): Likewise.
12608
94f064b4
VS
126092012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12610
12611 Fix interrupt mixup from previous commit.
12612
12613 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12614 (grub_realidt): New var.
12615 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12616 Load idt.
12617 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12618 New declaration.
12619 (grub_relocator16_boot): Set grub_relocator16_idt.
12620 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12621 (LOCAL(realidt)): ... this.
12622 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12623 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12624 (grub_realidt): New variable.
12625
27317084
VS
126262012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12627
12628 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12629 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12630 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12631 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12632 Gettextize.
12633 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12634 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12635 * po/POTFILES.in: Regenerate.
12636
47b40053
VS
126372012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12638
12639 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12640 errors.
12641
2b343101
VS
126422012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12643
12644 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12645 \0.
12646 (add_length): Likewise.
12647
ff27c3dd
LK
126482012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
126492012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12650
12651 GDB serial and backtrace support.
12652
12653 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12654 (prot_to_real): Likewise.
12655 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12656 * grub-core/Makefile.core.def (backtrace): New module.
12657 (gdb): Likewise.
12658 * grub-core/gdb/cstub.c: New file.
12659 * grub-core/gdb/gdb.c: Likewise.
12660 * grub-core/gdb/i386/idt.c: Likewise.
12661 * grub-core/gdb/i386/machdep.S: Likewise.
12662 * grub-core/gdb/i386/signal.c: Likewise.
12663 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 12664 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
12665 * include/grub/backtrace.h: Likewise.
12666 * include/grub/gdb.h: Likewise.
12667 * include/grub/i386/gdb.h: Likewise.
12668
126692012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
12670
12671 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12672 New function.
12673 (add_length): Likewise.
12674 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12675 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12676 proto.
12677 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12678 __argp_get_display_len.
12679
ff27c3dd 126802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
12681
12682 $"..." support in scripts.
12683
12684 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12685 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12686 * grub-core/script/yylex.l: Likewise.
12687 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12688 value.
12689
ff27c3dd 126902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
12691
12692 * gentpl.py: Remove obsolete pkglib_DATA handling.
12693
ff27c3dd 126942012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
12695
12696 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12697 mailing list.
12698
12699 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12700 * util/grub-kbdcomp.in: Likewise.
12701 * util/grub-mkconfig.in: Likewise.
12702 * util/grub-mkconfig_lib.in: Likewise.
12703 * util/grub-mknetdir.in: Likewise.
12704 * util/grub-mkrescue.in: Likewise.
12705 * util/grub-mkstandalone.in: Likewise.
12706 * util/grub-reboot.in: Likewise.
12707 * util/grub-set-default.in: Likewise.
12708 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12709
ff27c3dd 127102012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
12711
12712 Remove GRUB_PREFIX.
12713
12714 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12715 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12716 used for backward compatibility.
12717
ff27c3dd 127182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
12719
12720 Add new all_video module.
12721
12722 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12723 * grub-core/Makefile.core.def (all_video): New module.
12724 * grub-core/genmoddep.awk: Generate dependency of all_video from
12725 video.lst.
12726 * grub-core/lib/fake_module.c: New file.
12727 * grub-core/normal/main.c (features): Add feature_all_video_module.
12728 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12729 don't do explicit search again.
47454da5 12730 insmod all_video in load_video if available.
22c7ce85 12731
ff27c3dd 127322012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
12733
12734 Another round of string clarification and adding TRANSLATORS comments.
12735
ff27c3dd 127362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
12737
12738 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12739
ff27c3dd 127402012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
12741
12742 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12743 to grub_ssize_t.
12744 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12745 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12746
ff27c3dd 127472012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
12748
12749 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12750 trailing newline implicitly. All users updated.
12751
ff27c3dd 127522012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
12753
12754 Implement serial on IEEE1275 and EFI.
12755
12756 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12757 on emu. Mention arc and emu as the only platforms without serial
12758 support.
12759 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12760 ieee1275 platforms.
12761 * grub-core/term/efi/serial.c: New file.
12762 * grub-core/term/ieee1275/serial.c: Likewise.
12763 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12764 specification if no ns8250 driver is available.
12765 (grub_cmd_serial): Likewise.
12766 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12767 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12768 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12769 (grub_efi_parity_type_t): New type.
12770 (grub_efi_stop_bits_t): Likewise.
12771 (grub_efi_serial_io_interface): New struct.
12772 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12773 available for all interfaces.
12774 Add EFI and IEEE1275 fields.
12775 (grub_ofserial_init): New proto.
12776 (grub_efiserial_init): Likeiwse.
12777 * util/grub.d/00_header.in: Don't check for the presence of serial
12778 module.
12779
ff27c3dd 127802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
12781
12782 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12783 name as if it was an alias.
12784
114076ef
VS
127852012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12786
12787 * grub-core/commands/lsacpi.c (options): Fix typo.
12788
6a656b0e
VS
127892012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12790
12791 Convert grub-emu to argp.
12792
12793 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12794 emu.
12795 * util/argp_common.c: Rename to ...
12796 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12797 Add missing includes.
12798 * grub-core/kern/emu/main.c: Convert to argp.
12799 * po/POTFILES.in: Regenerate.
12800 * util/grub-install.in (usage): Make first letter lowcase in messages
12801 for uniformity.
12802 * util/grub-setup.c (options): Likewise.
12803
1e3f8ae8
VS
128042012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12805
12806 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12807 Put back accidently commented-out code.
12808
ed167a80
VS
128092012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12810
12811 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12812 loop check using Brent algorithm.
12813 (grub_hfsplus_btree_search): Likewise.
12814
6753c0ec
VS
128152012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12816
12817 * util/grub-install.in: Fix usage of wrong device for PreP install.
12818
4e27343f
VS
128192012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12820
12821 * conf/Makefile.common (CFLAGS_GNULIB): Add
12822 -Wno-unsafe-loop-optimizations.
12823 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12824 on tools.
12825 * grub-core/commands/legacycfg.c: Add pragma to skip
12826 -Wunsafe-loop-optimizations.
12827 (check_password_md5_real): Fix loop counter type.
12828 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12829 reading.
12830 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12831 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12832 loop condition.
12833 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12834 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12835 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12836 condition.
12837 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12838 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12839 avoid possible infinite loops.
12840 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12841 and -Wunsafe-loop-optimizations.
12842 * grub-core/script/yylex.l: Likewise.
12843 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12844 (print_glyphs): Avoid infinite loops.
12845 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12846
697f18b0
GS
128472012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12848
12849 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12850 to avoid infinite loop.
12851 (disp_acpi_rsdt_table): Likewise.
12852
274416e8
VS
128532012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12854
12855 * grub-core/font/font.c (grub_font_load): Add support for default
12856 path for fonts ($prefix/fonts).
12857 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12858 for checking if string is a path.
12859 * grub-core/normal/main.c (features): Add feature_default_font_path.
12860 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12861 * util/grub.d/00_header.in: Use default directory if possible.
12862 * util/grub-install.in: Install unicode.pf2.
12863
b3e08622
VS
128642012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12865
12866 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12867 * po/Rules-swiss: New file.
12868 * po/swiss.sed: Likewise.
12869
fe42ce09
VS
128702012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12871
12872 * grub-core/fs/btrfs.c (find_device): Fix typos.
12873 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12874 * util/grub-mkrelpath.c (argp_parser): Likewise.
12875 Reported by: Yuri Chornoivan.
12876
72f1d065
DO
128772012-02-23 Dalet Omega <daletomega@gmail.com>
12878
12879 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12880 for usual informative messages.
12881
c5884973
DO
128822012-02-23 Dalet Omega <daletomega@gmail.com>
12883
12884 Starfield theme.
12885
12886 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12887 * conf/Makefile.common: Define starfielddir.
12888 * configure.ac: Configure starfield.
12889 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12890 * themes/starfield/README: Likewise.
12891 * themes/starfield/blob_w.png: Likewise.
12892 * themes/starfield/boot_menu_c.png: Likewise.
12893 * themes/starfield/boot_menu_e.png: Likewise.
12894 * themes/starfield/boot_menu_n.png: Likewise.
12895 * themes/starfield/boot_menu_ne.png: Likewise.
12896 * themes/starfield/boot_menu_nw.png: Likewise.
12897 * themes/starfield/boot_menu_s.png: Likewise.
12898 * themes/starfield/boot_menu_se.png: Likewise.
12899 * themes/starfield/boot_menu_sw.png: Likewise.
12900 * themes/starfield/boot_menu_w.png: Likewise.
12901 * themes/starfield/slider_c.png: Likewise.
12902 * themes/starfield/slider_n.png: Likewise.
12903 * themes/starfield/slider_s.png: Likewise.
12904 * themes/starfield/src/blob_nw.xcf: Likewise.
12905 * themes/starfield/src/bootmenu/: Likewise.
12906 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12907 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12908 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12909 * themes/starfield/src/slider_c.xcf: Likewise.
12910 * themes/starfield/src/slider_n.xcf: Likewise.
12911 * themes/starfield/src/slider_s.xcf: Likewise.
12912 * themes/starfield/src/terminalbox/: Likewise.
12913 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12914 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12915 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12916 * themes/starfield/starfield.png: Likewise.
12917 * themes/starfield/terminal_box_c.png: Likewise.
12918 * themes/starfield/terminal_box_e.png: Likewise.
12919 * themes/starfield/terminal_box_n.png: Likewise.
12920 * themes/starfield/terminal_box_ne.png: Likewise.
12921 * themes/starfield/terminal_box_nw.png: Likewise.
12922 * themes/starfield/terminal_box_s.png: Likewise.
12923 * themes/starfield/terminal_box_se.png: Likewise.
12924 * themes/starfield/terminal_box_sw.png: Likewise.
12925 * themes/starfield/terminal_box_w.png: Likewise.
12926 * themes/starfield/theme.txt: Likewise.
12927
17d73325
VS
129282012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12929
12930 * util/grub.d/00_header.in: Add missing export theme.
12931
dbebaf92
VS
129322012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12935 already included.
12936 Reported by: Eren D.
12937
3d68bffb
VS
129382012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12939
12940 * conf/Makefile.common (grubdatadir): Removed.
12941 (Makefile.am): Move eveything grubdata to pkgdata.
12942
4b59234d
VS
129432012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12944
12945 * grub-core/commands/acpihalt.c (get_sleep_type):
12946 Remove unused variable.
12947
463dcadc
VS
129482012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12949
12950 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12951 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12952 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12953 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12954 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12955 i18n with gettext no-op.
12956 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12957 GRUB_ACPI_OPCODE_STRING_CONST.
12958 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12959 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12960
e5b90c82
VS
129612012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12962
12963 * po/POTFILES.in: Regenerate.
12964
2a704ca9
VS
129652012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12966
12967 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12968 -Wno-error=missing-noreturn.
12969
84f9d341
VS
129702012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12971
12972 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12973 condition to avoid possibly infinite loops.
12974 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12975 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12976
d46683f9
VS
129772012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12978
12979 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12980 condition to avoid possibly infinite loops.
12981
c44866b2
VS
129822012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12983
12984 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12985 on show_error.
12986
96790539
VS
129872012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12988
12989 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12990
1ba7e295
VS
129912012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12994
21ffe8f1
VS
129952012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12996
12997 * util/bin2h.c (usage): Add missing attribute noreturn.
12998
0ccb6b3c
VS
129992012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13000
13001 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13002 if the size isn't divisible by 512.
13003
b00d7fb6
VS
130042012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13005
13006 Make list_push and list_remove functions rather than inline functions
13007 to decrease size and avoid aliasing violations.
13008
13009 * include/grub/list.h (grub_list_push): Move to ...
13010 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13011 * include/grub/list.h (grub_list_remove): Move to ...
13012 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13013
9d369087
VS
130142012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13015
13016 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13017 and -Wunused-result.
13018
af0250d9
VS
130192012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13020
13021 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13022 Reported by: Seth Goldberg
13023
aad32b14
VS
130242012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13025
13026 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13027
ac96441c
ST
130282012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13029
13030 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13031 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13032 command line.
13033 * docs/grub.texi (Simple configuration): Document
13034 GRUB_CMDLINE_GNUMACH.
13035
130362012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
13037
13038 * conf/Makefile.common (platform_SCRIPTS): New variable.
13039 (platform_PROGRAMS): Likewise.
13040 * gentpl.py: Mark *,module and *.image for install.
13041 * grub-core/gdb_grub.in: Add a notice of expected environment.
13042 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13043 (gmodule.pl): Likewise.
13044
ac96441c 130452012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
13046
13047 Replace grub_checkkey with grub_getkey_noblock.
13048
13049 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13050 (grub_getkey_noblock): ... this. All users updated.
13051
ac96441c 130522012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
13053
13054 * grub-core/kern/emu/console.c: Move to ...
13055 * grub-core/term/emu/console.c: ...here.
13056 (grub_ncurses_getkey): Fix return value if no key is detected.
13057
e51b5666
VS
130582012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13059
13060 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13061 (grub_unit_test_fini): Likewise.
13062 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13063
130642012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13065
13066 * include/grub/test.h (GRUB_UNIT_TEST)
13067
d9a62292
VS
130682012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13069
13070 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13071 Better error handling.
13072 (grub_script_return): Likewise.
13073 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13074
77c9182f
VS
130752012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13076
13077 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13078 rimplicit redifinition.
13079
edb13cf9
VS
130802012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13081
13082 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13083 GRUB.
13084
a9e9dc7c
VS
130852012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13086
13087 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13088 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13089 prompt here.
13090
b4ba8e02
VS
130912012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13092
13093 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13094 as GRUB_ERR_BUG. Don't malloc if no device is available.
13095
dded5540
VS
130962012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13097
13098 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13099 Mark calling with invalid term as GRUB_ERR_BUG.
13100
0cf69874
VS
131012012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13102
13103 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13104 packets rather than raising an error.
13105
59bfe502
VS
131062012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13107
13108 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13109 in if.
13110
db5fc596
VS
131112012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13112
13113 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13114 diagnostic to dprintf.
13115 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13116
e4b7f404
VS
131172012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13118
13119 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13120 device name.
13121
e7b02f9e
VS
131222012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13123
13124 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13125 (grub_ntfs_iterate_dir): Likewise.
13126
0331e102
VS
131272012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13128
13129 Efiemu stylistic fixes and gettext.
13130
13131 * grub-core/efiemu/i386/loadcore32.c
13132 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13133 * grub-core/efiemu/i386/loadcore64.c
13134 (grub_arch_efiemu_relocate_symbols64): Likewise.
13135 * grub-core/efiemu/i386/pc/cfgtables.c
13136 (grub_machine_efiemu_init_tables): Likewise.
13137 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13138 (grub_efiemu_loadcore_initXX): Add a filename argument.
13139 All users updated.
13140 Improved error message.
13141 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13142 Add a filename argument.
13143 All users updated.
13144 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13145 Reclassify double relocation as GRUB_ERR_BUG.
13146
306fc074
VS
131472012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13148
13149 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13150 handling.
13151
794d8ef2
VS
131522012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13153
13154 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13155 on partition.
13156
131572012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
13158
13159 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13160
794d8ef2 131612012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
13162
13163 Improve string. Gettextize.
13164
78dde88e
VS
131652012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13166
13167 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13168 utils.
13169 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13170
4786a90f
VS
131712012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13172
13173 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13174 [GRUB_UTIL]: New function.
13175 (insert_array) [GRUB_UTIL]: Store partmaps.
13176 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13177 partmaps.
13178 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13179 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13180 (probe_abstraction): Print diskfilter and not raid.
13181 Reported by: Lennart Sorensen
13182
0b6225bd
VS
131832012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13184
13185 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13186 * util/grub-mkimagexx.c (MASK3): New define.
13187 (add_value_to_slot_20b): Use MASK3.
13188 (add_value_to_slot_21): Likewise.
13189 (relocate_addresses): Fix format specification.
13190 (load_image): Explicitly init symtab_section.
13191
b055f8f6
VS
131922012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13193
13194 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13195 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13196
b77c2fb7
VS
131972012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13198
13199 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13200 on powerpc.
13201 Reported by: Lennart Sorensen
13202
e3ec28ab
VS
132032012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13204
13205 * gentpl.py: Add missing license header.
13206 * docs/grub.texi: Update copyright year.
13207
c8d9ead6
GS
132082012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13209
13210 Source grub-mkconfig_lib from the build directory at build time.
13211 Suggested by: Vladimir Serbinenko.
13212
13213 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13214 * util/grub-install.in: Define pkgdatadir if not already set, and source
13215 grub-mkconfig_lib from there.
13216 * util/grub-kbdcomp.in: Likewise.
13217 * util/grub-mkconfig.in: Likewise.
13218 * util/grub-mknetdir.in: Likewise.
13219 * util/grub-mkrescue.in: Likewise.
13220 * util/grub-mkstandalone.in: Likewise.
13221 * util/grub-reboot.in: Likewise.
13222 * util/grub-set-default.in: Likewise.
13223 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13224
ebcecdf1
VS
132252012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13226
13227 Increase warning level.
13228
13229 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13230 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13231 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13232 (TARGET_CFLAGS): Likewise.
13233 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13234 * grub-core/Makefile.core.def (decompressor_xz): Add
13235 -Wno-unreachable-code.
13236 (normal): Add -Wno-redundant-decls.
13237 (xzio): Add -Wno-unreachable-code.
13238 (lzopio): Add -Wno-redundant-decls -Wno-error.
13239 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13240 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13241 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13242 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13243 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13244 * grub-core/kern/i386/coreboot/init.c: Add exception to
13245 -Wsuggest-attribute=noreturn.
13246 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13247 * grub-core/kern/ia64/dl_helper.c: Likewise.
13248 * grub-core/kern/mips/dl.c: Likewise.
13249 * grub-core/kern/sparc64/dl.c: Likewise.
13250 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13251 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13252 (memcmp): Likewise.
13253 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13254 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13255 * grub-core/loader/mips/linux.c: Likewise.
13256 * grub-core/loader/multiboot_elfxx.c: Likewise.
13257 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13258 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13259 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13260 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13261 fixme.
13262 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13263 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13264 Fix prototype.
13265
37bb97fe
VS
132662012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13269 address.
13270
29a3550b
VS
132712012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13272
13273 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13274 Avoid improper use of strings.
13275 (grub_cmd_legacy_initrdnounzip): Likewise.
13276
dfdffd0d
VS
132772012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13278
13279 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13280 attribute.
13281 (grub_util_info): Likewise.
13282 (grub_util_error): Likewise.
13283
102fae4a
VS
132842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13285
13286 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13287 * util/grub-fstest.c (fstest): Likewise.
13288
7e94d044
VS
132892012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13290
13291 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13292 (grub_md_sha512_real): Likewise.
13293 (grub_util_get_geli_uuid): Likewise.
13294 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13295 (grub_util_biosdisk_open): Fix format specification.
13296 Respect format security.
13297 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13298 (xrealloc): Likewise.
13299 (xasprintf): Likewise.
13300
5ebd9769
VS
133012012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13302
13303 * util/import_gcry.py: Include grub/crypto.h in init.c.
13304
495fc8c1
VS
133052012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13306
13307 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13308 (generate_image): Make prefix a const char *.
13309 Fix format specifications. Respect format security.
13310 Avoid void * arithmetics.
13311 Avoid shadowing.
13312 (argp_parser): Remove unused variable. Respect format security.
13313 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13314 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13315 (count_funcs): Remove unused variable.
13316 (relocate_addresses): Fix format specification.
13317 Disable x86-64 with elf32. Remove unused variables.
13318 (add_fixup_entry): Avoid shadowing.
13319 (make_reloc_section): Fix format specification.
13320 Use assert.
13321 (locate_sections): Fix format specifications.
13322 (load_image): Avoid shadowing.
13323
043c2ea3
VS
133242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13325
13326 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13327 Fix format specifications. Respect format security.
13328 Don't translate already translated grub_errmsg.
13329 (argp_parser): Remove unused variable
13330
3ec65a81
VS
133312012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13332
13333 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13334
a4d9fe4a
VS
133352012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13336
13337 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13338 (main): Likewise. Use xmalloc. Respect format security.
13339
15b81d49
VS
133402012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13341
13342 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13343 a const char *.
13344 (argp_parser): Remove unused variable.
13345
31731fc0
VS
133462012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13347
13348 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13349 (add_pixel): Make static.
13350 (add_font): Likewise.
13351 (write_string_section): Make name and str a const char *.
13352 (write_be16_section): Make name a const char *.
13353 (print_glyphs): Make static.
13354 (write_font_ascii_bitmap): Likewise.
13355 (write_font_width_spec): Likewise.
13356 (write_font_pf2): Likewise.
13357 (argp_parser): Remove unused variable.
13358 Respect format security.
13359 (main): Avoid shadowing. Respect format security.
13360
0809527b
VS
133612012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13362
13363 * util/grub-editenv.c (argp_parser): Make static.
13364 (create_envblk_file): Use xmalloc.
13365 (open_envblk_file): Likewise.
13366 Resepect format security.
13367 (set_variables): Respect format security.
13368
45b0c8b7
VS
133692012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13370
13371 * util/getroot.c (grub_find_device): Respect format security.
13372 (get_mdadm_uuid): Remove unused variable.
13373 (grub_util_pull_device): Dont call gettext on already translated
13374 grub_errmsg.
13375 (find_system_device): Remove unused variable.
13376 (grub_util_get_grub_dev): Likewise.
13377 (grub_make_system_path_relative_to_its_root): Respect format security.
13378
1b024b4e
VS
133792012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13380
13381 * util/grub-fstest.c (execute_command): Make first argument
13382 a const char *.
13383 (read_file): Avoid shadowing.
13384 Reuse underlying error message if device open fails.
13385 (cmd_cmp): Respect format security.
13386 (root): Make const char *.
13387 (fstest): Remove args argument and use global copy.
13388 Respect format security.
13389 (argp_parser): Make static.
13390 (main): Make default_root const char *.
13391
5d1d4e28
VS
133922012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13393
13394 * util/grub-mount.c (root): Make const char *.
13395 (execute_command): Make first argument a const char *.
13396 (fuse_init): Respect format security.
13397 (argp_parser): Make static. Remove unused variable.
13398 (main): Make default_root a const char *.
13399 Respect format security.
13400
36eb7379
VS
134012012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13402
13403 * util/grub-probe.c (probe): Don't call gettext on already translated
13404 grub_errmsg.
13405 Remove unused variables.
13406 (argp_parser): Remove unused variable.
13407
76fb2ea9
VS
134082012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13409
13410 * util/grub-script-check.c (argp_parser): Remove unused variable.
13411 (main): Rename read to curread to avoid shadowing.
13412
56c98584
VS
134132012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13414
13415 * util/misc.c (grub_util_write_image_at): Fix format specification.
13416 (grub_util_write_image): Likewise.
13417 (grub_script_execute_argument_to_string): Removed (unused).
13418 (grub_script_execute_menuentry): Likewise.
13419 (grub_putchar): Likewise.
13420
164ebb48
VS
134212012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13422
13423 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13424 (FUNCTION) [GRUB_UTIL]: Likewise.
13425 (VARIABLE) [GRUB_UTIL]: Likewise.
13426
44318d61
VS
134272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13428
13429 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13430 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13431
31a26002
VS
134322012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13433
13434 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13435 buffer.
13436
134372012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13438
13439 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13440 (LzmaEnc_SaveState): Removed (unused).
13441 (LzmaEnc_RestoreState): Likewise.
13442 (LzmaEnc_InitPriceTables): Made static.
13443 (LzmaEnc_Construct): Likewise.
13444 (LzmaEnc_FreeLits): Likewise.
13445 (LzmaEnc_Destruct): Likewise.
13446 (LzmaEnc_Init): Likewise.
13447 (LzmaEnc_InitPrices): Likewise.
13448 (LzmaEnc_Finish): Likewise.
13449 (LzmaEnc_PrepareForLzma2): Removed (unused).
13450 (LzmaEnc_MemPrepare): Likewise.
13451 (LzmaEnc_GetNumAvailableBytes): Likewise.
13452 (LzmaEnc_GetCurBuf): Likewise.
13453 (LzmaEnc_CodeOneMemBlock): Likewise.
13454
6fa67967
VS
134552012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13456
13457 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13458 (grub_util_ldm_embed): Likewise.
13459
9a7428e6
VS
134602012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13461
13462 * util/grub-editenv.c (print_var): Rename name to varname to
13463 avoid shadowing.
13464 (main): Rename index to curindex to avoid shadowing.
31a26002 13465 Make filename a const char *.
9a7428e6 13466
4f96abd1
VS
134672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13468
13469 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13470 to arg_getline to avoid shadowing.
13471
44d10dad
VS
134722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13473
13474 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13475 disk_ to avoid shadowing.
13476
340ba63e
VS
134772012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13478
13479 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13480 curindex to avoid shadowing.
13481 Make static.
13482 (MatchFinder_GetNumAvailableBytes): Make static.
13483
22965bce
VS
134842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13485
13486 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13487 avoid shadowing.
13488
7b5784d4
VS
134892012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13490
13491 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13492 argument from encrypt to do_encrypt to avoid shadowing.
13493
6f48ca01
VS
134942012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13495
13496 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13497 incorrect nesting of #if's.
13498
a4ea2dff
VS
134992012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13500
13501 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13502 checks which are always false on some platforms.
13503 (grub_cmd_lsacpi): Likewise.
13504 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13505 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13506 Likewise.
13507
def9fc1b
VS
135082012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13509
13510 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13511 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13512
a67b2a04
VS
135132012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13516 re_dfa_t to avoid breaking alignment invariants.
13517 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13518 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13519
44c6828d
VS
135202012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13521
13522 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13523 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13524
bebe0dd0
VS
135252012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13526
13527 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13528 Fix declaration.
13529
a9cdb3cf
VS
135302012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13531
13532 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13533 conserve alignment invariants.
13534 (grub_ehci_ehcc_read16): Likewise.
13535 (grub_ehci_oper_read32): Likewise.
13536 (grub_ehci_oper_write32): Likewise.
13537 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13538 Conserve alignment invariants.
13539
ccc3b1b8
VS
135402012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13541
13542 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13543 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13544 declarations.
13545
987fbd95
VS
135462012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13547
13548 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13549 Remove unused variable.
13550
0df363f3
VS
135512012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13552
13553 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13554 Remove set in if.
13555
b2c0c4a6
VS
135562012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13557
13558 * include/grub/net.h: Remove double declarations.
13559
690c531f
VS
135602012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13561
13562 Remove "payload" command in ia64 Linux loader since I couldn't
13563 find any evidence of it being used for anything.
13564 Replace "relocate" command with an environment variable
13565
13566 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13567 fields.
13568 (ia64_boot_payload): Removed.
13569 (last_payload): Likewise.
13570 (RELOCATE_OFF): Likewise.
13571 (RELOCATE_ON): Likewise.
13572 (RELOCATE_FORCE): Likewise.
13573 (relocate): Likewise.
13574 (free_pages): Don't free payloads.
13575 (grub_load_elf64): Use common error messages.
13576 Use "linux_relocate" variable.
13577 Increase the space after boot_params.
13578 (grub_cmd_payload): Removed.
13579 (grub_cmd_relocate): Likewise.
13580 (grub_cmd_fpswa): Improve messages.
13581 (cmd_payload): Removed.
13582 (cmd_relocate): Likewise.
13583 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13584 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13585
01783768
VS
135862012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13587
13588 Convert UHCI to DMA framework.
13589
13590 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13591 (grub_uhci_pci_iter): Fill new members
13592 (grub_alloc_td): Use P2V and V2P functions.
13593 (grub_free_queue): Likewise.
13594 (grub_alloc_qh): Likewise.
13595 (grub_uhci_setup_transfer): Likewise.
13596 (grub_uhci_check_transfer): Likewise.
13597
43206939
VS
135982012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13599
13600 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13601 Remove assignment in if while on it.
13602
571e140e
VS
136032012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13604
13605 * util/grub-mkstandalone.in: Fix modules directory.
13606
a9d96eeb
VS
136072012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13608
13609 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13610 on i386-pc target.
13611 (argp_parser): Accept "auto" as compression specification.
13612
e4e37e8d
VS
136132012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13614
13615 Fix `help' with unloaded modules.
13616
13617 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13618 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13619 (grub_dyncmd_dispatcher): Small stylistic fix.
13620 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13621 explicit help is requested.
13622
e1ea3ade
VS
136232012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13624
13625 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13626 Explicitly init restart while on it.
13627
27556881
VS
136282012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13629
13630 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13631 uninited variable.
13632
d65f6b36
VS
136332012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13634
13635 * util/grub-mknetdir.in: Use . rather than source for POSIX
13636 compatibility.
13637
0a1e473c
VS
136382012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13639
13640 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13641
ce6647c8
VS
136422012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13643
13644 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13645 variable.
13646
66747894
VS
136472012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13648
13649 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13650 without quotes.
13651
71645f6e
VS
136522012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13653
13654 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13655
0e1c1f61
VS
136562012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13657
13658 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13659 iteration of partitions.
13660
9c4b5c13
VS
136612012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13662
13663 Improve gettext support. Stylistic fixes and error handling fixes while
13664 on it.
13665
215c90cb
VS
136662012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13667
13668 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13669 part. Instead setup the correct stack in RM.
13670 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13671 for stack.
13672 * include/grub/i386/relocator_private.h: New file.
13673
b5c1f9bf
VS
136742012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13675
13676 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13677 argument.
13678 * util/grub-fstest.c (options): Add missing DEVICE part.
13679
b525fd83
VS
136802012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13681
13682 Clarify and unify messages.
13683
13684 * grub-core/commands/hashsum.c (options): Unify messages.
13685 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13686 literal-only message as translatable.
13687 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13688 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13689 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13690 commands.
13691 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13692 key, not the key used to unlock. Clarify what it's used for.
13693 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13694 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13695 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13696 * util/grub-editenv.c (options): Unify "verbose" message.
13697 * util/grub-fstest.c (read_file): Unify error message.
13698 (fstest): Add quotes around commands.
13699 (options): Unify "verbose" message.
13700 * util/grub-install.in: Add quotes around variable name.
13701 * util/grub-kbdcomp.in: Unify error message.
13702 * util/grub-mkfont.c (main): Likewise.
13703 * util/grub-mkrescue.in: Likewise.
13704 * util/grub-mklayout.c (options): Unify "verbose" message.
13705 * util/grub-mkstandalone.in: Unify help and verbose messages.
13706 * util/grub-mount.c (options): Unify "verbose" message.
13707 * util/grub-probe.c (options): Likewise.
13708 * util/grub-script-check.c (options): Likewise.
13709 * util/grub-setup.c (setup): Unify no-terminator message.
13710 (options): Use DEVICE and not DEV.
13711 Unify "verbose" message.
13712 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13713
0ae70393
VS
137142012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13715
13716 Improve and unify messages.
13717
13718 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13719 name. All users updated.
13720 Print filename in error.
13721 (read_device_map): Print filename in error.
13722 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13723 (grub_util_get_os_disk): Likewise.
13724 (grub_util_biosdisk_get_grub_dev): Likewise.
13725 (grub_util_check_block_device): Likewise.
13726 (grub_util_check_char_device): Likewise.
13727 (grub_make_system_path_relative_to_its_root): Likewise.
13728 * util/grub-editenv.c (create_envblk_file): Likewise.
13729 (open_envblk_file): Likewise.
13730 (write_envblk): Likewise.
13731 * util/grub-fstest.c (cmd_cp): Likewise.
13732 (cmd_cat): Likewise.
13733 (cmd_cmp): Likewise.
13734 * util/grub-menulst2cfg.c (main): Likewise.
13735 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13736 (write_font_width_spec): Likewise.
13737 (write_font_pf2): Likewise.
13738 * util/grub-mkimage.c (generate_image): New argument outname.
13739 All users updated.
13740 Remove unreacheable message.
13741 (options): Unify messages.
13742 (help_filter): Likewise.
13743 * util/grub-mklayout.c (usage): Removed (unused).
13744 (main): Print filename in error.
13745 * util/grub-mkrescue.in: Fix wrong quoting.
13746 * util/grub-setup.c (setup): Print filename in error.
13747 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13748 (check_sas): Likewise.
13749 * util/misc.c (grub_util_get_fp_size): Removed.
13750 (grub_util_get_image_size): Print filename in error.
13751 (grub_util_read_at): Removed.
13752 (grub_util_read_image): Print filename in error.
13753 (grub_util_load_image): Likewise.
13754 (grub_util_write_image_at): New argument filename. All users updated.
13755 Print filename in error.
13756 (grub_util_write_image): New argument filename. All users updated.
13757 Print filename in error.
13758 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13759 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13760
0a96117d
VS
137612012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13762
13763 * grub-core/Makefile.core.def (pxechain): New module.
13764 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13765 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13766 function.
13767 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13768 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13769
aca002f7
VS
137702012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13771
13772 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13773 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13774 * include/grub/err.h (grub_error_saved): New struct.
13775 (grub_errmsg): Make array size explicit.
13776 * include/grub/misc.h (grub_error_save): New function.
13777 (grub_error_load): Likewise.
13778 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13779 (grub_error_push): Update `errno' member name.
13780 (grub_error_pop): Likewise
13781 * grub-core/net/tftp.c (tftp_data): New member save_err.
13782 (tftp_receive): Save error.
13783 (tftp_open): Restore error.
13784
a51dab13
VS
137852012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13786
13787 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13788 to real mode down to execute A20-related code in protected mode as
13789 intended.
13790
eb6e6649
GS
137912012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13792
13793 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13794 NULL when the argument `level' has an unexpected value.
13795
92cd0f6e
VS
137962012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13797
13798 Move platform-dependent files from $prefix to $prefix/$platform.
13799
13800 * config.h.in (GRUB_TARGET_CPU): New definition.
13801 (GRUB_PLATFORM): Likewise.
13802 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13803 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13804 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13805 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13806 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13807 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13808 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13809 * grub-core/normal/term.c (read_terminal_list): Likewise.
13810 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13811 $prefix/locale.
13812 (grub_gettext_init_ext): Likewise.
13813 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13814 grub_platform.
13815 * util/grub-install.in: Update directories.
13816 * util/grub-mknetdir.in: Likewise.
13817 * util/grub-mkrescue.in: Likewise.
13818
db606889
VS
138192012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13820
13821 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13822 grub_error framework. All users updated.
13823
c39992a4
VS
138242012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13825
13826 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13827 lists (by always binsearching), improve caching (cache strings
13828 used for binsearch, not only results), improve
13829 maintainability (by using more structured binary search) and correct
13830 error handling.
13831
1e5ec32f
VS
138322012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13833
13834 * grub-core/script/execute.c (grub_script_return): Fix warning.
13835
ac576cde
VS
138362012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 * grub-core/script/execute.c (grub_script_return): Fix potential
13839 NULL-dereference.
13840 Reported by: Jim Meyering.
13841
498453f6
VS
138422012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13843
13844 * po/POTFILES.in: Regenerate.
13845 * util/grub-install.in: Gettextize the strings missed in first pass.
13846
8be63f2e
VS
138472012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13848
13849 * Makefile.util.def (grub-mkdevicemap): Removed.
13850 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13851 * include/grub/util/deviceiter.h: Removed.
13852 * util/deviceiter.c: Likewise.
13853 * util/getroot.c (grub_util_get_os_disk): New function.
13854 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13855 replacement for EFI.
13856 * util/grub-mkdevicemap.c: Removed.
13857 * util/grub-probe.c (probe): Handle PRINT_DISK.
13858 (argp_parser): Handle -t disk.
13859
8e1e4e39
VS
138602012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 * util/grub-mkfont.c: Migrate to argp.
13863 * util/grub-mklayout.c: Likewise.
13864 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13865 * util/grub-mkrelpath.c: Likewise.
13866 * util/grub-probe.c: Likewise.
13867 * util/grub-script-check.c: Likewise.
13868
4459819a
VS
138692012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13870
13871 * util/grub-reboot.in: Add missing datarootdir.
13872 Add missing newline.
13873 * util/grub-set-default.in: Add missing datarootdir.
13874 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13875 * util/grub-mkrescue.in: Likewise.
13876
f65741c7
VS
138772012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13878
13879 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13880
c1a33466
VS
138812012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13882
13883 * util/grub-kbdcomp.in: Add decent help and gettextize.
13884 * docs/man/grub-kbdcomp.h2m: New file.
13885
c76899a0
VS
138862012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13887
13888 Migrate grub-mkimage.c to argp.
13889
13890 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13891 (grub-setup): Likewise.
13892 * util/grub-setup.c (print_version): Move to ...
13893 * util/argp_common.c (print_version): ... here.
13894 * util/grub-setup.c (argp_program_version_hook): Move to ...
13895 * util/argp_common.c (argp_program_version_hook): ... here.
13896 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13897 safety.
13898 * util/grub-mkimage.c (main): Migrate to argp.
13899
57db0757
VS
139002012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13901
13902 * util/grub-mkrescue.in: Use same message as
13903 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13904 for better translations.
13905
18534ad9
VS
139062012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13907
13908 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13909 options with generic grub-mkrescue.in with the goal of future
13910 merge.
13911
c84ba308
VS
139122012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13913
13914 * grub-core/kern/mm.c: Add missing include of i18n.h
13915 * grub-core/lib/relocator.c: Likewise.
13916
347998c2
VS
139172012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13918
13919 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13920 error.
13921 (allocate_pages): Check return value.
13922 Replace fatal with error.
13923 (grub_linux_boot): Replace printf with dprintf.
13924 Check find_mmap_size return value.
13925 Replace fatal with error.
13926 Don't call grub_machine_fini.
13927 (grub_load_elf64): Replace printf with dprintf.
13928 (grub_cmd_linux): Likewise.
13929 (grub_cmd_initrd): Likewise.
13930 (grub_cmd_payload): Likewise.
13931
c779226e
VS
139322012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13933
13934 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13935 message.
13936 * grub-core/video/radeon_fuloong2e.c
13937 (grub_video_radeon_fuloong2e_setup): Likewise.
13938 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13939 * grub-core/video/video.c (grub_video_set_mode): Don't override
13940 standard out of memory message.
13941
dc87d45a
GS
139422012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13943
13944 NetBSD disk wedge support.
13945
13946 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13947 [__NetBSD__]: Handle NetBSD disk wedges.
13948 * util/getroot.c (convert_system_partition_to_system_disk)
13949 [__NetBSD__]: Likewise.
13950
055f856f
MW
139512012-02-03 Mark Wooding <mdw@distorted.org.uk>
13952
13953 * util/grub-mkconfig.in: Use umask rather than chmod to create
13954 grub.cfg.new to avoid insecure grub.cfg.
13955
4a9f8346
VS
139562012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13957
13958 * grub-core/commands/ls.c: Gettextize.
13959 * grub-core/commands/setpci.c: Likewise.
13960 * grub-core/commands/videotest.c: Likewise.
13961 * grub-core/disk/geli.c: Likewise.
13962 * grub-core/kern/mm.c: Likewise.
13963 * grub-core/lib/relocator.c: Likewise.
13964 * grub-core/loader/efi/appleloader.c: Likewise.
13965 * grub-core/loader/i386/xnu.c: Likewise.
13966 * grub-core/loader/ia64/efi/linux.c: Likewise.
13967 * grub-core/loader/xnu.c: Likewise.
13968 * grub-core/net/dns.c: Likewise.
13969 * grub-core/net/net.c: Likewise.
13970 * grub-core/script/lexer.c: Likewise.
13971 * grub-core/script/parser.y: Likewise.
13972 * grub-core/script/yylex.l: Likewise.
13973 * util/getroot.c: Likewise.
13974 * util/grub-setup.c: Likewise.
13975
a646a366
VS
139762012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13977
13978 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13979 number.
13980
54e2be26
VS
139812012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13982
13983 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13984
f7c71e68
VS
139852012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13986
13987 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13988 macro.
13989 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13990 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13991
a32d5c71
VS
139922012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13993
13994 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13995 * util/grub-install.in: Gettextize.
13996 * util/grub-mkconfig.in: Likewise.
13997 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13998 if not available.
13999 (grub_warn): Gettextize.
14000 * util/grub-mknetdir.in: Gettextize.
14001 * util/grub-mkrescue.in: Likewise.
14002 * util/grub-mkstandalone.in: Likewise.
14003 * util/grub-reboot.in: Likewise.
14004 * util/grub-set-default.in: Likewise.
14005 * util/grub.d/00_header.in: Likewise.
14006 * util/grub.d/10_hurd.in: Likewise.
14007 * util/grub.d/10_kfreebsd.in: Likewise.
14008 * util/grub.d/10_linux.in: Likewise.
14009 * util/grub.d/10_netbsd.in: Likewise.
14010 * util/grub.d/10_windows.in: Likewise.
14011 * util/grub.d/20_linux_xen.in: Likewise.
14012 * util/grub.d/30_os-prober.in: Likewise.
14013 * po/POTFILES-shell.in: Regenerate.
14014
69edd81a
RL
140152012-02-03 Richard Laager <rlaager@wiktel.com>
14016
14017 * util/grub-mkimage.c (main): Fix format-security warning.
14018 * util/grub-mkrelpath.c (main): Likewise.
14019 * util/grub-probe.c (main): Likewise.
14020
65f08dbf
RL
140212012-02-03 Richard Laager <rlaager@wiktel.com>
14022
14023 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14024 failure.
14025 Put back lost PRINT_DRIVE.
14026
e9084abe
RL
140272012-02-03 Richard Laager <rlaager@wiktel.com>
14028
14029 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14030 (grub_guess_root_devices): Replace strlen with sizeof.
14031 Avoid crash.
14032 (find_root_devices_from_poolname): Remove unused variable.
14033 Handle raidzN.
14034
cf5f7ee7
VS
140352012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14036
14037 Support install on multi-device filesystems.
14038
14039 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14040 (grub_guess_root_devices): ...this. Return char **. All users updated.
14041 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14042 Removed.
14043 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14044 (find_root_devices_from_poolname): ... here.
14045 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14046 Support zfs-fuse.
14047 (grub_guess_root_device): Rename to ...
14048 (grub_guess_root_devices): ... this. Return char **. All users updated.
14049 * util/grub-install.in: Handle multi-device filesystems.
14050 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14051 argument. All users updated.
14052 Handle multi-device filesystems.
14053 Use 'delim' as separator.
14054 Remove device check to allow filesystems on file.
14055 (main): Support -0 argument. Handle multi-device.
14056 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14057 Fix a cross-device check while on it.
14058 (arguments): Remove root_dev.
14059 (argp_parser): Remove -r.
14060 (main): Remove root_dev.
14061
2f53a9ed
VS
140622012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14063
14064 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14065
17e1d934
VS
140662012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14067
14068 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14069 symbol.
14070 Reported by: NODA, Kai <nodakai>.
14071
d3e3fab5
VS
140722012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14073
14074 Fix ehci on amd64.
14075
14076 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14077 pointers.
14078 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14079 (grub_ehci_setup_qh): Likewise.
14080 (grub_ehci_find_qh): Likewise.
14081 (grub_ehci_transaction): Likewise.
14082 (grub_ehci_setup_transfer): Likewise.
14083 (grub_ehci_check_transfer): Likewise.
14084 (grub_ehci_portstatus): Likewise.
14085 (grub_ehci_detect_dev): Likewise.
14086 (grub_ehci_transfer_controller_data): New field td_last_phys.
14087 (grub_ehci_setup_transfer): Fill td_last_phys.
14088 (grub_ehci_check_transfer): Use td_last_phys.
14089
3008675b
SG
140902012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14091
14092 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14093 if no submenu is present.
14094
fc9b5652
AN
140952012-02-01 Aleš Nesrsta <starous@volny.cz>
14096
14097 CBI support.
14098
14099 * include/grub/usb.h (grub_usbms_protocol_t): New values
14100 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14101 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14102 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14103 (grub_usbms_dev): Add subclass, protocol and intrpt.
14104 Remove in_maxsz and out_maxsz.
14105 (grub_usbms_reset): Rename to ...
14106 (grub_usbms_bo_reset): .. this.
14107 (grub_usbms_cbi_cmd): New function.
14108 (grub_usbms_cbi_reset): Likewise.
14109 (grub_usbms_reset): Likewise.
14110 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14111 (grub_usbms_transfer): Rename to ...
14112 (grub_usbms_transfer_bo): ... this.
14113 (grub_usbms_transfer_cbi): Likewise.
14114 (grub_usbms_transfer): Likewise.
14115
a2b81d53
AN
141162012-02-01 Aleš Nesrsta <starous@volny.cz>
141172012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14118
14119 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14120 the support for the CS5536 modification thereos and few bugfixes.
14121
14122 * grub-core/Makefile.core.def (ehci): New module.
14123 * grub-core/bus/usb/ehci.c: New file.
14124 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14125 port and hubaddr. All users updated.
14126 Save port and hubaddr into dev structure.
14127 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14128 define.
14129 * include/grub/pci.h (grub_dma_phys2virt): New function.
14130 (grub_dma_virt2phys): Likewise.
14131 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14132
b1d51f02
VS
141332012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14134
14135 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14136 check as some mkfs implementations omit it.
14137
fc694106
VS
141382012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14139
14140 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14141
6c0920e3
VS
141422012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14143
14144 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14145 Add new member volname2.
14146 (grub_jfs_label): Use volname2 if available.
14147
d1a46f9a
VS
141482012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14149
14150 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14151 over last_mounted as seen in image generated by mkfs.nilfs2.
14152 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14153
dec8ed14
VS
141542012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14155
14156 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14157 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14158 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14159
7397c69b
VS
141602012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14161
14162 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14163 over the sector.
14164
b3fe42ad
VS
141652012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14166
14167 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14168 subvolume name (by removing a bogus and useless check).
14169
10476bb0
VS
141702012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14171
14172 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14173 sizeof while on it.
14174
9c08ad87
VS
141752012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14176
14177 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14178 (grub_scsi_read_capacity10): ... this.
14179 (grub_scsi_read_capacity16): New function.
14180 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14181 0xffffffff.
14182 Fix off-by-one error.
14183 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14184 64-bit unsigned.
14185 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14186 (grub_scsi_read_capacity10): ... this.
14187 (grub_scsi_read_capacity_data): Rename to ...
14188 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14189 (grub_scsi_read_capacity16): New struct.
14190 (grub_scsi_read_capacity16_data): Likewise.
14191 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14192 grub_scsi_cmd_read_capacity10.
14193 New command grub_scsi_cmd_read_capacity16.
14194
bc8d0f45
VS
141952012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14196
14197 SCSI >2TiB support.
14198
14199 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14200 (grub_scsi_write16): Likewise.
14201 (grub_scsi_read): Use read16 when necessary.
14202 (grub_scsi_write): Likewise.
14203 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14204 (grub_scsi_write16): Likewise.
14205 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14206
cc774926
VS
142072012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14208
14209 SCSI write support (for usbms mainly).
14210
14211 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14212 a const pointer.
14213 (grub_scsi_write): Implement.
14214 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14215
67639fd7
VS
142162012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14217
14218 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14219 variable.
14220
9079d3ed
VS
142212012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14222
14223 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14224
c6a6f204
VS
142252012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14226
14227 * po/POTFILES.in: Regenerate.
14228
ecbf8cd1
VS
142292012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14230
14231 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14232 with grub_printf to avoid unnecessary fatal failure.
14233
0b3b3b38
VS
142342012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14235
14236 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14237 (INT_MAX): Likewise.
14238 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14239 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14240 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14241 (strcpy): Likewise.
14242 (strstr): Likewise.
14243 (strchr): Likewise.
14244 (strncpy): Likewise.
14245 (strcat): Likewise.
14246 (strncat): Likewise.
14247 (strcoll): Likewise.
14248 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14249 (GRUB_INT_MAX): Likewise.
14250
db7337a3
VS
142512012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14252
14253 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14254 unexpected error.
14255 (optimize_utf8): Likewise.
14256 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14257
f37c87e1
VS
142582012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14259
14260 * grub-core/boot/i386/pc/lnxboot.S: Use
14261 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14262 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14263 location.
14264 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14265 definition.
14266 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14267
63fe43f3
VS
142682012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14269
14270 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14271 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14272 now to avoid double free.
14273 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14274 hostdisk.
14275 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14276 * util/grub-probe.c (escape_of_path): Always return a new copy.
14277 (print_full_name): Escape path.
14278 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14279 Fix hints on abstractions.
14280
ebe2c961
VS
142812012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14282
14283 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14284 Don't add "root" line if no compatibility hont is available.
14285 Suggested by: Seth Goldberg.
14286
2b5336a2
VS
142872012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14288
14289 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14290 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14291 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14292 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14293
74310bd8
VS
142942012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14295
14296 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14297
c30582ba
VS
142982012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14299
14300 * util/grub-pe2elf.c (ehdr): Make static.
14301 (shdr): Likewise.
14302 (num_sections): Likewise.
14303 (offset): Likewise.
14304
5f47782c
VS
143052012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14306
14307 Eliminate ofpath limits and possible overflows.
14308
14309 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14310 (OF_PATH_MAX): Removed.
14311 (MAX_DISK_CAT): New const.
14312 (find_obppath): Use allocated rather than preallocated buffer.
14313 Return result. Argument of_path removed. All users updated.
14314 Add missing fdstat.
14315 (xrealpath): New function.
14316 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14317 Allocate rather than use preallocated buffer. All users updated.
14318 (__of_path_common): Use allocated rather than preallocatecd buffer.
14319 Return result. Argument of_path removed. All users updated.
14320 (vendor_is_ATA): Read only needed part form the file.
14321 (check_sas): Allocate depending on contents rather than fixed.
14322 (main) [STANDALONE]: Handle NULL result.
14323
f990cbf9
VS
143242012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14325
14326 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14327
9c6e84b8
VS
143282012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14329
14330 Cryptodisk write support.
14331
14332 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14333 (grub_cryptodisk_decrypt): Moved logic to ...
14334 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14335 (grub_cryptodisk_write): Implement.
14336 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14337 (grub_util_fd_write): ... this. Make global.
14338 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14339
87cf9744
VS
143402012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14341
14342 * include/grub/list.h (grub_list_remove): Don't crash if element is
14343 removed twice.
14344
ca8c0baf
VS
143452012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14346
14347 Rename ofconsole to console.
14348
14349 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14350 as sysnonym to console.
14351 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14352 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14353 Rename grub_ofconsole_ to grub_console_. All users updated
14354 (grub_console_term_output): Rename "ofconsole" to "console".
14355 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14356 as "console".
14357
64c8b8f6
VS
143582012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14359
14360 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14361 handling.
14362 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14363 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14364 GRUB_DISK_DEVICE_FILE_ID.
14365
f6c434d5
VS
143662012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14369 and improve performance.
14370
5858b42d
VS
143712012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14372
14373 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14374 missing ieee1275/ prefix on whole disk.
14375
4ed3c26b
VS
143762012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14377
14378 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14379 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14380
df71143e
VS
143812012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14382
14383 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14384
076e7c0f
VS
143852012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14386
14387 Merge common RAID and LVM logic to an abstract diskfilter.
14388 Add LDM support using the same framework.
14389
14390 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14391 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14392 (libgrubmods): Remove grub-core/disk/raid.c and
14393 grub-core/partmap/gpt.c.
14394 * grub-core/Makefile.core.def (ldm): New module.
14395 (raid): Renamed to diskfilter. All users updated.
14396 * grub-core/disk/raid.c: Moved to ...
14397 * grub-core/disk/diskfilter.c: ... here.
14398 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14399 (lv_num): New var.
14400 (find_array): Renamed to ...
14401 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14402 (grub_is_array_readable): Renamed to ...
14403 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14404 (insert_array): New argument id.
14405 (is_node_readable): New function.
14406 (scan_device): Rename to ...
14407 (scan_disk): .. this. Restrict to one disk.
14408 (scan_devices): New function.
14409 (grub_diskfilter_iterate): Support multi-LV.
14410 Skip invisible and nameless LVs.
14411 (grub_diskfilter_memberlist): Support multi-LV.
14412 (grub_diskfilter_read_node): New function.
14413 (grub_raid_read): Most of logic moved to ...
14414 (read_segment): ... here
14415 (read_lv): New function.
14416 (grub_diskfilter_get_vg_by_uuid): New function.
14417 (grub_diskfilter_make_raid): Likewise.
14418 * grub-core/disk/ldm.c: New file.
14419 * grub-core/disk/lvm.c (vg_list): Removed.
14420 (lv_count): Likewise.
14421 (scan_depth): Likewise.
14422 (is_lv_readable): Likewise.
14423 (grub_lvm_getvalue): Advance pointer past the number.
14424 (find_lv): Removed.
14425 (do_lvm_scan): Refactored into ...
14426 (grub_lvm_detect): ... this. Support raid.
14427 (grub_lvm_iterate): Removed.
14428 (grub_lvm_memberlist): Likewise.
14429 (grub_lvm_open): Likewise.
14430 (grub_lvm_close): Likewise.
14431 (read_lv): Likewise.
14432 (read_node): Likewise.
14433 (is_node_readable): Likewise.
14434 (is_lv_readable): Likewise.
14435 (grub_lvm_read): Likewise.
14436 (grub_lvm_write): Likewise.
14437 (grub_lvm_dev): Use diskfilter
14438 (GRUB_MOD_INIT): Likewise.
14439 (GRUB_MOD_FINI): Likewise.
14440 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14441 new interface.
14442 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14443 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14444 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14445 grub_diskfilter_read_node.
14446 Fix a bug with xor.
14447 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14448 grub_diskfilter_read_node.
14449 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14450 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14451 (grub_disk_dev_iterate): Move from here...
14452 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14453 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14454 Make global.
14455 (grub_hostdisk_find_partition_start): Likewise.
14456 (grub_hostdisk_os_dev_to_grub_drive): New function.
14457 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14458 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14459 * util/getroot.c (make_device_name): ... here.
14460 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14461 Move to ...
14462 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14463 * grub-core/kern/emu/hostdisk.c
14464 (convert_system_partition_to_system_disk): Move to ...
14465 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14466 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14467 * util/getroot.c (device_is_wholedisk): ... here.
14468 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14469 * util/getroot.c (find_system_device): ... here.
14470 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14471 Move to ...
14472 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14473 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14474 Move to ...
14475 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14476 Handle LDM.
14477 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14478 Move to ...
14479 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14480 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14481 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14482 DISKFILTER.
14483 * include/grub/raid.h: Renamed to ...
14484 * include/grub/diskfilter.h: ... this.
14485 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14486 (GRUB_RAID_LAYOUT_*): Make into array.
14487 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14488 (grub_diskfilter_vg): New struct.
14489 (grub_diskfilter_pv_id): Likewise.
14490 (grub_raid_member): Removed.
14491 (grub_raid_array): Likewise.
14492 (grub_diskfilter_pv): New struct.
14493 (grub_diskfilter_lv): Likewise.
14494 (grub_diskfilter_segment): Likewise.
14495 (grub_diskfilter_node): Likewise.
14496 (grub_diskfilter_get_vg_by_uuid): New proto.
14497 (grub_raid_register): Inline.
14498 (grub_diskfilter_unregister): Likewise.
14499 (grub_diskfilter_make_raid): New proto.
14500 (grub_diskfilter_vg_register): Likewise.
14501 (grub_diskfilter_read_node): Likewise.
14502 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14503 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14504 (grub_util_is_ldm): Likewise.
14505 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14506 (grub_hostdisk_find_partition_start): Likewise.
14507 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14508 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14509 New definition.
14510 (grub_gpt_partition_map_iterate): New proto.
14511 * include/grub/lvm.h (grub_lvm_vg): Removed.
14512 (grub_lvm_pv): Likewise.
14513 (grub_lvm_lv): Likewise.
14514 (grub_lvm_segment): Likewise.
14515 (grub_lvm_node): Likewise.
14516 * util/getroot.c [...]
14517 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14518 (probe_abstraction): Likewise.
14519 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14520 (main): Remove dead logic.
14521
8a7f9b9c
VS
145222012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14523
14524 Simplify root device discover and don't fail when trying to open
14525 incorrect devices.
14526
14527 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14528 function.
14529 (get_diskname_from_path): Likewise.
14530 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14531 of iterating.
14532
30545b85
VS
145332012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14534
14535 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14536
28ea58cf
VS
145372012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14538
14539 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14540 pastthe end.
14541
692dabca
VS
145422012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14543
14544 * util/grub-install.in: Add missing \.
14545 Reported by: gentoofan
14546
f6e4ea70
VS
145472012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14548
14549 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14550 (direct_read): Use correct compressed size.
14551 (grub_squash_read_data): Likewise.
14552
145532012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
14554
14555 * docs/grub.texi (Platform limitations): New section.
14556 (Platform-specific operations): Likewise.
14557 * docs/grub-dev.texi (Porting): Likewise.
14558
76261110
VS
145592012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14560
14561 IEEE1275 disk write support.
14562
14563 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14564 const void *.
14565 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14566 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14567 and seek loginc to ...
14568 (grub_ofdisk_prepare): ... here.
14569 (grub_ofdisk_write): Implement.
14570
fc36d603
VS
145712012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14572
14573 ARC disk write support.
14574
14575 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14576 (reopen): New argument writable. All users updated.
14577 Handle required access mode.
14578 (grub_arcdisk_write): Implement.
14579 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14580 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14581
e06c2e7a
VS
145822012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14583
14584 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14585 (read_sblock): Don't attempt to read superblocks outside the disk size.
14586
ff447958
VS
145872012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14588
14589 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14590 first superblock to find the second one when possible.
14591
9e88df39
VS
145922012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14593
14594 * util/grub-install.in: Fix an ARC bug.
14595 Print a warning if no platform-specific setup is available.
14596
bb26e4ff
VS
145972012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14598
14599 Use static allocation rather than scratch pointer in reed_solomon.
14600 It decreases its size significantly and avoids a variable in .text.
14601
14602 * grub-core/lib/reed_solomon.c (scratch): Removed.
14603 (chosenstat): New const or static array.
14604 (sigma): Likewise.
14605 (errpot): Likewise.
14606 (errpos): Likewise.
14607 (sy): Likewise.
14608 (mstat): Likewise.
14609 (errvals): Likewise.
14610 (eqstat): Likewise.
14611 (pol_evaluate): Replace x with log_x argument. All users updated.
14612 (syndroms): Removed.
14613 (gauss_solve): Use statically allocated arrays.
14614 (rs_recover): Likewise.
14615 Calculate syndroms directly.
14616 (decode_block): Use statically allocated arrays.
14617 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14618 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14619
2e13ede5
VS
146202012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14621
14622 Eliminate fixed limit on reed solomon decoder length.
14623
14624 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14625 rather than hardcoding the address.
14626 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14627 no_reed_solomon_length.
14628 Move gate_a20 to no-reed-solomon part.
14629 Don't force a particular size of no reed-solomon part.
14630 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14631 Removed.
14632 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14633 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14634
f8a9ab12
VS
146352012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14636
14637 * grub-core/commands/wildcard.c (match_files): Handle filenames
14638 without explicit device.
14639 (wildcard_expand): Don't add explicit device if not already present.
14640 * tests/grub_script_echo1.in: Add a new expansion test.
14641
87edb894
VS
146422012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14643
14644 Replace single-linked with double-linked lists. It results in more
14645 compact and more efficient code.
14646
14647 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14648 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14649 (grub_list_remove): Moved from here ...
14650 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14651 (grub_prio_list_insert): Set prev.
14652 * include/grub/list.h (grub_list): Add prev. All users updated.
14653
48b391e9
VS
146542012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14655
14656 Handle newer autotools. Add some missing quotes while on it.
14657
14658 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14659 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14660 (pkgdata_DATA): ... here.
14661 * Makefile.util.def (update-grub_lib): Removed.
14662 * conf/Makefile.common (pkglib_DATA): Removed.
14663 (pkglib_SCRIPTS): Likewise.
14664 (pkgdata_DATA): New variable.
14665 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14666 needed.
14667 Add missing quotes.
14668 Remove unused variable while on it.
14669 * tests/util/grub-shell.in: Likewise.
14670 * util/grub-install.in: Likewise.
14671 * util/grub-mkconfig.in: Likewise.
14672 * util/grub-mknetdir.in: Likewise.
14673 * util/grub-mkrescue.in: Likewise.
14674 * util/grub-mkstandalone.in: Likewise.
14675 * util/grub.d/00_header.in: Likewise.
14676 * util/grub.d/10_hurd.in: Likewise.
14677 * util/grub.d/10_illumos.in: Likewise.
14678 * util/grub.d/10_kfreebsd.in: Likewise.
14679 * util/grub.d/10_linux.in: Likewise.
14680 * util/grub.d/10_netbsd.in: Likewise.
14681 * util/grub.d/10_windows.in: Likewise.
14682 * util/grub.d/20_linux_xen.in: Likewise.
14683 * util/grub.d/30_os-prober.in: Likewise.
14684 * util/update-grub_lib.in: Removed.
14685
146862012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
14687
14688 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14689 a workaround for intel problem.
14690
66832792
PRP
146912012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
146922012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
146932012-01-23 pfsmorigo
14694
14695 * util/grub-install.in: Support dd'in into PreP partition.
14696 * util/grub-probe.c (probe): Support discovering partition type.
14697 (main): Support -t msdos_parttype.
14698
7816a17e
VS
146992012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14700
14701 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14702 infinite recursion using counter.
14703 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14704 init to skip it if the magic check fails.
14705 (dec_stream_header): Init s->crc32.
14706
8f9d3a8c
ZB
147072012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
147082012-01-22 Zachary Bedell <pendorbound@gmail.com>
147092012-01-22 Richard Laager <rlaager@wiktel.com>
14710
14711 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14712 All users updated.
14713 (find_bestub): Determine correct size.
14714 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14715 (scan_disk): Align the size down.
14716 Call check pool before find_bestub to have ashift.
14717
b055dd32
VS
147182012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14719
14720 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14721 dprintf in no-malloc zone.
14722
d779e9bd
ML
147232012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14724
14725 * configure.ac: Add back in test for limits.h.
14726
b508af69
VS
147272012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14728
14729 Support 4K-sector NTFS.
14730
14731 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14732 (grub_ntfs_data): Remove blocksize.
14733 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14734 Remove data argument. All users updated.
14735
dad9c8b5
VS
147362012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14737
14738 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14739 being in .text to avoid dprel references.
14740 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14741 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14742 (grub_arch_highmemsize): Likewise.
14743 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14744 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14745 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14746
d43a777e
VS
147472012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14748
14749 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14750
14751 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14752 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14753
34e4208f
VS
147542012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14755
14756 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14757 GRUB_UTIL.
14758 (grub_set_datetime_cmos): Likewise.
14759
3ec0fc1c
VS
147602012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14761
14762 Make XZ compression parameters dependent on target and not host CPU.
14763
14764 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14765 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14766
22489834
VS
147672012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14768
14769 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14770 set but not used variable.
14771
8502fbca
VS
147722012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14773
14774 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14775 created when no uuid support is compiled into mkfs.reiser.
14776
76df2068
VS
147772012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14778
14779 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14780 (utf8_to_macroman): Do the opposite.
14781 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14782
64e3f8f6
VS
147832012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14784
14785 * configure.ac: Refise build qemu_mips w/o unifont.
14786
9c271078
VS
147872012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14788
14789 Eliminate grub_min/grub_max prone to overflow usage.
14790
14791 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14792 (poll_nonroot_hub): Likewise.
14793 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14794 (grub_affs_label): Likewise.
14795 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14796 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14797 (grub_hfs_label): Likewise.
14798 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14799 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14800 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14801 (zap_leaf_array_get): Likewise.
14802 (dnode_get_path): Likewise.
14803 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14804 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14805 * grub-core/script/execute.c (grub_script_break): Likewise.
14806 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14807 grub_max.
14808 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14809 * include/grub/misc.h (grub_min): Removed.
14810 (grub_max): Likewise.
14811
80662dbc
VS
148122012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14813
14814 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14815 direct.inode = 0.
14816
e6da1467
VS
148172012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14818
14819 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14820
b1ac4cb1
VS
148212012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14822
14823 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14824
b4bf7c3b
VS
148252012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14826
14827 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14828 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14829
8ee1101a
VS
148302012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14831
14832 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14833 rather than a hack for grub_strncasemap.
14834
148352012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14836
14837 Support multiple initrds
14838 Note: part of this was accidently committed in r3739.
14839
14840 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14841 initrd.
14842 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14843 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14844 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14845 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14846 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14847
4d1e2bc9
VS
148482012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14849
14850 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14851 disks with unknown size.
14852 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14853
75b49ebe
VS
148542012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14855
14856 Remove defines pertaining to arbitrary limits not affecting GRUB
14857 anymore.
14858
14859 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14860 (EXT2_MAX_SYMLINKCNT): Likewise.
14861 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14862 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14863 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14864 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14865 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14866 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14867 (DN_MAX_OBJECT_SHIFT): Likewise.
14868 (DN_MAX_OFFSET_SHIFT): Likewise.
14869 (DN_MAX_OBJECT): Likewise.
14870 (DNODES_PER_LEVEL_SHIFT): Likewise.
14871 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14872 (SPA_MAXBLOCKSIZE): Likewise.
14873 (SPA_BLOCKSIZES): Likewise.
14874 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14875 (MZAP_MAX_BLKSZ): Likewise.
14876
74a1dce7
VS
148772012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14878
14879 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14880 handle NULL appropriately.
14881 Remove MIN.
14882
30c7d3ce
VS
148832012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14884
14885 Fix efiemu.
14886
14887 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14888 cpu/types.h.
14889 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14890 * configure.ac: Fix efiemu check.
14891
3c76ea0c
VS
148922012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14893
14894 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14895 grub_probe.
14896 Reported by: adamwill
14897
7e532280
SG
148982012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14899
14900 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14901
30492374
VS
149022012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14903
14904 Fix handling of wide characters in gfxterm.
14905
14906 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14907 (clear_char): Likewise.
14908 (paint_char): Skip code == NULL chars.
14909 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14910
e70cb72f
VS
149112012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 * grub-core/normal/charset.c: Move comment to right place.
14914
5c827cf9
VS
149152012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14916
14917 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14918 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14919 (grub_affs_mount): Revert the correct version checking.
14920
53603892
VS
149212012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14922
14923 * docs/grub.texi (Unicode): Mention several other unsupported features.
14924
ff094b9b
VS
149252011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14926
14927 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14928 case statements as compile-time one.
14929 (direct_read): Prevent spurious warnings.
14930 (grub_squash_read_data): Likewise.
14931
c029da8a
VS
149322011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14933
14934 Various squash4 fixes and LZO and XZ support.
14935
14936 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14937 Add xzembed source files.
14938 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14939 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14940 (grub_squash_inode): New subtype long_dir.
14941 (SQUASH_TYPE_LONG_DIR): New inode type.
14942 (COMPRESSION): New enum.
14943 (XZBUFSIZ): New const.
14944 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14945 (read_chunk): Use data->decompress.
14946 (zlib_decompress): New function.
14947 (lzo_decompress): Likewise.
14948 (xz_decompress): Likewise.
14949 (squash_mount): Set new data fields.
14950 (grub_squash_iterate_dir): Handle long dir.
14951 (squash_unmount): Free xzdec and xzbuf.
14952 (grub_squash_open): Check ino type.
14953 (direct_read): Stylistic fixes. Use data->decompress.
14954 (grub_squash_read_data): Likewise.
14955 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14956 (get_byte): Likewise.
14957 (grub_zlib_disk_read): Removed.
14958 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14959 (GRUB_POSIX_BOOL_DEFINED): New define.
14960 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14961 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14962 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14963 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14964
7a45a539
VS
149652011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14966
14967 Don't override more informative errors.
14968
14969 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14970 * grub-core/font/font.c (open_section): Likewise.
14971 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14972 filename. Don't override errors.
14973 (grub_cmd_openbsd_ramdisk): Don't override errors.
14974 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14975 (grub_cmd_initrd): Likewise.
14976 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14977 (grub_cmd_initrd): Likewise.
14978 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14979 (grub_cmd_linux): Likewise.
14980 (grub_cmd_initrd): Likewise.
14981 (grub_cmd_payload): Likewise.
14982 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14983 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14984 (grub_cmd_module): Likewise.
14985 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14986 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14987 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14988 (grub_cmd_xnu_mkext): Likewise.
14989 (grub_cmd_xnu_ramdisk): Likewise.
14990 (grub_xnu_check_os_bundle_required): Likewise.
14991 (grub_xnu_load_kext_from_dir): Likewise.
14992 (grub_cmd_xnu_kextdir): Likewise.
14993 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14994
b2d004db
VS
149952011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14996
14997 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14998 as 1024 in block size field. Found on one of my test images.
14999 Small optimisation while on it.
15000
ec000eac
VS
150012011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15002
15003 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15004 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15005 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15006 performance fixes while on it.
15007 (grub_sfs_close): Fix memory leak while on it.
15008 (grub_sfs_label): Convert Latin1 to UTF-8.
15009
f50e1165
VS
150102011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15011
15012 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15013 space to avoid overflows.
15014 (grub_hfs_label): Convert from macroman to UTF-8.
15015
2ae254de
VS
150162011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15017
15018 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15019
0108f491
VS
150202011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15021
15022 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15023
f45f5f89
VS
150242011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15025
15026 * unicode: Import Unicode 6.0 data.
15027
4d8c4765
VS
150282011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15029
63fa8ef9
VS
15030 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15031 outside of range.
15032
150332011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15034
15035 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
15036
15037 * include/grub/charset.h (grub_getend): New function.
15038 * grub-core/script/function.c (grub_script_function_find): Use
15039 grub_getend.
15040 * grub-core/normal/completion.c (add_completion): Likewise.
15041
f3cb4a4e
VS
150422011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15043
15044 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15045 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15046 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15047 (GRUB_UNICODE_TAG_END): Likewise.
15048 (GRUB_UNICODE_LAST_VALID): Likewise.
15049
5da8dbc5
VS
150502011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15053 len and make it smaller. All users updated.
15054 * util/import_unicode.py: Put length and not end character.
15055 Check length.
15056
8569f13d
VS
150572011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15058
15059 Make better Unicode-compliant and unify some UTF-8 code pathes.
15060
15061 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15062 valid character.
15063 (grub_is_valid_utf8): Use grub_utf8_process.
15064 Check resulting code range.
15065 (grub_utf8_to_ucs4): Use grub_utf8_process.
15066 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15067 valid character.
15068
cc4fddf5
VS
150692011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15070
15071 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15072
bbc47747
VS
150732011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15074
15075 * docs/grub.texi (Filesystems): Mention AFS.
15076
f63d6bf4
VS
150772011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15078
15079 * docs/grub.texi (Filesystems): Clarify restrictions.
15080 (Regexp): Mention non-Unicode regexp behaviour.
15081 (Other): Mention non-Unicode matching behaviour.
15082
74bbf0db
VS
150832011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15084
f63d6bf4 15085 Make HFS implementation use MacRoman.
74bbf0db
VS
15086
15087 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15088 (macroman): New const array.
15089 (macroman_to_utf8): New function.
15090 (utf8_to_macroman): Likewise.
15091 (grub_hfs_find_dir): Use utf8_to_macroman.
15092 (grub_hfs_dir): Use macroman_to_utf8.
15093 Set case_insensitive.
15094
4ea0316e
VS
150952011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15096
15097 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15098
d3c13cbd
VS
150992011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15100
15101 Integrate hints into autogeneration scripts.
15102
15103 * docs/grub.texi (Filesystems): Add a hostdisk example.
15104 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15105 (grub-probe): Add ofpath.
15106 * gentpl.py: Remove group nosparc64.
15107 * grub-core/commands/search.c (cache_entry): New struct.
15108 (cache): New var.
15109 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15110 * grub-core/commands/search_wrap.c (options): Add platform-specific
15111 hint options.
15112 (grub_cmd_search): Handle platform-specific hints.
15113 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15114 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15115 (grub_util_biosdisk_data): Likewise.
15116 (grub_util_biosdisk_open): Set device_map.
15117 (read_device_map): Handle "" as indication of no map.
15118 Set device_map.
15119 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15120 (grub_util_biosdisk_get_compatibility_hint): New function.
15121 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15122 * include/grub/emu/hostdisk.h
15123 (grub_util_biosdisk_get_compatibility_hint): New proto.
15124 * util/grub-install.in: Don't call grub-mkdevicemap.
15125 Add platform-specific hint to load.cfg.
15126 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15127 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15128 hints. Set root preliminary to compatibility hint, not to OS name.
15129 * util/grub-probe.c (PRINT_*): Add hints.
15130 (print): Make static.
15131 (escape_of_path): New function.
15132 (guess_bios_drive): Likewise.
15133 (guess_efi_drive): Likewise.
15134 (guess_baremetal_drive): Likewise.
15135 (print_full_name): Likewise.
15136 (probe): Handle hints.
15137 (main): Likewise.
15138 * util/ieee1275/devicemap.c: Removed.
15139 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15140 updated.
15141 (grub_util_devname_to_ofpath): Return NULL on failure.
15142
15143 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15144 resource leak.
15145 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15146
15147 * po/POTFILES.in: Regenerated.
15148
15149 Allow purely long options
15150
15151 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15152 (SHORT_ARG_USAGE): Likewise.
15153 (grub_arg_show_help): Compare opt with help_options.
15154 (parse_option): Receive opt as argument. If makes big simplificatons.
15155 All users updated
15156
00ce2df3
VS
151572011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15158
15159 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15160 Restructure to avoid warning.
15161
e77e325f
VS
151622011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 * util/grub-install.in: Account for possible escaped comma in device
15165 name.
15166
165099ea
VS
151672011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15168
15169 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15170 channel.
15171
ce4a999d
VS
151722011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15173
15174 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15175 allocation and zero-setting.
15176 (grub_ieee1275_get_devname): Check that alias is complete.
15177
379586ad
VS
151782011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15179
15180 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15181 unaligned segments.
15182
9197b0ad
VS
151832011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15184
15185 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15186 prefix.
15187 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15188 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15189 Add ieee1275 prefix.
15190
edddb7f9
VS
151912011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15192
15193 * docs/grub.texi (Filesystems): Update.
15194
a1a8b1b9
VS
151952011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15196
15197 Support odc, newc and bigendian cpio formats.
15198
15199 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15200 * grub-core/Makefile.core.def (newc): New module.
15201 (odc): Likewise.
15202 (cpio_be): Likewise.
15203 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15204 (MAGIC): Likewise.
15205 (MAGIC2): Likewise.
15206 (head) [MODE_ODC]: Adapt for the format.
15207 (head) [MODE_NEWC]: Likewise.
15208 (head) [!MODE_*]: Write fields of interest as arrays.
15209 (MAGIC_USTAR): Removed.
15210 (read_number) [MODE_NEWC]: Change to hex.
15211 (read_number) [!MODE_*]: Parse binary arrays.
15212 (grub_cpio_find_file): Factor out the code for better structure and
15213 always use read_number.
15214 (grub_cpio_mount): Use MAGIC and MAGIC2.
15215 (grub_cpio_dir): Exit on first hook non-0 return.
15216 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15217 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15218 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15219 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15220 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15221 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15222 * grub-core/fs/newc.c: New file.
15223 * grub-core/fs/odc.c: Likewise.
15224 * grub-core/fs/cpio_be.c: Likewise.
15225
58eba9ee
VS
152262011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15227
15228 Fix handling of tar numbers occupying the whole field.
15229
15230 * grub-core/fs/cpio.c (read_number): New function.
15231 (grub_cpio_find_file): Use read_number instead of strtoull.
15232
a54a0e12
VS
152332011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15234
15235 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15236 occupying the whole field size.
15237
a6120aca
LA
152382011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15239
15240 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15241
a93964ce
VS
152422011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15243
15244 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15245
3ea1ca46
SG
152462011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15247
15248 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15249 TARGET_IMG_LDFLAGS.
15250
b87f7ef2
VS
152512011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15254 (mountinfo_entry): Increase the field size to take escaping into
15255 account.
15256 (find_root_device_from_libzfs): Add one byte to size of strings for
15257 security.
15258
62092395
VS
152592011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15260
15261 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15262 an assert.
15263 * util/grub-setup.c (setup): Likewise.
15264
1f0b1a77
VS
152652011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15266
15267 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15268 _LzmaDecodeA.
15269
8eba9997
VS
152702011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15271
15272 * docs/grub.texi (Internationalisation): New section.
15273
dd0c91e9
VS
152742011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15275
15276 * docs/grub.texi (Loopback booting): New section.
15277
152782011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
15279
15280 * util/grub-mkstandalone.in: Fix minor typo errors.
15281
198e150a
VS
152822011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15283
15284 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15285
15286 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15287 net/icmp.c and net/icmp6.c.
15288 (http): New module.
15289 (priority_queue): Likewise.
15290 * grub-core/io/bufio.c: Rewritten.
15291 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15292 TYPE_WITH_CONFIGFILE_OPTION.
15293 (legacy_commands): Add bootp and dhcp.
15294 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15295 (grub_legacy_parse): Likewise.
15296 * grub-core/lib/priority_queue.c: New file.
15297 * grub-core/net/arp.c: Add missing license header.
15298 (arp_find_entry): Removed.
15299 (arp_find_entry): Likewise.
15300 (grub_net_arp_resolve): Rename to ...
15301 (grub_net_arp_send_request): ...this.
15302 (grub_net_arp_receive): New card argument.
15303 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15304 Set router and DNS server.
15305 (grub_net_configure_by_dhcp_ack): Handle routing information.
15306 (grub_cmd_bootp): Set checksum.
15307 (grub_bootp_init): Remove net_dhcp.
15308 * grub-core/net/dns.c: New file.
15309 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15310 completion.
15311 (get_card_packet): Handle allocation.
15312 (grub_efinet_findcards): Set mtu.
15313 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15314 (get_card_packet): Handle allocation.
15315 (emucard): Set mtu.
15316 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15317 (GRUB_MOD_INIT): Set mtu.
15318 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15319 mtu.
15320 (get_card_packet): Handle allocation.
15321 (grub_ofnet_findcards): Set mtu.
15322 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15323 assert.
15324 (grub_net_recv_ethernet_packet): Handle IPv6.
15325 * grub-core/net/http.c: New file.
15326 * grub-core/net/icmp.c: Likewise.
15327 * grub-core/net/icmp6.c: Likewise.
15328 * grub-core/net/ip.c (ip6addr): New type.
15329 (ip6hdr): Likewise.
15330 (reassemble): Likewise.
15331 (cmp): New function.
15332 (reassembles): New variable.
15333 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15334 (id): New variable.
15335 (send_fragmented): New function.
15336 (grub_net_send_ip_packet): Rename to ...
15337 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15338 Handle non-UDP.
15339 (grub_net_recv_ip_packets): Rename to ...
15340 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15341 (free_rsm): New function.
15342 (free_old_fragments): Likewise.
15343 (grub_net_recv_ip4_packets): New function.
15344 (grub_net_send_ip6_packet): Likewise.
15345 (grub_net_send_ip_packet): Likewise.
15346 (grub_net_recv_ip6_packets): Likewise.
15347 (grub_net_recv_ip_packets): Likewise.
15348 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15349 (LINK_LAYER_CACHE_SIZE): New const.
15350 (link_layer_find_entry): New function.
15351 (grub_net_link_layer_add_address): Likewise.
15352 (grub_net_link_layer_resolve_check): Likewise.
15353 (grub_net_link_layer_resolve): Likewise.
15354 (grub_net_ipv6_get_slaac): Likewise.
15355 (grub_net_ipv6_get_link_local): Likewise.
15356 (grub_cmd_ipv6_autoconf): Likewise.
15357 (parse_ip): Handle one number representation.
15358 (parse_ip6): New functoion.
15359 (match_net): Handle IPv6.
15360 (grub_net_resolve_address): Handle IPv6 and DNS.
15361 (grub_net_resolve_net_address): Handle IPv6.
15362 (route_cmp): New function.
15363 (grub_net_route_address): Find best route.
15364 (grub_net_addr_to_str): Handle IPv6.
15365 (grub_net_addr_cmp): New function.
15366 (grub_net_add_addr): Register local route.
15367 (print_net_address): Handle net address.
15368 (grub_net_poll_cards): Retransmit TCP.
15369 (grub_net_poll_cards_idle_real): Likewise.
15370 (have_ahead): New function.
15371 (grub_net_seek_real): Use underlying seek.
15372 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15373 * grub-core/net/tcp.c: New file.
15374 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15375 (cmp): New function.
15376 (ack): Likewise.
15377 (tftp_receive): Handle unordered input.
15378 (destroy_pq): New function.
15379 (tftp_close): Close pq.
15380 * grub-core/net/udp.c: Put missing license header.
15381 (grub_net_udp_socket): New function.
15382 (udp_socket_register): Likewise.
15383 (grub_net_udp_close): Likewise.
15384 (grub_net_recv_udp_packet): Check checksum.
15385 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15386 * include/grub/misc.h (grub_memchr): New function.
15387 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15388 (grub_net_card_driver): Return buf in recv.
15389 (grub_net_slaac_mac_list): New struct.
15390 (grub_network_level_protocol_id): Add ipv6.
15391 (grub_net_network_level_addr): Likewise.
15392 (grub_net_network_level_net_addr): Likewise.
15393 (grub_net_app_protocol): Add seek.
15394 (grub_net_socket): Removed.
15395 (grub_net_sockets): Likewise.
15396 (grub_net_socket_register): Likewise.
15397 (grub_net_socket_unregister): Likewise.
15398 (FOR_NET_SOCKETS): Likewise.
15399 (grub_net_add_addr): Add const.
15400 (GRUB_NET_BOOTP_*): New enum.
15401 (grub_net_addr_cmp): New proto.
15402 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15403 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15404 (grub_net_hwaddr_to_str): NEw proto.
15405 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15406 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15407 (grub_dns_init): New proto.
15408 (grub_dns_fini): Likewise.
15409 (grub_net_tcp_retransmit): Likewise.
15410 (grub_net_link_layer_add_address): Likewise.
15411 (grub_net_link_layer_resolve_check): Likewise.
15412 (grub_net_link_layer_resolve): Likewise.
15413 (grub_net_dns_lookup): Likewise.
15414 (grub_net_add_dns_server): Likewise.
15415 (grub_net_remove_dns_server): Likewise.
15416 (GRUB_NET_TRIES): New const.
15417 (GRUB_NET_INTERVAL): Likewise.
15418 * include/grub/net/arp.h: Mostly rewritten.
15419 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15420 * include/grub/net/ip.h: Mostly rewritten.
15421 * include/grub/net/netbuff.h: Indent.
15422 * include/grub/net/tcp.h: New file.
15423 * include/grub/net/udp.h: Mostly rewritten.
15424 * include/grub/priority_queue.h: New file.
15425 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15426 (grub_swap_bytes64_compile_time): Likewise.
15427 (grub_cpu_to_be16_compile_time): Likewise.
15428 (grub_cpu_to_be32_compile_time): Likewise.
15429 (grub_cpu_to_be64_compile_time): Likewise.
15430 (grub_be_to_cpu64_compile_time): Likewise.
15431
215c1800
VS
154322011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15433
15434 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15435 UINT_TO_PTR with cast.
15436
c17e546c
VS
154372011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15438
15439 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15440 don't use them.
15441
ff6b18b6
VS
154422011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15443
15444 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15445 already there.
15446
70ffcc93
VS
154472011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15448
15449 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15450 confusing ipxe.
15451
e5f4d260
VS
154522011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15453
15454 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15455 Add missing const attribute.
15456 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15457 Likewise.
15458 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15459 Likewise.
15460
8e54b4b7
VS
154612011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15462
15463 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15464 misaligned access.
15465 (serpent_setkey): Likewise.
15466 (serpent_encrypt_internal): Likewise.
15467 (serpent_decrypt_internal): Likewise.
15468 (serpent_encrypt): Don't put an alignment-increasing cast.
15469 (serpent_decrypt): Likewise.
15470 (serpent_test): Likewise.
15471
813c0a2b
VS
154722011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15473
15474 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15475
f2b60fbd
VS
154762011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15477
15478 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15479
15480 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15481 grub_addr_t casts.
15482 (PTR_TO_UINT64): Likewise.
15483 (PTR_TO_UINT32): Likewise.
15484
5ef5c511
VS
154852011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15486
15487 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15488 because of stack.
15489 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15490 limit.
15491
c476e6df
VS
154922011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15493
15494 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15495 text_width > available width a bit more gracefully.
15496
384ad7cc
VS
154972011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15498
15499 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15500 current address calculation.
15501
96f8caf8
VS
155022011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15503
15504 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15505 stack.
15506 (encode_block): Likewise.
15507
276b7a8b
VS
155082011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15509
15510 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15511 certainety.
15512
e3fd394a
VS
155132011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15514
15515 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15516 non-RS part to avoid RS messing with GDT.
15517 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15518 Increase to suit in realmode routines.
15519
155202011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15521
15522 * grub-core/kern/i386/realmode.S: Increase alignment.
15523 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15524
ee9c2e7a
VS
155252011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15526
15527 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15528 be deterministic.
15529 (syndroms): Compute 0 syndrom.
15530 (rs_recover): Use 0 syndrom.
15531
7a7f7cc9
VS
155322011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15533
15534 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15535
a14b16d1
VS
155362011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15539 brackets.
15540
9f59e9fc
VS
155412011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15542
ca1b552c
VS
15543 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15544 account.
15545 (get_top_pad): Likewise.
15546 (get_right_pad): Likewise.
15547 (get_bottom_pad): Likewise.
15548
155492011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15550
15551 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 15552
e739d698
VS
155532011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15554
15555 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15556 attribute as the structure isn't guaranteed to be properly aligned.
15557 (grub_efi_pci_device_path): Likewise.
15558 (grub_efi_pccard_device_path): Likewise.
15559 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15560 specify the size of `memory_type'.
15561 (grub_efi_vendor_device_path): Likewise.
15562 (grub_efi_controller_device_path): Likewise.
15563 (grub_efi_acpi_device_path): Likewise.
15564 (grub_efi_expanded_acpi_device_path): Likewise.
15565 (grub_efi_atapi_device_path): Likewise.
15566 (grub_efi_scsi_device_path): Likewise.
15567 (grub_efi_fibre_channel_device_path): Likewise.
15568 (grub_efi_1394_device_path): Likewise.
15569 (grub_efi_usb_device_path): Likewise.
15570 (grub_efi_usb_class_device_path): Likewise.
15571 (grub_efi_i2o_device_path): Likewise.
15572 (grub_efi_mac_address_device_path): Likewise.
15573 (grub_efi_ipv4_device_path): Likewise.
15574 (grub_efi_ipv6_device_path): Likewise.
15575 (grub_efi_infiniband_device_path): Likewise.
15576 (grub_efi_uart_device_path): Likewise.
15577 (grub_efi_vendor_messaging_device_path): Likewise.
15578 (grub_efi_hard_drive_device_path): Likewise.
15579 (grub_efi_cdrom_device_path): Likewise.
15580 (grub_efi_vendor_media_device_path): Likewise.
15581 (grub_efi_file_path_device_path): Likewise.
15582 (grub_efi_protocol_device_path): Likewise.
15583 (grub_efi_piwg_device_path): Likewise.
15584 (grub_efi_bios_device_path): Likewise.
15585
cb8f88ea
VS
155862011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15587
15588 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15589 (grub_ucs4_to_utf8_alloc): Likewise.
15590 (grub_ucs4_to_utf8): Likewise.
15591 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15592 (grub_ucs4_to_utf8_alloc): Likewise.
15593
309e5352
VS
155942011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15595
15596 AFFS never uses unicode.
15597
15598 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15599 (grub_latin1_to_utf8): New inline function.
15600 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15601
e7987e1b
VS
156022011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15603
15604 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15605 overflow.
15606
efc2616e
VS
156072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15608
15609 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15610 (grub_squash_dirent_header): Likewise.
15611 (read_chunk): Don't double swap.
15612 (grub_squash_iterate_dir): Fix swap sizes.
15613
3c349f5a
VS
156142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15615
15616 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15617
b453412d
VS
156182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15619
15620 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15621 (grub_hfs_iterate_dir): Likewise.
15622
12e9d4d1
VS
156232011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15624
15625 Fix video on platforms where unaligned access is forbidden.
15626 Make several optimisations while on it.
15627
15628 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15629 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15630 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15631 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15632 Disable.
15633 (grub_video_fbblit_replace_16bit_1bit):
15634 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15635 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15636 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15637 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15638 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15639 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15640 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15641 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15642 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15643 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15644 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15645 (grub_video_fbblit_replace_index_RGB888): Likewise.
15646 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15647 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15648 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15649 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15650 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15651 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15652 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15653 Disable.
15654 (grub_video_fbblit_blend_XXX565_1bit):
15655 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15656 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15657 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15658 void *.
15659 * grub-core/video/fb/video_fb.c (common_blitter)
15660 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15661 (grub_video_fb_create_render_target_from_pointer)
15662 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15663 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15664 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15665 definition.
15666 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15667
ace96609
VS
156682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15669
15670 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15671 HH22 and HM10 relocations.
15672
fd261d73
VS
156732011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15674
15675 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15676
e59b7857
VS
156772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15678
15679 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15680 allocation succeeded.
15681
9b4baaa4
VS
156822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15683
15684 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15685 argument a u8 pointer. All users updated.
15686 Handle unaligned buffers.
15687
dc713193
VS
156882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15691 add_part to workaround compiler bug.
15692
30dd48c2
VS
156932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15694
15695 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15696
0c6087a8
VS
156972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15698
15699 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15700 Reserve alignment invariants.
15701 (grub_multiboot_load): Likewise.
15702 (retrieve_video_parameters): Likewise.
15703 (grub_multiboot_make_mbi): Likewise.
15704
c2e77777
VS
157052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15706
15707 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15708 incorrect pointer.
15709
b70b6d11
VS
157102011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15711
15712 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15713 (grub_pata_pio_write): Likewise.
15714
02a2bf83
VS
157152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15716
15717 Add noreturn attributes and remove unreachable code.
15718
15719 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15720 code.
15721 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15722 code. Mark as noreturn.
15723 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15724 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15725 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15726 unreachable code.
15727 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15728 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15729 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15730 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15731 * include/grub/kernel.h (grub_main): Mark as noreturn.
15732 * include/grub/reader.h (grub_rescue_run): Likewise.
15733
2019d09e
VS
157342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15735
15736 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15737 redundant declaration.
15738
d1c501ee
VS
157392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15740
15741 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15742 redundant declaration.
15743 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15744
61664420
VS
157452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15746
15747 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15748 to ensure alignment.
15749 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15750 alignment. Ensure tmp alignment.
15751 (grub_cmd_hdparm): Ensure buf alignment.
15752 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15753 to ensure alignment.
15754 (grub_ata_dumpinfo): Ensure text alignment.
15755 (grub_atapi_identify): Preserve alignment invariant.
15756 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15757
0d51ee20
VS
157582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15759
15760 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15761 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15762 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15763 * include/grub/misc.h (grub_reboot)
15764 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15765 (grub_halt) [__mips__]: Likewise.
15766
753ef8c1
VS
157672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15768
15769 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15770 Remove redundant declaration.
15771 (grub_mmap_get_post64): Likewise.
15772 (grub_mmap_get_upper): Likewise.
15773 (grub_mmap_get_lower): Likewise.
15774
85c85365
VS
157752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15776
15777 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15778 uint32_t * to ensure alignment.
15779 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15780
a23f2cc4
VS
157812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15782
93018f64
VS
15783 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15784 uint16_t * to ensure alignment.
15785 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15786 alignment.
15787
157882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15789
15790 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
15791 to ensure alignment.
15792 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15793
58acccd6
VS
157942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15795
15796 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15797 Handle unaligned pointers.
15798 (u32at): Likewise.
15799 (u64at): Likewise.
15800 (fixup): Use byte access instead of v16at.
15801 (find_attr): Fix imporper usage of v32at.
15802 (read_data): Likewise.
15803 (list_file): Handle byte-swapping and unaligned strings.
15804 (grub_ntfs_label): Likewise.
15805
9b05cad7
VS
158062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15807
15808 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15809 as it's not necessarily aligned.
15810
b3950b84
VS
158112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15812
15813 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15814 redundant declaration.
15815 (grub_serial_init): Likewise.
15816 (grub_terminfo_init): Likewise.
15817
fcd232b7
VS
158182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15819
15820 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15821 function.
15822 (ZAP_HASH_IDX): Likewise.
15823 (ZAP_LEAF_HASH_SHIFT): Likewise.
15824 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15825 (LEAF_HASH): Likewise.
15826 (ZAP_LEAF_NUMCHUNKS): Likewise.
15827 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15828 alignment invariants. Return pointer. All users updated.
15829 (ZAP_LEAF_ENTRY): Make into inline function.
15830 (NBBY): Removed.
15831 (xor): LIkewise.
15832 (xor_out): Use grub_crypto_xor.
15833 (dnode_get_path): Use grub_get_unaligned.
15834 (nvlist_find_value): Likewise.
15835 (grub_zfs_nvlist_lookup_uint64): Likewise.
15836 (grub_zfs_nvlist_lookup_string): Likewise.
15837 (get_nvlist_size): Likewise.
15838 (grub_zfs_open): Likewise.
15839 (fill_fs_info): Likewise.
15840 (grub_zfs_dir): Likewise.
15841 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15842 alignment invariants.
15843 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15844 necessarily aligned.
15845
f138623a
VS
158462011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15847
15848 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15849
564840dc
VS
158502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15851
15852 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15853 arithmetic to conserve alignment invariants.
15854
9b40df20
VS
158552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15856
15857 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15858 redundant declaration.
15859 (grub_efiemu_mm_obtain_request): Likewise.
15860 (grub_efiemu_prepare): Likewise.
15861
d1c930f9
VS
158622011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15863
15864 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15865 to match types.
15866
4c5f3056
VS
158672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15868
15869 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15870 case of aunaligned recptr.
15871 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15872 alignment.
15873 (grub_hfsplus_btree_search): Handle unaligned index.
15874
728cba91
VS
158752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15876
15877 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15878 to get freetag and skip.
15879
eb561f31
VS
158802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15881
15882 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15883 array.
15884 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15885 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15886
20993fbb
VS
158872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15888
15889 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15890 name for checksum and fix allocation algorithm.
15891
1f313b94
VS
158922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15893
15894 * include/grub/types.h (grub_properly_aligned_t): New type.
15895 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15896 (grub_get_unaligned16): Add explicit casts.
15897 (grub_get_unaligned32): Likewise.
15898 (grub_get_unaligned64): Likewise.
15899 (grub_set_unaligned16): New function.
15900 (grub_set_unaligned32): Likewise.
15901
47ae27ec
VS
159022011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15903
15904 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15905
78c2cd1c
VS
159062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15907
15908 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15909 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15910 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15911
53072f9b
VS
159122011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15913
15914 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15915 conditionals.
15916
055dc239
VS
159172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15918
15919 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15920 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15921
496bd074
VS
159222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15923
15924 Unify and improve RAID and crypto xor.
15925
15926 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15927 changed to grub_crypto_xor
15928 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15929 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15930 Use bigger types when possible.
15931
ef6e4335
VS
159322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15933
15934 * grub-core/disk/raid.c (scan_devices): Fix condition.
15935
5d048bf2
VS
159362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15937
15938 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15939 Make name a const ptr.
15940
ee533335
VS
159412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15942
15943 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15944 first argument a const pointer.
15945 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15946 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15947 proto.
15948 (grub_children_iterate): Likewise.
15949 (grub_machine_mmap_iterate): Remove redundant declaration.
15950
cc8f3668
VS
159512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15952
15953 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15954 (grub_cmd_acpi) [!x86]: Disable EBDA.
15955
c5fc563a
VS
159562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15957
15958 Enable UTF8 in gnulib regexp.
15959
15960 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15961 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15962 (isupper): Use grub_isupper.
15963 (isascii): New inline function.
15964 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15965 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15966 * grub-core/normal/charset.c (grub_utf8_process): New function.
15967 (grub_utf8_to_utf16): Use grub_utf8_process.
15968 (grub_encode_utf8_character): New function.
15969 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15970 * include/grub/charset.h (grub_utf8_process): New declaration.
15971 (grub_encode_utf8_character): Likewise.
15972 * include/grub/misc.h (grub_islower): New inline function.
15973 (grub_isupper): Likewise.
15974 (grub_strchrsub): Moved down to fix the definitions.
15975
0af2346f
VS
159762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15977
15978 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15979 specification.
15980
74dbd244
VS
159812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15982
15983 * include/grub/loader.h (grub_loader_register_preboot_hook):
15984 Use struct preboot * and not void * for handle. All users updated.
15985 (grub_loader_unregister_preboot_hook): Likewise.
15986
1bc8f60d
VS
159872011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15988
15989 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15990 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15991 UTF-16-BE. All users updated.
15992 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15993 (grub_hfsplus_iterate_dir): Likewise.
15994 (grub_hfsplus_label): Likewise.
15995
48d6e456
VS
159962011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15997
15998 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15999
bf3a3857
VS
160002011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16001
16002 Add missing const qualifiers.
16003
16004 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16005 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16006 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16007 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16008 (grub_lvm_check_flag): Likewise.
16009 * grub-core/efiemu/i386/coredetect.c
16010 (grub_efiemu_get_default_core_name): Likewise
16011 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16012 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16013 * grub-core/fs/ntfs.c (fixup): Likewise.
16014 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16015 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16016 (fzap_lookup): Likewise.
16017 (zap_lookup): Likewise.
16018 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16019 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16020 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16021 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16022 (grub_freebsd_add_meta_module): Likewise.
16023 (grub_cmd_freebsd_module): Likewise.
16024 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16025 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16026 (grub_xnu_writetree_get_size): Likewise.
16027 (grub_xnu_writetree_toheap_real): Likewise.
16028 (grub_xnu_find_key): Likewise.
16029 (grub_xnu_create_key): Likewise.
16030 (grub_xnu_create_value): Likewise.
16031 (grub_xnu_register_memory): Likewise.
16032 (grub_xnu_check_os_bundle_required): Likewise.
16033 (grub_xnu_scan_dir_for_kexts): Likewise.
16034 (grub_xnu_load_kext_from_dir): Likewise.
16035 * grub-core/normal/color.c (color_list): Likewise.
16036 * grub-core/normal/completion.c (current_word): Likewise.
16037 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16038 * grub-core/term/serial.c (grub_serial_find): Likewise.
16039 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16040 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16041 Likewise.
16042 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16043 (grub_freebsd_add_meta_module): Likewise.
16044 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16045 * include/grub/net.h (grub_net_card_driver): Likewise.
16046 (grub_net_card): Likewise.
16047 (grub_net_app_protocol): Likewise.
16048 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16049 * include/grub/serial.h (grub_serial_find): Likewise.
16050 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16051 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16052 (grub_xnu_create_value): Likewise.
16053 (grub_xnu_find_key): Likewise.
16054 (grub_xnu_scan_dir_for_kexts): Likewise.
16055 (grub_xnu_load_kext_from_dir): Likewise.
16056
16057 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16058 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16059 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16060 Moved from here ...
16061 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16062
112b4837
CW
160632011-11-28 Colin Watson <cjwatson@ubuntu.com>
16064
16065 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16066
49e891ac
VS
160672011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16068
16069 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16070 (read_device): Fix size calculation.
16071
fd258e5c
RM
160722011-11-25 Robert Millan <rmh@gnu.org>
16073
16074 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16075 (find_root_device_from_libzfs): Add zpool output parser to be used
16076 as fallback when libzfs isn't available.
16077
78845dc2
SG
160782011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16079
16080 * po/Makefile.in.in: Add missing escape-continuation.
16081
adac5211
VS
160822011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16083
16084 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16085
10b64f1c
VS
160862011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16087
16088 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16089
bb416954
VS
160902011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16091
16092 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16093
bdfe9eeb
VS
160942011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16095
16096 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16097
581ffa8a
VS
160982011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16099
16100 * grub-core/lib/adler32.c: Add missing license specification.
16101 * grub-core/lib/crc64.c: Likewise.
16102 * grub-core/loader/i386/pc/plan9.c: Likewise.
16103 * grub-core/partmap/plan.c: Likewise.
16104
2536cf64
LK
161052011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16106
16107 Add facility to debug GRUB with gdb under qemu.
16108
16109 * grub-core/gdb_grub.in: New file.
16110 * grub-core/gmodule.pl.in: Likewise.
16111 * grub-core/Makefile.core.def (gmodule.pl): New script.
16112 (gdb_grub): Likewise.
16113
bc108a4a
VS
161142011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16115
16116 * util/grub-mount.c (argp_parser): Accept relative pathes.
16117 * util/grub-fstest.c (argp_parser): Likewise.
16118
111c1778
VS
161192011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16120
16121 Plan9 support.
16122
16123 * Makefile.util.def (libgrubmods): Add
16124 grub-core/partmap/plan.c.
16125 * docs/grub.texi: Notice Plan9 support.
16126 * grub-core/Makefile.core.def (plan9): New module.
16127 (part_plan): Likewise.
16128 * grub-core/loader/i386/pc/plan9.c: New file.
16129 * grub-core/partmap/plan.c: Likewise.
16130 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16131 define.
16132 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16133 * include/grub/mm.h (grub_extend_alloc): New inline function.
16134
c30be3b6
VS
161352011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16136
16137 Make Reed-Solomon faster by using power of generator representation of
16138 GF(256)*.
16139
16140 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16141 (gf_double_t): Likewise.
16142 (gf_invert): Removed.
16143 (gf_powx): New array.
16144 (gf_powx_inv): Likewise.
16145 (scratch): Move higher.
16146 (gf_reduce): Removed.
16147 (gf_mul): Use powx.
16148 (gf_invert): Likewise.
16149 (init_inverts): Replaced with ...
16150 (init_powx): ...this. All users updated.
16151 (pol_evaluate): Replace multiplications with additions.
16152 (rs_encode): Likewise.
16153 (gauss_eliminate): Call gf_invert.
16154 (grub_reed_solomon_add_redundancy): Call init_powx.
16155 (grub_reed_solomon_recover): Call init_powx unconditionally.
16156
fa5aeffc
VS
161572011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16158
16159 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16160
a346b81c
VS
161612011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16162
16163 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16164 disk->partiton for safety.
16165
d89ee414
VS
161662011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16167
16168 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16169 Fix a memory leak.
16170 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16171
91ee7b6d
VS
161722011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16173
16174 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16175
91e5a33d
VS
161762011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16177
16178 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16179
9edd7be2
VS
161802011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16181
16182 Fix spaces handling in proc/self/mountinfo.
16183
16184 * util/getroot.c (unescape): New function.
16185 (grub_find_root_device_from_mountinfo): Use unescape.
16186
ba102053
VS
161872011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16188
16189 Support ZFS embedding.
16190
16191 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16192 (grub_zfs_fs): Register grub_zfs_embed.
16193
aa94b870
VS
161942011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16195
16196 Fix MIPS compilation.
16197
16198 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16199 * include/grub/offsets.h: Rename decompressor fields from
16200 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16201 * util/grub-mkimage.c (image_targets): Use new names.
16202
5fbdac14
VS
162032011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16204
16205 Defer multiboot device parsing until we're in compressed part.
16206
16207 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16208 bsd_part. setdevice has fallen into disuse.
16209 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16210 (bsd_part): Likewise.
16211 (boot_dev): New variable.
16212 (multiboot_trampoline): Don't parse multiboot device.
16213 Pass multiboot device in %edx.
16214 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16215 grub_boot_device.
16216 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16217 Likewise.
16218 * grub-core/kern/i386/pc/startup.S: Save edx.
16219 (grub_boot_drive): Removed.
16220 (grub_install_dos_part): Likewise.
16221 (grub_install_bsd_part): Likewise.
16222 (grub_boot_device): New variable.
16223 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16224 (grub_install_bsd_part): Likewise.
16225 (grub_boot_drive): Likewise.
16226 (grub_boot_device): New variable.
16227 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16228 Removed.
16229 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16230 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16231 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16232 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16233 * util/grub-install.in: Remove redundant condition.
16234
691cbb58
VS
162352011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16236
16237 Fix bug introduced by previous commit.
16238
16239 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16240
60240b8b
VS
162412011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16242
16243 Use decompressors framework on i386-pc. It increases core size
16244 by 46 bytes but improves compatibility and maintainability.
16245
16246 * grub-core/Makefile.core.def (lzma_decompress): New image.
16247 (kernel): Add i386_pc_ldflags.
16248 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16249 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16250 to real_to_prot, prot_to_real and device info.
16251 * include/grub/offsets.h: Renamed decompressor offsets.
16252 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16253 (image_target_desc): Remove raw_size and rename decompressor fields.
16254 (compress_kernel): Handle lzma.
16255 (generate_image): Handle decompressors on i386-pc.
16256
e9d3421c
VS
162572011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16258
16259 * configure.ac: Add -fno-asynchronous-unwind-tables.
16260
2b23074a
VS
162612011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16262
16263 Move assembly code to C by using intwrap. It increases core size
16264 by 88 bytes but improves compatibility and maintainability.
16265
16266 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16267 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16268 ... here. Translated to C.
16269 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16270 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16271 ... here. Translated to C.
16272 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16273 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16274 ... here. Translated to C.
16275 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16276 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16277 ... here. Translated to C.
16278 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16279 * grub-core/term/i386/pc/console.c (grub_console_cls):
16280 ... here. Translated to C.
16281 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16282 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16283 ... here. Translated to C.
16284 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16285 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16286 Translated to C.
16287 * grub-core/term/i386/pc/console.c (int10_9): New function.
16288 (grub_console_putchar): Likewise.
16289 * include/grub/i386/pc/console.h: Removed the not anymore shared
16290 functions.
16291
678f4b67
VS
162922011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16293
16294 Move grub_chainloader_real_boot out of the kernel.
16295
16296 * grub-core/Makefile.am: Remove machine/loader.h.
16297 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16298 Removed.
16299 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16300 variable.
16301 (grub_relocator16_keep_a20_enabled): Likewise.
16302 (grub_relocator16_boot): Fill new variables.
16303 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16304 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16305 relocator.
16306 (grub_chainloader_unload): Likewise.
16307 (grub_chainloader_cmd): Likewise.
16308 * include/grub/i386/pc/loader.h: Removed.
16309 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16310 and esi. All initialisers updated.
16311
4626edf6
VS
163122011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
163132011-11-12 Colin Watson <cjwatson@ubuntu.com>
16314
16315 * Makefile.util.def (grub-mount): New util.
16316 * .bzrignore: Add grub-mount.
16317 * configure.ac: Check for fuse and enable grub-mount if available.
16318 * docs/man/grub-mount.h2m: New file.
16319 * util/grub-mount.c: Likewise.
16320
10f0117b
VS
163212011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16322
16323 * grub-core/commands/efi/fixvideo.c: Gettextize.
16324 * grub-core/commands/hashsum.c: Likewise.
16325 * grub-core/commands/i386/cmostest.c: Likewise.
16326 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16327 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16328 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16329 * grub-core/commands/lsmmap.c: Likewise.
16330 * grub-core/commands/menuentry.c: Likewise.
16331 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16332 * grub-core/commands/setpci.c: Likewise.
16333 * grub-core/loader/i386/bsd.c: Likewise.
16334 * grub-core/loader/i386/linux.c: Likewise.
16335 * util/getroot.c: Likewise.
16336 * util/grub-editenv.c: Likewise.
16337 * util/grub-fstest.c: Likewise.
16338 * util/grub-mkfont.c: Likewise.
16339 * util/grub-mkimage.c: Likewise.
16340 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16341 * util/grub-pe2elf.c: Likewise.
16342 * util/grub-probe.c: Likewise.
16343 * util/grub-setup.c: Likewise.
16344 * util/ieee1275/ofpath.c: Likewise.
16345 * util/misc.c: Likewise.
16346 * util/raid.c: Likewise.
16347
566f779b
RM
163482011-11-11 Robert Millan <rmh@gnu.org>
16349
16350 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16351 __attribute__((unused)) from `os_dev', which *is* being used.
16352
b50787de
VS
163532011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16354
16355 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16356 forgotten define.
16357 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16358 GRUB_IA64_DL_GOT_ALIGN.
16359 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16360 GRUB_IA64_DL_TRAMP_ALIGN.
16361
119d11c8
VS
163622011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16363
16364 Replace grub_fatal with normal errors in i386 linux loader.
16365
16366 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16367 (allocate_pages): Check find_efi_mmap_size return value.
16368 (grub_e820_add_region): Return error.
16369 (grub_linux_boot): Check mmap return value.
16370
6e0632e2
VS
163712011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16372
16373 * grub-core/commands/acpihalt.c: Gettextized.
16374 * grub-core/commands/cacheinfo.c: Likewise.
16375 * grub-core/commands/cmp.c: Likewise.
16376 * grub-core/commands/efi/loadbios.c: Likewise.
16377 * grub-core/commands/gptsync.c: Likewise.
16378 * grub-core/commands/ieee1275/suspend.c: Likewise.
16379 * grub-core/commands/legacycfg.c: Likewise.
16380 * grub-core/commands/memrw.c: Likewise.
16381 * grub-core/commands/minicmd.c: Likewise.
16382 * grub-core/commands/parttool.c: Likewise.
16383 * grub-core/commands/time.c: Likewise.
16384 * grub-core/commands/videoinfo.c: Likewise.
16385 * grub-core/disk/geli.c: Likewise.
16386 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16387 * grub-core/disk/luks.c: Likewise.
16388 * grub-core/disk/lvm.c: Likewise.
16389 * grub-core/font/font_cmd.c: Likewise.
16390 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16391 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16392 * grub-core/gfxmenu/view.c: Likewise.
16393 * grub-core/kern/emu/hostdisk.c: Likewise.
16394 * grub-core/kern/emu/main.c: Likewise.
16395 * grub-core/kern/emu/misc.c: Likewise.
16396 * grub-core/kern/emu/mm.c: Likewise.
16397 * grub-core/kern/mips/arc/init.c: Likewise.
16398 * grub-core/kern/mips/loongson/init.c: Likewise.
16399 * grub-core/kern/partition.c: Likewise.
16400 * grub-core/lib/i386/halt.c: Likewise.
16401 * grub-core/lib/mips/arc/reboot.c: Likewise.
16402 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16403 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16404 * grub-core/loader/i386/xnu.c: Likewise.
16405 * grub-core/loader/multiboot.c: Likewise.
16406 * grub-core/net/bootp.c: Likewise.
16407 * grub-core/net/net.c: Likewise.
16408 * grub-core/normal/term.c: Likewise.
16409 * grub-core/partmap/bsdlabel.c: Likewise.
16410 * grub-core/parttool/msdospart.c: Likewise.
16411 * grub-core/term/gfxterm.c: Likewise.
16412 * grub-core/term/terminfo.c: Likewise.
16413 * grub-core/video/i386/pc/vbe.c: Likewise.
16414 * util/grub-menulst2cfg.c: Likewise.
16415 * util/grub-mkdevicemap.c: Likewise.
16416 * util/grub-mklayout.c: Likewise.
16417 * util/grub-mkrelpath.c: Likewise.
16418 * util/grub-script-check.c: Likewise.
16419 * util/ieee1275/grub-ofpathname.c: Likewise.
16420 * util/resolve.c: Likewise.
16421
073aa7a9
VS
164222011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16423
16424 Support %1$d syntax.
16425
16426 * tests/printf_unit_test.c: New file.
16427 * Makefile.util.def (printf_test): New test.
16428 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16429
c76b5417
VS
164302011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16431
16432 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16433 fix.
16434
df067ad1
VS
164352011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16436
16437 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16438 dprintf.
16439 * grub-core/font/font.c (grub_font_load): Likewise.
16440
5b289bc5
VS
164412011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16442
16443 * util/grub-macho2img.c: Add comment concerning gettext.
16444 * grub-core/lib/legacy_parse.c: Likewise.
16445
c1860f87
VS
164462011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16447
16448 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16449 (grub_xvasprintf): Likewise.
16450
d35d0d37
VS
164512011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16452
16453 Add const keyword to grub_env_get and gettextize week days.
16454
16455 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16456 (grub_read_hook_datetime): Return const char *.
16457 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16458 updated.
16459 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16460 Mark for gettext.
16461 (grub_get_weekday_name): Return const char *. Call gettext.
16462 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16463 char * and len as the argument. All users updated.
16464 (grub_script_argv_split_append): Receive const char *.
16465 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16466 * include/grub/env.h (grub_env_get): Likewise.
16467 (grub_env_read_hook_t): Return const char *.
16468 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16469 (grub_script_argv_split_append): Likewise.
16470
9aed8a71
VS
164712011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16472
16473 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16474
067fdf00
VS
164752011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16476
16477 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16478 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16479
a8bd9d39
VS
164802011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16481
16482 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16483 Fix prototype.
16484
f7ce5baf
VS
164852011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16486
16487 Fix mips compilation.
16488
16489 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16490 normal decoder.
16491 (hashes): Use in embed decoder as well (for sizes).
16492 (dec_stream_header): Fix embed decompressor logic.
16493 (dec_stream_footer): Likewise.
16494
9bb182f3
VS
164952011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16496
16497 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16498 an error and not a fatal on unrecognised relocation types.
16499
63a9e6f6
VS
165002011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16501
16502 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16503 Issue error rather than printf on unknown arguments.
16504
4c458569
VS
165052011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16506
16507 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16508 Make buf a const.
16509
e2d22baf
VS
165102011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16511
16512 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16513 Fix module name.
16514
53dc8590
VS
165152011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16516
16517 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16518 leftover debug printf.
16519
6c189294
VS
165202011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16521
16522 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16523
f7688369
VS
165242011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16525
16526 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16527 A stylistic fix.
16528
11a775a3
VS
165292011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16530
16531 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16532
33f784e8
SL
165332011-11-10 Shea Levy <slevy@tieronedesign.com>
16534
16535 Allow all modules to perform serial IO
16536
16537 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16538 * include/grub/serial.h (grub_serial_port_configure): New inline
16539 function.
16540 (grub_serial_port_fetch): Likewise.
16541 (grub_serial_port_put): Likewise.
16542 (grub_serial_port_fini): Likewise.
16543 (grub_serial_find): New proto.
16544
f6276525
VS
165452011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16546
16547 Put symlink at the end of the node and fix a potential
16548 memory corruption.
16549
16550 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16551 Make symlink into an array.
16552 (set_rockridge): Set have_symlink and alloc_dirents.
16553 (grub_iso9660_read_symlink): Use new layout.
16554 (grub_iso9660_iterate_dir): Fix memory corruption.
16555 Use new layout.
16556 (grub_iso9660_dir): Set have_symlink.
16557 (grub_iso9660_open): Likewise.
16558
c3591189
VS
165592011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16560
16561 Remove local keyword.
16562
16563 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16564 (version_test_gt): Likewise.
16565 (version_find_latest): Likewise.
16566 (gettext_printf): Likewise.
16567 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16568
cb544caa
VS
165692011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16570
16571 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16572
45bd824d
VS
165732011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16574
16575 Fix ZFS memory and resource leaks.
16576
16577 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16578 All users updated.
16579 Free type on exit.
16580 (fill_vdev_info): New parameter inserted. All users updated.
16581 (check_pool_label): Likewise.
16582 (scan_disk): Likewise.
16583 (scan_devices): Close non-inserted disks.
16584 (fzap_iterate): Free l.
16585 (unmount_device): Free children descripto memory.
16586
ad9a2f44
VS
165872011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16588
16589 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16590 argument (access out of bounds).
16591
6b68db81
VS
165922011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16593
16594 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16595 >= 6 drives.
16596
28840fda
VS
165972011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16598
16599 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16600 Fix declaration.
16601
8a5a3a5b
VS
166022011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16603
16604 Fix several memory leaks.
16605
16606 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16607 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16608 (grub_cpio_dir): Likewise.
16609 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16610 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16611 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16612 (grub_romfs_label): Likewise.
16613 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16614 (squash_unmount): New function.
16615 (grub_squash_dir): Fix memory leak.
16616 (grub_squash_open): Likewise.
16617 (grub_squash_read): Likewise.
16618 (grub_squash_mtime): Likewise.
16619 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16620 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16621 * util/grub-fstest.c (fstest): Likewise.
16622
57b01250
VS
166232011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16624
16625 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16626 avoid accessing beyond the array.
16627
19e81ba7
VS
166282011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16629
16630 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16631
52b656c0
VS
166322011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16633
16634 Several AFFS fixes.
16635
16636 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16637 (GRUB_AFFS_FLAG_FFS): Removed.
16638 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16639 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16640 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16641 (grub_fshelp_node): Make block 32-bit.
16642 Add block_cache and last_block_cache.
16643 (grub_affs_read_block): Fill and use block cache.
16644 (grub_affs_read_file): Removed.
16645 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16646 boot block.
16647 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16648 safety.
16649 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16650 space.
16651 (grub_affs_close): Free block cache.
16652 (grub_affs_read): Use grub_fshelp_read_file directly.
16653
438a746a
VS
166542011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16655
16656 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16657 with no error set.
16658
49a45021
VS
166592011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16660
16661 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16662 used variable.
16663 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16664 Likewise.
16665
3ae17eb8
VS
166662011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16669
16670 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16671 byteswap when needed.
16672
27610c38
VS
166732011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16674
16675 Fix FreeBSD compilation.
16676
16677 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16678 to avoid circular dependency.
16679 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16680 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16681 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16682
4a19b601
VS
166832011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16684
16685 Fix ZFS crypto error types.
16686
16687 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16688 (grub_gcm_decrypt): Likewise.
16689 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16690 from PBKDF2.
16691
958ee221
VS
166922011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16693
16694 Illumos support.
16695
16696 * Makefile.util.def (10_illumos): New script.
16697 * configure.ac: Set COND_HOST_ILLUMOS.
16698 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16699 Support Illumos calls.
16700 (find_partition_start) [__sun__]: Likewise.
16701 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16702 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16703 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16704 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16705 device.
16706 * util/grub-probe.c (probe) [__sun__]: Do character check.
16707 * util/grub.d/10_illumos.in: New file.
16708
cac14fb6
VS
167092011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16710
16711 Support escaped commas in hostdisk.
16712
16713 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16714 (find_grub_drive): Use unescape_cmp.
16715 (make_device_name): Escape commas.
16716
78e08dc3
VS
167172011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16718
16719 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16720
9f421dd1
VS
167212011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16722
16723 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16724 variable.
16725
ed64e9e2
VS
167262011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16727
16728 Support trampoline jumps on powerpc.
16729
16730 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16731 __ia64__ path.
16732 (grub_dl_load_segments): Set mod->sz.
16733 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16734 segments.
16735 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16736 (jump): Likewise.
16737 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16738 function.
16739 (trampoline): New struct.
16740 (trampoline_template): New const.
16741 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16742 * include/grub/dl.h (grub_dl): Add sz element.
16743 [__powerpc__]: Follow __ia64__.
16744 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16745 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16746 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16747 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16748
3084ede4
VS
167492011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16750
16751 ZFS crypto support.
16752
16753 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16754 * grub-core/Makefile.core.def (zfscrypt): New module.
16755 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16756 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16757 it. All users updated.
16758 (grub_zfs_decrypt): New var.
16759 (grub_zfs_load_key): Likewise.
16760 (zio_checksum_functions): Add SHA256+MAC.
16761 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16762 (zio_read): Handle encrypted blocks.
16763 (zap_verify): Remove incorrect check.
16764 (fzap_iterate): Handle non-standard fzap.
16765 (zap_iterate): Likewise.
16766 (zap_iterate_u64): New function.
16767 (dnode_get_fullpath): Load keys.
16768 * grub-core/fs/zfs/zfscrypt.c: New file.
16769 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16770 (grub_crypto_ecb_encrypt): Make input const.
16771 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16772 (grub_crypto_ecb_encrypt): Make input const.
16773 (GRUB_CIPHER_AES): New macro.
16774 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16775 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16776 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16777 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16778 prefix. All users updated.
16779 (grub_zfs_add_key): New proto.
16780 (grub_zfs_decrypt): Likewise.
16781 (grub_zfs_load_key): Likewise.
16782 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16783 * util/grub-fstest.c (options): Add -K option.
16784 (argp_parser): Likewise.
16785
b632b404
VS
167862011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16787
16788 Support zle compression on ZFS.
16789
16790 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16791 (decomp_table): Add zle.
16792 * include/grub/zfs/zio.h (zio_compress): Add zle.
16793
c7ba4f69
VS
167942011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16795
16796 Support BtrFS embedding.
16797
16798 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16799 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16800 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16801 * util/grub-setup.c (setup): Use fs embedding if available.
16802 Add additional sanity check.
16803
455377d9
VS
168042011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16805
16806 * util/grub-install.in: Fix condition for config_opt.
16807
c2fd16ca
VS
168082011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16809
16810 Support third redundancy strip on raidz3.
16811
16812 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16813 Return error on singularity. All users updated.
16814 (read_device): Don't stop on 3rd failure on raidz3.
16815
8622923b
VS
168162011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16817
16818 Support case-insensitive ZFS subvolumes.
16819
16820 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16821 All users updated.
16822 (zap_hash): Likewise.
16823 (name_cmp): New function.
16824 (zap_leaf_array_equal): New parameter case_insensitive.
16825 All users updated.
16826 (zap_leaf_lookup): Likewise.
16827 (fzap_lookup): Likewise.
16828 (zap_lookup): Likewise.
16829 (dnode_get_path): New parameter case_insensitive. Retrieve case
16830 sensitiviness of a volume. All users updated.
16831 (dnode_get_fullpath): New parameter case_insensitive.
16832 All users updated.
16833 (grub_zfs_dir): Set info.case_insensitiveness.
16834
95f2e860
VS
168352011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16836
16837 Support second redundancy strip on raidz(2,3).
16838
16839 * grub-core/fs/zfs/zfs.c (powx): New array.
16840 (powx_inv): Likewise.
16841 (poly): New const.
16842 (xor_out): New function.
16843 (gf_mul): Likewise.
16844 (recovery): Likewise.
16845 (read_device): Use second redundancy strip.
16846
11ee4389
VS
168472011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16848
16849 Use a power of generator representation of GF(256) multiplication group
16850 to save space time and complexity.
16851
16852 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16853 (raid6_table2): Likewise.
16854 (powx): New array.
16855 (powx_inv): Likewise.
16856 (poly): New const.
16857 (grub_raid_block_mul): Replace with ...
16858 (grub_raid_block_mulx): ...this.
16859 (grub_raid6_init_table): Rewritten.
16860 (grub_raid6_recover): Use power of generator representation.
16861
09e2763f
VS
168622011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16863
16864 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16865 for the right device.
16866
8bec9a28
VS
168672011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16868
16869 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16870 expected by grub-mkimage and it's more clear since there is no implicit
16871 padding.
16872
dbd3a32e
VS
168732011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16874
16875 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16876 disk.
16877 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16878
182c872a
PMH
168792011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16880
16881 * util/grub-mkrescue.in: Fix handling xorriso option.
16882
1e51cabd
VS
168832011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16884
16885 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16886 NULL.
16887
9cc3581d 168882011-11-03 crocket <crockabiscuit@gmail.com>
16889
16890 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16891
158dc1ea
VS
168922011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16893
16894 XZ CRC64 and SHA256 support.
16895
16896 * Makefile.util.def (libgrubmods): Add crc64.c.
16897 * grub-core/Makefile.core.def (crc64): New module.
16898 * grub-core/lib/crc64.c: New file.
16899 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16900 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16901 Fix the type.
16902 (MAX_HASH_SIZE): New define.
16903 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16904 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16905 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16906 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16907 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16908 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16909 Handle non-crc32 hashes.
16910 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16911 (dec_stream_header): Handle non-crc32 hashes.
16912 (dec_stream_footer): Likewise.
16913 (dec_block_header): Likewise.
16914 (dec_main): Likewise.
16915 (xz_dec_init): Likewise.
16916 (xz_dec_reset): Likewise.
16917 (xz_dec_end): Likewise.
16918 * util/import_gcry.py: Add CRC64 line.
16919
9d9b3d2f
VS
169202011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16923 as well.
16924
7d0ac931
VS
169252011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16926
16927 Make reiserfs label retrieval similar to other *_label functions.
16928
16929 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16930 (REISERFS_MAX_LABEL_LENGTH): Removed.
16931 (REISERFS_LABEL_OFFSET): Likewise.
16932 (grub_reiserfs_label): Rewritten.
16933
169342011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16935
16936 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16937 field.
16938
cf5ba824
VS
169392011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16940
16941 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16942
17744004
VS
169432011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16944
16945 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16946 drive failure on both raidz and raidz2.
16947
aca5aefc
VS
169482011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16949
16950 Fix RAIDZ(2) for >= 5 devices.
16951
16952 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16953 asize argument. All users updated.
16954
ce8ca56e
VS
169552011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16956
16957 Fix RAIDZ(2).
16958
16959 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16960 (fill_vdev_info_real): Set ashift.
16961 (read_device): Rewrite RAIDZ part based on reverse engineering.
16962
7c01e783
VS
169632011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16964
16965 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16966 don't report potentially unavialiable fields in debug output.
16967 (find_path): Fix double-free and memory leak.
16968
ce109e84
VS
169692011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16970
16971 Read label on UFS1.
16972
16973 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16974 (grub_ufs_fs): Always set .label.
16975
87661123
VS
169762011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16977
16978 Use shifts in UFS.
16979
16980 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16981 (grub_ufs_data): New field log2_blksz.
16982 (grub_ufs_read_file): Use shifts.
16983 (grub_ufs_mount): Check block size and logarithm it.
16984
46bc1dc2
VS
169852011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16986
16987 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16988 long symlinks.
16989
19ee2987
VS
169902011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16991
16992 Handle symlinks and long names on tar and cpio.
16993
16994 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16995 (ATTR_FILE): Likewise.
16996 (ATTR_DIR): Likewise.
16997 (ATTR_LNK): Likewise.
16998 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16999 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17000 L and K entries.
17001 (grub_cpio_mount): Zero-fill data.
17002 (handle_symlink): New function.
46bc1dc2
VS
17003 (grub_cpio_dir): Handle symlinks.
17004 (grub_cpio_open): Likewise.
17005 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 17006
c83a08d8
VS
170072011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17008
17009 Fix iso9660 filename limitations and fix memory leaks.
17010
17011 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17012 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17013
45cdd3ea
VS
170142011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17015
17016 Fix JFS file name length limitations.
17017
17018 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17019 (grub_jfs_diropen): Fix maximum filename length.
17020 (grub_jfs_getent): Fix filename length.
17021 (grub_jfs_lookup_symlink): Fix size checks.
17022
94ef05c2
VS
170232011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17024
17025 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17026 string.
17027
785ab8c7
VS
170282011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17029
eb0b6b45
VS
17030 Leverage BFS implementation to read AFS.
17031
17032 * Makefile.util.def (libgrubmods): Add afs.c.
17033 * grub-core/Makefile.core.def (afs): New module
17034 * grub-core/fs/afs.c: New file.
17035 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17036
170372011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17038
17039 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 17040
c4a1628f
VS
170412011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17042
17043 * grub-core/fs/bfs.c: Run indent.
17044
5825b379
VS
170452011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17046
17047 BFS implementation based on the specification.
17048
17049 * grub-core/fs/bfs.c: New file.
17050 * Makefile.util.def (libgrubmods): Add bfs.c.
17051 * grub-core/Makefile.core.def (bfs): New module.
17052
42b2a706
VS
170532011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17054
17055 * util/grub-fstest.c (cmd_cp): Clarify error message.
17056 (cmd_cmp): Likewise.
17057
61b99bfc
YB
170582011-10-30 Yves Blusseau <blusseau@zetam.org>
17059
17060 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17061 and befs_be.
17062
faba3d16
VS
170632011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17064
17065 Remove afs and befs because of copyright problem.
17066
17067 * grub-core/fs/afs.c: Removed.
17068 * grub-core/fs/afs_be.c: Removed.
17069 * grub-core/fs/befs.c: Removed.
17070 * grub-core/fs/befs_be.c: Removed.
17071 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17072 * grub-core/Makefile.core.def (afs): Removed.
17073 (afs_be): Likewise.
17074 (befs): Likewise.
17075 (befs_be): Likewise.
17076
c39224b0
VS
170772011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17078
17079 Prefer rockridge over Joliet.
17080
17081 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17082 to ...
17083 (set_rockridge): ... here.
17084 (grub_iso9660_mount): Check rockridge on the primary label when
17085 discovering. Ignore Joliet if Rockridge is present.
17086
e551115a
VS
170872011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17088
17089 Use shifts in nilfs2.
17090
17091 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17092 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17093 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17094 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17095 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17096 (grub_nilfs2_entries_per_block): Replaced with ...
17097 (grub_nilfs2_log_entries_per_block_log): ... this.
17098 (grub_nilfs2_blocks_per_group): Replaced with ...
17099 (grub_nilfs2_blocks_per_group_log): ... this.
17100 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17101 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17102 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17103 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17104 (grub_nilfs2_palloc_entry_offset): Replaced ...
17105 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17106 (grub_nilfs2_dat_translate): Use shifts.
17107 (grub_nilfs2_read_inode): Likewise.
17108 (GRUB_MOD_INIT): Ensure that logs are correct.
17109
564dd58c
VS
171102011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17111
17112 Use shifts in minix filesystem.
17113
17114 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17115 (GRUB_MINIX_ZONE2SECT): Likewise.
17116 (grub_minix_data): Replace block_size with log_block_size.
17117 (grub_minix_read_file): Use shifts.
17118 (grub_minix_mount): Check block size and take a logarithm.
17119
ed9ba06d
VS
171202011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17121
17122 Use shifts in squash4.
17123
17124 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17125 (squash_mount): Check block size and take logarithm.
17126 (direct_read): Use shifts.
17127
ad03fe76
VS
171282011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17129
17130 Correct befs block counting logic.
17131
17132 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17133 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17134 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17135 (grub_afs_read_inode): Use block_shift.
17136 (RANGE_SHIFT): New definition.
17137 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17138 unexpected conditions, use shifts and appropriate types.
17139 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17140
6563f63d
VS
171412011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17142
17143 * grub-core/disk/raid.c (scan_devices): Check partition.
17144 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17145
5b1ae25f
VS
171462011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17147
17148 Support BFS (befs) UUID.
17149
17150 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17151 (grub_afs_small_data_element_header): New struct.
17152 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17153 (grub_afs_read_attribute) [MODE_BFS]: New function.
17154 (grub_afs_iterate_dir): Allocate for complete inode.
17155 (grub_afs_mount): Likewise.
17156 (grub_afs_uuid) [MODE_BFS]: New function.
17157 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17158
f8d82408
VS
171592011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17160
17161 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17162 (zfs_unmount): Fix memory leak.
17163
5773fb64
VS
171642011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17165
17166 Support NTFS reparse points.
17167
17168 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17169 (symlink_descriptor): New struct.
17170 (grub_ntfs_read_symlink): New function.
17171 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17172 (grub_ntfs_open): Likewise.
17173
91c3fdde
VS
171742011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17175
17176 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17177
3be82e10
VS
171782011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17179
17180 fstest xnu_uuid subcommand.
17181
17182 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17183 grub-core/commands/xnu_uuid.c.
17184 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17185 (fstest): Handle xnu_uuid.
17186 (options): Document xnu_uuid.
17187 (argp_parser): Parse xnu_uuid.
17188
8e32442e
VS
171892011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17190
17191 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17192 -l argument. Add newline at the end if printing.
17193 (GRUB_MOD_INIT): Document -l.
17194
52a05075
VS
171952011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17196
17197 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17198
1869edb5
VS
171992011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17200
17201 ZFS multi-device and version 33 support.
17202
17203 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17204 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17205 (grub_zfs_data): Add multidev-ice-related fields.
17206 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17207 (dva_get_offset): Make dva const.
17208 (zfs_fetch_nvlist): New function.
17209 (fill_vdev_info_real): Likewise.
17210 (fill_vdev_info): Likewise.
17211 (check_pool_label): Likewise.
17212 (scan_disk): Likewise.
17213 (scan_devices): Likewise.
17214 (read_device): Likewise.
17215 (read_dva): Likewise.
17216 (zio_read_gang): Use read_dva.
17217 (zio_read_data): Likewise.
17218 (zap_leaf_lookup): Add missing endian conversion.
17219 (zap_verify): Add missing endian conversion. All users updated.
17220 (fzap_lookup): Likewise.
17221 (fzap_iterate): Likewise.
17222 (dnode_get_path): Handle SA bonus.
17223 (nvlist_find_value): Make input const. All users updated.
17224 (unmount_device): New function.
17225 (zfs_unmount): Use unmount_device.
17226 (zfs_mount): Use scan_disk.
17227 (zfs_mtime): New function.
17228 (grub_zfs_open): Handle system attributes.
17229 (fill_fs_info): Likewise.
17230 (grub_zfs_dir): Likewise.
17231 (grub_zfs_fs): Add mtime.
17232 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17233 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17234 (SA_MTIME_OFFSET): Likewise.
17235 (SA_SYMLINK_OFFSET): Likewise.
17236 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17237 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17238 (fstest): Support zfsinfo.
17239 (argp_parser): Likewise.
17240
186b4028
VS
172412011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17242
17243 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17244 error.
17245
172462011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
17247
17248 ZFS fixes.
17249
17250 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17251 sharing the same block. Iterate over correct number of indices.
17252 (dnode_get_path): Handle symlinks correctly.
17253
c0584900
VS
172542011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17255
17256 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17257
67e2bd71
VS
172582011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17259
17260 Read label on HFS+.
17261
17262 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17263 (grub_hfsplus_btree_search): Fix types.
17264 (grub_hfsplus_label): Implement.
17265
e9cc6b7b
VS
172662011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17267
17268 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17269
19832ddb
VS
172702011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17271
17272 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17273
66b40850
VS
172742011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17275
17276 Fix symlink handling on iso9660.
17277
17278 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17279 All users updated.
17280 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17281 (grub_iso9660_read_symlink): Moved most of code ...
17282 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17283
db821363
VS
172842011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17285
17286 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17287 Use union to avoid breaking strict-aliasing rules.
17288
e1211949
VS
172892011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17290
17291 Support multi-extent iso files.
17292
17293 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17294 Add node.
17295 (grub_fshelp_node): Revamp. All users updated.
17296 (FLAG_*): New enum.
17297 (read_node): New function.
17298 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17299 All users updated.
17300 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17301 (get_node_size): New function.
17302 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17303 entries.
17304 Fix memory leak on . and ..
17305 (grub_iso9660_read): Use read_node.
17306 (grub_iso9660_close): Free node.
17307
d4888031
VS
173082011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17309
17310 Fix tar 4G limit and handle paths containing dot.
17311
17312 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17313 (canonicalize): New function.
17314 (grub_cpio_find_file): Use canonicalize. Store offs in
17315 grub_disk_addr_t.
17316 (grub_cpio_dir): Use grub_disk_addr_t.
17317 (grub_cpio_open): Likewise.
17318
9f12e664
VS
173192011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17320
17321 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17322
17323 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17324 unused flags.
17325 (grub_squash_inode): Add long_file and block_size.
17326 (grub_squash_cache_inode): New struct.
17327 (grub_squash_dirent): Make types into enum.
17328 (SQUASH_TYPE_LONG_REGULAR): New type.
17329 (grub_squash_frag_desc): Add field size.
17330 (SQUASH_BLOCK_FLAGS): New enum.
17331 (grub_squash_data): Use grub_squash_cache_inode.
17332 (grub_fshelp_node): Make ino_chunk 64-bit.
17333 (read_chunk): Minor argument change. All users updated.
17334 (squash_mount): Use correct le_to_cpu.
17335 (grub_squash_open): Handle LONG_REGULAR.
17336 (direct_read): New function.
17337 (grub_squash_read_data): Handle blocks correctly.
17338
9f326fba
VS
173392011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17340
17341 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17342
f4d9b64b
VS
173432011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17344
17345 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17346
5bbd28b8
VS
173472011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17348
17349 Fix 2G limit on ZFS.
17350
17351 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17352 types.
17353 (uberblock_verify): Likewise.
17354 (dmu_read): Likewise.
17355 (grub_zfs_read): Likewise. Remove invalid cast.
17356
68c72069
VS
173572011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17358
17359 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17360 (grub_jfs_blkno): Fix incorrect shift.
17361 (grub_jfs_read_file): Use more appropriate types.
17362
6e536dc8
VS
173632011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17364
17365 Support triple indirect on minix2 and minix3.
17366
17367 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17368 Declare triple_indir_zone.
17369 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17370 indirect.
17371
e0864e7a
VS
173722011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17373
17374 Minix FS fixes.
17375
17376 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17377 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17378 Rename ctime to mtime. All users updated.
17379 (grub_minix_get_file_block): Fix types and double indirect computations.
17380
89481cab
VS
173812011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17382
17383 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17384 if no label is found.
17385 (grub_fat_iterate_dir): Fix file size type.
17386 (grub_fat_iterate_dir): Likewise.
17387
f646e143
VS
173882011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17389
17390 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17391 save some space.
17392 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17393 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17394
534d769e
VS
173952011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17396
17397 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17398
e084ba18
VS
173992011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17400
17401 * util/import_gcry.py: Accept space between # and include.
17402
3471ecdf
VS
174032011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17404
17405 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17406
124df5f6
VS
174072011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17408
17409 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17410
17411 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17412 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17413 yylex_strncpy.
17414 * grub-core/script/yylex.l: Add fine-grained #pragma.
17415
4defb8d5
VS
174162011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17417
17418 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17419 New inline function.
17420 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17421 Likewise.
17422 (memset) [GRUB_UTIL]: Likewise.
17423 (memcmp) [GRUB_UTIL]: Likewise.
17424
4e94ae65
VS
174252011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17426
17427 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17428 inline function rather than a define.
17429
18c575e5
VS
174302011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17431
17432 * util/grub-setup.c: Add missing include.
17433
f8bc22a8
VS
174342011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17435
17436 * util/ieee1275/grub-ofpathname.c: Add missing include.
17437
3ce69fc9
VS
174382011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17439
17440 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17441 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17442 Likewise.
17443
d1e293bb
VS
174442011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17445
17446 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17447 grub_memcmp usage.
17448
7a5c54a4
VS
174492011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17450
17451 * util/grub-install.in: Add datarootdir as per automake manual
17452 suggestion.
17453 * util/grub-mknetdir.in: Likewise.
17454
174552011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
17456
17457 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17458 suggestion.
17459 * util/grub.d/10_kfreebsd.in: Likewise.
17460 * util/grub.d/10_linux.in: Likewise.
17461 * util/grub.d/10_netbsd.in: Likewise.
17462 * util/grub.d/10_windows.in: Likewise.
17463 * util/grub.d/20_linux_xen.in: Likewise.
17464
766f7d08
VS
174652011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17466
17467 Remove redundant grub_kernel_image_size.
17468
17469 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17470 _edata and _start.
17471 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17472 the small code. It moves it only by few bytes but simplifies the code.
17473 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17474 _start.
17475 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17476 (grub_kernel_image_size): Removed.
17477 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17478 (grub_kernel_image_size): Removed.
17479 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17480 compiled with Apple toolchain.
17481 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17482 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17483 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17484 (grub_total_module_size): Likewise.
17485 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17486 Removed.
17487 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17488 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17489 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17490 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17491 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17492 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17493 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17494 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17495 Removed.
17496 (grub_total_module_size): Removed.
17497 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17498 (image_targets): Likewise.
17499 Set .compressed_size to no field on sparc.
17500 (generate_image): Remove kernel_image_size handling.
17501
fcf1d672
SJ
175022011-10-19 Szymon Janc <szymon@janc.net.pl>
17503
17504 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17505 NULL pointer dereference.
17506
de9c615e
VS
175072011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17508
17509 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17510 done with a dedicated section.
17511
17512 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17513 Ensure the correct position of boot_path.
17514 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17515 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17516 other fields.
17517 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17518 * include/grub/boot.h: Removed. All references removed.
17519 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17520 Removed.
17521 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17522
e55599dc
VS
175232011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17524
17525 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17526 name.
17527
36dd20ad
VS
175282011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17529
17530 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17531
f8f72eb8
VS
175322011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17533
17534 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17535 Don't add the bogus brackets.
17536
a374751b
VS
175372011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17538
17539 ExFAT support.
17540
17541 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17542 * grub-core/Makefile.core.def (exfat): New module.
17543 * grub-core/fs/exfat.c: New file.
17544 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17545 (GRUB_FAT_ATTR_*): Make into an enum.
17546 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17547 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17548 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17549 (GRUB_FAT_MAXFILE): Removed.
17550 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17551 (grub_current_fat_bpb_t): New type.
17552 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17553 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17554 (grub_fat_dir_node_t): New type.
17555 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17556 (fat_log2) [MODE_EXFAT]: Removed.
17557 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17558 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17559 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17560 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17561 (grub_fat_label) [MODE_EXFAT]: New function.
17562 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17563 reserved_first_sector to 0.
17564
544c2487
VS
175652011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17566
17567 Move grub_reboot out of the kernel.
17568
17569 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17570 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17571 * grub-core/lib/efi/reboot.c: ... here.
17572 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17573 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17574 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17575 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17576 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17577 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17578 * grub-core/lib/ieee1275/reboot.c: ... here.
17579 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17580 * grub-core/lib/mips/arc/reboot.c: ... here.
17581 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17582 * grub-core/lib/mips/loongson/reboot.c: ...here.
17583 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17584 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17585 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17586 * include/grub/i386/reboot.h: New file.
17587 * include/grub/mips/loongson/ec.h: Fix includes.
17588 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17589 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17590 * grub-core/lib/i386/reboot.c: New file.
17591
a97501d2
VS
175922011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17593
17594 Make grub_prefix into module to fix the arbitrary limit and save
17595 some space.
17596
17597 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17598 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17599 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17600 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17601 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17602 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17603 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17604 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17605 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17606 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17607 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17608 * include/grub/ia64/efi/kernel.h: Removed.
17609 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17610 (grub_prefix): Removed.
17611 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17612 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17613 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17614 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17615 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17616 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17617 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17618 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17619 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17620 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17621 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17622 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17623 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17624 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17625 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17626 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17627 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17628 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17629 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17630 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17631 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17632 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17633 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17634 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17635 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17636 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17637 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17638 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17639 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17640 from module.
17641 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17642 prefix_end.
17643 (image_targets): Likewise.
17644 (generate_image): Put prefix as a module.
17645
39705fad
VS
176462011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17647
17648 Replace grub_module_iterate with FOR_MODULES.
17649
17650 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17651 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17652 (grub_efi_modules_addr): ...this.
17653 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17654 (grub_efi_init): Set grub_modbase.
17655 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17656 (grub_modbase): New variable.
17657 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17658 (grub_modbase): New variable.
17659 (grub_machine_init): Set grub_modbase.
17660 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17661 (grub_modbase): New variable.
17662 (grub_machine_init): Set grub_modbase.
17663 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17664 (grub_modbase): New variable.
17665 (grub_machine_init): Set grub_modbase.
17666 * grub-core/kern/main.c (grub_module_iterate): Remove.
17667 (grub_modules_get_end): Use grub_modbase.
17668 (grub_load_modules): Use FOR_MODULES.
17669 (grub_load_config): Likewise.
17670 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17671 (grub_modbase): New variable.
17672 (grub_machine_init): Set grub_modbase.
17673 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17674 (grub_modbase): New variable.
17675 (grub_machine_init): Set grub_modbase.
17676 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17677 Removed.
17678 (grub_modbase): New variable.
17679 (grub_machine_init): Set grub_modbase.
17680 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17681 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17682 (grub_module_iterate): Likewise.
17683 (grub_modbase): New variable declaration.
17684 (FOR_MODULES): New macro.
17685
2afb7f6c
VS
176862011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17687
17688 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17689 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17690
366e34fa
VS
176912011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17692
17693 Fix few obvious type discrepancies.
17694
17695 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17696 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17697 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17698 variable.
17699 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17700 and connected types.
17701 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17702 offset.
17703 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17704 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17705 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17706 and connected types.
17707
177b960e
VS
177082011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17709
17710 Fix python 3.x incompatibilities.
17711
17712 * gentpl.py: Put brackets around print strings.
17713 * util/import_gcry.py: Open explicitly as utf-8.
17714 Use in instead of has_key.
17715
3b619ae1
VS
177162011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17717
17718 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17719 (GRUB_XFS_INO_AGBITS): Make into inline function.
17720 (GRUB_XFS_INO_INOINAG): Likewise.
17721 (GRUB_XFS_INO_AG): Likewise.
17722 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17723 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17724 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17725 (GRUB_XFS_EXTENT_SIZE): Likewise.
17726 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17727 (GRUB_XFS_NEXT_DIRENT): Likewise.
17728 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17729 (grub_xfs_read_file): Fix offset type.
17730
8bcebcb8
RM
177312011-10-15 Robert Millan <rmh@gnu.org>
17732
17733 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17734
0017e5ef
RM
177352011-10-15 Robert Millan <rmh@gnu.org>
17736
17737 Fix build problem on FreeBSD and GNU/kFreeBSD.
17738
17739 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17740
d8919552
VS
177412011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17742
17743 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17744
17745 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17746 types.
17747 (grub_hfsplus_btree_recoffset): Likewise.
17748 (grub_hfsplus_btree_recptr): Likewise.
17749 (grub_hfsplus_find_block): Likewise.
17750 (grub_hfsplus_btree_search): Likewise.
17751 (grub_hfsplus_read_block): Likewise.
17752 (grub_hfsplus_read_file): Likewise.
17753 (grub_hfsplus_mount): Likewise.
17754 (grub_hfsplus_btree_iterate_node): Likewise.
17755 (grub_hfsplus_btree_search): Likewise.
17756 (grub_hfsplus_iterate_dir): Likewise.
17757 (grub_hfsplus_read): A small code simplification.
17758
c81296b6
VS
177592011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17760
17761 * grub-core/kern/emu/hostdisk.c
17762 (convert_system_partition_to_system_disk): Don't assume that children
17763 of mapper nodes are mapper nodes.
17764
0eb8ffb1
VS
177652011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17766
17767 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17768 * include/grub/misc.h (grub_isxdigit): New function.
17769 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17770 switched to grub_isxdigit.
17771 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17772 number starting with a letter.
17773
a98f4a08
RM
177742011-10-09 Robert Millan <rmh@gnu.org>
17775
17776 LVM support for FreeBSD and GNU/kFreeBSD.
17777
17778 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17779 GNU/kFreeBSD.
17780 (LVM_DEV_MAPPER_STRING): Move from here ...
17781 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17782 * util/getroot.c: Include `<grub/util/lvm.h>'.
17783 (grub_util_get_dev_abstraction): Enable
17784 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17785 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17786 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17787 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17788 support it.
17789 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17790 GNU/kFreeBSD.
17791 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17792 when LVM abstraction is required for ${GRUB_DEVICE}.
17793
050e8e90
SJ
177942011-10-06 Szymon Janc <szymon@janc.net.pl>
17795
17796 Add support for LZO compression in GRUB:
17797 - import of minilzo library,
17798 - LZO decompression for btrfs,
17799 - lzop files decompression.
17800
17801 * grub-core/io/lzopio.c: New file.
17802 * grub-core/lib/adler32.c: Likewise.
17803 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17804 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17805 * grub-core/lib/minilzo/minilzo.c: Likewise.
17806 * grub-core/lib/minilzo/minilzo.h: Likewise.
17807 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17808 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17809 grub-core/lib/minilzo/minilzo.c to common.
17810 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17811 cflags in cppflags.
17812 * grub-core/Makefile.core.def (btrfs): Likewise.
17813 * grub-core/Makefile.core.def (lzopio): New module.
17814 (adler32): Likewise.
17815 * grub-core/fs/btrfs.c: Include minilzo.h.
17816 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17817 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17818 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17819 (grub_btrfs_lzo_decompress): New function.
17820 (grub_btrfs_extent_read): Add support for LZO compression type.
17821 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17822 (GRUB_USHRT_MAX): Likewise.
17823 (GRUB_UINT_MAX): Likewise.
17824 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17825 (UINT_MAX): Likewise.
17826 (CHAR_BIT): Likewise.
17827 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17828 grub-core/lib/posix_wrap/limits.h
17829 (UCHAR_MAX): Likewise.
17830 * include/grub/file.h (grub_file_filter_id): New compression filter
17831 GRUB_FILE_FILTER_LZOPIO.
17832 * include/grub/file.h (grub_file_filter_id): Set
17833 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17834 * include/grub/types.h (grub_get_unaligned16): New function.
17835 (grub_get_unaligned32): Likewise.
17836 (grub_get_unaligned64): Likewise.
17837 * util/import_gcry.py (cryptolist): Add adler32.
17838
0eb8ffb1
VS
178392011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17840
17841 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17842 in perspective decreases the complexity of build system and fixes
17843 compilation right now.
17844
ce79cc99 178452011-10-01 Ales Nesrsta <starous@volny.cz>
17846
17847 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17848 (fixed problem related to using UHCI with coreboot).
17849
8667a314
BC
178502011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17851
17852 * gentpl.py: Use Autogen macros so that the output template file
17853 (Makefile.tpl) size is reduced.
17854
fc5efcc0
MK
178552011-09-29 Mads Kiilerich <mads@kiilerich.com>
17856
17857 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17858 extra_dist.
17859
d1ab689d
ML
178602011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17861
17862 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17863 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17864
c05de032
ML
178652011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17866
17867 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17868 _fullpath.
17869
cca7ccd8
ML
178702011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17871
17872 Remove extra declaration of sleep for mingw32.
17873
17874 * util/misc.c (sleep) [__MINGW32__]: Removed.
17875 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17876
e0b0dc83
GS
178772011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17878
17879 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17880 type and packname.
17881 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17882 Resurrected.
17883 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17884 (grub_netbsd_btinfo_bootwedge): New struct.
17885 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17886 New function.
17887 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17888
91a1a164
TH
178892011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17890
17891 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17892 loader.
17893
2ded951e
AB
178942011-09-28 Andreas Born <futur.andy@googlemail.com>
17895
17896 Fix incorrect identifiers in bash-completion.
17897
17898 * util/bash-completion.d/grub-completion.bash.in
17899 (_grub_mkpasswd-pbkdf2): Rename to ...
17900 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17901 (_grub_script-check): Rename to ...
17902 (_grub_script_check): ... this. All users updated.
17903
69915030
VS
179042011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17905
17906 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17907 Return 0 if disk isn't biosdisk.
17908
20fd15f9
GS
179092011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17910
17911 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17912 on NetBSD.
17913 * Makefile.util.def (grub-fstest): Likewise.
17914
1a7d7db9
GS
179152011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17916
17917 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17918 Get sector size from disk label.
17919
2221ab6c
CW
179202011-09-05 Colin Watson <cjwatson@ubuntu.com>
17921
17922 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17923 */README* as well as README*.
17924 Reported by: Axel Beckert.
17925
ca51c4a0
VS
179262011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17927
17928 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17929 case of less than 256 MiB of RAM.
17930
ab80f326
VS
179312011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17932
17933 * grub-core/commands/wildcard.c (make_regex): Handle @.
17934
4155e697
VS
179352011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17936
17937 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17938
ab178c08
SJ
179392011-08-21 Szymon Janc <szymon@janc.net.pl>
17940
17941 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17942 AC_LANG_CONFTEST macros.
17943
7dc3c686
SJ
179442011-08-20 Szymon Janc <szymon@janc.net.pl>
17945
17946 Add grub-fstest option to uncompress data for commands.
17947
17948 * util/grub-fstest.c (uncompress): New var.
17949 (options): New option -u.
17950
fe8d4a7b
SJ
179512011-08-20 Szymon Janc <szymon@janc.net.pl>
17952
17953 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17954 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17955
a5219af1
SJ
179562011-08-20 Szymon Janc <szymon@janc.net.pl>
17957
17958 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17959 file type was not recognized correctly (not gzip or corrupted).
17960
f87abff5
VS
179612011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17962
17963 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17964 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17965
d94497ea
VS
179662011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17967
17968 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17969 loongson.
17970 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17971 video_radeon_fuloong2e.
17972 * grub-core/video/radeon_fuloong2e.c: New file.
17973 * include/grub/video.h (grub_video_id_t): Add new ID
17974 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17975
0d1fd011
VS
179762011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17977
17978 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17979 define.
17980 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17981 that PRID matches the detected subplatform and reset the subplatform
17982 if it doesn't.
17983
84beb0ee
VS
179842011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17985
17986 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17987
1227c133
VS
179882011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17989
17990 Fix PCI iterating on functions >= 4.
17991
17992 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17993 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17994 Removed.
17995 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17996 (grub_pci_read): Fix bitmask.
17997 (grub_pci_read_word): Likewise.
17998 (grub_pci_read_byte): Likewise.
17999 (grub_pci_write): Likewise.
18000 (grub_pci_write_word): Likewise.
18001 (grub_pci_write_byte): Likewise.
18002
9594c689
VS
180032011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18004
18005 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18006 can still be specified in TARGET_CFLAGS)
18007
14a2562c
VS
180082011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18009
18010 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18011
18012 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18013 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18014 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18015 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18016 (FULOONG): Rename to ...
18017 (FULOONG2F): ... this. All users updated.
18018 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18019 (machtype_fuloong2f_str): ... this.
18020 (machtype_fuloong2e_str): New string.
18021 Check for machtype_fuloong2e_str.
18022 * grub-core/loader/mips/linux.c (loongson_machtypes)
18023 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18024 * grub-core/term/serial.c (loongson_defserial)
18025 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18026 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18027 loongson_defserial.
18028 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18029 Rename to ...
18030 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18031 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18032 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18033 to IMAGE_FULOONG2F_FLASH. All users updated.
18034 (image_targets): Rename images.
18035 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18036
b526cbb6
SJ
180372011-08-19 Szymon Janc <szymon@janc.net.pl>
18038
18039 Make enable of disk cache statistics code configurable.
18040
18041 * configure.ac: --enable-cache-stats added.
18042 * config.h.in (DISK_CACHE_STATS): New define.
18043 * grub-core/Makefile.core.def (cacheinfo): New command.
18044 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18045 * grub-core/commands/cacheinfo.c: New file.
18046 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18047 moved to cacheinfo.c.
18048 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18049 debug code.
18050 * include/grub/disk.h: Likewise.
18051
fb739ccd
SJ
180522011-08-19 Szymon Janc <szymon@janc.net.pl>
18053
18054 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18055 * grub-core/Makefile.am: Likewise.
18056
2bba8cfd
VS
180572011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18058
18059 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18060 non-zero pull.
18061
43526629
VS
180622011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18063
18064 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18065 All users updated.
18066 (grub_jfs_lookup_symlink): Use correct starting inode.
18067
5c144cc8
VS
180682011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18069
18070 * util/grub-setup.c (main): Add missing gcry initialisation.
18071
b1257f65
VS
180722011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18073
18074 Don't accept text modes on EFI when booting Linux.
18075
18076 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18077 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18078
828bc390
ML
180792011-08-15 Mario Limonciello <mario_limonciello@dell.com>
180802011-08-15 Colin Watson <cjwatson@ubuntu.com>
18081
18082 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18083 use of "/path/.." as in grub-install for EFI as well as handling
18084 symlinks correctly.
18085 Fixes Debian bug #637768.
18086
5f60ccac
CW
180872011-08-15 Colin Watson <cjwatson@ubuntu.com>
18088
18089 * util/grub-probe.c: Remove duplicate #include.
18090
6dc212f9
RM
180912011-08-10 Robert Millan <rmh@gnu.org>
18092
18093 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18094
18095 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18096 function.
18097 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18098 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18099
66816d85
RM
181002011-08-03 Robert Millan <rmh@gnu.org>
18101
18102 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18103 la_array as packed.
18104 Reported by: Zachary Bedell
18105
20168fca
CW
181062011-07-26 Colin Watson <cjwatson@ubuntu.com>
18107
18108 * configure.ac: The Loongson port requires grub-mkfont due to its
18109 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18110 be built.
18111
303b6246
CW
181122011-07-26 Colin Watson <cjwatson@ubuntu.com>
18113
18114 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18115 processing arguments (otherwise help2man fails when GRUB has not yet
18116 been installed).
18117
6795300e
VS
181182011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18119
41aa28ea
VS
18120 New script grub-mkstandalone.
18121
18122 * Makefile.util.def (grub-mkstandalone): New script.
18123 * docs/man/grub-mkstandalone.h2m: New file.
18124 * util/grub-mkstandalone.in: Likewise.
18125
181262011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18127
18128 Support ATA disks with 4K sectors.
6795300e
VS
18129
18130 * include/grub/ata.h (grub_ata): New member log_sector_size.
18131 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18132 (grub_ata_identify): Read sector size.
18133 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18134
92227597
VS
181352011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18136
18137 * util/grub-install.in: Don't use uhci outside of x86.
18138
c77069f5
VS
181392011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18140
18141 * util/grub-mkrescue.in: Add missing quotes.
18142
181432011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
18144
18145 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18146 dereference.
18147
583168a2
VS
181482011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18149
18150 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18151
6be1c01f
VS
181522011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18153
18154 * include/grub/video.h: add missing EXPORT_FUND on
18155 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18156
a1167439
VS
181572011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18158
18159 * include/grub/mips/kernel.h: Fix define conflict.
18160
bf66054f
VS
181612011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18162
18163 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18164 all four ways.
18165
8fc4fa45
CW
181662011-07-21 Colin Watson <cjwatson@ubuntu.com>
18167
18168 Preferred resolution detection for VBE.
18169
18170 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18171 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18172 the Flat Panel extension, in line with the X.org VESA driver.
18173 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18174 New function.
18175 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18176 (grub_vbe_bios_read_edid): Likewise.
18177 (grub_vbe_get_preferred_mode): Likewise.
18178 (grub_video_vbe_setup): When the mode is "auto", try to get the
18179 preferred mode from VBE, and use the largest mode that is no larger
18180 than the preferred mode (some BIOSes expose a preferred mode that is
18181 not in their mode list!). If this fails, fall back to 640x480 as a
18182 safe conservative choice.
18183 (grub_video_vbe_get_edid): New function.
18184 (grub_video_vbe_adapter): Add get_edid.
18185 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18186 (struct grub_video_adapter): Add get_edid.
18187 (grub_video_edid_checksum): Add prototype.
18188 (grub_video_edid_preferred_mode): Likewise.
18189 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18190 structure.
18191
18192 * grub-core/commands/videoinfo.c (print_edid): New function.
18193 (grub_cmd_videoinfo): Print EDID if available.
18194
18195 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18196 is more appropriate on a wider range of platforms than 640x480.
18197 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18198 documentation.
18199
ca5572a9
VS
182002011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18201
18202 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18203
e4bcf625
VS
182042011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18205
18206 * po/POTFILES.in: Regenerate.
18207
c4edd548
VS
182082011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18209
18210 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18211 incorrect memory usage.
18212
16a2bab0
VS
182132011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18214
18215 * util/grub-install.in: Source grub-mkconfig_lib.
18216
2e418de6
VS
182172011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18218
18219 Remove getroot.c from core on emu platform.
18220
18221 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18222 kern/emu/raid.c.
18223 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18224 useless.
18225 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18226 * util/getroot.c (get_win32_path): ... here.
18227 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18228 * util/getroot.c (fini_libzfs): ... here.
18229 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18230 * util/getroot.c (grub_get_libzfs_handle): ... here.
18231 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18232 Moved from here...
18233 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18234 * grub-core/kern/emu/misc.c
18235 (grub_make_system_path_relative_to_its_root): Moved from here...
18236 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18237 * grub-core/kern/emu/getroot.c: Moved from here ...
18238 * util/getroot.c: ... here. All users updated.
18239 * grub-core/kern/emu/raid.c: Moved from here ...
18240 * util/raid.c: ... here. All users updated.
18241
def9832a
VS
182422011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18243
18244 * po/POTFILES.in: Regenerate.
18245
cd8fe79a
VS
182462011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18247
18248 Fix compilation on GNU/Linux.
18249
18250 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18251 Disable geli.
18252 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18253 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18254 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18255
a251b719
VS
182562011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
182572011-07-07 Michael Gorven <michael@gorven.za.net>
182582011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18259
18260 LUKS and GELI support.
18261
18262 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18263 grub-core/disk/luks.c, grub-core/disk/geli.c,
18264 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18265 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18266 grub-core/lib/arg.c.
18267 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18268 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18269 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18270 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18271 (grub-bin2h): Add libgcry.a.
18272 (grub-mkimage): Likewise.
18273 (grub-mkrelpath): Likewise.
18274 (grub-script-check): Likewise.
18275 (grub-editenv): Likewise.
18276 (grub-mkpasswd-pbkdf2): Likewise.
18277 (grub-pe2elf): Likewise.
18278 (grub-fstest): Likewise.
18279 (grub-mkfont): Likewise.
18280 (grub-mkdevicemap): Likewise.
18281 (grub-probe): Likewise.
18282 (grub-ofpath): Likewise.
18283 (grub-mklayout): Likewise.
18284 (example_unit_test): Likewise.
18285 (grub-menulst2cfg): Likewise.
18286 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18287 * grub-core/Makefile.core.def (cryptodisk): New module.
18288 (luks): Likewise.
18289 (geli): Likewise.
18290 * grub-core/disk/AFSplitter.c: New file.
18291 * grub-core/disk/cryptodisk.c: Likewise.
18292 * grub-core/disk/geli.c: Likewise.
18293 * grub-core/disk/luks.c: Likewise.
18294 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18295 grub_util_is_lvm.
18296 (grub_util_get_dm_abstraction): New function.
18297 (grub_util_follow_gpart_up): Likewise.
18298 (grub_util_get_geom_abstraction): Likewise.
18299 (grub_util_get_dev_abstraction): Use new functions.
18300 (grub_util_pull_device): Pull GELI and LUKS.
18301 (grub_util_get_grub_dev): Handle LUKS and GELI.
18302 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18303 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18304 (follow_geom_up): Removed.
18305 (grub_util_fd_seek): New function.
18306 (open_device): Use grub_util_fd_seek.
18307 (nread): Rename to ..
18308 (grub_util_fd_read): ... this. All users updated.
18309 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18310 (grub_crypto_cbc_decrypt): Likewise.
18311 (grub_crypto_hmac_write): Likewise.
18312 (grub_crypto_hmac_buffer): Likewise.
18313 (grub_password_get): Extend to util.
18314 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18315 New member modname.
18316 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18317 * include/grub/cryptodisk.h: New file.
18318 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18319 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18320 LUKS and GELI.
18321 (grub_util_follow_gpart_up): New proto.
18322 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18323 (grub_util_fd_read): Likewise.
18324 (grub_cryptodisk_cheat_mount): Likewise.
18325 (grub_util_cryptodisk_print_uuid): Likewise.
18326 (grub_util_get_fd_sectors): Likewise.
18327 * util/grub-fstest.c (mount_crypt): New var.
18328 (fstest): Mount crypto if requested.
18329 (options): New option -C.
18330 (argp_parser): Parse -C.
18331 (main): Init and fini gcry.
18332 * util/grub-install.in: Support cryptodisk install.
18333 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18334 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18335 cryptodisk.
18336 (prepare_grub_to_access_device): Likewise.
18337 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18338 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18339 (probe_cryptodisk_uuid): New function.
18340 (probe_abstraction): Likewise.
18341 (probe): Use new functions.
18342 * util/import_gcry.py: Create Makefile.utilgcry.def.
18343 Add modname member.
18344
9bfdcbbc
VS
183452011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18346
18347 Lazy device scanning.
18348
18349 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18350 (grub-setup): Remove util/raid.c.
18351 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18352 * grub-core/disk/lvm.c (scan_depth): New variable.
18353 (grub_lvm_iterate): Rescan if necessary.
18354 (find_lv): New function based on grub_lvm_open.
18355 (grub_lvm_open): Use find_lv. Rescan on error.
18356 (is_node_readable): New function.
18357 (is_lv_readable): Likewise.
18358 (grub_lvm_scan_device): Skip already found disks.
18359 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18360 Stop if searched device is found and readable.
18361 * grub-core/disk/raid.c (inscnt): New variable.
18362 (scan_depth): Likewise.
18363 (scan_devices): New function based on grub_raid_register. Abort if
18364 looked for device is found.
18365 (grub_raid_iterate): Rescan if needed.
18366 (find_array): NEw function based on -grub_raid_open.
18367 (grub_raid_open): Use find_array and rescan.
18368 (insert_array): Set became_readable_at.
18369 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18370 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18371 New function.
18372 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18373 (grub_util_pull_device): New function.
18374 (grub_util_get_grub_dev): Call grub_util_pull_device.
18375 * util/raid.c: Moved to ..
18376 * grub-core/kern/emu/raid.c: ... here.
18377 (grub_util_raid_getmembers): New parameter "bootable".
18378 All users updated. Support 1.x.
18379 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18380 All users updated.
18381 * include/grub/disk.h (grub_disk_pull_t): New enum.
18382 (grub_disk_dev): Change iterate prototype.
18383 All users updated.
18384 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18385 New proto.
18386 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18387 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18388 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18389 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18390 All users updated.
18391 * include/grub/util/raid.h: Removed.
18392
1c358e59
VS
183932011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18394
18395 * po/POTFILES.in: Regenerate.
18396
abee94ed
VS
183972011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18398
18399 Unify sparc init with other ieee1275.
18400
18401 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18402 instead of kern/sparc64/ieee1275/init.c.
18403 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18404 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18405 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18406 grub/machine/kernel.h.
18407 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18408 (grub_claim_heap) [__sparc__]: Use sparc version.
18409 (grub_machine_init): Moved args parsing to
18410 (grub_parse_cmdline): ...this.
18411 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18412 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18413 New definition.
18414 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18415
18416 Move BOOTP to separate file.
18417
18418 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18419 * grub-core/net/net.c: Move all BOOTP functions to
18420 * grub-core/net/bootp.c: ... here.
18421
18422 Use frame interface on PXE.
18423
18424 * grub-core/Makefile.core.def (pxecmd): Removed.
18425 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18426 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18427 * grub-core/i386/pc/pxe.c: Moved from here ...
18428 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18429 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18430 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18431
18432 EFI network support.
18433
18434 * grub-core/Makefile.core.def (efinet): New module.
18435 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18436 here...
18437 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18438 All users updated.
18439 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18440 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18441 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18442 * grub-core/net/drivers/efi/efinet.c: New file.
18443 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18444 (grub_efi_net_config): New extern var.
18445
18446 Various cleanups and bugfixes.
18447
18448 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18449 error.
18450 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18451 disk declared as partition.
18452 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18453 leak on failure.
18454 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18455 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18456 (grub_debug_zalloc): Likewise.
18457 (grub_debug_realloc): Likewise.
18458 (grub_debug_memalign): Likewise.
18459 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18460 Check that target is IPv4.
18461 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18462 local-mac-address as fallback.
18463 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18464 memory leak.
18465 * grub-core/net/ip.c (ipchksum): Rename to ...
18466 (grub_net_ip_chksum): ... this. All users updated.
18467 (grub_net_recv_ip_packets): Special handling for DHCP.
18468 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18469
18470 Unify prefix handling
18471
18472 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18473 (grub_machine_get_bootlocation): ... this.
18474 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18475 (grub_machine_get_bootlocation): ... this.
18476 (grub_prefix): New variable.
18477 (prefix): Removed.
18478 (root_dev): New variable.
18479 (dir): Likewise.
18480 (main): Use new variables.
18481 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18482 Revamped into ...
18483 (grub_machine_get_bootlocation): ... this.
18484 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18485 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18486 (grub_machine_get_bootlocation): ... this.
18487 (grub_machine_set_prefix): Removed.
18488 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18489 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18490 Revamped into ...
18491 (grub_machine_get_bootlocation): ... this.
18492 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18493 (grub_set_prefix_and_root): ... this. All users updated.
18494 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18495 Revamped into ...
18496 (grub_machine_get_bootlocation): ... this.
18497 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18498 (grub_machine_get_bootlocation): New proto.
18499 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18500
18501 Less intrusive and more reliable seek on network implementation.
18502
18503 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18504 (grub_file_seek): Don't call grub_file_net_seek.
18505 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18506 (grub_net_fs_read_real): .. this.
18507 (grub_net_seek_real): Use net->offset.
18508 (grub_net_fs_read): Seek if necessary.
18509
18510 Unify IEEE1275 netwotk config with the other platforms.
18511
18512 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18513 New variable.
18514 (grub_machine_get_bootlocation): Support network.
18515 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18516 Support type and device parsing.
18517 (grub_ieee1275_get_device_type): New function.
18518 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18519 into ...
18520 (grub_ieee1275_net_config_real): ... this.
18521 (grub_ofnet_probecards): Removed.
18522 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18523 * include/grub/ieee1275/ofnet.h: Removed.
18524 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18525 extern var.
18526 (grub_ieee1275_get_device_type): New function.
18527
18528 Unify network device closing across platforms and make more robust.
18529
18530 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18531 grub_grubnet_fini.
18532 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18533 already.
18534 * grub-core/net/net.c (grub_net_network_level_interface_register):
18535 Update num_ifaces.
18536 (grub_net_card_unregister): Close all interfaces.
18537 (receive_packets): Don't poll if no iterfaces are registered.
18538 Open if necessary.
18539 (grub_net_fini_hw): New function.
18540 (grub_net_restore_hw): Likewise.
18541 (fini_hnd): New variable.
18542 (GRUB_MOD_INIT): Register preboot hook.
18543 (GRUB_MOD_FINI): Run and unregister preboot hook.
18544
18545 Poll network cards when idle.
18546
18547 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18548 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18549 * grub-core/net/net.c (receive_packets): Save last poll time.
18550 (grub_net_poll_cards_idle_real): New function.
18551 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18552 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18553 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18554
18555 Rename ofnet interfaces.
18556
18557 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18558 (grub_ofnet_findcards): Use ofnet_%s names.
18559
18560 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18561
18562 Cleanup socket opening.
18563
18564 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18565 (grub_net_fs_close): Likewise.
18566 (grub_net_fs_read_real): Use eof member.
18567 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18568 (+grub_net_udp_close): New inline function.
18569
18570 * include/grub/net/tftp.h: Moved to the top of ...
18571 * grub-core/net/tftp.c: ... here.
18572 * include/grub/net/ip.h: Moved mostly to the top of ...
18573 * grub-core/net/ip.c: ... here.
18574 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18575 * grub-core/net/ethernet.c: ... here.
18576
18577 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18578
18579 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18580 FS name.
18581
18582 * include/grub/net/ip.h (ipv4_ini): Removed.
18583 (ipv4_fini): Likewise.
18584
18585 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18586 (grub_net_send_ip_packets): Likewise.
18587
cf1337aa
VS
185882011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18589
18590 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18591 grub_read_cmos prototype.
18592
93c06ff9
VS
185932011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18594
18595 VGA text support in qemu-mips
18596
18597 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18598 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18599 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18600 text.
18601 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18602 * grub-core/kern/vga_init.c: ... this.
18603 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18604 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18605 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18606 Adjust.
18607 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18608 GRUB_MACHINE_PCI_IO_BASE.
18609
748ccabe
VS
186102011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18611
18612 MIPS qemu flash support.
18613
18614 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18615 magic.
18616 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18617 (grub_machine_init): Probe memory if its size isn't known.
18618 * util/grub-mkimage.c (image_targets): Add flash targets.
18619 (generate_image): Handle flash targets.
18620
d7345994
VS
186212011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18622
18623 MIPS qemu at_keyboard support.
18624
18625 * gentpl.py (videoinkernel): Add qemu-mips.
18626 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18627 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18628 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18629 modules.
18630 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18631 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18632 * grub-core/term/serial.c (grub_serial_register)
18633 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18634
a07a81b3
VS
186352011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18636
18637 CMOS support on sparc.
18638
18639 * gentpl.py (cmos): Add powerpc and sparc.
18640 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18641 powerpc and sparc.
18642 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18643 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18644 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18645 grub_set_datetime_cmos.
18646 * grub-core/lib/ieee1275/cmos.c: New file.
18647 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18648 (find_rtc): Set no_ieee1275_rtc on error.
18649 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18650 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18651 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18652 fail. Move value to argument. All users updated
18653 (grub_cmos_write): Likewise.
18654 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18655 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18656 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18657 grub_get_datetime_cmos and grub_set_datetime_cmos.
18658
77546584
GS
186592011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18660
18661 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18662 sourcing grub-mkconfig_lib.
18663 * util/update-grub_lib.in: Likewise.
18664 * util/grub.d/00_header.in: Likewise.
18665 * util/grub.d/10_hurd.in: Likewise.
18666 * util/grub.d/10_kfreebsd.in: Likewise.
18667 * util/grub.d/10_linux.in: Likewise.
18668 * util/grub.d/10_netbsd.in: Likewise.
18669 * util/grub.d/10_windows.in: Likewise.
18670 * util/grub.d/20_linux_xen.in: Likewise.
18671 * util/grub.d/30_os-prober.in: Likewise.
18672
54894791
CW
186732011-06-28 Colin Watson <cjwatson@ubuntu.com>
18674
18675 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18676 default_bg_color rather than black.
18677 (grub_gfxterm_fullscreen): Likewise.
18678 (grub_gfxterm_background_color_cmd): Save new background color in
18679 default_bg_color.
18680
8d5d8444
VS
186812011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18682
18683 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18684
5afeb5bd
VS
186852011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18686
18687 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18688 mismerge.
18689
ba7df45e
VS
186902011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18691
18692 Chainloading on coreboot support.
18693
18694 * grub-core/Makefile.core.def (chain): Add coreboot.
18695 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18696
d0b526b2
VS
186972011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18698
18699 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18700 if it happens.
18701
5ff1d945
VS
187022011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18703
18704 Implement time command.
18705
18706 * grub-core/Makefile.core.def (time): New module.
18707 * grub-core/commands/time.c: New file.
18708 * grub-core/script/parser.y: Remove "time" keyword.
18709 * grub-core/script/yylex.l: Likewise.
18710
5ebaad7e
VS
187112011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18712
18713 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18714
bdea3798
VS
187152011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18716
18717 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18718 when handling leftovers.
18719
b28c5655
VS
187202011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18721
18722 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18723 so that help2man doesn't fail.
18724
b6f945dc
VS
187252011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18726
18727 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18728 type in pointers on sparc64.
18729 (get_card_packet): Likewise.
18730
f9b75e8a
CW
187312011-06-27 Colin Watson <cjwatson@ubuntu.com>
18732
18733 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18734 with `*'.
18735 (grub_cmd_videoinfo): Fetch current video mode.
18736
1e3d9b86
VS
187372011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18738
18739 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18740 because of underlying system restrictions.
18741
efff4b1c
VS
187422011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18743
18744 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18745 necessary.
18746
9fc9ce37
VS
187472011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18748
18749 Coreboot video support.
18750
18751 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18752 (vbe): Likewise.
18753 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18754 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18755 here ...
18756 * grub-core/kern/i386/int.S: ... here.
18757 * grub-core/video/i386/pc/vbe.c: Updated includes.
18758 * grub-core/video/i386/pc/vga.c: Likewise.
18759 * include/grub/i386/coreboot/memory.h
18760 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18761 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18762 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18763 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18764 Disable interrupts.
18765 * include/grub/i386/pc/vga.h: Removed. All users updated.
18766
41bec7fe
VS
187672011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18768
18769 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18770 definitions for dprintf.
18771 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18772
ca80309d
VS
187732011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18774
18775 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18776 prototype.
18777 (get_card_packet): Likewise.
18778
9e322ce8
YB
187792011-06-26 Yves Blusseau <blusseau@zetam.org>
18780
18781 Display the path of the file when file is not found
18782
18783 * grub-core/fs/fat.c: Display the filename when file is not found.
18784 * grub-core/fs/fshelp.c: Likewise.
18785 * grub-core/fs/hfs.c: Likewise.
18786 * grub-core/fs/jfs.c: Likewise.
18787 * grub-core/fs/minix.c: Likewise.
18788 * grub-core/fs/ufs.c: Likewise.
18789 * grub-core/fs/btrfs.c: Likewise.
18790 * grub-core/commands/i386/pc/play.c: Likewise.
18791
cbf597af
SJ
187922011-06-26 Szymon Janc <szymon@janc.net.pl>
18793
18794 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18795 pointer checks before calling grub_free().
18796 * grub-core/commands/wildcard.c (match_devices): Likewise.
18797 * grub-core/commands/wildcard.c (match_files): Likewise.
18798 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18799 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18800 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18801 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18802 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18803 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18804 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18805 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18806 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18807
6295b32f
P
188082011-06-25 Patrick <p55@mailinator.com>
18809
18810 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18811
77c0840b
VS
188122011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18813
18814 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18815 (grub_pxe_send): Likewise.
18816 (GRUB_MOD_INIT): Fix types.
18817
40ea05de
SJ
188182011-06-24 Szymon Janc <szymon@janc.net.pl>
18819
18820 * grub-core/io/xzio.c: Fix code style issues
18821
90162423
MRA
188222011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
188232011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
18824
18825 Network infrastructure.
18826 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18827
18828 * include/grub/net/arp.h: New file.
90162423
MRA
18829 * include/grub/net/device.h: Likewise.
18830 * include/grub/net/ethernet.h: Likewise.
18831 * include/grub/net/ip.h: Likewise.
18832 * include/grub/net/netbuff.h: Likewise.
18833 * include/grub/net/tftp.h: Likewise.
18834 * include/grub/net/udp.h: Likewise.
18835 * include/grub/ieee1275/ofnet.h: Likewise.
18836 * include/grub/emu/export.h: Likewise.
18837 * include/grub/net.h: Likewise.
18838 * grub-core/net/arp.c: Likewise.
18839 * grub-core/net/ethernet.c: Likewise.
18840 * grub-core/net/ip.c: Likewise.
18841 * grub-core/net/udp.c: Likewise.
18842 * grub-core/net/tftp.c: Likewise.
18843 * grub-core/net/netbuff.c: Likewise.
18844 * grub-core/net/net.c: Likewise.
18845 * grub-core/net/drivers/emu/emunet.c: Likewise.
18846 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18847 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18848 export.h.
18849 * grub-core/Makefile.core.def (net): New module.
18850 (tftp): Likewise.
18851 (ofnet): Likewise.
18852 (emunet): Likewise.
18853 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18854 network protocols.
18855 * grub-core/kern/device.c (grub_net_open) : New variable.
18856 (grub_device_open): Handle network device.
18857 (grub_device_close): Likewise.
18858 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18859 (grub_grubnet_fini): Likewise.
18860 (grub_file_seek): Seek in network device.
18861 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18862 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18863 network root.
18864 (grub_machine_fini): Call grub_grubnet_fini.
18865 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18866 network.
18867 (grub_ieee1275_get_aliasdevname): New function.
18868 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18869 Add unofficial Solaris network info.
18870 (grub_multiboot_make_mbi): Likewise.
18871 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18872 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18873 * include/grub/device.h (grub_fs): Removed.
18874 * include/grub/err.h (grub_err_t): Add network-related values.
18875 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18876 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18877 (grub_ieee1275_get_aliasdevname): New proto.
18878 * include/grub/net.h: Rewritten.
423a1849 18879
031f22a0
VS
188802011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18881
18882 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18883 names.
18884
4388ca72
VS
188852011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18886
18887 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18888 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18889 it truncates the output.
18890 Reported by: Ximin Luo.
18891
98e2f506
VS
188922011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18893
18894 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18895
2a5e94d8
VS
188962011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18897
18898 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18899 partmap before abstraction.
18900
535c1910
AK
189012011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18902
18903 * util/grub-mkconfig_lib.in: Add missing quotes.
18904
bc09e1a2
VS
189052011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18906
18907 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18908 old method if mountinfo would return /dev/root and /dev/root doesn't
18909 exist.
18910
290766fb
VS
189112011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18912
18913 ZFS zlib support
18914
18915 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18916 (decomp_table): Add zlib entries.
18917 (zio_read): USe 8 bits for compression function rather than 3.
18918 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18919
189202011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18921
18922 * grub-core/disk/ahci.c: Add missing license statements.
18923 * grub-core/fs/romfs.c: Likewise.
18924 * grub-core/lib/ia64/setjmp.S: Likewise.
18925 * grub-core/loader/i386/pc/freedos.c: Likewise.
18926 * grub-core/loader/ia64/efi/linux.c: Likewise.
18927 * grub-core/video/colors.c: Likewise.
18928 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18929
5ab3f48a
VS
189302011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18931
18932 AHCI support.
18933
18934 * grub-core/Makefile.core.def (ata_pthru): Removed.
18935 (ahci): New module.
18936 (pata): Likewise.
18937 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18938 on unload.
18939 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18940 readwrite.
18941 (grub_hdparm_do_check_powermode_cmd): Likewise.
18942 (grub_hdparm_do_smart_cmd): Likewise.
18943 (grub_hdparm_set_val_cmd): Likewise.
18944 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18945 * grub-core/disk/ahci.c: New file.
18946 * grub-core/disk/ata.c: Factor out the low-level part into ...
18947 * grub-core/disk/pata.c: ... here.
18948 * grub-core/disk/ata_pthru.c: Contents moved to ...
18949 * grub-core/disk/pata.c: ... here.
18950 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18951 (grub_scsi_iterate): Use grub_scsi_names.
18952 (grub_scsi_open): Likewise.
18953 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18954 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18955 (grub_ata_regs_t): New struct.
18956 (grub_disk_ata_pass_through_parms): Likewise.
18957 (grub_ata_device): Renamed to ...
18958 (grub_ata): ... this.
18959 (grub_ata_dev): New struct.
18960 Removed all low-level inline functions.
18961 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18962 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18963 iterate hooks and open. All users updated.
18964 * util/grub-install.in: Handle AHCI disk module.
18965
c31dc5f5
SJ
189662011-06-23 Szymon Janc <szymon@janc.net.pl>
18967
18968 Add support for DRI and RSTn markers in JPEG files.
18969
18970 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18971 (JPEG_MARKER_RST0): Likewise.
18972 (JPEG_MARKER_RST1): Likewise.
18973 (JPEG_MARKER_RST2): Likewise.
18974 (JPEG_MARKER_RST3): Likewise.
18975 (JPEG_MARKER_RST4): Likewise.
18976 (JPEG_MARKER_RST5): Likewise.
18977 (JPEG_MARKER_RST6): Likewise.
18978 (JPEG_MARKER_RST7): Likewise.
18979 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18980 (grub_jpeg_decode_dri): New function.
18981 (grub_jpeg_decode_sos): Move image data related part into
18982 grub_jpeg_decode_data function.
18983 (grub_jpeg_decode_data): New function.
18984 (grub_jpeg_reset): New function.
18985 (grub_jpeg_decode_jpeg): Handle new markers.
18986
fe12fd5b
VS
189872011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18988
18989 * util/ieee1275/ofpath.c (check_sas): Close fd.
18990 (main): Free of_path.
18991 Reported by: David Volgyes <dvolgyes>.
18992
03147f46
VS
189932011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18994
18995 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18996 Reported by: David Volgyes <dvolgyes>.
18997
cad3237f
VS
189982011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18999
19000 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19001 file after stat.
19002 Reported by: David Volgyes <dvolgyes>.
19003
13548d26
VS
190042011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19005
19006 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19007
19008 Reported by: David Volgyes <dvolgyes>.
19009
e061a1b5
VS
190102011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19011
19012 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19013 Prevent memory leak.
19014
1abe47dc
VS
190152011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19016
19017 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19018 (main): Close file.
e061a1b5 19019 Reported by: David Volgyes <dvolgyes>.
1abe47dc 19020
fbc62666
VS
190212011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19022
19023 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19024 to continue if allocation is failed.
19025
19026 Reported by: David Volgyes <dvolgyes>.
19027
e98c83e9
DV
190282011-06-23 David Volgyes <dvolgyes>
19029
19030 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19031 dereference.
19032
a199a8cd
VS
190332011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19034
19035 Fix spurious warning.
19036
19037 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19038 (acorn_partition_map_find): Use .bin member.
19039
e2d1dba0
VS
190402011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19041
19042 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19043 /dev/root as a valid device.
19044
8a5d6919
JM
190452011-06-23 Jim Meyering <meyering@redhat.com>
19046
e2d1dba0
VS
19047 Avoid NULL deref in grub_device_open.
19048
8a5d6919
JM
19049 * grub-core/kern/device.c (grub_device_open): Don't dereference
19050 a NULL pointer upon failed grub_env_get.
19051
f7db6f4a
VS
190522011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19053
19054 Support non-512B sectors and agglomerate reads.
19055
19056 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19057 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19058 (disk_io_guid): Removed.
19059 (make_devices): Locate solely by BlockIO.
19060 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19061 (grub_efidisk_read): Use read_blocks.
19062 (grub_efidisk_write): Use write_blocks.
19063 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19064 log_sector_size.
19065 (get_safe_sectors): Handle non-512B sectors.
19066 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19067 sectors.
19068 (grub_biosdisk_write): Handle non-512B sectors.
19069 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19070 (grub_scsi_read): Remove special non-512B block handling (now handled
19071 one level up).
19072 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19073 and do sanity checks.
19074 (grub_disk_adjust_range): Handle non-512B sectors.
19075 (transform_sector): New function.
19076 (grub_disk_read_small): Likewise.
19077 (grub_disk_read): Rewritten.
19078 (grub_disk_write): Handle non-512B sectors.
19079 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19080 log_sector_size.
19081 (open_device): Use log_sector_size.
19082 (grub_util_biosdisk_read): Likewise.
19083 (grub_util_biosdisk_write): Likewise.
19084 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19085 non-512B sectors.
19086 (pc_partition_map_embed): Likewise.
19087 * include/grub/disk.h (grub_disk): New field log_sector_size.
19088 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19089 (GRUB_DISK_CACHE_BITS): Increased to 6.
19090 * util/grub-fstest.c (fstest): New command testload.
19091 (argp_parser): Likewise.
19092
881ac815
RM
190932011-06-16 Robert Millan <rmh@gnu.org>
19094
19095 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19096 `ata' driver on kernel of FreeBSD 9.
19097
19098 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19099 (get_ataraid_disk_name): New functions.
19100 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19101 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19102 get_ataraid_disk_name() and get_ada_disk_name().
19103
1e9aef7d
CW
191042011-06-13 Colin Watson <cjwatson@ubuntu.com>
19105
19106 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19107 input format.
19108
351c7c8a
CW
191092011-05-29 Colin Watson <cjwatson@ubuntu.com>
19110
19111 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19112 `ftp.gnu.org' for `alpha.gnu.org'.
19113
6b4e6430
CW
191142011-05-27 Colin Watson <cjwatson@ubuntu.com>
19115
19116 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19117 partitions under /dev/disk/by-id/.
19118
c64db050
CW
191192011-05-27 Colin Watson <cjwatson@ubuntu.com>
19120
19121 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19122 after ten consecutive open failures. Scanning all the way up to
19123 10000 is excessive and can cause serious performance problems in
19124 some configurations.
19125 Fixes Ubuntu bug #787461.
19126
245f4aba
VS
191272011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19128
19129 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19130 opening new one.
19131
f767c929
VS
191322011-05-21 Colin Watson <cjwatson@ubuntu.com>
191332011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19134
19135 Don't stat devices unless we have to.
19136
19137 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19138 dir == /dev/mapper.
19139 (grub_guess_root_device): Use already known os_dev if possible.
19140 * grub-core/kern/emu/hostdisk.c
19141 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19142 if device is known to be a dm one.
19143
f35fa3a6
CW
191442011-05-20 Colin Watson <cjwatson@ubuntu.com>
19145
19146 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19147 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19148 Reported by: Pawel Tecza.
19149
9a79fcf2
VS
191502011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19151
19152 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19153 (lsefisystab): Likewise.
19154 (lssal): Likewise.
19155 (lsefimmap): Likewise.
19156 (hdparm): Enable on qemu-mips.
19157 (setjmp): Add ia64 nodist.
19158 (serial): Simplify tags.
19159
63e3eea9
CW
191602011-05-18 Colin Watson <cjwatson@ubuntu.com>
19161
19162 * Makefile.util.def (grub-ofpathname): Install manual page.
19163
09728256
CW
191642011-05-18 Colin Watson <cjwatson@ubuntu.com>
19165
19166 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19167
8b63a142
CW
191682011-05-18 Colin Watson <cjwatson@ubuntu.com>
19169
19170 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19171
e775d8ed
VS
191722011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19173
19174 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19175 into dprintf.
19176
bf947d36
VS
191772011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19178
19179 Use full 64-bit division.
19180
19181 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19182 (grub_divmod64): ... this.
19183 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19184 version.
19185
b84f26c5
CW
191862011-05-18 Colin Watson <cjwatson@ubuntu.com>
19187
19188 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19189 `source'.
19190
5626056f
CW
191912011-05-18 Colin Watson <cjwatson@ubuntu.com>
19192
19193 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19194 to avoid accidents when debugging with 'sh -x'.
19195 * grub-core/gensyminfo.sh.in: Likewise.
19196 * tests/example_scripted_test.in: Likewise.
19197 * tests/grub_cmd_regexp.in: Likewise.
19198 * tests/grub_script_blanklines.in: Likewise.
19199 * tests/grub_script_dollar.in: Likewise.
19200 * tests/grub_script_expansion.in: Likewise.
19201 * tests/grub_script_final_semicolon.in: Likewise.
19202 * tests/partmap_test.in: Likewise.
19203 * tests/util/grub-shell-tester.in: Likewise.
19204 * tests/util/grub-shell.in: Likewise.
19205
e2965f4a
CW
192062011-05-18 Colin Watson <cjwatson@ubuntu.com>
19207
19208 Move gfxmenu color handling to video, so that gfxterm can use it
19209 too.
19210
19211 * grub-core/gfxmenu/named_colors.c: Move to ...
19212 * grub-core/video/colors.c: ... here. Rename
19213 grub_gui_get_named_color to grub_video_get_named_color.
19214 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19215 * grub-core/video/colors.c (my_isxdigit): ... here.
19216 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19217 Move to ...
19218 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19219 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19220 to ...
19221 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19222
19223 * include/grub/gui.h (grub_gui_color_t): Move to ...
19224 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19225 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19226 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19227 * include/grub/gui.h (grub_gui_map_color): Move to ...
19228 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19229 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19230 to ...
19231 * include/grub/video.h (grub_video_get_named_color): ... here.
19232 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19233 * include/grub/video.h (grub_video_parse_color): ... here.
19234
19235 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19236 video/colors.c.
19237 (gfxmenu): Remove gfxmenu/named_colors.c.
19238 (video) [videomodules]: Add video/colors.c.
19239
19240 Add a background_color command.
19241
19242 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19243 function.
19244 (GRUB_MOD_INIT): Register background_color command.
19245 (GRUB_MOD_FINI): Unregister background_color command.
19246 (redraw_screen_rect): Allow blend/replace of text layer to be
19247 controlled independently from whether there is a background bitmap.
19248 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19249 changing bitmap.
19250
1e4b4390
VS
192512011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19252
26618ff0
VS
19253 Patch BPB in ntldr and chainloader --bpb.
19254
1e4b4390
VS
19255 * grub-core/fs/fat.c: Include grub/fat.h.
19256 (grub_fat_bpb): Moved to ...
19257 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19258 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19259 grub/ntfs.h.
19260 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19261 Moved from here...
19262 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19263 here.
19264 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19265 New function.
19266 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19267 (GRUB_MOD_INIT): Show --bpb.
19268 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19269 * grub-core/normal/main.c (features): New variable.
19270 (GRUB_MOD_INIT): Set feature_* variables.
19271 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19272 proto.
19273 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19274
cf02731e
VS
192752011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19276
19277 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19278 for cleanness.
19279
e3a1073f
VS
192802011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19281
19282 FreeDOS direct loading support.
19283
19284 * docs/grub.texi (Supported OS): Add FreeDOS.
19285 * grub-core/Makefile.core.def (freedos): New module.
19286 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19287 variable.
19288 (grub_relocator16_boot): Handle %ebx.
19289 * grub-core/lib/i386/relocator16.S: Likewise.
19290 * grub-core/loader/i386/pc/freedos.c: New file.
19291
05caa461
VS
192922011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19293
19294 Long Linux command line support.
19295
19296 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19297 (maximal_cmdline_size): New variable.
19298 (allocate_pages): Use maximal_cmdline_size.
19299 (grub_cmd_linux): Set and use maximal_cmdline_size.
19300 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19301 (allocate_pages): Use maximal_cmdline_size.
19302 (grub_cmd_linux): Set and use maximal_cmdline_size.
19303 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19304 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19305 and cmdline_size.
19306
a2491e23
VS
193072011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
193082011-05-18 Colin Watson <cjwatson@ubuntu.com>
19309
19310 Improve devmapper support
19311
19312 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19313 (grub_util_is_lvm): New function.
19314 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19315 than lvm if not dmraid.
19316 Handle mapped md nodes.
19317 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19318 (grub_util_device_is_mapped): ... this. Make always available. All users
19319 updated.
19320 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19321 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19322 dmraid nodes.
19323 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19324
6ad6223e
VS
193252011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19326
19327 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19328
19329 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19330 * grub-core/modinfo.sh.in: New file.
19331 * grub-core/Makefile.core.def (modinfo.sh): New script.
19332 * util/grub-mknetdir.in: Use modinfo.sh.
19333 * util/grub-mkrescue.in: Likewise.
19334
543a8f6e
VS
193352011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19336
19337 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19338 Fix potential usage of Elf32 instead of Elf64 when compiling on
19339 32-bit architecture. Add endianness macros while on it.
19340
4959e111
VS
193412011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19342
19343 Use mipsel- rather than mips- in directories involving mipsel ports to
19344 allow both endiannesses coexist.
19345
19346 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19347 mips. All conditions adjusted.
19348 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19349 variable.
19350 * util/grub-install.in: Adjust conditions to take renaming into account.
19351 * util/grub-mkimage.c (image_targets): Likewise. New target
19352 mips-qemu_mips-elf for bigendian mips.
19353
35341bbc
VS
193542011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19355
19356 Avoid unnecessary copying on MIPS.
19357
19358 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19359 early if src == dest.
19360 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19361 compression is none.
19362
b772baed
VS
193632011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19364
19365 Reduce memory footprint on SGI by putting modules before the kernel
19366 as opposed to after.
19367
19368 * grub-core/Makefile.core.def (kernel): Increase linking address.
19369 (none_decompress): Likewise.
19370 (xz_decompress): Likewise.
19371 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19372 address.
19373 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19374 layout change.
19375 (grub_arch_modules_addr): New function.
19376 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19377 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19378 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19379 here.
19380 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19381 (grub_total_modules_size): ... this. Make global.
19382 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19383 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19384 New definition.
19385 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19386 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19387 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19388 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19389 * util/grub-mkimage.c (image_target_desc): New flag
19390 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19391 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19392 (generate_image): Handle images with modules before kernel.
19393
566a1917
VS
193942011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19395
19396 Prevent potential loss of memory map by overwrite on qemu-mips.
19397
19398 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19399 Save ram size in $s4.
19400 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19401 All users changed to grub_arch_memsize.
19402 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19403 Loongson.
19404 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19405 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19406 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19407 external variable.
19408
5d420cd9
CW
194092011-05-17 Colin Watson <cjwatson@ubuntu.com>
19410
19411 * .bzrignore: Remove grub-dumpbios.
19412
d064b830
CW
194132011-05-17 Colin Watson <cjwatson@ubuntu.com>
19414
19415 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19416 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19417 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19418 existing options which append).
19419 * docs/grub.texi (Simple configuration): Document new options.
19420 Reported by: Ian Jackson. Fixes Debian bug #617538.
19421
3ca2b466
CW
194222011-05-17 Colin Watson <cjwatson@ubuntu.com>
19423
19424 * util/grub-fstest.c (cmd_cat): New function.
19425 (fstest): Handle CMD_CAT.
19426 (options): Add cat.
19427 (argp_parser): Handle cat.
19428
24c9143a
CW
194292011-05-17 Colin Watson <cjwatson@ubuntu.com>
19430
19431 * Makefile.util.def (grub-bin2h): Don't install.
19432 * docs/man/grub-bin2h.h2m: Remove.
19433
90f7ac19
VS
194342011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19435
19436 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19437 place.
19438
8d4a5178
VS
194392011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19440
19441 Reenable qemu-mips port.
19442
19443 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19444 Fix small arc bug while on it.
19445 * gentpl.py: Handle qemu_mips.
19446 * grub-core/Makefile.am: Likewise.
19447 * grub-core/Makefile.core.def: Likewise.
19448 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19449 inappropriate includes.
19450 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19451 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19452 * grub-core/kern/main.c (grub_modules_get_end)
19453 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19454 * grub-core/kern/mips/qemu-mips: Moved to ..
19455 * grub-core/kern/mips/qemu_mips: ... this.
19456 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19457 (grub_machine_init): Call terminfo_init and serial_init.
19458 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19459 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19460 New variable.
19461 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19462 parameter passing.
19463 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19464 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19465 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19466 * include/grub/mips/qemu_mips/cmos.h: New file.
19467 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19468 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19469 Removed.
19470 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19471 Use correct mips-style address.
19472 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19473 (GRUB_TICKS_PER_SECOND): Removed.
19474 (grub_get_rtc): Likewise.
19475 (grub_cpu_idle): Likewise.
19476 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19477 New definition.
19478 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19479 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19480 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19481 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19482 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19483 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19484 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19485 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19486
400b9371
VS
194872011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19488
19489 SGI ARCS port.
19490
19491 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19492 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19493 platforms.
19494 * configure.ac: New target mips-arc.
19495 * gentpl.py: Likewise.
19496 * grub-core/Makefile.am: Likewise.
19497 * grub-core/Makefile.core.def: Likewise.
19498 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19499 (none_decompress): Likewise.
19500 (lsdev): New module.
19501 (datetime): Use lib/arc/datetime.c on ARC.
19502 (part_dvh): New module.
19503 * grub-core/commands/arc/lsdev.c: New file.
19504 * grub-core/disk/arc/arcdisk.c: Likewise.
19505 * grub-core/kern/mips/arc/init.c: Likewise.
19506 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19507 aligned addresses.
19508 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19509 support.
19510 (grub_arch_dl_relocate_symbols): Likewise.
19511 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19512 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19513 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19514 platforms.
19515 * grub-core/lib/arc/datetime.c: New file.
19516 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19517 pci.h on non-loongson.
19518 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19519 (grub_linux_boot): Set unused registers to 0.
19520 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19521 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19522 * grub-core/mmap/mips/uppermem.c: ...here.
19523 * grub-core/partmap/dvh.c: New file.
19524 * grub-core/term/arc/console.c: Likewise.
19525 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19526 (grub_terminfo_set_current): Add terminal "arc".
19527 (grub_terminfo_readkey): Support ARC sequences.
19528 * include/grub/arc/arc.h: New file.
19529 * include/grub/arc/console.h: Likewise.
19530 * include/grub/disk.h (grub_disk_dev_id): Add
19531 GRUB_DISK_DEVICE_ARCDISK_ID.
19532 * include/grub/mips/arc/kernel.h: New file.
19533 * include/grub/mips/arc/memory.h: Likewise.
19534 * include/grub/mips/arc/time.h: Likewise.
19535 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19536 * include/grub/mips/kernel.h (grub_halt): ... here.
19537 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19538 here...
19539 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19540 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19541 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19542 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19543 proto.
19544 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19545 from here ...
19546 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19547 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19548 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19549 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19550 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19551 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19552 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19553 (grub_phys_addr_t): Moved from here ...
19554 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19555 (grub_vtop): Moved from here ...
19556 * include/grub/mips/memory.h (grub_vtop): ... here.
19557 (grub_map_memory): Moved from here ...
19558 * include/grub/mips/memory.h (grub_map_memory): ... here.
19559 (grub_unmap_memory): Moved from here ...
19560 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19561 (grub_machine_mmap_iterate): Moved from here ...
19562 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19563 (grub_mmap_get_lower): Moved from here ...
19564 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19565 (grub_mmap_get_upper): Moved from here ...
19566 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19567 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19568 here ...
19569 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19570 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19571 here ...
19572 * include/grub/mips/time.h (grub_get_rtc): ... here.
19573 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19574 here ...
19575 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19576 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19577 here ...
19578 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19579 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19580 definition.
19581 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19582 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19583 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19584 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19585 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19586 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19587 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19588 (GRUB_MACHINE_LINK_ADDR): Likewise.
19589 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19590 to 6.
19591 * util/grub-install.in: Run dvhtool on ARC.
19592 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 19593 (generate_image): Handle ECOFF output for mips-arc.
400b9371 19594
c8ecc840
VS
195952011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19596
19597 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19598 blocks.
19599
153a4b55
VS
196002011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19601
19602 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19603 after enabling port.
19604
ff44d107
VS
196052011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19606
19607 Skip incorrect USB devices.
19608
19609 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19610 configcnt == 0.
19611 * include/grub/usb.h (grub_usb_err_t): New enum value
19612 GRUB_USB_ERR_BADDEVICE.
19613
638dbe4f
VS
196142011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19615
19616 Fuloong video init support.
19617
19618 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19619 well.
19620 (grub_vga_read_arx): New function.
19621 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19622 definition.
19623 (framebuffer): New members io, mmioptr and mmiobase.
19624 (read_sis_cmd): New function.
19625 (write_sis_cmd): Likewise.
19626 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19627 rather than 640x400.
19628 * grub-core/video/sis315_init.c: New file.
19629
c3fc520c
VS
196302011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19631
19632 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19633 non-loongson.
19634 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19635 to grub_dl_register_symbol.
19636
67b1e5c9
VS
196372011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19638
19639 Fix compilation errors.
19640
19641 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19642 potentially unused.
19643 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19644 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19645 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19646 to loongson machines.
19647
b756f75f
VS
196482011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19649
19650 Several FS mtime support.
19651
19652 * grub-core/fs/affs.c (grub_affs_time): New struct.
19653 (grub_affs_file): New field mtime.
19654 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19655 type. Removed 'size'. New field 'di'. All users updated.
19656 (grub_affs_mount): Simplify checsum checking.
19657 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19658 (grub_affs_dir): Handle mtime.
19659 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19660 (grub_cpio_dir): Likewise.
19661 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19662 (grub_hfs_filerec): New field mtime.
19663 (grub_hfs_dir): Handle mtime.
19664 (grub_hfs_mtime): New function.
19665 (grub_hfs_fs): Register grub_hfs_mtime.
19666 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19667 (grub_iso9660_dir): New field mtime.
19668 (grub_fshelp_node): New field dirent.
19669 (iso9660_to_unixtime): New function.
19670 (iso9660_to_unixtime2): Likewise.
19671 (grub_iso9660_read_symlink): Use node->dirent.
19672 (grub_iso9660_iterate_dir): Likewise.
19673 (grub_iso9660_dir): Set mtime.
19674 (grub_iso9660_mtime): New function.
19675 (grub_iso9660_fs): Register grub_iso9660_mtime.
19676 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19677 (grub_jfs_inode): New fields atime, ctime and mtime.
19678 (grub_jfs_dir): Set mtime.
19679 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19680 * grub-core/fs/ntfs.c (list_file): Set mtime.
19681 (grub_ntfs_dir): Likewise.
19682 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19683 (grub_reiserfs_iterate_dir): Set mtime.
19684 (grub_reiserfs_dir): Likewise.
19685 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19686 (grub_fshelp_node): Likewise.
19687 (grub_sfs_iterate_dir): Set mtime.
19688 (grub_sfs_dir): Likewise.
19689 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19690 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19691 (grub_xfs_inode): New fields atime, mtime, ctime.
19692 (grub_xfs_dir): Set mtime.
19693 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19694 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19695 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19696
19697 Support UDF symlinks.
19698
19699 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19700 (grub_ufs_read_symlink): New function. All users updated.
19701
19702 Check amiga partmap checksum.
19703
19704 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19705 (grub_amiga_partition): Likewise.
19706 (amiga_partition_map_checksum): New function.
19707 (amiga_partition_map_iterate): Check checksum.
19708
5470225d
VS
197092011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19710
19711 ROMFS support.
19712
19713 * Makefile.util.def (libgrubmods.a): Add romfs.
19714 * grub-core/Makefile.core.def (romfs): New module.
19715 * grub-core/fs/romfs.c: New file.
19716
d4680a35
VS
197172011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19718
19719 Squashfs v4 support.
19720
19721 * Makefile.util.def (libgrubmods.a): Add squash4.
19722 * grub-core/Makefile.core.def (squash4): New module.
19723 * grub-core/fs/squash4.c: New file.
19724 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19725 disk_input_start, disk_input.
19726 (get_byte): Handle disk_input.
19727 (grub_zlib_disk_read): New function.
19728 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19729
bcb18e74
FZ
197302011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
197312011-05-15 Feiran Zheng <famcool@gmail.com>
19732
19733 * Makefile.util.def (libgrubmods.a): Add minix3.
19734 * grub-core/Makefile.core.def (minix3): New module.
19735 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19736 (GRUB_MINIX_BSIZE): Removed.
19737 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19738 (grub_minix_ino_t): New type.
19739 (grub_minix_le_to_cpu_ino): New macro.
19740 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19741 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19742 (grub_minix_data): New field block_size.
19743 (grub_minix_read_file): Handle 64-bit correctly.
19744 * grub-core/fs/minix3.c: New file.
19745
32297d5f
TG
197462011-05-15 Tristan Gingold <gingold@free.fr>
197472011-05-15 Robert Millan <rmh.grub@aybabtu.com>
197482011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19749
19750 IA64 support.
19751
19752 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19753 * configure.ac: Add ia64-efi target.
19754 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19755 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19756 * gentpl.py: Add ia64_efi platform.
19757 Rename x86_efi to efi and Add ia64-efi. All users updated.
19758 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19759 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19760 Remove kern/generic/rtc_get_time_ms.c on EFI.
19761 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19762 kern/ia64/dl_helper.c on ia64-efi.
19763 Add kern/emu/cache.c on emu.
19764 (linux): Use on loader/ia64/efi/linux.c on ia64.
19765 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19766 whether symbol is a function.
19767 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19768 (grub_symbol): New field 'isfunc'.
19769 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19770 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19771 (grub_dl_load_segments): Place all sections into the same region.
19772 [__ia64__]: Create trampolines and got.
19773 [GRUB_MACHINE_EMU]: Call mprotect.
19774 (grub_dl_resolve_symbols): Resolve symbol type as well.
19775 [__ia64__]: Create function descriptors.
19776 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19777 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19778 (grub_get_rtc): New function.
19779 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19780 * grub-core/kern/emu/cache.S: Renamed to ...
19781 * grub-core/kern/emu/cache_s.S: ... this.
19782 [__ia64__]: Add a nop.
19783 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19784 [__ia64__]: New function.
19785 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19786 * grub-core/kern/ia64/dl.c: New file.
19787 * grub-core/kern/ia64/dl_helper.c: Likewise.
19788 * grub-core/kern/ia64/efi/init.c: New file.
19789 * grub-core/kern/ia64/efi/startup.S: Likewise.
19790 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19791 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19792 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19793 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19794 * grub-core/loader/ia64/efi/linux.c: New file.
19795 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19796 (GRUB_MOD_DEP): Likewise.
19797 (grub_dl) [__ia64__]: New fields got and tramp.
19798 (grub_dl): New field 'base'.
19799 (grub_dl_register_symbol): New argument isfunc. All users updated.
19800 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19801 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19802 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19803 (grub_ia64_dl_get_tramp_got_size): New proto.
19804 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19805 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19806 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19807 * include/grub/efi/api.h: Skip call wrappers on ia64.
19808 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19809 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19810 * include/grub/elf.h (ELF_ST_INFO): New definition.
19811 * include/grub/ia64/efi/kernel.h: New file.
19812 * include/grub/ia64/efi/memory.h: Likewise.
19813 * include/grub/ia64/efi/time.h: Likewise.
19814 * include/grub/ia64/kernel.h: Likewise.
19815 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19816 * include/grub/ia64/time.h: New file.
19817 * include/grub/ia64/types.h: Likewise.
19818 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19819 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19820 New protos.
19821 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19822 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19823 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19824 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19825 All users updated.
19826 (EFI64_HEADER_SIZE): New definition. All users updated.
19827 (image_targets): Add ia64-efi.
19828 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19829 jumpers_addr. All users updated.
19830 Create function descriptors.
19831 (count_funcs): New function.
19832 (unaligned_uint32): New struct.
19833 (MASK20): New definition.
19834 (MASK19): Likewise.
19835 (MASKF21): Likewise.
19836 (add_value_to_slot_20b): New function.
19837 (add_value_to_slot_21_real): Likewise.
19838 (add_value_to_slot_21): Likewise.
19839 (ia64_kernel_trampoline): New struct.
19840 (nopm): New variable.
19841 (jump): Likewise.
19842 (make_trampoline): New function.
19843 (relocate_addresses): Handle ia64.
19844 (make_reloc_section): Likewise.
19845 (load_image): Likewise.
19846
983b414d
VS
198472011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19848
19849 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19850 warning. Move variables before code while on it.
19851
5d063cdc
VS
198522011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19853
19854 Fuloong support.
19855
19856 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19857 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19858 * grub-core/boot/mips/loongson/fuloong.S: New file.
19859 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19860 Explicitly init CS5536.
19861 [FULOONG]: Don't use serial until CS5536 is available.
19862 Set GPIO based on dumps.
19863 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19864 [FULOONG]: Handle GPIO and memory controller differences.
19865 Parse machine type in $a2.
19866 * grub-core/boot/mips/startup_raw.S: Determine and save the
19867 architecture.
19868 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19869 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19870 init on architecture type.
19871 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19872 SIS315E. Don't init at_keyboard on fuloong.
19873 (grub_halt): Support Fuloong.
19874 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19875 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19876 (loongson_machtypes): New array.
19877 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19878 type.
19879 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19880 config. All users updated. Handle CS5536 serial.
19881 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19882 default port on machine type. Register serial as inactive.
19883 * grub-core/video/sis315pro.c: New file.
19884 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19885 definition.
19886 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19887 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19888 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19889 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19890 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19891 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19892 to ...
19893 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19894 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19895 definition.
19896 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19897 (grub_arch_machine): New extern var.
19898 * include/grub/mips/loongson/serial.h
19899 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19900 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19901 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19902 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19903 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19904 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19905 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19906 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19907 * include/grub/term.h (grub_term_register_input_inactive): New inline
19908 function.
19909 (grub_term_register_output_inactive): Likewise.
19910 * include/grub/video.h (grub_video_driver_id): New value
19911 GRUB_VIDEO_DRIVER_SIS315PRO.
19912 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19913 New field "names". All users updated.
19914 New field value IMAGE_FULOONG_FLASH.
19915 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19916
6ada82d1
JU
199172011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19918
19919 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19920 and add some clarification.
19921
90c571a4
VS
199222011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19923
19924 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19925 platforms if kernel is compressed.
19926
de04eecf
VS
199272011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19928
19929 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19930 unused modules since currently referrence counter isn't reliable and
19931 there isn't much memory to recover there anyway.
19932
57688121
VS
199332011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19934
19935 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19936 rather than resetting it to allow modules to reference themselves
19937 in init.
19938
3d2c7e35
VS
199392011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19940
19941 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19942 counter on dependencies since grub_dl_unref already handles this.
19943
b25db218
VS
199442011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19945
19946 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19947 on error if not already done.
19948
25a45338
VS
199492011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19950
19951 Fix few potential memory misusage.
19952
19953 * grub-core/font/font.c (load_font_index): Don't free char_index to
19954 avoid double free.
b25db218
VS
19955 (grub_font_load): Zero-fill font at alloc for safety.
19956 Close file on error.
19957 (free_font): Free bmp_idx.
25a45338 19958
0cac83df
VS
199592011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19960
19961 * docs/grub.texi (Installation): Fix several outdated claims.
19962
2217a143
VS
199632011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19964
19965 Handle module_license on windows.
19966
19967 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19968 sections shifted.
19969 (insert_string): Make argument const char * instead of char *.
19970 (write_section_data): Handle long section names.
19971 Handle module_license.
19972
d4de6b01
VS
199732011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19974
19975 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19976 handle class-free menuentries.
19977 (grub_normal_add_menu_entry): Add a check to be sure.
19978
4c2a3b43
VS
199792011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19980
19981 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19982 PgUp and PgDown.
19983
85c6210f
VS
199842011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19985
19986 * configure.ac: Bump version to 1.99.
19987
36084912
VS
199882011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19989
19990 Give ATA device a bit more time on first try in order to allow disks
19991 to spin up.
19992
19993 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19994 if dev->present is 1. Reset dev->present on failure.
19995 (grub_ata_device_initialize): Set dev->present to 1.
19996 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19997 (grub_ata_device): New member 'present'.
19998
bda0e219
VS
199992011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20000
20001 * util/grub-mkimage.c (generate_image): Update hash.
20002
19e1c41b
VS
200032011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20004
20005 Flush caches on DMA memory.
20006
20007 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20008 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20009 (grub_dma_free): Likewise.
20010 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20011
91bbcc0c
VS
200122011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20013
20014 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20015 to avoid asm treating ld and sd as macros.
20016
60ddfad3
VS
200172011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20018
20019 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20020 decompressor.
20021
a298aa04
VS
200222011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20023
20024 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20025 grub_decompress_core since later would fail if grub_decompress_core
20026 is too far.
20027
9b44feca
VS
200282011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20029
20030 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20031 R_MIPS_JALR since it's used by newer compiler.
20032
56dbe7b4
VS
200332011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20034
20035 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20036
52856af2
VS
200372011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20038
20039 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20040 file_path to 0 for surety.
20041 (grub_chainloader_boot): Set exit_data to NULL.
20042 Unset the loader once done.
20043 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20044
9c9bfc6d
VS
200452011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20046
20047 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20048 unknown key into a dprintf.
20049
dd94a3df
VS
200502011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20051
20052 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20053 on first non-existant partition.
20054
fa68d99c
VS
200552011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20056
20057 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20058 openning fails.
20059 Reported by: Mark Korenberg.
20060
157effb7
VS
200612011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20062
20063 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20064 overflow.
20065
ea75312f
VS
200662011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20067
20068 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20069 before closing to ensure that it will be readable by grub-setup.
20070
072b5d31
VS
200712011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20072
20073 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20074 (devpath_1): Use MAKE_PIWG_PATH.
20075 (devpath_2): Likewise.
20076 (devpath_3): Likewise.
20077 (devpath_4): Likewise.
20078 (devpath_5): Likewise.
20079 (devpath_6): Likewise.
20080
20081 The appleldr.mod was checked that to be binary identical to previous
20082 version.
20083
7fae0051
Z
200842011-05-05 Zach <mikezackles>
20085
20086 Support 2010 Macbooks.
20087
20088 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20089 (devs): Add devpath_6.
20090
7c515bee
VS
200912011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20092
20093 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20094 /dev/random. /dev/urandom is good enough for our purposes (salting).
20095
ed660bd8
VS
200962011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20097
20098 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20099
ee5614b7
VS
201002011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20101
20102 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20103 hexadecimal.
20104
664889a6
VS
201052011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20106
20107 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20108 and not 0 on failure.
20109
bd405bbc
CW
201102011-05-03 Colin Watson <cjwatson@ubuntu.com>
20111
20112 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20113 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20114 disk; otherwise grub_fs_probe will not fall back to the next
20115 filesystem.
20116 (grub_pxefs_open): Likewise, for consistency.
20117 Reported and tested by: Ezekiel Grave.
20118
4ebff753
CW
201192011-05-03 Colin Watson <cjwatson@ubuntu.com>
20120
20121 * tests/partmap_test.in: Don't hardcode path to parted.
20122 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20123
8f942553
CW
201242011-05-01 Colin Watson <cjwatson@ubuntu.com>
20125
20126 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20127 of `ls' to find out which devices are available.
20128
3c62402d
VS
201292011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20130
20131 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20132 than source address for efi mmap buffer.
20133
723f63f2
VS
201342011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20135
20136 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20137 wrong action on non-detecting the magic.
20138
68797f92
VS
201392011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20140
20141 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20142 already supplied by another part of the module (fixes compilation on
20143 FreeBSD).
20144
6be8715d
VS
201452011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20146
20147 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20148 match the one used by mdadm.
20149
e91dba5b
CW
201502011-04-21 Colin Watson <cjwatson@ubuntu.com>
20151
20152 * po/README: Add instructions for creating po/LINGUAS.
20153
c85140b3
CW
201542011-04-21 Colin Watson <cjwatson@ubuntu.com>
20155
20156 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20157 #551428.
20158
20159 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20160 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20161 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20162 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20163 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20164 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20165 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20166 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20167 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20168 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20169 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20170 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20171 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20172 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20173 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20174 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20175 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20176 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20177 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20178 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20179 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20180 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20181
92051871
CW
201822011-04-21 Colin Watson <cjwatson@ubuntu.com>
20183
20184 * grub-core/kern/emu/getroot.c
20185 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20186 test that was incorrectly reintroduced in r3214.
20187 Reported by: Ian Dall. Fixes Savannah bug #33133.
20188
b13f79a4
CW
201892011-04-21 Colin Watson <cjwatson@ubuntu.com>
20190
20191 Fix stack pointer handling in 16-bit relocator.
20192
20193 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20194 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20195 Fixes Ubuntu bug #683904.
20196
9b710a88
VS
201972011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20198
20199 * configure.ac: Bump version to 1.99~rc2.
20200
d97e7b59
VS
202012011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20202
20203 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20204 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20205 * grub-core/lib/x86_64/setjmp.S: Likewise.
20206 * grub-core/lib/mips/setjmp.S: Likewise.
20207 * grub-core/lib/powerpc/setjmp.S: Likewise.
20208 * grub-core/lib/sparc64/setjmp.S: Likewise.
20209
0624551c
VS
202102011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20211
20212 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20213 * grub-core/lib/efi/datetime.c: Likewise.
20214
e8f28d4c
VS
202152011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20216
20217 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20218 New function.
20219 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20220 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20221 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20222
bba79a15
VS
202232011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20224
20225 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20226 bitmap.
20227 (grub_gfxterm_term_init): Likewise.
20228
abc474ef
VS
202292011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20230
20231 Take into account the decorations the computing menu entry width.
20232
20233 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20234 (grub_gfxmenu_create_box): Register get_border_width.
20235 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20236 if available.
20237 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20238 get_border_width.
20239
e74b3947
EP
202402011-04-18 Endres Puschner <code@e7p.de>
20241
20242 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20243 Don't skip first class.
20244
34faa595
VS
202452011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20246
20247 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20248 chunks.
20249 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20250
93a777e3
VS
202512011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20252
20253 Complete 64-bit division support.
20254
20255 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20256 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20257 * include/grub/misc.h (grub_divmod64): Rename to ...
20258 (grub_divmod64_full): ... this.
20259 (grub_divmod64): New inline function.
20260
a5102d94
VS
202612011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20262
20263 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20264
f3fb7b36
VS
202652011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20266
20267 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20268 performing the necessary test.
20269
9ac718b0
VS
202702011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20271
20272 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20273 (kfreebsd.elf): Likewise.
20274 (pc-chainloader.elf): Likewise.
20275 (ntldr.elf): Likewise.
20276
50d2cc5a
VS
202772011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20278
20279 Identify RAID by its UUID rather than (guessed) name.
20280
20281 * grub-core/disk/raid.c (ascii2hex): New function.
20282 (grub_raid_open): Accept mduuid/%s specification.
20283 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20284 (get_mdadm_uuid): ... this.
20285 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20286
e03f7bea
VS
202872011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20288
20289 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20290 to negative size.
20291
e74c3112
CW
202922011-04-13 Colin Watson <cjwatson@ubuntu.com>
20293
20294 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20295 btrfs subvolume.
20296 * util/grub.d/20_linux_xen.in: Likewise.
20297
78fa584f
CW
202982011-04-13 Colin Watson <cjwatson@ubuntu.com>
20299
20300 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20301 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20302
20303 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20304 Build a list of relevant visible mounts using the mnt_id and
20305 parent_mnt_id fields, and then scan that list at the end.
20306
9d5f8162
CW
203072011-04-12 Colin Watson <cjwatson@ubuntu.com>
20308
20309 * docs/grub.texi (normal): New section.
20310 (normal_exit): New section.
20311 (Embedded configuration): Add reference to normal.
20312 (GRUB only offers a rescue shell): Likewise.
20313 * docs/grub-dev.texi (Error Handling): Fix typo.
20314
09a9d66f
CW
203152011-04-12 Colin Watson <cjwatson@ubuntu.com>
20316
20317 * NEWS: Drop obsolete entry about probe-only btrfs support.
20318
0c676933
CW
203192011-04-12 Colin Watson <cjwatson@ubuntu.com>
20320
20321 * util/import_gcry.py: Fix typo.
20322
ec9f5e0d
VS
203232011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20324
20325 * NEWS: Add btrfs support.
20326
fe6b2cba
VS
203272011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
203282011-04-11 Colin Watson <cjwatson@ubuntu.com>
20329
20330 BtrFS support. Written by me (Vladimir) with important bugfixes and
20331 even more important testing by Colin.
20332
20333 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20334 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20335 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20336 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20337 mem_input_off and mem_input. All users updated to accept in-RAM input.
20338 (gzio_seek): New function.
20339 (test_zlib_header): Likewise.
20340 (grub_gzio_read): Likewise.
20341 (grub_zlib_decompress): Likewise.
20342 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20343 Accept partial and non-virtual mounts.
20344 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20345 avoid receiving /dev/dm-X as device.
20346 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20347 Handle bind and partial mounts.
20348 * grub-core/lib/crc.c: New file.
20349 * include/grub/deflate.h: Likewise.
20350 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20351 proto.
20352 * include/grub/lib/crc.h: New file.
20353
e745cf0c
VS
203542011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20355
20356 Implement automatic module license checking according to new GNU
20357 guidelines.
20358
20359 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20360 (grub_dl_load_core): Use grub_dl_check_license.
20361 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20362 (GRUB_MOD_LICENSE): Likewise.
20363 (GRUB_MOD_DUAL_LICENSE): Likewise.
20364 All modules updated.
20365
2a9bc016
CW
203662011-04-11 Colin Watson <cjwatson@ubuntu.com>
20367
20368 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20369 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20370 loaders.
20371 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20372
8a3bc88e
VS
203732011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20374
20375 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20376
af869a4a
VS
203772011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20378
20379 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20380 failed.
20381
9ee8d94f
VS
203822011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20383
20384 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20385 parenthesis in the middle of the filename.
20386
b01abe3e
VS
203872011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20388
20389 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20390 rather than trying to put initrd way too high.
20391 Reported by: Ryan Lortie <desrt@desrt.ca>
20392
335bda1e
VS
203932011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20394
20395 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20396 improperly removed string.
20397
5ca1a64d
VS
203982011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20399
20400 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20401 is_disk.
20402 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20403 (open_device) Likewise.
20404 (grub_util_biosdisk_close): Likewise.
d8ce9995 20405 Reported by: Mark Korenberg.
5ca1a64d 20406
cbac5b1e
AK
204072011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20408
20409 * util/grub-mkconfig_lib.in: Add missing quotes.
20410
088cdb65
CW
204112011-04-10 Colin Watson <cjwatson@ubuntu.com>
20412
20413 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20414 is NULL.
20415
8b8a81fa
VS
204162011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20417
20418 Dynamically count the number of lines for the lower banner.
20419
20420 * grub-core/normal/menu_entry.c (per_term_screen): New member
20421 num_entries.
20422 (print_down): Use num_entries.
20423 (update_screen): Likewise.
20424 (grub_menu_entry_run): Set num_entries.
20425 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20426 num_entries.
20427 (grub_print_message_indented): Move real part to ...
20428 (grub_print_message_indented_real): ... here. Additional argument
20429 dry_run.
20430 (draw_border): Additional argument num_entries.
20431 (print_message): Additional argument dry_run.
20432 (print_entries): Receive menu viewer data.
20433 (grub_menu_init_page): New argment num_entries.
20434 (menu_text_set_chosen_entry): Use num_entries.
20435 (grub_menu_try_text): Likewise.
20436 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20437 All users updated.
20438 (grub_ucs4_count_lines): New function.
20439 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20440 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20441 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20442 (grub_term_border_height): Likewise.
20443 (grub_term_num_entries): Likewise.
20444
277f955b
VS
204452011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20446
20447 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20448 Remove now unused string.
20449
536ce85a
CW
204502011-04-09 Colin Watson <cjwatson@ubuntu.com>
20451
20452 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20453 build system.
20454 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20455
20456 (Comment): Fix typo.
20457 (Getting started): General copy-editing.
20458 (Typical Development Experience): Likewise.
20459 (Error Handling): Likewise.
20460 (Video API): Likewise.
20461
2cf09e32
CW
204622011-04-09 Colin Watson <cjwatson@ubuntu.com>
20463
20464 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20465 throughout.
20466
1ec652f4
VS
204672011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20468
20469 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20470 directory.
20471
2c583728
CW
204722011-04-08 Colin Watson <cjwatson@ubuntu.com>
20473
20474 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20475 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20476 "development".
20477
d7a565e9
VS
204782011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20479
20480 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20481 grub_strcpy since the lines aren't necessarily 0-terminated.
20482
7c2e4909
VS
204832011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20484
20485 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20486 root on legacy.
20487
34c09785
VS
204882011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20489
20490 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20491 (GRUB_MOD_INIT): DEVICE isn't optional.
20492
6a6f8058
VS
204932011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20494
20495 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20496 word on new line if it's too long anyway. Fixes a hang.
20497
2e335e90
VS
204982011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20499
20500 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20501 const.
20502 * util/grub-setup.c (main): Reuse md device name if available.
20503 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20504 not GRUB name as argument.
20505 Based on patch by: Florian Wagner <fwagner>.
20506
10a7a867
VS
205072011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20508
20509 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20510 Place mbi on low memory for better compatibility.
20511
7a3d6cd9
VS
205122011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20513
20514 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20515
18dd6b47
VS
205162011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
205172011-04-08 Colin Watson <cjwatson@ubuntu.com>
20518
20519 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 20520 * conf/Makefile.common: Likewise.
18dd6b47 20521
3c0e3f14
VS
205222011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20523
f7148863
VS
20524 * grub-core/normal/menu.c: Add missing include.
20525
205262011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20527
20528 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 20529
6d1fa41f
MZ
205302011-04-08 Martin Zuther <mzuther@mzuther.de>
20531
20532 * util/grub-mkconfig.in: Ignore emacsen backup.
20533
478182a8
VS
205342011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20535
20536 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20537 on open.
20538 (grub_util_biosdisk_close): Likewise.
20539
72a89a54
VS
205402011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20541
20542 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20543 const attribute and use grub_isdigit.
20544
b5ebecfa
A
205452011-04-06 Andrey <dev_null@ukr.net>
20546
20547 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20548 gcc warning.
20549
7755f66e
VS
205502011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20551
20552 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20553 useful grub_dprintf's.
20554
461121ff
VS
205552011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20556
20557 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20558
2a961775
VS
205592011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20560
20561 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20562
adf594cc
VS
205632011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20564
20565 Output errors if theme loading failed.
20566
20567 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20568 grub_gfxterm_fullscreen on error paths to ...
20569 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20570 theme loading error.
20571
665900a3
VS
205722011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20573
20574 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20575 space for older compilers.
20576 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20577
a562b479
VS
205782011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20579
20580 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20581 and report them as not RAID members since they are useless for GRUB.
20582 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20583
850e9373
VS
205842011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20585
20586 Increase LVM implementation robustness in order not to crash on
20587 configurations like pvmove. Previously code assumed that in some places
20588 only lvs or only pvs are used whereas it seems that they are used
20589 interchangeably.
20590
20591 * grub-core/disk/lvm.c (read_node): New function.
20592 (read_lv): Use read_node.
20593 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20594 Match volumes only at the end when all lvs are found. Take both
20595 pvs (first) and lvs (second) into account.
20596 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20597 mirror_* into node_*. All users updated.
20598 (grub_lvm_stripe): Merge this ...
20599 (grub_lvm_mirror): ... and this ...
20600 (grub_lvm_node): ... into this. All users updated.
20601
6f332153
VS
206022011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20603
20604 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20605 of function to allow further scanning for LVMs.
20606
829ea451
VS
206072011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20608
20609 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20610 on failed seek as it breaks open fd reusage.
20611
09ceb9a5
VS
206122011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20613
20614 * util/grub-install.in: Add a recommendation to use --recheck before
20615 reporting bugs.
20616
67e11623
VS
206172011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20618
20619 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20620 are obtained.
20621
caee5efd
VS
206222011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20623
20624 GRUB developper manual based on existing Internals section and
20625 contributions by the various authors with active copyright assignment.
20626
20627 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20628 * docs/font_char_metrics.png: New file.
20629 * docs/font_char_metrics.txt: Likewise.
20630 * docs/grub-dev.texi: Likewise.
20631 * docs/grub.texi (Internals): Move from here ...
20632 * docs/grub-dev.texi: ... here.
20633
2cccc747
CW
206342011-04-01 Colin Watson <cjwatson@ubuntu.com>
20635
20636 Store the loopback device as data on loopback grub_disk structures,
20637 rather than the file it points to. This fixes use of freed memory
20638 if an existing loopback device is replaced.
20639
20640 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20641 disk->data, not dev->file.
20642 (grub_loopback_read): Adjust file assignment to match.
20643 Fixes Ubuntu bug #742967.
20644
186ae367
CW
206452011-04-01 Colin Watson <cjwatson@ubuntu.com>
20646
20647 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20648 when replacing an existing device.
20649
cfed2ad0
VS
206502011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20651
20652 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20653 memory corruptions.
20654
20655 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20656 unsigned.
20657 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20658 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20659 (grub_jfs_read_inode): Likewise.
20660 (grub_jfs_opendir): Likewise. Remove now useless casts.
20661 (grub_jfs_getent): Likewise.
20662 Make ino a grub_uint32_t rather than int.
20663 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20664 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20665 division and module with bit operations.
20666 (grub_jfs_find_file): Make ino a grub_uint32_t.
20667 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20668
05d2ed32
CW
206692011-04-01 Colin Watson <cjwatson@ubuntu.com>
20670
20671 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20672 warning. (This was in fact always initialised before use, but GCC
20673 wasn't smart enough to prove that.)
20674 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20675
91dc6073
VS
206762011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20677
20678 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20679 stack alignment.
20680 (efi_wrap_1): Likewise.
20681 (efi_wrap_2): Likewise.
20682 (efi_wrap_3): Likewise.
20683 (efi_wrap_4): Likewise.
20684 (efi_wrap_5): Likewise.
20685 (efi_wrap_6): Likewise.
20686 (efi_wrap_10): Likewise.
20687 Based on information by: Red Hat/Peter Jones.
20688
a8afc1d1
CW
206892011-03-31 Colin Watson <cjwatson@ubuntu.com>
20690
20691 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20692 set-but-not-used variable.
20693
a826cc7d
CW
206942011-03-31 Colin Watson <cjwatson@ubuntu.com>
20695
20696 * docs/grub.texi (Simple configuration): Be more explicit about
20697 GRUB_DEFAULT, and add an example.
20698 Reported by: Leslie Rhorer.
20699
875b67ba
CW
207002011-03-30 Colin Watson <cjwatson@ubuntu.com>
20701
20702 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20703 shell".
20704
fd7cd914
AS
207052011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20706
20707 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20708 * util/grub.d/20_linux_xen.in: Likewise.
20709
090b1b6a
VS
207102011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20711
20712 * util/grub.d/10_linux.in: Try alternative config filenames where
20713 we parse config file.
20714 * util/grub.d/20_linux_xen.in: Likewise.
20715
baad885c
AS
207162011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20717
20718 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20719 * util/grub.d/20_linux_xen.in: Likewise.
20720
241e41f5
VS
207212011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20722
20723 * grub-core/disk/raid.c (insert_array): Add few potentially
20724 useful grub_util_info.
20725 (grub_raid_register): Likewise.
20726
56445fb2
VS
207272011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20728
20729 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20730 Preserve partition number in mdadm code path.
20731
c871b1c6
VS
207322011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20733
20734 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20735 few potentially useful grub_util_info.
20736
5e631b4f
CW
207372011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20738
20739 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20740
2d5d0333
CW
207412011-03-30 Colin Watson <cjwatson@ubuntu.com>
20742
20743 * docs/grub.texi (default): Use @example rather than nested
20744 itemized lists to avoid breaking gendocs.
20745
3d7ed04e
CW
207462011-03-30 Colin Watson <cjwatson@ubuntu.com>
20747
20748 * docs/grub.texi (Future): Update.
20749
abf04200 207502011-03-30 Colin Watson <cjwatson@ubuntu.com>
20751
20752 * docs/grub.texi (Environment): New chapter.
20753 (Changes from GRUB Legacy): Link to "Environment block" section for
20754 details of limitations.
20755 (Simple configuration): Likewise. Link to documentation of gfxmode
20756 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20757 respectively.
20758 (Shell-like scripting): Note that normal variables are stored in the
20759 environment.
20760 (gettext): Link to documentation of lang and locale_dir.
20761 (list_env): New section.
20762 (load_env): New section.
20763 (save_env): New section.
20764
20765 (Reporting bugs): Fix typo.
20766
e1ad0edd
VS
207672011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20768
20769 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20770 the example.
20771
5d803174
VS
207722011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20773
20774 * grub-core/term/at_keyboard.c (set_scancodes)
20775 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20776
2a2da1d0
CW
207772011-03-30 Colin Watson <cjwatson@ubuntu.com>
20778
20779 * docs/grub.texi (Menu-specific commands): Remove some semantics
20780 that were true in GRUB Legacy but not in GRUB 2.
20781 (submenu): New section.
20782 (false): New section.
20783 (read): New section.
20784 (true): New section.
20785
a7527639
CW
207862011-03-30 Colin Watson <cjwatson@ubuntu.com>
20787
20788 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20789
207902011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
20791
20792 * docs/grub.texi (Simple configuration): Explain some of the
20793 current limitations of grub-mkconfig.
8a748df2 20794 Reported by: Leslie Rhorer.
e30af029 20795
fc858482
VS
207962011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20797
20798 Old macs search for boot.efi rather than for bootia32.efi.
20799
20800 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20801 * util/grub-mkrescue.in: Likewise.
20802 Suggested by: Peter Jones.
20803
e1eb511d
VS
208042011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20805
20806 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20807
70e75364
VS
208082011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20809
20810 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20811 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20812 (grub_lvm_mirror): New struct.
20813 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20814 (grub_lvm_iterate): Iterate only visible volumes.
20815 (grub_lvm_read): Factor out to ..
20816 (read_lv): ... this. Support mirrors.
20817 (grub_lvm_read): New wrapper function.
20818 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20819 stripped or mirrored.
20820
fc18f6a3
VS
208212011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20822
20823 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20824
5c650f4c
CW
208252011-03-29 Colin Watson <cjwatson@ubuntu.com>
20826
20827 * docs/grub.texi (loopback): New section.
20828
61d7156b
CW
208292011-03-29 Colin Watson <cjwatson@ubuntu.com>
20830
20831 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20832 removed -p option.
20833
994b8264
CW
208342011-03-29 Colin Watson <cjwatson@ubuntu.com>
20835
20836 * docs/grub.texi (BIOS installation): New section, partly based on
20837 previous text in other sections.
20838 (Installing GRUB using grub-install): Replace BIOS discussion with a
20839 cross-reference.
20840 (Images): Likewise.
20841
9e4d19e0
VS
208422011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20843
20844 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20845 [HAVE_DIOCGDINFO]: Add safety checks.
20846
a307c0b2
VS
208472011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20848
20849 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20850 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20851
b4db4f39
CW
208522011-03-29 Colin Watson <cjwatson@ubuntu.com>
20853
20854 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20855 real_sb->size is zero (e.g. RAID-0), get the disk size from
20856 real_sb->data_size instead.
20857 Fixes Ubuntu bug #743136.
20858
35e5f84c
VS
208592011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20860
20861 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20862 printf clauses for printing size and start.
20863
d2e29d81
VS
208642011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20865
20866 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20867 Reported and tested by: Timothy Nikkel.
20868
ed5587af
VS
208692011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20870
20871 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20872 (dirty_region_add_real): ... this.
20873 (dirty_region_add): Don't discard margin refresh when performing
20874 scheduled repaint.
20875
a1dc717c
VS
208762011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20877
20878 * grub-core/lib/relocator.c (allocate_regstart)
20879 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20880 terminals are capabple of malloc-free operation.
20881 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20882 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20883
9f3677d3
VS
208842011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20885
20886 * util/grub-setup.c: Copy the partition table zone if floppy support
20887 is disabled, even if no partition table is found.
20888
20889 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20890 during POST if an invalid partition table is contained in the PBR
20891 of the active partition when GRUB is installed to a partition.
20892
24148725
CW
208932011-03-28 Colin Watson <cjwatson@debian.org>
20894
20895 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20896 comment.
20897
f329eda7
CW
208982011-03-28 Colin Watson <cjwatson@debian.org>
20899
20900 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20901 to be specific about what kind of RAID device we're scanning for.
20902
c482ad98
SG
209032011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20904
20905 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20906 return freed string.
20907
5ee04984
VS
209082011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20909
20910 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20911
f4727da9
VS
209122011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20913
20914 Use libgeom on FreeBSD to detect partitions.
20915
20916 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20917 (grub-mkrelpath): Likewise.
20918 (grub-script-check): Likewise.
20919 (grub-editenv): Likewise.
20920 (grub-mkpasswd-pbkdf2): Likewise.
20921 (grub-fstest): Likewise.
20922 (grub-mkfont): Likewise.
20923 (grub-mkdevicemap): Likewise.
20924 (grub-probe): Likewise.
20925 (grub-setup): Likewise.
20926 (grub-ofpathname): Likewise.
20927 (grub-mklayout): Likewise.
20928 (example_unit_test): Likewise.
20929 (grub-menulst2cfg): Likewise.
20930 * grub-core/Makefile.core.def (grub-emu): Likewise.
20931 (grub-emu-lite): Likewise.
20932 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20933 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20934 define HAVE_DIOCGDINFO.
20935 (follow_geom_up) [FreeBSD]: New function.
20936 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20937 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20938 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20939 unconditionally of HAVE_DIOCGDINFO.
20940
82fe6c75
VS
209412011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20942
20943 Fix FreeBSD compilation problem.
20944
20945 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20946 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20947
4c6c9431
CW
209482011-03-24 Colin Watson <cjwatson@ubuntu.com>
20949
20950 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20951 Switch back to page zero before loading a kernel, since some kernel
20952 drivers expect that.
20953 Thanks to: Felix Kuehling.
20954
c7064d94
VS
209552011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20956
20957 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20958 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20959 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20960
3f71cded
VS
209612011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20962
20963 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20964 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20965
ef6de21a
VS
209662011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20967
20968 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20969 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20970 malloc is disabled.
20971
8bc66a2c
VS
209722011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20973
20974 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20975 for modules headers when counting the needed allocation size.
20976
5657722c
VS
209772011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20978
20979 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20980 if no ASCII character is found to prevent crash.
20981
41a85f55
AK
209822011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20983
20984 * grub-core/video/bitmap.c (match_extension): Ignore case.
20985
59e1e5f1
VS
209862011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20987
20988 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20989
bd4d051a
VS
209902011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20991
20992 * grub-core/script/parser.y: Declare "time" as valid argument.
20993
bae7fcc1
PJ
209942011-03-23 Peter Jones <pjones@redhat.com>
20995
20996 Fix incorrect assert failure reporting.
20997
20998 * grub-core/tests/example_functional_test.c (example_test): Add
20999 a failure comment.
21000 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21001 (failure_start): ...this. Check that malloc succeeded.
21002 Don't call xvasprintf. Return failure struct.
21003 (failure_append_vtext): New function.
21004 (failure_append_text): Likewise.
21005 (add_failure): Likewise.
21006 (grub_test_assert_helper): Likewise.
21007 * include/grub/test.h (grub_test_assert_helper): New declaration.
21008 (grub_test_assert): Macro rewritten.
21009
537dc9be
VS
210102011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21011
21012 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21013
fa3e01bf
VS
210142011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21015
21016 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21017
b1d28404
VS
210182011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21019
21020 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21021 into GRUB-style one.
21022
2e3e2e09
VS
210232011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21024
21025 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21026 error and not grub_errno.
21027 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21028
ed57e557
VS
210292011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21030
21031 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21032 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21033
d1611f01
VS
210342011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21035
21036 * grub-core/efiemu/i386/pc/cfgtables.c
21037 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21038 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21039 (grub_xnu_unlock): Likewise.
21040 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21041
7d4e39d6
VS
210422011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21043
21044 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21045 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21046 * grub-core/commands/hashsum.c (aliases): Likewise.
21047 * grub-core/commands/setpci.c (pci_registers): Likewise.
21048 * grub-core/disk/usbms.c (attach_hook): Likewise.
21049 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21050 (zio_checksum_table): Likewise.
21051 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21052 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21053 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21054 * grub-core/lib/relocator.c (leftovers): Likewise.
21055 (extra_blocks): Likewise.
21056 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21057 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21058 (modules_last): Likewise.
21059 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21060 (devices): Likewise.
21061 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21062 (modules_last): Likewise.
21063 * grub-core/normal/auth.c (users): Likewise.
21064 * grub-core/normal/context.c (initial_menu): Likewise.
21065 (current_menu): Likewise.
21066 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21067 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21068 (grub_serial_terminfo_input_template): Likewise.
21069 (grub_serial_terminfo_output_template): Likewise.
21070 (grub_serial_terminfo_input): Likewise.
21071 (grub_serial_terminfo_output): Likewise.
21072 (registered): Likewise.
21073 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21074
40fc4659
VS
210752011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21076
21077 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21078 grub_video_mode_type_t.
21079 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21080 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21081 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21082
2da48d28
VS
210832011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21084
21085 * util/grub-install.in: Correct the x86-64 name as x86_64.
21086
9b43bf39
CW
210872011-03-11 Colin Watson <cjwatson@ubuntu.com>
21088
21089 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21090 initial chunk read from the kernel always includes GRUB's multiboot
21091 header, which is now outside the first sector.
21092
be1a7ce0
CW
210932011-03-09 Colin Watson <cjwatson@ubuntu.com>
21094
21095 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21096 cached mmap_size, so that this works correctly when called multiple
21097 times.
21098 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21099
83a3c48d
CW
211002011-03-09 Colin Watson <cjwatson@ubuntu.com>
21101
21102 * docs/grub.texi (Simple configuration): Tidy up formatting.
21103
57d75699
SJ
211042011-03-07 Szymon Janc <szymon@janc.net.pl>
21105
21106 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21107 Set-but-not-used variable removed.
21108
028501a0
VS
211092011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21110
21111 Workaround yet another IEEE1275 bug.
21112
21113 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21114 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21115 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21116 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21117 is set.
21118 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21119 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21120
d998657d
VS
211212011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21122
21123 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21124 error.
21125
fee7cdd4
CW
211262011-02-11 Colin Watson <cjwatson@ubuntu.com>
21127
21128 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21129 empty, since in that case we can only generate either nothing or a
21130 syntactically invalid configuration file.
21131 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21132
97286eb5
CW
211332011-02-09 Colin Watson <cjwatson@ubuntu.com>
21134
21135 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21136 (Making a GRUB bootable CD-ROM): Likewise.
21137 (Invoking grub-mkrescue): New section.
21138 Reported by: Yann Dirson. Fixes Debian bug #612585.
21139
22b28eb3
CW
211402011-02-09 Colin Watson <cjwatson@ubuntu.com>
21141
21142 * util/grub-install.in: Remove unnecessary brackets from tr
21143 arguments.
21144 * util/grub.d/10_hurd.in: Likewise.
21145 * util/grub.d/10_kfreebsd.in: Likewise.
21146 * util/grub.d/10_linux.in: Likewise.
21147 * util/grub.d/20_linux_xen.in: Likewise.
21148 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21149
7e735e43
CW
211502011-02-08 Colin Watson <cjwatson@ubuntu.com>
21151
21152 * include/grub/file.h (not_easly_seekable): Rename to ...
21153 (not_easily_seekable): ... this. Update all users.
21154
800f1881
CW
211552011-01-28 Colin Watson <cjwatson@ubuntu.com>
21156
21157 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21158 grub-mkrescue.
21159
3281d3d6
VS
211602011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21161
21162 * util/grub-mkimage.c (generate_image): Refuse to create the images
21163 bigger than the actual flash (512K) in Loongson machines. 512K is also
21164 the biggest chip supported by them.
21165
3533413c
VS
211662011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21167
21168 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21169
73ae4f4f
VS
211702011-01-22 Anthony DeRobertis <anthony@derobert.net>
21171
21172 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21173 super_offset field.
21174
37f4f608
VS
211752011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21176
21177 * util/grub-install.in: Ignore install device on platforms
21178 where it doesn't make sense. Always use UUIDs except on pc, efi and
21179 sparc64.
21180 Reported by: Daniel Kahn Gillmor.
21181
03a4ccb5
VS
211822011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21183
21184 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21185
ffc8f4d8
VS
211862011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21187
21188 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21189 (iterate_real): Don't rely on partition being non-NULL.
21190
80f23be7
VS
211912011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21192
21193 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21194 supported platforms. Put a compile time assert for this rather than
21195 generate a warning with 32-bit shift.
21196
5d4f4dd5
VS
211972011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21198
21199 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21200 logical expression more readable.
21201
e489601a
VS
212022011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21203
21204 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21205 even if some elements have a name.
21206 Reported by: Alexander GQ Gerasiov.
21207
96e0a6ea
CW
212082011-01-22 Colin Watson <cjwatson@ubuntu.com>
21209
21210 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21211 path unreadable if `grub-probe -t abstraction' fails, for example if
21212 memberlist fails on an LVM volume group.
21213 Reported by: Darius Jahandarie.
21214
81431e2b
CW
212152011-01-22 Colin Watson <cjwatson@ubuntu.com>
21216
21217 * docs/grub.texi (Simple configuration): Document
21218 GRUB_PRELOAD_MODULES.
21219
5e79d66a
CW
212202011-01-17 Colin Watson <cjwatson@ubuntu.com>
21221
21222 * .bzrignore: Remove nonexistent grub-pbkdf2.
21223
646ada34
VS
212242011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21225
21226 * configure.ac: Bump version to 1.99~rc1.
21227
04360337
VS
212282011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21229
21230 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21231 for safety.
21232
46c9db88
VS
212332011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21234
21235 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21236 module.
21237
212382011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
21239
21240 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21241
4fbf1852
VS
212422011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21243
21244 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21245 diskdevid.
21246
f1632d4d
VS
212472011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21248
21249 Fix compilation on cygwin.
21250
21251 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21252 -R .drectve on cygwin.
21253 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21254 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21255 (COND_CYGWIN): New condition.
21256 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21257 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21258 not @TARGET_OBJ2ELF@.
21259 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21260 type to determine whether aux is to be used.
21261
0b5e127b
VS
212622011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21263
21264 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21265 realpath'ed device string.
21266 Handle floppy (somewhat).
21267 Issue error in unknown case rather than garbage.
21268 Reported by: Axel Beckert.
21269
173b71e9
VS
212702011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21271
21272 * util/grub.d/00_header.in (load_video): Handle the case when no video
21273 drivers available.
21274 Thanks to: Axel Beckert.
21275
f8f479db
VS
212762011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21277
21278 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21279 variable. Fixes problem on big endian platforms.
21280
8fc0a245
VS
212812011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21282
21283 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21284 It doesn't work well there.
21285
b8494fbe
VS
212862011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21287
21288 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21289 warning.
21290 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21291 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21292 counter.
21293
b44a558c
VS
212942011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21295
21296 Use alias->path rather than buggy "canon".
21297
21298 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21299 (ofdisk_hash_add): New argument curcan. All users updated.
21300
51fa856c
CW
213012011-01-11 Colin Watson <cjwatson@ubuntu.com>
21302
21303 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21304
9da068a5
VS
213052011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21306
21307 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21308 loadmask before doing any calculations. Use correct type for offset.
21309 (grub_linux_load64): Likewise.
21310
86205c94
CW
213112011-01-11 Colin Watson <cjwatson@ubuntu.com>
21312
21313 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21314 with NULL.
21315 (console_grub_equivalences_unshift): Likewise.
21316 Reported by: Daniel Dehennin.
21317
4531a206
VS
213182011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21319
21320 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21321 (set_env_limn_ro): Likewise.
21322 (GRUB_MOD_INIT): Likewise.
21323 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21324 ARRAY_SIZE while on it.
21325 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21326 * grub-core/normal/context.c (grub_env_export): Move from here ...
21327 * grub-core/kern/env.c (grub_env_export): ... here.
21328 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21329 prefix.
21330 * grub-core/kern/main.c (grub_main): Export root and prefix.
21331 * include/grub/env.h (grub_env_export): Export.
21332 Reported by: Seth Goldberg.
21333
45146057
VS
213342011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21335
21336 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21337 Take into account space used by ELF sections and multiboot palette.
21338 Reported by: Grégoire Sutre.
21339
f093110b
VS
213402011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21341
21342 * BUGS: New file.
21343
3395fe52
VS
213442011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21345
21346 Pass more appropriate video id to Linux.
21347
21348 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21349 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21350 fill have_vga.
21351 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21352 shift params->lfb_size.
21353 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21354
c2fa6cbb
VS
213552011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21356
21357 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21358
b3ff6ff0
VS
213592011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21360
21361 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21362 separator and pass bootpath/devid even if only one of them is available.
21363 Reported by: Seth Goldberg.
21364
ae67942e
VS
213652011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21366
21367 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21368 implementations bug on them.
21369
21370 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21371 memory.
21372 (filter_memory_map): Likewise.
21373
d570097a
VS
213742011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21375
21376 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21377 Reported by: nebuchadnezzar.
21378
a508e776
VS
213792011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21380
21381 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21382 Reported by: nebuchadnezzar.
21383
dcb883b1
VS
213842011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21385
21386 Submenu default support.
21387
21388 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21389 auto_boot. All users updated.
21390 Declared static.
21391 Handle chosen and default with submenus.
21392 (grub_menu_execute_with_fallback): Declared static.
21393 Don't notify failure if autobooted. Upper level does it.
21394 (menuentry_eq): New function.
21395 (get_entry_number): Use menuentry_eq.
21396 (show_menu): New parameter "autobooted". All users updated.
21397 (grub_show_menu): Likewise.
21398 * include/grub/normal.h (grub_show_menu): Likewise.
21399 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21400 (grub_menu_execute_with_fallback): Likewise.
21401
6fef99b4
VS
214022011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21403
21404 * util/grub-mklayout.c (usage): Update help text.
21405
47a77af5
VS
214062011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21407
21408 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21409
ce6bb3ee
VS
214102011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21411
21412 * util/grub-menulst2cfg.c (main): Trim the line.
21413
db87be2a
VS
214142011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21415
21416 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21417 (grub_machine_init): Don't check amount of low memory as reportedly
21418 INT 12h can be broken and if low memory is too low we wouldn't have
21419 gotten into grub_machine_init anyway.
21420
c49849cc
VS
214212011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21422
21423 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21424 (grub_machine_mmap_iterate): Take low memory into account
21425
b1969b30
VS
214262011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21427
21428 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21429 badfs.
21430 Reported by: TiCPU.
21431
cf0eaf13
VS
214322011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21433
21434 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21435 members errors.
21436
1f060f39
GS
214372011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21438
21439 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21440 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21441
a21e5672
GS
214422011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21443
21444 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21445 openbsd and netbsd types being in part_bsd module.
21446
c88172fa
VS
214472011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21448
21449 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21450 (_FILE_OFFSET_BITS): Likewise.
21451 Reported by: Seth Goldberg.
21452
53798c4b
GS
214532011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21454
21455 * configure.ac: Check for libdevmapper header.
21456
e7121b69
VS
214572011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21458
21459 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21460 avoid aliasing.
21461 (fzap_lookup): Likewise.
21462 (dnode_get): Likewise.
21463 (make_mdn): Likewise.
21464 (zfs_mount): Likewise.
21465 (fzap_iterate): Use temporary pointer to avoid aliasing.
21466 (grub_zfs_read): Likewise.
21467 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21468 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21469 pointers to avoid aliasing.
21470 (grub_cmd_xnu_kernel64): Likewise.
21471 (grub_xnu_load_driver): Likewise.
21472
fc836af9
VS
214732011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21474
21475 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21476 aliasing warning.
21477 (grub_cmd_terminal_output): Likewise.
21478 Reported and tested by: Grégoire Sutre.
21479
f9f37648
VS
214802011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21481
21482 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21483 warning.
21484 Reported and tested by: Grégoire Sutre.
21485
ec1dfd63
VS
214862011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21487
21488 * configure.ac: Do CPU substitution even if it's specified explicitly.
21489 Reported and tested by: Alain Greppin.
21490
9462775a
VS
214912011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21492
21493 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21494 Reported and tested by: Alain Greppin.
21495
0fd48e35
VS
214962011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21497
21498 Satisfy some bison versions need for inttypes.h.
21499
21500 * grub-core/lib/posix_wrap/inttypes.h: New file.
21501 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21502 (int16_t): Likewise.
21503 (int32_t): Likewise.
21504 (int64_t): Likewise.
21505 Reported and tested by: Alain Greppin.
21506
43f1bc83
VS
215072011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21508
21509 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21510 Silence spurious warning.
21511 Reported and tested by: Alain Greppin.
21512
64d1f041
SJ
215132011-01-07 Szymon Janc <szymon@janc.net.pl>
21514
21515 * docs/grub.texi (Support automatic decompression): Update with xz
21516 decompression support.
21517
25953e10
SJ
215182011-01-07 Szymon Janc <szymon@janc.net.pl>
21519
21520 Improve loaders' kernel command line handling.
21521
21522 * grub-core/lib/cmdline.c: New file.
21523 * include/grub/lib/cmdline.h: Likewise.
21524 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21525 grub_create_loader_cmdline to create kernel command line.
21526 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21527 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21528 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21529 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21530 (linux): Add lib/cmdline.c on common.
21531
e72d259f
VS
215322011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21533
21534 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21535 inopos might be unaligned.
21536
c0cf26da
VS
215372011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21538
21539 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21540 endian transformations.
21541 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21542 Based on report by: Doug Nazar.
21543
0ca09e6c
DN
215442011-01-07 Doug Nazar <nazard.michi@gmail.com>
21545
21546 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21547 array->members[i].start_sector.
21548 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21549
014b6806
VS
215502011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21551
21552 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21553 Reported and tested by: Grégoire Sutre.
21554
415502c2
CW
215552011-01-06 Colin Watson <cjwatson@ubuntu.com>
21556
21557 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21558 avoid causing test failures by clearing the screen.
21559
71b6a2b7
CW
215602011-01-06 Colin Watson <cjwatson@ubuntu.com>
21561
21562 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21563 Fix prefix check to handle the case where dir ends with a slash
21564 (most significantly, "/" itself).
21565 Reported by: Michael Vogt.
21566
b3f8d28a
VS
215672011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21568
21569 Run terminfo_cls on initing terminfo output to clear the screen and
21570 move the cursor to (0,0).
21571
21572 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21573 Call grub_terminfo_output_init.
21574 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21575 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21576 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21577
4c3e4f37
VS
215782011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21579
21580 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21581 only when needed.
21582
488f71f1
VS
215832011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21584
21585 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21586 CTRL.
21587
18a38098
VS
215882011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21589
21590 The E820 type 5 is BADRAM, not EXEC_CODE.
21591
21592 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21593 (GRUB_E820_BADRAM): New define.
21594 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21595 into reserved. Propagate BADRAM.
21596 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21597 (GRUB_E820_BADRAM): New define.
21598
9eae2084
VS
215992011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21600
21601 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21602 Ignore the memory post-4G.
21603 (grub_relocator_firmware_alloc_region): Additional debug statement.
21604
ebc71d28
VS
216052011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21606
21607 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21608 names.
21609 Reported by: David Pravec.
21610
446fa400
VS
216112011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21612
21613 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21614 BIOSes.
21615
a0159f37
VS
216162011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21617
21618 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21619 Prevent overflow.
21620 (grub_reed_solomon_recover): Likewise.
21621
e5146ca1
VS
216222011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21623
21624 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21625
216262011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
21627
21628 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21629 variable.
21630
5b1bdf12
CW
216312011-01-04 Colin Watson <cjwatson@ubuntu.com>
21632
21633 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21634 descriptions of extract_legacy_entries_source and
21635 extract_legacy_entries_configfile.
21636 Reported by: Seung Soo, Ha.
21637
99d925aa
CW
216382011-01-03 Colin Watson <cjwatson@ubuntu.com>
21639
21640 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21641 on devices that do not implement function 0.
21642
4af0504b
DV
216432011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21644
21645 * grub-core/fs/hfsplus.c: Make parent unsigned.
21646 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21647 overflows.
21648 (grub_hfsplus_cmp_extkey): Likewise
21649
469ee10a
VS
216502011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21651
21652 * util/grub-install.in: Correctly use bootloader_id and not
21653 GRUB_DISTRIBUTOR on efibootmgr line.
21654
323a8e9c
VS
216552011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21656
21657 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21658
1b394975
IC
216592010-12-31 Ian Campbell <ijc@hellion.org.uk>
21660
21661 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21662 Xen and reorder menu item wording to make it clearer that this entry
21663 will launch Xen. Print separate messages when loading Xen and
21664 Linux.
21665
275bff5f
VS
216662010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21667
21668 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21669 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21670 loop in case of incorrect amiga partmap.
21671
307806cb
VS
216722010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21673
21674 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21675 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21676 Reported by:EHeM.
21677
b12b923e
VS
216782010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21679
21680 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21681 spurious warning.
21682 Reported by: crocket
21683
14b48a19
VS
216842010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21685
21686 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21687 Preload EFIemu.
21688 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21689
693db2df
VS
216902010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21691
21692 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21693 is loaded
21694 (grub_cmd_xnu_kextdir): Likewise.
21695 (grub_cmd_xnu_splash): Likewise.
21696
c7638645
VS
216972010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21698
21699 Avoid using Reed-Solomon with 0 redundancy.
21700
21701 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21702 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21703 or 0 redundancy.
21704 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21705 (grub_reed_solomon_recover): Likewise.
21706
25dd4780
VS
217072010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21708
21709 Don't use disk subsystem in freebsd_boot.
21710
21711 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21712 (freebsd_biosdev): Likewise.
21713 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21714 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21715
0b2db943
VS
217162010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21717
21718 Handling of files of unknown size is currently limited. They can't be
21719 used e.g. for initrd or modules. Moreover gzip handling of not
21720 easily seekable files is buggy. Disable unknown file size for now. May
21721 be inefficient but works.
21722
21723 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21724 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21725
5c408d0f
MP
217262010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21727
21728 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21729 floppy probe.
21730
190a011a
JD
217312010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21732
21733 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21734
022d01b8
SL
217352010-12-25 Shea Levy <shlevy>
21736
21737 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21738
c4855fdc
VS
217392010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21740
21741 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21742 Windows Server 2008.
21743 Reported by: Devin Giddings.
21744
0354b867
VS
217452010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21746
21747 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21748 writing an error message because of async power management.
21749 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21750 (grub_reboot): Likewise.
21751
ab66c69f
JU
217522010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21753
21754 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21755 keep unit tests from failing when they shouldn't.
21756
1426ef35
CW
217572010-12-21 Colin Watson <cjwatson@ubuntu.com>
21758
21759 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21760 previous patch increased the size of the RS code by 20 bytes (at
21761 least with gcc-4.4), so increase this by 20 bytes to match.
21762 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21763
20641b6b
CW
217642010-12-21 Colin Watson <cjwatson@ubuntu.com>
21765
21766 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21767 scratch area. Make sure to initialise chosen in standalone mode as
21768 well as non-standalone.
21769 Reported by: Robert Hooker and Andy Whitcroft.
21770 Tested by: Andy Whitcroft.
21771
d060ad60
CW
217722010-12-21 Colin Watson <cjwatson@ubuntu.com>
21773
21774 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21775 constructing a new unescaped string and passing it to grub_xputs in
21776 one go, rather than passing characters to grub_printf one at a time.
21777
b889cfad
CW
217782010-12-21 Colin Watson <cjwatson@ubuntu.com>
21779
21780 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21781 initialising utf16.
21782
4e01b6c8
CW
217832010-12-21 Colin Watson <cjwatson@ubuntu.com>
21784
21785 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21786 comment. Add an extra layer of quotation, requiring the output of
21787 this function to be used in a printf format string.
21788 (gettext_printf): New function.
21789 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21790 Extract translatable strings from here-documents and use a temporary
21791 variable instead, so that xgettext can find them.
21792 * util/grub.d/10_kfreebsd.in: Likewise.
21793 * util/grub.d/10_linux.in: Likewise.
21794 * util/grub.d/20_linux_xen.in: Likewise.
21795
21796 * po/grub.d.sed: New file.
21797 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21798 arguments. Set c-format flags on all strings extracted from
21799 util/grub.d/ (xgettext refuses to include these itself for strings
21800 it extracted from a shell file, but these really are c-format).
21801
5318fe98
VS
218022010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21803
21804 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21805 Avoid next pointing to nowhere.
21806
6c85b743
VS
218072010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21808
21809 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21810 rather than assuming than rootblock is exactly in the middle.
21811 (grub_affs_label): Likewise.
21812
a2a08a35
VS
218132010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21814
21815 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21816 reserved_first_sector to 0.
21817 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21818 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21819 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21820
7059d1ec
VS
218212010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21822
21823 Fix handling of UTF-16 UDF labels.
21824
21825 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21826 (read_string): .. here.
21827 (grub_udf_label): Use read_string.
21828
30aff4cb
BC
218292010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21830
21831 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21832 editor under argument scope.
21833 Reported by: Jordan Uggla
21834
5cf86f4b
VS
218352010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21836
21837 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21838
32570200
CW
218392010-12-18 Colin Watson <cjwatson@ubuntu.com>
21840
21841 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21842 line, and other keys scroll an entire page (previous handling was
21843 for \r and \n to scroll a page and other keys to scroll two lines).
21844
e1dffcf2
VS
218452010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21846
21847 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21848 Set ptrdest to correct get_physical_target_address rather than
21849 incorrect get_virtual_current_address.
21850
b04298cf 218512010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21852
21853 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21854 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21855
5367ecd3
CW
218562010-12-10 Colin Watson <cjwatson@ubuntu.com>
21857
21858 * .bzrignore: Ignore grub-core/rs_decoder.S.
21859
1fb430f8
CW
218602010-12-10 Colin Watson <cjwatson@ubuntu.com>
21861
21862 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21863 .mo/.mo.gz opening sequence to ...
21864 (grub_mofile_open_lang): ... here.
21865 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21866 * util/grub.d/00_header.in (grub_lang): Include country part of
21867 locale.
21868 Reported by: Mario Limonciello.
21869
a94a6671
RM
218702010-12-09 Robert Millan <rmh@gnu.org>
21871
21872 * NEWS: Document addition of ZFS support.
21873
24b7938b
CW
218742010-12-04 Colin Watson <cjwatson@ubuntu.com>
21875
21876 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21877 rather than `/ 2', as the latter requires -Wa,--divide which would
21878 require bumping our minimum binutils version.
21879
bddc3ef6
BC
218802010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21881
21882 * util/grub-script-check.c (main): Print script line number on
21883 error.
21884
bf78d5b2
RM
218852010-12-01 Robert Millan <rmh@gnu.org>
21886
21887 * grub-core/fs/zfs/zfs.c: New file.
21888 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21889 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21890 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21891 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21892
21893 * include/grub/zfs/dmu.h: Likewise.
21894 * include/grub/zfs/dmu_objset.h: Likewise.
21895 * include/grub/zfs/dnode.h: Likewise.
21896 * include/grub/zfs/dsl_dataset.h: Likewise.
21897 * include/grub/zfs/dsl_dir.h: Likewise.
21898 * include/grub/zfs/sa_impl.h: Likewise.
21899 * include/grub/zfs/spa.h: Likewise.
21900 * include/grub/zfs/uberblock_impl.h: Likewise.
21901 * include/grub/zfs/vdev_impl.h: Likewise.
21902 * include/grub/zfs/zap_impl.h: Likewise.
21903 * include/grub/zfs/zap_leaf.h: Likewise.
21904 * include/grub/zfs/zfs.h: Likewise.
21905 * include/grub/zfs/zfs_acl.h: Likewise.
21906 * include/grub/zfs/zfs_znode.h: Likewise.
21907 * include/grub/zfs/zil.h: Likewise.
21908 * include/grub/zfs/zio.h: Likewise.
21909 * include/grub/zfs/zio_checksum.h: Likewise.
21910
21911 * Makefile.util.def: Build ZFS into libgrubmods.
21912 * grub-core/Makefile.core.def: Build zfs.mod.
21913
3f0f3831
SJ
219142010-11-30 Szymon Janc <szymon@janc.net.pl>
21915
21916 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21917 variable.
21918 * grub-core/commands/wildcard.c (match_files): Likewise.
21919
3a4253b2
RM
219202010-11-30 Robert Millan <rmh@gnu.org>
21921
21922 * grub-core/loader/i386/bsd.c
21923 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21924 whether kernel is loaded using grub_loader_is_loaded(), rather
21925 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21926 certain error conditions.
21927
8c317b27
RM
219282010-11-30 Robert Millan <rmh@gnu.org>
21929
c5c9cd3e
RM
21930 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21931 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 21932
49d3ab46
VS
219332010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21934
21935 Avoid using tricks for initialising endian variables.
21936
21937 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21938 Make const.
21939 (GRUB_MOD_INIT): Don't byte-swap.
21940 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21941 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21942 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21943 (grub_swap_bytes32_compile_time): Likewise.
21944 (grub_cpu_to_le32_compile_time): Likewise.
21945 (grub_cpu_to_le16_compile_time): Likewise.
21946
f420a804
VS
219472010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21948
21949 * util/grub-setup.c (setup): Stop recommending --force. People who
21950 understand the dangers of blocklists are able to find this option
21951 anyway and the ones who don't shouldn't use it anyway.
21952
4e7db17b
RM
219532010-11-26 Robert Millan <rmh@gnu.org>
21954
21955 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21956 Update all users.
21957
9be57a0d
CW
219582010-11-26 Colin Watson <cjwatson@ubuntu.com>
21959
21960 Fix LVM-on-RAID probing.
21961
21962 * util/grub-probe.c (probe): Remember which disk was detected as
21963 RAID (perhaps an LVM physical volume). Use that disk's raidname
21964 rather than that of the top-level disk.
21965
2c7859b3 219662010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 21967
d7647bb6
BC
21968 Fix cmdline argument quotes for setparams command of menuentry
21969 definitions.
7e623b0d
BC
21970
21971 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21972 quotes for arguments.
f866fe80 21973 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 21974 grub_strchrsub function instead.
f866fe80 21975
7955bea0 21976 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 21977
74f72a64
CW
219782010-11-24 Colin Watson <cjwatson@ubuntu.com>
21979
21980 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21981 effort by skipping "." and ".." entries up-front.
21982 Suggested by: Michael Lazarev.
21983
5a407278
CW
219842010-11-24 Colin Watson <cjwatson@ubuntu.com>
21985
21986 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21987 ldflags to ldadd, to fix link line ordering.
21988 (none_decompress): Likewise.
21989
3030d8ec
CW
219902010-11-24 Colin Watson <cjwatson@ubuntu.com>
21991
21992 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21993 platforms.
21994 (grub-emu-lite): Remove kern/emu/cache.S.
21995
b7fbac12
CW
219962010-11-23 Colin Watson <cjwatson@ubuntu.com>
21997
21998 * util/deviceiter.c (compare_devices): If the by-id link for a
21999 device couldn't be resolved, fall back to sorting by the by-id link
22000 rather than segfaulting.
22001 Reported and tested by: Daniel Mierswa.
22002
5225f328
CW
220032010-11-23 Colin Watson <cjwatson@ubuntu.com>
22004
22005 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22006 ldflags, to fix link line ordering.
22007
038b3ce8
CW
220082010-11-23 Colin Watson <cjwatson@ubuntu.com>
22009
22010 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22011 linkers are picky about this.
22012
bf16e98e
CW
220132010-11-23 Colin Watson <cjwatson@ubuntu.com>
22014
22015 * grub-core/Makefile.am (command.lst): Adjust sed expression
22016 ordering so that extended and priority commands aren't treated as
22017 ordinary commands.
22018
7242bab6
CW
220192010-11-23 Colin Watson <cjwatson@ubuntu.com>
22020
22021 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22022 Remove byte-swapping function calls, which are not valid in
22023 structure initialisers.
22024 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22025 non-const.
22026 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22027 grub_gpt_partition_type_bios_boot.
22028
14e8b279
CW
220292010-11-22 Colin Watson <cjwatson@ubuntu.com>
22030
22031 Fix test program build on GNU/kFreeBSD.
22032
22033 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22034 $(LIBNVPAIR)' library dependencies.
22035
e6f63338 220362010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
22037
22038 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22039
cf8ffc38
CW
220402010-11-22 Colin Watson <cjwatson@ubuntu.com>
22041
22042 * util/grub-install.in: Remove excessive quoting that broke
22043 installations to RAID devices.
22044
7f8b0fd7
VS
220452010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22046
22047 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22048 bootloader version instead of 0.
22049
dfd240b1
VS
220502010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22051
22052 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22053 warning.
22054
7b61e609
VS
220552010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22056
22057 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22058 retrieve the metadat sector if size isn't known.
22059 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22060
9dfe92d0
RM
220612010-11-18 Robert Millan <rmh@gnu.org>
22062
22063 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22064 with grub_memcmp().
22065
41cc919e
VS
220662010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22067
22068 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22069 arrow.
22070 Reported by: Jordan Uggla.
22071
1afcc914
VS
220722010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22073
22074 Make better UTF compliant.
22075
22076 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22077 sequences as incorrect.
22078 (grub_is_valid_utf8): Likewise.
22079 (grub_utf8_to_ucs4): Likewise.
22080 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22081 (grub_ucs4_to_utf8_alloc): Likewise.
22082 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22083
f1808884
VS
220842010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22085
22086 Make legacy_source behave like source.
22087
22088 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22089 grub_show_menu.
22090 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22091
24ec575b
CW
220922010-11-16 Colin Watson <cjwatson@debian.org>
22093
22094 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22095 (-Wunused implies -Wunused-parameter, but not vice versa).
22096
72b7c7aa
CW
220972010-11-16 Colin Watson <cjwatson@ubuntu.com>
22098
22099 * configure.ac: Make error messages less confusing by testing for
22100 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22101 accepted, but produces a diagnostic if something else is wrong).
22102
e98937aa
VS
221032010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22104
22105 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22106 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22107 (now unused).
22108 (grub_keyboard_controller_init)
22109 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22110 read the initial state since controller isn't inited yet.
22111
f6bbabc3
VS
221122010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22113
22114 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22115 allocate_regbeg may need to create new chunk header.
22116
22e7dbb2
VS
221172010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22118
22119 Fix quoting in legacy parser.
22120
22121 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22122 single quotes.
22123 (grub_legacy_parse): Likewise.
22124 Reported by: Jordan Uggla.
22125 Tested by: Jordan Uggla.
22126
03f80960
VS
221272010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22128
22129 Don't add -lgcc on i386 and x86_64.
22130
22131 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22132 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22133 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22134
779dc15b
VS
221352010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22136
22137 * configure.ac: Add -Wno-trampolines when supported.
22138
d20a3b37
MV
221392010-11-14 Modestas Vainius <modax@debian.org>
22140
22141 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22142 fakeraid.
22143
e5360933
GC
221442010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22145
22146 Add generic logical block size support for UDF.
22147
22148 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22149 (GRUB_UDF_BLKSZ): Removed.
22150 (struct grub_udf_data): New field "lbshift" to hold the logical block
22151 size of the file system in log2 format. All users updated.
22152 (sblocklist): Change type to unsigned.
22153 (grub_udf_mount): Change type of "sblklist" to unsigned.
22154 Move AVDP search before VRS recognition, because the latter requires
22155 knowledge of the logical block size, which is detected during the
22156 former.
22157 Detect and validate logical block size during AVDP search, adding
22158 support for block sizes 512, 1024 and 4096.
22159 Make VRS recognition independent of block size.
22160
cb0229c5
GC
221612010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22162
22163 Properly handle deleted files on UDF.
22164
22165 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22166 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22167 set.
22168
406858a8
GC
221692010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22170
22171 Support reading files larger than 2 GiB.
22172
22173 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22174 "offset" to grub_off_t.
22175 (grub_udf_read_file): Likewise for parameter "pos".
22176
130da6a7
VS
221772010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22178
22179 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22180 unavailable.
22181 (Simple configuration): Refer to Changes from GRUB Legacy about
22182 save_env availability.
22183
65e93f6b
VS
221842010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22185
22186 * util/grub-install.in: Ignore empty partition table detection
22187 instead of trying to include part_ module.
22188
1fd08bf1
VS
221892010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22190
22191 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22192 LVM on RAID support.
22193
de1a024f
VS
221942010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22195
22196 Properly define WORDS_BIGENDIAN in wrapped environments.
22197
22198 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22199 definition.
22200 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22201
22202 Reported by: Manoel Rebelo Abranches.
22203 Tested by: Manoel Rebelo Abranches.
22204
bc5dd0b9
VS
222052010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22206
22207 * util/grub-mkconfig.in: Fix quoting.
22208
58c184be
VS
222092010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22210
22211 Support big ext2 files.
22212
22213 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22214 (grub_ext2_read_block): Support triple indirect blocks.
22215 (grub_ext2_read_file): Use 64-bit types and read size_high.
22216 (grub_ext2_open): Read size_high.
22217 Reported by: Ximin Luo.
22218 Tested by: Manoel Rebelo Abranches.
22219
5f0c02b3
VS
222202010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22221
22222 * util/grub-install.in: Handle filenames containing spaces.
22223 Reported by: Jordan Uggla.
22224 Tested by: Jordan Uggla.
22225
4417aae6
VS
222262010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22227
22228 * util/grub-mkconfig.in (grub_script_check): New variable.
22229 Use grub_script_check instead of grub-script-check.
22230 Reported by: Barry Jackson.
22231
7625a68e
VS
222322010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22233
22234 * docs/grub.texi (menu): Correct the order.
22235 Reported by: D. Hugh Redelmeier.
22236
10001ac5
VS
222372010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22238
22239 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22240 jump.
22241
9c4cf53b
MRA
222422010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22243
10001ac5
VS
22244 * include/grub/elfload.h (grub_elf32_size): New parameter.
22245 All users updated.
9c4cf53b
MRA
22246 Return maximum segments alignment.
22247 (grub_elf64_size): Likewise.
22248 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22249 Return maximum segments alignment.
22250 (grub_elf64_size): Likewise.
22251 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
22252 (grub_linux_claimmap_iterate): New function. Uses the
22253 "available" property in the "memory" node for memory allocation
22254 for kernel in the PowerPC loader.
9c4cf53b
MRA
22255 (grub_linux_load32): Correctly find linux entry point offset.
22256 (grub_linux_load64): Likewise.
22257
d2bf06bf
RM
222582010-11-07 Robert Millan <rmh@gnu.org>
22259
22260 On mips-yeeloong, build with -march=loongson2f when this flag is
22261 available (GCC >= 4.4).
22262 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22263 `-march=mips3'.
22264 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22265 or otherwise add -march=mips3.
22266
898c99a2
BC
222672010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22268
87220a68
BC
22269 Suppress shell expansion on echo '*' and echo "*" like cases.
22270 Reported by: Jordan Uggla.
898c99a2
BC
22271
22272 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22273 string arguments before shell expansion.
22274 * tests/grub_cmd_echo.in: New testcases.
22275
4f9b406a
RM
222762010-11-07 Robert Millan <rmh@gnu.org>
22277
22278 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22279 transition.
22280
80c6d25e
VS
222812010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22282
22283 * grub-core/kern/emu/hostdisk.c
22284 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22285
4a1a0153
VS
222862010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22287
22288 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22289 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22290 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22291
34706ddc
VS
222922010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22293
22294 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22295
6972dea9
VS
222962010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22297
22298 * util/grub-install.in: Replace useless recomendation to pass
22299 --modules with a recomendation to report a bug.
22300
9c693bd6
VS
223012010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22302
22303 Properly register serial terminfo.
22304 Reported by: Jordan Uggla
22305
22306 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22307 const.
22308 (grub_serial_terminfo_output_template): Likewise.
22309 (grub_cmd_serial): Register "serial" with terminfo.
22310 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22311 grub_serial_terminfo_output.
22312
6c9e4c0c
RM
223132010-11-05 Robert Millan <rmh@gnu.org>
22314
22315 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22316 needed).
22317
b9b3839f
RM
223182010-11-05 Robert Millan <rmh@gnu.org>
22319
22320 On Yeeloong, pass machine type information to Linux.
22321
22322 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22323 (LOONGSON_MACHTYPE): New macro, set to
22324 "machtype=lemote-yeeloong-2f-8.9inches".
22325 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22326 additional argument to Linux.
22327
1a3aaff4
RM
223282010-11-04 Robert Millan <rmh@gnu.org>
22329
22330 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22331 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22332 (its SATA disks are detected as slaveless IDE master drives on
22333 kFreeBSD).
22334 Reported by Carsten Aulbert.
22335
a75f4f62
CW
223362010-11-02 Colin Watson <cjwatson@ubuntu.com>
22337
22338 * util/bin2h.c (main): Fix spelling error in generated output.
22339
33b4b0c6
GS
223402010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22341
22342 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22343
2b36fbf4
VS
223442010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22345
22346 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22347 vga= option is supplied.
22348
74aaf558
VS
223492010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22350
22351 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22352 * util/grub.d/10_kfreebsd.in: Likewise.
22353 * util/grub.d/10_linux.in: Likewise.
22354 * util/grub.d/20_linux_xen.in: Likewise.
22355
6428dec3
VS
223562010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22357
22358 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22359 argument as an argument to no-argument option.
22360
f8729d98
VS
223612010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22362
22363 * util/grub.d/10_linux.in: Add missing load_video with explicit
22364 GRUB_GFXPAYLOAD_LINUX.
22365
89d68fa6
VS
223662010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22367
22368 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22369
3a1197cd
VS
223702010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22371
22372 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22373 elements with invlid index.
22374 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22375 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22376 members.
22377 * include/grub/raid.h (grub_raid_member): New struct.
22378 (grub_raid_array): Transform devices and start_sector into usage of
22379 grub_raid_member. All users updated
22380 (allocated_devs): New member.
22381
71574288
VS
223822010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22383
22384 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22385 is modified
22386
8d40ec65
BC
223872010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22388
22389 NetBSD build fix for getline function conflict from gnulib.
22390
22391 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22392 components that depend on gnulib headers.
22393 (libgrubmods.a): Renamed from earlier libgrub.a.
22394 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22395
95b9257e
VS
223962010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22397
22398 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22399 install rather than creating a broken install.
22400
26c53dc6
VS
224012010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22402
22403 * util/grub-setup.c (argp): Remove misleading example of installing to
22404 a partition.
22405
4171b3c5
VS
224062010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22407
22408 * util/grub-setup.c (setup): Clarify the error message.
22409
18568d18
VS
224102010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22411
22412 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22413
4f6a2e21
VS
224142010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22415
22416 * grub-core/kern/emu/misc.c
22417 (grub_make_system_path_relative_to_its_root)
22418 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22419
224202010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
22421
22422 * grub-core/kern/emu/misc.c
22423 (grub_make_system_path_relative_to_its_root): Revert r2882.
22424
e138c458
VS
224252010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22426
22427 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22428 useless field head. All users updated.
22429 (free_subchunk): Correct handling of IN_REGION subchunk.
22430
0cbcdf0e
CW
224312010-10-22 Colin Watson <cjwatson@ubuntu.com>
22432
22433 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22434 (Supported kernels): Likewise.
22435
b65ea155
GS
224362010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22437
22438 Make mktemp invocations portable.
22439
22440 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22441 exit if mktemp fails.
22442 * tests/grub_script_blockarg.in: Likewise.
22443 * tests/partmap_test.in: Likewise.
22444 * tests/util/grub-shell-tester.in: Likewise.
22445 * tests/util/grub-shell.in: Likewise.
22446 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22447 * Makefile.am: Likewise, and chain shell commands with `&&'
22448 instead of ';'.
22449 * util/grub-mkrescue.in: Use the same explicit template as above, and
22450 exit if mktemp fails.
22451
05f43cdd
BC
224522010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22453
22454 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22455 Linux kernel, reported by Dennis Schridde.
22456
800e6a9b
SJ
224572010-10-17 Szymon Janc <szymon@janc.net.pl>
22458
22459 * grub-core/normal/auth.c (grub_auth_check_authentication):
22460 Set-but-not-used variable removed.
22461
d82df574
VS
224622010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22463
22464 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22465 32-bit linux protocol.
22466
7bced458
VS
224672010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22468
22469 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22470 cursor shape for sanity.
22471
5b027690
VS
224722010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22473
22474 * docs/grub.texi (Installation): Document buggy BIOS install.
22475
ba5f65cf
VS
224762010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22477
22478 * docs/grub.texi (Installation): Indent.
22479
fdf2ec9c
VS
224802010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22481
22482 * util/grub-setup.c (setup): New parameter allow_floppy.
22483 (arguments): New member allow_floppy.
22484 (argp_parser): Handle --allow-floppy.
22485 (main): Pass allow_floppy.
22486 * util/grub-install.in: New option --allow-floppy passed though to
22487 grub-setup.
22488
861dfd4c
VS
224892010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22490
22491 * util/grub-install.in: Handle partitionless disks.
22492
f77a8c24
VS
224932010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22494
22495 * util/grub-setup.c (setup): Don't clean blocklists before readability
22496 verfification.
22497
27d9ee32
VS
224982010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22499
22500 * docs/grub.texi (Installation): Document embedding zone. Remove
22501 obsolete grub-install example.
22502
6bdda8f8
SJ
225032010-10-16 Szymon Janc <szymon@janc.net.pl>
22504
22505 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22506 Set-but-not-used variable ifdef'ed.
22507 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22508 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22509 variable removed.
22510 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22511 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22512 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22513 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22514 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22515 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22516 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22517 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22518 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22519 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22520 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22521 Likewise.
22522
e19b016b
VS
225232010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22524
22525 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22526 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22527 enum value.
22528
6c8d3002
VS
225292010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22530
22531 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22532 synonym to _S5_. Needed for some DSDTs.
22533
c32b51c9
VS
225342010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22535
22536 Userspace ACPI parser debugging.
22537
22538 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22539 headers and add relevant defines. Don't include standard headers.
22540 (main) [GRUB_DSDT_TEST]: New function.
22541 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22542 Don't declare functions.
22543
fbfbeb39
VS
225442010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22545
22546 Remove dead grub_efi_mm_fini.
22547
22548 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22549 (ALLOCATED_PAGES_SIZE): Likewise.
22550 (MAX_ALLOCATED_PAGES): Likewise.
22551 (allocated_pages): Likewise.
22552 (grub_efi_allocate_pages): Don't record allocated pages.
22553 (grub_efi_free_pages): Likewise.
22554 (grub_efi_mm_init): Likewise.
22555 (grub_efi_mm_fini): Removed.
22556
65f7ed7c
VS
225572010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22558
22559 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22560 (grub_efi_mm_init): Take into account the memory map size increase.
22561
24977b44
VS
225622010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22563
22564 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22565 (serial_hw_put): Wait based on real time rather than port reads. Don't
22566 roken ports.
22567 * include/grub/serial.h (grub_serial_port): New field broken.
22568
1eb01cd2
RM
225692010-10-16 Robert Millan <rmh@gnu.org>
22570
22571 * grub-core/kern/emu/misc.c
22572 (grub_make_system_path_relative_to_its_root): Fix premature return
22573 when processing non-root ZFS filesystems.
5f8b440b 22574 Reported by Sergio Talens-Oliag.
1eb01cd2 22575
2d5fed60
RM
225762010-10-15 Robert Millan <rmh@gnu.org>
22577
22578 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22579 guarantee compressed ones are processed first.
22580
d0f4c1ea
VS
225812010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22582
22583 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22584 grub_efiemu_autocore.
22585
d87c681f
VS
225862010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22587
22588 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22589 rather than 0x1b.
22590 (grub_console_getkey): Use correct jae opcode rather than ja.
22591
219b3564
RM
225922010-10-12 Robert Millan <rmh@gnu.org>
22593
22594 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22595 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22596 variable. All references updated.
22597
22598 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22599
20c6bb7e
VS
226002010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22601
22602 Correctly distinguish mdraid flavours.
22603
22604 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22605 (insert_array): New argument raid.
22606 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22607 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22608 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22609
74baff84
VS
226102010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22611
22612 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22613 handling of special keys.
22614
3ef068df 226152010-10-02 Aleš Nesrsta <starous@volny.cz>
22616
c7980ad9
VS
22617 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22618 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 22619
a9455194 226202010-10-02 Aleš Nesrsta <starous@volny.cz>
22621
c7980ad9
VS
22622 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22623 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22624 users updated.
a9455194 22625 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 22626 Use right endpoint when querying descriptor.
a9455194 22627
441cfe65
VS
226282010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22629
22630 Clear out 0x80 color bit on EFI.
22631 Tested by: decoder
22632 Reported by: decoder and meta tech.
22633
22634 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22635 (grub_console_setcolorstate): Clear out 0x80 bit.
22636 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22637 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22638 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22639
bf26bcc4
VS
226402010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22641
22642 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22643 Set to "auto".
22644
6e3c515d
VS
226452010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22646
22647 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22648 mo_file after freeing.
22649
e6d983ba
VS
226502010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22651
22652 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22653
74ccb5b5
VS
226542010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22655
22656 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22657 flags.
22658
17821956
VS
226592010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22660
22661 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22662 usage.
22663
ee74fa48
VS
226642010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22665
22666 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22667
22668 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22669 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22670 and terminfo.h when needed.
22671 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22672 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22673 (terminfo): Enable only on terminfokernel.
22674 (extcmd): Likewise.
22675 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22676 * include/grub/lib/arg.h: Likewise.
22677 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22678 incorrect usage of ->.
22679
aa438e68
VS
226802010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22681
22682 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22683 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22684
57994012
VS
226852010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22686
22687 Fix coreboot compilation.
22688
22689 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22690 Take VBE info into account even if only text is supported.
22691 (fill_vbe_info): Take into account the case when only VGA text
22692 is supported.
22693 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22694 on coreboot, multiboot and qemu.
22695
2a406611
VS
226962010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22697
22698 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22699 debug messages.
22700 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22701
d33613fc
VS
227022010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22703
22704 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22705 parameters.
22706
44a1b432
VS
227072010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22708
22709 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22710 if they were BSD-style.
22711
edde54e6
VS
227122010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22713
22714 * grub-core/boot/i386/pc/lnxboot.S: Replace
22715 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22716 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22717
b65830fa
VS
227182010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22719
22720 Write embedding zone using Reed-Solomon.
22721
22722 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22723 * grub-core/Makefile.am (rs_decoder.S): New target.
22724 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22725 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22726 (multiboot): Move to RS part.
22727 (post_reed_solomon): New label.
22728 (grub_boot_drive): Move to non-RS part since it's modified in memory
22729 on boot.
22730 Include rs_decoder.S.
22731 * grub-core/lib/reed_solomon.c: New file.
22732 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22733 New definition.
22734 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22735 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22736 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22737 * include/grub/partition.h (grub_partition_map): Change prototype of
22738 embed to allow returning additional sectors.
22739 * include/grub/reed_solomon.h: New file.
22740 * util/grub-setup.c (setup): Handle Reed-Solomon.
22741
0b4b227f
CW
227422010-09-28 Colin Watson <cjwatson@ubuntu.com>
22743
22744 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22745 i386 and x86-64 definedness tests.
22746
f772623b
YB
227472010-09-27 Yves Blusseau <blusseau@zetam.org>
22748
22749 Fix generation of kernel_syms.lst
22750
22751 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22752 ASM_PREFIX
22753
8e57a6ca
RM
227542010-09-26 Robert Millan <rmh@gnu.org>
22755
22756 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22757
22758 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22759 the pool is an array of devices, iterate through it and return the
22760 first device that passes a stat() test (instead of blindly returning
22761 the first one).
22762
f9130836
RM
227632010-09-26 Robert Millan <rmh@gnu.org>
22764
22765 Build fixes for GNU/kFreeBSD.
22766
22767 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22768 to programs that require ZFS conversion.
22769 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22770 kernels that don't have FLOPPY_MAJOR.
22771
96510faf
BC
227722010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22773
22774 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22775
449333eb
BC
227762010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22777
22778 Fix grub-emu build.
22779
22780 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22781 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22782 mdraid09 and mdraid1x.
22783
e1fd1939
CW
227842010-09-24 Colin Watson <cjwatson@ubuntu.com>
22785
22786 Re-enable grub-extras.
22787
22788 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22789 avoid confusing Automake. Run autogen only twice, once for the top
22790 level and once for grub-core. Add Makefile.util.def and
22791 Makefile.core.def from extra modules to the appropriate autogen
22792 invocations. If Makefile.common exists in an extra module, include
22793 it in both Makefile.util.am and grub-core/Makefile.core.am;
22794 similarly, include any Makefile.util.common file in Makefile.util.am
22795 and any Makefile.core.common file in grub-core/Makefile.core.am.
22796 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22797 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22798 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22799 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22800
22801 * gentpl.py (gvar_add): Turn GVARS into a set.
22802 (global_variable_initializers): Sort global variables on output.
22803 (vars_init): New function.
22804 (first_time): Likewise.
22805 (library): Ensure that non-global variable initialisations are
22806 emitted before the first time we emit code for a library block.
22807 Append to variables rather than setting them. Only emit
22808 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22809 each conditional path.
22810 (program): installdir() emits an Autogen macro, so must be passed to
22811 var_add rather than gvar_add.
22812 (data): Likewise.
22813 (script): Likewise.
22814 (rules): New function, centralising handling for different target
22815 types. Set up Guile association lists for first_time and vars_init,
22816 and send most output to a diversion so that variable initialisations
22817 can be emitted first.
22818 (module_rules): Use new rules function.
22819 (kernel_rules): Likewise.
22820 (image_rules): Likewise.
22821 (library_rules): Likewise.
22822 (program_rules): Likewise.
22823 (script_rules): Likewise.
22824 (data_rules): Likewise.
22825
22826 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22827
22828 * .bzrignore: Add contrib and grub-core/contrib. Remove
22829 grub-core/Makefile.gcry.am.
22830
1d12cf29
YB
228312010-09-24 Yves Blusseau <blusseau@zetam.org>
22832
22833 * grub-core/lib/LzFind.c: Add missing include.
22834 * grub-core/lib/LzmaEnc.c: Likewise.
22835 * grub-core/script/lexer.c: Likewise.
22836 * grub-core/script/yylex.l: Likewise.
22837 * util/grub-macho2img.c: Likewise.
22838 * util/grub-menulst2cfg.c: Likewise.
22839 * util/grub-mklayout.c: Likewise.
22840 * util/grub-mkpasswd-pbkdf2.c
22841 * util/grub-mkrelpath.c: Likewise.
22842 * util/resolve.c: Likewise.
22843
dd363028
BC
228442010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22845
22846 * Makefile.util.def (example_unit_test): Add
22847 grub-core/gnulib/libgnu.a.
22848
f5a109e2
GS
228492010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22850
22851 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22852
6d0fa83c
VS
228532010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22854
22855 Support xz compression on yeeloong.
22856
22857 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22858 * configure.ac: Check for LZMA.
22859 * grub-core/Makefile.core.def (xz_decompress): New target.
22860 (none_decompress): Likewise.
22861 * grub-core/boot/decompressor/minilib.c: New file.
22862 * grub-core/boot/decompressor/none.c: Likewise.
22863 * grub-core/boot/decompressor/xz.c: Likewise.
22864 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22865 * grub-core/kern/mips/cache_flush.S: Likewise.
22866 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22867 * grub-core/kern/mips/startup.S: Move first stage to ...
22868 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22869 nomacro.
22870 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22871 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22872 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22873 Allocate statically.
22874 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22875 Allocate statically or use scratch. Don't check CRC32.
22876 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22877 Allocate statically. Don't check CRC32.
22878 * include/grub/decompressor.h: New file.
22879 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22880 Removed.
22881 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22882 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22883 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22884 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22885 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22886 * util/grub-mkimage.c (grub_compression_t): New type.
22887 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22888 (image_target_desc): New field default_compression.
22889 (image_targets): Adjust yeeloong targets.
22890 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22891 (compress_kernel): New parameter comp.
22892 (generate_image): Likewise. Handle new compression case.
22893 (options): New option --compression
22894 (help): Likewise.
22895 (main): Handle new option.
22896
1b655af6
GS
228972010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22898
22899 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22900
8f03f0b5
CW
229012010-09-22 Colin Watson <cjwatson@ubuntu.com>
22902
22903 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22904 typo in __i386__ conditional.
22905
7835dfd3
VS
229062010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22907
22908 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22909 include.
22910
e255597e
VS
229112010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22912
6d0fa83c 22913 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
22914
22915 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22916 new tags as supported.
22917 (acpiv2_size): New function.
22918 (grub_multiboot_get_mbi_size): Take new tags into account.
22919 (grub_multiboot_make_mbi): Add new tags.
22920 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 22921
6cc14051 229222010-09-21 Aleš Nesrsta <starous@volny.cz>
22923
22924 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22925 Added missing configuration of USB device.
22926
df7769d8
CW
229272010-09-21 Colin Watson <cjwatson@ubuntu.com>
22928
22929 * grub-core/normal/menu_entry.c (run): Make sure we always return
22930 a value.
22931
b031012d
CW
229322010-09-21 Colin Watson <cjwatson@ubuntu.com>
22933
22934 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22935 NumberOfPages is UINT64 according to the UEFI specification, not
22936 UINTN. Fix printf format.
22937
174de8f3
CW
229382010-09-21 Colin Watson <cjwatson@ubuntu.com>
22939
22940 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22941 `err' to grub_usb_err_t.
22942 Reported and tested by: KESHAV P.R.
22943
d7dbe923
CW
229442010-09-21 Colin Watson <cjwatson@ubuntu.com>
22945
22946 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22947 tpart non-const, so that we can assign to it. (Since this is a
22948 typedef, the constness refers to the pointer rather than what it
22949 points to.)
22950
8d5e2af3
CW
229512010-09-21 Colin Watson <cjwatson@ubuntu.com>
22952
22953 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22954 $(top_srcdir)/grub-core/gnulib as well as
22955 $(top_builddir)/grub-core/gnulib.
22956 Reported by: KESHAV P.R.
22957
5c527783
CW
229582010-09-21 Colin Watson <cjwatson@ubuntu.com>
22959
22960 * util/grub-install.in: Fix the bootloader ID option to be
22961 consistently --bootloader-id, not --bootloader_id.
22962 Reported by: KESHAV P.R.
22963
d309a16e
CW
229642010-09-21 Colin Watson <cjwatson@ubuntu.com>
22965
22966 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22967 check hash checksum." consistently translatable.
22968
b830cd16
YB
229692010-09-21 Yves Blusseau <blusseau@zetam.org>
22970
22971 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22972 $(top_builddir).
22973
c4fe27a8
CW
229742010-09-21 Colin Watson <cjwatson@ubuntu.com>
22975
22976 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22977 (GRUB_MOD_INIT): Register sha1sum command.
22978 (GRUB_MOD_FINI): Unregister sha1sum command.
22979
a4c1d277
YB
229802010-09-21 Yves Blusseau <blusseau@zetam.org>
22981
22982 Keep boot and grub directory names in sync with utils scripts
22983
22984 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22985 * config.h.in: Add previous macros.
22986 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22987 * util/grub-install.in: Use $bootdir and $grubdir variables.
22988
4eff79d2
CW
229892010-09-21 Colin Watson <cjwatson@ubuntu.com>
22990
22991 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22992 convert partition names to disk names if the new `convert' parameter
22993 is set.
22994 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22995 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22996 disk in its own right. This can happen with Xen disk images.
22997
934d7e44
YB
229982010-09-21 Yves Blusseau <blusseau@zetam.org>
22999
23000 * util/grub-editenv.c: Update strings to avoid warnings when generating
23001 grub.pot file.
23002 * util/grub-setup.c: Likewise.
934d7e44 23003
df3367cc
VS
230042010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23005
23006 * configure.ac: Change version to 1.99~beta0.
23007
77a94e98
VS
230082010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23009
23010 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23011 Add BADRAM.
23012 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23013 Likewise.
23014 * include/multiboot.h: Resynced with specification.
23015 * include/multiboot2.h: Likewise.
23016
269004c1
CW
230172010-09-21 Colin Watson <cjwatson@ubuntu.com>
23018
23019 Fix po directory handling.
23020
23021 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23022 * grub-core/gnulib/Makefile.am: Import gettext module.
23023 * m4/gnulib-cache.m4: Likewise.
23024 * m4/gnulib-comp.m4: Likewise.
23025 * m4/gettext.m4: New file, from gnulib.
23026 * m4/glibc2.m4: Likewise.
23027 * m4/iconv.m4: Likewise.
23028 * m4/intdiv0.m4: Likewise.
23029 * m4/intl.m4: Likewise.
23030 * m4/intldir.m4: Likewise.
23031 * m4/intlmacosx.m4: Likewise.
23032 * m4/intmax.m4: Likewise.
23033 * m4/inttypes-pri.m4: Likewise.
23034 * m4/lcmessage.m4: Likewise.
23035 * m4/lib-ld.m4: Likewise.
23036 * m4/lib-link.m4: Likewise.
23037 * m4/lib-prefix.m4: Likewise.
23038 * m4/lock.m4: Likewise.
23039 * m4/nls.m4: Likewise.
23040 * m4/po.m4: Likewise.
23041 * m4/printf-posix.m4: Likewise.
23042 * m4/progtest.m4: Likewise.
23043 * m4/threadlib.m4: Likewise.
23044 * m4/uintmax_t.m4: Likewise.
23045 * m4/visibility.m4: Likewise.
23046 * po/Makefile.am: Remove.
23047 * po/Makefile.in.in: New file, from gettext.
23048 ($(DOMAIN).pot-update): Support POTFILES-shell.
23049 * po/Makevars: New file.
23050 * po/POTFILES-shell: Rename to ...
23051 * po/POTFILES-shell.in: ... this. Update.
23052 * po/POTFILES: Rename to ...
23053 * po/POTFILES.in: ... this. Update.
23054 * po/Rules-quot: New file, from gettext.
23055 * po/boldquot.sed: Likewise.
23056 * po/en@boldquot.header: Likewise.
23057 * po/en@quot.header: Likewise.
23058 * po/insert-header.sin: Likewise.
23059 * po/quot.sed: Likewise.
23060 * po/remove-potcdate.sin: Likewise.
23061
3e0fa5d0
VS
230622010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23063
23064 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23065
ade9bd66
VS
230662010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23067
23068 * util/grub.d/20_linux_xen.in: Use submenus.
23069
fc55cc4c
VS
230702010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23071
23072 Support submenus.
23073
23074 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23075 parameter submenu. All users updated.
23076 * grub-core/normal/main.c (free_menu): Rename to ...
23077 (grub_normal_free_menu): ... this. Made global.
23078 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23079 if requested.
23080 * grub-core/normal/menu_entry.c (screen): New field submenu.
23081 (make_screen): Set submenu.
23082 (run): Open new context if requested.
23083 * include/grub/menu.h (grub_menu_entry): New field submenu.
23084 * include/grub/normal.h (grub_normal_free_menu): New proto.
23085
600cedf7
VS
230862010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23087
23088 Menu entries extractor.
23089
23090 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23091 variants.
23092 (GRUB_MOD_INIT): Register new variants.
23093 (GRUB_MOD_FINI): Unregister new variants.
23094 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23095 into grub_cmd_legacy_source.
23096 (grub_cmd_legacy_source): Implement extractor variants.
23097 (GRUB_MOD_INIT): Register new variants.
23098 (GRUB_MOD_FINI): Unregister new variants.
23099 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23100 as an extractor.
23101 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23102 search as an extractor.
23103 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23104 test as an extractor.
23105 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23106 as an extractor.
23107 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23108 (grub_env_new_context): New function.
23109 (grub_env_context_open): Likewise.
23110 (grub_env_extractor_open): Likewise.
23111 (grub_env_extractor_close): Likewise.
23112 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23113 grub_extractor_level.
23114 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23115 * include/grub/env.h (grub_env_extractor_open): New proto.
23116 (grub_env_extractor_close): Likewise.
23117 * include/grub/normal.h (grub_extractor_level): New external variable.
23118
7bda3a87
VS
231192010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23120
23121 Make cutmem accept a region specification.
23122 Suggested by: Samuel Thibault
23123
23124 * grub-core/mmap/mmap.c (parsemem): New function.
23125 (grub_cmd_cutmem): Handle new arguments.
23126
2ea57f88
VS
231272010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23128
23129 New command cutmem.
23130
23131 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23132 (GRUB_MOD_INIT): Register new command.
23133 (GRUB_MOD_FINI): Unregister new command.
23134
74342e31
VS
231352010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23136
23137 Support some annoying BSD and Minix subpartitions.
23138
23139 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23140 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23141 Properly handle concatenation.
23142 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23143 * grub-core/normal/completion.c (iterate_partition): Likewise.
23144 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23145 contain partition. All users updated.
23146 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23147 struct.
23148 (grub_openbsdlabel_partition_map): Likewise.
23149 (bsdlabel_partition_map_iterate): Rename to ..
23150 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23151 (bsdlabel_partition_map_iterate): New function.
23152 (netopenbsdlabel_partition_map_iterate): Likewise.
23153 (netbsdlabel_partition_map_iterate): Likewise.
23154 (openbsdlabel_partition_map_iterate): Likewise.
23155 (GRUB_MOD_INIT): Register new partmaps.
23156 (GRUB_MOD_FINI): Unregister new partmaps.
23157 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23158 (grub_partition_msdos_iterate): ... this. All users updated.
23159 Don't support embedding other than in a minix partition.
23160 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23161 proto.
23162 * include/grub/partition.h (grub_partition): New field msdostype.
23163 * util/grub-install.in: Handle openbsd and netbsd types being in
23164 part_bsd module.
23165
1e8d555b
VS
231662010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23167
23168 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23169
23170 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23171 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23172 (mdraid09): ... this.
23173 (mdraid1x): New module.
23174 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23175 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23176
899d8af4
VS
231772010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23178
23179 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23180 vsprintf.
23181
40901acd
CW
231822010-09-20 Colin Watson <cjwatson@ubuntu.com>
23183
23184 * grub-core/commands/efi/lsefimmap.c: Correct header.
23185 * NEWS: Update.
23186
dfe3b247
CW
231872010-09-20 Colin Watson <cjwatson@ubuntu.com>
23188
23189 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23190 as printf format strings; the translations might contain '%' which
23191 could cause a crash.
23192 (main): Likewise.
23193 * util/grub-fstest.c (argp_parser): Likewise.
23194 * util/grub-setup.c (argp_parser): Likewise.
23195 (main): Likewise.
23196
3286a4b4
VS
231972010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23198
23199 Use argp in grub-fstest.
23200
23201 * util/grub-fstest.c: Don't include getopt.h.
23202 Include argp.h.
23203 (root): New variable.
23204 (args_count): Likewise.
23205 (nparm): Likewise.
23206 (num_disks): Likewise.
23207 (images): Likewise.
23208 (cmd): Likewise.
23209 (debug_str): Likewise.
23210 (args): Likewise.
23211 (options): Transformed to argp.
23212 (usage): Removed.
23213 (main): Split argument parsing into ...
23214 (argp_parser): ... this. Changed to argp format.
23215 (argp): New variable.
23216 (main): Use argp_parse.
23217
3dccbe4b
TG
232182010-09-20 Tristan Gingold <gingold@free.fr>
232192010-09-20 Robert Millan <rmh.grub@aybabtu.com>
232202010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23221
23222 * grub-core/commands/efi/lsefimmap.c: New file.
23223 * grub-core/Makefile.core.def (lsefimmap): New module.
23224 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23225
38c259a7
VS
232262010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23227
23228 Pause the execution (10s max) if any errors are displayed so the user
23229 has a chance to see them.
23230
23231 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23232 (grub_print_error): Increment grub_err_printed_errors.
23233 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23234 execution if any errors were displayed.
23235 (show_menu): Remove old code for pause.
23236 * grub-core/normal/menu_entry.c (run): Likewise.
23237 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23238 users updated.
23239 (grub_normal_get_char_counter): Likewise.
23240 * include/grub/err.h (grub_err_printed_errors): New external variable.
23241 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23242
f218b09c
VS
232432010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23244
23245 Support multiboot VBE info.
23246
23247 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23248 Take VBE info into account.
23249 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23250 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23251 Call fill_vbe_info when appropriate.
23252 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23253 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23254 as supported.
23255 (grub_multiboot_get_mbi_size): Take new tags into account.
23256 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23257 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23258 Call fill_vbe_tag when appropriate.
23259 (grub_multiboot_make_mbi): Properly align tags.
23260 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23261 function.
23262 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23263 proto.
23264 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23265
a9cc5438
VS
232662010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23267
23268 Suport manual terminal geometry specification.
23269
23270 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23271 Save state in grub_ofconsole_terminfo_output.
23272 (grub_ofconsole_term): Use grub_terminfo_getwh.
23273 (grub_ofconsole_getwh): Removed.
23274 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23275 (grub_serial_term): Use grub_terminfo_getwh.
23276 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23277 (options): New struct.
23278 (OPTION_*): New enum.
23279 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23280 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23281 width and height.
23282 (grub_terminfo_getwh): New proto.
23283 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23284
1a8fed20
VS
232852010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23286
23287 Handle legacy "terminal" command.
23288
23289 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23290 and FLAG_TERMINAL.
23291 (legacy_commands): Add terminal and title.
23292 (grub_legacy_parse): Handle terminal. Simplify title handling.
23293
41e9c57d
VS
232942010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23295
23296 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23297 parameters overflow.
23298
61c874c5
CW
232992010-09-20 Colin Watson <cjwatson@ubuntu.com>
23300
23301 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23302 widthspec.h.
23303
23304 * docs/grub.texi (Shell-like scripting): Document `!'.
23305 (Network): Simplify using new i386-pc-pxe format. Mention
23306 grub-mknetdir.
23307
23308 * NEWS: Update.
23309
943682b4
CW
233102010-09-20 Colin Watson <cjwatson@ubuntu.com>
23311
23312 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23313 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23314 when needed.
23315
6d3d698d
CW
233162010-09-20 Colin Watson <cjwatson@ubuntu.com>
23317
23318 * grub-core/commands/efi/lsefisystab.c: Correct header.
23319 * grub-core/commands/efi/lssal.c: Likewise.
23320 * grub-core/commands/testload.c: Likewise.
23321
c982589f
CW
233222010-09-20 Colin Watson <cjwatson@ubuntu.com>
23323
23324 * util/grub-mkrescue.in: Add explicit root argument to --set to
23325 prevent the UUID being interpreted as an argument to --set (matches
23326 previous change to prepare_grub_to_access_device).
23327
a63c31b6
CW
233282010-09-20 Colin Watson <cjwatson@ubuntu.com>
23329
23330 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23331 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23332 the verbosity of later #ifs.
23333 (find_partition_start): Define this function on FreeBSD too.
23334 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23335 function.
23336 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23337 on FreeBSD.
23338
6439b8ee
YB
233392010-09-20 Yves Blusseau <blusseau@zetam.org>
23340
23341 * util/grub-editenv.c: Use argp instead of getopt.
23342
c5930ec8
YB
233432010-09-20 Yves Blusseau <blusseau@zetam.org>
23344
23345 * util/grub-setup.c: Use argp instead of getopt.
23346
15c69261
YB
233472010-09-20 Yves Blusseau <blusseau@zetam.org>
23348
23349 Use gnulib-tool to create gnulib source files.
23350
23351 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23352 grub-core/gnulib directories
23353 * .bzignore: Add **/.deps and autogenerated gnulib files
23354 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23355 of gnulib macros, add grub-core/gnulib/Makefile
23356 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23357 include m4 directory to aclocal.
23358 * Makefile.util.def: Remove direct compilation of gnulib source files
23359 and use the new grub-core/gnulib/libgnu.a.
23360 * build-aux/config.rpath: move config.rpath from top directory to
23361 build-aux
23362 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23363 in gnulib headers
23364 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23365 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23366 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23367 header.
23368 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23369 string.
23370
e511c9f5
YB
233712010-09-20 Yves Blusseau <blusseau@zetam.org>
23372
23373 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23374 grub-core/genmod.sh and grub-core/gensyminfo.sh
23375
c2dede05
BC
233762010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23377
23378 Add a test for echo command options.
23379
23380 * tests/grub_cmd_echo.in: New test.
23381 * Makefile.util.def: Rules for new test.
23382
c55f5018
SJ
233832010-09-20 Szymon Janc <szymon@janc.net.pl>
23384
23385 Remove crc.mod and move crc command to hashsum.mod.
23386 Remove lib/crc.c - users updated to use gcrypt implementation.
23387
23388 * grub-core/commands/crc.c: Removed.
23389 * grub-core/Makefile.core.def (crc): Module removed.
23390 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23391 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23392 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23393 * grub-core/lib/crc.c: Removed.
23394 * include/grub/lib/crc.h: Removed.
23395 * Makefile.util.def (crc): Remove lib/crc.c
23396 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23397 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23398 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23399 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23400 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23401 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23402
e0337366
VS
234032010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23404
23405 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23406
742f9232
VS
234072010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23408
23409 Split config.h for util and core.
23410
23411 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23412 (ADDR32): Likewise.
23413 (DATA32): Likewise.
23414 (BSS_START_SYMBOL): Likewise.
23415 (END_SYMBOL): Likewise.
23416 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23417 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23418 * config.h.in: New file.
23419 * configure.ac: Use config-util.h as config define file.
23420 Rename MACHINE into GRUB_MACHINE. All users updated.
23421 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23422 updated.
23423 (NESTED_FUNC_ATTR): Likewise.
23424 Substitue new variables.
23425 (COND_HAVE_ASM_USCORE): New conditional.
23426 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23427 (kernel_syms.lst): Use ASM_PREFIX.
23428 * grub-core/kern/emu/console.c: Include config-util.h.
23429 * grub-core/kern/emu/misc.c: Likewise.
23430 * grub-core/kern/emu/mm.c: Likewise.
23431 * include/grub/emu/misc.h: Likewise.
23432 * include/grub/libgcc.h: Likewise.
23433
39feb0e8
VS
234342010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23435
23436 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23437 constants usage.
23438 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23439 Fix GRUB_TERM_KEY_* constants usage.
23440 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23441
9af6dac3
VS
234422010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23443
23444 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23445 print pointer.
23446 * grub-core/bus/usb/uhci.c: Remove empty define.
23447 (grub_uhci_check_transfer): Add missing cast.
23448 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23449 print pointer.
23450 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23451 PRIuGRUB_SIZE.
23452 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23453
d6d94820
VS
234542010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23455
23456 * grub-core/Makefile.core.def (legacycfg): Add
23457 lib/i386/pc/vesa_modes_table.c on emu.
23458
3572f2b6
BC
234592010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23460
23461 Reduce number of temporary files generated by build system.
23462
23463 * grub-core/gencmdlist.sh: Removed.
23464 * grub-core/genfslist.sh: Removed.
23465 * grub-core/genhandlerlist.sh: Removed.
23466 * grub-core/genmodsrc.sh: Removed.
23467 * grub-core/genpartmaplist.sh: Removed.
23468 * grub-core/genparttoollist.sh: Removed.
23469 * grub-core/gentermiinallist.sh: Removed.
23470 * grub-core/genvideolist.sh: Removed.
23471
23472 * grub-core/genmod.sh.in: New file.
23473 * grub-core/gensyminfo.sh.in: New file.
23474
23475 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23476 * conf/Makefile.extra-dist: Update with new files.
23477 * gentpl.py: Remove rules related to unnecessary temporary files.
23478 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23479 and und-* files.
23480 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23481 genmod.sh scripts.
23482 * grub-core/bus/usb/uhci.c: Remove empty #define.
23483 * grub-core/genmoddep.awk: Updated with new syminfo format.
23484 * util/bash-completion.d/Makefile.am: Add config.log to
23485 CLEANFILES.
23486
c836b030
YB
234872010-09-19 Yves Blusseau <blusseau@zetam.org>
23488
23489 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23490
2f4e8053
BC
234912010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23492
23493 * util/grub-mkconfig.in: Check the config script for syntax errors
23494 before saving.
23495
75831c34
CW
234962010-09-19 Colin Watson <cjwatson@ubuntu.com>
234972010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23498
23499 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23500 platforms.
23501 * util/grub-install.in: Add EFI and IEEE1275 support.
23502 * util/i386/efi/grub-install.in: Removed.
23503 * util/ieee1275/grub-install.in: Likewise.
23504
eaf41b25
VS
235052010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23506
23507 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23508 (grub_cmd_cmosclean): Likewise.
23509 (GRUB_MOD_INIT): Register command cmosclean.
23510 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23511 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23512
1a9130dd
CPE
235132010-09-18 Carles Pina i Estany <carles@pina.cat>
235142010-09-18 Aleš Nesrsta <starous@volny.cz>
235152010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23516
23517 Add keyboard layouts support.
23518
23519 * Makefile.util.def (grub-mklayout): New file.
23520 (grub-kbdcomp): New script.
23521 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23522 Add keyboard_layouts.h.
23523 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23524 commands/boot.c on yeeloong.
23525 (keylayouts): New module.
23526 * grub-core/bus/usb/ohci.c
23527 * grub-core/bus/usb/uhci.c
23528 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23529 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23530 (attach_root_port): Likewise.
23531 (poll_nonroot_hub): Likewise.
23532 (grub_usb_poll_devices): Likewise.
23533 (detach_device): Close transfer.
23534 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23535 function.
23536 (grub_usb_bulk_setup_readwrite): Likewise.
23537 (grub_usb_bulk_finish_readwrite): Likewise.
23538 * grub-core/commands/keylayouts.c: New file.
23539 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23540 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23541 aliases.
23542 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23543 support scancode 2.
23544 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23545 * include/grub/keyboard_layouts.h: New file.
23546 * util/grub-mklayout.c: New file.
23547 * util/grub-kbdcomp.in: Likewise.
23548
a1d84a5e
VS
235492010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23550
23551 Unify memory types.
23552
23553 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23554 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23555 types.
23556 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23557 (grub_upper_mem): Likewise.
23558 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23559 * include/grub/memory.h (grub_memory_type_t): New enum.
23560 All users updated.
23561
9696382e
VS
235622010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23563
23564 * grub-core/Makefile.core.def (lsapm): New module.
23565 * grub-core/commands/i386/pc/lsapm.c: New file.
23566 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23567 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23568 Likewise.
23569 * include/grub/i386/pc/apm.h: New file.
23570 * include/multiboot.h (multiboot_apm_info): New struct.
23571
235722010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23573
23574 GRUB-legacy configuration file support.
23575
23576 * Makefile.util.def (grub-menulst2cfg): New util.
23577 * docs/man/grub-menulst2cfg.h2m: New file.
23578 * grub-core/Makefile.core.def (legacycfg): New module.
23579 * grub-core/commands/legacycfg.c: New file.
23580 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23581 (grub_normal_add_menu_entry): ... this.
23582 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23583 (grub_normal_set_password): ...this.
23584 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23585 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23586 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23587 * grub-core/lib/legacy_parse.c: New file.
23588 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23589 * include/grub/i386/pc/vesa_modes_table.h: New file.
23590 * include/grub/legacy_parse.h: Likewise.
23591 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23592 * util/grub-menulst2cfg.c: New file.
23593
bf8d1338
CW
235942010-09-17 Colin Watson <cjwatson@ubuntu.com>
23595
23596 * grub-core/kern/emu/hostdisk.c
23597 (convert_system_partition_to_system_disk): Initialise node.
23598
9c0bad2e
CW
235992010-09-17 Colin Watson <cjwatson@ubuntu.com>
23600
23601 * grub-core/kern/emu/hostdisk.c
23602 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23603 leak.
23604 Reported and based on patch by: Modestas Vainius.
23605
a939d135
CW
236062010-09-17 Colin Watson <cjwatson@ubuntu.com>
23607
23608 Fix DM-RAID probing with recent versions of device-mapper udev
23609 rules.
23610
23611 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23612 canonicalise device paths under /dev/mapper/.
23613 (convert_system_partition_to_system_disk): Compare the
23614 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23615 path, since device nodes under /dev/mapper/ are often symlinks.
23616
0f7ee3c9
YB
236172010-09-17 Yves Blusseau <blusseau@zetam.org>
23618
23619 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23620
10854d0d
YB
236212010-09-16 Yves Blusseau <blusseau@zetam.org>
23622
23623 * configure.ac: Avoid some annoying error messages if freetype-config
23624 program is not found.
23625
108538d8
CW
236262010-09-16 Colin Watson <cjwatson@ubuntu.com>
23627
23628 Support RAID on virtio devices, and others.
23629
23630 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23631 Rename to ...
23632 [__MINGW32__] (grub_find_device): ... this.
23633 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23634 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23635 reasonable default if dir is NULL.
23636 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23637 ...
23638 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23639 (grub_guess_root_device): Update callers.
23640 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23641
23642 * util/raid.c (grub_util_getdiskname): Remove.
23643 (grub_util_raid_getmembers): Use grub_find_device rather than
23644 grub_util_getdiskname.
23645
e5bfc130
CW
236462010-09-16 Colin Watson <cjwatson@ubuntu.com>
23647
23648 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23649 needing to be compiled with serial support.
23650 (ls): Indicate that multiple files are accepted.
23651 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23652 indicate that multiple files are accepted.
23653
be458ae2
CW
236542010-09-16 Colin Watson <cjwatson@ubuntu.com>
23655
23656 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23657 libgrub_a_init.c, and util/bash-completion.d/grub.
23658
cb731b5e
VS
236592010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23660
23661 * util/grub-setup.c (setup): Fix incorrect container semantics.
23662
35139e8a
VS
236632010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23664
23665 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23666 misusage.
23667 Reported by: J. Nick Terry
23668
e50fca4a
VS
236692010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23670
23671 Move embedding routines to partmap sources files.
23672
23673 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23674 [GRUB_UTIL]: New variable.
23675 (gpt_partition_map_iterate): Set part.parent.
23676 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23677 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23678 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23679 New function.
23680 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23681 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23682 (grub_partition_map) [GRUB_UTIL]: New field embed.
23683 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23684 (setup): Use ->embed.
23685
f00478b7
VS
236862010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23687
23688 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23689 function.
23690 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23691 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23692
2b94e3ff
YB
236932010-09-15 Yves Blusseau <blusseau@zetam.org>
23694
23695 Add function to get completions from usage.
23696
23697 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23698 completions from usage. Use LC_ALL=C to get options properly.
23699
2e04a006
VS
237002010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23701
23702 * grub-core/gnulib/basename-lgpl.c: Imported.
23703 * grub-core/gnulib/basename.c: Likewise.
23704 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23705 * grub-core/gnulib/dirname.c: Likewise.
23706 * grub-core/gnulib/dirname.h: Likewise.
23707 * grub-core/gnulib/stripslash.c: Likewise.
23708
5dcdf93a
VS
237092010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23710
23711 * grub-core/gnulib/error.c: Resynced.
23712 * grub-core/gnulib/getopt.c: Likewise.
23713 * grub-core/gnulib/getopt_int.h: Likewise.
23714 * grub-core/gnulib/regex.h: Likewise.
23715 * grub-core/gnulib/regex_internal.c: Likewise.
23716 * grub-core/gnulib/regex_internal.h: Likewise.
23717
014f47b7
SJ
237182010-09-15 Szymon Janc <szymon@janc.net.pl>
23719
23720 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23721 CRC calculations and validity checks.
23722 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23723 calculations.
23724
dd521a4a
SJ
237252010-09-15 Szymon Janc <szymon@janc.net.pl>
23726
23727 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23728
79c4eeb9
VS
237292010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23730
23731 Fix incorrect echo options handling.
23732 Reported by: Yves Blusseau.
23733
23734 * include/grub/command.h (grub_command_flags_t): New flags
23735 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23736 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23737 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23738
ed80f7d5
VS
237392010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23740
23741 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23742 users updated.
23743 (GRUB_COMMAND_FLAG_MENU): Likewise.
23744 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23745 (GRUB_COMMAND_FLAG_TITLE): Removed.
23746 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23747 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23748 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23749 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23750 (grub_command_flags_t): New enum. All users updated.
23751
5fe7620a
SG
237522010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23753
23754 Fix solaris compilation.
23755
23756 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23757 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23758 (grub-emu-list): Likewise.
23759
545b752f
VS
237602010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23761
23762 Remove deprecated root command.
23763
23764 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23765 updated.
23766
6c1a338c
VS
237672010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23768
23769 * util/i386/pc/grub-setup.c: Merge this ...
23770 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23771 * util/grub-setup.c: ... into this.
23772 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23773 New struct.
23774
237752010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23776
23777 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23778 possible.
23779
d2ea4551
VS
237802010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23781
23782 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23783 allocate p.
23784
3c3b5040
VS
237852010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23786
23787 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23788 explicit root argument to set to prevent UUID to be interpreted as
23789 argument to set.
23790
b71c3fae
VS
237912010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23792
23793 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23794
275433e6
VS
237952010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23796
23797 Don't export grub_gate_a20.
23798
23799 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23800 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23801 to ...
23802 (grub_gate_a20): ... this. All users updated.
23803 * include/grub/i386/pc/init.h: Removed. All users updated.
23804
a5dbb1f1
VS
238052010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23806
23807 Create euro.pf2 which supports most European languages.
23808
23809 * Makefile.am (grubdata_DATA): Add euro.pf2.
23810 (euro.pf2): New target.
23811 (CLEANFILES): Add euro.pf2.
23812
62a747cb
VS
238132010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23814
23815 * configure.ac: Disable emu-usb by default to prevent inadvertent
23816 device takeover.
23817
608e43b1
VS
238182010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23819
23820 Disable usbserial on grub-emu since our libusb code isn't good enough
23821 yet.
23822
23823 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23824 (usbserial_pl2303): Likewise.
23825 (usbserial_ftdi): Likewise.
23826
94564f81
VS
238272010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23828
23829 * include/grub/disk.h (grub_disk): Remove has_partitions.
23830 All users updated.
23831 * disk/loopback.c (grub_loopback): Remove has_partitions.
23832 All users updated.
23833 (options): Remove partitions. All users updated.
23834 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23835 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23836 actual partition table is found.
23837
3352800b
VS
238382010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23839
23840 Remove readability checks (too many false negatives).
23841
23842 * util/grub-install.in: Remove readability checks.
23843 * util/grub-mkconfig.in: Likewise.
23844 * util/grub.d/10_hurd.in: Likewise.
23845 * util/grub.d/10_kfreebsd.in: Likewise.
23846 * util/grub.d/10_linux.in: Likewise.
23847 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23848 way.
23849
2419f17a
VS
238502010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23851
23852 Enable acpi shutdown on all ACPI platforms.
23853
23854 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23855 on coreboo, multiboot and EFI.
23856 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23857 (grub_acpi_halt): Likewise.
23858 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23859 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23860 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23861 * grub-core/lib/i386/halt.c (grub_halt)
23862 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23863
0575c7c3
VS
238642010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23865
23866 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23867 context.
23868
54ac3cd1
VS
238692010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23870
23871 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23872 * grub-core/video/efi_uga.c: Likewise.
23873
b2a30ac5
VS
238742010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23875
23876 Filter devaliases and never open same device twice.
23877
23878 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23879 (last_ihandle): Likewise.
23880 (ofdisk_hash_ent): New member shortest.
23881 (ofdisk_hash_add): Add canonical path too.
23882 (scan): New function.
23883 (grub_ofdisk_iterate): Iterate over hashed entries.
23884 (compute_dev_path): Don't add :0.
23885 (grub_ofdisk_open): Don't really open the disk.
23886 (grub_ofdisk_close): Avoid closing unrelated disk.
23887 (grub_ofdisk_read): Implement reopen logic.
23888 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23889 New function.
23890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23891 New proto.
23892
fb53b340
VS
238932010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23894
23895 Fix sparc64.
23896
23897 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23898 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23899 right address. Add sparc64_ieee1275_ldflags.
23900 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23901 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23902 to grub_host_to_target_addr
23903 (load_image): Likewise.
23904
f452b040
VS
239052010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23906
23907 * grub-core/normal/completion.c (complete_file): Handle device
23908 containing slash.
23909 Fix based on patch by Doug Nazar.
23910
9b5b2541
VS
239112010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23912
23913 grub-mknetdir script.
23914
23915 * Makefile.util.def (grub-mknetdir): New module.
23916 * tests/util/grub-shell.in: Support boot=net
23917 * util/grub-mknetdir.in: New file.
23918
9d2be652
VS
239192010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23920
23921 videoinfo on non-vbe.
23922
23923 * grub-core/Makefile.core.def (vbeinfo): Removed.
23924 (vbetest): Removed.
23925 (videoinfo): New module.
23926 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23927 * grub-core/commands/i386/pc/vbetest.c: Removed.
23928 * grub-core/commands/videoinfo.c: New file.
23929 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23930 specification.
23931 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23932 as vbetest.
23933 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23934 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23935 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23936 mode_number. New parameter mode. All users updated.
23937 (grub_video_gop_iterate): New function.
23938 (grub_video_efi_gop): New member iterate.
23939 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23940 (grub_vbe_set_video_mode): Remove setting useless fields.
23941 (vbe2videoinfo): New function.
23942 (grub_video_vbe_iterate): Likewise.
23943 (grub_video_vbe_setup): Use vbe2videoinfo.
23944 (grub_video_vbe_print_adapter_specific_info): New function.
23945 (grub_video_vbe_adapter): New fields iterate and
23946 print_adapter_specific_info.
23947 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23948 All users updated.
23949 (grub_video_mode_info): New field mode_number.
23950 (grub_video_adapter): New fields iterate and
23951 print_adapter_specific_info.
23952
179503f5
TG
239532010-09-13 Tristan Gingold <gingold@free.fr>
239542010-09-13 Robert Millan <rmh.grub@aybabtu.com>
239552010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23956
23957 * grub-core/commands/efi/lsefisystab.c: New file.
23958 * grub-core/commands/efi/lssal.c: Likewise.
23959 * grub-core/Makefile.core.def (lsacpi): New module.
23960 (lsefisystab): Likewise.
23961 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23962 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23963 (grub_efi_sal_system_table): New struct.
23964 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23965 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23966 (grub_efi_sal_system_table_platform_features): Likewise.
23967 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23968 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23969 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23970 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23971
cf9827de
VS
239722010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23973
23974 Support explicit user claim that a device is BIOS-visible.
23975
23976 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23977 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23978 * grub-core/kern/emu/hostdisk.c
23979 (convert_system_partition_to_system_disk): Support mdX.
23980 (find_system_device): New parameter add. All users updated.
23981 (grub_util_biosdisk_is_present): New function.
23982 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23983 proto.
23984
53f0eb1f
VS
239852010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23986
23987 Search hints support.
23988
23989 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23990 All users updated.
23991
b23ffd70
YB
239922010-09-13 Yves Blusseau <blusseau@zetam.org>
23993
23994 Bash completion script for util commands
23995
23996 * Makefile.am: Add util/bash-completion.d directory
23997 * configure.ac: Likewise.
23998 * util/bash-completion.d/Makefile.am: New file.
23999 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24000
d547dc28
VS
240012010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24002
24003 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24004 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24005 Reported by: Yves Blusseau.
24006
2fc8ccb9
VS
240072010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24008
24009 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24010 partition size and offset.
24011
d8a84076
VS
240122010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24013
24014 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24015
84fb3b3d
VS
240162010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24017
24018 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24019
768ec2e2
VS
240202010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24021
24022 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24023 (grub_xvasprintf): Likewise.
24024
4870900f
VS
240252010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24026
24027 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24028
faca6bec
VS
240292010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24030
24031 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24032 args ending with NULL.
24033
240342010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
24035
24036 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24037 pointer.
24038
3c70f225
SJ
240392010-09-11 Szymon Janc <szymon@janc.net.pl>
24040
24041 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24042
4df7996d
VS
240432010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24044
24045 Shutdown using ACPI.
24046
24047 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24048 * grub-core/commands/acpihalt.c: New file.
24049 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24050 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24051 (grub_acpi_halt): New proto.
24052 (GRUB_ACPI_SLP_EN): New const.
24053 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24054 (GRUB_ACPI_OPCODE_*): New enum.
24055 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24056
126b4c32
TG
240572010-09-11 Tristan Gingold <gingold@free.fr>
240582010-09-11 Robert Millan <rmh.grub@aybabtu.com>
240592010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24060
24061 * commands/lsacpi.c: New file.
24062 * grub-core/Makefile.core.def (lsacpi): New module.
24063 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24064 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24065 (grub_acpi_madt_entry_header): New struct.
24066 (grub_acpi_madt): Likewise.
24067 (grub_acpi_madt_entry_interrupt_override): Likewise.
24068 (grub_acpi_madt_entry_sapic): Likewise.
24069 (grub_acpi_madt_entry_lsapic): Likewise.
24070 (grub_acpi_madt_entry_platform_int_source): Likewise.
24071 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24072 (PRIuGRUB_UINT32_T): Likewise.
24073 (PRIxGRUB_UINT64_T): Likewise.
24074
1aa4fe88
VS
240752010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24076
24077 Implement loading palette on ieee1275_fb.
24078
24079 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24080 (have_setcolors): Likewise.
24081 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24082 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24083 (grub_video_ieee1275_set_palette): Implement.
24084
25761e13
VS
240852010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
240862010-09-11 Colin Watson <cjwatson@ubuntu.com>
24087
24088 * util/grub-install.in (grub_partition): New variable.
24089 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24090 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24091 Fixes a bug reported by Yves Blusseau.
24092
050abaea
VS
240932010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24094
24095 Fix emu on mipsel.
24096
24097 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24098 =grub_cpu_flush_cache on all mips and not only yeeloong.
24099 * configure.ac (COND_mips): New conditional.
24100 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24101 platforms.
24102 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24103 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24104 [GRUB_LINKER_HAVE_INIT]: New function.
24105 (grub_emu_post_init): Likewise.
24106 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24107 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24108 * include/grub/cache.h (_mips): Include mips/cache.h.
24109 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24110 LVM and RAID prototypes.
24111 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24112 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24113 function.
24114
5ed7d816
CW
241152010-09-10 Colin Watson <cjwatson@ubuntu.com>
24116
24117 * util/grub-install.in: Don't try to verify core.img until after
24118 running grub-mkimage to create it.
24119
90367e04
RM
241202010-09-10 Robert Millan <rmh@gnu.org>
24121
24122 * util/grub.d/10_hurd.in: Add misc readability checks.
24123 * util/grub.d/10_kfreebsd.in: Likewise.
24124 * util/grub.d/10_linux.in: Likewise.
24125
c452fa66
CW
241262010-09-10 Colin Watson <cjwatson@ubuntu.com>
24127
24128 * util/grub-install.in: ${imgext} won't be defined here until the
24129 install branch is merged. For the meantime, only verify core.img on
24130 i386-pc and sparc64-ieee1275 platforms.
24131
c38fe9f4
RM
241322010-09-10 Robert Millan <rmh@gnu.org>
24133
24134 Solaris support in grub_find_zpool_from_dir(). Thanks
24135 Seth Goldberg for referring to getextmntent() facility.
24136
24137 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24138 `sys/mkdev.h'.
24139 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24140 `<sys/mnttab.h>'.
24141 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24142 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24143 method for finding zpool name.
24144
905f7773
CW
241452010-09-10 Colin Watson <cjwatson@ubuntu.com>
24146
24147 grub-fstest needs the host and hostfs modules while other utilities
24148 actively require those modules to be absent, so grub-fstest needs
24149 its own initialisation and finalisation code.
24150
24151 * Makefile.am (grub_fstest.pp): New target.
24152 (grub_fstest_init.lst): Likewise.
24153 (grub_fstest_init.c): Likewise.
24154 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24155
fb90b546
RM
241562010-09-10 Robert Millan <rmh@gnu.org>
24157
24158 * configure.ac: Check for `struct statfs.f_fstypename' and
24159 `struct statfs.f_mntfromname'.
24160
24161 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24162 kFreeBSD-specific code.
24163
66d4bea5
RM
241642010-09-10 Robert Millan <rmh@gnu.org>
24165
24166 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24167 on ZFS. Now non-main filesystems are supported as / too.
24168
b6a690ee
CW
241692010-09-09 Colin Watson <cjwatson@ubuntu.com>
24170
24171 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24172 and grub-core/disk/host.c to ...
24173 (grub-fstest): ... here. Having the host disk implementation
24174 present confuses grub-probe and other utility programs.
24175
24176 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24177 when writing to a file, not when writing to stdout.
24178
8901b00c 241792010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24180
24181 * tests/partmap_test.in: New test for partitions.
24182 * Makefile.util.def: Rules for new test.
24183
7bf45fdd
RM
241842010-09-09 Robert Millan <rmh@gnu.org>
24185
24186 * util/grub-probe.c (probe): Fix a pair of unhandled error
24187 conditions.
24188
4dfbc574
RM
241892010-09-09 Robert Millan <rmh@gnu.org>
24190
24191 Basic Btrfs support (detection and UUID).
24192
24193 * grub-core/fs/btrfs.c: New file.
24194 * Makefile.util.def (library): Register btrfs.c.
24195 * grub-core/Makefile.core.def: Likewise.
24196
6b8e78ae
RM
241972010-09-08 Robert Millan <rmh@gnu.org>
24198
24199 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24200 with (optional) parameters to specify device and relative path.
24201 * util/grub-install.in: Use is_path_readable_by_grub() to
24202 verify readability of a few critical files.
24203 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24204 verify readability of grub.cfg.new.
24205
27f21a8b
VS
242062010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24207
24208 Split minix.mod into minix.mod and minix2.mod.
24209
24210 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24211 * grub-core/Makefile.core.def (minix2): New module.
24212 * grub-core/fs/minix.c: Use definitions instead of runtime version
24213 checking.
24214 * grub-core/fs/minix2.c: New file.
24215
c0e53ea5
YB
242162010-09-08 Yves Blusseau <blusseau@zetam.org>
24217
24218 Add new --boot-directory option to replace --root-directory
24219
24220 * util/grub-install.in: Add new --boot-directory option
24221 * util/grub-reboot.in: Likewise.
24222 * util/grub-set-default.in: Likewise.
24223
b9fe6ea2
YB
242242010-09-08 Yves Blusseau <blusseau@zetam.org>
24225
24226 * util/grub-mkconfig.in: Use new variable.
24227
d87aedff
YB
242282010-09-08 Yves Blusseau <blusseau@zetam.org>
24229
24230 * configure.ac: Define some useful variables.
24231
e55e8495
VS
242322010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24233
24234 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24235 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24236 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24237 Use terminfo and don't use cursor-on/cursor-off unless it's known
24238 to work.
24239 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24240 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24241
6fa6d675
CW
242422010-09-08 Colin Watson <cjwatson@ubuntu.com>
24243
24244 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24245 starts with "(,", fill the drive containing the loaded image in
24246 between those two characters, but expect that a full partition
24247 specification including partition map names will follow.
24248
92f2aef0
RM
242492010-09-08 Robert Millan <rmh@gnu.org>
24250
24251 * configure.ac: Remove `--enable-grub-fstest' option.
24252 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24253
24254 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24255 `grub-fstest' instead of `grub-probe' for readability verification.
24256 * util/grub-probe.c (probe): Remove readability verification kludge.
24257
99fd620d
RM
242582010-09-08 Robert Millan <rmh@gnu.org>
24259
24260 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24261 initializing `GRUB_FS'.
24262
058e30ac 242632010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24264
24265 Not command (!) support to GRUB script.
24266
24267 * tests/grub_script_not.in: New test.
24268 * Makefile.util.def: Rules for new test.
24269
24270 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24271 ! command as a special case.
24272 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24273
b61d05ed 242742010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24275
058e30ac 24276 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24277 grub_free.
b61d05ed 24278
4d69c786 242792010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24280
24281 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24282
aa3119c4 242832010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24284
24285 * docs/grub.texi (Shell-like scripting): Documentation for break,
24286 continue, shift and return commands.
24287
db0f7e3d
VS
242882010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24289
24290 Rename CD-ROM to cd on BIOS.
24291
24292 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24293 "cd".
24294 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24295
88b87c93
VS
242962010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24297
24298 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24299 * util/grub-probe.c (main): Likewise.
24300 * util/i386/pc/grub-setup.c (main): Likewise.
24301 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24302 Reported and debugged by: alexxy
24303
294f324d
VS
243042010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24305
24306 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24307 diagnostic info.
24308
d7ee3441
JS
243092010-09-05 Jo Shields <directhex@apebox.org>
24310
24311 * util/grub.d/30_os-prober.in: Add missing classes.
24312
d7e06c1f
VS
243132010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24314
24315 * docs/grub.texi (Theme file format): Document new position format.
24316
fc157e53
VS
243172010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24318
24319 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24320 a table. Use @code instead of @verbatim.
24321
506e9a1c
CB
243222010-09-05 Colin D Bennett <colin@gibibit.com>
24323
24324 Gfxmenu documentation.
24325
24326 * docs/grub.texi (Theme file format): New chapter.
24327
f0aff67c
SJ
243282010-09-05 Szymon Janc <szymon@janc.net.pl>
24329
24330 * grub-core/Makefile.core.def (xzio): New module.
24331 * grub-core/io/xzio.c: New file.
24332 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24333 * grub-core/lib/xzembed/xz_config.h: Likewise.
24334 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24335 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24336 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24337 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24338 * grub-core/lib/xzembed/xz_private.h: Likewise.
24339 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24340 * include/grub/file.h (grub_file_filter_id): New compression filter
24341 GRUB_FILE_FILTER_XZIO.
24342
82a85062
VS
243432010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24344
24345 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24346 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24347 size.
24348
3579415d
VS
243492010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24350
24351 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24352 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24353
5124ae6d
VS
243542010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24355
24356 Uncompressed checksum support.
24357
24358 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24359 (check_list): New parameter uncompress.
24360 (grub_cmd_hashsum): Handle --uncompress.
24361
9aadb3d1
VS
243622010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24363
24364 Reintroduce testload.
24365
24366 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24367 from here ...
24368 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24369 (GRUB_MOD_INIT): New function.
24370 (GRUB_MOD_FINI): Likewise.
24371 * grub-core/Makefile.core.def (testload): New module.
24372
a17792c3
SJ
243732010-09-05 Szymon Janc <szymon@janc.net.pl>
24374
24375 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24376 (uint8_t): New type.
24377 (uint16_t): Likewise.
24378 (uint32_t): Likewise.
24379 (uint64_t): Likewise.
24380
b81e40a3
SJ
243812010-09-05 Szymon Janc <szymon@janc.net.pl>
24382
24383 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24384
fc2ef117
VS
243852010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24386
24387 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24388 Made static.
24389 (grub_gzfile_open): Removed. All users updated.
24390 (GRUB_MOD_INIT): New function.
24391 (GRUB_MOD_FINI): Likewise.
24392 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24393 (grub_file_filters_enabled): Likewise.
24394 (grub_file_open): Handle filters.
24395 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24396 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24397 * include/grub/file.h (grub_file_filter_id_t): New type.
24398 (grub_file_filter_t): Likewise.
24399 (grub_file_filters_all): New extern variable.
24400 (grub_file_filters_enabled): Likewise.
24401 (grub_file_filter_register): New inline function.
24402 (grub_file_filter_unregister): Likewise.
24403 (grub_file_filter_disable): Likewise.
24404 (grub_file_filter_disable_compression): Likewise.
24405 * include/grub/gzio.h: Removed.
24406
35ee15e0
BC
244072010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24408
24409 Filename expansion support for wildcards in GRUB script.
24410
24411 * tests/grub_script_expansion.in: New test.
24412 * Makefile.util.def: Rule for new test.
24413
24414 * grub-core/commands/wildcard.c: New file, implements filename
24415 expansion support for GRUB script.
24416 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24417 * grub-core/script/argv.c: Cosmetic changes.
24418 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24419 Refactored to perform wildcard expansion on arguments.
24420 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24421 struct.
24422
24423 * tests/util/grub-shell.in: Fix quoting for read input.
24424
5f0c4aca
BC
244252010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24426
24427 Support for updating environment variables with matched substrings
24428 of regexp.
24429
24430 * tests/grub_cmd_regexp.in: New test.
24431 * Makefile.util.def: Rule for new test.
24432
24433 * grub-core/commands/regexp.c: New option -s to update environment
24434 variables with regexp matches.
24435
3759a35f
SJ
244362010-09-04 Szymon Janc <szymon@janc.net.pl>
24437
24438 * include/grub/file.h (grub_file): New member not_easly_seekable.
24439 (grub_file_seekable): New inline function.
24440 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24441 easily seekable.
24442 (grub_gzio_open): Set not_easly_seekable.
24443 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24444 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24445
ed8c6dec
BC
244462010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24447
24448 Support for options to appear multiple times on cmdline.
24449
24450 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24451 * grub-core/commands/extcmd.c: Support for repeatable option.
24452 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24453 repeatable option support.
24454
24455 Refactor menuentry into a regular command.
24456
24457 * grub-core/commands/menuentry.c: New file, menuentry command
24458 implementation.
24459 * grub-core/Makefile.core.def: Rule update for normal.mod.
24460 * grub-core/normal/main.c: Moved menuentry creation to
24461 grub-core/commands/menuentry.c.
24462 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24463 (grub_menu_execute_entry_real): Removed.
24464 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24465 function.
24466 (grub_script_execute_menuentry): Removed.
24467 * grub-core/script/parser.y (menuentry): Removed.
24468 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24469 * grub-core/script/yylex.l (menuentry): Removed.
24470 * include/grub/menu.h (grub_menu_init): New prototype.
24471 (grub_menu_fini): New prototype.
24472 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24473 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24474 (grub_script_execute_sourcecode): New prototype.
24475
dacd0cf0
BC
244762010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24477
24478 "return" command for GRUB script functions.
24479
24480 * tests/grub_script_return.in: New test.
24481 * Makefile.util.def: Rules for new test.
24482
24483 * grub-core/script/execute.c (grub_script_return): New function.
24484 * grub-core/script/main.c: Register/unregister return commaond.
24485 * include/grub/script_sh.h (grub_script_return): New prototype.
24486
52e72f9d
BC
244872010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24488
24489 "setparams" command to update positional parameters.
24490
24491 * tests/grub_script_setparams.in: New test.
24492 * Makefile.util.def: Rules for new test.
24493
24494 * grub-core/script/argv.c (grub_script_argv_make): New function.
24495 * grub-core/script/execute.c (replace_scope): New function.
24496 (grub_script_setparams): New function.
24497 * grub-core/script/lexer.c: Remove unused variables.
24498 * grub-core/script/main.c: Register/unregister setparams command.
24499 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24500 (grub_script_setparams): New prototype.
24501
25b60c91
BC
245022010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24503
24504 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24505 grub_free order.
24506
37e7bf68
BC
245072010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24508
24509 Support for passing block of commands as an argument to extcmds.
24510
24511 * Makefile.util.def: Rules for new test.
24512 * tests/grub_script_blockarg.in: New test.
24513 * grub-core/tests/test_blockarg.c: New file, block argument
24514 command used in the test.
24515
24516 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24517 (grub_register_extcmd_prio): New function prototype.
24518 (grub_extcmd_dispatcher): New function prototype.
24519 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24520 type.
24521 * include/grub/script_sh.h (struct grub_script): New members
24522 `children', `next_siblings' and `refcnt' for block arguments and
24523 reference counting.
24524 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24525 (grub_script_arg): New member `script' for block argument.
24526 (grub_script_argv): New member `script' for block argument.
24527 (grub_parser_param): New member `scripts' for block argument.
24528 (grub_script_mem_free): New extern function prototype.
24529 (grub_script_ref): New function prototype.
24530 (grub_script_unref): New function prototype.
24531
24532 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24533 extcmd form to support block arguments.
24534 * grub-core/script/argv.c: Block arguments support.
24535 * grub-core/script/execute.c: Likewise.
24536 * grub-core/script/lexer.c: Likewise.
24537 * grub-core/script/main.c: Likewise.
24538 * grub-core/script/script.c: Likewise.
24539 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24540 non-terminals.
24541
24542 * grub-core/commands/acpi.c: Update extcmd implementations with
24543 grub_extcmd_context_t.
24544 * grub-core/commands/cat.c: Likewise.
24545 * grub-core/commands/echo.c: Likewise.
24546 * grub-core/commands/extcmd.c: Likewise.
24547 * grub-core/commands/hashsum.c: Likewise.
24548 * grub-core/commands/hdparm.c: Likewise.
24549 * grub-core/commands/help.c: Likewise.
24550 * grub-core/commands/hexdump.c: Likewise.
24551 * grub-core/commands/i386/cpuid.c: Likewise.
24552 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24553 * grub-core/commands/i386/pc/halt.c: Likewise.
24554 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24555 * grub-core/commands/iorw.c: Likewise.
24556 * grub-core/commands/keystatus.c: Likewise.
24557 * grub-core/commands/loadenv.c: Likewise.
24558 * grub-core/commands/ls.c: Likewise.
24559 * grub-core/commands/lspci.c: Likewise.
24560 * grub-core/commands/memrw.c: Likewise.
24561 * grub-core/commands/probe.c: Likewise.
24562 * grub-core/commands/search_wrap.c: Likewise.
24563 * grub-core/commands/setpci.c: Likewise.
24564 * grub-core/commands/sleep.c: Likewise.
24565 * grub-core/disk/loopback.c: Likewise.
24566 * grub-core/hello/hello.c: Likewise.
24567 * grub-core/loader/i386/bsd.c: Likewise.
24568 * grub-core/loader/xnu.c: Likewise.
24569 * grub-core/term/gfxterm.c: Likewise.
24570 * grub-core/term/serial.c: Likewise.
24571 * grub-core/tests/lib/functional_test.c: Likewise.
24572
888d1500
BC
245732010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24574
24575 Multi-line quoted strings support.
24576
24577 * grub-core/script/lexer.c (append_newline): Removed.
24578 (grub_script_lexer_yywrap): Refactored.
24579 (grub_script_lexer_init): Refactored.
24580 * grub-core/script/yylex.l (yywrap): New function.
24581 (grub_lexer_resplit): New function.
24582 (grub_lexer_unput): New function.
24583 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24584 and resplit.
24585 * tests/grub_script_echo1.in: Added few more testcases.
24586
dda060dd
VS
245872010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24588
24589 * grub-core/kern/misc.c: Don't add abort alias in utils.
24590 Reported by: echoline.
24591
6556eba9
BC
245922010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24593
24594 Add missing files into "make dist" tarball for other platforms.
24595
24596 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24597 * conf/Makefile.common (dist_noinst_DATA): New variable.
24598 * conf/Makefile.extra-dist: Added missing make dist files.
24599 * grub-core/Makefile.core.def: Likewise.
24600
c8e7bf5f
VS
246012010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24602
24603 Compress grub_prefix.
24604
24605 * grub-core/boot/i386/pc/lnxboot.S: Use
24606 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24607 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24608 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24609 GRUB_MACHINE_PREFIX_END. All users updated.
24610 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24611 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24612 + 0x40.
24613 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24614 * util/grub-mkimage.c (image_target_desc): Change data_end to
24615 prefix_end. All users updated.
24616
a7c00cdb
VS
246172010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24618
24619 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24620 value.
24621 (grub_openbsd_boot): Likewise.
24622 (grub_netbsd_boot): Likewise.
24623 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24624 (grub_xnu_boot): Likewise.
24625
9f915872
VS
246262010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24627
24628 * configure.ac: Clean LIBS variable after tests.
24629
efa1bee7
CW
246302010-09-02 Colin Watson <cjwatson@ubuntu.com>
24631
24632 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24633
61d720e5
VS
246342010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24635
24636 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24637 echo if libdevmapper will be used.
24638
ef8e0ec8
IT
246392010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24640
24641 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24642 constant for the same file.
24643
03e261d8
VS
246442010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24645
24646 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24647
c2a4eba6
CW
246482010-09-02 Colin Watson <cjwatson@ubuntu.com>
24649
24650 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24651 grub-core/*.pp.
24652
9056cbf3
CW
246532010-09-02 Colin Watson <cjwatson@ubuntu.com>
24654
24655 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24656 required by the boot protocol.
24657
24658 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24659 ebp and edi members.
24660 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24661 state.ebp and state.edi.
24662 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24663 %ebp and %edi according to grub_relocator32_ebp and
24664 grub_relocator32_edi respectively.
24665 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24666 and state.edi.
24667
529cc99a
VS
246682010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24669
24670 Add i386-pc-pxe image target.
24671
24672 * util/grub-mkimage.c (image_target_desc): New enum value
24673 IMAGE_I386_PC_PXE.
24674 (image_targets): New target i386-pc-pxe.
24675 (generate_image): Handle i386-pc-pxe image.
24676
9a093920
VS
246772010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24678
24679 Fix grub_pxe_scan.
24680
24681 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24682 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24683 All users updated.
24684 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24685 (grub_pxe_pxenv): Correct type.
24686
f9cefc4e
CW
246872010-09-01 Colin Watson <cjwatson@ubuntu.com>
24688
24689 * NEWS: Document most of the important changes since 1.98.
24690
4066f57f
CW
246912010-09-01 Colin Watson <cjwatson@ubuntu.com>
24692
24693 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24694 generated manual page) a little.
24695
da2891f9
CW
246962010-09-01 Colin Watson <cjwatson@ubuntu.com>
24697
24698 * docs/grub.texi: Add myself as an author.
24699
ad717fae
VS
247002010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24701
24702 * Makefile.util.def (libgrub.a): Add missing sunpc.
24703 Reported by: Seth Goldberg.
24704
eefe8abd
VS
247052010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24706
24707 Interrupt wrapping and code simplifications.
24708
9494ef9a
VS
24709 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24710 x86_noieee1275 which are functionaly equivalent in this case.
24711 (grub-install): Make source on each platform explicit. Enable on
24712 all noemu.
24713 * gentpl.py (x86_efi_pc): Removed group.
24714 (x86_noefi): Likewise.
24715 (i386_noefi): Likewise.
24716 (x86_noieee1275): Likewise.
24717 (i386_noieee1275): Likewise.
24718 (i386_noefi_noieee1275): Likewise.
24719 (i386_pc_qemu_coreboot): Likewise.
24720 (i386_coreboot_multiboot): Likewise.
24721 (i386_pc_coreboot_multiboot_qemu): Likewise.
24722 (x86_noefi_mips): Likewise.
24723 (noieee1275): Likewise.
24724 (ieee1275_mips): Likewise.
24725 (noemu_noieee1275): Likewise.
24726 (cmos): New group.
24727 (usb): Likewise.
24728 (videoinkernel): Likewise.
24729 (videomodules): Likewise.
eefe8abd 24730 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
24731 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24732 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24733 include/grub/loader.h, include/grub/msdos_partition.h,
24734 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24735 include/grub/machine/console.h, include/grub/machine/vga.h,
24736 include/grub/machine/vbe.h, include/grub/machine/init.h,
24737 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24738 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 24739 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
24740 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24741 * grub-core/Makefile.core.def (kernel): Explicit the source for
24742 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24743 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24744 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24745 Use videoinkernel tag.
24746 (usb): Enable on all usb.
24747 (usbserial_common): Likewise.
24748 (usbserial_pl2303): Likewise.
24749 (usbserial_ftdi): Likewise.
24750 (uhci): Enable on all x86.
24751 (ohci): Enable on all pci.
24752 (cmostest): Enable on all CMOS.
24753 (acpi): Include commands/acpi.c on all platforms.
24754 (halt): Add relevant lib/*/halt.c.
24755 (hdparm): Enable on all pci.
24756 (lspci): Likewise.
24757 (usbtest): Enable on all usb.
24758 (ata): Enable on all pci.
24759 (ata_pthru): Likewise.
24760 (usbms): Enable on all usb.
24761 (usb_keyboard): Likewise.
24762 (font): Use tag videomodules.
24763 (bufio): Likewise.
24764 (datetime): Use tag cmos. Enable on all noemu.
24765 (mmap): Use tags common and x86.
24766 (gfxterm): Use tag videomodules.
24767 (bitmap): Likewise.
24768 (bitmap_scale): Likewise.
24769 (video_fb): Likewise.
24770 (video): Likewise.
24771 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24772 adjust padding accordingly. All users updated.
24773 (grub_ohci_transaction): Fix bad format specification.
24774 (GRUB_MOD_INIT): Add asserts for struct size.
24775 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24776 (grub_alloc_td): Likewise.
24777 (grub_free_queue): Likewise.
24778 (grub_uhci_transfer): Likewise.
24779 (grub_uhci_transaction): Fix bad format specification.
24780 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24781 (grub_usb_bulk_readwrite): Likewise.
24782 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24783 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24784 Made static.
24785 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24786 Made static.
24787 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24788 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24789 Transformed into C.
24790 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24791 Moved from here ...
24792 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24793 ... here. Transformed into C. Made static.
24794 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24795 Moved from here ...
24796 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24797 ... here. Transformed into C. Made static.
24798 * grub-core/kern/i386/pc/startup.S
24799 (grub_biosdisk_check_int13_extensions): Moved from here ...
24800 * grub-core/disk/i386/pc/biosdisk.c
24801 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24802 Made static.
24803 * grub-core/kern/i386/pc/startup.S
24804 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24805 * grub-core/disk/i386/pc/biosdisk.c
24806 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24807 Transformed into C. Made static.
24808 * grub-core/kern/i386/pc/startup.S
24809 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24810 * grub-core/disk/i386/pc/biosdisk.c
24811 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24812 Transformed into C. Made static.
24813 * grub-core/kern/i386/pc/startup.S
24814 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24815 * grub-core/disk/i386/pc/biosdisk.c
24816 (grub_biosdisk_get_diskinfo_standard): ... here.
24817 Transformed into C. Made static.
24818 * grub-core/kern/i386/pc/startup.S
24819 (grub_biosdisk_get_num_floppies): Moved from here ...
24820 * grub-core/disk/i386/pc/biosdisk.c
24821 (grub_biosdisk_get_num_floppies): ... here.
24822 Transformed into C. Made static.
24823 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24824 New function.
24825 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24826 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24827 Transformed into C. Made static.
24828 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24829 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24830 Transformed into C. Made static.
24831 * grub-core/kern/i386/ieee1275/init.c: Removed.
24832 * grub-core/kern/i386/misc.S: Likewise.
24833 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24834 Splitted from here ...
24835 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24836 Transformed into C. Made static. All users updated.
24837 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24838 Transformed into C. Made static. All users updated.
24839 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24840 Moved from here...
24841 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24842 Transformed into C. Made static. All users updated.
24843 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24844 Moved from here...
24845 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24846 Transformed into C. Made static. All users updated.
24847 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24848 Removed (replaced by C version).
24849 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24850 Moved from here...
24851 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24852 Transformed into C. Made static.
24853 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24854 Moved from here...
24855 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24856 ... here. Transformed into C.
24857 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24858 Moved from here...
24859 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24860 ... here. Transformed into C.
24861 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24862 Moved from here...
24863 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24864 ... here. Transformed into C. Made static.
24865 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24866 Moved from here...
24867 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24868 ... here. Transformed into C.
21ed554b
VS
24869 * grub-core/kern/i386/pc/startup.S
24870 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24871 * grub-core/video/i386/pc/vbe.c
24872 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
24873 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24874 Moved from here...
24875 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24876 ... here. Transformed into C.
24877 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24878 Moved from here...
24879 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24880 ... here. Transformed into C.
24881 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24882 Moved from here...
24883 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24884 ... here. Transformed into C.
24885 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24886 Moved from here...
24887 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24888 ... here. Transformed into C.
24889 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24890 Moved from here...
24891 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24892 ... here. Transformed into C. Made static.
24893 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24894 Moved from here...
24895 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24896 ... here. Transformed into C. Made static.
24897 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24898 Moved from here...
24899 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24900 ... here. Transformed into C. Made static.
24901 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24902 pxe_rm_entry as third argument.
24903 (grub_bios_interrupt): New function.
24904 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24905 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24906 of calling grub_stop.
24907 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24908 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24909 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24910 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24911 * grub-core/lib/i386/halt.c: Moved from here ...
24912 * grub-core/lib/i386/halt.c: ... here.
24913 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24914 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24915 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24916 grub_stop_floppy.
24917 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24918 * include/grub/i386/coreboot/init.h: Removed.
24919 * include/grub/i386/multiboot/init.h: Likewise.
24920 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24921 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24922 * include/grub/i386/pc/int.h: New file.
24923 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24924 (grub_pxe_scan): Removed.
24925 (grub_pxe_call): Update prototype.
24926 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24927 prototypes.
24928 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24929 * include/grub/i386/qemu/init.h: Removed.
24930 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24931 noreturn.
24932 (grub_halt): Likewise.
24933 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24934 (grub_reboot): Likewise.
24935 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24936 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
24937 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24938
215dd471
RM
249392010-08-30 Robert Millan <rmh@gnu.org>
24940
24941 * NEWS: Document addition of ZFS support in `grub-install' and
24942 `grub-mkconfig'.
24943
ebd65b82
BC
249442010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24945
24946 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24947 dprintf output.
24948
11721d19
VS
249492010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24950
24951 Remove leftover embedding of font objects.
24952
24953 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24954 * util/grub-install.in (font): Removed.
24955 * util/grub-mkimage.c (generate_image): Remove font support. All users
24956 updated.
24957
37837d4e
VS
249582010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24959
24960 Remove leftover embedding of font objects.
24961
24962 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24963 * util/grub-install.in (font): Removed.
24964 * util/grub-mkimage.c (generate_image): Remove font support. All users
24965 updated.
24966
b4c1aae0
VS
249672010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24968
24969 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 24970 Reported by: Ian Turner
b4c1aae0 24971
8920a08d
VS
249722010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24973
24974 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24975 timeout to avoid indefinite boot stalling.
24976
f21db033
VS
249772010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24978
24979 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24980 (grub_env_write_color_highlight): Likewise.
24981
9a9de209
VS
249822010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24983
24984 * grub-core/normal/term.c (print_more): Return to normal and not
24985 to standard state after printing "---MORE---".
24986
3dca01d7
VS
249872010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24988
24989 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24990 Mask out the bit 0x80 since it has other meaning that specifiing color.
24991
0b986c40
VS
249922010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24993
24994 New relocator. Allows for more kernel support and more straightforward
24995 loader writing.
24996
24997 * Makefile.am (BOOTTARGET): New variable.
24998 (QEMU32): Likewise.
24999 (linux.init.x86_64): New target.
25000 (linux.init.i386): Likewise.
25001 (multiboot.elf): Likewise.
25002 (kfreebsd.elf): Likewise.
25003 (kfreebsd.aout): Likewise.
25004 (pc-chainloader.elf): Likewise.
25005 (pc-chainloader.bin): Likewise.
25006 (ntldr.elf): Likewise.
25007 (ntldr.bin): Likewise.
25008 (multiboot2.elf): Likewise.
25009 (kfreebsd.init.x86_64): Likewise.
25010 (kfreebsd.init.i386): Likewise.
25011 (knetbsd.init.i386): Likewise.
25012 (kopenbsd.init.i386): Likewise.
25013 (knetbsd.init.x86_64): Likewise.
25014 (kopenbsd.init.x86_64): Likewise.
25015 (linux-initramfs.i386): Likewise.
25016 (linux-initramfs.x86_64): Likewise.
25017 (kfreebsd-mfsroot.i386.img): Likewise.
25018 (knetbsd.image.i386): Likewise.
25019 (kopenbsd.image.i386): Likewise.
25020 (kopenbsd.image.x86_64): Likewise.
25021 (knetbsd.miniroot-image.i386.img): Likewise.
25022 (kfreebsd-mfsroot.x86_64.img): Likewise.
25023 (knetbsd.image.x86_64): Likewise.
25024 (knetbsd.miniroot-image.x86_64.img): Likewise.
25025 (kfreebsd-mfsroot.i386.gz): Likewise.
25026 (bootcheck-kfreebsd-i386): Likewise.
25027 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25028 (bootcheck-kfreebsd-x86_64): Likewise.
25029 (knetbsd.miniroot-image.i386.gz): Likewise.
25030 (bootcheck-knetbsd-i386): Likewise.
25031 (bootcheck-kopenbsd-i386): Likewise.
25032 (bootcheck-kopenbsd-x86_64): Likewise.
25033 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25034 (bootcheck-knetbsd-x86_64): Likewise.
25035 (bootcheck-linux-i386): Likewise.
25036 (bootcheck-linux-x86_64): Likewise.
25037 (bootcheck-linux16-i386): Likewise.
25038 (bootcheck-linux16-x86_64): Likewise.
25039 (bootcheck-multiboot): Likewise.
25040 (bootcheck-multiboot2): Likewise.
25041 (bootcheck-kfreebsd-aout): Likewise.
25042 (bootcheck-pc-chainloader): Likewise.
25043 (bootcheck-ntldr): Likewise.
25044 (CLEANFILES): Add new targets.
25045 (BOOTCHECKS): New variable.
25046 (.PHONY): Add bootchecks.
25047 (SUCCESSFUL_BOOT_STRING): New variable.
25048 (BOOTCHECK_TIMEOUT): Likewise.
25049 (bootcheck): New target
25050 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25051 * configure.ac: Correct efiemu excuse.
25052 * docs/grub.texi (Supported kernels): New chapter.
25053 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25054 include/grub/mm_private.h. Simplify inclusion of
25055 include/grub/boot.h, include/grub/loader.h
25056 and include/grub/msdos_partition.h
25057 (KERNEL_HEADER_FILES) [i386_coreboot]:
25058 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25059 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25060 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25061 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25062 include/grub/machine/loader.h.
25063 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25064 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25065 extra_dist.
25066 (pci.mod): Enable on i386-multiboot.
25067 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25068 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25069 i386-qemu.
25070 (relocator.mod): Rewritten.
25071 (aout.mod): Enable on all x86.
25072 (bsd.mod): Likewise.
25073 (ntldr.mod): New module.
25074 (linux.mod): Use loader/i386/linux.c on all x86.
25075 (xnu.mod): Enable on all x86.
25076 (vga_text.mod): disable on EFI and QEMU.
25077 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25078 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25079 * grub-core/efiemu/loadcore.c: Likewise.
25080 * grub-core/efiemu/main.c: Likewise.
25081 (grub_efiemu_exit_boot_services): Removed.
25082 (grub_efiemu_finish_boot_services): Likewise.
25083 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25084 function.
25085 * grub-core/efiemu/i386/nocfgtables.c: New file.
25086 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25087 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25088 (grub_efi_finish_boot_services): Moved from here ...
25089 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25090 Fille finish memory map and related data.
25091 (finish_mmap_buf): New variable.
25092 (grub_efi_uintn_t finish_mmap_size): Likewise.
25093 (grub_efi_uintn_t finish_key): Likewise.
25094 (grub_efi_uintn_t finish_desc_size): Likewise.
25095 (grub_efi_uint32_t finish_desc_version): Likewise.
25096 (grub_efi_is_finished): Likewise.
25097 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25098 finished.
25099 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25100 (grub_elf64_phdr_iterate): Likewise.
25101 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25102 (grub_os_area_size): Likewise.
25103 (grub_machine_init): Don't reserve os area.
25104 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25105 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25106 * grub-core/kern/i386/loader.S: Removed.
25107 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25108 (grub_os_area_size): Likewise.
25109 (grub_machine_init): Don't reserve os area.
25110 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25111 Don't call grub_dl_unload_all.
25112 Don't include loader.S.
25113 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25114 Declare the memory after _end as available.
25115 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 25116 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 25117 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
25118 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25119 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25120 * include/grub/mm_private.h (grub_mm_header): ... here.
25121 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25122 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
25123 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25124 (grub_mm_region): ..here. Removed addr. Added pre_size.
25125 All users updated.
25126 * grub-core/kern/mm.c (base): Renamed to ...
25127 (grub_mm_base): ... this. Made global.
25128 (grub_real_malloc): Alloc from end of region.
25129 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25130 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25131 * grub-core/kern/powerpc/cache_flush.S: ... here.
25132 * grub-core/lib/efi/relocator.c: New file.
25133 * grub-core/lib/i386/relocator.c: Rewritten.
25134 * grub-core/lib/i386/relocator16.S: New file.
25135 * grub-core/lib/i386/relocator32.S: Likewise.
25136 * grub-core/lib/i386/relocator64.S: Likewise.
25137 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25138 * grub-core/lib/i386/relocator_common.S: New file.
25139 * grub-core/lib/ieee1275/relocator.c: Likewise.
25140 * grub-core/lib/mips/relocator.c: Rewritten.
25141 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25142 stylistic adjustments.
25143 * grub-core/lib/powerpc/relocator.c: New file.
25144 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25145 * grub-core/lib/relocator.c: Rewritten.
25146 * grub-core/lib/x86_64/relocator_asm.S: New file.
25147 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25148 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25149 (bsd_tag): New struct.
25150 (tags): New variable.
25151 (tags_last): Likewise.
25152 (netbsd_module): New struct.
25153 (netbsd_mods): New variable.
25154 (netbsd_mods_last): Likewise.
25155 (openbsd_opts): New parameter "serial".
25156 (OPENBSD_SERIAL_ARG): New definition.
25157 (netbsd_opts): New parameter "serial".
25158 (NETBSD_SERIAL_ARG): New definition.
25159 (grub_freebsd_add_meta): Reorganised into ...
25160 (grub_bsd_add_meta): ...this. All users updated.
25161 (grub_freebsd_add_mmap): Reorganised into ...
25162 (generate_e820_mmap): ...this...
25163 (grub_bsd_add_mmap): ...and this. All users updated.
25164 (grub_freebsd_list_modules): Use tags.
25165 (grub_netbsd_add_meta_module): New function.
25166 (grub_netbsd_list_modules): Likewise.
25167 (grub_freebsd_boot): Use relocator and finish EFI.
25168 (grub_openbsd_boot): Likewise.
25169 (grub_netbsd_setup_video): New function.
25170 (grub_netbsd_add_modules): Likewise.
25171 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25172 and finish EFI.
25173 (grub_bsd_unload): Unload tags.
25174 (grub_bsd_load_aout): Use relocator.
25175 (grub_bsd_elf32_size_hook): New function.
25176 (grub_bsd_elf32_hook): Use relocator.
25177 (grub_bsd_elf64_size_hook): New function.
25178 (grub_bsd_elf64_hook): Use relocator.
25179 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25180 (grub_bsd_load): Zero-out openbsd_ramdisk.
25181 (grub_bsd_load): Use relocator.
25182 (grub_cmd_openbsd): Support serial.
25183 (grub_cmd_netbsd): Support modules.
25184 (grub_cmd_freebsd_module): Use relocator.
25185 (grub_netbsd_module_load): New function.
25186 (grub_cmd_netbsd_module): Likewise.
25187 (grub_cmd_openbsd_ramdisk): Likewise.
25188 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25189 kopenbsd_ramdisk.
25190 (GRUB_MOD_FINI): Unregister new commands.
25191 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25192 (grub_freebsd_load_elfmodule_obj): Use relocator.
25193 (grub_freebsd_load_elfmodule): Likewise.
25194 (grub_freebsd_load_elf_meta): Likewise.
25195 (grub_netbsd_load_elf_meta): New function.
25196 (grub_openbsd_find_ramdisk): Likewise.
25197 * grub-core/loader/i386/bsd_helper.S: Removed.
25198 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25199 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25200 * grub-core/loader/i386/efi/linux.c: Likewise.
25201 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25202 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25203 (DEFAULT_VIDEO_MODE): Likewise.
25204 (real_mode_target): New variable.
25205 (prot_mode_target): Likewise.
25206 (initrd_mem_target): Likewise.
25207 (relocator): Likewise.
25208 (efi_mmap_buf): Likewise.
25209 (efi_mmap_size): Likewise.
25210 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25211 (free_pages): Use relocator.
25212 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25213 (grub_linux_setup_video): Return error.
25214 (grub_linux_trampoline_start): Removed.
25215 (grub_linux_trampoline_end): Likewise.
25216 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25217 andd video parameters depending on firmware.
25218 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25219 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25220 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25221 (grub_cmd_initrd): Use relocator.
25222 * grub-core/loader/i386/linux_trampoline.S: Removed.
25223 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25224 (elf_sec_entsize): Likewise.
25225 (elf_sec_shstrndx): Likewise.
25226 (elf_sections): Likewise.
25227 (grub_multiboot_load): Use relocator.
25228 (grub_multiboot_get_mbi_size): Account for sections.
25229 (grub_multiboot_make_mbi): Use relocator and support sections.
25230 (grub_multiboot_add_elfsyms): New function.
25231 (grub_multiboot_free_mbi): Free sections.
25232 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25233 (grub_linux_real_target): Likewise.
25234 (grub_linux_real_chunk): Likewise.
25235 (grub_linux16_prot_size): Likewise.
25236 (grub_linux16_boot): Use relocator.
25237 (grub_linux_unload): Unload relocator.
25238 (grub_cmd_linux): Use relocator.
25239 (grub_cmd_initrd): Likewise.
25240 * grub-core/loader/i386/pc/ntldr.c: New file.
25241 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25242 Don't try to guess CPU frequency.
25243 (grub_xnu_set_video): Stretch bitmap.
25244 (grub_xnu_boot): Use relocator.
25245 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25246 (grub_linux_unload): Free relocator.
25247 (grub_linux_load32): Use relocator.
25248 (grub_linux_load64): Likewise.
25249 (grub_cmd_initrd): Likewise.
25250 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25251 (grub_multiboot_unload): Unload relocator.
25252 (grub_cmd_multiboot): Use relocator.
25253 (grub_cmd_module): Likewise.
25254 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25255 Use relocator and support sections.
25256 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25257 (elf_sec_entsize): Likewise.
25258 (elf_sec_shstrndx): Likewise.
25259 (elf_sections): Likewise.
25260 (grub_multiboot_load): Use relocator.
25261 (grub_multiboot_get_mbi_size): Account for sections.
25262 (grub_multiboot_make_mbi): Use relocator and support sections.
25263 (grub_multiboot_add_elfsyms): New function.
25264 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25265 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25266 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25267 Prototype changed. All users updated.
25268 (grub_xnu_align_heap): Simplified.
25269 (grub_xnu_writetree_toheap): Likewise.
25270 (grub_xnu_unload): Unload relocator.
25271 (grub_cmd_xnu_kernel): Use relocator.
25272 (grub_cmd_xnu_kernel64): Likewise.
25273 (grub_xnu_register_memory): Simplified.
25274 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
25275 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25276 EFI is finished.
25277 (grub_console_checkkey): Likewise.
25278 (grub_console_getkey): Likewise.
25279 (grub_console_getwh): Likewise.
25280 (grub_console_getxy): Likewise.
25281 (grub_console_gotoxy): Likewise.
25282 (grub_console_cls): Likewise.
25283 (grub_console_setcolorstate): Likewise.
25284 (grub_console_setcursor): Likewise.
25285 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25286 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25287 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25288 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25289 * grub-core/tests/boot/kernel-8086.S: Likewise.
25290 * grub-core/tests/boot/kernel-i386.S: Likewise.
25291 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25292 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25293 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25294 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25295 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25296 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25297 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25298 * grub-core/tests/boot/linux.cfg: Likewise.
25299 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25300 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25301 * grub-core/tests/boot/linux16.cfg: Likewise.
25302 * grub-core/tests/boot/multiboot.cfg: Likewise.
25303 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25304 * grub-core/tests/boot/ntldr.cfg: Likewise.
25305 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25306 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25307 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25308 New definition.
25309 * include/grub/dl.h (grub_dl_unload_all): Removed.
25310 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25311 (grub_efi_finish_boot_services): Change prototype.
25312 (grub_efi_is_finished): New variable.
25313 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25314 Changed prototype.
25315 (grub_efiemu_finish_boot_services): Removed.
25316 (grub_machine_efiemu_init_tables): New prototype.
25317 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25318 (grub_elf64_phdr_iterate): Likewise.
25319 * include/grub/i386/bsd.h: Include relocator.h.
25320 (freebsd_tag_header): New struct.
25321 (grub_openbsd_bios_mmap): Removed.
25322 (grub_unix_real_boot): Removed.
25323 (grub_freebsd_load_elfmodule32): Changed prototype.
25324 (grub_freebsd_load_elfmodule_obj64): Likewise.
25325 (grub_freebsd_load_elf_meta32): Likewise.
25326 (grub_freebsd_load_elf_meta64): Likewise.
25327 (grub_freebsd_add_meta): Removed.
25328 (grub_netbsd_load_elf_meta32): New prototype.
25329 (grub_netbsd_load_elf_meta64): Likewise.
25330 (grub_bsd_add_meta): Likewise.
25331 (grub_openbsd_ramdisk_descriptor): New struct.
25332 (grub_openbsd_find_ramdisk32): New prototype.
25333 (grub_openbsd_find_ramdisk64): Likewise.
25334 * include/grub/i386/coreboot/loader.h: Removed.
25335 * include/grub/i386/efi/loader.h: Likewise.
25336 * include/grub/i386/ieee1275/loader.h: Likewise.
25337 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25338 to grub_uint32_t.
25339 * include/grub/i386/loader.h: Removed.
25340 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25341 value.
25342 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25343 (grub_phys_addr_t): New type.
25344 (grub_vtop): New inline function.
25345 (grub_map_memory): Likewise.
25346 (grub_unmap_memory): Likewise.
25347 * include/grub/i386/multiboot/loader.h: Removed.
25348 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25349 (NETBSD_BTINFO_CONSOLE): New definition.
25350 (NETBSD_BTINFO_SYMTAB): Likewise.
25351 (NETBSD_BTINFO_MODULES): Likewise.
25352 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25353 (grub_netbsd_bootinfo): New struct.
25354 (grub_netbsd_btinfo_common): Use explicit bitsize.
25355 (grub_netbsd_btinfo_mmap_entry): Removed.
25356 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25357 (grub_netbsd_btinfo_bootdisk): New struct.
25358 (grub_netbsd_btinfo_symtab): Likewise.
25359 (grub_netbsd_btinfo_serial): Likewise.
25360 (grub_netbsd_btinfo_modules): Likewise.
25361 (grub_netbsd_btinfo_framebuf): Likewise.
25362 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25363 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25364 Likewise.
25365 (grub_openbsd_bootargs): Use explicit bitsize.
25366 (grub_openbsd_bootarg_console): New struct.
25367 (GRUB_OPENBSD_COM_MAJOR): New definition.
25368 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25369 * include/grub/i386/pc/efiemu.h: Removed.
25370 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25371 * include/grub/i386/qemu/loader.h: Removed.
25372 * include/grub/i386/relocator.h: Rewritten.
25373 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25374 * include/grub/mips/memory.h: New file.
25375 * include/grub/mips/multiboot.h: Rewritten.
25376 * include/grub/mips/relocator.h: Rewritten.
25377 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25378 (grub_vtop): New function.
25379 (grub_map_memory): Likewise.
25380 (grub_unmap_memory): Likewise.
25381 * include/grub/misc.h (ALIGN_DOWN): New definition.
25382 * include/grub/mm.h (grub_mm_check_real): New proto.
25383 (GRUB_MM_CHECK): New definition.
25384 * include/grub/mm_private.h: New file.
25385 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25386 (grub_multiboot_get_mbi_size): Removed.
25387 (grub_multiboot_make_mbi): Change prottype.
25388 (grub_multiboot_set_accepts_video): New proto.
25389 (grub_multiboot_add_elfsyms): Likewise.
25390 (grub_multiboot_payload_eip): New variable.
25391 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25392 New prototype.
25393 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25394 New definition.
25395 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25396 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25397 * include/grub/powerpc/ieee1275/loader.h: Removed.
25398 * include/grub/powerpc/memory.h: New file.
25399 * include/grub/powerpc/relocator.h: Likewise.
25400 * include/grub/relocator.h: Likewise.
25401 * include/grub/relocator_private.h: Likewise.
25402 * include/grub/sparc64/ieee1275/loader.h: Removed.
25403 * include/grub/x86_64/memory.h: New file.
25404 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25405 (grub_xnu_heap_malloc): Likewise.
25406 (grub_xnu_heap_real_start): Removed.
25407 (grub_xnu_heap_start): Likewise.
25408 (grub_xnu_relocator): New variable.
25409 (grub_xnu_heap_target_start): Likewise.
25410 * tests/util/grub-shell.in: Support non-pc.
25411 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 25412
5303b85d
VS
254132010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25414
25415 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25416 on malloc error.
25417 (grub_bidi_logical_to_visual): Check that malloc succeded.
25418 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25419 puts.
25420 (grub_xputs_normal): Likewise.
25421
d768d159
VS
254222010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25423
25424 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25425 extra_dist.
25426
254272010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25428
25429 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25430
5bf84df4
VS
254312010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25432
25433 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25434
3626810e
VS
254352010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25436
25437 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25438 dprintf.
25439
a7363f53
BC
254402010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25441
25442 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25443
902f75f6
VS
254442010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25445
25446 * grub-core/normal/term.c (print_more): Fix a memory leak.
25447 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25448 (grub_xputs_normal): Likewise.
25449
3c707967
VS
254502010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25451
25452 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25453 the begining of the string
25454
2053cc07
VS
254552010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25456
25457 * grub-core/script/script.c (grub_script_parse): Free parsed on
25458 failure.
25459
46422ebf
VS
254602010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25461
25462 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25463 on failure.
25464
9e0fa3f6
VS
254652010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25466
25467 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25468 return.
25469
3393cf16
VS
254702010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25471
25472 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25473 (scroll_up): Fix a memory leak.
25474
b17540cb
VS
254752010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25476
25477 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25478 errors.
25479
67140446
VS
254802010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25481
25482 Handle USB pendrives exposed as floppies.
25483
25484 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25485 floppy.
25486 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25487 Check for partitions on all devices.
25488
e35e46fc
VS
254892010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25490
25491 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25492 (readkey): Likewise.
25493
d24c6190
BC
254942010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25495
25496 Multiple variable names support to "export" command.
25497
25498 * normal/context.c (grub_cmd_export): "export" command supports
25499 multiple variable names.
25500
04ddcc6a
ST
255012010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25502
25503 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25504 --target=drive output to Mach device name.
25505
0c8b61d8
BC
255062010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25507
25508 New Automake based build system for GRUB.
25509
25510 * ABOUT-NLS: New file.
25511 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25512 in Makefile.util.def file.
25513 * Makefile.util.def: New file. Autogen build definitions file for
25514 GRUB host utils.
25515 * conf/Makefile.common: New file. Common variables for GRUB host
25516 utils and target modules.
25517 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25518 * docs/Makefile.am: New file. Automake file for docs.
25519 * gentpl.py: New file. Python script to generate Autogen
25520 template.
25521 * grub-core/Makefile.am: New file. GRUB target modules' rules
25522 that doesn't fit in Makefile.core.def file.
25523 * grub-core/Makefile.core.def: New file. Autogen build
25524 definitions file for GRUB target modules.
25525 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25526 specific setjmp.S file.
25527 * po/Makefile.am: New file.
25528
25529 * .bzrignore: New ignores.
25530 * INSTALL: New requirements, without Ruby.
25531 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25532 * autogen.sh: Updated to invoke autogen as necessary.
25533 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25534 and defines for Automake conditionals.
25535 * geninit.sh: Refactoring.
25536
25537 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25538 necessary.
25539 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25540 New prototype.
25541
25542 * include/grub/test.h: Fix functional test modules' naming.
25543 * grub-core/tests/example_functional_test.c: Fix test module name.
25544
25545 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25546 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25547 * util/grub-editenv.c: Likewise.
25548 * util/grub-fstest.c: Likewise.
25549 * util/grub-mkdevicemap.c: Likewise.
25550 * util/grub-mkfont.c: Likewise.
25551 * util/grub-mkimage.c: Likewise.
25552 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25553 * util/grub-probe.c: Likewise.
25554 * util/grub-script-check.c: Likewise.
25555 * util/i386/pc/grub-setup.c: Likewise.
25556 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25557
25558 * tests/util/grub-shell.in: Fix override directory path.
25559 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25560 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25561
25562 * util/lvm.c: Update #includes.
25563 * util/raid.c: Likewise.
25564 * util/resolve.c: Likewise.
25565 * grub-core/bus/emu/pci.c: Likewise.
25566 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25567 * grub-core/lib/posix_wrap/string.h: Likewise.
25568 * grub-core/kern/emu/main.c: Likewise.
25569
25570 * grub-core/gensymlist.sh: New file. Script for generating kernel
25571 symbols file.
25572 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25573
25574 * grub-core/gentrigtables.c: Fix unused variable warnings.
25575
25576 * Makefile.in: Removed.
25577 * conf/any-emu.rmk: Removed.
25578 * conf/common.rmk: Removed.
25579 * conf/i386-coreboot.rmk: Removed.
25580 * conf/i386-efi.rmk: Removed.
25581 * conf/i386-ieee1275.rmk: Removed.
25582 * conf/i386-multiboot.rmk: Removed.
25583 * conf/i386-pc.rmk: Removed.
25584 * conf/i386-qemu.rmk: Removed.
25585 * conf/i386.rmk: Removed.
25586 * conf/mips-yeeloong.rmk: Removed.
25587 * conf/mips.rmk: Removed.
25588 * conf/powerpc-ieee1275.rmk: Removed.
25589 * conf/sparc64-ieee1275.rmk: Removed.
25590 * conf/tests.rmk: Removed.
25591 * conf/x86-efi.rmk: Removed.
25592 * conf/x86_64-efi.rmk: Removed.
25593 * gendistlist.sh: Removed.
25594 * geninitheader.sh: Removed.
25595 * genkernsyms.sh.in: Removed.
25596 * genmk.rb: Removed.
25597 * gensymlist.sh.in: Removed.
25598 * mkinstalldirs: Removed.
25599 * boot: Moved ...
25600 * grub-core/boot: ... to here.
25601 * bus: Moved ...
25602 * grub-core/bus: ... to here.
25603 * commands: Moved ...
25604 * grub-core/commands: ... to here.
25605 * disk: Moved ...
25606 * grub-core/disk: ... to here.
25607 * efiemu: Moved ...
25608 * grub-core/efiemu: ... to here.
25609 * font: Moved ...
25610 * grub-core/font: ... to here.
25611 * fs: Moved ...
25612 * grub-core/fs: ... to here.
25613 * gencmdlist.sh: Moved ...
25614 * grub-core/gencmdlist.sh: ... to here.
25615 * genemuinit.sh: Moved ...
25616 * grub-core/genemuinit.sh: ... to here.
25617 * genemuinitheader.sh: Moved ...
25618 * grub-core/genemuinitheader.sh: ... to here.
25619 * genfslist.sh: Moved ...
25620 * grub-core/genfslist.sh: ... to here.
25621 * genhandlerlist.sh: Moved ...
25622 * grub-core/genhandlerlist.sh: ... to here.
25623 * genmoddep.awk: Moved ...
25624 * grub-core/genmoddep.awk: ... to here.
25625 * genmodsrc.sh: Moved ...
25626 * grub-core/genmodsrc.sh: ... to here.
25627 * genpartmaplist.sh: Moved ...
25628 * grub-core/genpartmaplist.sh: ... to here.
25629 * genparttoollist.sh: Moved ...
25630 * grub-core/genparttoollist.sh: ... to here.
25631 * genterminallist.sh: Moved ...
25632 * grub-core/genterminallist.sh: ... to here.
25633 * gentrigtables.c: Moved ...
25634 * grub-core/gentrigtables.c: ... to here.
25635 * genvideolist.sh: Moved ...
25636 * grub-core/genvideolist.sh: ... to here.
25637 * gettext: Moved ...
25638 * grub-core/gettext: ... to here.
25639 * gfxmenu: Moved ...
25640 * grub-core/gfxmenu: ... to here.
25641 * gnulib: Moved ...
25642 * grub-core/gnulib: ... to here.
25643 * hello: Moved ...
25644 * grub-core/hello: ... to here.
25645 * hook: Moved ...
25646 * grub-core/hook: ... to here.
25647 * io: Moved ...
25648 * grub-core/io: ... to here.
25649 * kern: Moved ...
25650 * grub-core/kern: ... to here.
25651 * lib: Moved ...
25652 * grub-core/lib: ... to here.
25653 * loader: Moved ...
25654 * grub-core/loader: ... to here.
25655 * mmap: Moved ...
25656 * grub-core/mmap: ... to here.
25657 * normal: Moved ...
25658 * grub-core/normal: ... to here.
25659 * partmap: Moved ...
25660 * grub-core/partmap: ... to here.
25661 * parttool: Moved ...
25662 * grub-core/parttool: ... to here.
25663 * script: Moved ...
25664 * grub-core/script: ... to here.
25665 * term: Moved ...
25666 * grub-core/term: ... to here
25667 * tests/example_functional_test.c: Moved ...
25668 * grub-core/tests/example_functional_test.c: ... to here.
25669 * tests/lib/functional_test.c: Moved ...
25670 * grub-core/tests/lib/functional_test.c: ... to here.
25671 * tests/lib/test.c: Moved ...
25672 * grub-core/tests/lib/test.c: ... to here.
25673 * video: Moved ...
25674 * grub-core/video: ... to here.
25675
645586e6
BC
256762010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25677
25678 Replace --enable-grub-emu-modules with grub-emu-lite.
25679
25680 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25681 cache.S.
25682
25683 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25684 * kern/emu/full.c: New file. For grub-emu specific initialization.
25685 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25686 * kern/emu/main.c: Call initialization function grub_emu_init.
25687
25688 * Makefile.in: Include grub-emu-lite in install.
25689 * commands/parttool.c: Use grub_no_autoload to differentiate
25690 between grub-emu and grub-emu-lite.
25691 * include/grub/misc.h: New variable grub_no_autoload.
25692
25693 * conf/any-emu.rmk: New rules for grub-emu-lite.
25694 * configure.ac: Remove --enable-grub-emu-modules.
25695 * genmk.rb: Cleanup unnecessary rules.
25696 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25697
25698 * normal/main.c: Don't load list files on grub-emu-lite.
25699 * util/misc.c (grub_arch_sync_caches): Removed.
25700
f86a4030
CW
257012010-08-23 Colin Watson <cjwatson@ubuntu.com>
25702
25703 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25704 grub-mkimage rather than grub-mkelfimage.
25705 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25706
06776944
VS
257072010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25708
25709 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25710 a key after CapsLock or NumLock. It's just a qemu bug.
25711
df262419
VS
257122010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25713
25714 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25715 needed by libusb wrapper.
25716
b40ea81b
ST
257172010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25718
25719 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25720
dee50575
VS
257212010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25722
25723 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25724 --nounzip is passed.
25725
fb1d7b79
VS
257262010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25727
25728 USB hotunplugging and USB serial support.
25729
25730 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25731 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25732 (grub_uhci_transfer): Respect timeout and set *actual.
25733 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25734 non-standard length.
25735 (grub_usb_device_attach): Autoload modules.
25736 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25737 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25738 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25739 users updated.
25740 (grub_usb_add_hub): Fill nports and children.
25741 (attach_root_port): Receive hub instead of controller.
25742 All users updated. Fill hub->devices.
25743 (grub_usb_root_hub): Allocate hub->devices.
25744 (detach_device): New function.
25745 (poll_nonroot_hub): Fill children and detach devices.
25746 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25747 actual arguments. All users updated.
25748 (grub_usb_bulk_read_extended): New function.
25749 * bus/usb/serial/common.c: New file.
25750 * bus/usb/serial/ftdi.c: Likewise.
25751 * bus/usb/serial/pl2303.c: Likewise.
25752 * commands/terminal.c (handle_command): Support wildcard.
25753 * commands/usbtest.c: Output "Unknown" instead of empty string.
25754 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25755 (usbserial_common_mod_SOURCES): New variable.
25756 (usbserial_common_mod_CFLAGS): Likewise.
25757 (usbserial_common_mod_LDFLAGS): Likewise.
25758 (pkglib_MODULES): Add usbserial_pl2303.mod.
25759 (usbserial_pl2303_mod_SOURCES): New variable.
25760 (usbserial_pl2303_mod_CFLAGS): Likewise.
25761 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25762 (pkglib_MODULES): Add usbserial_ftdi.mod.
25763 (usbserial_ftdi_mod_SOURCES): New variable.
25764 (usbserial_ftdi_mod_CFLAGS): Likewise.
25765 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25766 (pkglib_MODULES): Add serial.mod.
25767 (serial_mod_SOURCES): New variable.
25768 (serial_mod_CFLAGS): Likewise.
25769 (serial_mod_LDFLAGS): Likewise.
25770 * conf/i386-pc.rmk: Likewise.
25771 * conf/mips-yeeloong.rmk: Likewise.
25772 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25773 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25774 * disk/usbms.c (first_available_slot): New variable.
25775 (grub_usbms_attach): Don't reuse free slots due to potential cache
25776 problems.
25777 * include/grub/serial.h: Moved to ..
25778 * include/grub/ns8250.h: ...this.
25779 * include/grub/serial.h: New file.
25780 * include/grub/term.h (grub_term_poll_usb): New variable.
25781 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25782 readkey. All users updated.
25783 (grub_terminfo_output_state): Pass term to put.
25784 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25785 (grub_usb_controller_dev): Add timeout and actual arguments to
25786 transfer. All users updated.
25787 (grub_usb_interface): New field detach_data.
25788 (grub_usb_device): New fields children and nports.
25789 (grub_usb_ep_type_t): New type.
25790 (grub_usb_get_ep_type): New function.
25791 (grub_usb_bulk_read_extended): Likewise.
25792 * include/grub/usbdesc.h (grub_usb_desc): New type.
25793 * include/grub/usbserial.h: New file.
25794 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25795 * kern/term.c (grub_term_poll_usb): New variable.
25796 (grub_getkey): Call grub_term_poll_usb if set.
25797 (grub_checkkey): Likewise.
25798 (grub_getkeystatus): Likewise.
25799 * term/serial.c: Moved controller-specific parts to ...
25800 * term/ns8250.c: ... here.
25801 * term/serial.c: Mostly rewritten.
25802 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25803 according to spec.
25804
21a313de
RM
258052010-08-20 Robert Millan <rmh@gnu.org>
25806
25807 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25808 a separate module and maybe other interesting combinations.
25809
25810 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25811 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25812 (kfreebsd_entry): Add generic filesystem module load routine.
25813 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25814
63c734a6
CW
258152010-08-20 Colin Watson <cjwatson@ubuntu.com>
25816
25817 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25818 "numcenter" (I misunderstood the purpose of this entry).
25819 * docs/grub.texi (sendkey): Likewise.
25820
c4d16542
CW
258212010-08-20 Colin Watson <cjwatson@ubuntu.com>
25822
25823 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25824 status flag options; simply omitting the option is equivalent and
25825 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25826 (keysym_table): Rename "num5numlock" to "numlock".
25827 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25828 can uniformly say that only the last of multiple `sendkey'
25829 invocations has any effect.
25830 * docs/grub.texi (sendkey): New section.
25831
93541d66
CW
258322010-08-19 Colin Watson <cjwatson@ubuntu.com>
25833
25834 * commands/i386/pc/sendkey.c (options): Fix three typos.
25835
b4ece5e1
VS
258362010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25837
25838 Implement sendkey support.
25839
25840 * commands/i386/pc/sendkey.c: New file.
25841 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25842 (sendkey_mod_SOURCES): New variable.
25843 (sendkey_mod_CFLAGS): Likewise.
25844 (sendkey_mod_LDFLAGS): Likewise.
25845
51f1f5af
CW
258462010-08-18 Colin Watson <cjwatson@ubuntu.com>
25847
25848 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25849 fix warnings from Autoconf.
25850
9da94e05
CW
258512010-08-18 Colin Watson <cjwatson@ubuntu.com>
25852
25853 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25854 to avoid false positives with some assemblers that output things
25855 like "someprefix_func" as part of their output.
25856
729a0f2e
RM
258572010-08-15 Robert Millan <rmh@gnu.org>
25858
25859 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25860 errors.
25861 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25862 grub_get_libzfs_handle() errors.
25863
f3710e08
RM
258642010-08-14 Robert Millan <rmh@gnu.org>
25865
25866 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25867 filesystem is not ZFS.
25868
7a3c13de
BC
258692010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25870
25871 Fix for misspelled color names defaulting to black/black (bug
25872 reported by Doug Nazar)
25873
25874 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25875 status to prototype.
25876 * normal/color.c (grub_parse_color_name_pair): Return failure
25877 status.
25878 (grub_env_write_color_normal): Ignore bad color names.
25879 (grub_env_write_color_highlight): Likewise.
25880 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25881
ab8ba50d
BC
258822010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25883
25884 "shift" command support to GRUB script.
25885
25886 * include/grub/script_sh.h (grub_script_shift): New prototype.
25887 * script/execute.c (grub_script_shift): New function.
25888 * script/main.c (grub_script_init): Register shift command.
25889 (grub_script_fini): Unregister shift command.
25890 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25891
25892 * tests/grub_script_shift.in: New testcase.
25893 * conf/tests.rmk: Rules for new testcase.
25894
4d61999e
BC
258952010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25896
25897 "continue" command support to GRUB script.
25898
25899 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25900 (grub_script_break): Continue support.
25901 * script/main.c (grub_script_init): Register continue command.
25902 (grub_script_fini): Unregister continue command.
25903
25904 * tests/grub_script_continue.in: New testcase.
25905 * conf/tests.rmk: Rules for new testcase.
25906
4df51e00
BC
259072010-08-12 BVK Chaitanya <bvk@dbook>
25908
25909 "break" command support to GRUB script.
25910
25911 * conf/common.rmk: Rule updates to grub-script-check.
25912 * include/grub/misc.h (grub_min): New function.
25913 * include/grub/script_sh.h (grub_script_init): New prototype.
25914 (grub_script_fini): New prototype.
25915 (grub_script_break): New prototype.
25916 * script/main.c (grub_script_init): New function.
25917 (grub_script_fini): New function.
25918 * script/execute.c (grub_script_break): New function.
25919 * normal/main.c: Calls to grub_script_{init,fini}.
25920 * util/grub-script-check.c (grub_script_break): New function.
25921
25922 * tests/grub_script_break.in: New testcase.
25923 * conf/tests.rmk: Rules for new test case.
25924
f12c8420
BC
259252010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25926
25927 Function parameters support to GRUB script.
25928
25929 * script/yylex.l (VARIABLE): Regular expression update.
25930 * script/function.c (grub_script_function_call): Moved ...
25931 * script/execute.c (grub_script_function_call): ... to here.
25932 (grub_script_execute_arglist_to_argv): Removed.
25933 (grub_script_arglist_to_argv): New function.
25934 * script/argv.c: New file.
25935 (grub_script_argv_free): New function.
25936 (grub_script_argv_next): Likewise.
25937 (grub_script_argv_append): Likewise.
25938 (grub_script_argv_split_append): Likewise.
25939 * include/grub/script_sh.h (grub_script_argv): New struct.
25940 (grub_script_argv_free): New function.
25941 (grub_script_argv_next): Likewise.
25942 (grub_script_argv_append): Likewise.
25943 (grub_script_argv_split_append): Likewise.
25944
25945 * conf/common.rmk (normal.mod): New source script/argv.c.
25946
25947 * tests/grub_script_echo1.in: More tests.
25948 * tests/grub_script_vars1.in: Likewise.
25949 * tests/grub_script_functions.in: New test case.
25950 * conf/tests.rmk: Rules for new testcase.
25951
8022b748
BC
259522010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25953
25954 Remove grub_script_cmdblock struct.
25955
25956 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25957 * script/parser.y: Likewise.
25958 * script/execute.c: Rename cmdblock suffix to cmdlist.
25959 * script/script.c: Likewise.
25960 * util/grub-script-check.c: Likewise.
25961
79a6ba61
YB
259622010-08-11 Yves Blusseau <blusseau@zetam.org>
25963
25964 * .bzrignore: add grub-macho2img
25965
d04b9414
VS
259662010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25967
25968 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25969
f947ab49
VS
259702010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25971
25972 Remove the dump of sm712 initialisation sequence.
25973
25974 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25975 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25976 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25977 (GRUB_VGA_CR_*): Added many registers.
25978 (GRUB_VGA_SR_*): Likewise.
25979 (GRUB_VGA_GR_*): Likewise.
25980 (grub_vga_write_arx): New function.
25981 (grub_video_hw_config): New struct.
25982 (grub_vga_set_geometry): New function.
25983 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25984 GRUB_PCI_CLASS_SUBCLASS_VGA.
25985 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25986 * video/sm712.c (grub_sm712_write_reg): New function
25987 (grub_sm712_read_reg): Likewise.
25988 (grub_sm712_sr_write): Likewise.
25989 (grub_sm712_gr_write): Likewise.
25990 (grub_sm712_cr_write): Likewise.
25991 (grub_sm712_write_arx): Likewise.
25992 (grub_sm712_cr_shadow_write): Likewise.
25993 (grub_sm712_write_dda_lookup): Likewise.
25994 (grub_video_sm712_setup): Initialise the video rather then
25995 blindly replay the dump.
25996 (main) [TEST]: Add a routine to be able to compile as standalone for
25997 tests.
25998 * video/sm712_init.c (sm712_init): Removed.
25999 (sm712_sr_seq1): New array.
26000 (sm712_sr_seq2): Likewise.
26001
f0206638
VS
260022010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26003
26004 * include/grub/vga.h: Add missing grub/pci.h include.
26005
2764da3b
YB
260062010-08-10 Yves Blusseau <blusseau@zetam.org>
26007
26008 * util/grub-macho2img.c (main): fix typo
26009
cf0c775e
VS
260102010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26011
26012 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26013 (grub_vga_gr_read): Likewise.
26014 (grub_vga_cr_write): Likewise.
26015 (grub_vga_cr_read): Likewise.
26016 (grub_vga_sr_write): Likewise.
26017 (grub_vga_sr_read): Likewise.
26018 (grub_vga_palette_read): Likewise.
26019 (grub_vga_palette_write): Likewise.
26020 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26021 (grub_sm712_sr_read): New function.
26022 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26023 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26024
07f360e9
RM
260252010-08-09 Robert Millan <rmh@gnu.org>
26026
26027 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26028 out unused variables on non-ZFS build.
26029
346c2072
RM
260302010-08-08 Robert Millan <rmh@gnu.org>
26031
26032 Fix path generation for sub-filesystems in ZFS.
26033
26034 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26035 missing slash.
26036
71175420
RM
260372010-08-08 Robert Millan <rmh@gnu.org>
26038
26039 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26040
0d8286f3
RM
260412010-08-08 Robert Millan <rmh@gnu.org>
26042
26043 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26044 exist, issue a proper error message (rely on `ls' for translated
26045 strings).
26046
55dd2924
RM
260472010-08-08 Robert Millan <rmh@gnu.org>
26048
26049 Fix grub-probe invocation.
26050
26051 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26052
d3dd9e80
RM
260532010-08-04 Robert Millan <rmh@gnu.org>
26054
26055 * configure.ac: Remove checks for getfsstat() and getmntany().
26056 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26057 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26058 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26059 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26060 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26061 function.
26062 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26063 via find_mount_point_from_dir() and getfsstat() / getmntany().
26064
0de22aa9
RM
260652010-08-04 Robert Millan <rmh@gnu.org>
26066
26067 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26068 (grub_find_zpool_from_mount_point): Merge into ...
26069 (grub_find_zpool_from_dir): ... this.
26070 * kern/emu/misc.c: Likewise.
26071
26072 * kern/emu/misc.c
26073 (grub_make_system_path_relative_to_its_root): Replace
26074 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26075 with grub_find_zpool_from_dir().
26076 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26077
62858144
RM
260782010-08-04 Robert Millan <rmh@gnu.org>
26079
26080 Support OpenSolaris in ZFS device resolution.
26081
26082 * configure.ac: Check for getmntany().
26083 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26084 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26085 support.
26086
9dd6fd50
RM
260872010-08-03 Robert Millan <rmh@gnu.org>
26088
26089 Fix grub-emu build.
26090
26091 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26092 * include/grub/emu/misc.h: ... here.
26093
26094 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26095 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26096
26097 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26098 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26099 (grub_get_libzfs_handle): Move to ...
26100 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26101 (grub_get_libzfs_handle): ... here.
26102
c9f7ff97
BC
261032010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26104
26105 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26106 as command name case.
26107
a870a783
CW
261082010-08-02 Colin Watson <cjwatson@ubuntu.com>
26109
26110 * disk/raid.c (insert_array): Select unique numbers for named arrays
26111 as well, for use as keys in the disk cache.
26112
c7db243b
RM
261132010-08-01 Robert Millan <rmh@gnu.org>
26114
26115 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26116 kFreeBSD device name, except on ZFS where the filesystem label is
26117 used.
26118 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26119 `/boot/zfs/zpool.cache'.
26120 Set mountfrom kernel variable using ${kfreebsd_device}.
26121
f7abdefb
RM
261222010-08-01 Robert Millan <rmh@gnu.org>
26123
26124 Make it even harder to use uninitialized `libzfs_handle' (and
26125 make the interface a bit simpler).
26126
26127 * include/grub/util/misc.h (grub_util_init_libzfs)
26128 (libzfs_handle): Remove.
26129 (grub_get_libzfs_handle): New prototype.
26130
26131 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26132 attribute.
26133 (grub_util_init_libzfs): Remove.
26134 (grub_get_libzfs_handle): New function.
26135
26136 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26137 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26138 accessing `libzfs_handle' directly.
26139
c882acc0
RM
261402010-08-01 Robert Millan <rmh@gnu.org>
26141
26142 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26143 (grub_find_zpool_from_mount_point): New function prototypes.
26144
26145 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26146 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26147
26148 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26149 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26150 `static' attribute.
26151
26152 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26153 finding zpool from mount point into ...
26154 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26155
26156 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26157 requested path is part of a ZFS pool, use
26158 grub_find_zpool_from_mount_point() to detect its filesystem name,
26159 and generate a path with `/fsname@path' syntax.
26160
8bfe31d8
CW
261612010-08-01 Colin Watson <cjwatson@ubuntu.com>
26162
26163 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26164 (void) rather than () so that this is a proper prototype.
26165
553df63d
VS
261662010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26167
26168 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26169
8687cf07
VS
261702010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26171
26172 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26173 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26174
ea9be8ea
CW
261752010-08-01 Colin Watson <cjwatson@ubuntu.com>
26176
26177 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26178
6eea041a
CW
261792010-08-01 Colin Watson <cjwatson@ubuntu.com>
26180
26181 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26182
2cfb45df
CW
261832010-08-01 Colin Watson <cjwatson@ubuntu.com>
26184
26185 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26186 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26187 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26188 disable gfxpayload.
26189 (Shell-like scripting): Add real content.
26190 (Serial terminal): Suggest `terminal_input serial; terminal_output
26191 serial' rather than putting the two commands on separate lines,
26192 since console input will be inoperative after the first command.
26193 (menuentry): Document --class, --users, and --hotkey options.
26194 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26195 Vladimir Serbinenko).
26196
7decd202
VS
261972010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
261982010-08-01 Colin Watson <cjwatson@ubuntu.com>
26199
26200 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26201
c882acc0
RM
262022010-08-01 Robert Millan <rmh@gnu.org>
26203
26204 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26205 (grub_find_zpool_from_mount_point): New function prototypes.
26206
26207 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26208 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26209
26210 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26211 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26212 `static' attribute.
26213
26214 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26215 finding zpool from mount point into ...
26216 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26217
26218 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26219 requested path is part of a ZFS pool, use
26220 grub_find_zpool_from_mount_point() to detect its filesystem name,
26221 and generate a path with `/fsname@path' syntax.
26222
deb0caa3
RM
262232010-08-01 Robert Millan <rmh@gnu.org>
26224
26225 Prevent accidental use of uninitialized libzfs_handle.
26226
26227 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26228 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26229 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26230
ce04ef47
CW
262312010-08-01 Colin Watson <cjwatson@ubuntu.com>
26232
26233 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26234 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26235
ebf53056
RM
262362010-08-01 Robert Millan <rmh@gnu.org>
26237
26238 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 26239
3710bb6b
RM
262402010-07-31 Robert Millan <rmh@gnu.org>
26241
26242 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26243
8072efeb
RM
262442010-07-31 Robert Millan <rmh@gnu.org>
26245
26246 * kern/emu/misc.c: Add missing license header.
26247
3169f4c7
RM
262482010-07-31 Robert Millan <rmh@gnu.org>
26249
26250 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26251
26252 * include/grub/util/libnvpair.h: Include `<config.h>'.
26253 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26254 declaring libnvpair prototypes ourselves.
26255 * include/grub/util/libzfs.h: Include `<config.h>'.
26256 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26257 declaring libzfs prototypes ourselves.
26258
26259 (libzfs_handle): Moved to ...
26260 * include/grub/util/misc.h (libzfs_handle): ... here.
26261 Include `<grub/util/libzfs.h>'.
26262
c9a00aee
RM
262632010-07-30 Robert Millan <rmh@gnu.org>
26264
26265 * include/grub/emu/misc.h: Add missing license header.
26266
a184f9c8
RM
262672010-07-30 Robert Millan <rmh@gnu.org>
26268
26269 Enable `grub-probe -t device' resolution on ZFS.
26270
26271 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26272 * include/grub/util/libnvpair.h: New file.
26273 * include/grub/util/libzfs.h: New file.
26274
26275 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26276 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26277 `<grub/util/libnvpair.h>'.
26278 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26279
26280 (find_mount_point_from_dir): New static function.
26281 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26282 function.
26283 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26284 find_root_device_from_libzfs() before ressorting to find_root_device().
26285
26286 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26287 prototype.
26288 * util/misc.c: Include `<grub/util/libzfs.h>'.
26289 (grub_util_init_libzfs): New function.
26290 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26291 [HAVE_LIBZFS] (fini_libzfs): New static function.
26292 (grub_util_init_libzfs): New function.
26293 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26294
f7790cdd
RM
262952010-07-30 Robert Millan <rmh@gnu.org>
26296
26297 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26298 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26299 `warn_unused_result' attribute.
26300 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26301 (grub_xasprintf, grub_xvasprintf): Likewise.
26302 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26303
0806b63c
RM
263042010-07-29 Robert Millan <rmh@gnu.org>
26305
26306 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26307 (probe): Handle `PRINT_FS_LABEL'.
26308 (main): Handle `-t fs_label'.
26309
9f841f5c
RM
263102010-07-29 Robert Millan <rmh@gnu.org>
26311
26312 * configure.ac: Remove grub-mkisofs checks.
26313
46371121
VS
263142010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26315
26316 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26317 Reported by: Lennart Sorensen.
26318
263192010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26320
26321 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26322 prior to terminal_input/terminal_output separation. It's been over 1.5
26323 years and those versions weren't widely deployed.
26324
a9600892
CW
263252010-07-22 Colin Watson <cjwatson@ubuntu.com>
26326
26327 * disk/raid.c (insert_array): Don't count named arrays when looking
26328 for unused array numbers.
697e053c 26329 Reported and tested by: Michael Guntsche.
a9600892 26330
c03507df
CW
263312010-07-20 Colin Watson <cjwatson@ubuntu.com>
26332
26333 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26334 implementation of this so that grub-emu links again, with a note
26335 that this should support hotplugging in the future.
26336
b26f1c11
CW
263372010-07-20 Colin Watson <cjwatson@ubuntu.com>
26338
26339 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26340
efc9d7f1
CW
263412010-07-20 Colin Watson <cjwatson@ubuntu.com>
26342
26343 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26344 handle on failure.
26345 (grub_loopback_close): Remove empty function.
26346 (grub_loopback_dev): Remove close method.
26347
dd8ff5c9
CW
263482010-07-20 Colin Watson <cjwatson@ubuntu.com>
26349
26350 Disable EFI cursor when the EFI console becomes inactive.
26351
26352 * term/efi/console.c (grub_efi_console_init): New function.
26353 (grub_efi_console_fini): New function.
26354 (grub_console_term_output): Register init and fini methods.
26355
5e3bec67
VS
263562010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26357
26358 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26359 sh script.
26360
afaec079
VS
263612010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26362
26363 * disk/loopback.c (grub_loopback): Replace filename with file.
26364 (delete_loopback): Handle new semantics.
26365 (grub_cmd_loopback): Likewise.
26366 (grub_loopback_iterate): Likewise.
26367 (grub_loopback_close): Likewise.
26368
a6a11f3c
VS
263692010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26370
26371 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26372 with -p "".
26373 Reported by: Tito Keitel.
26374
64a638b0
VS
263752010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26376
26377 * docs/grub.texi (Naming convention): Document new naming convention.
26378
ab8ba957
VS
263792010-07-20 Vadim Solomin <vadic052@gmail.com>
263802010-07-20 Colin Watson <cjwatson@ubuntu.com>
26381
26382 Generate device.map in something closer to the old ordering.
26383
26384 * util/deviceiter.c (struct device): New declaration.
26385 (compare_file_names): Rename to ...
26386 (compare_devices): ... this. Sort by kernel name in preference to
26387 the stable by-id name, but keep the latter as a fallback comparison.
26388 Update header comment.
26389 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26390 of `struct device' rather than of plain file names.
26391
a29d6a4b
TF
263922010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26393
26394 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26395 on i386.
26396
39d824e8
VS
263972010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26398
26399 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26400 hardcoding size.
26401 (setv1table): Likewise.
26402
f058276b
FZ
264032010-07-20 Colin Watson <cjwatson@ubuntu.com>
26404
26405 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26406 removing the homehost if present.
26407 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26408 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26409 removing the homehost if present.
26410 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26411 if possible.
26412 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26413
26414 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26415 parameter. Set its pointer target to 0.
26416 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26417 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26418 `data_offset' value from the superblock for 1.x metadata.
26419 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26420 data on the device.
26421 (insert_array): Record the start sector of data on the device.
26422 (grub_raid_register): Pass start_sector parameters to
26423 grub_raid_list->detect and insert_array.
26424 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26425 member.
26426 (struct grub_raid): Add start_sector parameter to `detect'.
26427
26428 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26429 __attribute__ ((packed)), leaving a comment.
26430 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26431 (grub_mdraid_detect_09): ... here and ...
26432 (grub_mdraid_detect_1x): ... here.
26433
264342010-07-20 Peter Henn <peter.henn@web.de>
26435
26436 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26437 chunk size and disk size, which are already given as sector counts
26438 as distinct from the 0.90 units. Fetch the correct device number
26439 from the role table instead of using the table index.
26440
264412010-07-20 Felix Zielcke <fzielcke@z-51.de>
26442
26443 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26444 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26445 (WriteMostly1): New macro.
26446 Set array->name to NULL for metadata format 0.90. Add support for
26447 metadata 1.x. Fix some comments.
26448 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26449 few comments.
26450 * util/getroot.c (grub_util_get_grub_dev): Add support for
26451 /dev/md/name style devices.
26452
4b761da9
CW
264532010-07-20 Colin Watson <cjwatson@ubuntu.com>
26454
26455 * .bzrignore: Ignore 20_linux_xen.
26456
5771289a
CW
264572010-07-17 Colin Watson <cjwatson@ubuntu.com>
26458
26459 * util/import_unicode.py: Remove unnecessary imports.
26460
5dab68df
AN
264612010-07-17 Aleš Nesrsta <starous@volny.cz>
26462
26463 Hotplugging and USB hub support.
26464
26465 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26466 (grub_ohci): Likewise.
26467 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26468 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26469 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26470 (GRUB_OHCI_CTRL_EDS): Likewise.
26471 (GRUB_OHCI_BULK_EDS): Likewise.
26472 (GRUB_OHCI_TDS): Likewise.
26473 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26474 (grub_ohci_ed_phys2virt): New function.
26475 (grub_ohci_virt_to_phys): Likewise.
26476 (grub_ohci_td_phys2virt): Likewise.
26477 (grub_ohci_td_virt2phys): Likewise.
26478 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26479 attachment.
26480 (grub_ohci_find_ed): New function.
26481 (grub_ohci_alloc_td): Likewise.
26482 (grub_ohci_free_td): Likewise.
26483 (grub_ohci_free_tds): Likewise.
26484 (grub_ohci_transfer): Use previously allocated memory.
26485 (grub_ohci_portstatus): Reset status changed bit.
26486 (grub_ohci_detect_dev): Supply status changed.
26487 (grub_ohci_fini_hw): Free memory.
26488 (grub_ohci_restore_hw): Reallocate memory.
26489 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26490 Reset status change.
26491 (grub_uhci_detect_dev): Supply status_change.
26492 * bus/usb/usb.c (attach_hooks): New var.
26493 (grub_usb_device_attach): New function.
26494 (grub_usb_register_attach_hook_class): Likewise.
26495 (grub_usb_unregister_attach_hook_class): Likewise.
26496 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26497 (grub_usb_add_hub): Reset connection changed bit.
26498 (attach_root_port): New function.
26499 (grub_usb_root_hub): Likewise.
26500 (poll_nonroot_hub): Likewise.
26501 (grub_usb_poll_devices): Likewise.
26502 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26503 * disk/usbms.c (grub_usbms_open): Use device hooks.
26504 (grub_usbms_iterate) :Poll devices.
26505 (grub_usbms_finddevs): Split into ...
26506 (grub_usbms_attach): ... this ...
26507 (grub_usbms_attach): ... and this.
26508 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26509 in detect_dev.
26510 (grub_usb_interface): New fields attached and detach_hook.
26511 (grub_usb_attach_hook_class): New type.
26512 (grub_usb_attach_desc): New struct.
26513 (grub_usb_register_attach_hook_class): New function.
26514 (grub_usb_unregister_attach_hook_class): Likewise.
26515 (grub_usb_poll_devices): Likewise.
26516 (grub_usb_device_attach): Likewise.
26517 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26518 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26519
3222efaf
VS
265202010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26521
26522 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26523 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26524 delta determination style. Works with most NetBSD partitions too.
26525
139b714a
VS
265262010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26527
26528 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26529 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26530
986aad56
VS
265312010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26532
26533 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26534
99be513c
AB
265352010-07-14 Anton Blanchard <anton@samba.org>
26536
26537 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26538 ET_DYN files.
26539
18075f62
GS
265402010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26541
26542 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26543
8d9a5b15
GS
265442010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26545
26546 * kern/partition.c (grub_partition_check_containment): New function to
26547 check that a partition is physically contained in a parent. Since
26548 offsets are relative (and non-negative), this reduces to checking that
26549 the partition ends before its parent.
26550 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26551 (grub_partition_iterate): Likewise.
26552 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26553 comments.
26554 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26555 partitions that start before their parent, and add debug printfs.
26556
19563c25
CW
265572010-07-13 Colin Watson <cjwatson@ubuntu.com>
26558
26559 * Makefile.in (.SUFFIX): Spell correctly, as ...
26560 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26561 bare module name without `.mod', e.g. `test') tried to invoke a
26562 Modula-2 compiler.
26563
1a1f1e67
CW
265642010-07-13 Colin Watson <cjwatson@ubuntu.com>
26565
26566 * README: Point to the Info manual.
26567
811b0dca
JS
265682010-07-13 Jiro SEKIBA <jir@unicus.jp>
26569
26570 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26571 2nd superblock position from partition size.
26572
e4f4eafc
CW
265732010-07-10 Colin Watson <cjwatson@ubuntu.com>
26574
26575 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26576 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26577 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26578 outputs.
26579
4274c30f
VS
265802010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26581
26582 Restructure SCSI .id handling.
26583 Reported and tested by: Aleš Nesrsta.
26584
26585 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26586 (grub_atapi_dev): Changed .name to "ata". New field .id.
26587 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26588 (grub_usbms_dev): New field .id.
26589 * disk/scsi.c (grub_scsi_iterate): Generate name.
26590 (grub_scsi_open): Parse name.
26591 * include/grub/scsi.h (grub_make_scsi_id): New function.
26592 (grub_scsi_dev): Change iterate and open to number instead of naming
26593 busses. All users updated.
26594 (grub_scsi): Remove name. Add .bus.
26595
5bc24388
VS
265962010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26597
26598 * commands/help.c (grub_cmd_help): Fix a typo.
26599
249975ba
VS
266002010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26601
26602 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26603 Reported and tested by: Colin Watson.
26604
3eaac1a1
VS
266052010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26606
26607 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26608 in this context.
26609
becce1b1
VS
266102010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26611
26612 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26613
f7bf0918
CW
266142010-07-07 Colin Watson <cjwatson@ubuntu.com>
26615
26616 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26617 indentation.
26618
0b0f9620
CW
266192010-07-06 Colin Watson <cjwatson@ubuntu.com>
26620
26621 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26622 and disk/raid6_recover.c.
26623 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26624 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26625
1e545469
CW
266262010-07-06 Colin Watson <cjwatson@ubuntu.com>
26627
26628 * term/gfxterm.c (repaint_schedulded): Rename to ...
26629 (repaint_scheduled): ... this. Update all callers.
26630 (repaint_was_schedulded): Rename to ...
26631 (repaint_was_scheduled): ... this. Update all callers.
26632
5357687a
CW
266332010-07-06 Colin Watson <cjwatson@ubuntu.com>
26634
26635 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26636 which we expect to be handled by upper layers.
26637
29d7e783
BC
266382010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26639
26640 * bus/usb/usbhub.c: #include time.h header.
26641
37582066
CW
266422010-07-06 Colin Watson <cjwatson@ubuntu.com>
26643
26644 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26645 entry_name also for entries without stat blocks (e.g. ".."); fixes
26646 corruption of the first entry in a directory.
26647
c8c06953
CW
266482010-07-06 Colin Watson <cjwatson@ubuntu.com>
26649
26650 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26651 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26652 doesn't work otherwise.
26653
e75056f1
CW
266542010-07-05 Colin Watson <cjwatson@ubuntu.com>
26655
26656 * docs/grub.texi (Features): Update list of supported file systems.
26657 (GNU/Linux): Update for GRUB 2.
26658 (Serial terminal): Remove mention of --disable-serial, which was a
26659 GRUB Legacy configure option. Update instructions to use
26660 `terminal_input' and `terminal_output' rather than `terminal'.
26661 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26662 configuration' and `Installing GRUB using grub-install'.
26663 (Menu entry editor): Update for GRUB 2.
26664 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26665 Document new -a, -u, and -v options.
26666 (initrd): New section.
26667 (initrd16): New section.
26668 (linux): New section.
26669 (linux16): New section.
26670 (search): The `var' argument to `--set' is optional.
26671 (GRUB only offers a rescue shell): Go into a little more detail on
26672 drive ordering.
26673
5cf69151
CW
266742010-07-05 Colin Watson <cjwatson@ubuntu.com>
26675
26676 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26677
e3f90044
CW
266782010-07-05 Colin Watson <cjwatson@ubuntu.com>
26679
26680 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26681 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26682
38d8f4f3
CW
266832010-07-05 Colin Watson <cjwatson@ubuntu.com>
26684
26685 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26686 install_prefix, in line with install_dos_part and install_bsd_part.
26687 Add new prefix variable, which is copied to install_prefix after
26688 comparing core.img in memory with the one read from disk in the
26689 no-embedding case, and use that rather than overwriting
26690 install_prefix immediately when installing to a partition.
26691 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26692 Bicakci.
26693
57ebd41e
GS
266942010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26695
26696 * configure.ac: Avoid == in test command, it's not portable.
26697 * util/grub.d/30_os-prober.in: Likewise.
26698
cb7f64b2
CW
266992010-07-04 Colin Watson <cjwatson@ubuntu.com>
26700
26701 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26702
6b654bb0
GS
267032010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26704
26705 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26706 multiple (top-level) partmaps.
26707
72a2026d
VS
267082010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26709
26710 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 26711 Reported by: Tino Keitel.
72a2026d 26712
df3eb88f
VS
267132010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26714
26715 Bidi and diacritics support.
26716
26717 * Makefile.in (widthspec.bin): New target.
26718 (widthspec.h): Likewise.
26719 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26720 * autogen.sh: Generate unidata.c.
26721 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26722 * commands/ls.c (grub_ls_list_devices): Likewise.
26723 (grub_ls_list_files): Likewise.
26724 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26725 (grub_mini_cmd_lsmod): Likewise.
26726 * commands/read.c: Likewise.
26727 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26728 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26729 * lib/arg.c (grub_arg_show_help): Likewise.
26730 * lib/crypto.c (grub_password_get): Likewise.
26731 * normal/auth.c (grub_username_get): Likewise.
26732 * normal/misc.c (grub_normal_print_device_info): Likewise.
26733 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26734 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26735 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26736 (normal/charset.c_DEPENDENCIES): New variable.
26737 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26738 (pkglib_MODULES): Remove charset.mod.
26739 (charset_mod_SOURCES): Removed.
26740 (charset_mod_CFLAGS): Likewise.
26741 (charset_mod_LDFLAGS): Likewise.
26742 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26743 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26744 and term/tparm.c.
26745 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26746 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26747 (kernel_img_HEADERS): Add terminfo.h.
26748 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26749 Fill ->font. Reverse ascii bitmaps.
26750 (grub_font_get_xheight): New function.
26751 * font/font.c (grub_font_get_string_width): Moved from here ...
26752 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26753 * font/font.c (grub_font_draw_string): Moved from here ...
26754 * gfxmenu/font.c (grub_font_draw_string): ... here.
26755 * font/font.c (grub_font_dup_glyph): New function.
26756 (grub_font_blit_glyph): Likewise.
26757 (grub_font_blit_glyph_mirror): Likewise.
26758 (blit_comb): Likewise.
26759 (grub_font_construct_dry_run): Likewise.
26760 (grub_font_get_constructed_device_width): Likewise.
26761 (grub_font_construct_glyph): Likewise.
26762 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26763 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26764 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26765 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26766 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26767 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26768 (grub_font_get_xheight): New proto.
26769 (grub_font_get_constructed_device_width): Likewise.
26770 (grub_font_construct_glyph): Likewise.
26771 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26772 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26773 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26774 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26775 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26776 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26777 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26778 (grub_console_getcharwidth): Likewise.
26779 * include/grub/misc.h (grub_xputs): New proto.
26780 (grub_puts): Inlined.
26781 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26782 (grub_normal_get_line_counter): Removed.
26783 (grub_install_newline_hook): Likewise.
26784 (grub_normal_get_char_counter): New proto.
26785 (grub_normal_reset_more): Likewise.
26786 (grub_xputs_normal): Likewise.
26787 * include/grub/powerpc/ieee1275/console.h: Removed.
26788 * include/grub/sparc64/ieee1275/console.h: Likewise.
26789 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26790 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26791 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26792 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26793 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26794 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26795 (grub_term_input): Pass reference to self. All users updated.
26796 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26797 Pass reference to self. New fields normal_color, highlight_color and
26798 data. All users updated.
26799 (grub_putchar): Removed.
26800 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26801 (grub_unicode_estimate_width): New function.
26802 (grub_term_getcharwidth): Add defaults.
26803 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26804 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26805 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26806 (grub_cls): Remove EXPORT_FUNC.
26807 (grub_setcolorstate): Inline.
26808 (grub_newline_hook): Removed.
26809 * include/grub/terminfo.h: Rewritten. All users updated.
26810 * include/grub/unicode.h: New file.
26811 * include/grub/video.h (grub_video_signed_rect): New type.
26812 * kern/emu/console.c (grub_console_highlight_color): Removed.
26813 (grub_console_normal_color): Likewise.
26814 (grub_console_standard_color): Made static.
26815 (grub_ncurses_putchar): Remove mapping.
26816 (grub_ncurses_getcharwidth): Removed.
26817 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26818 (grub_ncurses_setcolor): Removed.
26819 (grub_ncurses_getcolor): Likewise.
26820 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26821 (grub_console_putchar): ... this.
26822 (grub_console_putchar): Handle argument difference.
26823 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26824 console_init_early and console_init_lately.
26825 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26826 * kern/misc.c (grub_puts): Removed.
26827 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26828 (grub_vsnprintf_real): Remove str = NULL support.
26829 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26830 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26831 * kern/term.c (grub_putcode): Renamed to ...
26832 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26833 (grub_putchar): Removed.
26834 (grub_xputs_dumb): New function.
26835 (grub_xputs): New variable.
26836 * lib/charset.c: Move from here ...
26837 * normal/charset.c: ... to here.
26838 (grub_ucs4_to_utf8): New function.
26839 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26840 (join_types): New variable.
26841 (unpack_join): New function.
26842 (bidi_types): New variable.
26843 (unpack_bidi): New function.
26844 (get_bidi_type): Likewise.
26845 (get_join_type): Likewise.
26846 (is_mirrored): Likewise.
26847 (grub_unicode_get_comb_type): Likewise.
26848 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26849 (is_type_after): Likewise.
26850 (grub_unicode_aglomerate_comb): Likewise.
26851 (bidi_line_wrap): Likewise.
26852 (grub_bidi_line_logical_to_visual): Likewise.
26853 (grub_bidi_logical_to_visual): Likewise.
26854 (grub_unicode_mirror_code): Likewise.
26855 (grub_unicode_shape_code): Likewise.
26856 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26857 Don't use grub_putchar.
26858 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26859 (grub_normal_reader_init): Likewise.
26860 (grub_xputs_saved): New variable.
26861 (GRUB_MOD_INIT): Set grub_xputs.
26862 (GRUB_MOD_FINI): Restore grub_xputs.
26863 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26864 (menu_init): Avoid printing gfxmenu error.
26865 (show_menu): Use grub_normal_get_char_counter.
26866 * normal/menu_entry.c (update_screen): Fix out-of-array.
26867 (complete): Avoid NULL dereferencing.
26868 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26869 * normal/menu_text.c (print_spaces): Removed.
26870 (grub_print_ucs4): Likewise.
26871 (grub_print_message_indented): Use grub_print_ucs4.
26872 (print_message): Use grub_putcode.
26873 (print_entry): Hanlde diacritics.
26874 * normal/term.c (term_state): New type.
26875 (grub_more_lines): Removed.
26876 (term_states): New variable.
26877 (grub_normal_line_counter): Renamed to ..
26878 (grub_normal_char_counter): ...this. All users updated.
26879 (grub_normal_get_line_counter): Renamed to ...
26880 (grub_normal_get_char_counter): ... this.
26881 (grub_normal_reset_more): New function.
26882 (process_newline): Removed.
26883 (print_more): New function.
26884 (grub_install_newline_hook): Removed.
26885 (map_code): New function.
26886 (grub_puts_terminal): Use grub_print_ucs4.
26887 (putglyph): New function.
26888 (putcode_real): Likewise.
26889 (grub_putcode): Use putcode_real.
26890 (get_maxwidth): New function.
26891 (get_startwidth): Likewise.
26892 (print_ucs4_terminal): Likewise.
26893 (find_term_state): Likewise.
26894 (put_glyphs_terminal): Likewise.
26895 (print_backlog): Likewise.
26896 (print_ucs4_real): Likewise.
26897 (grub_print_ucs4): Likewise.
26898 (grub_xputs_normal): Likewise.
26899 * term/efi/console.c (grub_console_putchar): Output diacritics.
26900 (grub_console_getcharwidth): Removed.
26901 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26902 * term/gfxterm.c (clear_char): Free chars.
26903 (scroll_up): Avoid leaking memory.
26904 (grub_gfxterm_putchar): Support diacritics.
26905 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26906 * term/i386/pc/console.c (grub_console_term_output): Declare as
26907 GRUB_TERM_CODE_TYPE_VGA.
26908 * term/i386/pc/vga.c (grub_vga_term): Declare as
26909 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26910 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26911 GRUB_TERM_CODE_TYPE_VGA.
26912 * term/i386/vga_common.c (map_char): Removed.
26913 (grub_console_putchar): Likewise.
26914 (grub_console_getcharwidth): Likewise.
26915 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26916 (colors): Reordered to match terminfo.
26917 (grub_ofconsole_normal_color): Removed.
26918 (grub_ofconsole_writeesc): Likewise.
26919 (grub_ofconsole_highlight_color): Likewise.
26920 (grub_ofconsole_getcharwidth): Likewise.
26921 (grub_ofconsole_setcolorstate): Likewise.
26922 (grub_ofconsole_setcolor): Likewise.
26923 (grub_ofconsole_getcolor): Likewise.
26924 (grub_ofconsole_readkey): Renamed to ...
26925 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26926 key.
26927 (grub_ofconsole_checkkey): Removed.
26928 (grub_ofconsole_getkey): Likewise.
26929 (grub_ofconsole_getxy): Likewise.
26930 (grub_ofconsole_gotoxy): Likewise.
26931 (grub_ofconsole_cls): Likewise.
26932 (grub_ofconsole_refresh): Likewise.
26933 (grub_ofconsole_terminfo_input): New struct.
26934 (grub_ofconsole_terminfo_output): Likewise.
26935 (grub_ofconsole_term_input): Use terminfo.
26936 (grub_ofconsole_term_output): Likewise.
26937 (grub_console_init): Split into ...
26938 (grub_console_init_early): ...this and ...
26939 (grub_console_init_lately): ...this. Use terminfo.
26940 (grub_ofconsole_putchar): Renamed to ...
26941 (put): ... this. Remove mapping.
26942 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26943 * term/serial.c: Simplify using terminfo.
26944 (xpos): Removed.
26945 (ypos): Likewise.
26946 (keep_track): Likewise.
26947 (registered): Likewise.
26948 (input_buf): Likewise.
26949 (npending): Likewise.
26950 (serial_translate_key_sequence): Likewise.
26951 (fill_input_buf): Likewise.
26952 (grub_serial_checkkey): Likewise.
26953 (grub_serial_getkey): Likewise.
26954 (grub_serial_getxy): Likewise.
26955 (grub_serial_gotoxy): Likewise.
26956 (grub_serial_putchar): Likewise.
26957 (grub_serial_cls): Likewise.
26958 (grub_serial_setcolorstate): Likewise.
26959 (grub_serial_setcursor): Likewise.
26960 (serial_hw_init): Use serial_hw_fetch.
26961 (grub_serial_terminfo_input): New variable.
26962 (grub_serial_terminfo_output): Likewise.
26963 (grub_serial_term_input): Use terminfo.
26964 (grub_serial_term_output): Likewise.
26965 * term/terminfo.c (putstr): Use put.
26966 (grub_terminfo_all_free): New function
26967 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26968 (grub_terminfo_output_register): New function.
26969 (grub_terminfo_output_unregister): Likewise.
26970 (grub_terminfo_getxy): Likewise.
26971 (grub_terminfo_readkey): Likewise.
26972 (grub_terminfo_checkkey): Likewise.
26973 (grub_terminfo_getkey): Likewise.
26974 (grub_terminfo_input_init): Likewise.
26975 (print_terminfo): Likewise.
26976 (grub_cmd_terminfo): Handle encoding.
26977 (grub_terminfo_gotoxy): Track position.
26978 (grub_terminfo_cls): Likewise.
26979 (grub_terminfo_putchar): Likewise.
26980 (grub_terminfo_setcolorstate): Handle colors
26981 (grub_terminfo_cursor_on): This ...
26982 (grub_terminfo_cursor_off): ... and this merged into ...
26983 (grub_terminfo_setcursor): ... this.
26984 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26985 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26986 * unicode/BidiMirroring.txt: Likewise.
26987 * unicode/UnicodeData.txt: Likewise.
26988 * unicode/COPYING: Likewise.
26989 * util/grub-editenv.c (grub_putchar): Removed.
26990 (grub_xputs_real): New function.
26991 (grub_xputs): New variable.
26992 * util/grub-fstest.c (grub_putchar): Removed.
26993 (grub_xputs_real): New function.
26994 (grub_xputs): New variable.
26995 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26996 (grub_xputs_real): New function.
26997 (grub_xputs): New variable.
26998 * util/grub-probe.c (grub_putchar): Removed.
26999 (grub_xputs_real): New function.
27000 (grub_xputs): New variable.
27001 * util/grub-script-check.c (grub_putchar): Removed.
27002 (grub_xputs_real): New function.
27003 (grub_xputs): New variable.
27004 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27005 (grub_xputs_real): New function.
27006 (grub_xputs): New variable.
27007 * util/import_unicode.py: New file.
27008 * util/grub-mkfont.c (ft_errmsgs): New array.
27009 (grub_glyph_info): Make bitmap a pointer.
27010 (file_formats): New type WIDTH_SPEC.
27011 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27012 (options): Add width-spec.
27013 (help): Likewise.
27014 (add_char): Renamed to ...
27015 (add_glyph): ... this.
27016 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27017 (glyph_replace): New type.
27018 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27019 (add_char): New function.
27020 (add_subst): Likewise.
27021 (process_cursive): Likewise.
27022 (add_font): Handle GSUB.
27023 (write_font_width_spec): New function.
27024 (main): Sort glyphs.
27025 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27026 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27027 * kern/term.c (grub_cls): Moved from here...
27028 * normal/term.c (grub_cls): ... here.
27029
50f0bcda
CW
270302010-07-02 Colin Watson <cjwatson@ubuntu.com>
27031
27032 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27033 suitable for using within the format argument of printf when
27034 converting grub_size_t.
27035 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27036 "x" to convert grub_size_t arguments.
27037
40372103
VS
270382010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27039
27040 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27041 too long captions.
27042 (list_get_minimal_size): Take selection box into account.
27043
942a10c7
VS
270442010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27045
27046 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27047 NULL font.
27048
2bdb2892
CW
270492010-07-02 Colin Watson <cjwatson@ubuntu.com>
27050
27051 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27052 devices when iterating over /dev/disk/by-id; they will be handled
27053 later if appropriate, which they aren't always (e.g. LVM).
27054
e03ed6c1
CW
270552010-07-02 Colin Watson <cjwatson@ubuntu.com>
27056
27057 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27058 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27059 fails.
27060 (grub_halt): Likewise.
27061 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27062 reset-all fails.
27063 (grub_halt): Don't return, even if all of shut-down, power-off, and
27064 poweroff fail.
27065
47695765
CW
270662010-07-02 Colin Watson <cjwatson@ubuntu.com>
27067
27068 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27069 arguments, not three.
27070
507736c8
CW
270712010-07-02 Colin Watson <cjwatson@ubuntu.com>
27072
27073 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27074 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27075 LVM-on-RAID is handled correctly.
27076
e3c8cd37
CW
270772010-07-02 Colin Watson <cjwatson@ubuntu.com>
27078
27079 * docs/grub.texi (Changes from GRUB Legacy): New section.
27080 (Future): Fix typo.
27081
8d4a2fec
CW
270822010-07-02 Colin Watson <cjwatson@ubuntu.com>
27083
27084 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27085 grub.d/README accidentally ends up executable for one reason or
27086 another. Ignore it.
27087
1c4827be
VS
270882010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27089
27090 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27091 (gpt_partition_map_iterate): Support non-512B sectors.
27092
d9a0c941
VS
270932010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27094
27095 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27096 Tested by: Seth Goldberg.
27097
48f27e87
VS
270982010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27099
27100 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27101 Properly align mbi.
27102 Reported by: Seth Goldberg.
27103
b0c4f956
VS
271042010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27105
27106 * util/grub-mkrescue.in: Avoid module duplication.
27107
105a2e8c
SF
271082010-07-01 Sean Finney <seanius@seanius.net>
27109
27110 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27111
5944958c
SF
271122010-07-01 Sean Finney <seanius@seanius.net>
27113
27114 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27115
271162010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27117
27118 * disk/lvm.c (grub_lvm_checkvalue): New function.
27119 (grub_lvm_check_flag): Likewise.
27120
b79889ba
RM
271212010-07-01 Robert Millan <rmh@gnu.org>
27122
27123 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27124 Support 'p' as partition separator on kernel of FreeBSD (used
27125 with GPT labels).
27126 (grub_util_biosdisk_get_grub_dev): Likewise.
27127
ec1d04f1
VS
271282010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27129
27130 Yeeloong firmware port.
27131
27132 * boot/mips/yeeloong/fwstart.S: New file.
27133 * bus/cs5536.c (gpiodump): New const.
27134 (set_io_space): New function.
27135 (set_iod): Likewise.
27136 (set_p2d): Likewise.
27137 (grub_cs5536_init_geode): Likewise.
27138 * commands/mips/yeeloong/lsspd.c: New file.
27139 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27140 (serial_mod_SOURCES): New variable.
27141 (serial_mod_CFLAGS): Likewise.
27142 (serial_mod_LDFLAGS): Likewise.
27143 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27144 term/terminfo.c and term/tparm.c.
27145 (pkglib_IMAGES): Add fwstart.img.
27146 (fwstart_img_SOURCES): New variable.
27147 (fwstart_img_CFLAGS): Likewise.
27148 (fwstart_img_ASFLAGS): Likewise.
27149 (fwstart_img_LDFLAGS): Likewise.
27150 (fwstart_img_FORMAT): Likewise.
27151 (pkglib_MODULES): Add lsspd.mod.
27152 (lsspd_mod_SOURCES): New variable.
27153 (lsspd_mod_CFLAGS): Likewise.
27154 (lsspd_mod_LDFLAGS): Likewise.
27155 (pkglib_MODULES): Add halt.mod.
27156 (halt_mod_SOURCES): New variable.
27157 (halt_mod_CFLAGS): Likewise.
27158 (halt_mod_LDFLAGS): Likewise.
27159 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27160 (serial_mod_SOURCES): Removed.
27161 (serial_mod_CFLAGS): Likewise.
27162 (serial_mod_LDFLAGS): Likewise.
27163 * disk/ata.c (check_device): New function.
27164 (grub_ata_device_initialize): Use check_device.
27165 (grub_ata_iterate): Recheck devices.
27166 (grub_ata_open): Likewise.
27167 (grub_atapi_iterate): Likewise.
27168 (grub_atapi_open): Likewise.
27169 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27170 (GRUB_ATA_CH1_PORT1): Likewise.
27171 (GRUB_ATA_CH0_PORT2): Likewise.
27172 (GRUB_ATA_CH1_PORT2): Likewise.
27173 * include/grub/mips/loongson.h: New file.
27174 * include/grub/mips/yeeloong/ec.h: Likewise.
27175 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27176 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27177 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27178 * include/grub/misc.h (grub_halt): Declare as noreturn.
27179 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27180 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27181 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27182 (UART_ENABLE_DTRRTS): Likewise.
27183 (UART_ENABLE_MODEM): Removed.
27184 (UART_ENABLE_OUT2): New const.
27185 * include/grub/term.h (grub_term_register_input_active): New function.
27186 (grub_term_register_output_active): Likewise.
27187 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27188 argument.
27189 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27190 (init_pci): New function.
27191 (grub_machine_init): Execute platform init when firmware. Init serial.
27192 (grub_halt): Implement.
27193 (grub_exit): Likewise.
27194 (grub_reboot): Likewise.
27195 * term/serial.c (serial_hw_init): Update macros.
27196 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27197 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27198 (image_targets): New target mipsel-yeeloong-flash.
27199 (generate_image): Support IMAGE_YEELOONG_FLASH.
27200 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27201 (grub_video_sm712_setup): Init card.
27202 (grub_video_sm712_set_palette): Removed.
27203 * video/sm712_init.c: New file.
27204
ff4a70d2
CW
272052010-06-30 Colin Watson <cjwatson@ubuntu.com>
27206
27207 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27208 PATH when running help2man and then run it on the unadorned
27209 executable names, rather than passing $(builddir)/* paths to
27210 help2man. This avoids the build directory ending up in generated
27211 manual pages.
27212
1246efeb
CW
272132010-06-29 Colin Watson <cjwatson@ubuntu.com>
27214
27215 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27216 to avoid accidents when debugging with 'sh -x'.
27217 * util/grub-mkrescue.in: Likewise.
27218 * util/grub.d/00_header.in: Likewise.
27219 * util/grub.d/10_hurd.in: Likewise.
27220 * util/grub.d/10_kfreebsd.in: Likewise.
27221 * util/grub.d/10_linux.in: Likewise.
27222 * util/grub.d/10_netbsd.in: Likewise.
27223 * util/grub.d/10_windows.in: Likewise.
27224 * util/grub.d/20_linux_xen.in: Likewise.
27225 * util/grub.d/30_os-prober.in: Likewise.
27226 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27227
1ba9b889
CW
272282010-06-29 Colin Watson <cjwatson@ubuntu.com>
27229
27230 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27231 last character in the buffer.
27232 Reported by: Vladimir Serbinenko.
27233
dccaf99d
RM
272342010-06-29 Robert Millan <rmh@gnu.org>
27235
27236 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27237 (Command-line and menu entry commands): Document `badram' command.
27238
d500ed12
RM
272392010-06-28 Robert Millan <rmh@gnu.org>
27240
27241 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27242 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27243 command using ${GRUB_BADRAM} as parameter.
27244
20bc84a6
CW
272452010-06-28 Colin Watson <cjwatson@ubuntu.com>
27246
27247 * docs/grub.texi (Device map): New section.
27248 (Themes): New section (stub).
27249 * Makefile.in (docs/grub.info): The info documentation now builds
27250 without errors. Make sure it stays that way.
27251
4045dee1
VS
272522010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27253
27254 Use normal parser for menu entries.
27255 Reported by: Thomas Frauendorfer
27256
27257 * include/grub/parser.h (grub_parser_execute): Don't export.
27258 * normal/menu.c (grub_menu_execute_entry_real): New function.
27259 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27260
bca58c7b
CW
272612010-06-28 Colin Watson <cjwatson@ubuntu.com>
27262
27263 * docs/grub.texi (Embedded configuration): New section (replacing
27264 old "Preset Menu" stub).
27265 (Images): New section.
27266 (configfile): Note that any menu entries defined in `file' are shown
27267 immediately.
27268
dec53e63
JT
272692010-06-28 Josh Triplett <josh@joshtriplett.org>
27270
27271 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27272
c06e40f7
CW
272732010-06-28 Colin Watson <cjwatson@ubuntu.com>
27274
27275 * util/grub-install.in: Add --debug-image= option.
27276
cb88052b
CW
272772010-06-28 Colin Watson <cjwatson@ubuntu.com>
27278
27279 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27280 possible on Linux.
27281
27282 * util/deviceiter.c (check_device): Rename to ...
27283 (check_device_readable_unique): ... this. Update all callers.
27284 Maintain and check a list of which devices (by canonicalized name)
27285 have already been seen.
27286 (clear_seen_devices): New function.
27287 (compare_file_names) [__linux__]: New function.
27288 (grub_util_iterate_devices): Clear the list of seen devices on exit
27289 and (just in case) on entry.
27290 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27291 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27292 seen-devices list, superseded by general code in check_device.
27293
bbe34652
CW
272942010-06-28 Colin Watson <cjwatson@ubuntu.com>
27295
27296 * commands/cat.c (options): New variable.
27297 (grub_cmd_cat): Parse options. If the --dos option is given, print
27298 DOS-style "\r\n" line endings as simple newlines (Debian bug
27299 #586358).
27300 (GRUB_MOD_INIT): Use extcmd.
27301 (GRUB_MOD_FINI): Likewise.
27302 * docs/grub.texi (cat): Document --dos.
27303
412e09f3
VS
273042010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27305
27306 XEN with Linux grub-mkconfig support.
27307
27308 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27309 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27310 GRUB_CMDLINE_XEN_DEFAULT.
27311 * util/grub.d/20_linux_xen.in: New file.
27312
53f3ef38 273132010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
27314
27315 Initialise VGA video on qemu ourselves.
27316
27317 * boot/i386/qemu/boot.S: Don't call 0xc000.
27318 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27319 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27320 (kernel_img_HEADERS): Add pci.h.
27321 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27322 * configure.ac: Force unifont on qemu and yeeloong.
27323 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27324 (grub_vga_palette_write): Use correct register.
27325 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27326 Call grub_qemu_init_cirrus.
27327 * kern/i386/qemu/init.c: New file.
27328 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27329
27330 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27331
c75be4fb
PR
273322010-06-26 Pavel Roskin <proski@gnu.org>
27333
27334 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27335 13.
27336
d8034603
CW
273372010-06-26 Colin Watson <cjwatson@ubuntu.com>
27338
27339 * docs/grub.texi (Simple configuration): Explain that
27340 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27341 set to `true' to disable their respective recovery entries, not
27342 merely set.
27343
3fa06487
CW
273442010-06-26 Colin Watson <cjwatson@ubuntu.com>
27345
27346 Make the `source' command slightly faster.
27347
27348 * normal/main.c (grub_normal_execute): Don't re-read list files when
27349 nested.
27350
e9b29642
CW
273512010-06-23 Colin Watson <cjwatson@ubuntu.com>
27352
27353 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27354 field position and mask size to red fields from mode_info, not
27355 green.
27356 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27357 Remove redundant tag->common.framebuffer_type assignment.
27358 Reported by: Seth Goldberg.
27359
e726542f
CW
273602010-06-23 Colin Watson <cjwatson@ubuntu.com>
27361
27362 Sync up other versions of the Linux loader with Robert Millan's
27363 change of 2010-01-09, "Make loader output a bit more user-friendly".
27364
27365 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27366 grub_dprintf().
27367 (grub_cmd_linux): Likewise.
27368 (grub_cmd_initrd): Likewise.
27369 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27370 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27371
d6e98a17
CW
273722010-06-21 Colin Watson <cjwatson@ubuntu.com>
27373
27374 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27375 larger than MEMORY_MAP_SIZE.
27376
14d3f08e
BC
273772010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27378
27379 Fix parallel build.
27380
27381 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27382 dependency.
27383 * script/parser.y: #include grub_script.tab.h header.
27384
4f9613a3
VS
273852010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27386
27387 Support >3GiB and <16MiB RAM in i386-qemu.
27388
27389 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27390 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27391 (grub_lower_mem): Removed.
27392 (grub_upper_mem): Likewise.
27393 (mem_size): Made static.
27394 (above_4g): New variable.
27395 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27396 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27397 support.
27398
05e51879
VS
273992010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27400
27401 Cirrus 5446 and Bochs video cards support.
27402
27403 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27404 video_bochs.mod
27405 (video_cirrus_mod_SOURCES): New variable.
27406 (video_cirrus_mod_CFLAGS): Likewise.
27407 (video_cirrus_mod_LDFLAGS): Likewise.
27408 (video_bochs_mod_SOURCES): Likewise.
27409 (video_bochs_mod_CFLAGS): Likewise.
27410 (video_bochs_mod_LDFLAGS): Likewise.
27411 * include/grub/vga.h: New file.
27412 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27413 (grub_video_fb_set_page_t): New type.
27414 (grub_video_fb_setup): New prototype.
27415 (grub_video_fb_swap_buffers): Likewise.
27416 (grub_video_fb_get_info_and_fini): Likewise.
27417 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27418 (CRTC_DATA_PORT): Likewise.
27419 (CRTC_CURSOR): Likewise.
27420 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27421 (CRTC_CURSOR_ADDR_LOW): Likewise.
27422 (CRTC_CURSOR_DISABLE): Likewise.
27423 (update_cursor): Use grub_vga_cr_write.
27424 (grub_vga_text_setcursor): Likewise.
27425 * video/bochs.c: New file.
27426 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27427 (palette): Likewise.
27428 (palette_size): Likewise.
27429 (framebuffer): New variable.
27430 (grub_video_fb_init): Use 'framebuffer'.
27431 (grub_video_fb_fini): Likewise.
27432 (grub_video_fb_get_info): Likewise.
27433 (grub_video_fb_get_palette): Likewise.
27434 (grub_video_fb_set_palette): Likewise.
27435 (grub_video_fb_set_viewport): Likewise.
27436 (grub_video_fb_get_viewport): Likewise.
27437 (grub_video_fb_map_color): Likewise.
27438 (grub_video_fb_map_rgb): Likewise.
27439 (grub_video_fb_map_rgba): Likewise.
27440 (grub_video_fb_unmap_color): Likewise.
27441 (grub_video_fb_unmap_color_int): Likewise.
27442 (grub_video_fb_fill_rect): Likewise.
27443 (grub_video_fb_blit_bitmap): Likewise.
27444 (grub_video_fb_blit_render_target): Likewise.
27445 (grub_video_fb_scroll): Likewise.
27446 (grub_video_fb_create_render_target): Likewise.
27447 (grub_video_fb_doublebuf_blit_init): Likewise.
27448 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27449 (doublebuf_pageflipping_update_screen): New function.
27450 (doublebuf_pageflipping_init): Likewise.
27451 (grub_video_fb_setup): Likewise.
27452 (grub_video_fb_swap_buffers): Likewise.
27453 (grub_video_fb_get_info_and_fini): Likewise.
27454 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27455 All users updated.
27456 (doublebuf_pageflipping_commit): Restructured into ...
27457 (doublebuf_pageflipping_set_page): ... this.
27458 (doublebuf_pageflipping_update_screen): Removed.
27459 (doublebuf_pageflipping_init): Likewise.
27460 (double_buffering_init): Likewise.
27461 (grub_video_vbe_setup): Use grub_video_fb_setup.
27462 (grub_video_vbe_swap_buffers): Removed.
27463 (grub_video_vbe_set_active_render_target): Likewise.
27464 (grub_video_vbe_get_active_render_target): Likewise.
27465 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27466 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27467 grub_video_fb_set_active_render_target and
27468 grub_video_fb_get_active_render_target.
27469 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27470 (SEQUENCER_DATA_PORT): Likewise.
27471 (MAP_MASK_REGISTER): Likewise.
27472 (CRTC_ADDR_PORT): Likewise.
27473 (CRTC_DATA_PORT): Likewise.
27474 (START_ADDR_HIGH_REGISTER): Likewise.
27475 (START_ADDR_LOW_REGISTER): Likewise.
27476 (GRAPHICS_ADDR_PORT): Likewise.
27477 (GRAPHICS_DATA_PORT): Likewise.
27478 (READ_MAP_REGISTER): Likewise.
27479 (INPUT_STATUS1_REGISTER): Likewise.
27480 (INPUT_STATUS1_VERTR_BIT): Likewise.
27481 (get_map_mask): Use grub_vga_sr_read.
27482 (set_map_mask): Use grub_vga_sr_write.
27483 (set_read_map): Use grub_vga_gr_write.
27484 (set_start_address): Use grub_vga_cr_write.
27485 * video/sm712.c (framebuffer): Remove leftover fields.
27486
4321c64a
CW
274872010-06-20 Colin Watson <cjwatson@ubuntu.com>
27488
27489 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27490 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27491 instead. Replace the gfxterm backend check with a check that
27492 ${GRUB_PREFIX}/video.lst is non-empty.
27493 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27494 again.
27495 (load_video): New generated function. Call it before loading
27496 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27497 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27498 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27499 * docs/grub.texi (Simple configuration): Document
27500 GRUB_VIDEO_BACKEND.
27501
275022010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27503
27504 Use video functions in linux and xnu loaders.
27505
27506 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27507 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27508 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27509 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27510 loader/i386/pc/linux.c.
27511 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27512 (find_line_len): Removed.
27513 (find_framebuf): Likewise.
27514 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27515 * loader/i386/efi/xnu.c: Removed.
27516 * loader/i386/pc/xnu.c: Moved from here...
27517 * loader/i386/xnu.c: ...here.
27518
27519 Enable priorities in video drivers.
27520
27521 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27522 (grub_video_adapter): New field prio.
27523 (grub_video_register): Respect prio when inserting.
27524 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27525 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27526 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27527 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27528 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27529 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27530 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27531
27532 Fix SDL driver ID.
27533
27534 * include/grub/video.h (grub_video_driver_id_t): New value
27535 GRUB_VIDEO_DRIVER_SDL.
27536 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27537
7d24e434
CW
275382010-06-17 Colin Watson <cjwatson@ubuntu.com>
27539
27540 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27541 argument to printf.
27542 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27543
c88a83f6
CW
275442010-06-17 Colin Watson <cjwatson@ubuntu.com>
27545
27546 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27547 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27548
094dfb69
CW
275492010-06-17 Colin Watson <cjwatson@ubuntu.com>
27550
27551 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27552 directly, and recommend grub-install instead.
27553 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27554
2164da6b
CW
275552010-06-17 Colin Watson <cjwatson@ubuntu.com>
27556
27557 Fix i386-pc prefix handling with nested partitions (Debian bug
27558 #585068). Note that the case where the core image is booted using
27559 multiboot and relocated from its original location still requires
27560 more work.
27561
27562 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27563 with "(,", fill the boot drive in between those two characters, but
27564 expect that a full partition specification including partition map
27565 names will follow.
27566 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27567 specified, write a prefix without the drive name but including a
27568 full partition specification.
27569
044e2e60
CW
275702010-06-16 Colin Watson <cjwatson@ubuntu.com>
27571
27572 * util/grub-mkconfig.in: Ignore non-option arguments, for
27573 compatibility with older versions (before 2010-06-12) which did the
27574 same. In particular, this makes it easier to ship an update-grub
27575 wrapper which is compatible with that used with GRUB Legacy (Debian
27576 bug #586056).
27577
5591324f
GS
275782010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27579
27580 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27581 for manual page generation.
27582
662e24d5
GS
275832010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27584
27585 * po/POTFILES: Remove leftover commands/handler.c.
27586
8d70754e
CW
275872010-06-14 Colin Watson <cjwatson@ubuntu.com>
27588
27589 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27590 left this script non-functional.
27591
41160e2e
CW
275922010-06-14 Colin Watson <cjwatson@ubuntu.com>
27593
27594 * docs/man/grub-emu.h2m: New file.
27595
b5309cc1
CW
275962010-06-13 Colin Watson <cjwatson@ubuntu.com>
27597
27598 * docs/grub.texi (Commands): Document reduced command set in rescue
27599 mode.
27600 (cpuid): New section.
27601
fcb2d090
GS
276022010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27603
27604 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27605 new partition naming style.
27606 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27607
96e5c556
BC
276082010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27609
27610 Add "-o grub.iso" like cmdline options support.
27611
27612 * util/grub-install.in: Improve cmdline option parsing.
27613 * util/grub-mkconfig.in: Likewise.
27614 * util/grub-mkrescue.in: Likewise.
27615 * util/grub-reboot.in: Likewise.
27616 * util/grub-set-default.in: Likewise.
27617 * util/i386/efi/grub-install.in: Likewise.
27618 * util/ieee1275/grub-install.in: Likewise.
27619 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27620
c16be99b
CW
276212010-06-12 Colin Watson <cjwatson@ubuntu.com>
27622
27623 * .bzrignore: Ignore 41_custom.
27624
ce08a9fb
TS
276252010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27626
27627 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27628
7beac90c
CW
276292010-06-12 Colin Watson <cjwatson@ubuntu.com>
27630
27631 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27632 prototype declarations.
27633
27634 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27635 generating fs, partmap, and video lists.
27636 * include/grub/fs.h (grub_fs_register): Omit prototype if
27637 GRUB_LST_GENERATOR is defined.
27638 * include/grub/partition.h (grub_partition_map_register): Likewise.
27639 * include/grub/video.h (grub_video_register): Likewise.
27640
1c8f0f8d
JM
276412010-06-12 Javier Martín <lordhabbit@gmail.com>
27642
27643 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27644
a6085973
TS
276452010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27646
27647 * util/grub-mkrescue.in: Support --xorriso argument.
27648
25c56d29
VS
276492010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27650
27651 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27652 Suggested by: Thomas Schmitt.
27653
e03e4b24
VS
276542010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27655
27656 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27657 Suggested by: Thomas Schmitt.
27658
57711df6
VS
276592010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27660
27661 custom.cfg support.
27662
27663 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27664 * util/grub.d/41_custom.in: New file.
27665
ee62c427
CW
276662010-06-12 Colin Watson <cjwatson@ubuntu.com>
27667
27668 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27669 been merged back into normal.
27670
283af07a
CW
276712010-06-11 Colin Watson <cjwatson@ubuntu.com>
27672
27673 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27674 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27675
56a0d956
CW
276762010-06-11 Colin Watson <cjwatson@ubuntu.com>
27677
27678 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27679 when generating manual pages.
27680 * docs/man/grub-bin2h.h2m: New file.
27681 * docs/man/grub-editenv.h2m: New file.
27682 * docs/man/grub-fstest.h2m: New file.
27683 * docs/man/grub-install.h2m: New file.
27684 * docs/man/grub-macho2img.h2m: New file.
27685 * docs/man/grub-mkconfig.h2m: New file.
27686 * docs/man/grub-mkdevicemap.h2m: New file.
27687 * docs/man/grub-mkfont.h2m: New file.
27688 * docs/man/grub-mkimage.h2m: New file.
27689 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27690 * docs/man/grub-mkrelpath.h2m: New file.
27691 * docs/man/grub-mkrescue.h2m: New file.
27692 * docs/man/grub-ofpathname.h2m: New file.
27693 * docs/man/grub-pe2elf.h2m: New file.
27694 * docs/man/grub-probe.h2m: New file.
27695 * docs/man/grub-reboot.h2m: New file.
27696 * docs/man/grub-script-check.h2m: New file.
27697 * docs/man/grub-set-default.h2m: New file.
27698 * docs/man/grub-setup.h2m: New file.
27699
3a37e322
VS
277002010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27701
27702 Use FOR_* macros instead of *_iterate whenever possible.
27703
27704 * commands/handler.c: Removed.
27705 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27706 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27707 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27708 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27709 (grub_probe_SOURCES): Remove kern/parser.c.
27710 (util/grub-script-check.c_DEPENDENCIES): Removed.
27711 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27712 and grub_script_check_init.c.
27713 (grub_script_check_init.lst): Removed.
27714 (grub_script_check_init.h): Likewise.
27715 (grub_script_check_init.c): Likewise.
27716 (pkglib_MODULES): Remove handler.mod and sh.mod.
27717 (handler_mod_SOURCES): Removed.
27718 (handler_mod_CFLAGS): Likewise.
27719 (handler_mod_LDFLAGS): Likewise.
27720 (normal_mod_SOURCES): Remove normal/handler.c.
27721 Add script/main.c, script/script.c, script/execute.c,
27722 script/function.c, script/lexer.c, grub_script.tab.c
27723 and grub_script.yy.c.
27724 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27725 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27726 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27727 (grub_setup_SOURCES): Remove kern/parser.c.
27728 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27729 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27730 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27731 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27732 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27733 (grub_setup_SOURCES): Remove kern/parser.c.
27734 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27735 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27736 * include/grub/command.h (grub_command_iterate): Removed.
27737 (FOR_COMMANDS): New macro.
27738 * include/grub/dl.h (grub_dl): New member next.
27739 (grub_dl_iterate): Removed.
27740 (grub_dl_head): New variable declaration.
27741 (FOR_DL_MODULES): New macro.
27742 * include/grub/fs.h: Include list.h.
27743 (grub_fs): Make next first element.
27744 (grub_fs_list): New variable declaration.
27745 (grub_fs_register): Make inline.
27746 (grub_fs_unregister): Likewise.
27747 (grub_fs_iterate): Removed.
27748 (FOR_FILESYSTEMS): New macro.
27749 * include/grub/handler.h: Removed.
27750 * include/grub/list.h (grub_list_hook_t): Removed.
27751 (grub_list_test_t): Likewise.
27752 (grub_list_pop): Likewise.
27753 (grub_list_iterate): Likewise.
27754 (grub_list_insert): Likewise.
27755 (FOR_LIST_ELEMENTS): New macro.
27756 * include/grub/parser.h (grub_parser_class): Removed.
27757 (grub_parser_register): Likewise.
27758 (grub_parser_unregister): Likewise.
27759 (grub_parser_get_current): Likewise.
27760 (grub_parser_set_current): Likewise.
27761 (grub_register_rescue_parser): Likewise.
27762 (grub_rescue_parse_line): New function.
27763 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27764 * include/grub/script_sh.h (grub_script_function_list): New variable
27765 declaration.
27766 (FOR_SCRIPT_FUNCTIONS): New macro.
27767 (grub_script_function_iterate): Removed.
27768 (grub_normal_parse_line): New prototype.
27769 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27770 (FOR_DISABLED_TERM_INPUTS): Likewise.
27771 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27772 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27773 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27774 element.
27775 (grub_video_register): Inline.
27776 (grub_video_unregister): Likewise.
27777 (grub_video_adapter_list): New variable declaration.
27778 (grub_video_iterate): Removed.
27779 (FOR_VIDEO_ADAPTERS): New macro.
27780 * kern/dl.c (grub_dl_list): Removed. All users updated.
27781 (grub_dl_iterate): Removed.
27782 * kern/fs.c (grub_fs_list): Make global.
27783 (grub_fs_register): Removed.
27784 (grub_fs_unregister): Likewise.
27785 (grub_fs_iterate): Likewise.
27786 * kern/handler.c: Removed.
27787 * kern/list.c (grub_list_pop): Removed.
27788 (grub_list_iterate): Likewise.
27789 (grub_list_insert): Likewise.
27790 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27791 (grub_prio_list_insert): Don't use grub_list_insert.
27792 * kern/main.c (grub_register_rescue_parser): Don't call
27793 grub_register_rescue_parser.
27794 * kern/parser.c (grub_parser_class): Removed.
27795 (grub_parser_execute): Use grub_rescue_parse_line.
27796 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27797 (grub_rescue_parser): Removed.
27798 (grub_register_rescue_parser): Likewise.
27799 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27800 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27801 (grub_auth_check_authentication): Likewise.
27802 * normal/completion.c (iterate_command): Removed.
27803 (grub_normal_do_completion): Use FOR_COMMANDS.
27804 * normal/handler.c: Removed.
27805 * normal/main.c (read_config_file): Remove parser changing.
27806 (grub_normal_execute): Don't call read_handler_list.
27807 (grub_normal_read_line_real): Statically allocate prompt.
27808 (grub_cmdline_run): Use grub_normal_parse_line.
27809 (GRUB_MOD_FINI): Don't call free_handler_list.
27810 * normal/menu_entry.c (run): Likewise.
27811 * script/function.c (grub_script_function_list): Make global.
27812 (grub_script_function_iterate): Removed.
27813 * script/main.c (grub_normal_parse_line): Make global.
27814 (grub_sh_parser): Removed.
27815 (GRUB_MOD_INIT): Likewise.
27816 (GRUB_MOD_FINI): Likewise.
27817 * tests/lib/functional_test.c (grub_functional_test): Use
27818 FOR_LIST_ELEMENTS.
27819 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27820 (grub_test_run): Use FOR_LIST_ELEMENTS.
27821 * tests/lib/unit_test.c (main): Likewise.
27822 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27823 grub_list_pop.
27824 * util/grub-fstest.c (grub_term_input_class): Removed.
27825 (grub_term_output_class): Likewise.
27826 * util/grub-probe.c: Likewise.
27827 * util/i386/pc/grub-setup.c: Likewise.
27828 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27829 * util/grub-script-check.c (main): Don't call grub_init_all and
27830 grub_fini_all.
27831 * video/video.c (grub_video_adapter_list): Make global.
27832 (grub_video_register): Removed.
27833 (grub_video_unregister): Likewise.
27834 (grub_video_iterate): Likewise.
27835
6289c3a7
VS
278362010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27837
27838 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27839 reported by Henrique Ferreiro.
27840
91460247
RM
278412010-06-09 Robert Millan <rmh@gnu.org>
27842
27843 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27844 ones, when both are available.
27845
0ea7c4f9
GS
278462010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27847
27848 Make --version uniform and avoid hard-coded program name.
27849
27850 * util/grub-mkimage.c (main): Use `program_name' instead of
27851 hard-coded string.
27852 * util/i386/pc/grub-setup.c (main): Likewise.
27853 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27854 * util/grub-install.in: Save the basename of $0 in $self, and use the
27855 latter in informational messages. Use the same format for --version
27856 as the binary programs.
27857 * util/grub-mkconfig.in: Likewise.
27858 * util/grub-mkrescue.in: Likewise.
27859 * util/grub-reboot.in: Likewise.
27860 * util/grub-set-default.in: Likewise.
27861 * util/i386/efi/grub-install.in: Likewise.
27862 * util/ieee1275/grub-install.in: Likewise.
27863 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27864
e8a6f3b6
GS
278652010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27866
27867 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27868 embedding area. Use <= instead of == when checking for non-emptiness.
27869
f4d095d7
GS
278702010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27871
27872 * configure.ac: Add `.' to the directories searched for unifont.
27873
50e532ca
CW
278742010-06-08 Colin Watson <cjwatson@ubuntu.com>
27875
27876 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27877 grub_script.yy.h.
27878
d39f3dec
CW
278792010-06-08 Colin Watson <cjwatson@ubuntu.com>
27880
27881 * docs/grub.texi (History): Expand to cover GRUB 2.
27882 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27883 commands, not `terminal'.
27884 (serial): Likewise.
27885 (terminal_input): New section.
27886 (terminal_output): New section.
27887 (uppermem): New section (stub).
27888 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27889
6ef0ddb4
CW
278902010-06-08 Colin Watson <cjwatson@ubuntu.com>
27891
27892 * docs/grub.texi (Security): Menu entries are unrestricted by
27893 default, not restricted to superusers as I had previously thought.
27894 Reword to account for this.
27895
e0f4c438
CW
278962010-06-07 Colin Watson <cjwatson@ubuntu.com>
27897
27898 * kern/emu/misc.c (device_mapper_null_log): New function.
27899 (grub_device_mapper_supported): New function.
27900 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27901 prototype.
27902 * kern/emu/hostdisk.c (find_partition_start): Check whether
27903 device-mapper is supported before trying to use it.
27904 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27905
da908200
CW
279062010-06-07 Colin Watson <cjwatson@ubuntu.com>
27907
27908 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27909 (File name syntax): Likewise.
27910 (help): --all is no longer supported in GRUB 2. Be more precise
27911 about pattern matching.
27912
fb55c3ac
CW
279132010-06-07 Colin Watson <cjwatson@ubuntu.com>
27914
27915 * normal/completion.c (grub_normal_do_completion): When completing
27916 arguments to "set" and the current word contains an equals sign,
27917 skip to after the equals sign before starting completion.
27918
258c2573
CW
279192010-06-07 Colin Watson <cjwatson@ubuntu.com>
27920
27921 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27922
ee75515e
CW
279232010-06-07 Colin Watson <cjwatson@ubuntu.com>
27924
27925 * docs/grub.texi (Network): New section.
27926 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27927 `(nd)' as in GRUB Legacy.
27928 (pxe_unload): New section.
27929
a6a700aa
CW
279302010-06-07 Colin Watson <cjwatson@ubuntu.com>
27931
27932 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27933 in the rescue shell, so recommend using `set' instead. Thanks,
27934 Jordan Uggla.
27935
4003dd38
CW
279362010-06-07 Colin Watson <cjwatson@ubuntu.com>
27937
27938 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27939 (password): New section.
27940 (password_pbkdf2): New section.
27941 (search): New section.
27942 (Security): New section.
27943 (Troubleshooting): New section, currently very incomplete.
27944 (Invoking grub-mkpasswd-pbkdf2): New section.
27945 (Internals): New section, currently very incomplete.
27946
e1cbcc40
CW
279472010-06-07 Colin Watson <cjwatson@ubuntu.com>
27948
27949 * util/grub.d/00_header.in: Add some more quoting (of
27950 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27951 work again.
27952 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27953
db8fa1ad
CW
279542010-06-07 Colin Watson <cjwatson@ubuntu.com>
27955
27956 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27957 to `count', fixing variable shadowing that broke the -c option.
27958
279592010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
27960
27961 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27962 in case they contain spaces.
27963
f28a9212
CW
279642010-06-04 Colin Watson <cjwatson@ubuntu.com>
27965
27966 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27967 "part_" to partmap module names, in line with grub-install.
27968 Reported by: Jindřich Makovička (Debian bug #584426).
27969
9cdfe32f
CW
279702010-06-04 Colin Watson <cjwatson@ubuntu.com>
27971
27972 * util/grub-mkimage.c: Make target-related error messages slightly
27973 more helpful; -O talks about "format". Explicitly point to the use
27974 of -O if no target is specified.
27975 Reported by: Didier Raboud (Debian bug #584415).
27976
795b593a
CW
279772010-06-03 Colin Watson <cjwatson@ubuntu.com>
27978
27979 * INSTALL: Document several build requirements for optional features
27980 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27981
9d9b5833
GS
279822010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27983
27984 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27985 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27986 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27987
0819fec8
CW
279882010-06-02 Colin Watson <cjwatson@ubuntu.com>
27989
27990 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27991 Thanks to Jordan Uggla for spotting this.
27992
49396b4f
VS
279932010-06-02 Aleš Nesrsta <starous@volny.cz>
27994
27995 Finally make USB usable.
27996
27997 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27998 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27999 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28000 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28001 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28002 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28003 (GRUB_OHCI_FSMPS): Likewise.
28004 (GRUB_OHCI_PERIODIC_START): Likewise.
28005 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28006 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28007 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28008 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28009 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28010 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28011 (grub_ohci_transaction): Likewise.
28012 (grub_ohci_transfer): Improve condition detection algorithms.
28013 Handle toggle property. Program the transactions correctly.
28014 Improve error handling. Various important fixups.
28015 (grub_ohci_portstatus): Put register writes in right order.
28016 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28017 (grub_uhci_transfer): Don't show "failed" message on success.
28018 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28019 array.
28020 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28021 determine its size.
28022 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28023 before initialization is completed. Use IN direction for empty
28024 transfers. Use last_trans and compute toggle.
28025 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28026 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28027 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28028 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28029 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28030 (grub_usb_device): Increase toggle to 256.
28031 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28032 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28033 GRUB_USBMS_SUBCLASS_SFF8070.
28034 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28035 (grub_scsi_inquiry): New member page and alloc_length.
28036 (grub_scsi_request_sense): New structure.
28037 (grub_scsi_request_sense_data): Likewise.
28038 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28039 control.
28040 * disk/scsi.c (grub_scsi_request_sense): New function.
28041 (grub_scsi_test_unit_ready): Likewise.
28042 (grub_scsi_inquiry): Fill new fields.
28043 (grub_scsi_read_capacity): Likewise.
28044 (grub_scsi_read10): Add request sense at the end.
28045 (grub_scsi_read12): Likewise.
28046 (grub_scsi_write10): Likewise.
28047 (grub_scsi_write12): Likewise.
28048 (grub_scsi_open): Add Test Unit Ready.
28049 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28050 Support additional subclasses. Con't clear halt yet. Activate the
28051 proper config. Calculate LUNs correctly.
28052 (grub_usbms_transfer): Various important fixups.
28053
280542010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28055
28056 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28057 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28058 (grub_ohci_fini_hw): New function.
28059 (grub_ohci_restore_hw): Likewise.
28060 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28061 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28062 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28063
280642010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28065
28066 Dedicated DMA allocations.
28067
28068 * bus/pci.c (grub_memalign_dma32): New function
28069 (grub_dma_free): Likewise.
28070 (grub_dma_get_virt): Likewise.
28071 (grub_dma_get_phys): Likewise.
28072 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28073 (grub_ohci_pci_iter): Use dma32_alloc.
28074 (grub_ohci_transfer): Likewise.
28075 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28076 (grub_usb_bulk_readwrite): Likewise.
28077 * include/grub/pci.h: Add declarations.
28078
280792010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28080
28081 CS5536 support.
28082
28083 * bus/cs5536.c: New file.
28084 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28085 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28086 (cs5536_mod_SOURCES): New variable.
28087 (cs5536_mod_CFLAGS): Likewise.
28088 (cs5536_mod_LDFLAGS): Likewise.
28089 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28090 machine/pci.h.
28091 (kernel_img_SOURCES): Add bus/cs5536.c.
28092 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28093 usb_keyboard.mod.
28094 (usb_mod_SOURCES): New variable.
28095 (usb_mod_CFLAGS): New variable.
28096 (usb_mod_LDFLAGS): New variable.
28097 (usbtest_mod_SOURCES): New variable.
28098 (usbtest_mod_CFLAGS): New variable.
28099 (usbtest_mod_LDFLAGS): New variable.
28100 (ohci_mod_SOURCES): New variable.
28101 (ohci_mod_CFLAGS): New variable.
28102 (ohci_mod_LDFLAGS): New variable.
28103 (usbms_mod_SOURCES): New variable.
28104 (usbms_mod_CFLAGS): New variable.
28105 (usbms_mod_LDFLAGS): New variable.
28106 (usb_keyboard_mod_SOURCES): New variable.
28107 (usb_keyboard_mod_CFLAGS): New variable.
28108 (usb_keyboard_mod_LDFLAGS): New variable.
28109 * include/grub/smbus.h: New file.
28110 * include/grub/cs5536.h: New file.
28111
0b35b2a9
CW
281122010-06-02 Colin Watson <cjwatson@ubuntu.com>
28113
28114 * util/grub.d/00_header.in: Add safety check to make sure that
28115 ${locale_dir} exists before trying to probe it.
28116
ca0afd5b
CW
281172010-06-02 Colin Watson <cjwatson@ubuntu.com>
28118
28119 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28120 per the GNU Coding Standards; this is now too obscure to be worth
28121 documenting.
28122 (QNX): Likewise.
28123 (chainloader): Remove cross-reference to `SCO UnixWare'.
28124
1c41aa78
CW
281252010-06-02 Colin Watson <cjwatson@ubuntu.com>
28126
28127 * docs/grub.texi (Chain-loading): New section.
28128 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28129 adjusted for GRUB 2.
28130 (SCO UnixWare): Likewise.
28131 (QNX): Likewise.
28132 (chainloader): Add reference to `Block list syntax'.
28133 (drivemap): New section.
28134 (parttool): New section.
28135
bb8ea0f5
CW
281362010-06-02 Colin Watson <cjwatson@ubuntu.com>
28137
28138 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28139 the grub shell'.
28140 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28141 (Installing GRUB using grub-install): Remove reference to the grub
28142 shell; mention `grub-mkimage' and `grub-setup' instead.
28143 (Invoking grub-install): Likewise.
28144 (Interface): Add reference to `Menu entry editor'.
28145 (serial): Remove `--device' option.
28146
288dd6ed
CW
281472010-06-02 Colin Watson <cjwatson@ubuntu.com>
28148
28149 * docs/grub.texi (Configuration): New section, documenting
28150 configuration file generation using grub-mkconfig. I've left a slot
28151 for documenting the full shell scripting format but have not yet
28152 started on writing that up.
28153 (Invoking grub-mkconfig): New section.
28154
34c9f0e9
CW
281552010-06-02 Colin Watson <cjwatson@ubuntu.com>
28156
28157 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28158 (GNU GRUB manual): Likewise.
28159 (General commands): Update description of `terminfo' for GRUB 2.
28160
9121567e
CW
281612010-06-02 Colin Watson <cjwatson@ubuntu.com>
28162
28163 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28164 (GRUB_MOD_INIT): Fix capitalisation.
28165 * docs/grub.texi (Command-line and menu entry commands): Document
28166 gettext and gptsync commands.
28167
ab631611
CW
281682010-06-02 Colin Watson <cjwatson@ubuntu.com>
28169
28170 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28171 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28172
bde4a9ac
CW
281732010-06-01 Colin Watson <cjwatson@ubuntu.com>
28174
28175 Add btrfs probing support, currently only in the single-device case.
28176
28177 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28178 function.
28179 (grub_guess_root_device): Call find_root_device_from_mountinfo
28180 before looking in /dev.
28181
b1d17e10
VS
281822010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28183
28184 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28185 GRUB_DISK_SIZE_UNKNOWN.
28186 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28187
dfbfe004
JS
281882010-05-31 Jiro SEKIBA <jir@unicus.jp>
28189
28190 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28191 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28192 corrupted or not synced properly.
28193
c2ffc8e9
VS
281942010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28195
28196 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28197 Reported by: Seth Goldberg.
28198
56293166
VS
281992010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28200
28201 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28202 addition of dest.
28203 Reported by: Seth Goldberg.
28204
7620e7de
VS
282052010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28206
28207 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28208 Reported by: Seth Goldberg.
28209
c837af3f
VS
282102010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28211
28212 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28213 64-bit address as signed on MIPS.
28214
c7c75cf4
CW
282152010-05-28 Colin Watson <cjwatson@ubuntu.com>
28216
28217 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28218 to the empty string.
28219
fa4b8490
BC
282202010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28221
28222 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28223
28224 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28225 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28226 * kern/misc.c (__enable_execute_stack): Disable on
28227 GRUB_MACHINE_EMU.
28228
a33075b9
CW
282292010-05-28 Colin Watson <cjwatson@ubuntu.com>
28230
28231 Make grub-probe work with symbolic links under /dev/mapper as well
28232 as with real block devices. The Linux world seems to be (at best)
28233 in transition here, and GRUB shouldn't get caught in the middle.
28234
28235 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28236 /dev/mapper.
28237
d8708134
CW
282382010-05-27 Colin Watson <cjwatson@ubuntu.com>
28239
28240 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28241 input files (in which case exit zero).
28242
db2102a0
CW
282432010-05-27 Colin Watson <cjwatson@ubuntu.com>
28244
28245 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28246 return NULL for various reasons even if it has a maximum-length
28247 buffer: for example, there might be a symlink loop, or the path
28248 might exceed PATH_MAX. If this happens, return NULL.
28249
5fdba519
RM
282502010-05-27 Robert Millan <rmh@gnu.org>
28251
28252 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28253 partmap module to handle cross-partmap setups.
28254 Reported by Orestes Mas. Gràcies!
28255
d1d368e4
CW
282562010-05-27 Colin Watson <cjwatson@ubuntu.com>
28257
28258 * util/grub-mkrescue.in: Initialise override_dir rather than
28259 assuming that it's unset or empty in the environment.
28260
95ac3c73
GS
282612010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28262
28263 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28264 variable index into p_index to suppress a warning with -Wshadow.
28265
7d8c0213
BC
282662010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28267
28268 * INSTALL: Added flex >= 2.5.35 requirement.
28269
db4d5813
VS
282702010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28271
28272 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28273
f24f4300
VS
282742010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28275
28276 cmostest support.
28277
28278 * commands/i386/cmostest.c: New file.
28279 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28280 (cmostest_mod_SOURCES): New variable.
28281 (cmostest_mod_CFLAGS): Likewise.
28282 (cmostest_mod_LDFLAGS): Likewise.
28283 * conf/i386-pc.rmk: Likewise.
28284 * docs/grub.texi (Vendor power-on keys): New section.
28285 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28286 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28287 and GRUB_BUTTON_CMOS_ADDRESS.
28288 * util/grub.d/00_header.in: Handle powering-on by separate button.
28289
ad603f61
VS
282902010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28291
28292 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28293 Removed drawing_scrollbar argument. All users updated
28294 Fixes #29792.
28295 Reported by Jo Shields
28296
3ecb080a
VS
282972010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28298
28299 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28300 buffer since gfxterm handles double repaint.
28301
5f2316c1
VS
283022010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28303
28304 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28305 * term/gfxterm.c (real_scroll): Likewise.
28306
9a25f885
VS
283072010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28308
28309 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28310 before calling BIOS.
28311
39fbb79a
VS
283122010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28313
28314 * include/grub/i18n.h: Always enable grub_gettext.
28315
228cfa97
VS
283162010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28317
28318 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28319 partition naming style.
28320
21717c8f
CW
283212010-05-21 Colin Watson <cjwatson@ubuntu.com>
28322
28323 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28324 not the first option.
28325
c0f48e65
CW
283262010-05-20 Colin Watson <cjwatson@ubuntu.com>
28327
28328 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28329
96779aec
CW
283302010-05-20 Colin Watson <cjwatson@ubuntu.com>
28331
28332 * util/misc.c: Move inclusion of <limits.h> to ...
28333 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28334
fa9d256e
GS
283352010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28336
28337 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28338 Fix merge error in NetBSD code.
28339 (find_partition_start) [__NetBSD__]: Likewise.
28340
123b7a85
BC
283412010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28342
28343 Fix grub-mkrescue usage unit testing.
28344
28345 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28346
74276c0d
CF
283472010-05-18 Christian Franke <franke@computer.org>
28348
28349 * util/grub.d/10_windows.in: Use path names instead of
28350 drive letters to prevent warning from Cygwin 1.7.
28351 Add drivemap command to menuentry if needed.
28352
c4f7b523
ST
283532010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28354
28355 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28356 gnumach and gnumach.gz.
28357
95b97950
VS
283582010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28359
28360 * include/grub/i18n.h (gettext): Inline instead of using #define.
28361 (grub_gettext): Likewise.
28362 (_): Likewise.
28363
01b8d2d7
VS
283642010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28365
28366 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28367 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28368 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28369 (main): Add a slash after pkglibdirroot.
28370
654e1d1e
VS
283712010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28372
28373 * util/grub-install.in: Add missing "in" keyword.
28374
26966aeb
VS
283752010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28376
28377 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28378 Reported by: Seth Goldberg.
28379
75006747
VS
283802010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28381
28382 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28383
74cbf5bd
CW
283842010-05-18 Colin Watson <cjwatson@ubuntu.com>
28385
28386 * configure.ac: Check for Linux device-mapper support.
28387
28388 * util/hostdisk.c (device_is_mapped): New function.
28389 (find_partition_start): New function, partly broken out from
28390 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28391 device-mapper support added.
28392 (linux_find_partition): Use find_partition_start.
28393 (convert_system_partition_to_system_disk): Add `st' argument.
28394 Support Linux /dev/mapper/* devices if device-mapper support is
28395 available; only DM-RAID devices are understood at present.
28396 (find_system_device): Add `st' argument. Pass it to
28397 convert_system_partition_to_system_disk.
28398 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28399 find_system_device and convert_system_partition_to_system_disk. Use
28400 find_partition_start.
28401
28402 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28403 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28404 * util/deviceiter.c [__linux__]: Define MINOR.
28405 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28406 * util/mkdevicemap.c (grub_putchar): New function.
28407 (grub_getkey): New function.
28408 (grub_refresh): New function.
28409 (main): Set debug=all if -v -v is used.
28410
355b51e9
CW
284112010-05-18 Colin Watson <cjwatson@ubuntu.com>
28412
28413 Fix build with non-GNU libcs.
28414
28415 * util/misc.c (canonicalize_file_name): Move to ...
28416 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28417 grub_make_system_path_relative_to_its_root.
28418
7fb5c25f
CW
284192010-05-18 Colin Watson <cjwatson@ubuntu.com>
28420
28421 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28422 we handle finding grub-mkimage. Default to finding grub-mkimage in
28423 ${bindir} with program_transform_name applied, and provide a
28424 --grub-mkimage option to override this.
28425
1d3293d6
VS
284262010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28427
28428 Remove grub-mkisofs.
28429
28430 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28431 (grub_mkisofs_SOURCES): Removed.
28432 (grub_mkisofs_CFLAGS): Removed.
28433 * util/mkisofs/defaults.h: Removed.
28434 * util/mkisofs/eltorito.c: Likewise.
28435 * util/mkisofs/exclude.h: Likewise.
28436 * util/mkisofs/hash.c: Likewise.
28437 * util/mkisofs/include/: Likewise.
28438 * util/mkisofs/include/fctldefs.h: Likewise.
28439 * util/mkisofs/include/mconfig.h: Likewise.
28440 * util/mkisofs/include/prototyp.h: Likewise.
28441 * util/mkisofs/include/statdefs.h: Likewise.
28442 * util/mkisofs/iso9660.h: Likewise.
28443 * util/mkisofs/joliet.c: Likewise.
28444 * util/mkisofs/match.c: Likewise.
28445 * util/mkisofs/match.h: Likewise.
28446 * util/mkisofs/mkisofs.c: Likewise.
28447 * util/mkisofs/mkisofs.h: Likewise.
28448 * util/mkisofs/msdos_partition.h: Likewise.
28449 * util/mkisofs/multi.c: Likewise.
28450 * util/mkisofs/name.c: Likewise.
28451 * util/mkisofs/rock.c: Likewise.
28452 * util/mkisofs/tree.c: Likewise.
28453 * util/mkisofs/write.c: Likewise.
28454
5dde9afe
VS
284552010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28456
28457 Unify grub-mkimage accross platforms.
28458
28459 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28460 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28461 (grub_mkelfimage_SOURCES): Removed.
28462 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28463 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28464 (bin_UTILITIES): Add grub-mkimage.
28465 (grub_mkimage_SOURCES): New variable.
28466 (kernel_img_HEADERS): Remove machine/kernel.h.
28467 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28468 (pkglib_PROGRAMS): Add kernel.img.
28469 (kernel_img_HEADERS): Add machine/kernel.h.
28470 (kernel_img_FORMAT): Removed.
28471 (bin_UTILITIES): Remove grub-mkimage.
28472 (grub_mkimage_SOURCES): Removed.
28473 (grub_mkimage_CFLAGS): Likewise.
28474 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28475 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28476 (pkglib_PROGRAMS): Add kernel.img.
28477 (bin_UTILITIES): Remove grub-mkimage.
28478 (grub_mkimage_SOURCES): Removed.
28479 (grub_mkimage_CFLAGS): Likewise.
28480 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28481 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28482 (pkglib_PROGRAMS): Add kernel.img.
28483 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28484 (pkglib_PROGRAMS): Add kernel.img.
28485 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28486 (grub_mkimage_SOURCES): Removed.
28487 (grub_mkimage_CFLAGS): Likewise.
28488 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28489 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28490 (pkglib_PROGRAMS): Add kernel.img.
28491 (bin_UTILITIES): Remove grub-mkimage.
28492 (grub_mkimage_SOURCES): Removed.
28493 (grub_mkimage_CFLAGS): Likewise.
28494 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28495 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28496 (grub_mkimage_SOURCES): Removed.
28497 (grub_mkimage_CFLAGS): Likewise.
28498 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28499 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28500 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28501 (grub_pe32_optional_header): ... this.
28502 (grub_pe64_optional_header): ... and this. All users updated.
28503 (GRUB_PE32_PE32_MAGIC): Split into ..
28504 (GRUB_PE32_PE32_MAGIC): .. this.
28505 (GRUB_PE32_PE64_MAGIC): .. and this.
28506 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28507 * include/grub/elf.h (PT_GNU_STACK): New definition.
28508 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28509 * include/grub/i386/efi/kernel.h: Likewise.
28510 * include/grub/i386/kernel.h: Likewise.
28511 * include/grub/i386/pc/kernel.h: Likewise.
28512 * include/grub/i386/qemu/boot.h: Likewise.
28513 * include/grub/mips/kernel.h: Likewise.
28514 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28515 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28516 * include/grub/powerpc/kernel.h: Likewise.
28517 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28518 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28519 * include/grub/sparc64/kernel.h: Likewise.
28520 * include/grub/x86_64/efi/kernel.h: Likewise.
28521 * include/grub/x86_64/kernel.h: Likewise.
28522 * include/grub/offsets.h: New file.
28523 * include/grub/kernel.h (grub_module_info): Split into ...
28524 (grub_module_info32): ... this.
28525 (grub_module_info64): ... and this.
28526 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28527 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28528 (grub_boot_blocklist): Moved from here ...
28529 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28530 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28531 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28532 * include/grub/types.h (grub_target_to_host16): Removed.
28533 (grub_target_to_host32): Likewise.
28534 (grub_target_to_host64): Likewise.
28535 (grub_host_to_target16): Likewise.
28536 (grub_host_to_target32): Likewise.
28537 (grub_host_to_target64): Likewise.
28538 (grub_host_to_target_addr): Likewise.
28539
28540 Support grub-mkrescue for efi, coreboot and qemu.
28541
28542 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28543 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28544 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28545 * util/grub-mkrawimage.c: Moved from here ...
28546 * util/grub-mkimage.c: ... here. All users updated.
28547 (ALIGN_ADDR): Use image_target.
28548 (TARGET_NO_FIELD): New const.
28549 (image_target_desc): New type.
28550 (image_targets): New array.
28551 (grub_target_to_host64): Use image_target.
28552 (grub_target_to_host32): Likewise.
28553 (grub_target_to_host16): Likewise.
28554 (grub_host_to_target64): Likewise.
28555 (grub_host_to_target32): Likewise.
28556 (grub_host_to_target16): Likewise.
28557 (grub_host_to_target_addr): Likewise.
28558 (generate_image): Handle multiimage.
28559 (main): Require -O parameter. All users updated.
28560 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28561 util/efi/grub-mkimage.c
28562 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28563 New option --rom-directory.
28564 Use xorriso.
28565 * util/i386/efi/grub-mkimage.c: Removed.
28566 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28567 (grub_target_to_host32): Likewise.
28568 (grub_target_to_host64): Likewise.
28569 (grub_host_to_target16): Likewise.
28570 (grub_host_to_target32): Likewise.
28571 (grub_host_to_target64): Likewise.
28572 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28573 (grub_target_to_host32): Likewise.
28574 (grub_target_to_host64): Likewise.
28575 (grub_host_to_target16): Likewise.
28576 (grub_host_to_target32): Likewise.
28577 (grub_host_to_target64): Likewise.
28578
f4fc97d0
BC
285792010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28580
28581 Source tree is reorganized for emu build.
28582
28583 * include/grub/util/console.h: Move from here...
28584 * include/grub/emu/console.h: ...to here.
28585 * include/grub/util/getroot.h: Move from here...
28586 * include/grub/emu/getroot.h: ...to here.
28587 * include/grub/util/hostdisk.h: Move from here...
28588 * include/grub/emu/hostdisk.h: ...to here.
28589 * util/console.c: Move from here...
28590 * kern/emu/console.c: ...to here.
28591 * util/getroot.c: Move from here...
28592 * kern/emu/getroot.c: ...to here.
28593 * util/grub-emu.c: Move from here...
28594 * kern/emu/main.c: ...to here.
28595 * util/hostdisk.c: Move from here...
28596 * kern/emu/hostdisk.c: ...to here.
28597 * util/hostfs.c: Move from here...
28598 * kern/emu/hostfs.c: ...to here.
28599 * util/mm.c: Move from here...
28600 * kern/emu/mm.c: ...to here.
28601 * util/pci.c: Move from here...
28602 * bus/emu/pci.c: ...to here.
28603 * util/sdl.c: Move from here...
28604 * video/emu/sdl.c: ...to here.
28605 * util/time.c: Move from here...
28606 * kern/emu/time.c: ...to here.
28607 * util/usb.c: Move from here...
28608 * bus/usb/emu/usb.c: ...to here.
28609
28610 * include/grub/emu/misc.h: New header for grub-emu functions.
28611 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28612
28613 * conf/any-emu.rmk: Rule updates for above renames.
28614 * conf/common.rmk: Likewise.
28615 * conf/i386-pc.rmk: Likewise.
28616 * conf/i386-qemu.rmk: Likewise.
28617 * conf/mips.rmk: Likewise.
28618 * conf/sparc64-ieee1275.rmk: Likewise.
28619 * conf/x86-efi.rmk: Likewise.
28620
28621 * disk/lvm.h: #include updates for above renames.
28622 * util/grub-mkrelpath.c: Likewise.
28623 * util/grub-probe.c: Likewise.
28624 * util/i386/pc/grub-setup.c: Likewise.
28625 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28626 * kern/emu/console.c: Likewise.
28627 * kern/emu/getroot.c: Likewise.
28628 * kern/emu/hostdisk.c: Likewise.
28629 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28630
28631 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28632 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28633 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28634 * util/misc.c: Remove grub-emu functions.
28635
cced9145
VS
286362010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28637
28638 Fix gfxmenu crash.
28639 Reported by: Thorsten Grützmacher.
28640
28641 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28642 timeout hook.
28643 (circprog_set_property): Register and unregister timeout hook.
28644 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28645 (label_destroy): Free template. and unregister hook.
28646 (label_set_state): New function.
28647 (label_set_property): Handle templates and hooks.
28648 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28649 timeout hook.
28650 (progress_bar_set_property): Register and unregister timeout hook.
28651 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28652 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28653 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28654 (update_timeout_visit): Removed.
28655 (update_timeouts): New function.
28656 (redraw_timeouts): Likewise.
28657 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28658 (grub_gfxmenu_clear_timeout): Likewise.
28659 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28660 (grub_gfxmenu_timeout_notify): Likewise.
28661 (grub_gfxmenu_timeout_notifications): New external variable.
28662 (grub_gfxmenu_timeout_register): New function.
28663 (grub_gfxmenu_timeout_unregister): Likewise.
28664
c6e5caab
VS
286652010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28666
28667 Transform (broken) vga terminal into (working) vga video driver.
28668
28669 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28670 video/i386/pc/vga.c.
28671 * include/grub/video.h (grub_video_driver_id):
28672 Add GRUB_VIDEO_DRIVER_VGA.
28673 * term/i386/pc/vga.c: Renamed to ...
28674 * video/i386/pc/vga.c: ...this
28675 (DEBUG_VGA): Removed.
28676 (CHAR_WIDTH): Likewise.
28677 (CHAR_HEIGHT): Likewise.
28678 (TEXT_WIDTH): Likewise.
28679 (TEXT_HEIGHT): Likewise.
28680 (DEFAULT_FG_COLOR): Likewise.
28681 (DEFAULT_BG_COLOR): Likewise.
28682 (colored_char): Likewise.
28683 (xpos): Likewise.
28684 (ypos): Likewise.
28685 (cursor_state): Likewise.
28686 (fg_color): Likewise.
28687 (bg_color): Likewise.
28688 (text_buf): Likewise.
28689 (page): Likewise.
28690 (font): Likewise.
28691 (framebuffer): New variable.
28692 (set_read_map): Disabled.
28693 (setup): New variable.
28694 (is_target): Likewise.
28695 (grub_vga_mod_init): Likewise.
28696 (grub_vga_mod_fini): Likewise.
28697 (check_vga_mem): Likewise.
28698 (write_char): Likewise.
28699 (write_cursor): Likewise.
28700 (scroll_up): Likewise.
28701 (grub_vga_putchar): Likewise.
28702 (grub_vga_getcharwidth): Likewise.
28703 (grub_vga_getwh): Likewise.
28704 (grub_vga_getxy): Likewise.
28705 (grub_vga_gotoxy): Likewise.
28706 (grub_vga_cls): Likewise.
28707 (grub_vga_setcolorstate): Likewise.
28708 (grub_vga_setcursor): Likewise.
28709 (grub_video_vga_init): New function.
28710 (grub_video_vga_setup): Likewise.
28711 (grub_video_vga_fini): Likewise.
28712 (update_target): Likewise.
28713 (grub_video_vga_blit_bitmap): Likewise.
28714 (grub_video_vga_blit_render_target): Likewise.
28715 (grub_video_vga_set_active_render_target): Likewise.
28716 (grub_video_vga_get_active_render_target): Likewise.
28717 (grub_video_vga_swap_buffers): Likewise.
28718 (grub_video_vga_set_palette): Likewise.
28719 (grub_video_vga_get_info_and_fini): Likewise.
28720 (grub_vga_term): Removed.
28721 (grub_video_vga_adapter): New variable.
28722 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28723 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28724
2bf61a98
VS
287252010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28726
28727 * video/readers/jpeg.c: Indented.
28728
09ddcd11
VS
287292010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28730
28731 Various jpeg cleanups.
28732
28733 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28734 (grub_jpeg_decode_quan_table): Use sizeof.
28735 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28736
e5507505
PH
287372010-05-05 Peter Hurley <No e-mail available> (tiny change)
28738
28739 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28740 tables. Ignore non-last ac bit.
28741 (grub_jpeg_decode_quan_table): Likewise.
28742
7e720a9b
VS
287432010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28744
28745 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28746 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28747 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28748 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28749 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28750 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28751
a7fc080b
VS
287522010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28753
28754 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28755 error.
28756
2bf6012d
VS
287572010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28758
28759 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28760
265d68cd
VS
287612010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28762
28763 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28764 condition.
28765
287662010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
28767
28768 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28769 part.
28770
265d68cd 287712010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
28772
28773 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28774 pointers.
28775
265d68cd 287762010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
28777
28778 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28779
d1b61374
CF
287802010-05-01 Christian Franke <franke@computer.org>
28781
28782 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28783 Remove broken Cygwin path conversion.
28784 * util/misc.c: [__CYGWIN__] Add include and define.
28785 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28786 for Cygwin 1.7.
28787 (make_system_path_relative_to_its_root): Simplify loop, replace early
28788 return by break.
28789 [__CYGWIN__] Add conversion to win32 path.
28790 Include "/" case in trailing slash removal.
28791
3558c6e9
VS
287922010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28793
28794 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28795 Reported by: Seth Goldberg
28796
f5f3ff93
VS
287972010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28798
28799 * commands/help.c (grub_cmd_help): Fix a typo.
28800 Reported by: Seth Goldberg
28801
d8b5cd40
VS
288022010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28803
28804 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28805 name and add N_.
28806 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28807 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28808 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28809 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28810 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28811 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28812 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28813 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28814 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28815 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28816 * normal/context.c (GRUB_MOD_INIT): Likewise.
28817 * normal/main.c (GRUB_MOD_INIT): Likewise.
28818 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28819 * term/serial.c (GRUB_MOD_INIT): Likewise.
28820 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28821
88c14915
VS
288222010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28823
28824 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28825 extra == 0.
28826
165134bc
VS
288272010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28828
28829 * commands/iorw.c: New file.
28830 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28831 (iorw_mod_SOURCES): New variable.
28832 (iorw_mod_CFLAGS): Likewise.
28833 (iorw_mod_LDFLAGS): Likewise.
28834
c5ac9b32
VS
288352010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28836
28837 Hotkey support
28838
28839 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28840 * normal/main.c (hotkey_aliases): New variable.
28841 (grub_normal_add_menu_entry): Parse "--hotkey".
28842 * normal/menu_text.c (run_menu): Handle hotkeys.
28843
ce60689c
VS
288442010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28845
28846 * kern/i386/coreboot/init.c (grub_machine_init): Call
28847 grub_machine_mmap_init on qemu.
28848
0359d006
VS
288492010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28850
28851 * boot/i386/qemu/boot.S: Add a missing .code16.
28852
7819a456
VS
288532010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28854
28855 Use LBIO on coreboot.
28856
28857 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28858 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28859 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28860 New declaration.
28861 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28862 grub_machine_mmap_init on coreboot.
28863 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28864 GRUB_LINUXBIOS_MEMBER_LINK.
28865 (grub_machine_mmap_iterate): Fix declaration.
28866 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28867
7210dca9
VS
288682010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28869
28870 Split coreboot and multiboot ports.
28871
28872 * conf/i386-multiboot.rmk: New file.
28873 * configure.ac: Add multiboot port.
28874 * include/grub/i386/multiboot/boot.h: New file.
28875 * include/grub/i386/multiboot/console.h: Likewise.
28876 * include/grub/i386/multiboot/init.h: Likewise.
28877 * include/grub/i386/multiboot/kernel.h: Likewise.
28878 * include/grub/i386/multiboot/loader.h: Likewise.
28879 * include/grub/i386/multiboot/memory.h: Likewise.
28880 * include/grub/i386/multiboot/serial.h: Likewise.
28881 * include/grub/i386/multiboot/time.h: Likewise.
28882 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28883 * loader/multiboot.c: Likewise.
28884 * loader/multiboot_mbi2.c: Likewise.
28885 * util/grub-mkrescue.in: Generate multiboot rescue.
28886
6f8aaf68
VS
288872010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28888
3080f7a7
VS
28889 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28890
288912010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28892
28893 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
28894
28895 * commands/terminal.c (abstract_terminal): New struct.
28896 (handle_command): New function. Based on grub_cmd_terminal_input.
28897 (grub_cmd_terminal_input): Use handle_command.
28898 (grub_cmd_terminal_output): Use handle_command.
28899
a8ebb841
BC
289002010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28901
28902 Fix comment handling.
28903
28904 * tests/grub_script_comments.in: New testcase.
28905 * conf/tests.rmk: Rules for new testcase.
28906 * script/yylex.l: Updated flex rules.
28907
bb06ba08
ST
289082010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28909
28910 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
28911 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28912 if argc is 1.
bb06ba08 28913
cc9d2425
VS
289142010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28915
28916 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28917 autogen issues.
28918
460d8402
CF
289192010-04-26 Christian Franke <franke@computer.org>
28920
28921 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28922 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28923 (grub_get_prefix): Remove function.
28924 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28925 make_system_path_relative_to_its_root ().
28926 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28927
553c01f9
CF
289282010-04-24 Christian Franke <franke@computer.org>
28929
28930 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28931 (kernel_img_LDFLAGS): Remove -static-libgcc.
28932
2aec1692
CF
289332010-04-24 Christian Franke <franke@computer.org>
28934
28935 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28936 and CHECK_END_SYMBOL if grub-emu is built.
28937 Unset TARGET_OBJ2ELF if grub-emu is built
28938 without module support.
28939
f67dc308
JS
289402010-04-24 Jiro SEKIBA <jir@unicus.jp>
28941
28942 Nilfs2 support.
28943
28944 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28945 (grub_fstest_SOURCES): Likewise.
28946 (pkglib_MODULES): Add nilfs2.mod.
28947 (nilfs2_mod_SOURCES): New variable.
28948 (nilfs2_mod_CFLAGS): Likewise.
28949 (nilfs2_mod_LDFLAGS): Likewise.
28950 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28951 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28952 * fs/nilfs2.c: New file.
28953
4ba8d354
VS
289542010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28955
28956 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28957 is not supported.
28958
0d2c20c6
GS
289592010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28960
28961 Add grub-mkconfig support for NetBSD.
28962
28963 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28964 * util/grub-mkconfig.in: export new NetBSD specific variables.
28965 * po/POTFILES-shell: added 10_netbsd.in.
28966 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28967
bc4a2d83
BC
289682010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28969
28970 Fix emu build with grub-emu-pci and grub-emu-modules.
28971
28972 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28973 functions.
28974 * include/grub/libpciaccess.h: New file.
28975 * conf/any-emu.rmk: Update kernel headers for emu build.
28976
f48c87aa
VS
289772010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28978
28979 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28980
18959385
VS
289812010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28982
28983 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28984
0037de3f
VS
289852010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28986
28987 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28988 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28989 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28990 util/ieee1275/ofpath.c.
28991 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28992 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28993 * include/grub/sparc64/ieee1275/boot.h
28994 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28995 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28996 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28997 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28998 const char *.
28999 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29000 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29001 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29002 install.
29003
38e55e90
GS
290042010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29005
29006 * util/grub-mkconfig.in: Corrected two == equality tests.
29007 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29008 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29009 expect a number appended to it.
29010 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29011 expects a number appended to it.
29012
a9e6ff28
VS
290132010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29014
29015 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29016
0b830b8f
VS
290172010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29018
29019 * util/hostdisk.c (make_device_name): Change to new partition naming.
29020
0973daeb
VS
290212010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29022
29023 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29024
460d8402 290252010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
29026
29027 * Makefile.in: Add missing localedir setting.
29028
0b456309
CW
290292010-04-14 Colin Watson <cjwatson@ubuntu.com>
29030
29031 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29032 mistake in r2156. Noticed by Anthony Fok.
29033
29034 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29035 @localedir@.
29036 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29037
08f46d62
BC
290382010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29039
29040 Fix a spurious, uninitialized variable warning.
29041
29042 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29043 Initialize variable, shdr.
29044 (grub_freebsd_load_elfmodule): Likewise.
29045 (grub_freebsd_load_elf_meta): Likewise.
29046
8c4a72d4
BC
290472010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29048
29049 Fix for escaped dollar in double quoted strings.
29050
29051 * script/yylex.l: Updated flex rules.
29052 * conf/tests.rmk: Rule for new testcase.
29053 * tests/grub_script_dollar.in: New testcase.
29054
ce44826e
CPE
290552010-04-13 Carles Pina i Estany <carles@pina.cat>
290562010-04-13 Colin Watson <cjwatson@ubuntu.com>
29057
29058 Enclose all translated strings in grub.cfg in single quotes, and
29059 escape them appropriately (Ubuntu bug #552921).
29060
29061 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29062 * util/grub.d/10_hurd.in: Use it.
29063 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29064 * util/grub.d/10_linux.in (linux_entry): Likewise.
29065
4b0cd8f8
VS
290662010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29067
29068 Fix cygwin compilation.
29069
29070 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29071 * include/grub/misc.h (__register_frame_info)
29072 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29073 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29074 * kern/misc.c (__register_frame_info)
29075 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29076 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29077
01fcf061
VS
290782010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29079
29080 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29081
5d04b11e
VS
290822010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29083
29084 Unify libgcc processing.
29085
29086 * Makefile.in (kernel_img_LDFLAGS): New variable.
29087 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29088 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29089 overwriting.
29090 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29091 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29092 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29093 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29094 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29095 overwriting. Remove -lgcc and -static-libgcc
29096 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29097 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29098 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29099 (kernel_img_LDFLAGS): Append instead of overwriting.
29100 Remove -lgcc and -static-libgcc
29101 * conf/sparc64-ieee1275.rmk: Likewise.
29102 * include/grub/powerpc/libgcc.h: Move to ...
29103 * include/grub/libgcc.h: .. this.
29104 * include/grub/libgcc.h: Don't export most of the function on x86.
29105 (__bswapsi2): New export.
29106 (__bswapdi2): Likewise.
29107 * include/grub/mips/libgcc.h: Removed.
29108 * include/grub/sparc64/libgcc.h: Likewise.
29109
b7f3ac29
VS
291102010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29111
29112 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29113 disk_info_msg (conflicts with gettexting into languages with cases).
29114
2c7031b1
GS
291152010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29116
29117 Add grub-probe support for NetBSD.
29118
29119 * util/getroot.c (find_root_device): Convert block device to
29120 character device on NetBSD.
29121 * util/probe.c (probe): Require character device on NetBSD.
29122 * util/hostdisk.c: NetBSD specific headers.
29123 (configure_device_driver): new function to tune device driver
29124 parameters (currently only for NetBSD floppy driver).
29125 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29126 via disklabel ioctl).
29127 (open_device): call configure_device_driver on NetBSD.
29128 (convert_system_partition_to_system_disk): NetBSD specific code.
29129 (device_is_wholedisk): Likewise.
29130 (grub_util_biosdisk_get_grub_dev): Likewise.
29131 (make_device_name): Fixed a typo in bsd_part_str.
29132 * configure.ac: check for opendisk() and getrawpartition() on
29133 NetBSD and set LIBUTIL.
29134 * Makefile.in: add LIBUTIL to LIBS.
29135
f516290c
BC
291362010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29137
29138 Documentation fix.
29139
29140 * util/grub-script-check.c: Better help message.
29141
d8dcc0df
BC
291422010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29143
29144 Fix FreeBSD build.
29145
29146 * configure.ac: Flex version check.
29147 * conf/common.rmk: Add -Wno-error to sh.mod.
29148 * script/yylex.l: Remove all #pragma.
29149
6734334a
VS
291502010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29151
29152 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29153 prototype.
29154 Reported by: Seth Goldberg.
29155
daea6abd
VS
291562010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29157
29158 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29159 Rename "module" to "module2".
29160 Reported by: Seth Goldberg.
29161
f2fd9d2b
VS
291622010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29163
29164 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29165 EXPORT_FUNC.
29166 Reported by: Seth Goldberg.
29167
be124579
VS
291682010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29169
29170 * lib/posix_wrap/locale.h: Add missing file.
29171 Reported by: Seth Goldberg.
29172
ef5da797
VS
291732010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29174
29175 grub-emu module load support.
29176
29177 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29178 NO_DYNAMIC_MODULES switched to this.
29179 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29180 (CFLAGS): Likewise.
29181 * conf/any-emu.rmk: Generate symlist.
29182 (kernel_img_HEADERS): Add util/datetime.h.
29183 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29184 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29185 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29186 kern/$(target_cpu)/cache.S.
29187 * configure.ac (grub-emu-modules): New option.
29188 * genmk.rb: Handle multiple source lists.
29189 * include/grub/sdl.h: New file.
29190 * include/grub/libusb.h: Likewise.
29191 * util/grub-emu.c (main): Hanle (host) root.
29192 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29193 GRUB_ERR_UNKNOWN_DEVICE.
29194 * util/misc.c: Move mm functions to ...
29195 * util/mm.c: ... here. All users updated.
29196
47822096
VS
291972010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29198
29199 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29200 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29201 missing files.
29202 (maintainer-clean): Remove libgcrypt-grub.
29203
5d7e7445
VS
292042010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29205
29206 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29207
25f4e252
EC
292082010-04-09 EFI Coder <eficoder@hotmail.com>
29209
29210 * normal/menu_text.c (print_message): Clean up the message and show
29211 the Fn information when on EFI
29212 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29213
027de555
VS
292142010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29215
29216 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29217 All users updated.
29218 * normal/crypto.c (read_crypto_list): Likewise.
29219 * normal/dyncmd.c (read_command_list): Likewise.
29220 * normal/term.c (read_terminal_list): Likewise.
29221 * normal/main.c (read_lists): Use explicit prefix.
29222 (read_lists_hook): Use read_lists.
29223 (grub_normal_execute): Likewise.
29224
47779711
VS
292252010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29226
29227 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29228 Reported by: Thomas Schmitt.
29229 Add -no-emul-boot to grub-mkisofs parameters.
29230
1118c32e
VS
292312010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29232
29233 * font/font.c: Indented.
29234
7d652447
BC
292352010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29236
29237 Elif support to GRUB script (by Deepak Vankadaru).
29238
29239 * tests/grub_script_if.in: New testcase.
29240 * conf/tests.rmk: Rule for new testcase.
29241 * script/parser.y: Grammar rules for elif.
29242
34bb22df
BC
292432010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29244
29245 While and until loops support to GRUB script.
29246
29247 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29248 (grub_script_create_cmdwhile): New function prototype.
29249 (grub_script_execute_cmdwhile): New function prototype.
29250 * script/execute.c (grub_script_execute_cmdwhile): New function.
29251 * script/parser.y (command): New commands.
29252 (whilecmd): New grammar rule.
29253 (untilcmd): New grammar rule.
29254 * script/script.c (grub_script_create_cmdwhile): New function.
29255 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29256 function.
29257
29258 * tests/grub_script_while1.in: New testcase.
29259 * conf/tests.rmk: Rule for new testcase.
29260
e215d8e0
VS
292612010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29262
29263 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29264 as *.jpg.
29265
d7c43ba1
MV
292662010-04-09 Mario Vazquez <mariovazq@gmail.com>
29267
29268 GRUB_BACKGROUND support.
29269
29270 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29271 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29272
d64795c0
VS
292732010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29274
29275 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 29276 Idea by: Mario Vazquez
d64795c0
VS
29277
29278 * util/grub.d/00_header.in: Load pf2 and image modules.
29279
f267f83a
VS
292802010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29281
29282 grub-mkconfig multiple terminal support.
29283
29284 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29285 * util/grub.d/00_header.in: Likewise.
29286
b7841ceb
VS
292872010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29288
29289 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29290 we use cd $(srcdir).
29291
df60998c
CW
292922010-04-08 Colin Watson <cjwatson@ubuntu.com>
29293
29294 * util/grub.d/10_linux.in: Only use the first word of
29295 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29296 spaces in GRUB_DISTRIBUTOR.
29297 * util/grub.d/10_kfreebsd.in: Likewise.
29298 * util/grub.d/10_hurd.in: Likewise.
29299
fa09c82e
BC
293002010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29301
14e18ae3 29302 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
29303
29304 * tests/util/grub-shell.in: Remove -serial stdio option.
29305
daf892b3
BC
293062010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29307
29308 POSIX header file wrappers.
29309
29310 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29311 equivalents.
29312 * lib/posix_wrap/ctype.h: Likewise.
29313 * lib/posix_wrap/errno.h: Likewise.
29314 * lib/posix_wrap/langinfo.h: Likewise.
29315 * lib/posix_wrap/limits.h: Likewise.
29316 * lib/posix_wrap/localcharset.h: Likewise.
29317 * lib/posix_wrap/stdint.h: Likewise.
29318 * lib/posix_wrap/stdio.h: Likewise.
29319 * lib/posix_wrap/stdlib.h: Likewise.
29320 * lib/posix_wrap/string.h: Likewise.
29321 * lib/posix_wrap/sys/types.h: Likewise.
29322 * lib/posix_wrap/unistd.h: Likewise.
29323 * lib/posix_wrap/wchar.h: Likewise.
29324 * lib/posix_wrap/wctype.h: Likewise.
29325 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29326 (grub_script.yy.h): Likewise.
29327 * script/yylex.l: Remove POSIX emulation #defines.
29328 * Makefile.in (POSIX_CFLAGS): New variable.
29329 (GNULIB_UTIL_CFLAGS): Likewise.
29330
29331 Regexp support.
29332
29333 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29334 (regexp_mod_SOURCES): New variable.
29335 (regexp_mod_CFLAGS): Likewise.
29336 (regexp_mod_LDFLAGS): Likewise.
29337 * commands/regexp.c: New file.
29338 * gnulib/regcomp.c: New file. Imported from gnulib.
29339 * gnulib/regex.c: Likewise.
29340 * gnulib/regex_internal.c: Likewise.
29341 * gnulib/regex_internal.h: Likewise.
29342 * gnulib/regexec.c: Likewise.
29343 * gnulib/regex.h: Likewise.
29344
974ac4f7
VS
293452010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29346
29347 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29348 unsupported video mode types.
29349
2622c3ff
VS
293502010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29351
29352 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29353
064cb524
VS
293542010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29355
29356 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29357 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29358
a8c3b552
VS
293592010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29360
29361 Remove unused grub_vga_get_font.
29362
29363 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29364 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29365
187bbe3d
GS
293662010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29367
29368 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29369 * include/grub/misc.h: Likewise.
29370
b9396631
GS
293712010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29372
29373 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29374 for which failure is fatal.
29375
50479feb
GS
293762010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29377
29378 * util/grub-install.in: Use mkdir -p to create grub directory.
29379 * util/i386/efi/grub-install.in: Likewise.
29380 * util/ieee1275/grub-install.in: Likewise.
29381
b1654fdf
GS
293822010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29383
29384 * Makefile.in (LEX): new variable.
29385
bd5a6415
GS
293862010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29387
29388 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29389 `=' and added double quotes on operands of this equality test.
29390
3db3a82b
VS
293912010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29392
29393 * Makefile.in (uninstall): Remove a leftover debug echo.
29394 Reported by: Grégoire Sutre
29395
38023412
VS
293962010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29397
29398 MIPS multiboot2 support.
29399
29400 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29401 (multiboot2_mod_SOURCES): New variable.
29402 (multiboot2_mod_CFLAGS): Likewise.
29403 (multiboot2_mod_LDFLAGS): Likewise.
29404 (multiboot2_mod_ASFLAGS): Likewise.
29405 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29406 definition.
29407 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29408 (MULTIBOOT_MBI_REGISTER): Likewise.
29409 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29410 (MULTIBOOT_ELF32_MACHINE): Likewise.
29411 (MULTIBOOT_ELF64_MACHINE): Likewise.
29412 * include/grub/mips/multiboot.h: New file.
29413 * include/grub/video.h (grub_video_driver_id): New type
29414 GRUB_VIDEO_DRIVER_SM712.
29415 (grub_video_get_info_and_fini): Export.
29416 (grub_video_get_palette): Likewise.
29417 (grub_video_get_driver_id): Likewise.
29418 * include/multiboot2.h: Resynced with spec.
29419 * loader/i386/multiboot.c: Moved from here ...
29420 * loader/multiboot.c: ... here. All users updated.
29421 (grub_multiboot_boot): Use platform-specific macros.
29422 * loader/i386/multiboot_elfxx.c: Moved from here ...
29423 * loader/multiboot_elfxx.c: ... here. All users updated.
29424 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29425 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29426 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29427
47674667
VS
294282010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29429
29430 Import gnulib argp module.
29431
29432 * gnulib/argp-ba.c: New file.
29433 * gnulib/argp-eexst.c: Likewise.
29434 * gnulib/argp-fmtstream.c: Likewise.
29435 * gnulib/argp-fmtstream.h: Likewise.
29436 * gnulib/argp-fs-xinl.c: Likewise.
29437 * gnulib/argp-help.c: Likewise.
29438 * gnulib/argp-namefrob.h: Likewise.
29439 * gnulib/argp-parse.c: Likewise.
29440 * gnulib/argp-pin.c: Likewise.
29441 * gnulib/argp-pv.c: Likewise.
29442 * gnulib/argp-pvh.c: Likewise.
29443 * gnulib/argp-version-etc.c: Likewise.
29444 * gnulib/argp-version-etc.h: Likewise.
29445 * gnulib/argp-xinl.c: Likewise.
29446 * gnulib/argp.h: Likewise.
29447
495442ed
VS
294482010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29449
29450 * kern/device.c (grub_device_iterate): Clear errors after failed
29451 opening device.
29452
f9fd65df
VS
294532010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29454
29455 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29456 returned by firmware.
29457
af09641e
VS
294582010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29459
29460 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29461 compilation on coreboot and qemu
29462
016883a5
VS
294632010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29464
29465 * include/multiboot2.h: Resync with spec.
29466
f97e1f7d
VS
294672010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29468
29469 Multiboot2 tag support
29470
29471 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29472 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29473 Remove loader/multiboot_loader.c.
29474 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29475 (grub_multiboot2_real_boot): Likewise.
29476 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29477 (grub_get_multiboot_mmap_count): New proto.
29478 (grub_fill_multiboot_mmap): Likewise.
29479 (grub_multiboot_set_video_mode): Likewise.
29480 (grub_multiboot_set_console): Likewise.
29481 (grub_multiboot_load): Likewise.
29482 (grub_multiboot_load_elf): Likewise.
29483 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29484 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29485 * include/multiboot.h: Resynced with specification.
29486 * include/multiboot2.h: Resynced with specification.
29487 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29488 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29489 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29490 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29491 users updated.
29492 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29493 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29494 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29495 Removed.
29496 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29497 Moved from here...
29498 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29499 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29500 Moved from here...
29501 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29502 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29503 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29504 All users updated.
29505 * loader/i386/multiboot_mbi2.c: New file.
29506
3506b90b
VS
295072010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29508
29509 Resync with gnulib.
29510
29511 * Makefile.in (GNULIB_CFLAGS): New variable.
29512 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29513 (grub_script_check_CFLAGS): New variable.
29514 * gnulib/alloca.h: Resync with gnulib.
29515 * gnulib/error.c: Likewise.
29516 * gnulib/error.h: Likewise.
29517 * gnulib/fnmatch.c: Likewise.
29518 * gnulib/fnmatch_loop.c: Likewise.
29519 * gnulib/getdelim.c: Likewise.
29520 * gnulib/getline.c: Likewise.
29521 * gnulib/getopt.c: Likewise.
29522 * gnulib/getopt1.c: Likewise.
29523 * gnulib/getopt_int.h: Likewise.
29524 * gnulib/gettext.h: Likewise.
29525 * gnulib/progname.c: Likewise.
29526 * gnulib/progname.h: Likewise.
29527
394a3120
GS
295282010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29529
29530 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29531 which is the case with --disabled-nls.
29532
29533 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29534 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29535 * util/misc.c: Likewise.
29536 * util/mkisofs/mkisofs.c: Likewise.
29537 * util/mkisofs/mkisofs.h: Likewise.
29538
969d1c78
VS
295392010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29540
29541 Simplify Apple CC support.
29542
29543 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29544 Add 0 byte at the end not to have a symbol with empty target.
29545 * mmap/i386/pc/mmap_helper.S: Likewise.
29546 * genmk.rb: Ignore errors 2030 and 2050.
29547 * kern/i386/pc/startup.S: Use LOCAL when possible.
29548
8d2977bb
BC
295492010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29550
29551 Testcase and the fix for final semicolon on cmdline.
29552
29553 * tests/grub_script_final_semicolon.in: New testcase.
29554 * conf/tests.rmk: Rules for the new testcase.
29555 * script/parser.y: Grammar fix.
29556
a7bd6915
BC
295572010-03-26 BVK Chaitanya <bvk@localhost>
29558
29559 Blank lines testcase for GRUB script.
29560
29561 * tests/grub_script_blanklines.in: New testcase.
29562 * conf/tests.rmk: Rules for the new testcase.
29563
e4ff6628
VS
295642010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29565
29566 Don't use __FILE__.
29567
29568 * genmk.rb: Add -DGRUB_FILE to all C targets.
29569 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29570 * include/grub/list.h: Likewise.
29571 * include/grub/misc.h: Likewise.
29572 * include/grub/mm.h: Likewise.
29573 * include/grub/test.h: Likewise.
29574 * kern/mm.c: Likewise.
29575 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29576
6a5cf6b6
VS
295772010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29578
29579 Sunpc partitions support.
29580
29581 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29582 (grub_fstest_SOURCES): Likewise.
29583 (pkglib_MODULES): Add part_sunpc.mod.
29584 (part_sunpc_mod_SOURCES): New variable.
29585 (part_sunpc_mod_CFLAGS): Likewise.
29586 (part_sunpc_mod_LDFLAGS): Likewise.
29587 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29588 * partmap/sunpc.c: New file.
29589
746d9045
BC
295902010-03-26 BVK Chaitanya <bvk@localhost>
29591
29592 For loop support to GRUB script.
29593
29594 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29595 (grub_script_create_cmdfor): New function prototype.
29596 (grub_script_execute_cmdfor): New function prototype.
29597 * script/execute.c (grub_script_execute_cmdfor): New function.
29598 * script/parser.y (command): New for command.
29599 (forcmd): New grammar rule.
29600 * script/script.c (grub_script_create_cmdfor): New function.
29601 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29602 function.
29603 * tests/grub_script_for1.in: New testcase.
29604 * conf/tests.rmk: Rules for new testcase.
29605
18486b18
VS
296062010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29607
29608 Nested partitions
29609
29610 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29611 'partition' is NULL, grub_partition_get_start already does that.
29612 * commands/loadenv.c (check_blocklists): Likewise.
29613 (write_blocklists): Likewise.
29614 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29615 (grub_fstest_SOURCES): Likewise.
29616 (pkglib_MODULES): Add part_bsd.mod.
29617 (part_bsd_mod_SOURCES): New variable.
29618 (part_bsd_mod_CFLAGS): Likewise.
29619 (part_bsd_mod_LDFLAGS): Likewise.
29620 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29621 (grub_emu_SOURCES): Likewise.
29622 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29623 * include/grub/bsdlabel.h: New file.
29624 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29625 'get_name'.
29626 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29627 (grub_partition_map_list): New variable.
29628 (grub_partition_map_register): Inline.
29629 (grub_partition_map_unregister): Likewise.
29630 (FOR_PARTITION_MAPS): New macro.
29631 (grub_partition_map_iterate): Removed.
29632 (grub_partition_get_start): Handle nested partitions.
29633 * include/grub/msdos_partition.h: Remove bsd-related entries.
29634 (grub_pc_partition): Remove.
29635 * kern/disk.c (grub_disk_close): Free partition data.
29636 (grub_disk_adjust_range): Handle nested partitions.
29637 * kern/partition.c (grub_partition_map_probe): New function.
29638 (grub_partition_probe): Parse name to number, handle subpartitions.
29639 (get_partmap): New function.
29640 (grub_partition_iterate): Handle subpartitions.
29641 (grub_partition_get_name): Likewise.
29642 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29643 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29644 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29645 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29646 Set 'number'.
29647 (acorn_partition_map_probe): Remove.
29648 (acorn_partition_map_get_name): Likewise.
29649 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29650 Set 'number'.
29651 Set 'index' to 0 since there can be only one partition entry per sector.
29652 (amiga_partition_map_probe): Remove.
29653 (amiga_partition_map_get_name): Likewise.
29654 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29655 Set 'number'.
29656 Set 'offset' and 'index' to real positions of partitions.
29657 (apple_partition_map_probe): Remove.
29658 (apple_partition_map_get_name): Likewise.
29659 * partmap/bsdlabel.c: New file.
29660 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29661 Set 'number'.
29662 Allocate 'data' so it can be correctly freed.
29663 Set 'index' to offset inside sector.
29664 (gpt_partition_map_probe): Remove.
29665 (gpt_partition_map_get_name): Likewise.
29666 * partmap/msdos.c (grub_partition_parse): Remove.
29667 (pc_partition_map_iterate): Don't force raw access.
29668 Set 'number'.
29669 Make 'ext_offset' a local variable.
29670 (pc_partition_map_probe): Remove.
29671 (pc_partition_map_get_name): Remove.
29672 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29673 Set 'number'.
29674 (sun_partition_map_probe): Remove.
29675 (sun_partition_map_get_name): Likewise.
29676 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29677 (grub_pcpart_type): Likewise.
29678 * util/hostdisk.c (open_device): Handle new numbering scheme.
29679 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29680 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29681 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29682 * util/grub-install.in: Insert all subpartition modules.
29683 * util/ieee1275/grub-install.in: Likewise.
29684
a3940f88
AG
296852010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29686
29687 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29688 grammar.
29689
21b99926 296902010-03-24 Colin Watson <cjwatson@ubuntu.com>
29691
29692 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29693
bed1d352
CW
296942010-03-21 Colin Watson <cjwatson@ubuntu.com>
29695
29696 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29697 match where 'make install' puts them.
29698 * util/i386/efi/grub-install.in: Likewise.
29699
c9f58427
CW
297002010-03-19 Colin Watson <cjwatson@ubuntu.com>
29701
29702 * .bzrignore: Add gentrigtables, grub-script-check,
29703 grub_script_check_init.c, grub_script_check_init.h, and
29704 trigtables.c.
29705
f84afb27
VS
297062010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29707
29708 * kern/parser.c: Indented.
29709
ed0e3d30
VS
297102010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29711
29712 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29713
0ea81d98
VS
297142010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29715
29716 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29717 alpha_mask_size == 0 case.
29718
0cdc2a09
BC
297192010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29720
29721 GRUB shell lexer and parser improvements.
29722
29723 * conf/any-emu.rmk: Build rule updates.
29724 * conf/common.rmk: Likewise.
29725 * conf/i386-coreboot.rmk: Likewise.
29726 * conf/i386-efi.rmk: Likewise.
29727 * conf/i386-ieee1275.rmk: Likewise.
29728 * conf/i386-pc.rmk: Likewise.
29729 * conf/powerpc-ieee1275.rmk: Likewise.
29730 * conf/x86_64-efi.rmk: Likewise.
29731
29732 * configure.ac: Configure check for flex.
29733
29734 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29735 types.
29736 (grub_lexer_param): Struct member updates.
29737 (grub_parser_param): Likewise.
29738 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29739 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29740 (grub_script_lexer_init): Prototype update.
29741 (grub_script_lexer_record_start): Likewise.
29742 (grub_script_lexer_record_stop): Likewise.
29743 (grub_script_lexer_yywrap): New function prototype.
29744 (grub_script_lexer_fini): Likewise.
29745 (grub_script_execute_argument_to_string): Removed by...
29746 (grub_script_execute_argument_to_argv): ...better version.
29747
29748 * script/execute.c (ROUND_UPTO): New macro.
29749 (grub_script_execute_cmdline): Out of memory fixes.
29750 (grub_script_execute_menuentry): Likewise.
29751 (grub_script_execute_argument_to_string): Removed. Update all
29752 users by...
29753 (grub_script_execute_argument_to_argv): ...better version.
29754 * script/function.c (grub_script_function_create): Use
29755 grub_script_execute_argument_to_argv instead of
29756 grub_script_execute_argument_to_string.
29757
29758 * script/lexer.c (check_varstate): Removed.
29759 (check_textstate): Removed.
29760 (grub_script_lexer_record_start): Likewise.
29761 (grub_script_lexer_record_stop): Likewise.
29762 (recordchar): Replaced with...
29763 (grub_script_lexer_record): ...new function.
29764 (nextchar): Removed.
29765 (grub_script_lexer_init): Rewritten.
29766 (grub_script_yylex): Rewritten.
29767 (append_newline): New function.
29768 (grub_script_lexer_yywrap): New function.
29769 (grub_script_lexer_fini): New function.
29770 (grub_script_yyerror): Sets error flag.
29771
29772 * script/yylex.l: New file.
29773 (grub_lexer_yyfree): Wrapper for flex yyffre.
29774 (grub_lexer_yyalloc): Likewise.
29775 (grub_lexer_yyrealloc): Likewise.
29776 * script/parser.y: Refactored.
29777
29778 * script/script.c (grub_script_arg_add): Out of memory fixes.
29779 (grub_script_add_arglist): Likewise.
29780 (grub_script_create_cmdline): Likewise.
29781 (grub_script_create_cmdmenu): Likewise.
29782 (grub_script_add_cmd): Likewise.
29783 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29784 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29785 unnecessary code.
29786
29787 * tests/grub_script_echo1.in: New testcase.
29788 * tests/grub_script_vars1.in: New testcase.
29789 * tests/grub_script_echo_keywords.in: New testcase.
29790
1d63a066
VS
297912010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29792
29793 Remove some redundancy in build system.
29794
29795 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29796 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29797 (TARGET_LDFLAGS): Add -nostdlib.
29798 (TARGET_IMG_LDFLAGS): Likewise.
29799 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29800 anything since mmap isn't available.
29801 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29802 Add util/time.c.
29803 (pkglib_MODULES): Remove reboot.mod.
29804 (reboot_mod_SOURCES): Removed.
29805 (reboot_mod_CFLAGS): Likewise.
29806 (reboot_mod_LDFLAGS): Likewise.
29807 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29808 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29809 (DEFSYMFILES): Add kernel_syms.lst.
29810 (kernel_img_HEADERS): Add common headers.
29811 (symlist.c): New target.
29812 (kernel_syms.lst): Likewise.
29813 (pkglib_MODULES): Add memdisk.mod.
29814 (memdisk_mod_SOURCES): New variable.
29815 (memdisk_mod_CFLAGS): Likewise.
29816 (memdisk_mod_LDFLAGS): Likewise.
29817 (pkglib_MODULES): Add reboot.mod.
29818 (reboot_mod_SOURCES): New variable.
29819 (reboot_mod_CFLAGS): Likewise.
29820 (reboot_mod_LDFLAGS): Likewise.
29821 (pkglib_MODULES): Add date.mod.
29822 (date_mod_SOURCES): New variable.
29823 (date_mod_CFLAGS): Likewise.
29824 (date_mod_LDFLAGS): Likewise.
29825 (pkglib_MODULES): Add datehook.mod.
29826 (datehook_mod_SOURCES): New variable.
29827 (datehook_mod_CFLAGS): Likewise.
29828 (datehook_mod_LDFLAGS): Likewise.
29829 (pkglib_MODULES): Add lsmmap.mod.
29830 (lsmmap_mod_SOURCES): New variable.
29831 (lsmmap_mod_CFLAGS): Likewise.
29832 (lsmmap_mod_LDFLAGS): Likewise.
29833 (pkglib_MODULES): Add boot.mod.
29834 (boot_mod_SOURCES): New variable.
29835 (boot_mod_CFLAGS): Likewise.
29836 (boot_mod_LDFLAGS): Likewise.
29837 * conf/i386-coreboot.rmk: Removed redundant parts.
29838 * conf/i386-ieee1275.rmk: Likewise.
29839 * conf/i386-pc.rmk: Likewise.
29840 * conf/mips-yeeloong.rmk: Likewise.
29841 * conf/mips.rmk: Likewise.
29842 * conf/powerpc-ieee1275.rmk: Likewise.
29843 * conf/sparc64-ieee1275.rmk: Likewise.
29844 * conf/x86_64-efi.rmk: Likewise.
29845 * conf/i386-coreboot.rmk: Moved qemu parts ..
29846 * conf/i386-qemu.rmk: ... here
29847 * conf/i386-efi.rmk: Moved common parts to...
29848 * conf/x86-efi.rmk: ... here.
29849 * conf/i386.rmk: Added modules common to all x86 variants.
29850 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29851 * disk/memdisk.c: Remove grub/machine/kernel.h.
29852 * gensymlist.sh.in: Include symbol.h.
29853 * hook/datehook.c: Correct module name.
29854 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29855 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29856 * include/grub/i386/efi/serial.h: New file.
29857 * include/grub/x86_64/efi/serial.h: Likewise.
29858 * util/time.c: Likewise.
29859 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29860
463ac55f
CK
298612010-03-14 Colin King <colin.king@ubuntu.com>
298622010-03-14 Colin Watson <cjwatson@ubuntu.com>
29863
29864 Shrink the pre-partition-table part of boot.img by eight bytes.
29865
29866 * boot/i386/pc/boot.S (ERR): New macro.
29867 (chs_mode): Use ERR.
29868 (geometry_error): Likewise.
29869 (hd_probe_error): Remove. This is only used once, so we wrwite
29870 it inline instead.
29871 (read_error): Instead of printing read_error_string, just set up
29872 %si and fall through to ...
29873 (error_message): ... this new function, also used by ERR.
29874
08e46ede
CW
298752010-03-14 Colin Watson <cjwatson@ubuntu.com>
29876
29877 Speed up consecutive hostdisk operations on the same device.
29878
29879 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29880 (grub_util_biosdisk_open): Initialise disk->data.
29881 (struct linux_partition_cache): New structure.
29882 (linux_find_partition): Cache partition start positions; these are
29883 expensive to compute on every read and write.
29884 (open_device): Cache open file descriptor in disk->data, so that we
29885 don't have to reopen it and flush the buffer cache for consecutive
29886 operations on the same device.
29887 (grub_util_biosdisk_close): New function.
29888 (grub_util_biosdisk_dev): Set `close' member.
29889
29890 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29891 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29892 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29893 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29894 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29895
4a6d2d06
VS
298962010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29897
29898 Compile parts of grub-emu as modules.
29899
29900 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29901 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29902 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29903 (all-local): Add $(GRUB_EMU).
29904 (install-local): Install $(GRUB_EMU).
29905 (uninstall): Uninstall $(GRUB_EMU).
29906 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29907 * kern/dl.c: Likewise.
29908 * commands/sleep.c: Not include machine/time.h.
29909 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29910 (COMMON_CFLAGS): Likewise.
29911 (sbin_UTILITIES): Remove grub-emu.
29912 (grub_emu_SOURCES): Removed.
29913 (kernel_img_RELOCATABLE): New variable.
29914 (pkglib_PROGRAMS): Add kernel.img.
29915 (kernel_img_SOURCES): New variable
29916 (kernel_img_CFLAGS): Likewise.
29917 (kernel_img_LDFLAGS): Likewise.
29918 (TARGET_NO_STRIP): Likewise.
29919 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29920 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29921 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29922 (grub-emu): New target.
29923 (GRUB_EMU): New variable.
29924 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29925 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29926 * loader/xnu.c: Likewise.
29927 * include/grub/pci.h: Likewise.
29928 * genemuinit.sh: New file.
29929 * genemuinitheader.sh: Likewise.
29930 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29931 Support TARGET_NO_DYNAMIC_MODULES.
29932 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29933 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29934 * disk/loopback.c: Likewise.
29935 * font/font_cmd.c: Likewise.
29936 * partmap/acorn.c: Likewise.
29937 * partmap/amiga.c: Likewise.
29938 * partmap/apple.c: Likewise.
29939 * partmap/gpt.c: Likewise.
29940 * partmap/msdos.c: Likewise.
29941 * partmap/sun.c: Likewise.
29942 * parttool/msdospart.c: Likewise.
29943 * term/gfxterm.c: Likewise.
29944 * video/bitmap.c: Likewise.
29945 * video/readers/jpeg.c: Likewise.
29946 * video/readers/png.c: Likewise.
29947 * video/readers/tga.c: Likewise.
29948 * video/video.c: Likewise.
29949 * util/grub-emu.c (read_command_list): Removed.
29950 (main): Don't call util_init_nls.
29951 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29952 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29953
91fdd2ed
VS
299542010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29955
29956 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29957 date.mod, datehook.mod.
29958 (datetime_mod_SOURCES): New variable.
29959 (datetime_mod_CFLAGS): Likewise.
29960 (datetime_mod_LDFLAGS): Likewise.
29961 (date_mod_SOURCES): Likewise.
29962 (date_mod_CFLAGS): Likewise.
29963 (date_mod_LDFLAGS): Likewise.
29964 (datehook_mod_SOURCES): Likewise.
29965 (datehook_mod_CFLAGS): Likewise.
29966 (datehook_mod_LDFLAGS): Likewise.
29967 * conf/sparc64-ieee1275.rmk: Likewise.
29968 * lib/ieee1275/datetime.c: New file.
29969
873ccae6
VS
299702010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29971
29972 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29973 (ieee1275_fb_mod_SOURCES): New variable.
29974 (ieee1275_fb_mod_CFLAGS): Likewise.
29975 (ieee1275_fb_mod_LDFLAGS): Likewise.
29976 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29977 New proto.
29978 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29979 (HEAP_MAX_ADDR): Likewise.
29980 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29981 type.
29982 Correct stop condition.
29983 (grub_ieee1275_devices_iterate): New function.
29984 * video/ieee1275.c: New file.
29985
601c97c0
VS
299862010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29987
29988 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29989
29990 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29991 as scratch.
29992 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29993 SCRATCH_PAD_DISKBOOT as scratch.
29994 (bootit): Pass Openfirmware pointer in %o4.
29995 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29996 of 0x200000.
29997 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29998 with util/grub-mkrawimage.c.
29999 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30000 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30001 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30002 (grub_aout_load) [GRUB_UTIL]: Likewise.
30003 * include/grub/kernel.h (grub_modules_get_end): New proto.
30004 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30005 (SCRATCH_PAD_BOOT): New definition.
30006 (SCRATCH_PAD_DISKBOOT): Likewise.
30007 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30008 * include/grub/sparc64/ieee1275/ieee1275.h
30009 (grub_ieee1275_original_stack): New variable
30010 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30011 New definition
30012 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30013 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30014 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30015 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30016 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30017 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30018 (grub_platform_image_format_t): New type.
30019 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30020 * kern/main.c (grub_modules_get_end)
30021 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30022 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30023 (codestart): Switch stacks.
30024 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30025 variable.
30026 (grub_heap_init): Use grub_modules_get_end.
30027 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30028 stack.
30029 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30030 (main): Likewise.
30031 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30032
d68b491e
TG
300332010-03-14 Thorsten Glaser <tg@mirbsd.org>
30034
30035 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30036
4e02ed50
MK
300372010-03-08 Matt Kraai <kraai@ftbfs.org>
30038
30039 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30040 bug #559005).
30041
1f15fc1e
VS
300422010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30043
30044 * genmoddep.awk: Output all missing symbols and not only first.
30045
fce5d8ff
VS
300462010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30047
30048 * NEWS: Put the date of 1.98 release.
30049
d1e8a02f
VS
300502010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30051
30052 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30053 ft2build.h.
30054
696fd607
VS
300552010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30056
30057 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30058 completition in the middle of string.
30059
33e2e6f3
VS
300602010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30061
30062 * util/grub-mkrescue.in: Use mktemp with explicit template.
30063
b1f6d291
VS
300642010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30065
30066 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30067
2ac227c7
VS
300682010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30069
30070 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30071 right pointer.
30072
8f9a632b
VS
300732010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30074
30075 Fix FreeBSD compilation.
30076
30077 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30078 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30079
60b03859
VS
300802010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30081
30082 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30083
48a5a769
VS
300842010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30085
30086 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30087
3ab4bd77
VS
300882010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30089
30090 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30091
d116e0d8
RM
300922010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30093
30094 Support relative image path in theme file.
30095
30096 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30097 (image_set_property): Handle theme_dir and relative path.
30098
c7ef54aa
VS
300992010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30100
30101 * configure.ac: Alias amd64 to x86_64.
30102
fcee14ed
VS
301032010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30104
30105 * NEWS: mention multiboot on EFI.
30106
d0780363
VS
301072010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30108
30109 * kern/main.c (grub_load_modules): Handle errors from init functions of
30110 embeded modules.
30111
41168ea4
VS
301122010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30113
30114 * normal/autofs.c (autoload_fs_module): Handle errors.
30115
b54d93ac
VS
301162010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30117
30118 Disable linux.mod on qemu-mips since it's not functional and leads
30119 to compilation failure.
30120
30121 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30122 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30123 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30124 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30125 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30126 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30127 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30128 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30129 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30130 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30131 Reported by: BVK Chaitanya
30132
fc8345da
JU
301332010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30134
30135 * INSTALL: Add gettext as a dependency and add qemu to a new section
30136 "Prerequisites for make-check".
30137
4760f979
CF
301382010-03-04 Christian Franke <franke@computer.org>
30139
30140 * util/grub-pe2elf.c: Add missing include "progname.h".
30141
f209b5b2
VS
301422010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30143
30144 * normal/crypto.c (read_crypto_list): Fix a typo.
30145 Reported by: Seth Goldberg.
30146
b4b7be98
VS
301472010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30148
30149 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 30150 Reported by: Seth Goldberg.
b4b7be98 30151
c0ee0385
VS
301522010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30153
30154 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30155 ascii.bitmaps.
30156
a8efbf64
VS
301572010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30158
30159 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 30160 Reported by: Seth Goldberg.
a8efbf64 30161
08dcd913
VS
301622010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30163
30164 * util/i386/efi/grub-install.in: Copy gettext files.
30165
c4d0b332
VS
301662010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30167
30168 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30169
c6f2fe52
VS
301702010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30171
30172 Wait for user entry basing on presence of output rather than on errors.
30173
30174 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30175 (grub_install_newline_hook): Likewise.
30176 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30177 * normal/menu.c (show_menu): Check line_counter to determine presence
30178 of output.
30179 * normal/term.c (grub_normal_line_counter): New variable.
30180 (grub_normal_get_line_counter): New function.
30181 (grub_install_newline_hook): Likewise.
30182
5382b1e4
VS
301832010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30184
30185 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30186
5519963b
VS
301872010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30188
30189 * configure.ac: Update version to 1.98.
30190
72b28631
VS
301912010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30192
30193 * util/grub.d/10_linux.in (linux_entry): Don't default to
30194 gfxpayload=keep if Linux doesn't support video handover.
30195
c140a180
VS
301962010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30197
30198 Don't compile video modules on yeeloong since video subsystem is part
30199 of kernel.
30200
30201 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30202 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30203 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30204 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30205 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30206 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30207 * include/grub/bitmap_scale.h: Likewise.
30208 * include/grub/bufio.h: Likewise.
30209 * include/grub/font.h: Likewise.
30210 * include/grub/gfxterm.h: Likewise.
30211 * include/grub/video.h: Likewise.
30212 * include/grub/vbe.h: Don't include video_fb.h.
30213 * video/i386/pc/vbe.c: Include video_fb.h.
30214 * commands/i386/pc/vbetest.c: Include video.h.
30215
a0ca21c2
CW
302162010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30217
30218 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30219 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30220 default entry if GRUB_SAVEDEFAULT=true. This allows using
30221 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30222 saving a new default on every boot.
30223
4a8a763c
VS
302242010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30225
30226 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30227 * normal/term.c (read_terminal_list): Likewise.
30228 * normal/main.c (grub_normal_init_page): Likewise.
30229 (grub_normal_read_line_real): Likewise.
30230
607ffde2
VS
302312010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30232
30233 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30234 memory leak.
30235 Reported by: Seth Goldberg.
30236
2b8fa975
CW
302372010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30238
30239 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30240 duplicate declaration of `start'.
30241
618307dd
VS
302422010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30243
30244 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30245 filename.
30246 Reported by: Georgy Buranov
30247
7dd05b96 302482010-02-20 Carles Pina i Estany <carles@pina.cat>
30249
30250 * util/grub-mkrawimage.c (usage): Change string formatting to
30251 improve gettext.
30252
d1484a42
MRA
302532010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30254
30255 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30256 backspace keys.
30257
42b1d186
VS
302582010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30259
30260 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30261 Reported by: Michael Suchanek.
30262
302632010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
30264
30265 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30266 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30267
d9f31a41
VS
302682010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30269
30270 Remove any reference to non-free fonts.
30271
30272 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30273 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30274 uses non-free components.
30275 * font/font.c (grub_font_get_name): Remove example name.
30276 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30277 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30278 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30279 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30280
2793c71e
GB
302812010-02-16 Georgy Buranov <gburanov@gmail.com>
30282
30283 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30284
402e3779
VS
302852010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30286
30287 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30288 Double divisor.
30289 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30290 features.
30291 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30292
0dd1e0dd
VS
302932010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30294
30295 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30296
6fa7cfce
ST
302972010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30298
30299 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30300 * docs/grub.texi (Command-line and menu entry commands): Document play
30301 command.
30302
37c8483b
ST
303032010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30304
30305 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30306 parse arguments as inline tempo and notes. Move code for playing notes
30307 to...
30308 (play): ... new function.
30309
14da0fb7
ST
303102010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30311
30312 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30313 grub_uint16_t instead of short.
30314 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30315 disk from little endian to cpu endianness.
30316
04459e70
ST
303172010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30318
30319 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30320 GRUB_TICKS_PER_SECOND instead of 120.
30321
a0876943
VS
303222010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30323
30324 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30325 escape sequence after \e.
30326
e29f95dc
VS
303272010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30328
30329 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30330 non-ASCII characters.
30331
d27859b2
VS
303322010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30333
30334 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30335 set root in single quotes to prevent \, from being unescaped.
30336
bc028f2f
VS
303372010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30338
30339 Prevent unknown commands from stopping menuentry execution.
30340
30341 * script/execute.c (grub_script_execute_cmdline): Print error after
30342 unknown command.
30343
095f5f82
VS
303442010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30345
30346 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30347 Reported by: Pavel Pisa.
30348
8c717950
VS
303492010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30350
30351 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30352
904935c3
VS
303532010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30354
30355 Merge grub_ieee1275_map_physical into grub_map and rename to
30356 grub_ieee1275_map
30357
30358 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30359 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30360 Remove.
30361 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30362 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30363 necessary.
30364 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30365
5b59a4e3
VS
303662010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30367
30368 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30369 opening and not after.
30370
69e137e8
VS
303712010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30372
30373 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30374 constants.
30375
2c0fcc36
VS
303762010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30377
30378 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30379 (alloc_phys): Use ALIGN_UP instead of align_addr.
30380
8c6052ce
VS
303812010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30382
30383 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30384
17cec782
VS
303852010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30386
30387 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30388
e0128bbd
VS
303892010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30390
30391 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30392 verbose dprintf.
30393
ca62070b
VS
303942010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30395
30396 Fix over-4GiB seek on sparc64.
30397
30398 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30399 Replace pos_i and pos_lo with pos. All users updated.
30400 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30401 New constant.
30402 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30403 Likewise.
30404 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30405 and pos_lo.
30406
bdca2607
VS
304072010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30408
30409 * util/grub-mkrawimage.c (main): Call set_program_name.
30410
da278c4d
VS
304112010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30412
30413 Properly align 64-bit targets.
30414
30415 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30416 (generate_image): Use ALIGN_ADDR.
30417
b274d734
VS
304182010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30419
30420 Properly create cross-endian images.
30421
30422 * include/grub/types.h (grub_host_to_target_addr): New macro
30423 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30424
82da2062
VS
304252010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30426
30427 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30428
7cae4377
VS
304292010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30430
30431 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30432
30433 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30434 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30435 (grub_linux_boot): Divide by 64K when on VESA.
30436
65a533e7
VS
304372010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30438
30439 Support GRUB_GFXPAYLOAD_LINUX.
30440
30441 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30442 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30443
dd01d397
VS
304442010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30445
30446 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30447 to show messages instead of discarding them.
30448 Process errors after executing command and not before. Keep old method
30449 too as precaution.
30450
660960d6
VS
304512010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30452
30453 * configure.ac: Check for ft2build.h.
30454
62509f04
VS
304552010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30456
30457 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30458
473df63d
VS
304592010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30460
30461 * genkernsyms.sh.in: Use TARGET_CC.
30462
c98d2a13
CW
304632010-02-07 Colin Watson <cjwatson@ubuntu.com>
30464
30465 * NEWS: Update.
30466
6e14234c
VS
304672010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30468
30469 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
30470 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30471 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 30472
b255e9cf
YB
304732010-02-07 Yves Blusseau <blusseau@zetam.org>
30474
6e14234c 30475 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 30476
98e6959d
VS
304772010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30478
30479 Fix warnings in grub-emu when compiling with maximum warning options.
30480
30481 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30482 (grub_arch_modules_addr): Return 0 and not NULL.
30483 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 30484 (xstrdup): Use newstr instead of dup.
f88d801b
VS
30485 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30486 of disk to dsk to avoid shadowing.
74e4934e
VS
30487 (find_free_slot): Fix prototype.
30488 * util/getroot.c (grub_util_is_dmraid): Make static.
30489 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30490 Add missing prototype.
30491 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 30492
74e31b5c
VS
304932010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30494
30495 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30496 appropriately.
30497
6b2ad14b
VS
304982010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30499
30500 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30501 code out.
30502
8f891adc
VS
305032010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30504
30505 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30506 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30507 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30508 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30509 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30510 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30511
74b45184
VS
305122010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30513
30514 * include/grub/err.h (grub_err_printf): Don't export.
30515
a4bced77
VS
305162010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30517
30518 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30519
007d0695
VS
305202010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30521
30522 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30523 * kern/misc.c (grub_gettext_dummy): Make static.
30524
b6c0d9c2
VS
305252010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30526
30527 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30528 by non-valid ones.
30529 * kern/term.c (grub_putchar): Likewise.
30530
f51a90d0
VS
305312010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30532
30533 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30534 buggy hook call and memory leak.
30535
6846cec5
VS
305362010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30537
30538 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30539
468d69fe
VS
305402010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30541
30542 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30543
51906b8c
VS
305442010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30545
30546 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30547 modevar.
30548 Return grub_errno on allocation error.
30549
09706ce5
VS
305502010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30551
30552 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30553
911df80c
YB
305542010-02-06 Yves Blusseau <blusseau@zetam.org>
30555
30556 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30557 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30558
3746a6bc
VS
305592010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30560
30561 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30562 non-pxe disk.
30563 (grub_pxefs_open): Likewise.
30564
09706ce5
VS
305652010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30566
30567 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30568 * util/grub.d/10_kfreebsd.in: Likewise.
30569 * util/grub.d/10_linux.in: Likewise.
30570
7cc192d9
VS
305712010-02-06 Colin D Bennett <colin@gibibit.com>
30572
30573 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30574 (gfxmenu_mod_SOURCES): New variable.
30575 (gfxmenu_mod_CFLAGS): Likewise.
30576 (gfxmenu_mod_LDFLAGS): Likewise.
30577 * include/grub/term.h (grub_term_set_current_output): Declare
30578 argument as const.
30579 * docs/gfxmenu-theme-example.txt: New file.
30580 * gfxmenu/gfxmenu.c: Likewise.
30581 * gfxmenu/gui_box.c: Likewise.
30582 * gfxmenu/gui_canvas.c: Likewise.
30583 * gfxmenu/gui_circular_progress.c: Likewise.
30584 * gfxmenu/gui_image.c: Likewise.
30585 * gfxmenu/gui_label.c: Likewise.
30586 * gfxmenu/gui_list.c: Likewise.
30587 * gfxmenu/gui_progress_bar.c: Likewise.
30588 * gfxmenu/gui_string_util.c: Likewise.
30589 * gfxmenu/gui_util.c: Likewise.
30590 * gfxmenu/icon_manager.c: Likewise.
30591 * gfxmenu/model.c: Likewise.
30592 * gfxmenu/named_colors.c: Likewise.
30593 * gfxmenu/theme_loader.c: Likewise.
30594 * gfxmenu/view.c: Likewise.
30595 * gfxmenu/widget-box.c: Likewise.
30596 * include/grub/gfxmenu_model.h: Likewise.
30597 * include/grub/gfxmenu_view.h: Likewise.
30598 * include/grub/gfxwidgets.h: Likewise.
30599 * include/grub/gui.h: Likewise.
30600 * include/grub/gui_string_util.h: Likewise.
30601 * include/grub/icon_manager.h: Likewise.
30602
306032010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30604
30605 Agglomerate scrolling in gfxterm.
30606
30607 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30608 (grub_virtual_screen_setup): Initialise 'total_screen'.
30609 (write_char): Split to ...
30610 (paint_char): ... this ...
30611 (write_char): ... and this.
30612 (paint_char): Handle delayed scrolling.
30613 (draw_cursor): Likewise.
30614 (scroll_up): Split to ...
30615 (real_scroll): ... this ...
30616 (scroll_up): ... and this.
30617 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30618 characters.
30619 (grub_gfxterm_refresh): Call real_scroll.
30620
306212010-02-06 Colin D Bennett <colin@gibibit.com>
30622
30623 * include/grub/misc.h (grub_iscntrl): New inline function.
30624 (grub_isalnum): Likewise.
30625 (grub_strtol): Likewise.
30626
306272010-02-06 Colin D Bennett <colin@gibibit.com>
30628
30629 * normal/menu_text.c (get_entry_number): Move from here ...
30630 * normal/menu.c (get_entry_number): ... moved here.
30631 * include/grub/menu.h (grub_menu_get_default_entry_index):
30632 New prototype.
30633 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30634 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30635 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30636 (grub_menu_viewer_should_return): Likewise.
30637 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30638 * normal/menu_text.c (run_menu): Enable menu switching.
30639 * normal/menu_viewer.c (should_return): New variable.
30640 (menu_viewer_changed): Likewise.
30641 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30642 (grub_menu_viewer_should_return): New function.
30643 (menuviewer_write_hook): Likewise.
30644 (grub_menu_viewer_init): Likewise.
30645
306462010-02-06 Colin D Bennet <colin@gibibit.com>
306472010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30648
30649 Support for gfxterm in a window.
30650
30651 * include/grub/gfxterm.h: New file.
30652 * include/grub/video.h (struct grub_video_rect): New declaration.
30653 (grub_video_rect_t): Likewise.
30654 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30655 (refcount): New variable.
30656 (render_target): Likewise.
30657 (window): Likewise.
30658 (repaint_callback): Likewise.
30659 (grub_virtual_screen_setup): Use 'render_target'.
30660 (init_window): New function.
30661 (grub_gfxterm_init_window): Likewise.
30662 (grub_gfxterm_init): Check reference counter.
30663 Use init_window.
30664 (destroy_window): New function.
30665 (grub_gfxterm_destroy_window): Likewise.
30666 (grub_gfxterm_fini): Check reference counter.
30667 Use destroy_window.
30668 (redraw_screen_rect): Restore viewport.
30669 Use 'render_target' and 'window'.
30670 Call 'repaint_callback'.
30671 (write_char): Use 'render_target'.
30672 (draw_cursor): Likewise.
30673 (scroll_up): Restore viewport.
30674 Use 'render_target' and 'window'.
30675 Call 'repaint_callback'.
30676 (grub_gfxterm_cls): Likewise.
30677 (grub_gfxterm_refresh): Use 'window'.
30678 (grub_gfxterm_set_repaint_callback): New function.
30679 (grub_gfxterm_background_image_cmd): Use 'window'.
30680 (grub_gfxterm_get_term): New function.
30681 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30682
306832010-02-06 Colin D Bennett <colin@gibibit.com>
30684
30685 Bitmap scaling support.
30686
30687 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30688 (bitmap_scale_mod_SOURCES): New variable.
30689 (bitmap_scale_mod_CFLAGS): Likewise.
30690 (bitmap_scale_mod_LDFLAGS): Likewise.
30691 * include/grub/bitmap_scale.h: New file.
30692 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30693 (background_image_cmd_options): New variable.
30694 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30695 (cmd): Rename and change type to ...
30696 (background_image_cmd_handle): ... this. All users updated.
30697 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30698 * video/bitmap_scale.c: New file.
30699
307002010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30701
30702 SDL support.
30703
30704 * Makefile.in (LIBSDL): New variable.
30705 (enable_grub_emu_sdl): Likewise.
30706 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30707 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30708 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30709 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30710 * util/sdl.c: New file.
30711
307122010-02-06 Colin D Bennett <colin@gibibit.com>
307132010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30714
30715 Double buffering support.
30716
30717 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30718 * include/grub/video.h: Update comment.
30719 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30720 New type.
30721 (grub_video_fb_doublebuf_blit_init): New prototype.
30722 * term/gfxterm.c (scroll_up): Support double buffering.
30723 (grub_gfxterm_refresh): Likewise.
30724 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30725 (grub_video_fb_doublebuf_blit_init): Likewise.
30726 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30727 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30728 'displayed_page', 'render_page' and 'update_screen'.
30729 (grub_video_vbe_fini): Free offscreen buffer.
30730 (doublebuf_pageflipping_commit): New function.
30731 (doublebuf_pageflipping_update_screen): Likewise.
30732 (doublebuf_pageflipping_init): Likewise.
30733 (double_buffering_init): Likewise.
30734 (grub_video_vbe_setup): Enable doublebuffering.
30735 (grub_video_vbe_swap_buffers): Implement.
30736 (grub_video_vbe_set_active_render_target): Handle double buffering.
30737 (grub_video_vbe_get_active_render_target): Likewise.
30738 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30739 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30740 (grub_video_vbe_enable_double_buffering): Likewise.
30741 (grub_video_vbe_swap_buffers): Use update_screen.
30742 (grub_video_set_mode): Use double buffering.
30743
307442010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30745
30746 * maintainance/gentrigtables.py: Remove.
30747 * lib/trig.c: Likewise.
30748
30749 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30750
30751 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30752 `trigtables.c'.
30753 (trigtables.c): New rule.
30754 (gentrigtables): Likewise.
30755 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30756
307572010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30758
30759 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30760 integer constants.
30761
307622010-02-06 Colin D Bennet <colin@gibibit.com>
30763
30764 Trigonometry support.
30765
30766 * include/grub/trig.h: New file.
30767 * lib/trig.c: Likewise.
30768 * maintainance/gentrigtables.py: Likewise.
30769 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30770 (trig_mod_SOURCES): New variable.
30771 (trig_mod_CFLAGS): Likewise.
30772 (trig_mod_LDFLAGS): Likewise.
30773
5562834e
VS
307742010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30775
30776 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30777 disk devices.
30778
4f8528fc
VS
307792010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30780
30781 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30782 error.
30783
2b4068e9
VS
307842010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30785
30786 * util/hostdisk.c (open_device): Don't use partition device when reading
30787 before the partition.
30788 (grub_util_biosdisk_read): Don't read from partition and before the
30789 partition in single operation.
30790 (grub_util_biosdisk_write): Don't write to partition and before the
30791 partition in single operation.
30792
399f6e4d
TL
307932010-02-03 Torsten Landschoff <torsten@debian.org>
30794
30795 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30796 last sectors.
30797
996649b0
VS
307982010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30799
30800 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30801 CDROM reads.
30802 (grub_biosdisk_write): Refuse to write to CDROM.
30803
3b205d4d
VS
308042010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30805
30806 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30807
61e89d9d
VS
308082010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30809
30810 * font/font.c (find_glyph): Check that bmp_idx is available before
30811 using it.
30812 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30813 with (font == NULL).
30814
bf7fcba2
CS
308152010-01-28 Christian Schmitt <chris@ilovelinux.de>
30816
30817 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30818
f45d2663
BC
308192010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30820
30821 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30822 * util/grub-script-check.c (getline): Fix empty lines case.
30823
ec1444e6
RM
308242010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30825
30826 * Makefile.in (check): Exit with fail status when one of the tests
30827 fails.
30828 * tests/example_functional_test.c (example_test): Fix reversed assert.
30829 * tests/example_unit_test.c (example_test): Likewise.
30830
2e1cb9bb
CW
308312010-01-28 Colin Watson <cjwatson@ubuntu.com>
30832
30833 * util/grub.d/10_linux.in: This script does not use any of the
30834 contents of gettext.sh, only the external command `gettext', so stop
30835 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30836 the same prefix as GRUB.)
30837 * util/grub.d/10_kfreebsd.in: Likewise.
30838
63533ab0
VS
308392010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30840
30841 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30842 of the line.
30843
989e1f93
VS
308442010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30845
30846 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30847 last sectors.
30848
e709ebe2
VS
308492010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30850
30851 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30852 having a 4KiB and not 32KiB buffer size.
30853
27dea7ed
RM
308542010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30855
30856 * util/hostfs.c: Include `<errno.h>'.
30857 (grub_hostfs_read): Handle errors from fseeko() and fread().
30858
67667b9c
RM
308592010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30860
30861 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30862 loop when using read hooks on files whose size isn't sector-aligned.
30863
c294d9d8
RM
308642010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30865
30866 Remove unused parameter.
30867
30868 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30869 (grub_iso9660_open): Remove initialization of `data->length'.
30870
af75a9f1
RM
308712010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30872
30873 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30874 memleak conditions.
30875
254e2ce5 308762010-01-27 Carles Pina i Estany <carles@pina.cat>
30877
30878 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30879 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30880
b510928c 308812010-01-26 Carles Pina i Estany <carles@pina.cat>
30882
30883 * util/bin2h.c (usage): Fix warning (space after backslash).
30884
aa2f9dd2 308852010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 30886
30887 * font/font.c: Include `grub/fontformat.h.
30888 Remove font file format constants.
30889 (grub_font_load): Use the new macros.
30890 * include/grub/fontformat.h: New file.
30891 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30892 (write_font_pf2): Use the new macros.
30893
94e7e712
RM
308942010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30895
30896 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30897 does.
30898
3973a59a
RM
308992010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30900
30901 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30902
30903 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30904 (_start): Macroify `0x7F'.
30905
30906 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30907 (make_install_device): Use "(pxe)" as fallback prefix when booting
30908 via PXE.
30909
42e0cba3
GS
309102010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30911
30912 * configure.ac: Reset LIBS after check for libgcc symbols.
30913
847effd8
CW
309142010-01-25 Colin Watson <cjwatson@ubuntu.com>
30915
30916 * util/hostdisk.c (open_device): Add trailing newline to debug
30917 message.
30918
ea4a7e35
GS
309192010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30920
30921 * configure.ac: Check for `limits.h'.
30922 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30923
67951a53
RM
309242010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30925
30926 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30927 capitalize error strings.
30928
c273d4ce
ST
309292010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30930
30931 * util/grub.d/10_hurd.in: Add a recovery mode.
30932
69be5b74
VS
309332010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30934
30935 * configure.ac: Check for libgcc symbols with -nostdlib.
30936
fc9e5810
BC
309372010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30938
30939 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30940
4b358c0a
VS
309412010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30942
30943 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30944 stack since heap may be unavailable at that point.
30945 (grub_ofconsole_gotoxy): Likewise.
30946
454fcd1c
VS
309472010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30948
30949 * configure.ac: Check for _restgpr_14_x.
30950 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30951 and _savegpr_* prototypes.
30952
566863ca
RM
309532010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30954
30955 Use generic grub_reboot() for i386-efi.
30956
30957 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30958 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30959 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30960
bf86e59a
VS
309612010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30962
30963 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30964 presence of "prefix" variable as it breaks when normal.mod is
30965 embedded.
30966
d645e0f8
VS
309672010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30968
30969 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30970 stack since heap is unavailable at that point.
30971
f9ab2e25
VS
309722010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30973
30974 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30975 (grub_freebsd_bootinfo): Rewritten.
30976 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30977
01fc7054
VS
309782010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30979
30980 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30981
caab4fd6
RM
309822010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30983
30984 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30985 domain now.
30986
67eb1427
FZ
309872010-01-20 Felix Zielcke <fzielcke@z-51.de>
30988
30989 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30990 around for handling "/" to the correct fix. Fix a memory leak. Use
30991 xstrdup instead of strdup.
30992
a9ed4ff3
VS
309932010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30994
30995 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30996
309972010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
30998
30999 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31000
31001 * font/font.c (struct grub_font): New member 'bmp_idx'.
31002 (font_init): Initialise 'bmp_idx'.
31003 (load_font_index): Fill 'bmp_idx'.
31004 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31005
48209f4f
VS
310062010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31007
31008 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31009 unnecessary calls.
31010
9f0a4bb7
VS
310112010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31012
31013 Move context handling out of the kernel.
31014
31015 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31016 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31017 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31018 * conf/i386-efi.rmk: Likewise.
31019 * conf/i386-ieee1275.rmk: Likewise.
31020 * conf/i386-pc.rmk: Likewise.
31021 * conf/powerpc-ieee1275.rmk: Likewise.
31022 * conf/sparc64-ieee1275.rmk: Likewise.
31023 * conf/x86_64-efi.rmk: Likewise.
31024 * include/grub/env.h: Include grub/menu.h.
31025 (grub_env_var_type): Removed.
31026 (grub_env_var): Replaced field 'type' with 'global'.
31027 (grub_env_find): New prototype.
31028 (grub_env_context_open): Remove EXPORT_FUNC.
31029 (grub_env_context_close): Likewise.
31030 (grub_env_export): Likewise.
31031 (grub_env_set_data_slot): Removed.
31032 (grub_env_get_data_slot): Likewise.
31033 (grub_env_unset_data_slot): Likewise.
31034 (grub_env_unset_menu): New prototype.
31035 (grub_env_set_menu): Likewise.
31036 (grub_env_get_menu): Likewise.
31037 * include/grub/env_private.h: New file.
31038 * include/grub/normal.h (grub_context_init): New prototype.
31039 (grub_context_fini): Likewise.
31040 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31041 * normal/context.c (grub_cmd_export): ... to here.
31042 * kern/env.c: Include env_private.h.
31043 (HASHSZ): Moved to include/grub/env_private.h.
31044 (grub_env_context): Likewise.
31045 (grub_env_sorted_var): Likewise.
31046 (current_context): Renamed from this ...
31047 (grub_current_context): ...to this. 'static' removed. All users updated.
31048 (grub_env_find): Removed 'static'.
31049 (grub_env_context_open): Moved to normal/context.c.
31050 (grub_env_context_close): Likewise.
31051 (grub_env_export): Likewise.
31052 (mangle_data_slot_name): Removed.
31053 (grub_env_set_data_slot): Likewise.
31054 (grub_env_get_data_slot): Likewise.
31055 (grub_env_unset_data_slot): Likewise.
31056 * kern/main.c (grub_set_root_dev): Don't export root.
31057 It will be done later.
31058 (grub_main): Don't export prefix.
31059 It will be done later.
31060 * normal/context.c: New file.
31061 * normal/main.c (free_menu): Use grub_env_unset_menu.
31062 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31063 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31064 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31065 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31066
8dd35b8c
VS
310672010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31068
31069 setpci support.
31070
31071 * commands/setpci.c: New file.
31072 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31073 (setpci_mod_SOURCES): New variable.
31074 (setpci_mod_CFLAGS): Likewise.
31075 (setpci_mod_LDFLAGS): Likewise.
31076
449193d5
VS
310772010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31078
31079 Byte-addressable PCI configuration space.
31080
31081 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31082 dword address.
31083 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31084 GRUB_PCI_REG_CACHELINE.
31085 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31086 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31087 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31088 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31089 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31090 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31091 grub_pci_make_address.
31092 (lock_rom_area): Likewise.
31093 * commands/lspci.c (grub_lspci_iter): Use macroses
31094 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31095 of grub_pci_make_address.
31096 * disk/ata.c (grub_ata_pciinit): Likewise.
31097 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31098 (GRUB_PCI_REG_VENDOR): Likewise.
31099 (GRUB_PCI_REG_DEVICE): Likewise.
31100 (GRUB_PCI_REG_COMMAND): Likewise.
31101 (GRUB_PCI_REG_STATUS): Likewise.
31102 (GRUB_PCI_REG_REVISION): Likewise.
31103 (GRUB_PCI_REG_CLASS): Likewise.
31104 (GRUB_PCI_REG_CACHELINE): Likewise.
31105 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31106 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31107 (GRUB_PCI_REG_BIST): Likewise.
31108 (GRUB_PCI_REG_ADDRESSES): Likewise.
31109 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31110 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31111 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31112 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31113 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31114 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31115 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31116 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31117 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31118 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31119 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31120 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31121 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31122 (GRUB_PCI_REG_MIN_GNT): Likewise.
31123 (GRUB_PCI_REG_MAX_LAT): Likewise.
31124 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31125 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31126 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 31127 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
31128 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31129 space.
31130
96d73208
RM
311312010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31132
31133 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31134 can be reliably determined to be supported.
31135
d4484482
RM
311362010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31137
31138 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31139 that VESA is supported.
31140 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31141 supported.
31142
00308ecf
VS
311432010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31144
31145 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31146
f66924a4
RM
311472010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31148
31149 * util/misc.c (make_system_path_relative_to_its_root): Work around
31150 special-casing of "/", as previous incarnation of this routine did.
31151
cbca0ada
VS
311522010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31153
31154 Fix any-emu compilation.
31155
31156 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31157 * grub_bin2h_SOURCES: New variable.
31158
34a66d99
RM
311592010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31160
31161 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31162
94fabf58
RM
311632010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31164
31165 * util/grub.d/00_header.in: Fix handling of locale_dir.
31166
02cf98ca
VS
311672010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31168
31169 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31170 as possible unifont location (Gentoo).
31171 Reported by: Alexander Brüning
31172
327dbcd7
VS
311732010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31174
31175 Don't try to generate lists for kernel.img.
31176
31177 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31178 (pkglib_MODULES): Remove kernel.img.
31179 (kernel_img_EXPORTS): Removed.
31180 (kernel_img_RELOCATABLE): New variable.
31181 * conf/x86_64-efi.rmk: Likewise.
31182 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31183
ca467290
VS
311842010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31185
31186 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31187 grub_xasprintf or grub_snprintf.
31188 (grub_vsprintf): Likewise.
31189 (grub_snprintf): New proto.
31190 (grub_vsnprintf): Likewise.
31191 (grub_xasprintf): Likewise.
31192 (grub_xvasprintf): Likewise.
31193 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31194 (grub_sprintf): Removed.
31195 (grub_vsnprintf): New function.
31196 (grub_snprintf): Likewise.
31197 (grub_xvasprintf): Likewise.
31198 (grub_xasprintf): Likewise.
31199 (grub_vsprintf): Renamed to ...
31200 (grub_vsnprintf_real): ...this. New argument max_len.
31201
aca655fd
BC
312022010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31203
31204 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31205 fix grub-script-check warning.
31206
7ee92c32
VS
312072010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31208
31209 * include/grub/font.h (grub_font_load): Fix prototype.
31210
f80927ca
VS
312112010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31212
31213 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31214
119c50ea
VS
312152010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31216
31217 * include/grub/x86_64/at_keyboard.h: New file.
31218
47d5f3c1
VS
312192010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31220
31221 * loader/mips/linux.c: Include missing grub/i18n.h.
31222
55ff5266
RM
312232009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31224
31225 * normal/menu.c (notify_execution_failure): Clarify error message.
31226
c893cc87
RM
312272009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31228
31229 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31230 return value (and revert all return statements). Update users.
31231
917dd370
CW
312322010-01-20 Dan Merillat <debian@dan.merillat.org>
31233
31234 * kern/device.c (grub_device_iterate): Allocate new part_ent
31235 structure based on sizeof (*p) rather than sizeof (p->next), to
31236 account for structure padding.
31237
31238 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31239 disk is NULL, which might happen for LVM physical volumes with no
31240 LVM signature.
31241
d4a4ee57
RM
312422009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31243
31244 * loader/mips/linux.c (grub_cmd_initrd)
31245 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31246
312472009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31248
31249 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31250 (grub_video_video_init, grub_video_bitmap_init)
31251 (grub_font_manager_init, grub_term_gfxterm_init)
31252 (grub_at_keyboard_init): New extern declarations.
31253 (grub_machine_init): Initialize gfxterm and at_keyboard.
31254
31255 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31256
31257 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31258 `gfxterm.mod' into core image.
31259
31260 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31261 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31262 (kernel_img_FORMAT): Copy to ...
31263
31264 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31265 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31266 (kernel_img_FORMAT): ... here, and ...
31267
31268 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31269 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31270 (kernel_img_FORMAT): ... here.
31271
31272 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31273 and input (at_keyboard) terminals in kernel.
31274 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31275
31276 (pkglib_MODULES): Remove `pci.mod'.
31277 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31278 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31279 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31280 (at_keyboard_mod_LDFLAGS): Remove variables.
31281
312822010-01-11 Felix Zielcke <fzielcke@z-51.de>
31283
31284 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31285
312862009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31287
31288 * include/grub/mips/libgcc.h: Only export symbols for functions
31289 that libgcc provides.
31290
312912009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31292
31293 MIPS support.
31294
31295 * bus/bonito.c: New file.
31296 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31297 GRUB_PCI_NUM_DEVICES.
31298 * term/i386/pc/serial.c: Move to ...
31299 * term/serial.c: ... here. All users updated.
31300 * util/i386/pc/grub-mkimage.c: Move to ...
31301 * util/grub-mkrawimage.c: ... here. All users updated.
31302 * term/i386/pc/at_keyboard.c: Move to ...
31303 * term/at_keyboard.c: ... here. All users updated.
31304 * conf/mips-qemu-mips.rmk: New file.
31305 * conf/mips-yeeloong.rmk: Likewise.
31306 * conf/mips.rmk: Likewise.
31307 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31308 mipsel-qemu-mips.
31309 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31310 to port addresses.
31311 (grub_ata_pciinit): Support CS5536.
31312 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31313 * font/font_cmd.c (loadfont_command): Open file before passing it to
31314 grub_font_load.
31315 (pseudo_file_read): New function.
31316 (pseudo_file_close): Likewise.
31317 (pseudo_fs): New structure.
31318 (load_font_module): New function.
31319 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31320 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31321 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31322 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31323 * include/grub/i386/at_keyboard.h: Split into ...
31324 * include/grub/at_keyboard.h: ... this ...
31325 * include/grub/i386/at_keyboard.h: ... and this.
31326 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31327 New prototype.
31328 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31329 updated.
31330 (grub_elf64_size): Likewise.
31331 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31332 filename.
31333 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31334 * include/grub/i386/coreboot/serial.h: Rewritten.
31335 * include/grub/i386/ieee1275/serial.h: Include
31336 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31337 * include/grub/i386/pc/serial.h: Moved from here ...
31338 * include/grub/serial.h: ... to here. All users updated.
31339 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31340 (GRUB_PCI_NUM_BUS): Likewise.
31341 (GRUB_PCI_NUM_DEVICES): Likewise.
31342 (grub_pci_device_map_range): Add missing volatile keyword.
31343 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31344 * include/grub/mips/at_keyboard.h: New file.
31345 * include/grub/mips/cache.h: Likewise.
31346 * include/grub/mips/io.h: Likewise.
31347 * include/grub/mips/kernel.h: Likewise.
31348 * include/grub/mips/libgcc.h: Likewise.
31349 * include/grub/mips/pci.h: Likewise.
31350 * include/grub/mips/qemu-mips/boot.h: Likewise.
31351 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31352 * include/grub/mips/qemu-mips/loader.h: Likewise.
31353 * include/grub/mips/qemu-mips/memory.h: Likewise.
31354 * include/grub/mips/qemu-mips/serial.h: Likewise.
31355 * include/grub/mips/qemu-mips/time.h: Likewise.
31356 * include/grub/mips/relocator.h: Likewise.
31357 * include/grub/mips/time.h: Likewise.
31358 * include/grub/mips/types.h: Likewise.
31359 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31360 * include/grub/mips/yeeloong/boot.h: Likewise.
31361 * include/grub/mips/yeeloong/kernel.h: Likewise.
31362 * include/grub/mips/yeeloong/loader.h: Likewise.
31363 * include/grub/mips/yeeloong/memory.h: Likewise.
31364 * include/grub/mips/yeeloong/pci.h: Likewise.
31365 * include/grub/mips/yeeloong/serial.h: Likewise.
31366 * include/grub/mips/yeeloong/time.h: Likewise.
31367 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31368 * kern/elf.c (grub_elf32_size): New parameter. All users
31369 updated.
31370 (grub_elf64_size): Likewise.
31371 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31372 Load modules before saying "Welcome to GRUB!".
31373 Call grub_refresh after saying "Welcome to GRUB!".
31374 * kern/mips/cache.S: New file.
31375 * kern/mips/cache_flush.S: Likewise.
31376 * kern/mips/dl.c: Likewise.
31377 * kern/mips/init.c: Likewise.
31378 * kern/mips/qemu-mips/init.c: Likewise.
31379 * kern/mips/startup.S: Likewise.
31380 * kern/mips/yeeloong/init.c: Likewise.
31381 * kern/term.c (grub_putcode): Handle NULL terminal.
31382 (grub_getcharwidth): Likewise.
31383 (grub_getkey): Likewise.
31384 (grub_checkkey): Likewise.
31385 (grub_getkeystatus): Likewise.
31386 (grub_getxy): Likewise.
31387 (grub_getwh): Likewise.
31388 (grub_gotoxy): Likewise.
31389 (grub_cls): Likewise.
31390 (grub_setcolorstate): Likewise.
31391 (grub_setcolor): Likewise.
31392 (grub_getcolor): Likewise.
31393 (grub_refresh): Likewise.
31394 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31395 (write_jump): Add hatch nop.
31396 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31397 * lib/mips/setjmp.S: New file.
31398 * loader/mips/linux.c: Likewise.
31399 * term/i386/pc/at_keyboard.c: Move from here ...
31400 * term/at_keyboard.c: ... to here.
31401 * term/i386/pc/serial.c: Moved from here ...
31402 * term/serial.c: ... to here. All users updated.
31403 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31404 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31405 (serial_translate_key_sequence): Avoid deadlock.
31406 (grub_serial_getkey): Handle backspace.
31407 (grub_serial_putchar): Fix newline handling.
31408 * util/i386/pc/grub-mkimage.c: Move from here ...
31409 * util/grub-mkrawimage.c: ... to here. All users updated.
31410 (generate_image): New parameters 'font_path' and 'format'.
31411 Support embedding font.
31412 Use grub_host_to_target* instead of grub_cpu_to_le*.
31413 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31414 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31415 (options): New option "--font".
31416 (usage): Likewise.
31417 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31418 (main): Handle "--font".
31419 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31420 (grub_virtual_screen_setup): Set bg_color_display.
31421 (redraw_screen_rect): Use bg_color_display instead of incorrect
31422 bg_color.
31423 (grub_gfxterm_cls): Likewise.
31424 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31425 Support embedding config file.
31426 (add_segments): Likewise.
31427 (options): New option "--config".
31428 (main): Handle "--config".
31429 * video/sm712.c: New file.
31430
25c2b5b3
RM
314312010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31432
31433 Fix parallel builds.
31434
31435 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31436 font.c depend on ascii.h).
31437
314382010-01-12 Carles Pina i Estany <carles@pina.cat>
31439
31440 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31441
314422010-01-11 Carles Pina i Estany <carles@pina.cat>
31443
31444 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31445 By default: disabled.
31446 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31447 parameter.
31448
314492010-01-10 Carles Pina i Estany <carles@pina.cat>
31450
31451 * font/font.c: Update copyright years.
31452 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31453
314542010-01-10 Carles Pina i Estany <carles@pina.cat>
31455
31456 * font/font.c: Include `ascii.h'.
31457 (ASCII_BITMAP_SIZE): New macro.
31458 (ascii_font_glyph): Define.
31459 (ascii_glyph_lookup): New function.
31460 (grub_font_get_string_width): Change comment. If glyph not found, use
31461 ascii_glyph_lookup.
31462 (grub_font_get_glyph_with_fallback): If glyph not available returns
31463 ascii_glyph_lookup.
31464 * util/grub-mkfont.c (file_formats): New enum.
31465 (options): Add `ascii-bitmaps' new option.
31466 (usage): Add `asii-bitmaps' new option.
31467 (write_font_ascii_bitmap): New function.
31468 (write_font): Rename to ...
31469 (write_font_p2): ... this. Remove print_glyphs call.
31470 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31471 used. Call print_glyphs.
31472 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31473
314742010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31475
31476 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31477 (grub_bin2h_SOURCES): New variable.
31478 * util/bin2h.c: New file.
31479
915fc1b8
VS
314802010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31481
31482 * include/multiboot.h: Resynced with spec.
31483 * include/multiboot2.h: Likewise.
31484 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31485 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31486
9444b678
RM
314872010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31488
31489 * include/grub/term.h (grub_term_register_input,
31490 grub_term_register_output): Check return of terminal init()
31491 routines, and abort if errors are raised.
31492
31493 * commands/terminal.c: Update copyright year.
31494
cba98e8d
RM
314952010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31496
31497 * commands/terminal.c (grub_cmd_terminal_input)
31498 (grub_cmd_terminal_output): Check return of terminal init()
31499 routines, and abort if errors are raised.
31500
6f7db5d6
VS
315012010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31502
31503 * include/grub/i386/bsd.h: Fix include pathes.
31504
262bff8d
VS
315052010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31506
31507 Add missing *BSD copyright headers.
31508
31509 * include/grub/aout.h: Add BSD licence.
31510 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31511 * include/grub/i386/freebsd_linker.h: ... here,
31512 * include/grub/i386/freebsd_reboot.h: ... here,
31513 * include/grub/i386/netbsd_bootinfo.h: ... here,
31514 * include/grub/i386/netbsd_reboot.h: ... here,
31515 * include/grub/i386/openbsd_bootarg.h: ... here,
31516 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31517 licence to each file.
31518
b2cab848
RM
315192010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31520
31521 * acinclude.m4: Remove `nop' assembly instruction; it's not
31522 implemented by all architectures.
31523
2cb6be4b
RM
315242010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31525
31526 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31527 ELILO. This is no longer necessary.
31528
a2eaee15
BC
315292010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31530
31531 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31532
31533 * util/grub-script-check.c: grub-script-check tool.
31534 * conf/common.rmk: Make rules for grub-script-check.
31535
88d17012
RM
315362010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31537
31538 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31539 spotting it back in 2008. Shame on me for forgetting he did.
31540
31541 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31542
8040619d
RM
315432010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31544
31545 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31546 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31547 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31548 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31549 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31550 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31551
a0c2a0f6
RM
315522010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31553
31554 * include/grub/test.h: Add license header.
31555 * tests/example_functional_test.c: Likewise.
31556 * tests/example_unit_test.c: Likewise.
31557 * tests/lib/functional_test.c: Likewise.
31558 * tests/lib/test.c: Likewise.
31559 * tests/lib/unit_test.c: Likewise.
31560
b0b13907
VS
315612010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31562
31563 Use flag-based instead of hook-based video mode selection and "auto"
31564 keyword.
31565
31566 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31567 (grub_video_set_mode): Changed prototype. All users updated.
31568 (grub_video_check_mode_flag): New inline function.
31569 * video/video.c (parse_modespec): New function.
31570 (grub_video_set_mode): Parse flags and keywords.
31571
ea379330 315722010-01-17 Carles Pina i Estany <carles@pina.cat>
31573
31574 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31575 fprintf call.
31576
e15c215e
FZ
315772010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31578
31579 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31580
409ae1c9 315812010-01-16 Carles Pina i Estany <carles@pina.cat>
31582
31583 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31584 string.
31585 * util/grub-emu.c (usage): Likewise.
31586 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31587 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31588 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31589 * util/i386/pc/grub-setup.c (usage): Likewise.
31590
70a14d3d 315912010-01-16 Carles Pina i Estany <carles@pina.cat>
31592
31593 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31594 the message.
31595 (grub_util_info): Likewise.
31596 (grub_util_error): Likewise.
31597 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31598 and/or new lines in `grub_util_warna', `grub_util_info',
31599 `grub_util_error' calls.
31600 * util/getroot.c: Likewise.
31601 * util/grub-editenv.c: Likewise.
31602 * util/grub-emu.c: Likewise.
31603 * util/grub-fstest.c: Likewise.
31604 * util/grub-mkdevicemap.c: Likewise.
31605 * util/grub-mkfont.c: Likewise.
31606 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31607 * util/grub-mkrelpath.c: Likewise.
31608 * util/grub-pe2elf.c: Likewise.
31609 * util/grub-probe.c: Likewise.
31610 * util/hostdisk.c: Likewise.
31611 * util/i386/efi/grub-mkimage.c: Likewise.
31612 * util/i386/pc/grub-mkimage.c: Likewise.
31613 * util/i386/pc/grub-setup.c: Likewise.
31614 * util/ieee1275/ofpath.c: Likewise.
31615 * util/mkisofs/eltorito.c: Likewise.
31616 * util/mkisofs/rock.c: Likewise.
31617 * util/mkisofs/write.c: Likewise.
31618 * util/raid.c: Likewise.
31619 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31620 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31621
a0b766fc
VS
316222010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31623
31624 Enable multiboot on non-pc.
31625
31626 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31627 multiboot.mod and multiboot2.mod to ...
31628 * conf/i386.rmk (pkglib_MODULES): ... here.
31629 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31630 Moved to ...
31631 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31632 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31633 Moved to ...
31634 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31635 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31636 Moved to ...
31637 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31638 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31639 Moved to ...
31640 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31641 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31642 relocator.mod.
31643 (ata_mod_SOURCES): Removed.
31644 (ata_mod_CFLAGS): Likewise.
31645 (ata_mod_LDFLAGS): Likewise.
31646 (relocator_mod_SOURCES): Removed.
31647 (relocator_mod_CFLAGS): Likewise.
31648 (relocator_mod_ASFLAGS): Likewise.
31649 (relocator_mod_LDFLAGS): Likewise.
31650 Include i386.mk.
31651 * include/grub/x86_64/multiboot.h: New file.
31652 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31653 Terminate EFI.
31654
884ade56
VS
316552010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31656
31657 Video multiboot support.
31658
31659 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31660 New prototype.
31661 * include/multiboot.h: Resynced with multiboot specification.
31662 * include/multiboot2.h: Likewise.
31663 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31664 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31665 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31666 (HAS_VGA_TEXT): Likewise.
31667 (accepts_video): New variable.
31668 (grub_multiboot_set_accepts_video): New function.
31669 (grub_multiboot_get_mbi_size): Account for video structures.
31670 (set_video_mode): New function.
31671 (retrieve_video_parameters): Likewise.
31672 (grub_multiboot_make_mbi): Fill video fields.
31673
0d90e8a6
VS
316742010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31675
31676 Video driver ids.
31677
31678 * include/grub/video.h (grub_video_driver_id): New type.
31679 (grub_video_adapter): New member 'id'. All users updated.
31680 (grub_video_get_driver_id): New proto.
31681 * video/video.c (grub_video_get_driver_id): New function.
31682
5c71db1b 316832010-01-14 Carles Pina i Estany <carles@pina.cat>
31684
31685 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31686 `var=val'.
31687
cca15b52 316882010-01-14 Carles Pina i Estany <carles@pina.cat>
31689
31690 * normal/cmdline.c (print_completion): Gettextizze.
31691
c586fbb2 316922001-01-14 Carles Pina i Estany <carles@pina.cat>
31693
31694 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31695
ba2f6848 316962010-01-14 Carles Pina i Estany <carles@pina.cat>
31697
31698 * gettext/gettext.c (grub_gettext_translate): Push and pop
31699 grub_errno.
31700 (grub_gettext_delete_list): Change comment style.
31701 * kern/err.c (grub_error): Gettextizze.
31702 (grub_fatal): Gettextizze.
31703
0a46429a
RM
317042010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31705
31706 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31707 (grub_linux16_real_boot): ... this.
31708 * kern/i386/loader.S: Likewise.
31709 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31710 (grub_linux16_boot): New function. Switches to text mode and calls
31711 grub_linux16_real_boot().
31712
31713 * loader/i386/bsd.c: Include `<grub/video.h>'.
31714 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31715 text mode before calling grub_unix_real_boot().
31716
31717 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31718 (grub_multiboot_boot): Switch to text mode before calling
31719 grub_relocator32_boot().
31720
31721 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31722 (grub_chainloader_boot): Switch to text mode before calling
31723 grub_chainloader_real_boot().
31724
d6f93a66
RM
317252010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
317262010-01-05 Colin Watson <cjwatson@ubuntu.com>
31727
31728 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31729 non-empty value.
31730
317312010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
317322010-01-05 Colin Watson <cjwatson@ubuntu.com>
31733
31734 * util/grub.d/00_header.in: Define a "savedefault" function for use
31735 in menu entries.
31736 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31737
317382010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
317392010-01-05 Colin Watson <cjwatson@ubuntu.com>
31740
31741 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31742 saved_entry if boot_once is unset.
31743 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31744 previous saved entry (i.e. grub-reboot).
31745
317462009-12-08 Colin Watson <cjwatson@ubuntu.com>
31747
31748 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31749
317502009-12-08 Colin Watson <cjwatson@ubuntu.com>
31751
31752 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31753 `var=val'.
31754 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31755
317562009-12-08 Colin Watson <cjwatson@ubuntu.com>
31757
31758 * util/grub-reboot.in: Fix --version output.
31759 * util/grub-set-default.in: Likewise.
31760
317612009-12-08 Colin Watson <cjwatson@ubuntu.com>
31762
31763 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31764 blocks.
31765
317662009-12-08 Colin Watson <cjwatson@ubuntu.com>
31767
31768 * util/grub.d/00_header.in: Quote the value assigned to `default',
31769 in case it contains spaces.
31770
317712009-12-08 Colin Watson <cjwatson@ubuntu.com>
31772
31773 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31774 `save_default_entry' call from the macosx case to the linux case.
31775
317762009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
317772009-10-25 Colin Watson <cjwatson@ubuntu.com>
31778
31779 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31780 in `chosen' environment variable.
31781 * normal/menu_text.c (get_entry_number): Check if the variable
31782 matches the title of a menu entry.
31783 (run_menu): Pass menu to get_entry_number.
31784
31785 * util/grub-reboot.in: New file.
31786 * util/grub-set-default.in: New file.
31787 * conf/common.rmk (grub-reboot): New utility.
31788 (grub-set-default): New utility.
31789
31790 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31791 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31792 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31793 move it to `saved_entry' for the next boot. Load environment on
31794 initialisation.
31795 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31796 * util/grub.d/10_hurd.in: Likewise.
31797 * util/grub.d/10_linux.in (linux_entry): Likewise.
31798 * util/grub.d/10_windows.in: Likewise.
31799 * util/grub.d/30_os-prober.in: Likewise.
31800
31801 * util/grub-install.in: Create environment block.
31802 * util/i386/efi/grub-install.in: Likewise.
31803 * util/ieee1275/grub-install.in: Likewise.
31804 * util/sparc64/ieee1275/grub-install.in: Likewise.
31805
0934d184
BC
318062010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31807
31808 Unit testing framework for GRUB.
31809
31810 * Makefile.in: Test framework build rules for 'make check'.
31811 * conf/tests.rmk: Build rules for individual tests and framework.
31812
31813 * include/grub/test.h: Header file for whitebox tests.
31814 * tests/lib/functional_test.c: Framework support for whitebox
31815 functional tests.
31816 * tests/lib/test.c: Common whitebox testing code for unit and
31817 functional tests.
31818 * tests/lib/unit_test.c: Framework support for whitebox unit
31819 tests.
31820
31821 * tests/util/grub-shell-tester.in: Support utility for grub-script
31822 tests.
31823 * tests/util/grub-shell.in: Utility to execute grub-script
31824 commands in a Qemu instance.
31825
31826 * tests/example_functional_test.c: Example whitebox functional
31827 test.
31828 * tests/example_grub_script_test.in: Example grub-script test.
31829 * tests/example_scripted_test.in: Example scripted test.
31830 * tests/example_unit_test.c: Example whitebox unit test.
31831
9c4ffeeb
VS
318322010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31833
31834 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31835 Add loader/i386/multiboot_mbi.c.
31836 (multiboot2_mod_SOURCES): Likewise.
31837 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31838 (multiboot2_mod_SOURCES): Likewise.
31839 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31840 (grub_multiboot_make_mbi): Likewise.
31841 (grub_multiboot_free_mbi): Likewise.
31842 (grub_multiboot_init_mbi): Likewise.
31843 (grub_multiboot_add_module): Likewise.
31844 (grub_multiboot_set_bootdev): Likewise.
31845 * loader/i386/multiboot.c (mbi): Removed.
31846 (mbi_dest): Likewise.
31847 (alloc_mbi): New variable.
31848 (grub_multiboot_payload_size): Removed. All users updated.
31849 (grub_multiboot_pure_size): New variable.
31850 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31851 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31852 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31853 (grub_fill_multiboot_mmap): Likewise.
31854 (grub_multiboot_get_bootdev): Likewise.
31855 (grub_multiboot): Use multiboot_mbi functions.
31856 * loader/i386/multiboot_mbi.c: New file.
31857
17383dfe
VS
318582010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31859
31860 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31861 it would result in module crash.
31862
c1f28820
VS
318632010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31864
31865 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31866 (grub_ofconsole_getwh): Split to ...
31867 (grub_ofconsole_getwh): ... this.
31868 (grub_ofconsole_dimensions): ...and this.
31869 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31870
58655a16
RM
318712010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31872
31873 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31874
10891398
VS
318752010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31876
31877 * loader/i386/pc/multiboot2.c: Removed stalled file.
31878
0b8a223c
VS
318792010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31880
31881 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31882 Reported by: Grégoire Sutre
31883
92ab12b0
RM
318842010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31885
31886 * util/misc.c (canonicalize_file_name): New function.
31887 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31888 instead of realpath().
31889
a788afb6
CW
318902010-01-11 Colin Watson <cjwatson@ubuntu.com>
31891
31892 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31893 and make it clearer that it's optional. Based on confusion
31894 witnessed on IRC.
31895
ffa8e3d2
VS
318962010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31897
31898 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31899 in premature implicit newline.
31900
e9060a9d
VS
319012010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31902
31903 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31904 which resulted in garbled command line at the end of screen.
31905
f0d0c0b7
RM
319062010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31907
31908 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31909 initialization with similar approach as with other Linux loaders.
31910
0e60bae7
RM
319112010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31912
31913 Fix i386-ieee1275 build.
31914
31915 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31916 and grub_term_height() for video_{width,height} initialization.
31917
319182010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
31919
31920 Fix grub-emu build.
31921
31922 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31923
cdb3f378
RM
319242010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
319252010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31926
31927 Support for multiple terminals.
31928
31929 * Makefile.in (pkglib_DATA): terminal.lst.
31930 (terminal.lst): New target.
31931 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31932 (GRUB_MOD_INIT(handler)): Likewise.
31933 (GRUB_MOD_FINI(handler)): Likewise.
31934 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31935 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31936 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31937 (grub_cmd_sleep): Use grub_term_save_pos.
31938 * commands/terminal.c: New file.
31939 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31940 commands/terminal.c and lib/charset.c.
31941 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31942 (pkglib_MODULES): Add terminal.mod.
31943 (terminal_mod_SOURCES): New variable.
31944 (terminal_mod_CFLAGS): Likewise.
31945 (terminal_mod_LDFLAGS): Likewise.
31946 * genhandlerlist.sh: Don't handle terminals.
31947 * genmk.rb: Generate terminal-*.lst.
31948 * genterminallist.sh: New file.
31949 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31950 (grub_is_valid_utf8): Likewise.
31951 (grub_utf8_to_ucs4_alloc): Likewise.
31952 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31953 (grub_menu_register_viewer): Changed argument.
31954 (grub_menu_try_text): New proto.
31955 (grub_gfxmenu_try_hook): New declaration.
31956 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31957 (grub_menu_init_page): Additional argument term.
31958 (grub_normal_init_page): Likewise.
31959 (grub_cmdline_get): Arguments simplified.
31960 (grub_utf8_to_ucs4_alloc): Removed.
31961 (grub_print_ucs4): Additional argument term.
31962 (grub_getstringwidth): Likewise.
31963 (grub_print_message_indented): Likewise.
31964 (grub_menu_text_register_instances): New proto.
31965 (grub_show_menu): Likewise.
31966 (read_terminal_list): Likewise.
31967 (grub_set_more): Likewise.
31968 * include/grub/parser.h: Include handler.h.
31969 * include/grub/reader.h: Rewritten.
31970 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31971 (GRUB_TERM_WIDTH): Changed to function.
31972 (GRUB_TERM_HEIGHT): Likewise.
31973 (GRUB_TERM_BORDER_WIDTH): Likewise.
31974 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31975 (GRUB_TERM_NUM_ENTRIES): Likewise.
31976 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31977 (GRUB_TERM_CURSOR_X): Likewise.
31978 (grub_term_input_class): Likewise.
31979 (grub_term_output_class): Likewise.
31980 (grub_term_outputs_disabled): New declaration.
31981 (grub_term_inputs_disabled): Likewise.
31982 (grub_term_outputs): Likewise.
31983 (grub_term_inputs): Likewise.
31984 (grub_term_register_input): Rewritten.
31985 (grub_term_register_output): Likewise.
31986 (grub_term_unregister_input): Likewise.
31987 (grub_term_unregister_output): Likewise.
31988 (FOR_ACTIVE_TERM_INPUTS): New macro.
31989 (FOR_DISABLED_TERM_INPUTS): Likewise.
31990 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31991 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31992 * include/grub/terminfo.h: Add oterm argument to all protypes.
31993 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31994 Use grub_rescue_run.
31995 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31996 All users updated.
31997 * kern/reader.c: Removed. All users updated.
31998 * kern/rescue_reader.c (grub_rescue_init): Removed.
31999 (grub_rescue_reader): Likewise.
32000 (grub_register_rescue_reader): Likewise.
32001 (grub_rescue_run): New function based on kern/reader.c.
32002 * kern/term.c: Adapted for multiterm.
32003 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32004 (grub_is_valid_utf8): Likewise.
32005 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32006 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32007 right terminal.
32008 * loader/i386/linux.c (grub_linux_boot): Likewise.
32009 * normal/auth.c (grub_username_get): New function.
32010 (grub_auth_check_authentication): Use grub_username_get.
32011 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32012 * normal/color.c: Adapt for multiterm.
32013 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32014 (grub_normal_init_page): Additional argument term.
32015 (read_lists): Call read_terminal_lists.
32016 (grub_enter_normal_mode): Call grub_cmdline_run.
32017 Handle grub_normal_exit_level.
32018 (grub_cmd_normal): Make reentrant.
32019 (grub_cmd_normal_exit): New function.
32020 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32021 * normal/menu.c: Adapt for multiterm.
32022 * normal/menu_entry.c: Likewise.
32023 * normal/menu_text.c: Likewise.
32024 * normal/menu_viewer.c: Removed. All users updated.
32025 * normal/term.c: New file.
32026 * util/console.c: Change order of includes to workaround a bug in
32027 ncurses headers.
32028 * term/terminfo.c: New argument oterm on all exported functions.
32029 All users updated.
32030 * util/grub-editenv.c (grub_term_input_class): Removed.
32031 (grub_term_output_class): Likewise.
32032
1a064917
RM
320332010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32034
32035 Make loader output a bit more user-friendly.
32036
32037 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32038 is being loaded. Likewise for the Hurd.
32039
32040 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32041 that kernel of FreeBSD ${version} is being loaded.
32042
32043 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32044 grub_dprintf().
32045 (grub_cmd_initrd): Likewise.
32046 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32047 that Linux ${version} is being loaded. Likewise for initrd.
32048
5ce0a83a 320492010-01-09 Carles Pina i Estany <carles@pina.cat>
32050
32051 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32052
809bbfeb 320532010-01-08 Carles Pina i Estany <carles@pina.cat>
32054
32055 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32056 (GRUB_MOD_INIT): Gettextizze.
32057 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32058 (GRUB_MOD_INIT): Gettextizze.
32059 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32060 (grub_cmd_linux): Capitalise Linux.
32061 (GRUB_MOD_INIT): Gettextizze.
32062 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32063 (grub_cmd_linux): Capitalise Linux.
32064 (GRUB_MOD_INIT): Gettextizze.
32065 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32066 (grub_cmd_linux): Capitalise Linux.
32067 (GRUB_MOD_INIT): Gettextizze.
32068 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32069 (GRUB_MOD_INIT): Gettextizze.
32070 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32071 (grub_cmd_linux): Capitalise Linux.
32072 (GRUB_MOD_INIT): Gettextizze.
32073 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32074 (grub_cpu_xnu_init): Gettextizze.
32075 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32076 (GRUB_MOD_INIT): Gettextizze.
32077 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32078 (GRUB_MOD_INIT): Gettextizze.
32079 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32080 (grub_linux_load64): Capitalise Linux.
32081 (GRUB_MOD_INIT): Gettextizze.
32082 * loader/xnu.c: Include `<grub/i18n.h>'.
32083 (GRUB_MOD_INIT): Gettextizze.
32084 * po/POTFILES: Add `loader/efi/appleloader.c',
32085 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32086 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32087 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32088 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32089 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32090 and `loader/xnu.c'.
32091
b394b2ca
RM
320922010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32093
32094 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32095
320962010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
32097
32098 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32099 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32100 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32101
bc8b32b3
RM
321022010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32103
32104 Reset Multiboot 2 support. New loader implements the draft in
32105 /branches/multiboot2 and shares as much code as possible with the
32106 production Multiboot 1 implementation.
32107
32108 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32109 * loader/multiboot2.c: Likewise.
32110 * loader/i386/multiboot_helper.S: Likewise.
32111 * include/multiboot2.h: Replace with latest version from the draft
32112 in /branches/multiboot2.
32113
32114 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32115 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32116 and `loader/multiboot2.c'.
32117 (pkglib_MODULES): Add `multiboot2.mod'.
32118 (multiboot2_mod_SOURCES): New variable.
32119 (multiboot2_mod_LDFLAGS): Likewise.
32120 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32121
32122 * conf/i386-pc.rmk: Likewise.
32123
32124 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32125 (multiboot_mod_SOURCES): Remove variable.
32126 (multiboot_mod_LDFLAGS): Likewise.
32127 (multiboot_mod_CFLAGS): Likewise.
32128
32129 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32130 `<multiboot2.h>' instead of `<multiboot.h>'.
32131 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32132 (MULTIBOOT_HEADER_MAGIC): New macros.
32133
32134 * loader/multiboot_loader.c (module_version_status): Remove variable.
32135 (find_multi_boot2_header): Remove function.
32136 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32137 logic. Always check for the Multiboot version we're compiling for.
32138 (grub_cmd_module_loader): Likewise.
32139 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32140 command instead of `multiboot'.
32141
5d2c52b8
RM
321422010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32143
32144 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32145 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32146 all users.
32147
53108d92
RM
321482010-01-07 Robert Millan <rmh.grub@aybabtu.com>
321492010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32150
32151 Fix breakage introduced with previous commit.
32152
32153 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32154 commands.
32155 * normal/handler.c (read_handler_list): Revert part of previous commit
32156 affecting this file.
32157 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32158 (grub_normal_execute): ... here.
32159
e2e936b2
RM
321602010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32161
32162 Merge prefix-redefinition-fix branch.
32163
32164 * normal/autofs.c (read_fs_list): Make function capable of being
32165 run multiple times, gracefuly replacing the previous data
32166 structures.
32167 * normal/dyncmd.c (read_command_list): Likewise.
32168 * normal/handler.c (read_handler_list): Likewise.
32169 * normal/main.c (read_lists): New function. Calls all the
32170 list reading functions.
32171 (grub_normal_execute): Use read_lists() instead of calling all
32172 list reading functions explicitly. Register read_lists() as a
32173 variable hook attached to ${prefix}.
32174
607a3701
VS
321752010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32176
32177 Merge crypto branch.
32178
32179 * Makefile.in (pkglib_DATA): Add crypto.lst.
32180 (crypto.lst): New target.
32181 * commands/hashsum.c: New file.
32182 * commands/password.c (check_password): Use grub_crypto_memcmp.
32183 * commands/password_pbkdf2.c: New file.
32184 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32185 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32186 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32187 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32188 -I$(srcdir)/lib/libgcrypt_wrap.
32189 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32190 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32191 password_pbkdf2.mod.
32192 (crypto_mod_SOURCES): New variable.
32193 (crypto_mod_CFLAGS): Likewise.
32194 (crypto_mod_LDFLAGS): Likewise.
32195 (hashsum_mod_SOURCES): New variable.
32196 (hashsum_mod_CFLAGS): Likewise.
32197 (hashsum_mod_LDFLAGS): Likewise.
32198 (pbkdf2_mod_SOURCES): New variable.
32199 (pbkdf2_mod_CFLAGS): Likewise.
32200 (pbkdf2_mod_LDFLAGS): Likewise.
32201 (password_pbkdf2_mod_SOURCES): New variable.
32202 (password_pbkdf2_mod_CFLAGS): Likewise.
32203 (password_pbkdf2_mod_LDFLAGS): Likewise.
32204 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32205 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32206 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32207 Include conf/gcry.rmk.
32208 * include/grub/auth.h: Rewritten.
32209 * include/grub/crypto.h: New file.
32210 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32211 * include/grub/normal.h (read_crypto_list): New prototype.
32212 * lib/crypto.c: New file.
32213 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32214 * lib/pbkdf2.c: Likewise.
32215 * normal/auth.c (grub_auth_strcmp): Removed.
32216 (grub_iswordseparator): Likewise.
32217 (grub_auth_strword): Likewise.
32218 (is_authenticated): Use grub_strword.
32219 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32220 and grub_strword. Pass entered password to authentication callback.
32221 * normal/crypto.c: New file.
32222 * normal/main.c: Call read_crypto_list.
32223 * util/grub-mkpasswd-pbkdf2.c: New file.
32224 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32225
42841caa
VS
322262010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32227
32228 Fix descent and ascent calculation.
32229
32230 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32231 (options): New option "asce".
32232 (usage): Likewise.
32233 (add_char): Ignore invalid glyphs for descent calculation.
32234 Calculate ascent from actual content.
32235 (print_glyphs): Use 'asce'.
32236 (write_font): Likewise. Allow ascent override.
32237 (main): Handle "asce" option.
32238
e7730de7 322392010-01-06 Carles Pina i Estany <carles@pina.cat>
32240
32241 * kern/err.c: Include `<grub/i18n.h>'.
32242 (grub_print_error): Add full stop. Gettextizze.
32243 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32244 (grub_bsd_load_elf): Capitalise ELF.
32245 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32246 (grub_cmd_freebsd_module): Likewise.
32247 (grub_cmd_freebsd_module_elf): Likewise.
32248 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32249
40e3a41f 322502010-01-06 Carles Pina i Estany <carles@pina.cat>
32251
32252 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32253 * commands/search_file.c (HELP_MESSAGE): New macro.
32254 * commands/search_label.c (HELP_MESSAGE): Likewise.
32255 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32256 * po/POTFILES: Add `commands/search_file.c',
32257 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32258 `commands/search.c'.
32259
83507e68
RM
322602010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32261
32262 * config.rpath: Update from Gnulib.
32263
465c787b
YB
322642010-01-05 Yves Blusseau <blusseau@zetam.org>
32265
32266 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32267
6581dd3a
YB
322682010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32269
32270 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32271
3bff18c5
CW
322722010-01-05 Colin Watson <cjwatson@ubuntu.com>
32273
32274 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32275 arguments to fread so that we get a return value in bytes, rather
32276 than something that will normally be rounded down to 0.
32277 Adjust error handling to avoid producing garbage when size_t is not
32278 the same size as long long.
32279
a1368118
CW
322802010-01-05 Colin Watson <cjwatson@ubuntu.com>
32281
32282 * util/mkisofs/write.c (padblock_write): Check return value of
32283 fread.
32284
7c302978
RM
322852010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32286
32287 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32288 floppy images now.
32289
32290 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32291
e33ace06
RM
322922010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32293
32294 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32295 instead of manual alignment.
32296 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32297 verbose). Avoid attempts to read past end of the device
32298 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32299 but GRUB_DISK_CACHE_SIZE may exceed that).
32300
4b856776
RM
323012010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32302
32303 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32304 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32305 it to upper layer.
32306
52c2d97f
VS
323072010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32308
32309 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32310 New constant.
32311 (grub_efi_piwg_device_path): New structure
32312 (grub_efi_piwg_device_path_t): New type.
32313 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32314 (devpath_1): Transform to a structure. All users updated.
32315 (devpath_2): Likewise.
32316 (devpath_3): Likewise.
32317 (devpath_4): Likewise.
32318 (devpath_5): Likewise.
32319
98ff6a54
VS
323202010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32321
32322 * loader/efi/appleloader.c: Restored. Update all users.
32323
3a73dcb6
RM
323242010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32325
32326 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32327
32328 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32329 (struct boot_blocklist): Move from here ...
32330 * include/grub/i386/pc/boot.h [ASM_FILE]
32331 (struct grub_boot_blocklist): ... to here. Update all users.
32332 (setup): Only initialize `start' member of `first_block'
32333 structure. Add assert() calls to verify the other members.
32334
32335 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32336 (generate_image): Fix broken blocklist length initialization.
32337 Add assert() call to verify blocklist `segment' field.
32338
ab0eeb0c
RM
323392010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32340
32341 * loader/efi/appleloader.c: Remove. Update all users.
32342
58bc8bd5
RM
323432010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32344
32345 * boot/i386/pc/boot.S: Update copyright year.
32346 * boot/i386/pc/cdboot.S: Likewise.
32347 * boot/i386/pc/diskboot.S: Likewise.
32348 * boot/i386/pc/lnxboot.S: Likewise.
32349 * boot/i386/pc/pxeboot.S: Likewise.
32350 * bus/pci.c: Likewise.
32351 * commands/cmp.c: Likewise.
32352 * commands/help.c: Likewise.
32353 * commands/hexdump.c: Likewise.
32354 * commands/i386/pc/halt.c: Likewise.
32355 * commands/i386/pc/play.c: Likewise.
32356 * commands/i386/pc/vbeinfo.c: Likewise.
32357 * commands/ls.c: Likewise.
32358 * commands/test.c: Likewise.
32359 * disk/dmraid_nvidia.c: Likewise.
32360 * disk/i386/pc/biosdisk.c: Likewise.
32361 * disk/ieee1275/nand.c: Likewise.
32362 * disk/ieee1275/ofdisk.c: Likewise.
32363 * disk/lvm.c: Likewise.
32364 * disk/raid.c: Likewise.
32365 * disk/raid6_recover.c: Likewise.
32366 * disk/scsi.c: Likewise.
32367 * fs/affs.c: Likewise.
32368 * fs/cpio.c: Likewise.
32369 * fs/ext2.c: Likewise.
32370 * fs/hfs.c: Likewise.
32371 * fs/iso9660.c: Likewise.
32372 * fs/ntfs.c: Likewise.
32373 * fs/sfs.c: Likewise.
32374 * fs/udf.c: Likewise.
32375 * fs/ufs.c: Likewise.
32376 * fs/xfs.c: Likewise.
32377 * gencmdlist.sh: Likewise.
32378 * genmk.rb: Likewise.
32379 * include/grub/disk.h: Likewise.
32380 * include/grub/efi/api.h: Likewise.
32381 * include/grub/efi/efi.h: Likewise.
32382 * include/grub/efi/pe32.h: Likewise.
32383 * include/grub/elf.h: Likewise.
32384 * include/grub/fs.h: Likewise.
32385 * include/grub/i386/at_keyboard.h: Likewise.
32386 * include/grub/i386/pc/memory.h: Likewise.
32387 * include/grub/i386/pc/vbe.h: Likewise.
32388 * include/grub/i386/pci.h: Likewise.
32389 * include/grub/i386/tsc.h: Likewise.
32390 * include/grub/ieee1275/ieee1275.h: Likewise.
32391 * include/grub/ntfs.h: Likewise.
32392 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32393 * include/grub/sparc64/libgcc.h: Likewise.
32394 * include/grub/symbol.h: Likewise.
32395 * include/grub/types.h: Likewise.
32396 * include/multiboot2.h: Likewise.
32397 * io/gzio.c: Likewise.
32398 * kern/device.c: Likewise.
32399 * kern/disk.c: Likewise.
32400 * kern/efi/efi.c: Likewise.
32401 * kern/efi/mm.c: Likewise.
32402 * kern/elf.c: Likewise.
32403 * kern/file.c: Likewise.
32404 * kern/i386/dl.c: Likewise.
32405 * kern/i386/pc/init.c: Likewise.
32406 * kern/i386/pc/startup.S: Likewise.
32407 * kern/ieee1275/ieee1275.c: Likewise.
32408 * kern/ieee1275/init.c: Likewise.
32409 * kern/main.c: Likewise.
32410 * kern/mm.c: Likewise.
32411 * kern/powerpc/dl.c: Likewise.
32412 * kern/sparc64/dl.c: Likewise.
32413 * kern/x86_64/dl.c: Likewise.
32414 * lib/hexdump.c: Likewise.
32415 * loader/efi/appleloader.c: Likewise.
32416 * loader/i386/ieee1275/linux.c: Likewise.
32417 * loader/i386/pc/chainloader.c: Likewise.
32418 * loader/i386/pc/linux.c: Likewise.
32419 * loader/i386/pc/multiboot2.c: Likewise.
32420 * loader/ieee1275/multiboot2.c: Likewise.
32421 * loader/multiboot2.c: Likewise.
32422 * loader/multiboot_loader.c: Likewise.
32423 * loader/powerpc/ieee1275/linux.c: Likewise.
32424 * normal/completion.c: Likewise.
32425 * normal/menu_entry.c: Likewise.
32426 * partmap/apple.c: Likewise.
32427 * util/grub.d/10_hurd.in: Likewise.
32428 * util/hostfs.c: Likewise.
32429 * video/readers/png.c: Likewise.
32430
e2d70b5c
CW
324312010-01-03 Colin Watson <cjwatson@ubuntu.com>
32432
32433 * include/grub/misc.h (GNUC_PREREQ): New macro.
32434 (ATTRIBUTE_ERROR): New macro.
32435 * include/grub/list.h (grub_bad_type_cast_real): Use
32436 ATTRIBUTE_ERROR.
32437
a173283f 324382010-01-03 Carles Pina i Estany <carles@pina.cat>
32439
32440 * normal/menu_text.c (print_message): Change messages.
32441
7fa7ff74 324422010-01-03 Carles Pina i Estany <carles@pina.cat>
32443
32444 * normal/menu_entry.c (store_completion): Gettextizze.
32445
136d24f6 324462010-01-03 Carles Pina i Estany <carles@pina.cat>
32447
32448 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32449
f936862e 324502010-01-03 Carles Pina i Estany <carles@pina.cat>
32451
32452 * po/POTFILES: Sort correctly.
32453
29c44ad1 324542010-01-03 Carles Pina i Estany <carles@pina.cat>
32455
32456 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32457 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32458 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32459 full stop.
32460 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32461 summary. Gettextizze the strings.
32462 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32463 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32464 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32465 full stop.
32466 (GRUB_MOD_INIT): Remove command name from summary.
32467 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32468 summary.
32469 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32470 * term/i386/pc/serial.c (options): Add full stops.
32471 (GRUB_MOD_INIT): Remove command name from the summary.
32472
77a79592 324732010-01-03 Carles Pina i Estany <carles@pina.cat>
32474
32475 * commands/acpi.c: Gettextizze help strings and/or options. Include
32476 `grub/i18n.h' if needed.
32477 * commands/blocklist.c: Likewise.
32478 * commands/boot.c: Likewise.
32479 * commands/cat.c: Likewise.
32480 * commands/cmp.c: Likewise.
32481 * commands/configfile.c: Likewise.
32482 * commands/crc.c: Likewise.
32483 * commands/date.c: Likewise.
32484 * commands/echo.c: Likewise.
32485 * commands/efi/fixvideo.c: Likewise.
32486 * commands/efi/loadbios.c: Likewise.
32487 * commands/gptsync.c: Likewise.
32488 * commands/halt.c: Likewise.
32489 * commands/handler.c: Likewise.
32490 * commands/hdparm.c: Likewise.
32491 * commands/hexdump.c: Likewise.
32492 * commands/i386/cpuid.c: Likewise.
32493 * commands/i386/pc/drivemap.c: Likewise.
32494 * commands/i386/pc/halt.c: Likewise.
32495 * commands/i386/pc/pxecmd.c: Likewise.
32496 * commands/i386/pc/vbeinfo.c: Likewise.
32497 * commands/i386/pc/vbetest.c: Likewise.
32498 * commands/ieee1275/suspend.c: Likewise.
32499 * commands/keystatus.c: Likewise.
32500 * commands/loadenv.c: Likewise.
32501 * commands/ls.c: Likewise.
32502 * commands/lsmmap.c: Likewise.
32503 * commands/lspci.c: Likewise.
32504 * commands/memrw.c: Likewise.
32505 * commands/minicmd.c: Likewise.
32506 * commands/parttool.c: Likewise.
32507 * commands/password.c: Likewise.
32508 * commands/probe.c: Likewise.
32509 * commands/read.c: Likewise.
32510 * commands/reboot.c: Likewise.
32511 * commands/search.c: Likewise.
32512 * commands/sleep.c: Likewise.
32513 * commands/test.c: Likewise.
32514 * commands/true.c: Likewise.
32515 * commands/usbtest.c: Likewise.
32516 * commands/videotest.c: Likewise.
32517 * commands/xnu_uuid.c: Likewise.
32518 * disk/loopback.c: Likewise.
32519 * hello/hello.c: Likewise.
32520 * loader/i386/bsd.c: Likewise.
32521 * term/i386/pc/serial.c: Likewise.
32522 * po/POTFILES: Add new files.
32523
da8d5c53
CW
325242010-01-02 Colin Watson <cjwatson@ubuntu.com>
32525
32526 * term/i386/pc/at_keyboard.c
32527 (keyboard_controller_wait_untill_ready): Rename to ...
32528 (keyboard_controller_wait_until_ready): ... this. Update all users.
32529
33937904 325302010-01-01 Carles Pina i Estany <carles@pina.cat>
32531
32532 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32533 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32534 string using string width.
32535 * normal/menu_text.c (grub_print_message_indented): Use
32536 grub_print_spaces and not print_spaces.
32537 (print_timeout): Likewise.
32538 (print_spaces): Move to...
32539 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32540
3fd3b8d8
RM
325412010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32542
32543 Import from Gnulib.
32544
32545 * gnulib/getdelim.c: New file.
32546 * gnulib/getline.c: Likewise.
32547
33433555
VS
325482009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32549
32550 * include/grub/list.h (grub_assert_fail): Removed.
32551 (grub_bad_type_cast_real): New function.
32552 (grub_bad_type_cast): New macro.
32553 (GRUB_AS_LIST): Use grub_bad_type_cast.
32554 (GRUB_AS_LIST_P): Likewise.
e44721e8 32555 (GRUB_AS_NAMED_LIST): Likewise.
33433555 32556 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 32557 (GRUB_AS_PRIO_LIST): Likewise.
33433555 32558 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 32559 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 32560
f5a51306
VS
325612009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32562
32563 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32564 Fix syntax error.
32565
90d1e879
RM
325662009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32567
32568 * configure.ac: Check for TARGET_CFLAGS initialization before we
32569 initialize it ourselves (sigh).
32570 Move a few modifications to TARGET_CFLAGS to be unconditional
32571 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32572 eh_frame)
32573
32574 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32575 * term/i386/pc/at_keyboard.c
32576 (keyboard_controller_wait_untill_ready): Likewise.
32577 (keyboard_controller_led): Rename `led_status' paramter to avoid
32578 name conflict.
32579
465b5a81 325802009-12-28 Carles Pina i Estany <carles@pina.cat>
32581
32582 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32583 quotes.
32584
c181849b
VS
325852009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32586
32587 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32588
9c8739a4
VS
325892009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32590
32591 * normal/menu_text.c (grub_print_message_indented): Prevent
32592 past-the-end-of-array dereference.
32593
3e74249c
VS
325942009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32595
32596 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32597 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32598
64fd18ed 325992009-12-27 Carles Pina i Estany <carles@pina.cat>
32600
32601 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32602 * normal/main.c (grub_normal_read_line): Remove a space from the
32603 default prompt.
32604
714af9b9 326052009-12-27 Carles Pina i Estany <carles@pina.cat>
32606
32607 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32608 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32609 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32610 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32611 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32612 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32613 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32614
82f3e412 326152009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 32616
32617 * video/readers/jpeg.c (cmd): Declare.
32618 (grub_cmd_jpegtest): Use `grub_command_t' type.
32619 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32620 Assign to `cmd'.
32621 (GRUB_MOD_FINI): Use `cmd' to unregister.
32622 * video/readers/png.c (cmd): Declare.
32623 (grub_cmd_pngtest): Use `grub_command_t' type.
32624 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32625 Assign to `cmd'.
32626 (GRUB_MOD_FINI): Use `cmd' to unregister.
32627 * video/readers/tga.c (cmd): Declare.
32628 (grub_cmd_tgatest): Use `grub_command_t' type.
32629 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32630 Assign to `cmd'.
32631 (GRUB_MOD_FINI): Use `cmd' to unregister.
32632
82f3e412 326332009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 32634
32635 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32636 stops.
32637 * kern/corecmd.c (grub_register_core_commands): Likewise.
32638 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32639 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32640 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32641 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32642 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32643 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32644 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32645 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32646 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32647 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32648 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32649 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32650 * normal/handler.c (insert_handler): Likewise.
32651 * normal/main.c (GRUB_MOD_INIT): Likewise.
32652 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32653
fdcdbb66 326542009-12-26 Carles Pina i Estany <carles@pina.cat>
32655
32656 * commands/help.c (grub_cmd_help): Print the command name before the
32657 summary.
32658 (GRUB_MOD_INIT): Remove command name from the summary.
32659 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 32660 string as summary.
fdcdbb66 32661 * lib/arg.c (find_long): Print the command name before the summary.
32662 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32663 summary.
32664 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32665 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32666 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32667 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32668 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32669 * commands/date.c (GRUB_MOD_INIT): Likewise.
32670 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32671 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32672 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32673 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32674 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32675 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32676 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32677 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32678 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32679 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32680 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32681 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32682 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32683 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32684 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32685 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32686 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32687 * commands/password.c (GRUB_MOD_INIT): Likewise.
32688 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32689 * commands/read.c (GRUB_MOD_INIT): Likewise.
32690 * commands/search.c (GRUB_MOD_INIT): Likewise.
32691 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32692 * commands/test.c (GRUB_MOD_INIT): Likewise.
32693 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32694 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32695 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32696 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32697 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32698 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32699 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32700 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32701 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32702 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32703 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32704 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32705 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32706 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32707
9c288be2
VS
327082009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32709
32710 Use search command for preliminar UUID search.
32711
32712 * commands/search.c: Split into ...
32713 * commands/search_wrap.c: ...this
32714 * commands/search.c: ...and this.
32715 * commands/search_file.c: New file.
32716 * commands/search_label.c: New file.
32717 * commands/search_uuid.c: New file.
32718 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32719 Add commands/search_wrap.c, commands/search_file.c,
32720 commands/search_label.c and commands/search_uuid.c.
32721 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32722 (search_mod_SOURCES): Set to commands/search_wrap.c.
32723 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32724 search_label.mod.
32725 (search_fs_file_mod_SOURCES): New variable.
32726 (search_fs_file_mod_CFLAGS): Likewise.
32727 (search_fs_file_mod_LDFLAGS): Likewise.
32728 (search_label_mod_SOURCES): Likewise.
32729 (search_label_mod_CFLAGS): Likewise.
32730 (search_label_mod_LDFLAGS): Likewise.
32731 (search_fs_uuid_mod_SOURCES): New variable.
32732 (search_fs_uuid_mod_CFLAGS): Likewise.
32733 (search_fs_uuid_mod_LDFLAGS): Likewise.
32734 (fs_file_mod_SOURCES): Removed.
32735 (fs_file_mod_CFLAGS): Likewise.
32736 (fs_file_mod_LDFLAGS): Likewise.
32737 (fs_uuid_mod_SOURCES): Removed.
32738 (fs_uuid_mod_CFLAGS): Likewise.
32739 (fs_uuid_mod_LDFLAGS): Likewise.
32740 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32741 Set to util/grub-install.in.
32742 * disk/fs_file.c: Removed.
32743 * disk/fs_uuid.c: Likewise.
32744 * include/grub/search.h: New file.
32745 * util/grub-install.in: Handle sparc64.
32746 Create and use load.cfg.
32747 * util/sparc64/ieee1275/grub-install.in: Removed.
32748
db943399
VS
327492009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32750
32751 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32752 Ignore return status if CF is cleared.
32753 (grub_biosdisk_get_diskinfo_standard): Likewise.
32754
3fdae612
RM
327552009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32756
32757 * term/i386/pc/at_keyboard.c
32758 (keyboard_controller_wait_untill_ready): New function.
32759 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32760 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32761 for keyboard polling, rather than duplicate the same loop. This
32762 saves a few bytes in code size.
32763
7ebaa2b4
VS
327642009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32765
32766 Support for (pxe[:server[:gateway]]) syntax and
32767 use environment variable for PXE.
32768
32769 * commands/i386/pc/pxecmd.c (options): Removed.
32770 (print_ip): Removed.
32771 (grub_cmd_pxe): Removed
32772 (grub_cmd_pxe_unload): New function.
32773 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32774 (grub_pxe_your_ip): Made static.
32775 (grub_pxe_default_server_ip): Likewise.
32776 (grub_pxe_default_gateway_ip): Likewise.
32777 (grub_pxe_blksize): Likewise.
32778 (parse_ip): New function.
32779 (grub_pxe_open): Support server and gateway specification.
32780 (grub_pxe_close): Free disk->data.
32781 (grub_pxefs_open): Use disk->data.
32782 (grub_pxefs_read): Likewise.
32783 (grub_env_write_readonly): New function.
32784 (set_mac_env): Likewise.
32785 (set_env_limn_ro): Likewise.
32786 (parse_dhcp_vendor): Likewise.
32787 (grub_pxe_detect): Set the environment variables.
32788 (set_ip_env): New function.
32789 (write_ip_env): Likewise.
32790 (grub_env_write_pxe_default_server): Likewise.
32791 (grub_env_write_pxe_default_gateway): Likewise.
32792 (grub_env_write_pxe_blocksize): Likewise.
32793 (GRUB_MOD_INIT(pxe)): Set environment variables.
32794 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32795 (grub_pxe_mac_addr_t): ... this. All users updated.
32796 (grub_pxe_your_ip): Removed.
32797 (grub_pxe_server_ip): Likewise.
32798 (grub_pxe_gateway_ip): Likewise.
32799 (grub_pxe_blksize): Likewise.
32800
ec5f98ab 328012009-12-25 Carles Pina i Estany <carles@pina.cat>
32802
32803 * commands/help.c: Include `<grub/i18n.h>'.
32804 (grub_cmd_help): Gettextizze.
32805 (GRUB_MOD_INIT): Likewise.
32806 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32807 (GRUB_MOD_INIT): Gettextizze.
32808 * commands/search.c: Include `<grub/i18n.h>'.
32809 (options): Gettextizze.
32810 (GRUB_MOD_INIT): Gettextizze.
32811 * lib/arg.c: Include `<grub/i18n.h>'.
32812 (help_options): Gettextizze.
32813 (find_long): Likewise.
32814 (grub_arg_show_help): Likewise.
32815 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32816 (read_command_list): Gettextizze.
32817 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 32818 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 32819
22815526
RM
328202009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32821
32822 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32823 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32824 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32825 (led_status): New variable.
32826 (keyboard_controller_led): New function.
32827 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32828 update led status for caps lock, num lock and scroll lock.
32829
0ad46fd7
FZ
328302009-12-25 Felix Zielcke <fzielcke@z-51.de>
32831
32832 * util/hostdisk.c (open_device): Fix a comment.
32833
d0e158c2
RM
328342009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32835
32836 * util/grub-install.in (host_os): New variable.
32837 * util/i386/efi/grub-install.in (host_os): Likewise.
32838
401c0ad6
RM
328392009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32840
32841 * util/mkisofs/write.c (padblock_write): Abort when given an
32842 excedingly large embed image, instead of silently truncating it.
32843
d14d3370
RM
328442009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32845
32846 * include/multiboot.h: Indentation fixes.
32847
eeed10b4
RM
328482009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32849
32850 * include/multiboot.h (struct multiboot_aout_symbol_table)
32851 (struct multiboot_elf_section_header_table): New structure
32852 declarations (stolen from GRUB Legacy).
32853 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32854 table information.
32855
32856 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32857 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32858 type aliases.
32859
681c70ab
RM
328602009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32861
32862 * include/multiboot.h: Make comments src2texi-friendly.
32863
e4d47d8d
RM
328642009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32865
32866 For consistency with [multiboot]/docs/boot.S.
32867
32868 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32869 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32870 (MULTIBOOT_MAGIC2): Rename from this ...
32871 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32872
a0b70bda
RM
328732009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32874
32875 * include/multiboot.h: Remove `<grub/types.h>'.
32876 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32877 types. Update all users.
32878
61ba42be 328792009-12-25 Carles Pina i Estany <carles@pina.cat>
32880
32881 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32882 `couldn't' and `can not' by `cannot'.
32883 * commands/i386/pc/drivemap.c: Likewise.
32884 * disk/ata.c: Likewise.
32885 * disk/ieee1275/nand.c: Likewise.
32886 * fs/affs.c: Likewise.
32887 * fs/fat.c: Likewise.
32888 * fs/hfs.c: Likewise.
32889 * fs/hfsplus.c: Likewise.
32890 * fs/iso9660.c: Likewise.
32891 * fs/jfs.c: Likewise.
32892 * fs/minix.c: Likewise.
32893 * fs/reiserfs.c: Likewise.
32894 * fs/sfs.c: Likewise.
32895 * fs/udf.c: Likewise.
32896 * fs/ufs.c: Likewise.
32897 * fs/xfs.c: Likewise.
32898 * loader/powerpc/ieee1275/linux.c: Likewise.
32899 * loader/sparc64/ieee1275/linux.c: Likewise.
32900 * util/grub-probe.c: Likewise.
32901 * util/misc.c: Likewise.
32902
7fd0baee 329032009-12-24 Carles Pina i Estany <carles@pina.cat>
32904
32905 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32906 grub_errno calls.
32907 * commands/acpi.c: Likewise.
32908 * commands/blocklist.c: Likewise.
32909 * commands/efi/loadbios.c: Likewise.
32910 * commands/i386/pc/drivemap.c: Likewise.
32911 * commands/loadenv.c: Likewise.
32912 * commands/memrw.c: Likewise.
32913 * commands/password.c: Likewise.
32914 * commands/videotest.c: Likewise.
32915 * disk/ata.c: Likewise.
32916 * disk/ata_pthru.c: Likewise.
32917 * disk/dmraid_nvidia.c: Likewise.
32918 * disk/ieee1275/nand.c: Likewise.
32919 * disk/ieee1275/ofdisk.c: Likewise.
32920 * disk/loopback.c: Likewise.
32921 * disk/lvm.c: Likewise.
32922 * disk/mdraid_linux.c: Likewise.
32923 * disk/raid.c: Likewise.
32924 * disk/raid6_recover.c: Likewise.
32925 * disk/scsi.c: Likewise.
32926 * efiemu/main.c: Likewise.
32927 * efiemu/mm.c: Likewise.
32928 * efiemu/pnvram.c: Likewise.
32929 * efiemu/symbols.c: Likewise.
32930 * font/font.c: Likewise.
32931 * fs/cpio.c: Likewise.
32932 * fs/hfsplus.c: Likewise.
32933 * fs/iso9660.c: Likewise.
32934 * fs/jfs.c: Likewise.
32935 * fs/minix.c: Likewise.
32936 * fs/ntfs.c: Likewise.
32937 * fs/ntfscomp.c: Likewise.
32938 * fs/reiserfs.c: Likewise.
32939 * fs/ufs.c: Likewise.
32940 * fs/xfs.c: Likewise.
32941 * gettext/gettext.c: Likewise.
32942 * include/grub/auth.h: Likewise.
32943 * kern/elf.c: Likewise.
32944 * kern/file.c: Likewise.
32945 * kern/ieee1275/init.c: Likewise.
32946 * kern/ieee1275/mmap.c: Likewise.
32947 * kern/ieee1275/openfw.c: Likewise.
32948 * kern/powerpc/dl.c: Likewise.
32949 * kern/sparc64/dl.c: Likewise.
32950 * lib/arg.c: Likewise.
32951 * loader/i386/bsd.c: Likewise.
32952 * loader/i386/bsdXX.c: Likewise.
32953 * loader/i386/efi/linux.c: Likewise.
32954 * loader/i386/efi/xnu.c: Likewise.
32955 * loader/i386/ieee1275/linux.c: Likewise.
32956 * loader/i386/linux.c: Likewise.
32957 * loader/i386/multiboot.c: Likewise.
32958 * loader/i386/pc/linux.c: Likewise.
32959 * loader/i386/pc/multiboot2.c: Likewise.
32960 * loader/i386/xnu.c: Likewise.
32961 * loader/ieee1275/multiboot2.c: Likewise.
32962 * loader/macho.c: Likewise.
32963 * loader/machoXX.c: Likewise.
32964 * loader/multiboot2.c: Likewise.
32965 * loader/multiboot_loader.c: Likewise.
32966 * loader/powerpc/ieee1275/linux.c: Likewise.
32967 * loader/sparc64/ieee1275/linux.c: Likewise.
32968 * loader/xnu.c: Likewise.
32969 * loader/xnu_resume.c: Likewise.
32970 * mmap/i386/pc/mmap.c: Likewise.
32971 * normal/menu_viewer.c: Likewise.
32972 * partmap/acorn.c: Likewise.
32973 * partmap/amiga.c: Likewise.
32974 * partmap/apple.c: Likewise.
32975 * script/lexer.c: Likewise.
32976 * term/gfxterm.c: Likewise.
32977 * term/i386/pc/serial.c: Likewise.
32978 * term/i386/pc/vga.c: Likewise.
32979 * term/ieee1275/ofconsole.c: Likewise.
32980 * term/terminfo.c: Likewise.
32981 * video/bitmap.c: Likewise.
32982 * video/efi_gop.c: Likewise.
32983 * video/efi_uga.c: Likewise.
32984 * video/fb/video_fb.c: Likewise.
32985 * video/i386/pc/vbe.c: Likewise.
32986 * video/readers/tga.c: Likewise.
32987 * video/video.c: Likewise.
32988
0ad46fd7 329892009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
32990
32991 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32992 * commands/lspci.c: Likewise.
32993 * commands/probe.c: Likewise.
32994 * commands/xnu_uuid.c: Likewise.
32995 * conf/i386-coreboot.rmk: Likewise.
32996 * conf/i386-efi.rmk: Likewise.
32997 * conf/i386-ieee1275.rmk: Likewise.
32998 * conf/i386-pc.rmk: Likewise.
32999 * conf/powerpc-ieee1275.rmk: Likewise.
33000 * conf/sparc64-ieee1275.rmk: Likewise.
33001 * conf/x86_64-efi.rmk: Likewise.
33002 * fs/i386/pc/pxe.c: Likewise.
33003 * gettext/gettext.c: Likewise.
33004 * include/grub/efi/graphics_output.h: Likewise.
33005 * include/grub/i386/pc/memory.h: Likewise.
33006 * kern/env.c: Likewise.
33007 * kern/i386/qemu/startup.S: Likewise.
33008 * lib/i386/pc/biosnum.c: Likewise.
33009 * lib/i386/relocator.c: Likewise.
33010 * lib/i386/relocator_asm.S: Likewise.
33011 * lib/relocator.c: Likewise.
33012 * loader/i386/bsd.c: Likewise.
33013 * loader/i386/multiboot.c: Likewise.
33014 * loader/i386/pc/chainloader.c: Likewise.
33015 * loader/i386/xnu.c: Likewise.
33016 * loader/xnu.c: Likewise.
33017 * normal/main.c: Likewise.
33018 * normal/menu_text.c: Likewise.
33019 * util/getroot.c: Likewise.
33020 * util/grub-mkconfig_lib.in: Likewise.
33021 * util/grub.d/00_header.in: Likewise.
33022 * util/i386/pc/grub-mkimage.c: Likewise.
33023 * util/mkisofs/eltorito.c: Likewise.
33024 * util/mkisofs/exclude.h: Likewise.
33025 * util/mkisofs/hash.c: Likewise.
33026 * util/mkisofs/iso9660.h: Likewise.
33027 * util/mkisofs/joliet.c: Likewise.
33028 * util/mkisofs/mkisofs.c: Likewise.
33029 * util/mkisofs/mkisofs.h: Likewise.
33030 * util/mkisofs/multi.c: Likewise.
33031 * util/mkisofs/name.c: Likewise.
33032 * util/mkisofs/rock.c: Likewise.
33033 * util/mkisofs/tree.c: Likewise.
33034 * util/mkisofs/write.c: Likewise.
33035 * video/efi_gop.c: Likewise.
33036
009ec743
VS
330372009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33038
33039 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33040 size counting.
33041
0ad46fd7 330422009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
33043
33044 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33045 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33046
d3d30ea0
VS
330472009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33048
33049 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33050 (GRUB_MOD_INIT(memrw)): Update help line.
33051
a34f5c70
VS
330522009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33053
33054 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33055 Use grub_extcmd_t. All users updated.
33056 (options): New variable.
33057 (grub_cmd_read): Restructure for readability. Support "-v" option.
33058 (grub_cmd_write): Restructure for readability.
33059
0ad46fd7 330602009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
33061
33062 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33063
0ad46fd7 330642009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
33065
33066 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33067 with the actual contents of the correspondending make variable.
33068 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33069 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33070 specifying `*.lst' and `efiemu??.o'
33071
0ad46fd7 330722009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
33073
33074 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33075 after function name.
33076 Noticed by Rene Engelhard <rene@debian.org>.
33077
dc77a799
VS
330782009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33079
33080 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33081 (options): New variable.
33082 (iospace): Likewise.
33083 (grub_lspci_iter): List IO spaces if "-i" was given.
33084 (grub_cmd_lspci): Parse options.
33085 (GRUB_MOD_INIT(lspci)): Use extcmd.
33086 (GRUB_MOD_FINI(lspci)): Likewise.
33087
0ad46fd7 330882009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
33089
33090 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33091 `function' keyword.
33092 Patch by Tony Mancill <tmancill@debian.org>.
33093
b5d5993b
VS
330942009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33095
33096 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33097 (grub_uhci_portstatus): Likewise.
33098 (grub_uhci_portstatus): Add necessary delay.
11d18281 33099 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 33100
941903f2 331012009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 33102
941903f2 33103 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33104 (GRUB_MOD_INIT): Likewise.
33105 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 33106 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33107 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 33108 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33109 (enable_rom_area): Likewise.
33110 (GRUB_MOD_INIT): Likewise.
33111 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33112 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33113 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33114 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33115 * commands/hexdump.c (options): Likewise.
33116 * commands/i386/cpuid.c (options): Likewise.
33117 (GRUB_MOD_INIT): Likewise.
33118 * commands/i386/pc/drivemap.c (options): Likewise.
33119 (GRUB_MOD_INIT): Likewise.
33120 * commands/i386/pc/halt (options): Likewise.
33121 (GRUB_MOD_INIT): Likewise.
33122 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33123 * commands/i386/pc/pxecmd.c (options): Likewise.
33124 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33125 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33126 * commands/keystatus.c (options): Likewise.
33127 (GRUB_MOD_INIT): Likewise.
33128 * commands/loadenv.c (options): Likewise.
33129 * commands/ls.c (options): Likewise.
33130 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33131 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33132 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33133 * commands/parttool.c (helpmsg): Likewise.
33134 * commands/probe.c (options): Likewise.
33135 * commands/read.c (GRUB_MOD_INIT): Likewise.
33136 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33137 * commands/search.c (options): Likewise.
33138 * commands/sleep.c (options): Likewise.
33139 * commands/test.c (GRUB_MOD_INIT): Likewise.
33140 * commands/true.c (GRUB_MOD_INIT): Likewise.
33141 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33142 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33143 * lib/arg.c (help_options): Likewise.
e9bbb4e7 33144 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33145 `$(XGETTEXT)'.
98a50553 33146 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 33147
0ad46fd7 331482009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 33149
ef3c2c3a 33150 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
33151 instead of specifying them explicit.
33152
7922f68b
RM
331532009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33154
33155 * NEWS: Add grub-probe support for GNU/Hurd.
33156
537ce47f
RM
331572009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33158
33159 * NEWS: gettext was added after 1.97.
33160
9b214e3a
RM
331612009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33162
33163 * util/mkisofs/msdos_partition.h: New file (based on
33164 include/grub/msdos_partition.h).
33165 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33166 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33167 (ld_options, main): Recognize --protective-msdos-label.
33168 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33169 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33170 (padblock_write): If `use_protective_msdos_label' is set, patch a
33171 protective DOS-style label in the output image.
33172
33173 * util/grub-mkrescue.in: Use --protective-msdos-label.
33174
e9309813
RM
331752009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33176
33177 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33178 boot.
33179
0ae56929
RM
331802009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33181
33182 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33183 variables.
33184 (ld_options, main): Recognize `--embedded-boot'.
33185 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33186 declarations.
33187 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33188 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33189 (padblock_write): Likewise. Rewrite to support embedded boot image.
33190
33191 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33192 for BIOS-based disk boot instead of only ElTorito.
33193
b15937b1
RM
331942009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33195
33196 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33197 build (not needed for bootstrap).
33198
52cc3ce0
RM
331992009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33200
33201 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33202 from i386-pc build (not needed for bootstrap).
33203 Rewrite a pair of strings.
33204
36f5ff04
RM
332052009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33206
33207 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33208
973c6c85 332092009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
33210
33211 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33212
05d21547
AB
332132009-12-21 Andreas Born <futur.andy@googlemail.com>
33214
33215 * kern/env.c (grub_env_context_open): Mark exported variable for
33216 reexport.
33217
0175d51f
AB
332182009-12-21 Andreas Born <futur.andy@googlemail.com>
33219
33220 * kern/env.c (grub_env_export): Create nonexistent variables before
33221 exporting.
33222
7f39d92f 332232009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 33224
7f39d92f 33225 * include/grub/auth.h: Include `<grub/i18n.h>'.
33226 (GRUB_GET_PASSWORD): Gettextizze string.
33227 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33228 menu_text.c.
33229 (grub_utf8_to_ucs4_alloc): Fix indentation.
33230 (grub_print_ucs4): Likewise.
33231 (grub_getstringwidth): Likewise.
33232 (print_message_indented): New declaration.
33233 * normal/auth.c: Include `<grub/i18n.h>'.
33234 (grub_auth_check_authentication): Gettexttize string.
33235 * normal/cmdline.c: Include `<grub/i18n.h>'.
33236 (grub_cmdline_get): Gettextizze.
33237 * normal/color.c: Include `<grub/i18n.h>'.
33238 (grub_parse_color_name_pair): Gettexttize strings.
33239 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33240 string (use `print_message_indented').
33241 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33242 `include/grub/normal.h'.
33243 (print_message_indented): Renamed to ...
33244 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33245 used in normal/main.c).
33246 (print_message): Use `grub_print_message_indented' instead of
33247 `print_message_indented'.
33248 (print_timeout): Likewise.
33249 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33250 (grub_normal_print_device_info): Gettexttize strings.
33251 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33252
3041d898
VS
332532009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33254
33255 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33256 of arguments. Return number of tokens and not arguments. All users
33257 updated.
33258
de15bf8e
VS
332592009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33260
33261 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33262 non-MSDOS paritions.
33263
e0a6ca52
VS
332642009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33265
33266 * include/grub/types.h (UNUSED): Removed since it conflicts with
33267 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33268 Reported by Grégoire Sutre.
33269
b99518d1 332702009-12-19 Carles Pina i Estany <carles@pina.cat>
33271
33272 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33273 (grub_print_ucs4_alloc): Likewise.
33274 (grub_getstringwidth): Likewise.
33275 * normal/main.c (grub_normal_init_page): Gettextize version string.
33276 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33277 (getstringwidth): Renamed to ...
33278 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33279 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33280 (grub_print_ucs4): Remove `static' qualifer (now used in
33281 normal/main.c).
33282 * po/POTFILES: Add normal/main.c.
33283
bfd5e52b 332842009-12-19 Carles Pina i Estany <carles@pina.cat>
33285
33286 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33287 (print_message_indented): Add `margin_left' and `margin_right'
33288 parameters.
33289 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33290 strings.
33291 (print_timeout): Use `print_message_indented' to print the message.
33292 Deletes `second_stage' parameter.
33293 (run_menu): Update `print_timeout' calls.
33294
5a1ad2b9
VS
332952009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33296
33297 Fix console palette on OpenFirmware.
33298
33299 * term/ieee1275/ofconsole.c (MAX): Removed.
33300 (colors): Redone based on VGA palette.
33301 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33302 colors are supported.
33303 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33304
b045f00a
VS
333052009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33306
33307 Fix potential EfiEmu double prepare.
33308
33309 * efiemu/main.c (prepared): New variable
33310 (grub_efiemu_unload): Set prepare to '0'.
33311 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33312
33313 set_virtual_address_map support.
33314
33315 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33316 prototype.
33317 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33318 prototype.
33319 (grub_efiemu_crc32): Likewise.
33320 (grub_efiemu_crc64): Likewise.
33321 (grub_efiemu_set_virtual_address_map): Likewise.
33322 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33323 New definition.
33324 (grub_autoefi_set_virtual_address_map): Likewise.
33325 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33326 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33327 Restructure flow to accomodate it.
33328 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33329 (grub_efiemu_crc): Recompute CRC32.
33330 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33331 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33332 * efiemu/symbols.c (relocated_handle): New variable.
33333 (grub_efiemu_free_syms): Free relocated_handle.
33334 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33335 (grub_efiemu_write_sym_markers): New function.
33336 (grub_efiemu_set_virtual_address_map): Likewise.
33337
33338 Newer XNU parameters.
33339
33340 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33341 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33342 (grub_xnu_fill_devicetree): New prototype.
33343 (grub_xnu_heap_real_start): New variable.
33344 * loader/xnu.c (get_name_ptr): New function.
33345 (grub_xnu_load_driver): Fill namelen and name.
33346
33347 64-bit xnu support.
33348
33349 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33350 and 'loader/macho64.c'.
33351 * conf/i386-pc.rmk: Likewise.
33352 * conf/x86_64-efi.rmk: Likewise.
33353 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33354 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33355 * include/grub/macho.h (grub_macho_segment64): New structure.
33356 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33357 (grub_macho_size32): ... to this.
33358 (grub_macho32_get_entry_point): Renamed from ...
33359 (grub_macho_get_entry_point32): ... to this.
33360 (grub_macho_contains_macho64): New prototype.
33361 (grub_macho_size64): Likewise.
33362 (grub_macho_get_entry_point64): Likewise.
33363 (grub_macho32_load): Renamed from ...
33364 (grub_macho_load32): ... to this.
33365 (grub_macho32_filesize): Renamed from ...
33366 (grub_macho_filesize32): ... to this.
33367 (grub_macho32_readfile): Renamed from ...
33368 (grub_macho_readfile32): ... to this.
33369 (grub_macho_filesize64): New prototype.
33370 (grub_macho_readfile64): Likewise.
33371 (grub_macho_parse32): Likewise.
33372 (grub_macho_parse64): Likewise.
33373 * loader/macho.c: Split into ...
33374 * loader/machoXX.c: ... and this. Replace 32 with XX.
33375 * loader/macho32.c: New file.
33376 * loader/macho64.c: Likewise.
33377 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33378 (grub_cmd_xnu_kernel): Make 32-bit only.
33379 (grub_cmd_xnu_kernel64): New function.
33380 (grub_xnu_load_driver): Support Mach-O 64.
33381 (grub_cmd_xnu_mkext): Likewise.
33382 * util/grub.d/30_os-prober.in (osx_entry): New function.
33383 Generate entries for 64-bit boot too.
33384
33385 Eliminate ad-hoc tree format in XNU and EfiEmu.
33386
33387 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33388 * efiemu/pnvram.c: Rewritten to use environment variables.
33389 All users updated.
33390
33391 Inline utf16_to_utf8.
33392
33393 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33394 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33395 All users updated.
33396 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33397
33398 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33399 * commands/usbtest.c (grub_usb_get_string): ... move here.
33400 (usb_print_str): Fix error handling.
33401 * include/grub/usb.h (grub_usb_get_string): Remove.
33402
33403 UTF-8 to UTF-16 transformation.
33404
33405 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33406 (charset_mod_SOURCES): New variable.
33407 (charset_mod_CFLAGS): Likewise.
33408 (charset_mod_LDFLAGS): Likewise.
33409 * include/grub/utf.h: New file.
33410 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33411
33412 Support for device properties.
33413
33414 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33415 (grub_xnu_devprop_device_header): Likewise.
33416 (grub_xnu_devprop_device_descriptor): Likewise.
33417 (grub_xnu_devprop_add_device): New prototype.
33418 (grub_xnu_devprop_remove_device): Likewise.
33419 (grub_xnu_devprop_remove_property): Likewise.
33420 (grub_xnu_devprop_add_property_utf8): Likewise.
33421 (grub_xnu_devprop_add_property_utf16): Likewise.
33422 (grub_cpu_xnu_init): Likewise.
33423 (grub_cpu_xnu_fini): Likewise.
33424 (grub_cpu_xnu_unload): Likewise.
33425 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33426 (property_descriptor): Likewise.
33427 (devices): New variable.
33428 (grub_xnu_devprop_remove_property): New function.
33429 (grub_xnu_devprop_add_device): Likewise.
33430 (grub_xnu_devprop_remove_device): Likewise.
33431 (grub_xnu_devprop_add_property): Likewise.
33432 (grub_xnu_devprop_add_property_utf8): Likewise.
33433 (grub_xnu_devprop_add_property_utf16): Likewise.
33434 (hextoval): Likewise.
33435 (grub_cpu_xnu_fill_devprop): Likewise.
33436 (grub_cmd_devprop_load): Likewise.
33437 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33438 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33439 (cmd_devprop_load): New variable.
33440 (grub_cpu_xnu_init): New function.
33441 (grub_cpu_xnu_fini): Likewise.
33442 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33443 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33444 (grub_cmd_xnu_devtree): Likewise.
33445 (hextoval): New function.
33446 (unescape): Likewise.
33447 (grub_xnu_fill_devicetree): Likewise.
33448
33449 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33450 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33451
0945f181
VS
334522009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33453
33454 Workaround for broken ATI VBE.
33455
33456 * video/i386/pc/vbe.c (last_set_mode): New variable.
33457 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33458 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33459 (grub_video_vbe_setup): Don't check for reserved flag.
33460
0ad46fd7 334612009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
33462
33463 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33464 the `find' command.
33465
c179ebe4
VS
334662009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33467
33468 UUID support for HFS.
33469
33470 * fs/hfs.c (grub_hfs_uuid): New function.
33471 (grub_hfs_fs): New value .uuid.
33472 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33473
0ad46fd7 334742009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
33475
33476 Fix a segfault with parsing unknown long options.
33477
33478 * util/grub-mkrelpath.c (options): Zero terminate it.
33479
c4a3e41a
CPE
334802009-12-13 Carles Pina i Estany <carles@pina.cat>
33481
33482 * include/grub/misc.h (grub_puts): New declaration.
33483 (grub_puts_): Likewise.
a22008a6 33484 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
33485 (grub_puts_): Likewise.
33486
2e8a7602
RM
334872009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33488
33489 * util/grub-probe.c (probe): Improve error message.
33490
b50b77b9
RM
334912009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33492
33493 * loader/i386/multiboot_elfxx.c
33494 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33495 initialization.
33496
334972009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33498
33499 Relocator framework
33500
33501 * loader/i386/xnu_helper.S: Removed. All users updated.
33502 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33503 (relocator_mod_SOURCES): New variable.
33504 (relocator_mod_CFLAGS): Likewise.
33505 (relocator_mod_LDFLAGS): Likewise.
33506 (relocator_mod_ASFLAGS): Likewise.
33507 * conf/x86_64.rmk: Likewise.
33508 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33509 (grub_multiboot_payload_entry_offset): Likewise.
33510 (grub_multiboot_forward_relocator): Likewise.
33511 (grub_multiboot_forward_relocator_end): Likewise.
33512 (grub_multiboot_backward_relocator): Likewise.
33513 (grub_multiboot_backward_relocator_end): Likewise.
33514 (grub_multiboot_payload_eip): New variable.
33515 (grub_multiboot_payload_orig): Likewise.
33516 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33517 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33518 * include/grub/i386/memory.h
33519 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33520 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33521 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33522 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33523 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33524 * include/grub/i386/relocator.h: New file.
33525 * include/grub/x86_64/relocator.h: Likewise.
33526 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33527 (XNU_RELOCATOR): New macro.
33528 (grub_xnu_launcher_start): Remove.
33529 (grub_xnu_launcher_end): Likewise.
33530 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33531 (grub_xnu_heap_real_start): Remove.
33532 (grub_xnu_heap_start): Change to void *. All users updated.
33533 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33534 * lib/i386/relocator.c: New file.
33535 * lib/i386/relocator_asm.S: Likewise.
33536 * lib/i386/relocator_backward.S: Likewise.
33537 * lib/mips/relocator.c: Likewise.
33538 * lib/mips/relocator_asm.S: Likewise.
33539 * lib/relocator.c: Likewise.
33540 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33541 (entry): Removed.
33542 (playground): Likewise.
33543 (grub_multiboot_payload_orig): New variable.
33544 (grub_multiboot_payload_dest): Likewise.
33545 (grub_multiboot_payload_size): Likewise.
33546 (grub_multiboot_payload_eip): Likewise.
33547 (grub_multiboot_payload_esp): Likewise.
33548 (grub_multiboot_boot): Use grub_relocator32_boot.
33549 (grub_multiboot_unload): Free relocators.
33550 (grub_multiboot): Setup stack. Use relocators.
33551 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33552 (grub_multiboot_load_elfXX): Use relocators.
33553 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33554 (grub_multiboot_payload_size): Likewise.
33555 (grub_multiboot_payload_dest): Likewise.
33556 (grub_multiboot_payload_entry_offset): Likewise.
33557 (grub_multiboot_forward_relocator): Likewise.
33558 (grub_multiboot_backward_relocator): Likewise.
33559 (grub_multiboot_real_boot): Likewise.
33560 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33561 (grub_xnu_entry_point): Likewise.
33562 (grub_xnu_arg1): Likewise.
33563 (grub_xnu_stack): Likewise.
33564 (grub_xnu_launch): Removed.
33565 (grub_xnu_boot_resume): New function.
33566 (grub_xnu_boot): Use relocators.
33567 * loader/i386/xnu_helper.S: Removed.
33568 * loader/xnu.c (grub_xnu_heap_start): New variable.
33569 (grub_xnu_heap_size): Likewise.
33570 (grub_xnu_heap_malloc): Use relocators.
33571 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33572
29eb90c6
VS
335732009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33574
33575 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33576 anything.
33577
31027430
CPE
335782009-12-13 Carles Pina i Estany <carles@pina.cat>
33579
33580 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33581 GRUB_ERR_NONE before calling grub_env_set.
33582
dc0c71d9
RM
335832009-12-12 Robert Millan <rmh@aybabtu.com>
33584
33585 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33586 * genmk.rb (video): New variable.
33587 (CLEANFILES, VIDEOFILES): Add #{video}.
33588 (#{video}): New target rule.
33589 * genvideolist.sh: New file.
33590 * Makefile.in (pkglib_DATA): Add video.lst.
33591 (video.lst): New target rule.
33592 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33593 `video.lst'.
33594 * util/grub.d/30_os-prober.in: Replace `vbe' with
33595 ${GRUB_VIDEO_BACKEND}.
33596
2a4bfcf0
RM
335972009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33598
33599 * THANKS: Add David Miller.
33600
2a3aa4d5
RM
336012009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33602
33603 libpciaccess support.
33604
33605 * Makefile.in (LIBPCIACCESS): New variable.
33606 (enable_grub_emu_pci): Likewise.
33607 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33608 util/pci.c and commands/lspci.c.
33609 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33610 * configure.ac (grub-emu-pci): New option.
33611 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33612 (grub_pci_device_unmap_range): Likewise.
33613 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33614 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33615 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33616 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33617 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33618 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33619 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33620 * include/grub/pciutils.h: New file.
33621 * util/pci.c: Likewise.
33622
0ad46fd7 336232009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
33624
33625 * util/misc.c: Don't include <errno.h> twice.
33626
0ad46fd7 336272009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
33628
33629 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33630 name in an error message.
33631 (grub_biosdisk_rw): Likewise.
33632
2e59983c
VS
336332009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33634
33635 Eliminate NTFS 4Gib barrier.
33636
33637 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33638 (read_run_data): Likewise.
33639 (grub_ntfs_read_run_list): Likewise.
33640 (grub_ntfs_read_block): Likewise.
33641 (grub_ntfs_iterate_dir): Likewise.
33642 (read_mft): Likewise.
33643 (read_data): Likewise.
33644 Use COM_LOG_LEN.
33645 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33646 to avoid 64-bit division
33647 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33648 (grub_ntfs_rlst): Use grub_disk_addr_t.
33649
71ee178a
VS
336502009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33651
33652 Eliminate grub-fstest 4Gib barrier.
33653
33654 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33655 (read_file): Fix error reporting.
33656
2520d4b8
VS
336572009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33658
33659 Eliminate hexdump 4Gib barrier.
33660
33661 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33662 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33663
e1f27065
VS
336642009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33665
33666 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33667 Fixes amarsh bug.
33668
1a0f7f45
RM
336692009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33670
33671 Remove miscellaneous files in distclean target.
33672
33673 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33674
c631d9fb
CW
336752009-12-09 Colin Watson <cjwatson@ubuntu.com>
33676
33677 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33678 if they're already set. This resolves the conflict between my
33679 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33680 fixing the --grub-probe option again.
33681 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33682 change on 2009-10-06, so that we now once again source
33683 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33684
7c7b6106
RM
336852009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33686
33687 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33688 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33689 `util/devicemap.c'.
33690
e3069ec1
CPE
336912009-12-08 Carles Pina i Estany <carles@pina.cat>
33692
33693 * include/grub/misc.h (grub_printf_): New declaration.
33694 * kern/misc.c (grub_printf_): New definition.
33695 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33696 instead of `grub_printf' and `_'.
33697 * normal/menu_entry.c (store_completion): Likewise.
33698 (run): Likewise.
33699 (grub_menu_entry_run): Likewise.
33700 * normal/menu_text.c (grub_wait_after_message): Likewise.
33701 (notify_booting): Likewise.
33702 (notify_fallback): Likewise.
33703 (notify_execution_failure): Likewise.
33704
d6ceebf1
CW
337052009-12-07 Colin Watson <cjwatson@ubuntu.com>
33706
33707 * configure.ac: Check for vasprintf.
33708 * util/misc.c (asprintf): Move allocation from here ...
33709 (vasprintf): ... to here. New function.
33710 (xasprintf): New function.
33711 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33712 prototypes.
33713 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33714 * util/grub-mkfont.c (write_font): Likewise.
33715 * util/grub-probe.c (probe): Likewise.
33716 * util/hostdisk.c (make_device_name): Likewise.
33717
de6daa8b
DM
337182009-12-06 David S. Miller <davem@sunset.davemloft.net>
33719
33720 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33721 anything even prefixed with 'cdrom' as a cdrom.
33722
0ad46fd7 337232009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
33724
33725 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33726 mount points.
33727
98d3dc02
CPE
337282009-12-05 Carles Pina i Estany <carles@pina.cat>
33729
33730 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33731 grub_gettext_msg_list.
33732 (grub_gettext_gettranslation_from_position): Return const char *
33733 and not char *.
a2c1332b 33734 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
33735 returns from the list if existing there.
33736 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33737 (grub_gettext_delete_list): Delete the list.
33738 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33739 lang environment variable is changed.
33740 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33741
b283f108
VS
337422009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33743
33744 Rename kernel.mod to kernel.img.
33745
33746 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33747 (kernel_mod_EXPORTS): Rename to ...
33748 (kernel_img_EXPORTS): ... this.
33749 (kernel_mod_SOURCES): Rename to ...
33750 (kernel_img_SOURCES): ... this.
33751 (kernel_mod_HEADERS): Rename to ...
33752 (kernel_img_HEADERS): ... this. All users updated.
33753 (kernel_mod_CFLAGS): Rename to ...
33754 (kernel_img_CFLAGS): ... this.
33755 (kernel_mod_ASFLAGS): Rename to ...
33756 (kernel_img_ASFLAGS): ... this.
33757 (kernel_mod_LDFLAGS): Rename to ...
33758 (kernel_img_LDFLAGS): ... this.
33759 * conf/x86_64-efi.rmk: Likewise.
33760 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33761 (read_kernel_image): ... this. All users updated.
33762 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33763
69055f8a
CPE
337642009-12-05 Carles Pina i Estany <carles@pina.cat>
33765
33766 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33767 (print_spaces): New function.
33768 (grub_print_ucs4): New function.
33769 (getstringwidth): New function.
33770 (print_message_indented): New function.
33771 (print_message): Gettexttize strings using print_message_indented.
33772 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33773 width.
33774 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 33775 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
33776 Gettextize.
33777 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33778 string.
33779 (run): Likewise.
33780 (grub_menu_entry_run): Likewise.
33781 * PO/POTFILES: Add normal/menu_entry.c.
33782
f616f51c
VS
337832009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33784
33785 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33786
57bbe3be
CPE
337872009-12-05 Carles Pina i Estany <carles@pina.cat>
33788
33789 * util/grub-install.in: Install gettext .mo files.
33790 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33791
013d67a1
CPE
337922009-12-05 Carles Pina i Estany <carles@pina.cat>
33793
33794 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33795 grub_dprintf.
33796
fb954db0
RM
337972009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33798
33799 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33800 non-firmware-dependant one in realmode.S takes precedence.
33801
6b8474f8
RM
338022009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33803
33804 * commands/halt.c: Replace misc arch-specific headers with
33805 `<grub/misc.h>'.
33806 * commands/reboot.c: Likewise.
33807 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33808 `<grub/misc.h>'.
33809 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33810 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33811 (kernel_img_SOURCES): ... to here.
33812
33813 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33814 * include/grub/i386/pc/init.h: Likewise.
33815 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33816 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33817
33818 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33819
33820 * include/grub/i386/halt.h: Remove.
33821 * include/grub/i386/reboot.h: Likewise.
33822
33823 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33824
4b2e6ca2
DM
338252009-12-03 David S. Miller <davem@sunset.davemloft.net>
33826
33827 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33828 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33829 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33830 "progname.h"
33831 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33832 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33833 (usage): Add missing comma in printf.
33834
5239348f
RM
338352009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33836
33837 Use the same reboot approach on i386 coreboot and qemu as we do on
33838 BIOS.
33839
33840 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33841 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33842 * kern/i386/reboot.c: Remove.
33843 * include/grub/i386/reboot.h (grub_reboot): Export function.
33844 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33845 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33846 0xf000:0xfff0 instead of 0xffff:0x0000.
33847 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33848 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33849
ef34cbd4
RM
338502009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33851
33852 Fix $srcdir != $objdir build.
33853
33854 * Makefile.in (po/%.po): Rewrite as ...
33855 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33856
dc9837ea
ST
338572009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33858
33859 Fix GNU/Hurd grub-install crash.
33860 * util/grub-probe.c (probe): Try to access `path' only when it is not
33861 NULL.
33862
2f857f98
VS
338632009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33864
33865 Correct module naming.
33866
33867 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33868 (GRUB_MOD_INIT(efi_uga)): ... to this
33869 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33870 (GRUB_MOD_FINI(efi_uga)): ... to this
33871 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33872 (GRUB_MOD_INIT(efi_gop)): ... to this
33873 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33874 (GRUB_MOD_FINI(efi_gop)): ... to this
33875
c5448046
RM
338762009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33877
33878 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33879 translatable.
33880 (usage): Translate `arg' strings using gettext().
33881 Thanks to Jordi Mallach for the suggestion.
33882
c85184ad
VS
338832009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33884
33885 GOP support. Based on patch from Bean
33886 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33887
33888 * video/efi_gop.c: New file.
33889 * include/grub/efi/graphics_output.h: Likewise.
33890 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33891 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33892 variables.
33893 * conf/x86_64-efi.rmk: Likewise.
33894
8a4c48d8
VS
338952009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33896
33897 Rename efi_fb to efi_uga.
33898
33899 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33900 'efi_uga.mod'.
33901 (efi_fb_mod_SOURCES): Rename this ...
33902 (efi_uga_mod_SOURCES): ... to this.
33903 (efi_fb_mod_CFLAGS): Rename this ...
33904 (efi_uga_mod_CFLAGS): ... to this.
33905 (efi_fb_mod_LDFLAGS): Rename this ...
33906 (efi_uga_mod_LDFLAGS): ... to this.
33907 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33908 'efi_uga.mod'.
33909 (efi_fb_mod_SOURCES): Rename this ...
33910 (efi_uga_mod_SOURCES): ... to this.
33911 (efi_fb_mod_CFLAGS): Rename this ...
33912 (efi_uga_mod_CFLAGS): ... to this.
33913 (efi_fb_mod_LDFLAGS): Rename this ...
33914 (efi_uga_mod_LDFLAGS): ... to this.
33915 * video/efi_fb.c: Move this ...
33916 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33917
fb6c1a7b
RM
339182009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33919
33920 * po/README: New file. Explain our PO file workflow.
33921
3bc7896c
RM
339222009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33923
33924 * po/ChangeLog: Remove. Move relevant entries back to ...
33925 * ChangeLog: ... here.
33926 * po/ca.po: Remove (now handled by TLP).
33927 * po/id.po: Likewise.
33928 * po/zh_CN.po: Likewise.
33929 * Makefile.in (LINGUAS): Initialize in a way that supports
33930 empty set.
33931
9ed4841d
RM
339322009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33933
33934 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33935 reliing on po/LINGUAS.
33936 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33937 (po/%.po): ... this.
33938
0ad46fd7 339392009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
33940
33941 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33942 (main): Use `program_name' instead of nonexistent `progname'.
33943
e30dd392
FZ
339442009-11-26 Felix Zielcke <fzielcke@z-51.de>
33945
33946 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33947 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33948
7656de4f
RM
339492009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33950
33951 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33952 commit.
33953 * conf/i386-efi.rmk: Likewise.
33954 * conf/i386-ieee1275.rmk: Likewise.
33955 * conf/powerpc-ieee1275.rmk: Likewise.
33956 * conf/sparc64-ieee1275.rmk: Likewise.
33957 * conf/x86_64-efi.rmk: Likewise.
33958
db77c4d4
FZ
339592009-11-26 Felix Zielcke <fzielcke@z-51.de>
33960
33961 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33962
a755bb04
FZ
339632009-11-26 Felix Zielcke <fzielcke@z-51.de>
33964
33965 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33966
8a4c07fd
RM
339672009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33968
33969 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33970 (grub_mkdevicemap_SOURCES): New variable.
33971 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33972 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33973 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33974 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33975 (grub_mkdevicemap_SOURCES): Remove.
33976 * conf/i386-efi.rmk: Likewise.
33977 * conf/i386-ieee1275.rmk: Likewise.
33978 * conf/i386-pc.rmk: Likewise.
33979 * conf/powerpc-ieee1275.rmk: Likewise.
33980 * conf/sparc64-ieee1275.rmk: Likewise.
33981 * conf/x86_64-efi.rmk: Likewise.
33982 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33983 (usage): Fix strings to use `program_name'.
33984 (main): Initialize gettext.
33985 * util/grub-editenv.c: Likewise.
33986 * util/grub-emu.c: Likewise.
33987 * util/grub-fstest.c: Likewise.
33988 * util/grub-mkdevicemap.c: Likewise.
33989 * util/grub-mkfont.c: Likewise.
33990 * util/grub-mkrelpath.c: Likewise.
33991 * util/grub-pe2elf.c: Likewise.
33992 * util/grub-probe.c: Likewise.
33993 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33994 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33995 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33996
33997 * util/misc.c: Include `"progname.h"'.
33998 (progname): Remove variable.
33999 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34000
6f61ed55
FZ
340012009-11-25 Felix Zielcke <fzielcke@z-51.de>
34002
34003 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34004 printf and print a newline after the menuentry header line.
34005 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34006
f022876b
FZ
340072009-11-25 Felix Zielcke <fzielcke@z-51.de>
34008
34009 autoconf >= 2.60 support $(localedir).
34010
34011 * INSTALL: Note that autoconf 2.60 is required.
34012 * configure.ac (AC_PREREQ): Bump to 2.60.
34013 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34014 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34015
6717926e
YB
340162009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34017
34018 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34019 aclocal is run.
34020
08806a54
RM
340212009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34022
34023 * normal/main.c (grub_normal_read_line): Fix off-by-one
34024 buffer overflow.
34025
13b33fba
RM
340262009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34027
34028 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34029 "parser.grub" in grub_command_execute() call.
34030
4a8572e9
CPE
340312009-11-24 Carles Pina i Estany <carles@pina.cat>
34032
34033 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34034 * conf/i386-efi.rmk: Likewise.
34035 * conf/i386-ieee1275.rmk: Likewise.
34036 * conf/i386-pc.rmk: Likewise.
34037 * conf/powerpc-ieee1275.rmk: Likewise.
34038 * conf/sparc64-ieee1275.rmk: Likewise.
34039 * conf/x86_64-efi.rmk: Likewise.
34040 * gettext/gettex.c: Include <grub/i18n.h>.
34041 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34042 here ...
34043 * include/grub/i18n.h: ... to here
34044 * include/grub/i18n.h: ... to here.
34045 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 34046 (grub_gettext_dummy): Move above user.
4a8572e9 34047
bee48093
FZ
340482009-11-24 Felix Zielcke <fzielcke@z-51.de>
34049
34050 * util/Makefile.in (install-local): Convert a `for' into a normal
34051 shell expansion.
34052
a031e91c
RM
340532009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34054
34055 * autogen.sh: Add automake call.
34056 * config.guess: Remove.
34057 * config.sub: Likewise.
34058 * install-sh: Likewise.
34059
26bec39d
FZ
340602009-11-24 Felix Zielcke <fzielcke@z-51.de>
34061
34062 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34063
8e2532fd
FZ
340642009-11-24 Felix Zielcke <fzielcke@z-51.de>
34065
34066 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34067 function to a normal shell `for'.
34068
fefa1b7d
FZ
340692009-11-24 Felix Zielcke <fzielcke@z-51.de>
34070
34071 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34072
4501250b
FZ
340732009-11-24 Felix Zielcke <fzielcke@z-51.de>
34074
34075 * util/grub-mkrelpath.c: New file.
34076 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34077 (grub_mkrelpath_SOURCES): New variable.
34078 * include/grub/util/misc.h: New function prototype.
34079 * util/misc.c (make_system_path_relative_to_its_root): New function.
34080
34081 * util/grub-mkconfig_lib.in (bindir): New variable.
34082 (grub_mkrelpath): Likewise.
34083 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34084
34085 * util/probe.c (probe): Make the file path relative to its root.
34086 Change a info message to use the GRUB path. Enable again the
34087 check if we can read the file with GRUB facilities.
34088
34089 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34090 to its root.
34091
11d9778b
FZ
340922009-11-24 Felix Zielcke <fzielcke@z-51.de>
34093
34094 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34095 platform.
34096
4465287d
FZ
340972009-11-24 Felix Zielcke <fzielcke@z-51.de>
34098
34099 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34100 strncmp().
34101
62b47f22
FZ
341022009-11-24 Felix Zielcke <fzielcke@z-51.de>
34103
34104 * util/getroot.c (grub_util_is_dmraid): New function.
34105 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34106 devices as normal ones, not as LVM.
34107
1eafb9b9 341082009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
34109
34110 * conf/common.rmk: Add grub-gettext_lib target and updates
34111 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34112 LDFLAGS.
34113 * gettext/gettext.c: New file. (Reads mo files).
34114 * include/grub/file.h (grub_file_pread): New prototype.
34115 * include/grub/i18n.h (_): New prototype.
34116 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34117 prototypes.
34118 * kern/misc.c (grub_gettext_dummy): New function.
34119 * normal/menu_text.c: Include <grub/i18n.h>.
34120 * normal/menu_text.c (print_timeout): Gettexttize string.
34121 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
34122 * po/POTFILES: Add `normal/menu_text.c'.
34123 * po/ca.po: Add new translations.
c3ea6bd4
CPE
34124 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34125 gettext module and defines locale_dir and lang in grub.cfg.
34126 * NEWS: Add gettext support.
34127
0fdb2568
RM
341282009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34129
34130 * util/hostdisk.c: Include `<grub/i18n.h>'.
34131 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34132 (make_device_name): Rewrite using asprintf.
34133 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34134 (find_system_device): If a device is not found, generate one just
34135 by reusing the OS path name.
34136 (read_device_map): Make it permissible for device.map not to exist.
34137
f515aa62
RM
341382009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34139
34140 * script/sh/execute.c: Move from here ...
34141 * script/execute.c: ... to here. Update all users.
34142 * script/sh/function.c: Move from here ...
34143 * script/function.c: ... to here. Update all users.
34144 * script/sh/lexer.c: Move from here ...
34145 * script/lexer.c: ... to here. Update all users.
34146 * script/sh/main.c: Move from here ...
34147 * script/main.c: ... to here. Update all users.
34148 * script/sh/parser.y: Move from here ...
34149 * script/parser.y: ... to here. Update all users.
34150 * script/sh/script.c: Move from here ...
34151 * script/script.c: ... to here. Update all users.
34152
f84b481b
RM
341532009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34154
34155 * configure.ac: Detect all `emu' platforms. Define
34156 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34157 --enable-grub-emu logic. Disable include/grub/machine
34158 symlink on `emu' platforms.
34159
34160 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34161 * gensymlist.sh.in: Likewise.
34162
34163 * include/grub/i386/coreboot/machine.h: Remove file.
34164 * include/grub/i386/efi/machine.h: Likewise.
34165 * include/grub/i386/ieee1275/machine.h: Likewise.
34166 * include/grub/i386/pc/machine.h: Likewise.
34167 * include/grub/i386/qemu/machine.h: Likewise.
34168 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34169 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34170 * include/grub/x86_64/efi/machine.h: Likewise.
34171
34172 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34173 * commands/halt.c: Likewise.
34174 * commands/reboot.c: Likewise.
34175 * include/grub/autoefi.h: Likewise.
34176 * include/grub/i386/at_keyboard.h: Likewise.
34177 * include/grub/i386/kernel.h: Likewise.
34178 * include/grub/i386/loader.h: Likewise.
34179 * include/grub/i386/pc/memory.h: Likewise.
34180 * kern/dl.c: Likewise.
34181 * kern/i386/coreboot/init.c: Likewise.
34182 * loader/i386/bsd.c: Likewise.
34183 * loader/i386/linux.c: Likewise.
34184 * loader/multiboot_loader.c: Likewise.
34185 * term/i386/pc/serial.c: Likewise.
34186 * term/usb_keyboard.c: Likewise.
34187
34188 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34189 `<grub/machine/machine.h>'
34190 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34191 * util/misc.c: Remove `<grub/machine/machine.h>' and
34192 `<grub/machine/time.h>'.
34193
34194 * Makefile.in (enable_grub_emu): Remove variable.
34195 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34196
34197 * conf/any-emu.rmk: New file.
34198 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34199 (grub_emu_init.c): Move from here ...
34200 * conf/any-emu.rmk: ... to here.
34201
34202 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34203 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34204 * conf/any-emu.rmk: ... to here.
34205
4efeab03
RM
342062009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34207
34208 * include/grub/parser.h (grub_parser_register): Document need
34209 of `name' parameter.
34210 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34211 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34212 "sh" to "grub".
34213
ea1dd8bf
RM
342142009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34215
34216 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34217 `$(XGETTEXT)'.
34218 * include/grub/i18n.h (N_): New macro.
34219 * util/mkisofs/mkisofs.h: Likewise.
34220 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34221 around N_().
34222 (usage): Use gettext() to translate help strings when printing them.
34223
0c140626
RM
342242009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34225
34226 Based on patch from Bean
34227 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34228
34229 * video/efi_fb.c: New file.
34230 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34231 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34232 variables.
34233 * conf/x86_64-efi.rmk: Likewise.
34234
87d58298
RM
342352009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34236
34237 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34238 * util/i386/pc/grub-setup.c: Likewise.
34239
994cc3a3
ST
342402009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34241
34242 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34243 <hurd/fs.h>
34244 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34245 file_get_storage_info to implement grub_guess_root_device.
34246
26a61d6a
FZ
342472009-11-21 Felix Zielcke <fzielcke@z-51.de>
34248
34249 * Makefile.in (target): Use make's builtin $(shell) function
34250 instead of calling directly $(SHELL) to create the locale directories,
34251 inside the $(foreach) function.
34252
74ff1dd5
FZ
342532009-11-21 Felix Zielcke <fzielcke@z-51.de>
34254
34255 * util/grub-mkrescue.in: Print an error and usage if output option
34256 has not been given.
34257
0b787d0e
FZ
342582009-11-21 Felix Zielcke <fzielcke@z-51.de>
34259
34260 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34261 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34262 root and /boot are on different devices.
34263
1164b270
RM
342642009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34265
34266 Fix build for srcdir != objdir.
34267
34268 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34269 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34270 $(srcdir).
34271 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34272 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34273 reference for input.
34274
13774a2f
RM
342752009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34276
34277 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34278 or hardlinking it). Remove -J option, Joliet is not compatible with
34279 multiple source directories.
34280
efda854e
RM
342812009-11-21 Carles Pina i Estany <carles@pina.cat>
342822009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34283
34284 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34285 (process_input_dir): New function. Process an arbitrary input
34286 directory.
34287 Misc adjustments to support both "override mode" and system-wide mode.
34288
6c09890c
FZ
342892009-11-20 Felix Zielcke <fzielcke@z-51.de>
34290
34291 * configure.ac (UNIFONT_BDF): Rename to ...
34292 (FONT_SOURCE): ... this. Update all users.
34293
a797824f
FZ
342942009-11-20 Felix Zielcke <fzielcke@z-51.de>
34295
34296 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34297 to the list of unifont files to look for.
34298
cd4f42b0
RM
342992009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34300
34301 Patch from Joe Auricchio <jauricchio@gmail.com>
34302 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34303 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34304 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34305
393c783d
FZ
343062009-11-19 Felix Zielcke <fzielcke@z-51.de>
34307
34308 * Makefile.in (install-local): Add a missing backslash.
34309
b2f1e327
FZ
343102009-11-19 Felix Zielcke <fzielcke@z-51.de>
34311
34312 * include/grub/x86_64/io.h: New file.
34313
f577f7a0
RM
343142009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34315
34316 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34317 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34318 Include `"progname.h"'.
34319 (main): Initialize gettext.
34320 * util/i386/pc/grub-setup.c: Gettexttize.
34321 * util/i386/pc/grub-mkimage.c: Likewise.
34322
34323 * Makefile.in (po/*.po): Redefine as ...
34324 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34325
3bc7896c
RM
34326 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34327
c37943b6
RM
343282009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34329
34330 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34331 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34332 (program_name): Remove.
34333 (main): Initialize gettext support.
6323f705
RM
34334 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34335 Include `<libintl.h>'.
34336 (_): New macro.
c37943b6
RM
34337
34338 * util/mkisofs/eltorito.c: Gettexttize.
34339 * util/mkisofs/joliet.c: Likewise.
34340 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
34341 * util/mkisofs/multi.c: Likewise.
34342 * util/mkisofs/rock.c: Likewise.
34343 * util/mkisofs/tree.c: Likewise.
34344 * util/mkisofs/write.c: Likewise.
34345
3bc7896c
RM
34346 * po/POTFILES: Update with new files.
34347
5ce77c6e
RM
343482009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34349
34350 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34351 * util/mkisofs/iso9660.h: Likewise.
34352 * util/mkisofs/joliet.c: Likewise.
34353 * util/mkisofs/mkisofs.c: Likewise.
34354 * util/mkisofs/mkisofs.h: Likewise.
34355 * util/mkisofs/rock.c: Likewise.
34356 * util/mkisofs/tree.c: Likewise.
34357 * util/mkisofs/write.c: Likewise.
34358
34359 * util/mkisofs/eltorito.c (rcsid): Remove.
34360 * util/mkisofs/hash.c: Likewise.
34361 * util/mkisofs/joliet.c: Likewise.
34362 * util/mkisofs/name.c: Likewise.
34363 * util/mkisofs/rock.c: Likewise.
34364 * util/mkisofs/tree.c: Likewise.
34365 * util/mkisofs/write.c: Likewise.
34366
1dabbc77
RM
343672009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34368
34369 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34370 instead of static allocation.
34371 * util/mkisofs/match.h: Likewise.
34372
633877cb
RM
343732009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34374
3bc7896c
RM
34375 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34376 and `util/grub.d/10_linux.in'.
633877cb
RM
34377 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34378 translatable Shell files.
34379
af1c0c85
RM
343802009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34381
34382 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34383
769ae37b
RM
343842009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34385
34386 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 34387 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
34388 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34389 Add gettext initialization.
34390 (kfreebsd_entry): Make menuentry output translatable.
34391
343922009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34393
34394 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34395 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34396 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34397 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34398 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 34399 * po/LINGUAS: New file.
769ae37b
RM
34400
344012009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34402
34403 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34404 other things).
34405 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34406 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34407 bindtextdomain() calls for gettext initialization.
34408
344092009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34410
34411 * gnulib/progname.c: New file (imported from Gnulib).
34412 * gnulib/progname.h: Likewise.
34413 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34414 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34415 (usage): Replace `progname' with `program_name'.
34416 (main): Use set_program_name() for program name initialization.
34417
344182009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34419
34420 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34421 from here ...
34422 * Makefile.in (CPPFLAGS): ... to here.
34423
344242009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34425
34426 * aclocal.m4: Move from here ...
34427 * acinclude.m4: ... to here.
34428 * autogen.sh: Add call to `aclocal'.
34429 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34430
344312009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34432
34433 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34434 (LINGUAS): New variable.
34435 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34436 (install-local): Install MO files.
34437 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34438 * include/grub/i18n.h: New file.
3bc7896c
RM
34439 * po/POTFILES: New file.
34440 * po/ca.po: New file.
769ae37b
RM
34441 * util/grub.d/10_linux.in (bindir): New variable.
34442 Add gettext initialization.
34443 (linux_entry): Make menuentry output translatable.
34444 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34445 (usage): Make --help output translatable.
34446 (main): Initialize gettext.
34447
02c0a6ad
RM
344482009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34449
34450 * import_gcry.py: New file (written by Vladimir with minor
34451 adjustments).
34452 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34453 ciphers.
34454 * INSTALL: Document that Python is required for bootstrap.
34455
344562009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34457
34458 Import ciphers from libgcrypt 1.4.4.
34459
34460 * lib/libgcrypt/cipher/ChangeLog
34461 * lib/libgcrypt/cipher/ac.c
34462 * lib/libgcrypt/cipher/arcfour.c
34463 * lib/libgcrypt/cipher/bithelp.h
34464 * lib/libgcrypt/cipher/blowfish.c
34465 * lib/libgcrypt/cipher/camellia-glue.c
34466 * lib/libgcrypt/cipher/camellia.c
34467 * lib/libgcrypt/cipher/camellia.h
34468 * lib/libgcrypt/cipher/cast5.c
34469 * lib/libgcrypt/cipher/cipher.c
34470 * lib/libgcrypt/cipher/crc.c
34471 * lib/libgcrypt/cipher/des.c
34472 * lib/libgcrypt/cipher/dsa.c
34473 * lib/libgcrypt/cipher/ecc.c
34474 * lib/libgcrypt/cipher/elgamal.c
34475 * lib/libgcrypt/cipher/hash-common.c
34476 * lib/libgcrypt/cipher/hash-common.h
34477 * lib/libgcrypt/cipher/hmac-tests.c
34478 * lib/libgcrypt/cipher/md.c
34479 * lib/libgcrypt/cipher/md4.c
34480 * lib/libgcrypt/cipher/md5.c
34481 * lib/libgcrypt/cipher/primegen.c
34482 * lib/libgcrypt/cipher/pubkey.c
34483 * lib/libgcrypt/cipher/rfc2268.c
34484 * lib/libgcrypt/cipher/rijndael-tables.h
34485 * lib/libgcrypt/cipher/rijndael.c
34486 * lib/libgcrypt/cipher/rmd.h
34487 * lib/libgcrypt/cipher/rmd160.c
34488 * lib/libgcrypt/cipher/rsa.c
34489 * lib/libgcrypt/cipher/seed.c
34490 * lib/libgcrypt/cipher/serpent.c
34491 * lib/libgcrypt/cipher/sha1.c
34492 * lib/libgcrypt/cipher/sha256.c
34493 * lib/libgcrypt/cipher/sha512.c
34494 * lib/libgcrypt/cipher/tiger.c
34495 * lib/libgcrypt/cipher/twofish.c
34496 * lib/libgcrypt/cipher/whirlpool.c
34497
af2f93ac
RM
344982009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34499
34500 Fix build for systems without error().
34501
34502 * gnulib/error.c: New file (imported from Gnulib).
34503 * gnulib/error.h: Likewise.
34504 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34505 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34506 (this variable is now used by error()).
34507
73fb3dd5
FZ
345082009-11-16 Felix Zielcke <fzielcke@z-51.de>
34509
814f5e96
FZ
34510 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34511 instead of relying that char is signed.
73fb3dd5 34512
a691ca33
VS
345132009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34514
34515 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34516 blocksize different from specified.
34517 (grub_pxefs_read): Likewise.
34518
2af8f0f4
FZ
345192009-11-16 Felix Zielcke <fzielcke@z-51.de>
34520
34521 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34522
34523 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34524 (grub_ata_readwrite): Likewise. Update 2 format strings.
34525 (grub_atapi_read): Likewise.
34526
34527 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34528 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34529 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34530 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34531 (ata_mod_LDFLAGS): Move from here ...
34532 * conf/i386.rmk: ... to here ...
34533 * conf/x86_64-efi.rmk: ... and here.
34534 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34535 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34536
83bdecaf
RM
345372009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34538
34539 Relicense multiboot.h, with RMS' blessing.
34540
34541 * include/multiboot.h: Change to X11 license.
34542
fd6fd3d7
RM
345432009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34544
34545 Support --version in grub-mkisofs.
34546
34547 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34548 (OPTION_VERSION): New macro.
34549 (ld_options): Recognize --version.
34550 (usage): Move `program_name' from here ...
34551 (program_name): ... to here. Add `static' qualifier.
34552 (main): Recognize `OPTION_VERSION'.
34553
16a88c49
FZ
345542009-11-15 Felix Zielcke <fzielcke@z-51.de>
34555
34556 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34557 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34558
a4158476
RM
345592009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34560
34561 Fix help2man generation for mkisofs.
34562
34563 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34564 (usage): Send output to stdout (rather than stderr).
34565
fc2208b0
RM
345662009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34567
34568 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34569 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34570 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34571 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34572 (bin_SCRIPTS): Add `grub-mkfloppy'.
34573 (grub_mkfloppy_SOURCES): New variable.
34574
34575 * util/grub-mkrescue.in: New file.
34576 * util/i386/pc/grub-mkfloppy.in: New file.
34577
34578 * util/i386/coreboot/grub-mkrescue.in: Remove.
34579 * util/i386/pc/grub-mkrescue.in: Remove.
34580
8d0edf4a
RM
345812009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34582
34583 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34584 from here ...
34585 * include/multiboot.h (struct multiboot_header): ... to here. Update
34586 all users.
34587 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34588 from here ...
34589 * include/multiboot.h (struct multiboot_info): ... to here. Update
34590 all users.
34591 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34592 from here ...
34593 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34594 Update all users.
34595 * include/grub/multiboot.h (struct grub_mod_list): Move
34596 from here ...
34597 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34598 Update all users.
34599
a73f5969
RM
346002009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34601
34602 * include/multiboot2.h (multiboot_word): Rename from this ...
34603 (multiboot2_word): ... to this. Update all users.
34604 (multiboot_header): Rename from this ...
34605 (multiboot2_header): ... to this. Update all users.
34606 (multiboot_tag_header): Rename from this ...
34607 (multiboot2_tag_header): ... to this. Update all users.
34608 (multiboot_tag_start): Rename from this ...
34609 (multiboot2_tag_start): ... to this. Update all users.
34610 (multiboot_tag_name): Rename from this ...
34611 (multiboot2_tag_name): ... to this. Update all users.
34612 (multiboot_tag_module): Rename from this ...
34613 (multiboot2_tag_module): ... to this. Update all users.
34614 (multiboot_tag_memory): Rename from this ...
34615 (multiboot2_tag_memory): ... to this. Update all users.
34616 (multiboot_tag_unused): Rename from this ...
34617 (multiboot2_tag_unused): ... to this. Update all users.
34618 (multiboot_tag_end): Rename from this ...
34619 (multiboot2_tag_end): ... to this. Update all users.
34620
1c8927f0
RM
346212009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34622
34623 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34624 this platform we should support Multiboot1 first.
34625
34626 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34627 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34628 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34629
6e1e0d89
RM
346302009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34631
34632 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34633 of write calls (converting them to fwrite() if they aren't already).
34634 (get_torito_desc): Likewise.
34635 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34636
7f2b34d8
RM
346372009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34638
34639 * util/i386/pc/grub-install.in: Move from here ...
34640 * util/grub-install.in: ... to here. Update all users.
34641
c0ef3311
CW
346422009-11-11 Colin Watson <cjwatson@ubuntu.com>
34643
34644 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34645
e1f240ff
RM
346462009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34647
34648 Support for El Torito without floppy emulation.
34649
34650 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34651 (init_boot_catalog): Improve error handling.
34652 (get_torito_desc): Don't use floppy emulation unless requested by
34653 user. Patch boot information table when requested via
34654 `-boot-info-table'.
34655 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34656 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34657 (use_boot_info_table): New variables.
34658 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34659 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34660 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34661 `--eltorito-emul-floppy'.
34662 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34663 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34664 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34665 (use_boot_info_table, get_731): New prototypes.
34666 * util/mkisofs/write.c (get_731): New function.
34667
af7d4de5
FZ
346682009-11-11 Felix Zielcke <fzielcke@z-51.de>
34669
34670 Fix the generation of the man page.
34671
34672 * util/pc/i386/grub-install.in: Source
34673 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34674
2c55dbc0
RM
346752009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34676
34677 Large file support for grub-mkisofs.
34678
34679 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34680 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34681 (session_start): Upgrade type to `uint64_t'. Update all users.
34682 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34683 (struct directory_entry): Upgrade type of `starting_block' and
34684 `size' to `uint64_t'. Update all users.
34685 (struct deferred): Remove unused structure.
34686 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34687 Update all users.
34688 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34689 file is larger than `UINT32_MAX'.
34690 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34691 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34692 return value.
34693 (struct deferred_write): Upgrade type of `extent' and `size' to
34694 `uint64_t'. Update all users.
34695 (last_extent_written): Upgrade type to `uint64_t'. Update all
34696 users.
34697 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34698 Update all users. Upgrade type of `remain' to `int64_t' and
34699 `use' to `size_t'. Use error() to handle fread() errors.
34700 (write_files): Rely on write_one_file() rather than calling
34701 xfwrite() directly.
34702
6a9cead5
FZ
347032009-11-09 Felix Zielcke <fzielcke@z-51.de>
34704
34705 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34706
4825d790
RM
347072009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34708
34709 * util/mkisofs/fnmatch.c: Remove.
34710 * util/mkisofs/getopt1.c: Likewise.
34711 * util/mkisofs/getopt.c: Likewise.
34712 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34713 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34714 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34715 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34716 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34717
34718 * configure.ac: Detect `mingw32msvc' host_os.
34719 Check for lstat(), getuid() and getgid().
34720
34721 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34722 instances of `u_char' with `uint8_t'.
34723
34724 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34725 [!HAVE_GETUID] (getuid): New function (stub).
34726 [!HAVE_GETGID] (getgid): Likewise.
34727 [!HAVE_LSTAT] (lstat): Likewise.
34728 [!S_IROTH] (S_IROTH): New macro (dummy).
34729 [!S_IRGRP] (S_IRGRP): Likewise.
34730
84b860d8
RM
347312009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34732
34733 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34734 conditional expression).
34735
66e9b712
RM
347362009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34737
34738 Import from Gnulib.
34739
34740 * gnulib/fnmatch.c: New file.
34741 * gnulib/fnmatch.h: Likewise.
34742 * gnulib/fnmatch_loop.c: Likewise.
34743 * gnulib/getopt.c: Likewise.
34744 * gnulib/getopt.h: Likewise.
34745 * gnulib/getopt1.c: Likewise.
34746 * gnulib/getopt_int.h: Likewise.
34747 * gnulib/gettext.h: Likewise.
34748
34f4a5b0
RM
347492009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34750
34751 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34752 * normal/handler.c (read_handler_list): Likewise.
34753
ac451143
RM
347542009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34755
34756 Misc cleanup.
34757
34758 * kern/command.c (grub_register_command_prio): Use
34759 grub_zalloc() instead of explicitly zeroing data.
34760 * kern/list.c: Include `<grub/mm.h>'.
34761 (grub_named_list_find): Replace `0' with `NULL'.
34762 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34763 (fs_module_list): Change type to `grub_named_list_t'. Update all
34764 users.
34765 * normal/dyncmd.c (read_command_list): Add space between function
34766 call and parenthesis.
34767 * normal/handler.c (read_handler_list): Likewise.
34768
4089b167
RM
347692009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34770
34771 * normal/auth.c (punishment_delay): Moved from here ...
34772 (grub_auth_strcmp): ... to here (inside function).
34773
325f5037
RM
347742009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34775
34776 * include/grub/list.h (struct grub_named_list): Remove `const'
34777 qualifier from `name'.
34778 (struct grub_prio_list): Likewise.
34779
7aea29a3
RM
347802009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34781
34782 * normal/auth.c: Include `<grub/time.h>'.
34783 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34784
3fd6f044
RM
347852009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34786
34787 * normal/auth.c (punishment_delay): New variable.
34788 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34789 (grub_auth_check_authentication): Punish failed login attempts with
34790 an incremental (2^N) delay.
34791
a4cd68e4
RM
347922009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34793
34794 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34795 path with $(srcdir).
34796
7ad12f43
VS
347972009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34798
34799 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34800
c1129f03
RM
348012009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34802
34803 * util/i386/coreboot/grub-mkrescue.in: New file.
34804 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34805 variables.
34806
34807 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34808 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34809 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34810 requirements.
34811 * util/mkisofs/defaults.h: New file.
34812 * util/mkisofs/eltorito.c: Likewise.
34813 * util/mkisofs/exclude.h: Likewise.
34814 * util/mkisofs/fnmatch.c: Likewise.
34815 * util/mkisofs/getopt.c: Likewise.
34816 * util/mkisofs/getopt1.c: Likewise.
34817 * util/mkisofs/hash.c: Likewise.
34818 * util/mkisofs/include/fctldefs.h: Likewise.
34819 * util/mkisofs/include/mconfig.h: Likewise.
34820 * util/mkisofs/include/prototyp.h: Likewise.
34821 * util/mkisofs/include/statdefs.h: Likewise.
34822 * util/mkisofs/iso9660.h: Likewise.
34823 * util/mkisofs/joliet.c: Likewise.
34824 * util/mkisofs/match.c: Likewise.
34825 * util/mkisofs/match.h: Likewise.
34826 * util/mkisofs/mkisofs.c: Likewise.
34827 * util/mkisofs/mkisofs.h: Likewise.
34828 * util/mkisofs/multi.c: Likewise.
34829 * util/mkisofs/name.c: Likewise.
34830 * util/mkisofs/rock.c: Likewise.
34831 * util/mkisofs/tree.c: Likewise.
34832 * util/mkisofs/write.c: Likewise.
34833
ec8bb77d
VS
348342009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34835
34836 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34837 being insecure.
34838
3716b12c
RM
348392009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34840
34841 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34842 `grub-mkimage' (and use $0 when possible).
34843
b97b7b91
RM
348442009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34845
34846 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34847 error message for excessively large memory map.
34848
04114812
RM
348492009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34850
34851 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34852 executable bit.
34853
e4eb2373
RM
348542009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34855
34856 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34857 message for coreboot users.
34858
c926e1d5 348592009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34860
34861 Fix build with GNU gold.
34862
34863 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34864 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34865 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34866 link addresses.
34867 * aclocal.m4: Likewise.
34868
86e5b1db 348692009-11-04 Felix Zielcke <fzielcke@z-51.de>
34870
34871 * configure.ac (AC_PREREQ): Bump to 2.59d.
34872 * INSTALL: Make it more clear when Autoconf and Ruby are
34873 needed and when to run `./autogen.sh'.
34874
246cd78f 348752009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34876
34877 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34878 OSes.
34879
4f9dfb37 348802009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34881
34882 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34883
b82bd5e1 348842009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34885
34886 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34887 giving it to GNU Mach.
34888
ff1a9bca 348892009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34890
34891 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34892 GNU partition number to get internal GRUB partition number.
34893
61697d9c 348942009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34895
34896 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34897 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34898
a50569e1 348992009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34900
34901 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34902 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34903 case.
34904
5b153867 349052009-11-01 Felix Zielcke <fzielcke@z-51.de>
34906
34907 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34908
d9e2cd70 349092009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34910
34911 Fix build problem.
34912
34913 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34914 `-isystem=$(srcdir)/include'.
34915
805111a4 349162009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34917
34918 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34919 checked (grub-install doesn't currently rely on it).
34920
fa6e945f 349212009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34922
34923 Revert SVN r2660.
34924
34925 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34926 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34927 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34928 * conf/i386-ieee1275.rmk: Likewise.
34929 * conf/i386-pc.rmk: Likewise.
34930 * conf/powerpc-ieee1275.rmk: Likewise.
34931 * conf/sparc64-ieee1275.rmk: Likewise.
34932 * conf/x86_64-efi.rmk: Likewise.
34933
cee15086 349342009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34935
34936 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34937
95b9239e 349382009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34939
34940 * include/grub/misc.h: Stop checking for APPLE_CC.
34941
2ed19dfd 349422009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34943
34944 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34945 doesn't cause an infinite call loop.
34946
fdcdde19 349472009-10-28 Felix Zielcke <fzielcke@z-51.de>
34948
34949 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34950 strings.
34951
cefabfe1 349522009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34953
34954 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34955 variable.
34956 * Makefile.in: Likewise.
34957
ed96ab6d 349582009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34959
34960 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34961
0579b753 349622009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34963
34964 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34965
478df409 349662009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34967
34968 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34969
083d1679 349702009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34971
34972 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34973 from here ...
34974 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34975
5947ae32 349762009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34977
34978 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34979 in $(MAKEINFO) invocation. This makes it clear in output that
34980 errors are being ignored.
34981
94180ff6 349822009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34983
34984 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34985 from here ...
34986 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34987 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34988 * conf/i386-ieee1275.rmk: Likewise.
34989 * conf/i386-pc.rmk: Likewise.
34990 * conf/powerpc-ieee1275.rmk: Likewise.
34991 * conf/sparc64-ieee1275.rmk: Likewise.
34992 * conf/x86_64-efi.rmk: Likewise.
34993
9031b03a 349942009-10-26 Colin Watson <cjwatson@ubuntu.com>
34995
34996 * util/grub-editenv.c (main): If only a command is given, use
34997 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34998 (usage): FILENAME is now optional and has a default.
34999
e4f6809b 350002009-10-26 Colin Watson <cjwatson@ubuntu.com>
35001
35002 Improve grub-mkconfig performance when there are several menu
35003 entries on a single filesystem.
35004
35005 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35006 prepare_grub_to_access_device.
35007 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35008 * util/grub.d/30_os-prober.in: Likewise.
35009
67937d4d 350102009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35011
35012 * util/grub.d/10_freebsd.in: Remove.
35013 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35014 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35015
ee3756cc 350162009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35017
5c35048e 35018 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 35019
4dea1c6f 350202009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35021
35022 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35023 grub_util_error() call.
35024
042484d7 350252009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35026
35027 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35028 `reserved_first_sector' member.
35029 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35030 `reserved_first_sector' to 1.
35031 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35032 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35033 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35034 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35035 filesystems which begin at first sector.
35036 (options): New option --skip-fs-probe.
35037 (main): Handle --skip-fs-probe and pass it to setup().
35038
d64448a7 350392009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35040
35041 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35042 (memset): Fix function prototype.
35043
508d42ec 350442009-10-25 Robert Millan <rmh.grub@aybabtu.com>
350452009-10-25 Vasily Averin <vvs@parallels.com>
35046
35047 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35048 `dirent.direntlen == 0'.
35049
b240e30c 350502009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35051
35052 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35053 `cpio'.
35054 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35055
346e7fbe 350562009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35057
35058 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35059 `__trampoline_setup' and `__ucmpdi2'.
35060 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35061 that libgcc provides.
35062
cdb308b0 350632009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35064
35065 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35066 * include/grub/sparc64/libgcc.h (memset): Likewise.
35067 * include/grub/misc.h (memset, memcmp): New function prototypes.
35068
fb26abc2 350692009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35070
35071 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35072 `cpio'.
35073 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35074
f6693890 350752009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35076
35077 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35078 * docs/grub.cfg: Compensate for recent change in multiboot
35079 loader (since 2009-08-14 it won't pass filename to payload).
35080 * util/grub.d/10_hurd.in: Likewise.
35081
0933cdc0 350822009-10-21 Felix Zielcke <fzielcke@z-51.de>
35083
35084 * config.guess: Update to latest version from config git
35085 repository.
35086 * config.sub: Likewise.
35087
3b2fe8c2 350882009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35089
35090 Fix build on sparc64.
35091
35092 * configure.ac: Perform checks for libgcc symbols before
35093 adding `-nostdlib' to LDFLAGS.
35094
46695a62 350952009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35096
35097 Let user specify OpenBSD root device.
35098
35099 * loader/i386/bsd.c (openbsd_root): New variable.
35100 (openbsd_opts): New option 'root'.
35101 (OPENBSD_ROOT_ARG): New macro.
35102 (grub_openbsd_boot): Use 'openbsd_root'.
35103 (grub_cmd_openbsd): Fill 'openbsd_root'.
35104
d2b6b7fc 351052009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35106
35107 * NEWS: Misc adjustments.
35108
421bd7ac 351092009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35110
35111 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35112
f1d29d87 351132009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35114
35115 * configure.ac: Bump version to 1.97.
35116
6f3cd880 351172009-10-16 Colin Watson <cjwatson@ubuntu.com>
35118
35119 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35120 -mno-3dnow on x86 architectures. Some toolchains enable these
35121 features by default, but they rely on registers that aren't enabled
35122 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35123
035f7122 351242009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35125
35126 Make entry text a bit more readable.
35127
35128 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35129
44998e58 351302009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35131
35132 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35133
cd2851b3 351342009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35135
35136 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35137 operations.
35138
c6f3b249 351392009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35140
35141 * configure.ac: Add missing dollar.
35142
6b5886ba 351432009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35144
35145 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35146
35147 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35148 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35149 exports.
35150 * include/grub/sparc64/libgcc.h: Likewise. Use
35151 preprocessor conditionals.
35152
e9d66f6d 351532009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35154
35155 * conf/common.rmk (grub-dumpbios): Remove rule.
35156 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35157 * util/grub-dumpbios.in: Remove file.
35158
9155bc17 351592009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35160
35161 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35162 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35163
35164 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35165 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35166 users.
35167
35168 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35169 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35170 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35171 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35172 users.
35173
bf7f7a18 351742009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35175
35176 * term/tparm.c: Switch to GPLv3.
35177
86564c26 351782009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35179
35180 * include/grub/i386/cpuid.h: Add header protection.
35181
5c936493 351822009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35183
35184 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35185
35186 * include/grub/i386/cpuid.h: New file.
35187 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35188 (has_longmode): Rename to ...
35189 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35190 `static' attribute.
35191 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35192 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35193 on a CPU that doesn't implement AMD64 instruction set.
35194
186e7cf2 351952009-10-06 Colin Watson <cjwatson@ubuntu.com>
35196
35197 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35198 that version.texi is rebuilt on version number changes.
35199
83b65c4a 352002009-10-06 Colin Watson <cjwatson@ubuntu.com>
35201
35202 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35203 Fixes bug #27602.
35204
d244281c 352052009-10-06 Colin Watson <cjwatson@ubuntu.com>
35206
35207 * util/i386/pc/grub-install.in: Source
35208 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35209 that the --grub-probe option will work.
35210 * util/sparc64/ieee1275/grub-install.in: Likewise.
35211
da25306d 352122009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35213
35214 * configure.ac: Bump version to 1.97~beta4.
35215
e8ee83c0 352162009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35217
35218 Resync grub-mkdevicemap in x86_64-efi.
35219
35220 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35221 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35222 `util/devicemap.c'.
35223
50dcabcf 352242009-10-01 Colin Watson <cjwatson@ubuntu.com>
35225
35226 * util/grub-editenv.c (create_envblk_file): Write new block with a
35227 .new suffix and then rename it into place, to ensure atomic
35228 creation.
35229
0e51c3a7 352302009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35231
35232 Do not automatically install headers.
35233
35234 * Makefile.in (include_DATA): Remove. Update all users.
35235
31299a95 352362009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35237
35238 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35239 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35240
35241 * util/osdetect.lua: Remove.
35242 * script/lua/lauxlib.c: Likewise.
35243 * script/lua/ldebug.c: Likewise.
35244 * script/lua/grub_main.c: Likewise.
35245 * script/lua/lauxlib.h: Likewise.
35246 * script/lua/ldebug.h: Likewise.
35247 * script/lua/ltablib.c: Likewise.
35248 * script/lua/liolib.c: Likewise.
35249 * script/lua/lstrlib.c: Likewise.
35250 * script/lua/lualib.h: Likewise.
35251 * script/lua/ldo.c: Likewise.
35252 * script/lua/ldump.c: Likewise.
35253 * script/lua/ldo.h: Likewise.
35254 * script/lua/loslib.c: Likewise.
35255 * script/lua/lundump.c: Likewise.
35256 * script/lua/grub_lib.c: Likewise.
35257 * script/lua/ldblib.c: Likewise.
35258 * script/lua/lundump.h: Likewise.
35259 * script/lua/lmem.c: Likewise.
35260 * script/lua/grub_lib.h: Likewise.
35261 * script/lua/lmathlib.c: Likewise.
35262 * script/lua/lstate.c: Likewise.
35263 * script/lua/ltm.c: Likewise.
35264 * script/lua/lvm.c: Likewise.
35265 * script/lua/lmem.h: Likewise.
35266 * script/lua/lstate.h: Likewise.
35267 * script/lua/ltm.h: Likewise.
35268 * script/lua/ltable.c: Likewise.
35269 * script/lua/lvm.h: Likewise.
35270 * script/lua/llex.c: Likewise.
35271 * script/lua/lgc.c: Likewise.
35272 * script/lua/grub_lua.h: Likewise.
35273 * script/lua/loadlib.c: Likewise.
35274 * script/lua/lfunc.c: Likewise.
35275 * script/lua/lopcodes.c: Likewise.
35276 * script/lua/lparser.c: Likewise.
35277 * script/lua/ltable.h: Likewise.
35278 * script/lua/llex.h: Likewise.
35279 * script/lua/lgc.h: Likewise.
35280 * script/lua/lfunc.h: Likewise.
35281 * script/lua/lbaselib.c: Likewise.
35282 * script/lua/lopcodes.h: Likewise.
35283 * script/lua/lparser.h: Likewise.
35284 * script/lua/lzio.c: Likewise.
35285 * script/lua/linit.c: Likewise.
35286 * script/lua/lobject.c: Likewise.
35287 * script/lua/llimits.h: Likewise.
35288 * script/lua/lstring.c: Likewise.
35289 * script/lua/lzio.h: Likewise.
35290 * script/lua/lapi.c: Likewise.
35291 * script/lua/lcode.c: Likewise.
35292 * script/lua/lua.h: Likewise.
35293 * script/lua/lobject.h: Likewise.
35294 * script/lua/lstring.h: Likewise.
35295 * script/lua/lapi.h: Likewise.
35296 * script/lua/lcode.h: Likewise.
35297 * script/lua/luaconf.h: Likewise.
35298
cb8a2c38 352992009-09-26 Colin Watson <cjwatson@ubuntu.com>
35300
35301 * docs/grub.texi (Command-line and menu entry commands): Document
35302 date and echo commands.
35303
6b9b6276 353042009-09-24 Pavel Roskin <proski@gnu.org>
35305
35306 * include/grub/kernel.h (struct grub_module_header): Remove
35307 `grub_module_header_types'. Make `type' unsigned. Make `size'
35308 32-bit on all platforms.
35309 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35310 8-bit field. Use grub_host_to_target32() for `size'.
35311 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35312 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35313 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35314
4e5a02a7 353152009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35316
35317 Fix "lost keypress" bug in at_keyboard.
35318
35319 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35320 Checks for readyness of input buffer (without flushing it).
35321 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35322 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35323
c6dcedf6 353242009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35325
35326 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35327 size check within GRUB_MACHINE_PCBIOS section.
35328
74c958b1 353292009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35330
35331 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35332 return value.
35333 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35334 KEYBOARD_ISREADY check.
35335 (grub_at_keyboard_checkkey): Rename to ...
35336 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35337 Remove gratuitous cast.
35338
ff420223 353392009-09-23 Colin Watson <cjwatson@ubuntu.com>
35340
35341 * configure.ac: Call AC_PROG_MKDIR_P.
35342 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35343 version.texi in $(builddir) rather than $(srcdir).
35344 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35345 to makeinfo's @include search path.
35346
d96875df 353472009-09-23 Felix Zielcke <fzielcke@z-51.de>
35348
35349 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35350
9b3f8365 353512009-09-23 Felix Zielcke <fzielcke@z-51.de>
35352
35353 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35354 for `*.dpkg-new'.
35355
c44c90db 353562009-09-21 Colin Watson <cjwatson@ubuntu.com>
35357
35358 Build info documentation. Some code borrowed from Automake.
35359
35360 * configure.ac: Check for makeinfo.
35361 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35362 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35363 docs/version.texi.
35364 (MOSTLYCLEANFILES): Add vti.tmp.
35365 (docs/version.texi, docs/stamp-vti): Update automatically.
35366 (docs/grub.info): Build info documentation. Use --force and ignore
35367 errors for now.
35368 (all-local): Add $(INFOS).
35369 (install-local): Install info files.
35370 (uninstall): Uninstall info files.
35371 * docs/version.texi: Remove from revision control. This file is
35372 automatically generated on build now.
35373 * gendistlist.sh: Add `*.info'.
35374
e0b37bb5 353752009-09-21 Felix Zielcke <fzielcke@z-51.de>
35376
35377 * kern/term.c: Fix indentation.
35378
5a78865b 353792009-09-21 Felix Zielcke <fzielcke@z-51.de>
35380
35381 * util/hostdisk.c: Fix a comment.
35382
dace7e8a 353832009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35384
35385 Fix regression introduced in r2539.
35386
35387 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35388 to 0xA1.
35389
a83d079b 353902009-09-19 Colin Watson <cjwatson@ubuntu.com>
35391
35392 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 35393 os-prober. Under normal operation, it does not print anything to
35394 stderr; if it does, we need to debug it, and throwing away stderr
35395 makes that excessively difficult.
a83d079b 35396
be94a509 353972009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35398
35399 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35400
63f745e8 354012009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35402
35403 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35404 AC_LANG_PROGRAM from autoconf.
35405 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35406 prototypes (fixes warning).
35407
35408 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35409 `--disable-werror' was used.
35410
bbb2a70f 354112009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35412
35413 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35414 uninitialized `lastaddr'.
35415
77c24f1d 354162009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35417
0f0b8c87 35418 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 35419
07197f23 354202009-09-14 Colin Watson <cjwatson@ubuntu.com>
35421
35422 * commands/test.c (get_fileinfo): Return immediately if
35423 grub_fs_probe fails.
35424
dabf1798 354252009-09-14 José Martínez <xosemp@gmail.com>
35426
35427 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35428
d52109a7 354292009-09-14 Colin Watson <cjwatson@ubuntu.com>
35430
35431 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35432 output.
35433
56532179 354342009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35435
35436 * configure.ac: Remove --enable-grub-pe2elf. Only build
35437 grub-pe2elf when needed by the build system itself.
35438 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35439
8ef070f5 354402009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35441
35442 * configure.ac: Bump version to 1.97~beta3.
35443 * docs/version.texi: Likewise.
35444
61229557 354452009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35446
35447 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35448 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35449 from here ...
35450 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35451 (grub_linux_setup_video): ... to here (with some adjustments).
35452
5c9f8d84 354532009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35454
35455 Fix memory corruption issue (spotted by Colin Watson).
35456
35457 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35458 causing returned size to be stored in an incorrect memory location.
35459 Fix use of uninitialized value when storing the returned size.
35460
e8f5d6e9 354612009-09-12 Yves Blusseau <blusseau@zetam.org>
35462
35463 Change clean rules to properly remove files
35464
35465 * genmk.rb: add new clean rules
35466 * Makefile.in (clean): add the new targets
35467 (mostlyclean): likewise
35468
cda2a409 354692009-09-11 Colin Watson <cjwatson@ubuntu.com>
35470
35471 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35472 to grub_uint64_t.
35473 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35474 non-resident files.
35475
86695375 354762009-09-11 Colin Watson <cjwatson@ubuntu.com>
35477
35478 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35479 part of bug #27349.
35480
8aa1541a 354812009-09-10 Felix Zielcke <fzielcke@z-51.de>
35482
35483 * util/grub-mkconfig.in: Make the created config mode 400 and
35484 print a warning if it fails.
35485
48d9bb0a 354862009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35487
35488 * util/grub.d/40_custom.in: Ask user to type custom entries below
35489 comment, rather than below 'exec tail' line.
35490
3b0521be 354912009-09-10 Colin Watson <cjwatson@ubuntu.com>
35492
35493 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35494 visible in grub.cfg.
35495
50051d55 354962009-09-10 Colin Watson <cjwatson@ubuntu.com>
35497
35498 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35499 file.
35500
c0d34387 355012009-09-10 Felix Zielcke <fzielcke@z-51.de>
35502
35503 * docs/grub.cfg: Add an example menu entry for memtest86+.
35504
80a608f3 355052009-09-09 Felix Zielcke <fzielcke@z-51.de>
35506
a2094832 35507 * config.guess: Update to latest version from config git.
80a608f3 35508 * config.sub: Likewise.
35509
99423078 355102009-09-08 Colin Watson <cjwatson@ubuntu.com>
35511
35512 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35513 unknown-command case. Fixes bug #27320.
35514
44454e4c 355152009-09-08 Felix Zielcke <fzielcke@z-51.de>
35516
35517 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35518 `help' if the command exists.
35519
e30d87ad 355202009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35521
35522 * INSTALL: Require GCC 4.1.3 or later.
35523
9a86f1ec 355242009-09-06 Yves Blusseau <blusseau@zetam.org>
35525
35526 * Makefile.in (RMKFILES): add i386-qemu.rmk
35527 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35528 $(srcdir)/stamp-h.in
35529
7f26d466 355302009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35531
35532 * util/grub-probe.c (probe): Comment out buggy codepath, which
35533 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35534 should be re-enabled after 1.97.
35535
3a613259 355362009-09-05 Felix Zielcke <fzielcke@z-51.de>
35537
35538 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35539 find searches for.
35540
197f76c7 355412009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35542
35543 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35544 unnecessary calls to grub_error.
35545
70ba68ce 355462009-09-04 Colin Watson <cjwatson@ubuntu.com>
35547
35548 * NEWS: Mention `keystatus' and Unicode fonts.
35549
4ff0d7a4 355502009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35551
35552 * configure.ac: Bump version to 1.97~beta2.
35553 * docs/version.texi: Likewise.
35554
77c55a87 355552009-09-03 Colin Watson <cjwatson@ubuntu.com>
35556
35557 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35558 containing unwind information in some cases where it previously did
35559 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35560 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35561 discussion.
35562
f79572cd 355632009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35564
35565 Embedding loadenv module into grub-emu
35566
35567 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35568 commands/loadenv.c
35569 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35570 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35571 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35572 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35573 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35574 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35575
93a81088 355762009-09-03 Magnus Granberg <zorry@ume.nu>
35577
35578 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35579 include -fPIE in the default specs.
35580 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35581 to TARGET_CFLAGS.
35582
160034b2 355832009-09-03 Felix Zielcke <fzielcke@z-51.de>
35584
35585 * INSTALL: Note that GNU Bison 2.3 or later is required.
35586
087c07c4 355872009-09-03 Colin Watson <cjwatson@ubuntu.com>
35588
35589 * kern/i386/pc/startup.S: Fix typo.
35590
cbf978c0 355912009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35592
35593 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35594 according to GCS.
35595
355962009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 35597
35598 * docs/grub.texi (Naming convention): Describe one-based partition
35599 numbering.
35600 (Device syntax): Likewise.
35601 (File name syntax): Likewise.
35602 (Block list syntax): Likewise.
35603 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35604 menu.lst.
35605 (File name syntax): Likewise.
35606 (Command-line and menu entry commands): Document acpi, blocklist,
35607 crc, export, insmod, keystatus, ls, set, and unset commands.
35608
f3e8cdfd 356092009-09-02 Colin Watson <cjwatson@ubuntu.com>
35610
35611 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35612 to avoid implying that only one of --shift, --ctrl, or --alt may be
35613 used.
35614
c0bc232b 356152009-09-02 Colin Watson <cjwatson@ubuntu.com>
35616
35617 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35618 rather than comparing against S_IFREG, which will almost never work.
35619
aa0f752d 356202009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35621
35622 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35623 (write_blocklists): Likewise.
35624
ecb3166a 356252009-09-01 Colin Watson <cjwatson@ubuntu.com>
35626
35627 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35628 argument to grub_printf.
35629
c403a125 356302009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 35631
35632 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 35633 non GNU test.
31aba781 35634
b5e7312c 356352009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35636
35637 * kern/file.c (grub_file_read): Spelling fix
35638
fe00f472 356392009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35640
35641 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35642 loading of headers in some cases.
35643
cc55302e 356442009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35645
35646 * configure.ac: Bump version to 1.97~beta1.
35647 * docs/version.texi: Likewise.
35648
5c90cdd2 356492009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 35650
35651 * include/grub/i386/xnu.h: Add license header.
35652 include grub/err.h explicitly.
35653
c90edae4 356542009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35655
35656 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35657 to `ufs' in the vfs.root.mountfrom kernel parameter.
35658
d8888b5c 356592009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35660
35661 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35662
35663 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35664 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35665
35666 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35667 `ARRAY_SIZE' macro.
35668
6f07b921 356692009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35670
35671 * kern/file.c (grub_file_read): Check offset.
35672 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35673 * fs/jfs.c (grub_jfs_read_file): Likewise.
35674 * fs/ntfs.c (grub_ntfs_read): Likewise.
35675 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35676 * fs/minix.c (grub_minix_read_file): Correct offset check.
35677 * fs/ufs.c (grub_ufs_read_file): Likewise.
35678
b4f34077 356792009-08-28 Colin Watson <cjwatson@ubuntu.com>
35680
35681 * term/i386/pc/console.c (bios_data_area): Cast
35682 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35683
e7c69859 356842009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35685
35686 1-bit optimised blitters.
35687
35688 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35689 prototype.
35690 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35691 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35692 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35693 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35694 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35695 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35696 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35697 function.
35698 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35699 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35700 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35701 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35702 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35703 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35704 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35705 when possible.
35706 * video/video.c (grub_video_get_blit_format): Return
35707 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35708
a57da43f 357092009-08-28 Colin Watson <cjwatson@ubuntu.com>
35710
35711 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35712 the first argument to grub_printf.
35713
4cbe67e5 357142009-08-28 Colin Watson <cjwatson@ubuntu.com>
357152009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35716
35717 Add `getkeystatus' terminal method. Add a new `keystatus' command
35718 to query it.
35719
35720 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35721 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35722 modifier key bitmasks.
35723 (struct grub_term_input): Add `getkeystatus' member.
35724 (grub_getkeystatus): Add prototype.
35725 * kern/term.c (grub_getkeystatus): New function.
35726
35727 * include/grub/i386/pc/memory.h
35728 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35729 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35730 Data Area layout.
35731 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35732 (grub_console_term_input): Set `getkeystatus' member.
35733 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35734 constants.
35735 (grub_usb_keyboard_getreport): Likewise.
35736 (grub_usb_keyboard_checkkey): Likewise.
35737 (grub_usb_keyboard_getkeystatus): New function.
35738 (grub_usb_keyboard_term): Set `getkeystatus' member.
35739
35740 * commands/keystatus.c: New file.
35741 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35742 (keystatus_mod_SOURCES): New variable.
35743 (keystatus_mod_CFLAGS): Likewise.
35744 (keystatus_mod_LDFLAGS): Likewise.
35745 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35746 commands/keystatus.c.
35747 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35748 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35749 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35751 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35752 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 35753
6e2a9085 357542009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35755
35756 Split befs.mod and afs.mod into *_be.mod and *.mod
35757
35758 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35759 (grub_fstest_SOURCES): Likewise.
35760 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35761 (afs_be_mod_SOURCES): New variable.
35762 (afs_be_mod_CFLAGS): Likewise.
35763 (afs_be_mod_LDFLAGS): Likewise.
35764 (befs_be_mod_SOURCES): Likewise.
35765 (befs_be_mod_CFLAGS): Likewise.
35766 (befs_be_mod_LDFLAGS): Likewise.
35767 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35768 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35769 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35770 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35771 (grub_emu_SOURCES): Likewise.
35772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35773 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35774 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35775 * fs/afs_be.c: New file.
35776 * fs/befs_be.c: New file.
35777 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35778 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35779 (U16): Replaced with ...
35780 (grub_afs_to_cpu16): ...this. All users updated.
35781 (U32): Replaced with ...
35782 (grub_afs_to_cpu32): ...this. All users updated.
35783 (U64): Replaced with ...
35784 (grub_afs_to_cpu64): ...this. All users updated.
35785 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35786 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 35787 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 35788 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35789 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35790 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35791 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35792 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35793 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35794 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35795 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35796
32a71655 357972009-08-26 Bean <bean123ch@gmail.com>
35798
35799 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35800 64-bit number.
35801 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35802 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35803 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35804
552bf6c5 358052009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35806
35807 NetBSD memory map support.
35808
35809 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35810 (grub_netbsd_btinfo_mmap_header): New structure.
35811 (grub_netbsd_btinfo_mmap_entry): Likewise.
35812 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35813
1ae2078c 358142009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35815
35816 Enable bsd.mod on coreboot.
35817
35818 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35819 (bsd_mod_SOURCES): New variable.
35820 (bsd_mod_CFLAGS): Likewise.
35821 (bsd_mod_LDFLAGS): Likewise.
35822 (bsd_mod_ASFLAGS): Likewise.
35823 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35824 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35825
beefc598 358262009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35827
35828 Cleanup NetBSD root support.
35829
35830 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35831 grub_bsd_get_device.
35832 Fix typo.
35833
3b76e68b 358342009-08-25 Felix Zielcke <fzielcke@z-51.de>
35835
35836 * util/grub.d/00_header.in: Move check for the video backend of
35837 gfxterm from here ...
35838 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35839 a suitable video backend.
35840
aea664ea 358412009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35842
35843 Fix breakage in grub-setup.
35844
35845 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35846 "msdos_partition_map".
35847
ff747d50 358482009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35849
35850 Fix breakage in normal/auth.c.
35851
35852 * normal/auth.c (grub_iswordseparator): New function.
35853
e7e1f93f 358542009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35855
35856 Authentication support.
35857
35858 * commands/password.c: New file.
35859 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35860 (password_mod_SOURCES): New variable.
35861 (password_mod_CFLAGS): Likewise.
35862 (password_mod_LDFLAGS): Likewise.
35863 (normal_mod_SOURCES): Add normal/auth.c.
35864 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35865 normal/auth.c.
35866 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35867 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35868 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35869 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35870 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35871 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35872 * include/grub/auth.h: New file.
35873 * include/grub/err.h (grub_err_t): New enum value
35874 GRUB_ERR_ACCESS_DENIED.
35875 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35876 'users'.
35877 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35878 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35879 users updated.
35880 * normal/auth.c: New file.
35881 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35882 (grub_cmdline_run): Don't allow to go to command line without
35883 authentication.
35884 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35885 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35886 menuentry without superuser rights.
35887 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35888 user isn't a superuser.
35889
70f1161d 358902009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35891
35892 Save space by inlining misc.c functions.
35893
35894 * kern/misc.c (grub_iswordseparator): Made static.
35895 * kern/misc.c (grub_strcat): Moved from here ...
35896 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35897 * kern/misc.c (grub_strncat): Moved from here ...
35898 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35899 * kern/misc.c (grub_strcasecmp): Moved from here ...
35900 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35901 * kern/misc.c (grub_strncasecmp): Moved from here ...
35902 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35903 * kern/misc.c (grub_isalpha): Moved from here ...
35904 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35905 * kern/misc.c (grub_isdigit): Moved from here ...
35906 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35907 * kern/misc.c (grub_isgraph): Moved from here ...
35908 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35909 * kern/misc.c (grub_tolower): Moved from here ...
35910 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35911
48e40bff 359122009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35913
35914 * script/sh/function.c (grub_script_function_find): Cut error message
35915 not to flood terminal.
35916 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35917 limit.
35918 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35919
c385bfc3 359202009-08-24 Colin Watson <cjwatson@ubuntu.com>
35921
35922 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35923 `report' grub_uint8_t *.
35924 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35925 Use a 50-millisecond timeout rather than just repeating
35926 grub_usb_keyboard_getreport 50 times.
35927 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35928
2d21e3e8 359292009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35930
35931 Rename *_partition_map to part_*
35932
35933 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35934 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35935 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35936 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35937 All users updated.
35938 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35939 All users updated.
35940 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35941 * util/grub-probe.c (probe_partmap): Don't transform partition name
35942 to get module name.
35943
dd103c4e 359442009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35945
35946 Fix OpenBSD and NetBSD support.
35947
35948 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35949 memory address conflict.
35950 (OPENBSD_MMAP_ACPI): New definition.
35951 (OPENBSD_MMAP_NVS): Likewise.
35952 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35953 and OPENBSD_MMAP_NVS.
35954 Add memory map terminator
35955 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 35956 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 35957
16c84d74 359582009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35959
35960 Let user specify NetBSD root device.
35961
35962 * loader/i386/bsd.c (netbsd_root): New variable.
35963 (netbsd_opts): New option 'root'.
35964 (NETBSD_ROOT_ARG): New macro.
35965 (grub_netbsd_boot): Use 'netbsd_root'.
35966 (grub_bsd_unload): Free 'netbsd_root'.
35967 (grub_cmd_netbsd): Fill 'netbsd_root'.
35968
adb29902 359692009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35970
35971 Support for 64-bit NetBSD.
35972
35973 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35974 point when booting non-FreeBSD.
35975
f5ae9f74 359762009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35977
35978 Support --no-smp and --no-acpi for NetBSD.
35979
35980 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35981 (NETBSD_AB_NOACPI): Likewise.
35982 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35983 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35984
de74f136 359852009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35986
35987 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35988 errors.
35989 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35990 errors. Call grub_error when needed.
35991
e9a925da 359922009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35993
35994 * commands/search.c (search_fs): Try searching without autoload first.
35995 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35996 filesystem module explicitly for faster booting.
35997
5174302b 359982009-08-23 Colin Watson <cjwatson@ubuntu.com>
35999
36000 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36001
c8c80635 360022009-08-23 Colin Watson <cjwatson@ubuntu.com>
36003
36004 * util/grub.d/30_os-prober.in: Disable os-prober if
36005 `GRUB_DISABLE_OS_PROBER' was set to true.
36006
71acf5e5 360072009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36008
36009 * partmap/pc.c: Rename to ...
36010 * partmap/msdos.c: ... this. Update all users.
36011 (grub_pc_partition_map): Rename to ...
36012 (grub_msdos_partition_map): ... this. Update all users.
36013
36014 * parttool/pcpart.c: Rename to ...
36015 * parttool/msdospart.c: ... this. Update all users.
36016
36017 * include/grub/pc_partition.h: Rename to ...
36018 * include/grub/msdos_partition.h: ... this. Update all users.
36019 (grub_pc_partition_bsd_entry): Rename to ...
36020 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36021 (grub_pc_partition_disk_label): Rename to ...
36022 (grub_msdos_partition_disk_label): ... this. Update all users.
36023 (grub_pc_partition_entry): Rename to ...
36024 (grub_msdos_partition_entry): ... this. Update all users.
36025 (grub_pc_partition_mbr): Rename to ...
36026 (grub_msdos_partition_mbr): ... this. Update all users.
36027 (grub_pc_partition): Rename to ...
36028 (grub_msdos_partition): ... this. Update all users.
36029 (grub_pc_partition_is_empty): Rename to ...
36030 (grub_msdos_partition_is_empty): ... this. Update all users.
36031 (grub_pc_partition_is_extended): Rename to ...
36032 (grub_msdos_partition_is_extended): ... this. Update all users.
36033 (grub_pc_partition_is_bsd): Rename to ...
36034 (grub_msdos_partition_is_bsd): ... this. Update all users.
36035
36036 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36037 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36038 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36039 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36040 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36041 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36042 (gpt_mod_LDFLAGS): Rename to ...
36043 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36044 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36045 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36046 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36047 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36048 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36049 (part_gpt_mod_LDFLAGS): ... this.
36050 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36051 `pcpart.mod' to `msdospart.mod'.
36052 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36053 to ...
36054 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36055 (msdospart_mod_LDFLAGS): ... this.
36056
c11fded5 360572009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36058
36059 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36060 (openbsd_opts): Likewise.
36061 (netbsd_opts): Likewise.
36062 (freebsd_flags): Added 0 terminator.
36063 (openbsd_flags): Likewise.
36064 (netbsd_flags): Likewise.
36065 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36066 (grub_cmd_freebsd): Transformed into extended command.
36067 (grub_cmd_openbsd): Likewise.
36068 (grub_cmd_netbsd): Likewise.
36069 (cmd_freebsd): Changed type to grub_extcmd_t.
36070 (cmd_openbsd): Likewise.
36071 (cmd_netbsd): Likewise.
36072 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36073 grub_cmd_openbsd as extended commands.
36074 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36075 cmd_netbsd and cmd_openbsd
36076
11d1c769 360772009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36078
36079 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36080
7a9094e5 360812009-08-21 Pavel Roskin <proski@gnu.org>
36082
5496c37e 36083 * Makefile.in (install-local): When checking if a file is in the
36084 build directory, use "test -e" to detect symlinks.
36085
7a9094e5 36086 * Makefile.in (install-local): Remove all files in
36087 $(DESTDIR)$(pkglibdir) before installing new files there.
36088
e53cea11 360892009-08-18 Felix Zielcke <fzielcke@z-51.de>
36090
36091 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36092 grub-mkelfimage.
36093
9aced544 360942009-08-18 Felix Zielcke <fzielcke@z-51.de>
36095
36096 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36097 explicitly specified by the user.
36098
b7da6bab 360992009-08-18 Pavel Roskin <proski@gnu.org>
36100
36101 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36102 grub_uint8_t pointer for data.
36103 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36104 Likewise.
36105 * video/fb/fbutil.c: Remove unnecessary casts.
36106
19f1b335 361072009-08-17 Michal Suchanek <hramrach@centrum.cz>
36108
36109 VBE cleanup.
36110
36111 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36112 (grub_vbe_set_video_mode): Save active mode info
36113 only after setting the mode.
36114 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36115 second argument.
36116
2f467aa9 361172009-08-17 Michal Suchanek <hramrach@centrum.cz>
36118
36119 Rename variables for clarity.
36120
36121 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36122 (active_vbe_mode_info): ... this. All users updated.
36123 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36124 All users updated.
36125 (initial_mode): Rename to ...
36126 (initial_vbe_mode): ... this. All users updated.
36127 (mode_in_use): Rename to ..
36128 (vbe_mode_in_use): ... this. All users updated.
36129 (mode_list): Rename to ..
36130 (vbe_mode_list): ... this. All users updated.
36131 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36132 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36133 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36134 'mode_list_size' to 'vbe_mode_list_size'.
36135 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36136 'best_mode_info' to 'best_vbe_mode_info' and
36137 'best_mode' to 'best_vbe_mode'
36138
6025fcd7 361392009-08-17 Michal Suchanek <hramrach@centrum.cz>
36140
36141 Remove duplicate grub_video_fb_get_video_ptr.
36142
36143 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36144 (grub_video_fb_get_video_ptr): ... this.
36145 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36146 * video/fb/fbutil.c: Add comment about addressing.
36147 (get_data_ptr): Rename to ...
36148 (grub_video_fb_get_video_ptr): ... this. All users updated.
36149 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36150
cc8c6faf 361512009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36152
36153 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36154 grub_dprintf() that was just added.
36155
08aa61f0 361562009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36157
36158 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36159 (DEFAULT_VIDEO_MODE): Remove macros.
36160 (grub_linux_boot): Remove assumption that Linux has FB support,
36161 and use "text" as default video mode.
36162
7cef4f75 361632009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36164
36165 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36166 grub_dprintf.
36167 * fs/fat.c (grub_fat_read_data): Likewise.
36168
e1f39873 361692009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36170
36171 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36172 payload.
36173 (grub_module): Likewise.
36174
c166d79e 361752009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36176
36177 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36178 mbi->cmdline but free playground.
36179
c60cee8e 361802009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36181
36182 Handle group offset on UFS1.
36183
36184 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36185 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36186
c0d8b5d4 361872009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36188
36189 Split ufs.mod into ufs1.mod and ufs2.mod.
36190
36191 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36192 (grub_fstest_SOURCES): Likewise.
36193 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36194 (ufs_mod_SOURCES): Remove.
36195 (ufs_mod_CFLAGS): Likewise.
36196 (ufs_mod_LDFLAGS): Likewise.
36197 (ufs1_mod_SOURCES): New variable.
36198 (ufs1_mod_CFLAGS): Likewise.
36199 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 36200 (ufs2_mod_SOURCES): New variable.
36201 (ufs2_mod_CFLAGS): Likewise.
36202 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 36203 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36204 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36205 Likewise.
36206 (grub_emu_SOURCES): Likewise.
36207 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36208 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36209 (grub_setup_SOURCES): Likewise.
36210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36211 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36212 (grub_setup_SOURCES): Likewise.
36213 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36214 Likewise.
36215 * fs/ufs2.c: New file.
36216 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36217
d3539132 362182009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36219
36220 Framebuffer split.
36221
36222 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36223 subsystem at the end.
36224 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36225 (video_fb_mod_SOURCES): New variable.
36226 (video_fb_mod_CFLAGS): Likewise.
36227 (video_fb_mod_LDFLAGS): Likewise.
36228 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36229 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36230 * video/i386/pc/vbeblit.c: Moved from here ...
36231 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36232 * video/i386/pc/vbefill.c: Moved from here ...
36233 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36234 * video/i386/pc/vbeutil.c: Moved from here ...
36235 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36236 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36237 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36238 * include/grub/i386/pc/vbefill.h: Moved from here ...
36239 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36240 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36241 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36242 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36243 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36244 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36245 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36246 (grub_video_adapter): Added 'get_info_and_fini'.
36247 (grub_video_get_info_and_fini): New prototype.
36248 (grub_video_set_mode): make modestring const char *.
36249 * loader/i386/linux.c (grub_linux_setup_video): Use
36250 grub_video_get_info_and_fini.
36251 (grub_linux_boot): Move modesetting just before booting.
36252 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36253 grub_video_get_info_and_fini.
36254 * video/i386/pc/vbe.c: Moved framebuffer part ...
36255 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36256 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36257 grub_video_fbstd_colors and grub_video_fb_set_palette.
36258 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36259 grub_video_fb_init.
36260 (grub_video_vbe_fini): Use grub_video_fb_fini.
36261 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36262 render_target and use grub_video_fb_set_active_render_target and
36263 grub_video_fb_set_palette.
36264 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36265 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36266 (grub_video_vbe_adapter): Use framebuffer.
36267 * video/video.c (grub_video_get_info_and_fini): New function.
36268 (grub_video_set_mode): Make modestring const char *.
36269 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36270 values are already initialised.
36271
d404ee56 362722009-08-14 Pavel Roskin <proski@gnu.org>
36273
36274 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36275 ABS and APPLE_CC.
36276 * boot/i386/pc/diskboot.S: Likewise.
36277 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36278 sectors allow compilation on MacOSX.
36279 * conf/i386-pc.rmk: Enable unconditional compilation of
36280 lnxboot.img.
36281
9a10df16 362822009-08-13 Colin Watson <cjwatson@ubuntu.com>
36283
36284 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36285 * util/grub.d/00_header.in: Enter interruptible sleep if
36286 GRUB_HIDDEN_TIMEOUT is set.
36287
be3c9ca7 362882009-08-13 Yves Blusseau <blusseau@zetam.org>
36289
36290 * include/grub/symbol.h: Add the LOCAL macro.
36291 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36292 starting with "L_".
36293
1f9e557e 362942009-08-13 Pavel Roskin <proski@gnu.org>
36295
9ca62843 36296 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36297 any modern compilers we support.
36298
1f9e557e 36299 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36300 Use local labels starting with "L_" so that Apple assembler
36301 knows they are local.
36302
81623db6 363032009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36304
36305 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36306 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36307 (bsd_kernel_types): ... this enum.
36308
36309 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36310 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36311 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36312
36313 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36314 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36315 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36316 messages.
36317
f5d35e7a 363182009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36319
36320 * util/grub-dumpdevtree: Moved from here ...
36321 * util/i386/efi/grub-dumpdevtree: ... to here.
36322 (hexify): New function. Converts a string to its hex version.
36323 Generate hex versions of "efi" and "device-properties" by calling
36324 hexify() on the ASCII strings rather than by hardcoding numbers.
36325
d1e1d527 363262009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36327
36328 * fs/jfs.c: Update copyright year.
36329
1ebbe064 363302009-08-08 Felix Zielcke <fzielcke@z-51.de>
36331
36332 * util/grub.d/00_header.in: Fix a comment.
36333 * util/grub.d/10_linux.in: Likewise.
36334 * util/grub.d/10_windows.in: Likewise.
36335 * util/grub.d/10_hurd.in: Likewise.
36336
a78c8d24 363372009-08-08 Felix Zielcke <fzielcke@z-51.de>
36338
36339 * util/grub-mkconfig.in: Allow the user to specify the used font
36340 with GRUB_FONT.
36341
29a6b9e8 363422009-08-08 Pavel Roskin <proski@gnu.org>
36343
b5f16cc4 36344 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36345 available, xfs.mod needs it now.
36346
2f5cb827 36347 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36348 the "g" modifier in sed when the intention is to strip something
36349 once. This fixes comparison of kernels with multiple dashes.
36350
29a6b9e8 36351 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36352 on it. Add missing space before closing bracket. Fix
36353 misleading formatting.
36354
892a3d98 363552009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36356
36357 * docs/grub.texi: Major overhaul. Remove all sections that are
36358 specific to GRUB Legacy, or mostly composed of Legacy-specific
36359 information.
36360
ed94253f 363612009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36362
36363 * docs/version.texi: New file. Provides version information for
36364 grub.texi.
36365
126d6628 363662009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36367
36368 * docs/grub.texi: Update CVS information to SVN.
36369 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36370
998b5aa9 363712009-08-07 Felix Zielcke <fzielcke@z-51.de>
36372
36373 * util/grub-mkconfig.in: Remove a wrong `fi'.
36374
818e094a 363752009-08-07 Felix Zielcke <fzielcke@z-51.de>
36376
36377 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36378 (grub_jfs_uuid): New function.
36379 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36380
b969c52f 363812009-08-07 Felix Zielcke <fzielcke@z-51.de>
36382
36383 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36384 of it to ...
36385 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36386 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36387
7a4894cc 363882009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36389
36390 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36391 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36392 Update all users.
36393
36394 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36395 not just "vmlinu[zx]".
36396 Moved from here ...
36397 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36398 all users.
36399
36400 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36401 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36402 all users.
36403
4e2171f8 364042009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36405
36406 * util/grub.d/10_freebsd.in: Use an absolute device path for
36407 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36408
6dcfcb32 364092009-08-06 Felix Zielcke <fzielcke@z-51.de>
36410
36411 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36412 handling of multiple abstraction modules.
36413
f56a8756 364142009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36415
36416 Fix a bug resulting in black screen when loading Linux using a
36417 packed video mode.
36418
36419 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36420 function.
36421
36422 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36423 (grub_vbe_bios_getset_dac_palette_width): New function.
36424 (grub_vbe_bios_get_dac_palette_width)
36425 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36426 grub_vbe_bios_getset_dac_palette_width()).
36427
36428 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36429 check for return status.
36430 (grub_vbe_get_video_mode_info): When getting information for a packed
36431 mode (<= 8 bpp), obtain DAC palette width using
36432 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36433 {red,green,blue}_mark_size.
36434
222671b2 364352009-08-04 Felix Zielcke <fzielcke@z-51.de>
36436
ecb1a6d9 36437 * commands/search.c (options): Fix help output to match actual code.
222671b2 36438
f84114f5 364392009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36440
36441 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36442 of homegrown code.
36443
bd288a20 364442009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 36445
36446 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36447 on XFS or ReiserFS.
36448
8aab5e25 364492009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36450
36451 Support Apple partition map with sector size different from 512 bytes.
36452
36453 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36454 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36455 and 'apart.partmap_size'.
36456
6ad6258a 364572009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
364582009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36459
36460 Fix cpuid command.
36461
36462 * commands/i386/cpuid.c (options): New variable.
36463 (grub_cmd_cpuid): Return real error.
36464 (GRUB_MOD_INIT(cpuid)): Declare options.
36465
67459bc6 364662009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36467
36468 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36469 valid.
36470
fbc6ab54 364712009-07-31 Bean <bean123ch@gmail.com>
36472
36473 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36474 log2_inode.
36475 (grub_fshelp_node): Move inode field to the end.
36476 (grub_xfs_data): Remove inode field.
36477 (grub_xfs_inode_block): Calculate inode size using sblock.
36478 (grub_xfs_inode_offset): Likewise.
36479 (grub_xfs_read_inode): Calculate inode size using sblock.
36480 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36481 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36482 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36483 to match inode size.
36484 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36485 not accessible when data is null.
36486 (grub_xfs_open): Likewise.
36487
f45d6cfc 364882009-07-31 Bean <bean123ch@gmail.com>
36489
36490 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36491 Don't change pv->disk if it's already set.
36492
36493 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36494 (grub_raid_register): ... here.
36495 (grub_raid_rescan): Removed.
36496
36497 * include/grub/raid.h (grub_raid_rescan): Removed.
36498
36499 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36500 (fstest): Replace grub_raid_rescan with module fini function followed
36501 by init function.
36502
36503 * util/grub-probe.c: Add include file <grub/raid.h>.
36504 (probe_raid_level): New function.
36505 (probe): Detect abstraction by walking the disk device, support two
36506 level of abstraction (LVM on RAID) when detecting partition map.
36507
24443b5a 365082009-07-31 Pavel Roskin <proski@gnu.org>
36509
36510 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36511 to grub_zalloc(), it was erroneous.
36512 Reported by Bean <bean123ch@gmail.com>
36513
a275d9e7 365142009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36515
36516 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 36517 embedding zone, not only the first one.
a275d9e7 36518
56c5a47f 365192009-07-29 Joe Auricchio <jauricchio@gmail.com>
36520
36521 * term/gfxterm.c (clear_char): New function.
36522 (grub_virtual_screen_setup): Use clear_char.
36523 (scroll_up): Likewise.
36524 (grub_virtual_screen_cls): Likewise.
36525
67bb323a 365262009-07-29 Felix Zielcke <fzielcke@z-51.de>
36527
36528 * util/deviceiter.c (get_acceleraid_disk_name): New static
36529 function.
36530 (grub_util_iterate_devices): Handle Accelraid devices.
36531 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36532
388a7c75 365332009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36534
36535 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36536 separator for the suggested gfxpayload string (';' collides with the
36537 parser and needs escaping).
36538
3bb7abcf 365392009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36540
36541 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36542 Clear direction flag before jumping to OS.
36543 (grub_multiboot2_real_boot): Likewise.
36544
2ddd36d7 365452009-07-28 Felix Zielcke <fzielcke@z-51.de>
36546
36547 * util/i386/pc/grub-install: Fix parsing of --disk-module
36548 option.
36549
c521b62b 365502009-07-28 Felix Zielcke <fzielcke@z-51.de>
36551
36552 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36553 when embedding.
36554
880e0a0c 365552009-07-26 Felix Zielcke <fzielcke@z-51.de>
36556
36557 * util/grub-mkconfig.in (package_version): New variable.
36558 Use it do display the version.
36559
2366e356 365602009-07-25 Felix Zielcke <fzielcke@z-51.de>
36561
36562 * kern/file.c (grub_file_open): Revert to previous check with
36563 grub_errno.
36564
7ad8c80e 365652009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36566
36567 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36568 from help line. It's out of sync with code.
36569
72b9658b 365702009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36571
36572 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36573 entries on failed boot.
36574
77435277 365752009-07-25 Felix Zielcke <fzielcke@z-51.de>
36576
36577 * kern/file.c (grub_file_open): Fix an error check.
36578
fcaa8b21 365792009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36580
35d16c74 36581 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36582 partition map couldn't be identified.
fcaa8b21 36583
48904cd1 365842009-07-23 Pavel Roskin <proski@gnu.org>
36585
ef3c317f 36586 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36587 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36588 case of little endian words becomes just an optimization.
36589 Respect const modifier.
ad8ea1f4 36590 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 36591
48904cd1 36592 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36593 to avoid loss of upper bits if align is unsigned and shorter
36594 than addr.
36595
260c9a89 365962009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36597
36598 UUID support for UFS
36599
36600 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36601 (grub_ufs_uuid): New function.
36602 (grub_ufs_fs): add .uuid
36603
f76ce889 366042009-07-21 Pavel Roskin <proski@gnu.org>
36605
36606 * kern/dl.c (grub_dl_check_header): Make static.
36607
6a6cbcaf 366082009-07-21 Felix Zielcke <fzielcke@z-51.de>
36609
36610 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36611 add drivemap for Vista. It breaks Windows 7.
36612
cffcddb2 366132009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36614
36615 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36616 128 bytes
36617
1ef44b80 366182009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36619
36620 Add BFS support
36621
36622 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36623 (grub_fstest_SOURCES): Likewise.
36624 (pkglib_MODULES): Add befs.mod.
36625 (befs_mod_SOURCES): New variable.
36626 (befs_mod_CFLAGS): Likewise.
36627 (befs_mod_LDFLAGS): Likewise.
36628 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36629 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36630 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36631 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36632 (grub_setup_SOURCES): Likewise.
36633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36634 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36635 (grub_setup_SOURCES): Likewise.
36636 * fs/befs.c: New file.
36637 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36638 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36639 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36640 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36641 (B_KEY_INDEX_ALIGN): New declaration.
36642 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36643 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36644 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36645 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36646 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36647 (grub_afs_mount) [MODE_BFS]: Likewise.
36648 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36649 (grub_afs_fs): Use GRUB_AFS_FSNAME
36650 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36651 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36652 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36653 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36654
4f253044 366552009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36656
36657 * util/getroot.c (find_root_device): Add support for MacOSX.
36658 * util/hostdisk.c: Likewise.
36659
57a55913 366602009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36661
36662 * font/font.c (find_glyph): Check whether a font is present to avoid
36663 segmentation fault.
75421ca9 36664
366652009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 36666
36667 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36668
e98cd0c2 366692009-07-20 Pavel Roskin <proski@gnu.org>
36670
36671 * configure.ac: Trim excessively wordy excuses.
36672
1d2d169a 366732009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36674
36675 Add symlink, mtime and label support to AtheFS.
36676
36677 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36678 (grub_afs_iterate_dir): Handle symlinks.
36679 (grub_afs_open): Use grub_afs_read_symlink.
36680 (grub_afs_dir): Likewise.
36681 Pass mtime.
36682 (grub_afs_label): New function.
36683 (grub_afs_fs): Add grub_afs_label.
36684 (grub_afs_read_symlink): New function.
36685
186f3189 366862009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36687
36688 Fix AtheFS support.
36689
36690 * fs/afs.c: Fix comments style.
36691 (grub_afs_blockrun): Declare as packed.
36692 (grub_afs_datastream): Likewise.
36693 (grub_afs_bnode): Likewise.
36694 (grub_afs_btree): Likewise.
36695 (grub_afs_sblock): Likewise.
36696 Declare `name' as char.
36697 (grub_afs_inode): Declare as packed.
36698 Change void *vnode to grub_uint32_t unused.
36699 (grub_afs_iterate_dir): Check that key_size is positive.
36700 (grub_afs_mount): Don't read superblock twice.
75421ca9 36701 (grub_afs_dir): Don't free node in case of error,
186f3189 36702 grub_fshelp_find_file already handles this.
36703 (grub_afs_open): Likewise.
36704
5680109e 367052009-07-19 Pavel Roskin <proski@gnu.org>
36706
36707 * Makefile.in: Remove LIBLZO and enable_lzo.
36708 * conf/i386-pc.rmk: Remove lzo support.
36709 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36710 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36711 support.
36712 * kern/i386/pc/lzo1x.S: Remove.
36713 * kern/i386/pc/startup.S: Remove lzo support.
36714 * util/i386/pc/grub-mkimage.c: Likewise.
36715
ac70fa32 367162009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36717
36718 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36719 * fs/xfs.c (grub_xfs_dir): Likewise.
36720 * fs/afs.c (grub_afs_dir): Likewise.
36721 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36722 (grub_iso9660_open): Likewise.
36723 * fs/jfs.c (grub_jfs_open): Likewise.
36724 * fs/ext2.c (grub_ext2_dir): Likewise.
36725 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36726 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 36727
eab58da2 367282009-07-16 Pavel Roskin <proski@gnu.org>
36729
d2838156 36730 * configure.ac: Never add "-c" to CFLAGS.
36731
55c70904 36732 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36733
43e6200c 36734 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36735 grub_cv_cc_efiemu should be used.
36736
ce7a733d 36737 * configure.ac: Typo fixes.
36738
eab58da2 36739 * kern/mm.c (grub_zalloc): New function.
36740 (grub_debug_zalloc): Likewise.
36741 * include/grub/mm.h: Declare grub_zalloc() and
36742 grub_debug_zalloc().
36743 * util/misc.c (grub_zalloc): New function.
36744 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36745 instead of grub_malloc(), remove unneeded initializations.
36746 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36747 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36748 * commands/parttool.c (grub_cmd_parttool): Likewise.
36749 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36750 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36751 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36752 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36753 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36754 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36755 (grub_cmd_efiemu_pnvram): Likewise.
36756 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36757 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36758 (grub_iso9660_iterate_dir): Likewise.
36759 * fs/jfs.c (grub_jfs_opendir): Likewise.
36760 * fs/ntfs.c (list_file): Likewise.
36761 (grub_ntfs_mount): Likewise.
36762 * kern/disk.c (grub_disk_open): Likewise.
36763 * kern/dl.c (grub_dl_load_core): Likewise.
36764 * kern/elf.c (grub_elf_file): Likewise.
36765 * kern/env.c (grub_env_context_open): Likewise.
36766 (grub_env_set): Likewise.
36767 (grub_env_set_data_slot): Likewise.
36768 * kern/file.c (grub_file_open): Likewise.
36769 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36770 * loader/i386/multiboot.c (grub_module): Likewise.
36771 * loader/xnu.c (grub_xnu_create_key): Likewise.
36772 (grub_xnu_create_value): Likewise.
36773 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36774 (read_config_file): Likewise.
36775 * normal/menu_entry.c (make_screen): Likewise.
36776 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36777 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36778 * script/sh/script.c (grub_script_parse): Likewise.
36779 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36780 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36781 * video/readers/png.c (grub_png_output_byte): Likewise.
36782 (grub_video_reader_png): Likewise.
36783
830afef7 367842009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 36785
36786 Enable all targets that can be built by default
36787
830afef7 36788 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 36789 grub-mkfont and grub-fstest if they can be built
36790
ee293aee 367912009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36792
36793 Fix hang and segmentation fault in grub-emu-usb
36794
36795 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36796 * util/usb.c (grub_libusb_devices): likewise
36797 (grub_libusb_init): rename to ...
36798 (GRUB_MOD_INIT (libusb)):...this
36799 (grub_libusb_fini): rename to ..
36800 (GRUB_MOD_FINI (libusb)):...this
36801 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36802 * include/grub/disk.h (grub_raid_init): removed, it's useless
36803 (grub_raid_fini): likewise
36804 (grub_lvm_init): likewise
36805 (grub_lvm_fini): likewise
36806 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36807 by grub_init_all
36808
94414221 368092009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36810
36811 Fix libusb
36812
36813 * Makefile.in (LIBUSB): new macro
36814 * genmk.rb (Utility/print_tail): new method
36815 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36816 (top level): call util.print_tail at the end.
36817
59ade63d 368182009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36819
36820 Make FreeBSD accept zpool.cache
36821
36822 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36823 type is /boot/zfs/zpool.cache
36824
a58da8c7 368252009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36826
36827 Fix 64-bit efiemu
36828
36829 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36830 correct wrong typedef
36831 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36832
20591577 368332009-07-15 Pavel Roskin <proski@gnu.org>
36834
560ca572 36835 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36836 * kern/disk.c (struct grub_disk_cache): Likewise.
36837
e8e8e4fd 36838 * commands/probe.c (options): Typo fix.
36839
fde24e10 36840 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36841 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36842 accordingly.
36843 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36844
379c54c1 36845 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36846 the end of "Error" to make the message more readable.
36847
7bd8f5bf 36848 * boot/i386/pc/boot.S (kernel_segment): Remove.
36849 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36850 for destination.
36851
40b132c5 36852 * boot/i386/pc/boot.S (boot_version): Remove.
36853 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36854 Remove.
36855
20591577 36856 * include/grub/i386/pc/boot.h: Sort all offsets.
36857 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36858 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36859 * boot/i386/pc/boot.S: Assert location of every offset listed in
36860 include/grub/i386/pc/boot.h.
36861
2df32b2c 368622009-07-13 Pavel Roskin <proski@gnu.org>
36863
44b5d879 36864 * include/grub/i386/coreboot/machine.h: Rename
36865 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36866 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36867 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36868
17dc3751 36869 * kern/dl.c: Force native word size to suppress warnings when
36870 compiling grub-emu.
36871
2df32b2c 36872 * kern/device.c (grub_device_iterate): Change struct part_ent to
36873 hold the name, not a pointer to it. Use one grub_malloc() per
36874 partition, not two. Free partition_name if grub_malloc() fails.
36875 Set ents to NULL only before grub_partition_iterate() is called.
36876
75c59f59 368772009-07-11 Bean <bean123ch@gmail.com>
36878
36879 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36880 childname.
36881
0ae1bf88 368822009-07-10 Bean <bean123ch@gmail.com>
368832009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36884
36885 * kern/ieee1275/openfw.c (grub_children_iterate)
36886 (grub_devalias_iterate): Fix size evaluation for property or path
36887 strings, which was broken since r2132.
36888
8279cade 368892009-07-07 Pavel Roskin <proski@gnu.org>
36890
7d8a52d3 36891 * commands/search.c (search_file): Merge into ...
36892 (search_fs): ... this. Accept search type as argument.
36893 (grub_cmd_search): Pass search type to search_fs().
36894
25f9a05a 36895 * include/grub/util/console.h: New file.
36896 * util/console.c: Use it instead of grub/machine/console.h.
36897 * util/grub-emu.c: Likewise.
36898
8279cade 36899 * lib/arg.c (find_long_option): Remove.
36900 (find_long): Add `len' argument, make `s' const char *.
36901 (grub_arg_parse): Parse long options in place, not in a
36902 temporary buffer.
36903
4a11b60f 369042009-07-06 Pavel Roskin <proski@gnu.org>
36905
99f68041 36906 * commands/search.c (search_fs): Fix potential NULL pointer
36907 dereference.
36908
4a11b60f 36909 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36910 function pointer.
36911
e110f4de 369122009-07-06 Daniel Mierswa <impulze@impulze.org>
36913
36914 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36915 comparison.
36916
46eeb6a2 369172009-07-05 Pavel Roskin <proski@gnu.org>
36918
bab74958 36919 * include/grub/i386/linux.h (struct linux_kernel_params):
36920 Restore padding3, it's still needed.
36921
46eeb6a2 36922 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36923 FreeBSD.
36924 * util/osdetect.lua: Likewise.
36925
b4a1dc79 369262009-07-05 Bean <bean123ch@gmail.com>
36927
36928 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36929
36930 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36931 (grub_lua_getenv): Likewise.
36932 (grub_lua_setenv): Likewise.
36933 (save_errno): New function.
36934 (push_result): Likewise.
36935 (grub_lua_enum_device): Likewise.
36936 (grub_lua_enum_file): Likewise.
36937 (grub_lua_file_open): Likewise.
36938 (grub_lua_file_close): Likewise.
36939 (grub_lua_file_seek): Likewise.
36940 (grub_lua_file_read): Likewise.
36941 (grub_lua_file_getline): Likewise.
36942 (grub_lua_file_getsize): Likewise.
36943 (grub_lua_file_getpos): Likewise.
36944 (grub_lua_file_eof): Likewise.
36945 (grub_lua_file_exist): Likewise.
36946 (grub_lua_add_menu): Likewise.
36947
36948 * script/lua/grub_lua.h (isupper): New inline function.
36949 (islower): Likewise.
36950 (ispunct): Likewise.
36951 (isxdigit): Likewise.
36952 (strcspn): Change to normal function.
36953 (strpbkr): New function declaration.
36954 (memchr): Likewise.
36955
36956 * script/lua/grub_main.c (scan_str): New function.
36957 (strcspn): Likewise.
36958 (strpbrk): Likewise.
36959 (memchr): Likewise.
36960
36961 * script/lua/linit.c (lualibs): Enable the string library.
36962
36963 * util/osdetect.lua: New file.
36964
2da92295 369652009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36966
36967 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36968 `capabilities' member.
36969
b2582ec9 369702009-07-02 Pavel Roskin <proski@gnu.org>
36971
36972 * genparttoollist.sh: Add missing newline at the end.
36973
32622956 369742009-07-01 Pavel Roskin <proski@gnu.org>
36975
87a7339e 36976 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36977
d23af54e 36978 * util/hostdisk.c (open_device): Remove `const' from
36979 `sysctl_size', as sysctlbyname() can change it (in this case it
36980 doesn't actually happen).
36981
c94b18a9 36982 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36983 using signed long int constants.
36984
c6cd3ef0 36985 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36986 constant to avoid a warning on FreeBSD.
36987
0df63420 36988 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36989 where it's needed.
36990
999577f1 36991 * Makefile.in: Install include/grub/machine symlink.
36992
6f41557f 36993 * Makefile.in: When installing symlinks, use "cp -fR", which
36994 works on FreeBSD and MacOSX.
36995 From Yves Blusseau <cl7m42e02@sneakemail.com>
36996
c8d22988 36997 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36998 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36999
1b96e952 37000 * util/misc.c: Move grub_reboot() and grub_halt() ...
37001 * util/grub-emu.c: ... here. Make main_env static.
37002 * include/grub/util/misc.h: Remove main_env.
37003
2ef0084d 37004 * kern/mm.c: Use correct format to print size_t.
37005
32622956 37006 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37007 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37008 * kern/powerpc/dl.c: Likewise.
37009 * kern/sparc64/dl.c: Likewise.
37010 * kern/x86_64/dl.c: Likewise.
37011
3f7f0cd0 370122009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37013
37014 Fix grub-emu build on sparc64-ieee1275.
37015
75421ca9 37016 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 37017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37018
211d06b5 370192009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37020
37021 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37022 (grub_reboot, grub_halt): New functions.
37023
37024 * util/i386/pc/misc.c: Delete. Update all users.
37025 * util/sparc64/ieee1275/misc.c: Likewise.
37026 * util/powerpc/ieee1275/misc.c: Likewise.
37027
aaf53e3c 370282009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37029
37030 * conf/i386.rmk (setjmp_mod_SOURCES)
37031 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37032 * conf/common.rmk (setjmp_mod_SOURCES)
37033 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37034 to use $(target_cpu).
37035 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37036 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37037 * conf/powerpc-ieee1275.rmk: Likewise.
37038 * conf/sparc64-ieee1275.rmk: Likewise.
37039
37040 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37041 $(target_cpu) for kern/$(target_cpu)/dl.c.
37042 * conf/i386-efi.rmk: Likewise.
37043 * conf/i386-ieee1275.rmk: Likewise.
37044 * conf/x86_64-efi.rmk: Likewise.
37045 * conf/i386-coreboot.rmk: Likewise.
37046 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37047 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37048 kern/$(target_cpu)/cache.S.
37049 * conf/sparc64-ieee1275.rmk: Likewise.
37050
a337130b 370512009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37052
37053 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37054 type to `grub_uint8_t', and adjust `padding9' accordingly.
37055
c6fe4d53 370562009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37057
b09db61d 37058 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37059
c6fe4d53 37060 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37061 assembly in final jump, using register constraints.
37062
b09db61d 37063 (grub_linux_boot): For text mode, initialize `have_vga' using
37064 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37065
37066 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37067 right before the final jump.
37068
37069 Set `video_mode' to 0x3.
37070
37071 Document initialization of `video_page', `video_mode' and
37072 `video_ega_bx'.
37073
28333ad0 370742009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37075
37076 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37077 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 37078 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 37079
02164e1b 370802009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37081
37082 Fix build on Debian / sparc.
37083
37084 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37085
18b6c557 370862009-06-28 Pavel Roskin <proski@gnu.org>
37087
85f2aab6 37088 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37089 fix a warning.
37090
18b6c557 37091 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37092
ad760f81 370932009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37094
37095 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37096 `err'.
37097
87a4623b 370982009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37099
37100 Revert r2338.
37101
37102 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37103 file can't be opened. grub_file_open() is already supposed to set
75421ca9 37104 grub_errno / grub_errmsg appropriately.
87a4623b 37105 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37106
8231fb77 371072009-06-27 Pavel Roskin <proski@gnu.org>
371082009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37109
37110 * include/grub/dl.h: Include grub/elf.h.
37111 (struct grub_dl): Add symtab field.
37112 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37113 GRUB_MODULES_MACHINE_READONLY.
37114 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37115 of the header for read-only modules.
37116 (grub_dl_unload): Free mod->symtab for read-only modules.
37117 * kern/i386/dl.c: Use mod->symtab.
37118 * kern/powerpc/dl.c: Likewise.
37119 * kern/sparc64/dl.c: Likewise.
37120 * kern/x86_64/dl.c: Likewise.
37121
37122 * conf/i386-qemu.rmk: New file.
37123 * kern/i386/qemu/startup.S: Likewise.
37124 * kern/i386/qemu/mmap.c: Likewise.
37125 * boot/i386/qemu/boot.S: Likewise.
37126 * include/grub/i386/qemu/time.h: Likewise.
37127 * include/grub/i386/qemu/serial.h: Likewise.
37128 * include/grub/i386/qemu/kernel.h: Likewise.
37129 * include/grub/i386/qemu/console.h: Likewise.
37130 * include/grub/i386/qemu/boot.h: Likewise.
37131 * include/grub/i386/qemu/init.h: Likewise.
37132 * include/grub/i386/qemu/machine.h: Likewise.
37133 * include/grub/i386/qemu/loader.h: Likewise.
37134 * include/grub/i386/qemu/memory.h: Likewise.
37135
37136 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37137 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37138 [qemu] (pkglib_IMAGES): Add `boot.img'.
37139 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37140 [qemu] (boot_img_FORMAT): New variables.
37141 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37142 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37143 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37144 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37145 [qemu] (kernel_img_FORMAT): New variables.
37146
37147 * configure.ac: Recognise `i386-qemu'.
37148
37149 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37150 (for no compression).
37151 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37152 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37153 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37154 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37155 ifdefs).
37156
97fe384e 371572009-06-27 Pavel Roskin <proski@gnu.org>
37158
37159 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37160 read.
37161 * efiemu/prepare32.c: Likewise.
37162 * efiemu/prepare64.c: Likewise.
37163
c402ab17 371642009-06-26 Pavel Roskin <proski@gnu.org>
37165
37166 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37167 * include/grub/elf.h: Define symbols without "32" or "64" based
37168 on GRUB_TARGET_WORDSIZE.
37169 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37170 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37171 ELF definitions.
37172 * efiemu/loadcore64.c: Likewise.
37173 * loader/i386/bsd32.c: Likewise.
37174 * loader/i386/bsd64.c: Likewise.
37175 * kern/dl.c: Remove own ELF definitions.
37176 * util/i386/efi/grub-mkimage.c: Likewise.
37177
9bbdfd4d 371782009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37179
37180 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37181 segment 0x0 unconditionally, because the reference generated by
37182 GAS is an absolute address.
37183
a42ce6e9 371842009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37185
37186 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37187 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37188
c952cf92 371892009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37190
37191 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37192 indexes. Check for -f explicitly.
cc3752ad 37193 (search_file): Improve error message.
37194 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 37195
132a0a59 371962009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37197
37198 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37199 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37200
387a140c 372012009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37202
37203 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37204 * conf/i386-ieee1275.rmk: Likewise.
37205 * conf/i386-coreboot.rmk: Likewise.
37206
37207 * kern/i386/pc/startup.S (grub_stop): Remove function.
37208 * kern/i386/ieee1275/startup.S: Likewise.
37209 * kern/i386/coreboot/startup.S: Likewise.
37210 * kern/i386/misc.S (grub_stop): New function.
37211
41da9665 372122009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37213
37214 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37215 * kern/i386/realmode.S (real_to_prot): ... to here.
37216
bf337234 372172009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37218
37219 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37220 with `kernel.img'.
37221 (kernel_elf_SOURCES): Rename to ...
37222 (kernel_img_SOURCES): ... this.
37223 (kernel_elf_HEADERS): Rename to ...
37224 (kernel_img_HEADERS): ... this. Update all users.
37225 (kernel_elf_ASFLAGS): Rename to ...
37226 (kernel_img_ASFLAGS): ... this.
37227 (kernel_elf_CFLAGS): Rename to ...
37228 (kernel_img_CFLAGS): ... this.
37229 (kernel_elf_LDFLAGS): Rename to ...
37230 (kernel_img_LDFLAGS): ... this.
37231 * conf/i386-coreboot.rmk: Likewise.
37232 * conf/powerpc-ieee1275.rmk: Likewise.
37233
37234 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37235 with "kernel.img".
37236
f52196ff 372372009-06-21 Pavel Roskin <proski@gnu.org>
37238
c3cee413 37239 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37240 to match nested functions.
37241 * loader/sparc64/ieee1275/linux.c: Likewise.
37242
f52196ff 37243 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37244
58750afc 372452009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37246
37247 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37248 all i386 platforms.
37249
15355c7d 372502009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37251
37252 Fix asm file handling on ELF, and remove workarounds.
37253
37254 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 37255 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 37256 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37257 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37258
3f3ec72b 372592009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37260
37261 Load BSD ELF modules
37262
37263 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37264 and loader/i386/bsd64.c
37265 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37266 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37267 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37268 (grub_freebsd_load_elfmodule32): New declaration
37269 (grub_freebsd_load_elfmoduleobj64): Likewise
37270 (grub_freebsd_load_elf_meta32): Likewise
37271 (grub_freebsd_load_elf_meta64): Likewise
37272 (grub_freebsd_add_meta): Likewise
37273 (grub_freebsd_add_meta_module): Likewise
37274 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37275 (grub_freebsd_add_meta_module): Likewise and move module-specific
37276 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37277 (grub_cmd_freebsd): Add elf-kernel specific parts
37278 based on grub_freebsd_add_meta_module
37279 (grub_cmd_freebsd_module): Add type parsing moved from
37280 grub_freebsd_add_meta_module
37281 (grub_cmd_freebsd_module_elf): New function
37282 (cmd_freebsd_module_elf): New variable
37283 (GRUB_MOD_INIT): Register freebsd_module_elf
37284 * loader/i386/bsd32.c: New file
37285 * loader/i386/bsd64.c: Likewise
37286 * loader/i386/bsdXX.c: Likewise
37287 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37288 (grub_elf64_load): Likewise
37289 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37290 All users updated
37291 (grub_elf64_load_hook_t): Likewise
37292
0db15301 372932009-06-21 Colin Watson <cjwatson@ubuntu.com>
37294
37295 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37296 variable.
37297 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37298 don't write a menu entry for recovery mode.
37299
546796c1 373002009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37301
37302 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37303 after it's no longer needed.
37304
cd7310d5 373052009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37306
37307 * include/grub/i386/loader.h (grub_linux_prot_size)
37308 (grub_linux_tmp_addr, grub_linux_real_addr)
37309 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37310 GRUB_MACHINE_PCBIOS.
37311 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37312 common grub_util_info() call to ...
37313 (generate_image): ... here.
37314 Fix use of uninitialized memory, comparison of signed with
37315 unsigned integers and memory leak.
37316 Remove bogus module address message.
37317
ab32d3b5 373182009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37319
37320 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37321 grub_raid_register
37322 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37323
024ef597 373242009-06-19 Pavel Roskin <proski@gnu.org>
37325
37326 * configure.ac: Remove stray AC_MSG_CHECKING.
37327
3ac72b51 373282009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37329
37330 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 37331
e14cd814 373322009-06-18 Pavel Roskin <proski@gnu.org>
37333
37334 * conf/common.rmk: Add fs_file.mod.
37335 * disk/fs_file.c: New file.
37336 * include/grub/disk.h (enum grub_disk_dev_id): Add
37337 GRUB_DISK_DEVICE_FILE_ID.
37338
26586d98 373392009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37340
37341 Fix build with Apple's toolchain. Part 2
37342
37343 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37344 a fake start
37345
26de2bcd 373462009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37347
37348 Fix build with Apple's toolchain. Part 1
37349
37350 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37351 for long calls
37352 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 37353 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 37354 Apple's toolchain
37355
09b3490b 373562009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37357
37358 Fix warnings
37359
37360 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37361 (decomp_block): initialize ch
37362 use grub_memcpy instead of memcpy
37363
c22a006a 373642009-06-17 Pavel Roskin <proski@gnu.org>
37365
d3638678 37366 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37367 version, use declarations needed to use vga_text as the startup
37368 console.
37369
c22a006a 37370 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37371 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37372 the kernel.
37373 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37374 and grub_at_keyboard_fini(), it's done on module load and
37375 unload.
37376
05b129e0 373772009-06-17 Felix Zielcke <fzielcke@z-51.de>
37378
37379 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37380 file can't be found.
37381 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37382
cf24ed9e 373832009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37384
37385 Fix newline handling
37386
37387 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 37388 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 37389 (grub_script_yylex): don't segfault on unterminated script
37390 newline terminates command and variable
37391
74aa8e4b 373922009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37393
37394 avoid double grub_adjust_range call. Bug reported by David Simner
37395
37396 * kern/disk.c (grub_disk_write): change to raw disk access before
37397 calling disk_read
37398
1bd265f3 373992009-06-17 Colin Watson <cjwatson@ubuntu.com>
37400
37401 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37402 spaces, for the benefit of help2man.
37403 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37404
a2d08c06 374052009-06-16 Pavel Roskin <proski@gnu.org>
37406
37407 * kern/i386/halt.c: Include grub/machine/init.h.
37408 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37409
b97bcb19 374102009-06-16 Felix Zielcke <fzielcke@z-51.de>
37411
37412 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37413 drivemap menuentry.
37414
0644f96c 374152009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37416
37417 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37418 `echo' command.
37419
3ef17a2e 374202009-06-16 Pavel Roskin <proski@gnu.org>
37421
37422 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37423 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37424 save %dx, we only need %dl and we never change it.
37425 * boot/i386/pc/cdboot.S: Don't set the root drive.
37426 * boot/i386/pc/pxeboot.S: Likewise.
37427 * include/grub/i386/pc/boot.h: Remove
37428 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37429 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37430 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37431 * kern/i386/pc/init.c (make_install_device): Remove references
37432 to grub_root_drive.
37433 * kern/i386/pc/startup.S: Likewise.
37434 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37435
693fe637 374362009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37437
37438 xnu_uuid command
37439
37440 * commands/xnu_uuid.c: new file
37441 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37442 (xnu_uuid_mod_SOURCES): new variable
37443 (xnu_uuid_mod_CFLAGS): likewise
37444 (xnu_uuid_mod_LDFLAGS): likewise
37445 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37446 * conf/i386-ieee1275.rmk: likewise
37447 * conf/i386-pc.rmk: likewise
37448 * conf/powerpc-ieee1275.rmk: likewise
37449 * conf/sparc64-ieee1275.rmk: likewise
37450 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37451
c9da87d0 374522009-06-16 Pavel Roskin <proski@gnu.org>
37453
37454 * configure.ac: Avoid '==' in test command, it's not portable.
37455
9c6f4596 374562009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37457
37458 Probe command
37459
37460 * commands/probe.c: new file
37461 * conf/common.rmk (pkglib_MODULES): add probe.mod
37462 (probe_mod_SOURCES): new variable
37463 (probe_mod_CFLAGS): likewise
37464 (probe_mod_LDFLAGS): likewise
37465 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37466 * conf/i386-ieee1275.rmk: likewise
37467 * conf/i386-pc.rmk: likewise
37468 * conf/powerpc-ieee1275.rmk: likewise
37469 * conf/sparc64-ieee1275.rmk: likewise
37470
70b7f9fd 374712009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37472
37473 Fix handling of string like \"hello\" and "a
37474 b"
37475
37476 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37477 (grub_script_yylex): fix parsing of quoting, escaping and newline
37478
71c79a6b 374792009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37480
dd74360c 37481 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 37482 handling
dd74360c 37483
0644f96c 374842009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 37485
37486 * util/grub-mkconfig.in: Fix parsing of --output option.
37487
e40893c3 374882009-06-12 Pavel Roskin <proski@gnu.org>
37489
37490 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37491 genmk.rb don't need to be generated or installed.
37492
3a1acfe2 374932009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37494
37495 * commands/i386/pc/drivemap_int13h.S: add more comments
37496
3a4575d4 374972009-06-11 Pavel Roskin <proski@gnu.org>
37498
0658e928 37499 * Makefile.in (uninstall): Uninstall manuals.
37500
ca0388f0 37501 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37502 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37503 and update-grub_lib in two places.
37504 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37505
e3b27c39 37506 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37507 a compiler warning.
37508
3a4575d4 37509 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37510 `entry_lo' to fix variable shadowing.
37511
af1f4f55 375122009-06-11 Christian Franke <franke@computer.org>
37513
37514 * kern/misc.c (__enable_execute_stack): Add missing return type
37515 to prevent gcc warning.
37516
5225e649 375172009-06-11 Felix Zielcke <fzielcke@z-51.de>
37518
37519 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37520
7d83bd47 375212009-06-11 Pavel Roskin <proski@gnu.org>
37522
c1cb63ba 37523 * Makefile.in: Don't rely on any scripts being executable.
37524 Always use $(SHELL) to run shell scripts.
37525
7d83bd47 37526 * configure.ac: Always define ___main if using -nostdlib. This
37527 fixes tests on Cygwin.
37528
948f48e7 375292009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37530
37531 UDF fix
37532
7d83bd47 37533 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 37534 is in bytes and not in blocks
7d83bd47 37535
8ada9bc1 375362009-06-11 Pavel Roskin <proski@gnu.org>
37537
37538 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37539 warning.
37540
25ad2323 375412009-06-11 Felix Zielcke <fzielcke@z-51.de>
37542
37543 * util/grub.d/30_os-prober.in: Fix a comment. Source
37544 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37545 to set the root device. Place drivemap command in the generated
37546 chain entry.
37547
e65acb0c 375482009-06-11 Pavel Roskin <proski@gnu.org>
37549
37550 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37551 have long been resolved.
37552
f285fe2d 375532009-06-11 Colin Watson <cjwatson@ubuntu.com>
37554
bd47b0b5 37555 * util/grub.d/10_linux.in: Capitalise "Linux".
37556
f285fe2d 37557 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37558
a0c62e4e 375592009-06-11 Pavel Roskin <proski@gnu.org>
37560
b6783cb2 37561 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37562 fix a gcc warning and ensure that the function won't ever exit.
37563
dde032e8 37564 * kern/i386/ieee1275/init.c: Add missing prototype for
37565 grub_stop_floppy().
37566
22cd079d 37567 * loader/ieee1275/multiboot2.c [__i386__]: Include
37568 grub/cpu/multiboot.h.
37569
a0c62e4e 37570 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37571 casts to short - they are not portable and cause warnings. Fix
37572 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37573
63963d17 375742009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37575
37576 Drivemap fixes
37577
37578 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37579 new function
37580 (grub_get_root_biosnumber_saved): new variable
37581 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37582 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 37583 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 37584 %dx after the call if necessary
37585 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37586 (boot_mod_SOURCES): remove
37587 (boot_mod_CFLAGS): remove
37588 (boot_mod_LDFLAGS): remove
37589 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37590 (boot_mod_SOURCES): new variable
37591 (boot_mod_CFLAGS): likewise
37592 (boot_mod_LDFLAGS): likewise
37593 * conf/i386-efi.rmk: likewise
37594 * conf/i386-ieee1275.rmk: likewise
37595 * conf/i386-pc.rmk: likewise
37596 * conf/powerpc-ieee1275.rmk: likewise
37597 * conf/sparc64-ieee1275.rmk: likewise
37598 * conf/x86_64-efi.rmk: likewise
37599 * include/grub/i386/pc/biosnum.h: new file
37600 * lib/i386/pc/biosnum.c: likewise
37601 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37602 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37603 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 37604
33abf7ae 376052009-06-10 Pavel Roskin <proski@gnu.org>
37606
5ac35b35 37607 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37608 Use separate variables. Read only the file size at the end, but
37609 not the checksum that we don't use.
37610
5c5215d5 37611 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37612 Adjust all callers.
37613
27d5fef7 37614 * kern/ieee1275/openfw.c: Remove libc includes.
37615 * kern/ieee1275/cmain.c: Likewise.
37616 * include/grub/ieee1275/ieee1275.h: Likewise.
37617
33abf7ae 37618 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37619 compiler warnings.
37620
19d50c2b 376212009-06-10 Felix Zielcke <fzielcke@z-51.de>
37622
37623 * Makefile.in: Remove all trailing whitespace.
37624 * conf/i386-pc.rmk: Likewise.
37625 * conf/powerpc-ieee1275.rmk: Likewise.
37626 * conf/sparc64-ieee1275.rmk: Likewise.
37627 * docs/grub.texi: Likewise.
37628 * docs/texinfo.tex: Likewise.
37629 * disk/fs_uuid.c: Likewise.
37630 * disk/lvm.c: Likewise.
37631 * disk/scsi.c: Likewise.
37632 * disk/ata.c: Likewise.
37633 * disk/ieee1275/ofdisk.c: Likewise.
37634 * disk/i386/pc/biosdisk.c: Likewise.
37635 * disk/host.c: Likewise.
37636 * disk/raid.c: Likewise.
37637 * disk/efi/efidisk.c: Likewise.
37638 * disk/usbms.c: Likewise.
37639 * disk/memdisk.c: Likewise.
37640 * disk/loopback.c: Likewise.
37641 * kern/powerpc/dl.c: Likewise.
37642 * kern/device.c: Likewise.
37643 * kern/dl.c: Likewise.
37644 * kern/sparc64/dl.c: Likewise.
37645 * kern/ieee1275/ieee1275.c: Likewise.
37646 * kern/term.c: Likewise.
37647 * kern/fs.c: Likewise.
37648 * kern/i386/dl.c: Likewise.
37649 * kern/i386/pc/startup.S: Likewise.
37650 * kern/i386/pc/init.c: Likewise.
37651 * kern/i386/pc/mmap.c: Likewise.
37652 * kern/i386/pc/lzo1x.S: Likewise.
37653 * kern/i386/ieee1275/init.c: Likewise.
37654 * kern/i386/realmode.S: Likewise.
37655 * kern/i386/tsc.c: Likewise.
37656 * kern/partition.c: Likewise.
37657 * kern/corecmd.c: Likewise.
37658 * kern/file.c: Likewise.
37659 * kern/efi/efi.c: Likewise.
37660 * kern/efi/init.c: Likewise.
37661 * kern/efi/mm.c: Likewise.
37662 * kern/main.c: Likewise.
37663 * kern/err.c: Likewise.
37664 * kern/env.c: Likewise.
37665 * kern/disk.c: Likewise.
37666 * kern/generic/millisleep.c: Likewise.
37667 * kern/generic/rtc_get_time_ms.c: Likewise.
37668 * kern/misc.c: Likewise.
37669 * kern/parser.c: Likewise.
37670 * genmk.rb: Likewise.
37671 * configure.ac: Likewise.
37672 * boot/i386/pc/diskboot.S: Likewise.
37673 * boot/i386/pc/pxeboot.S: Likewise.
37674 * boot/i386/pc/boot.S: Likewise.
37675 * boot/i386/pc/lnxboot.S: Likewise.
37676 * boot/i386/pc/cdboot.S: Likewise.
37677 * parttool/pcpart.c: Likewise.
37678 * video/readers/tga.c: Likewise.
37679 * video/video.c: Likewise.
37680 * video/bitmap.c: Likewise.
37681 * lib/envblk.c: Likewise.
37682 * lib/i386/setjmp.S: Likewise.
37683 * fs/xfs.c: Likewise.
37684 * fs/afs.c: Likewise.
37685 * fs/fat.c: Likewise.
37686 * fs/ntfs.c: Likewise.
37687 * fs/udf.c: Likewise.
37688 * fs/affs.c: Likewise.
37689 * fs/iso9660.c: Likewise.
37690 * fs/hfs.c: Likewise.
37691 * fs/fshelp.c: Likewise.
37692 * fs/ext2.c: Likewise.
37693 * fs/jfs.c: Likewise.
37694 * fs/reiserfs.c: Likewise.
37695 * fs/hfsplus.c: Likewise.
37696 * fs/minix.c: Likewise.
37697 * fs/cpio.c: Likewise.
37698 * fs/sfs.c: Likewise.
37699 * fs/ufs.c: Likewise.
37700 * efiemu/prepare.c: Likewise.
37701 * efiemu/loadcore_common.c: Likewise.
37702 * efiemu/runtime/efiemu.sh: Likewise.
37703 * efiemu/runtime/efiemu.S: Likewise.
37704 * efiemu/runtime/efiemu.c: Likewise.
37705 * efiemu/pnvram.c: Likewise.
37706 * efiemu/main.c: Likewise.
37707 * efiemu/i386/pc/cfgtables.c: Likewise.
37708 * efiemu/i386/loadcore64.c: Likewise.
37709 * efiemu/i386/loadcore32.c: Likewise.
37710 * efiemu/loadcore.c: Likewise.
37711 * efiemu/symbols.c: Likewise.
37712 * efiemu/mm.c: Likewise.
37713 * include/grub/autoefi.h: Likewise.
37714 * include/grub/datetime.h: Likewise.
37715 * include/grub/term.h: Likewise.
37716 * include/grub/hfs.h: Likewise.
37717 * include/grub/lvm.h: Likewise.
37718 * include/grub/i386/tsc.h: Likewise.
37719 * include/grub/i386/linux.h: Likewise.
37720 * include/grub/i386/xnu.h: Likewise.
37721 * include/grub/i386/efiemu.h: Likewise.
37722 * include/grub/i386/pc/biosdisk.h: Likewise.
37723 * include/grub/i386/pc/memory.h: Likewise.
37724 * include/grub/i386/pc/vbe.h: Likewise.
37725 * include/grub/parttool.h: Likewise.
37726 * include/grub/video.h: Likewise.
37727 * include/grub/memory.h: Likewise.
37728 * include/grub/fs.h: Likewise.
37729 * include/grub/partition.h: Likewise.
37730 * include/grub/xnu.h: Likewise.
37731 * include/grub/efi/api.h: Likewise.
37732 * include/grub/efi/pe32.h: Likewise.
37733 * include/grub/efi/memory.h: Likewise.
37734 * include/grub/multiboot.h: Likewise.
37735 * include/grub/usbdesc.h: Likewise.
37736 * include/grub/multiboot2.h: Likewise.
37737 * include/grub/acpi.h: Likewise.
37738 * include/grub/efiemu/efiemu.h: Likewise.
37739 * include/grub/disk.h: Likewise.
37740 * include/grub/ieee1275/ieee1275.h: Likewise.
37741 * include/grub/net.h: Likewise.
37742 * include/grub/machoload.h: Likewise.
37743 * include/grub/macho.h: Likewise.
37744 * include/multiboot.h: Likewise.
37745 * genmoddep.awk: Likewise.
37746 * normal/main.c: Likewise.
37747 * normal/menu_entry.c: Likewise.
37748 * normal/menu_viewer.c: Likewise.
37749 * normal/completion.c: Likewise.
37750 * normal/cmdline.c: Likewise.
37751 * normal/misc.c: Likewise.
37752 * normal/datetime.c: Likewise.
37753 * bus/usb/usbtrans.c: Likewise.
37754 * bus/usb/ohci.c: Likewise.
37755 * bus/usb/uhci.c: Likewise.
37756 * bus/usb/usb.c: Likewise.
37757 * mmap/efi/mmap.c: Likewise.
37758 * mmap/i386/pc/mmap_helper.S: Likewise.
37759 * mmap/i386/pc/mmap.c: Likewise.
37760 * mmap/i386/mmap.c: Likewise.
37761 * mmap/i386/uppermem.c: Likewise.
37762 * mmap/mmap.c: Likewise.
37763 * commands/acpi.c: Likewise.
37764 * commands/echo.c: Likewise.
37765 * commands/blocklist.c: Likewise.
37766 * commands/loadenv.c: Likewise.
37767 * commands/usbtest.c: Likewise.
37768 * commands/boot.c: Likewise.
37769 * commands/parttool.c: Likewise.
37770 * commands/search.c: Likewise.
37771 * commands/cat.c: Likewise.
37772 * commands/i386/pc/play.c: Likewise.
37773 * commands/i386/pc/drivemap.c: Likewise.
37774 * commands/i386/pc/vbeinfo.c: Likewise.
37775 * commands/i386/pc/acpi.c: Likewise.
37776 * commands/i386/pc/vbetest.c: Likewise.
37777 * commands/ls.c: Likewise.
37778 * commands/cmp.c: Likewise.
37779 * commands/test.c: Likewise.
37780 * commands/efi/acpi.c: Likewise.
37781 * commands/gptsync.c: Likewise.
37782 * commands/help.c: Likewise.
37783 * partmap/amiga.c: Likewise.
37784 * partmap/apple.c: Likewise.
37785 * partmap/acorn.c: Likewise.
37786 * partmap/pc.c: Likewise.
37787 * partmap/sun.c: Likewise.
37788 * partmap/gpt.c: Likewise.
37789 * script/sh/lexer.c: Likewise.
37790 * script/sh/function.c: Likewise.
37791 * font/font.c: Likewise.
37792 * font/font_cmd.c: Likewise.
37793 * loader/powerpc/ieee1275/linux.c: Likewise.
37794 * loader/efi/chainloader.c: Likewise.
37795 * loader/multiboot_loader.c: Likewise.
37796 * loader/macho.c: Likewise.
37797 * loader/i386/multiboot.c: Likewise.
37798 * loader/i386/linux.c: Likewise.
37799 * loader/i386/pc/linux.c: Likewise.
37800 * loader/i386/pc/multiboot2.c: Likewise.
37801 * loader/i386/pc/chainloader.c: Likewise.
37802 * loader/i386/pc/xnu.c: Likewise.
37803 * loader/i386/bsd_trampoline.S: Likewise.
37804 * loader/i386/efi/linux.c: Likewise.
37805 * loader/i386/multiboot_elfxx.c: Likewise.
37806 * loader/i386/bsd_helper.S: Likewise.
37807 * loader/i386/bsd.c: Likewise.
37808 * loader/i386/linux_trampoline.S: Likewise.
37809 * loader/i386/xnu_helper.S: Likewise.
37810 * loader/i386/xnu.c: Likewise.
37811 * loader/i386/bsd_pagetable.c: Likewise.
37812 * loader/i386/multiboot_helper.S: Likewise.
37813 * loader/xnu.c: Likewise.
37814 * loader/xnu_resume.c: Likewise.
37815 * io/gzio.c: Likewise.
37816 * term/efi/console.c: Likewise.
37817 * term/terminfo.c: Likewise.
37818 * term/ieee1275/ofconsole.c: Likewise.
37819 * term/i386/pc/serial.c: Likewise.
37820 * term/i386/pc/vesafb.c: Likewise.
37821 * term/i386/pc/vga.c: Likewise.
37822 * term/usb_keyboard.c: Likewise.
37823 * term/gfxterm.c: Likewise.
37824 * aclocal.m4: Likewise.
37825 * util/lvm.c: Likewise.
37826 * util/grub.d/30_os-prober.in: Likewise.
37827 * util/grub.d/10_hurd.in: Likewise.
37828 * util/console.c: Likewise.
37829 * util/grub-macho2img.c: Likewise.
37830 * util/grub-probe.c: Likewise.
37831 * util/hostfs.c: Likewise.
37832 * util/i386/pc/grub-mkimage.c: Likewise.
37833 * util/i386/pc/grub-setup.c: Likewise.
37834 * util/i386/efi/grub-mkimage.c: Likewise.
37835 * util/grub-mkconfig.in: Likewise.
37836 * util/raid.c: Likewise.
37837 * util/resolve.c: Likewise.
37838 * util/grub-mkdevicemap.c: Likewise.
37839 * util/grub-emu.c: Likewise.
37840 * util/getroot.c: Likewise.
37841 * util/hostdisk.c: Likewise.
37842 * util/usb.c: Likewise.
37843 * util/grub-editenv.c: Likewise.
37844 * util/misc.c: Likewise.
37845
d2d49665 378462009-06-10 Felix Zielcke <fzielcke@z-51.de>
37847
37848 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37849 `genparttoollist.sh'.
37850 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37851 Add `*.sh' to the list find searches for and change `mdate.sh'
37852 to `mdate-sh'.
37853
fe052e37 378542009-06-10 Pavel Roskin <proski@gnu.org>
37855
2763ac18 37856 * include/grub/multiboot2.h: Provide compatibility defines for
37857 multiboot2.h.
37858 * include/multiboot2.h: Include stdint.h only if needed, using
37859 angle brackets.
37860 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37861 grub/multiboot2.h.
37862 * loader/ieee1275/multiboot2.c: Likewise.
37863 * loader/multiboot2.c: Likewise.
37864 * loader/multiboot_loader.c: Likewise.
37865
437e6adc 37866 * configure.ac: Use -nostdlib when probing for the target. It
37867 should not be required to have libc for the target.
37868
06a6836c 37869 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37870 they fail without libc headers for the target.
37871 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37872 exports.
37873 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37874 preprocessor conditionals.
37875
fe052e37 37876 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37877 build system doesn't need to be aware of the tar.c internals.
37878
afd22553 378792009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 37880
afd22553 37881 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 37882
6b787c4f 378832009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37884
37885 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37886 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37887
378882009-06-09 Felix Zielcke <fzielcke@z-51.de>
37889
37890 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 37891 aren't available if ata.mod gets used.
6b787c4f 37892
473d1e45 378932009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 37894
473d1e45 37895 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 37896 initialising controller.
473d1e45 37897 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 37898
255a27d4 378992009-06-08 Felix Zielcke <fzielcke@z-51.de>
37900
37901 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37902 to choose between ata and biosdisk module on i386-pc.
37903
473d1e45 379042009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 37905
d55842d8 37906 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37907 Subclass and Programming Interface fields in terms of the 3 byte
37908 Class Code register.
37909 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37910
fa5db0b1 37911 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37912 interface is OHCI. Add grub_dprintf for symmetry with
37913 bus/usb/uhci.c.
37914 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37915 interface is UHCI. Add interf variable for programming
37916 interface. Print interface with class/subclass.
37917
c0947beb 37918 * bus/usb/ohci.c: Set interf with correct field.
37919
69da8877 37920 * bus/usb/uhci.c: Remove unneeded doubled lines.
37921 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37922 Remove whitespace inside comment.
37923
9e172e30 379242009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37925
37926 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37927 as fallback an equivalent option without depth.
37928
de65ee2b 379292009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37930
37931 Not fail if unable to retrieve C/H/S on LBA disks
37932
473d1e45 37933 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 37934 if unable to retrieve C/H/S on LBA disks
37935
b57ea2c9 379362009-06-08 Pavel Roskin <proski@gnu.org>
37937
37938 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37939 about aliasing.
37940
af361263 379412009-06-08 Felix Zielcke <fzielcke@z-51.de>
37942
37943 * Makefile.in (uninstall): Remove all $lib_DATA files.
37944
4c9ec6b3 379452009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37946
37947 Bugfix: install on partitionless device
37948
37949 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37950 is a whole disk
37951
e76fc924 379522009-06-08 Felix Zielcke <fzielcke@z-51.de>
37953
37954 * Makefile.in (uninstall): Remove all $include_DATA files.
37955
ba5a0d05 379562009-06-08 Felix Zielcke <fzielcke@z-51.de>
37957
37958 * commands/true.c: New file. Implement the true and false commands.
37959 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37960 (true_mod_SOURCES): New variable.
37961 (true_mod_CFLAGS): Likewise.
37962 (true_mod_LDFLAGS): Likewise.
37963
c8048e32 379642009-06-05 Colin D Bennett <colin@gibibit.com>
37965
37966 Optimized font character lookup using binary search instead of linear
37967 search. Fonts now are required to have the character index ordered by
37968 code point.
37969
37970 * font/font.c (load_font_index): Verify that fonts have ordered
37971 character indices.
37972 (find_glyph): Use binary search instead of linear search to find a
37973 character in a font.
37974
408305be 379752009-06-05 Michael Scherer <misc@mandriva.org>
37976
37977 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37978 uses case sensitive btree.
37979 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37980 only for case insensitive filesystems.
37981
8ee1e0d9 379822009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37983
37984 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37985 * conf/common.rmk (search_mod_CFLAGS): likewise
37986
a9966eb1 379872009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37988
473d1e45 37989 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 37990 compensate a compiler bug
37991
9e7100fb 379922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37993
473d1e45 37994 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 37995 instead of '\b'
473d1e45 37996
ede21d71 379972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37998
37999 Definitions for creating asm symbols with Apple's CC
38000
38001 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38002 [APPLE_CC] (VARIABLE): likewise
38003
9dbf7653 380042009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38005
38006 Disable lnxboot.img when compiled
38007 with Apple's CC
38008
38009 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38010 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38011 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38012 [! APPLE_CC] (CODE_LENG): skip
38013 [! APPLE_CC] (setup_sects): likewise
38014 [! APPLE_CC]: skip filling
473d1e45 38015
e93cdc3d 380162009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38017
38018 Address in trampolines based on 32-bit registers when compiled
38019 with Apple's CC
38020
473d1e45 38021 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 38022 for addresses
38023 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38024
6c688477 380252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38026
38027 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38028
38029 * kern/misc.c [APPLE_CC] (memcpy): new function
38030 [APPLE_CC] (memmove): likewise
38031 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 38032 (memcpy): define alias conditionally on !APPLE_CC
6c688477 38033 (memset): likewise
38034 (abort): likewise
38035 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38036 APPLE_CC are defined
38037 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38038 (grub_assert_fail): make prototype conditional
38039
e37ffc5c 380402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38041
38042 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38043
473d1e45 38044 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38045 grub-macho2img
e37ffc5c 38046 (CLEANFILES): add grub-macho2img
38047 (grub_macho2img_SOURCES): new variable
38048 * kern/i386/pc/startup.S (bss_start): new variable
38049 (bss_end): likewise
38050 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38051 * util/grub-macho2img.c: new file
38052
cf00df31 380532009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38054
38055 Use objconv when compiling with Apple's CC
38056
38057 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38058 (efiemu64.o): likewise
38059 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38060 when compiling with Apple's CC
38061 (efiemu64_s.o): likewise
38062 * configure.ac: check for objconv when compiling with Apple's CC
38063 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 38064
d119a20c 380652009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38066
38067 Define segment as well as section when compiling with
38068 Apple's CC
38069
38070 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38071 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38072 (efiemu_convert_pointer): likewise
38073 (efiemu_set_virtual_address_map): likewise
38074 (efiemu_convert_pointer): likewise
38075 (efiemu_getcrc32): likewise
38076 (init_crc32_table): likewise
38077 (reflect): likewise
38078 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38079 (GRUB_MOD_DEP): likewise
473d1e45 38080
c8600122 380812009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38082
38083 Allow a compilation without -mcmodel=large
38084
38085 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38086 when compiled without -mcmodel=large
473d1e45 38087 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 38088 without -mcmodel=large
473d1e45 38089 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 38090 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 38091
e8df1d4e 380922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38093
38094 Remove nested functions in efiemu core
38095
38096 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 38097
cc6c3ac1 380982009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38099
38100 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38101
38102 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38103 temporary storage
473d1e45 38104 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38105 using Apple's CC
cc6c3ac1 38106 (grub_cpu_is_tsc_supported): likewise
38107 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 38108
3e325901 381092009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38110
38111 Absolute addressing through constant with Apple's cc
38112
38113 * kern/i386/pc/startup.S: Define necessary constants
38114 and address through it when using ABS with Apple's CC
38115 * boot/i386/pc/diskboot.S: likewise
38116 * boot/i386/pc/boot.S: likewise
38117 * boot/i386/pc/lnxboot.S: likewise
38118 * boot/i386/pc/cdboot.S: likewise
38119 * mmap/i386/pc/mmap_helper.S: likewise
38120 * commands/i386/pc/drivemap_int13h.S: likewise
38121
2b167a72 381222009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38123
38124 Check if compiler is apple cc
38125
38126 * Makefile.in (ASFLAGS): new variable
38127 (TARGET_ASFLAGS): likewise
38128 (TARGET_MODULE_FORMAT): likewise
38129 (TARGET_APPLE_CC): likewise
38130 (OBJCONV): likewise
38131 (TARGET_IMG_CFLAGS): likewise
38132 (TARGET_CPPFLAGS): add includedir
38133 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38134 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38135 Check for linker script only if compiler isn't Apple's CC
38136 (TARGET_MODULE_FORMAT): set
38137 (TARGET_APPLE_CC): likewise
38138 (TARGET_ASFLAGS): likewise
38139 (ASFLAGS): likewise
38140 Check for objcopy only if compiler isn't Apple's CC
38141 Check for BSS symbol only if compiler isn't Apple's CC
38142 * genmk.rb: adapt nm options if we use Apple's utils
38143 * aclocal.m4 (grub_apple_cc): new test
38144 (grub_apple_target_cc): likewise
473d1e45 38145
fb14123e 381462009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38147
38148 Simplify sed expressions and improve awk
38149
38150 * Makefile.in (install-local): simplify sed expression
38151 * gencmdlist.sh: likewise
38152 * genmoddep.awk: avoid adding module as a dependency of itself
38153
5b889789 381542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38155
38156 Add missing start symbols
38157
38158 * boot/i386/pc/boot.S: add start
fb14123e 38159 * boot/i386/pc/pxeboot.S: likewise
473d1e45 38160
fd2bf2e3 381612009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38162
38163 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 38164
38165 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 38166 (relocate_addresses): consider both r_addend and value at offset
38167 (make_mods_section): zerofill modinfo and header
38168 (convert_elf): write prefix here
473d1e45 38169
5389763d 381702009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38171
38172 Use .asciz instead of .string
38173
38174 * i386/pc/diskboot.S: use .asciz instead of .string
38175 * i386/pc/boot.S: likewise
38176 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38177 (GRUB_MOD_NAME): likewise
473d1e45 38178
3eb5ed4e 381792009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38180
38181 gfxpayload support
38182
38183 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38184 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38185 (grub_video_setup): remove
38186 (grub_video_set_mode): new prototype
38187 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38188 (vid_mode): remove
38189 (linux_vesafb_res): compile only on PCBIOS
38190 (grub_linux_boot): support gfxpayload
38191 * loader/i386/pc/xnu.c (video_hook): new function
38192 (grub_xnu_set_video): support gfxpayload
38193 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38194 (DEFAULT_VIDEO_HEIGHT): likewise
38195 (DEFAULT_VIDEO_FLAGS): likewise
38196 (DEFAULT_VIDEO_MODE): new definition
38197 (video_hook): new function
38198 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 38199 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 38200 loading xnu
38201 * video/video.c (grub_video_setup): removed
473d1e45 38202 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 38203 grub_video_setup
38204
4b0e1143 382052009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38206
38207 Avoid calling biosdisk in drivemap
38208
38209 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38210 (revparse_biosdisk): likewise
38211 (list_mappings): derive name from id directly
38212 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 38213
fda6cb98 382142009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38215
38216 Script fixes
38217
38218 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38219 (grub_lexer_param): add tokenonhold
38220 (grub_script_create_cmdline): remove cmdline. All callers updated
38221 (grub_script_function_create): make functionname
38222 grub_script_arg. All callers updated
38223 (grub_script_execute_argument_to_string): new prototype
38224 * kern/parser.c (state_transitions): reorder
38225 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 38226 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 38227 make global
38228 (grub_script_execute_cmdline): use new format
38229 * script/sh/function.c (grub_script_function_create): make functionname
38230 grub_script_arg. All callers updated
473d1e45 38231 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 38232 (grub_script_yylex): remove
38233 (grub_script_yylex2): renamed to ...
38234 (grub_script_yylex): ...renamed
38235 parse the expressions like a${b}c
38236 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38237 (GRUB_PARSER_TOKEN_VAR): remove
38238 (GRUB_PARSER_TOKEN_NAME): likewise
38239 ("if"): declare as typeless
38240 ("while"): likewise
38241 ("function"): likewise
38242 ("else"): likewise
38243 ("then"): likewise
38244 ("fi"): likewise
38245 (text): remove
38246 (argument): likewise
38247 (script): accept empty scripts and make exit on error
38248 (arguments): use GRUB_PARSER_TOKEN_ARG
38249 (function): likewise
38250 (command): move error handling to script
38251 (menuentry): move grub_script_lexer_ref before
473d1e45 38252 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 38253 argument. All callers updated
38254
f4448a07 382552009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38256
38257 Prevent GRUB from probing floppies during boot.
38258
38259 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38260 * commands/search.c (options): Add --no-floppy.
38261 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38262 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38263 --no-floppy when searching for UUIDs.
38264
2bf5885a 382652009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38266
38267 Simplify the code duplication in commands/search.c.
38268
38269 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38270 (search_fs): ... this. Update all users.
38271
f6fd460a 382722009-06-03 Felix Zielcke <fzielcke@z-51.de>
38273
38274 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38275
cbb3c83e 382762009-05-28 Pavel Roskin <proski@gnu.org>
38277
57788cfd 38278 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38279 Remove the original symlink explicitly.
38280
cbb3c83e 38281 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38282 just one slash. That's how grub_fshelp_find_file() does it.
38283
cd0d5e30 382842009-05-26 Pavel Roskin <proski@gnu.org>
38285
f0f8bbe2 38286 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38287 to `str'.
38288
cd0d5e30 38289 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38290 possibly unused.
38291
8c2cab51 382922009-05-25 Christian Franke <franke@computer.org>
38293
38294 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38295 register.
38296 (grub_atapi_identify): Add wait after drive select.
38297 (grub_ata_identify): Do more strict status register check before
38298 calling grub_atapi_identify (). Suppress error message if status
38299 register is 0x00 after command failure. Add status register
38300 check after PIO read to avoid bogus identify due to stuck DRQ.
38301 Thanks to Pavel Roskin for testing.
38302 (grub_device_initialize): Remove unsafe status register check.
38303 Thanks to 'phcoder' for problem report and patch.
38304 Prevent sign extension in debug message.
38305
230c0ad6 383062009-05-23 Colin D Bennett <colin@gibibit.com>
38307
38308 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38309 definition file, and functions defined in `normal/menu.c' have had
38310 their prototypes moved to `include/grub/menu.h' for consistency.
38311
38312 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38313 from normal.h.
38314 (grub_menu_get_entry): Likewise.
38315 (grub_menu_get_timeout): Likewise.
38316 (grub_menu_set_timeout): Likewise.
38317 (grub_menu_execute_entry): Likewise.
38318 (grub_menu_execute_with_fallback): Likewise.
38319 (grub_menu_entry_run): Likewise.
38320
38321 * include/grub/normal.h: Re-ordered and grouped function
38322 prototypes by file that the function is defined in.
38323 (grub_menu_execute_callback): Removed; moved to menu.h.
38324 (grub_menu_get_entry): Likewise.
38325 (grub_menu_get_timeout): Likewise.
38326 (grub_menu_set_timeout): Likewise.
38327 (grub_menu_execute_entry): Likewise.
38328 (grub_menu_execute_with_fallback): Likewise.
38329 (grub_menu_entry_run): Likewise.
38330 (grub_menu_addentry): Renamed from this ...
38331 (grub_normal_add_menu_entry): ... to this.
38332
38333 * normal/main.c (grub_menu_addentry): Renamed from this ...
38334 (grub_normal_add_menu_entry): ... to this.
38335
38336 * script/sh/execute.c (grub_script_execute_menuentry): Update
38337 reference to renamed grub_menu_addentry function.
38338
861f03a5 383392009-05-23 Felix Zielcke <fzielcke@z-51.de>
38340
38341 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38342
96b1619a 383432009-05-22 Pavel Roskin <proski@gnu.org>
38344
bf6a5fb2 38345 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38346 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38347 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38348 compiling for the i386 targets, but not for the utilities.
38349
96b1619a 38350 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38351 to grub_uint8_t.
38352 (grub_root_drive): Likewise.
38353 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38354 remove alignment.
38355 (grub_root_drive): Change size to byte.
38356 (grub_start_addr): Remove.
38357 (grub_end_addr): Likewise.
38358 (grub_apm_bios_info): Likewise.
38359
b729776b 383602009-05-21 Felix Zielcke <fzielcke@z-51.de>
38361
38362 * normal/i386: Remove.
38363 * normal/powerpc: Likewise.
38364 * normal/sparc64: Likewise.
38365 * normal/x86_64: Likewise.
38366
0a15ce80 383672009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38368
38369 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 38370 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 38371 * loader/i386/xnu_helper.S: Likewise
d6da58e6 38372
33db9015 383732009-05-18 Colin D Bennett <colin@gibibit.com>
38374
d6da58e6 38375 Display error messages when parsing a Lua statement fails.
38376 Previously, executing a syntactically invalid statement like
38377 ")foo" or "bar;" would silently fail.
33db9015 38378
38379 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 38380 (grub_lua_parse_line): Improved reporting of Lua parser and
38381 execution errors.
33db9015 38382
46422c89 383832009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38384
38385 Remove -Werror which causes build to fail on some systems
38386
38387 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38388 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38389 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 38390
22f53a96 383912009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38392
38393 trampoline for linux on 64-bit platform
38394
18f547ad 38395 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38396 loader/i386/efi/linux_trampoline.S
38397 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 38398 declaration
d6da58e6 38399 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38400 here
22f53a96 38401 * loader/i386/linux_trampoline.S: moved here
d6da58e6 38402 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38403 trampoline
22f53a96 38404 (jumpvector): removed
38405 (grub_linux_trampoline_start): new declaration
38406 (grub_linux_trampoline_end): likewise
38407 (grub_linux_boot): use trampoline when on 64-bit platform
38408 * loader/i386/linux.c: likewise
38409
cb5a0f40 384102009-05-16 Pavel Roskin <proski@gnu.org>
38411
38412 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38413 const to avoid a warning.
38414 (grub_lua_setenv): Likewise.
38415 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38416 lmsg to fix a warning.
38417
334f2c28 384182009-05-16 Felix Zielcke <fzielcke@z-51.de>
38419
38420 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 38421 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38422 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38423 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38424 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38425 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38426 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38427 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 38428
59e5d3ec 384292009-05-16 Felix Zielcke <fzielcke@z-51.de>
38430
38431 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38432
9d87a1ba 384332009-05-16 Bean <bean123ch@gmail.com>
38434
38435 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38436 (lua_mod_SOURCES): New variable.
38437 (lua_mod_CFLAGS): Likewise.
38438 (lua_mod_LDFLAGS): Likewise.
38439
38440 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38441 (setjmp_mod_SOURCES): New variable.
38442 (setjmp_mod_CFLAGS): Likewise.
38443 (setjmp_LDFLAGS): Likewise.
38444
38445 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38446 (setjmp_mod_SOURCES): New variable.
38447 (setjmp_mod_CFLAGS): Likewise.
38448 (setjmp_LDFLAGS): Likewise.
38449
38450 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38451 (setjmp_mod_SOURCES): New variable.
38452 (setjmp_mod_CFLAGS): Likewise.
38453 (setjmp_LDFLAGS): Likewise.
38454
38455 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38456 (setjmp_mod_SOURCES): New variable.
38457 (setjmp_mod_CFLAGS): Likewise.
38458 (setjmp_LDFLAGS): Likewise.
38459
38460 * normal/i386/setjmp.S: Moved from here ...
38461 * lib/i386/setjmp.S: ... Moved here
38462 * normal/x86_64/setjmp.S: Moved from here ...
38463 * lib/x86_64/setjmp.S: ... Moved here
38464 * normal/powerpc/setjmp.S: Moved from here ...
38465 * lib/powerpc/setjmp.S: ... Moved here
38466 * normal/sparc64/setjmp.S: Moved from here ...
38467 * lib/sparc64/setjmp.S: ... Moved here
38468
38469 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38470 returns_twice in mingw.
38471
38472 * script/lua/grub_lib.c: New file.
38473 * script/lua/grub_lib.h: Likewise.
38474 * script/lua/grub_lua.h: Likewise.
38475 * script/lua/grub_main.c: Likewise.
38476 * script/lua/lapi.c: Likewise.
38477 * script/lua/lapi.h: Likewise.
38478 * script/lua/lauxlib.c: Likewise.
38479 * script/lua/lauxlib.h: Likewise.
38480 * script/lua/lbaselib.c: Likewise.
38481 * script/lua/lcode.c: Likewise.
38482 * script/lua/lcode.h: Likewise.
38483 * script/lua/ldblib.c: Likewise.
38484 * script/lua/ldebug.c: Likewise.
38485 * script/lua/ldebug.h: Likewise.
38486 * script/lua/ldo.c: Likewise.
38487 * script/lua/ldo.h: Likewise.
38488 * script/lua/ldump.c: Likewise.
38489 * script/lua/lfunc.c: Likewise.
38490 * script/lua/lfunc.h: Likewise.
38491 * script/lua/lgc.c: Likewise.
38492 * script/lua/lgc.h: Likewise.
38493 * script/lua/linit.c: Likewise.
38494 * script/lua/liolib.c: Likewise.
38495 * script/lua/llex.c: Likewise.
38496 * script/lua/llex.h: Likewise.
38497 * script/lua/llimits.h: Likewise.
38498 * script/lua/lmathlib.c: Likewise.
38499 * script/lua/lmem.c: Likewise.
38500 * script/lua/lmem.h: Likewise.
38501 * script/lua/loadlib.c: Likewise.
38502 * script/lua/lobject.c: Likewise.
38503 * script/lua/lobject.h: Likewise.
38504 * script/lua/lopcodes.c: Likewise.
38505 * script/lua/lopcodes.h: Likewise.
38506 * script/lua/loslib.c: Likewise.
38507 * script/lua/lparser.c: Likewise.
38508 * script/lua/lparser.h: Likewise.
38509 * script/lua/lstate.c: Likewise.
38510 * script/lua/lstate.h: Likewise.
38511 * script/lua/lstring.c: Likewise.
38512 * script/lua/lstring.h: Likewise.
38513 * script/lua/lstrlib.c: Likewise.
38514 * script/lua/ltable.c: Likewise.
38515 * script/lua/ltable.h: Likewise.
38516 * script/lua/ltablib.c: Likewise.
38517 * script/lua/ltm.c: Likewise.
38518 * script/lua/ltm.h: Likewise.
38519 * script/lua/lua.h: Likewise.
38520 * script/lua/luaconf.h: Likewise.
38521 * script/lua/lualib.h: Likewise.
38522 * script/lua/lundump.c: Likewise.
38523 * script/lua/lundump.h: Likewise.
38524 * script/lua/lvm.c: Likewise.
38525 * script/lua/lvm.h: Likewise.
38526 * script/lua/lzio.c: Likewise.
38527 * script/lua/lzio.h: Likewise.
38528
5e898c9d 385292009-05-16 Bean <bean123ch@gmail.com>
38530
38531 * include/grub/kernel.h (grub_module_header_types): Add type
38532 OBJ_TYPE_CONFIG.
38533
38534 * kern/main.c (grub_load_config): New function.
38535 (grub_main): Call grub_load_config to read boot config.
38536
38537 * grub-mkimage (generate_image): New parameter config_path.
38538 (options): New option --config.
38539 (main): Parse --config option, and pass it to generate_image.
38540
cf353a47 385412009-05-14 Christian Franke <franke@computer.org>
38542
38543 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38544 This fixes build on Cygwin.
38545
3834887f 385462009-05-14 Pavel Roskin <proski@gnu.org>
38547
38548 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38549 jump. This saves two bytes, so the typical case of 2 swapped
38550 drives would fit 32 bytes.
38551
8090fc01 385522009-05-13 Pavel Roskin <proski@gnu.org>
38553
ac963883 38554 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38555 grub_uint32_t to avoid a warning.
38556
8090fc01 38557 * loader/i386/linux.c (allocate_pages): When assigning
38558 real_mode_mem, cast through grub_size_t to fix a warning. The
38559 code already makes sure that the value would fit a pointer.
38560 (grub_linux_setup_video): Cast render_target->data to
38561 grub_size_t to fix a warning.
38562
18f547ad 385632009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 38564
38565 * commands/i386/pc/drivemap.c: New file - implement drivemap
38566 command.
38567 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38568 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38569
6f6a8b28 385702009-05-13 Pavel Roskin <proski@gnu.org>
38571
38572 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38573 embedding_area_exists.
38574
15fbf4c4 385752009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38576
38577 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38578 it easier to understand / work with.
59978c8a 38579 Improve warning messages for cases where there's no embedding area,
38580 or when it is too small (or core.img too large).
15fbf4c4 38581
238e871f 385822009-05-13 Pavel Roskin <proski@gnu.org>
38583
0ab3a9a4 38584 * loader/i386/pc/multiboot2.c: Add necessary includes for
38585 grub_multiboot2_real_boot().
38586
a2c8c5f8 38587 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38588 PX record is always little-endian. We only need the lower 2
38589 bytes of the mode.
38590
faec96af 38591 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38592 facilitate code reuse.
38593 (grub_cpio_mount): Use "struct head", not a char buffer. This
38594 fixes a warning reported by gcc 4.4.
38595
238e871f 38596 * kernel/disk.c (grub_disk_read): Use void pointer for the
38597 buffer.
38598 (grub_disk_write): Use const void pointer for the buffer.
38599 Adjust all callers. Remove unnecessary casts.
38600
901d2f0c 386012009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38602
38603 * util/i386/pc/grub-install.in: Update copyright year.
38604
18f547ad 386052009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 38606
38607 gptsync
38608
38609 * commands/gptsync.c: new file
38610 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38611 (gptsync_mod_SOURCES): new variable
38612 (gptsync_mod_CFLAGS): likewise
38613 (gptsync_mod_LDFLAGS): likewise
18f547ad 38614 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 38615 new definition
38616 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38617 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38618 * conf/i386-ieee1275.rmk: likewise
38619 * conf/i386-pc.rmk: likewise
38620 * conf/powerpc-ieee1275.rmk: likewise
38621
b4ba690a 386222009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38623
38624 Fixed grub-emu
38625
38626 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38627 (grub_dl_ref): likewise
38628
317e1a44 386292009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38630
38631 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38632 split in two functions (one for msdos and one for gpt).
38633
041b8094 386342009-05-08 Pavel Roskin <proski@gnu.org>
38635
752473c2 38636 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38637 not modified.
38638
041b8094 38639 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38640 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38641 Initialize them with -1. Add sanity check for bad1. Eliminate
38642 nerr variable.
38643
172800ce 386442009-05-08 David S. Miller <davem@davemloft.net>
38645
38646 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38647
29aa5e81 386482009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38649
38650 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 38651 existence.
29aa5e81 38652
96613b62 386532009-05-05 Felix Zielcke <fzielcke@z-51.de>
38654
38655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 38656 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 38657
eef73c8a 386582009-05-05 David S. Miller <davem@davemloft.net>
38659
38660 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38661
119494b5 386622009-05-05 Pavel Roskin <proski@gnu.org>
38663
38664 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38665 of grub_dl_ref() and grub_dl_unref().
38666 * commands/parttool.c: Remove preprocessor conditionals around
38667 grub_dl_ref() and grub_dl_unref().
38668 * fs/affs.c: Likewise.
38669 * fs/afs.c: Likewise.
38670 * fs/cpio.c: Likewise.
38671 * fs/ext2.c: Likewise.
38672 * fs/fat.c: Likewise.
38673 * fs/hfs.c: Likewise.
38674 * fs/hfsplus.c: Likewise.
38675 * fs/iso9660.c: Likewise.
38676 * fs/jfs.c: Likewise.
38677 * fs/minix.c: Likewise.
38678 * fs/ntfs.c: Likewise.
38679 * fs/reiserfs.c: Likewise.
38680 * fs/sfs.c: Likewise.
38681 * fs/udf.c: Likewise.
38682 * fs/ufs.c: Likewise.
38683 * fs/xfs.c: Likewise.
38684 * include/grub/dl.h: Likewise.
38685 * loader/xnu.c: Likewise.
38686
de5fd76e 386872009-05-04 Pavel Roskin <proski@gnu.org>
38688
38689 * commands/acpi.c: Remove unused variable my_mod.
38690 * partmap/amiga.c: Likewise.
38691 * partmap/apple.c: Likewise.
38692 * partmap/gpt.c: Likewise.
38693 * partmap/pc.c: Likewise.
38694 * partmap/sun.c: Likewise.
38695 * term/gfxterm.c: Likewise.
38696 * term/i386/pc/vesafb.c: Likewise.
38697 * term/i386/pc/vga.c: Likewise.
38698
983598ad 386992009-05-04 David S. Miller <davem@davemloft.net>
38700
38701 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38702 pointer args to grub_ieee1275_get_property().
38703
8aadec43 38704 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38705
9554b15e 38706 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38707 devices, and do not traverse down under controller nodes.
38708
67e23c90 38709 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38710 (grub_ofdisk_open): Use it to un-escape "," characters.
38711 * kern/disk.c (find_part_sep): New.
38712 (grub_disk_open): Use it to find the first non-escaped ','
38713 character in the disk name.
38714 * util/ieee1275/devicemap.c (escape_of_path): New.
38715 (grub_util_emit_devicemap_entry): Use it.
38716 * util/sparc64/ieee1275/grub-install.in: Update script to
38717 strip partition specifiers properly by not triggering on
38718 '\' escaped ',' characters.
38719
74bfdd2f 387202009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38721
38722 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38723 to 0x300.
38724 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38725 resolutions.
38726 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38727 on documentation from Wikipedia).
38728
4241d2b1 387292009-05-04 Pavel Roskin <proski@gnu.org>
38730
38731 * disk/ata.c: Spelling fixes.
38732 * disk/raid.c: Likewise.
38733 * disk/usbms.c: Likewise.
38734 * disk/dmraid_nvidia.c: Likewise.
38735 * kern/ieee1275/openfw.c: Likewise.
38736 * kern/ieee1275/init.c: Likewise.
38737 * kern/ieee1275/cmain.c: Likewise.
38738 * boot/i386/pc/cdboot.S: Likewise.
38739 * video/readers/png.c: Likewise.
38740 * video/i386/pc/vbe.c: Likewise.
38741 * fs/udf.c: Likewise.
38742 * fs/hfs.c: Likewise.
38743 * fs/reiserfs.c: Likewise.
38744 * efiemu/runtime/efiemu.c: Likewise.
38745 * efiemu/main.c: Likewise.
38746 * efiemu/mm.c: Likewise.
38747 * include/grub/elf.h: Likewise.
38748 * include/grub/xnu.h: Likewise.
38749 * include/grub/usbdesc.h: Likewise.
38750 * include/grub/usb.h: Likewise.
38751 * include/grub/script_sh.h: Likewise.
38752 * include/grub/lib/LzmaEnc.h: Likewise.
38753 * include/grub/efiemu/efiemu.h: Likewise.
38754 * include/grub/command.h: Likewise.
38755 * normal/menu.c: Likewise.
38756 * normal/main.c: Likewise.
38757 * normal/datetime.c: Likewise.
38758 * bus/usb/uhci.c: Likewise.
38759 * mmap/i386/uppermem.c: Likewise.
38760 * mmap/mmap.c: Likewise.
38761 * commands/acpi.c: Likewise.
38762 * commands/test.c: Likewise.
38763 * partmap/apple.c: Likewise.
38764 * font/font.c: Likewise.
38765 * loader/sparc64/ieee1275/linux.c: Likewise.
38766 * loader/macho.c: Likewise.
38767 * loader/i386/bsd_trampoline.S: Likewise.
38768 * loader/i386/bsd.c: Likewise.
38769 * loader/xnu.c: Likewise.
38770 * term/i386/pc/vesafb.c: Likewise.
38771 * term/usb_keyboard.c: Likewise.
38772 * util/resolve.c: Likewise.
38773 * util/getroot.c: Likewise.
38774
0cfc0083 387752009-05-04 Felix Zielcke <fzielcke@z-51.de>
38776
38777 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38778
7c1d00cd 387792009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38780
38781 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38782 build error.
38783
b01f0548 387842009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38785
38786 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38787 parameter only available on BIOS.
38788
ecc3eb22 387892009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38790
38791 Removed wrong semicolon in declaration
38792
38793 * grub/misc.h (grub_dprintf): remove semicolon
38794
112972a9 387952009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38796
38797 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38798 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38799 is done by grub_cmd_linux() now).
38800 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38801 restore video to text mode.
38802 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38803 indicates lack of "vga=" parameter. "vga=0" is mapped to
38804 `GRUB_LINUX_VID_MODE_NORMAL'.
38805
afd5c115 388062009-05-04 Felix Zielcke <fzielcke@z-51.de>
38807
38808 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38809 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38810 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 38811 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 38812 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38813 `grub_script.tab.c'.
38814
38815 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38816 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38818 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38819 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38820
faa517ce 38821 * Makefile.in: Remove duplicated 2008 in Copyright line.
38822
ae0c0bdc 388232009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38824
473d1e45 38825 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 38826 unconditionally.
38827 * include/grub/util/misc.h (grub_util_warn): New declaration.
38828
38829 * util/i386/pc/grub-install.in: Understand --force and pass it down
38830 to grub-setup.
38831
38832 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38833 down to setup().
38834 (setup): Improve error messages and add warnings when requested to
38835 install in odd layouts. Refuse to install using blocklists unless
38836 --force was set.
38837
18f547ad 388382009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 38839
38840 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38841
6d260daa 388422009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38843
38844 Updated copyright year
38845
38846 * fs/hfsplus.c: updated copyright year
18f547ad 38847
69f853f8 388482009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38849
38850 HFS+ UUID
38851
18f547ad 38852 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 38853 in the space previously used by unused3
38854 (grub_hfsplus_uuid): new function
38855 (grub_hfsplus_fs): added uuid field
38856
4c402e73 388572009-05-03 Pavel Roskin <proski@gnu.org>
38858
38859 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38860 suppress warnings. It's no longer needed.
38861 * disk/host.c: Likewise.
38862 * disk/ata_pthru.c: Likewise.
38863 * disk/loopback.c: Likewise.
38864 * hook/datehook.c: Likewise.
38865 * parttool/pcpart.c: Likewise.
38866 * fs/i386/pc/pxe.c: Likewise.
38867 * fs/ntfscomp.c: Likewise.
38868 * efiemu/main.c: Likewise.
38869 * mmap/mmap.c: Likewise.
38870 * commands/crc.c: Likewise.
38871 * commands/hexdump.c: Likewise.
38872 * commands/hdparm.c: Likewise.
38873 * commands/acpi.c: Likewise.
38874 * commands/echo.c: Likewise.
38875 * commands/minicmd.c: Likewise.
38876 * commands/blocklist.c: Likewise.
38877 * commands/memrw.c: Likewise.
38878 * commands/loadenv.c: Likewise.
38879 * commands/usbtest.c: Likewise.
38880 * commands/lsmmap.c: Likewise.
38881 * commands/boot.c: Likewise.
38882 * commands/parttool.c: Likewise.
38883 * commands/configfile.c: Likewise.
38884 * commands/search.c: Likewise.
38885 * commands/ieee1275/suspend.c: Likewise.
38886 * commands/cat.c: Likewise.
38887 * commands/i386/pc/pxecmd.c: Likewise.
38888 * commands/i386/pc/play.c: Likewise.
38889 * commands/i386/pc/halt.c: Likewise.
38890 * commands/i386/pc/vbeinfo.c: Likewise.
38891 * commands/i386/pc/vbetest.c: Likewise.
38892 * commands/lspci.c: Likewise.
38893 * commands/date.c: Likewise.
38894 * commands/handler.c: Likewise.
38895 * commands/ls.c: Likewise.
38896 * commands/test.c: Likewise.
38897 * commands/cmp.c: Likewise.
38898 * commands/efi/loadbios.c: Likewise.
38899 * commands/efi/fixvideo.c: Likewise.
38900 * commands/halt.c: Likewise.
38901 * commands/help.c: Likewise.
38902 * commands/reboot.c: Likewise.
38903 * hello/hello.c: Likewise.
38904 * script/sh/main.c: Likewise.
38905 * loader/xnu.c: Likewise.
38906 * term/terminfo.c: Likewise.
38907 * term/i386/pc/serial.c: Likewise.
38908 * term/usb_keyboard.c: Likewise.
38909
515b5079 389102009-05-03 David S. Miller <davem@davemloft.net>
38911
38912 * normal/menu.c: Include grub/parser.h
38913
dfc31a22 389142009-05-03 Pavel Roskin <proski@gnu.org>
38915
2fee74f1 38916 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38917 not char*.
38918 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38919 Suggested by Javier Martín <lordhabbit@gmail.com>
38920
dfc31a22 38921 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38922 efiemu??.o doesn't exist.
38923 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38924 copying.
38925
18f547ad 389262009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 38927
38928 FreeBSD 64-bit support
38929
18f547ad 38930 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 38931 and loader/i386/bsd_trampoline.S
38932 (bsd_mod_ASFLAGS): new variable
38933 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38934 (FREEBSD_MODTYPE_KERNEL64): likewise
38935 (grub_bsd64_trampoline_start): likewise
38936 (grub_bsd64_trampoline_end): likewise
38937 (grub_bsd64_trampoline_selfjump): likewise
38938 (grub_bsd64_trampoline_gdt): likewise
38939 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38940 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38941 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38942 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 38943 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 38944 of "attrib" member
38945 * loader/i386/bsd_pagetable.c: new file
38946 * loader/i386/bsd_trampoline.S: likewise
38947 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38948 (ALIGN_VAR): likewise
38949 (entry_hi): new variable
38950 (kern_end_mdofs): likewise
38951 (is_64bit): likewise
38952 (grub_freebsd_add_meta): use ALIGN_VAR
38953 (grub_e820_mmap): new declaration
38954 (grub_freebsd_add_mmap): new function
38955 (grub_freebsd_add_meta_module): support 64 bit kernels
38956 (grub_freebsd_list_modules): use ALIGN_VAR
38957 (gdt_descriptor): new declaration
38958 (grub_freebsd_boot): support 64 bit kernels
38959 (grub_bsd_elf64_hook): new function
38960 (grub_bsd_load_elf): support elf64
38961
038c5720 389622009-05-03 Bean <bean123ch@gmail.com>
38963
38964 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38965 after we get the result of if statement.
38966
fc45fb58 389672009-05-03 Bean <bean123ch@gmail.com>
38968
38969 * Makefile.in (enable_efiemu): New variable.
38970
38971 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38972 set.
38973 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38974 path.
38975 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38976 path, add -mno-red-zone option.
38977 (efiemu64_s.o): Likewise.
38978 (efiemu64.o): Use macro $^ for source file.
38979
38980 * configure.ac (--enable-efiemu): New option.
38981
bbee0f2b 389822009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38983
38984 xnu support
38985
38986 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38987 (pkglib_MODULES): add xnu.mod
38988 (xnu_mod_SOURCES): new variable
38989 (xnu_mod_CFLAGS): likewise
38990 (xnu_mod_LDFLAGS): likewise
38991 (xnu_mod_ASFLAGS): likewise
38992 * conf/i386-pc.rmk: likewise
38993 * conf/x86_64-efi.rmk: likewise
7dd4a573 38994 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 38995 new declaration
38996 * include/grub/i386/macho.h: new file
38997 * include/grub/i386/xnu.h: likewise
38998 * include/grub/macho.h: likewise
38999 * include/grub/machoload.h: likewise
39000 * include/grub/x86_64/macho.h: likewise
39001 * include/grub/x86_64/xnu.h: likewise
39002 * include/grub/xnu.h: likewise
39003 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39004 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39005 * loader/i386/efi/xnu.c: new file
39006 * loader/i386/pc/xnu.c: likewise
39007 * loader/i386/xnu.c: likewise
39008 * loader/i386/xnu_helper.S: likewise
39009 * loader/macho.c: likewise
39010 * loader/xnu.c: likewise
39011 * loader/xnu_resume.c: likewise
39012 * util/grub-dumpdevtree: likewise
39013 * include/grub/i386/pit.h: include grub/err.h
39014 (grub_pit_wait): export
39015 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 39016
5caf964d 390172009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39018
39019 Efiemu
7dd4a573 39020
5caf964d 39021 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 39022 _linux_efi, linux_efi.
39023 new files in grub-emu
5caf964d 39024 new targets efiemu32.o and efiemu64.o
39025 * loader/linux_normal_efiemu.c: likewise
39026 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 39027 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 39028 files to copy
39029 * include/grub/autoefi.h: new file
7dd4a573 39030 * include/grub/i386/efiemu.h: likewise
5caf964d 39031 * include/grub/i386/pc/efiemu.h: likewise
39032 * include/grub/efi/api.h: add LL suffix when necessary
39033 new definitions relating to tables
39034 * include/grub/efiemu/efiemu.h: new file
39035 * include/grub/efiemu/runtime.h: likewise
39036 * efiemu/prepare.c: likewise
39037 * efiemu/loadcore_common.c: likewise
39038 * efiemu/loadcore64.c: likewise
39039 * efiemu/runtime/efiemu.sh: likewise
39040 * efiemu/runtime/efiemu.S: likewise
39041 * efiemu/runtime/efiemu.c: likewise
39042 * efiemu/runtime/config.h: likewise
39043 * efiemu/prepare32.c: likewise
39044 * efiemu/main.c: likewise
39045 * efiemu/modules/pnvram.c: likewise
39046 * efiemu/modules/i386: likewise
39047 * efiemu/modules/i386/pc: likewise
39048 * efiemu/modules/acpi.c: likewise
39049 * efiemu/i386/pc/cfgtables.c: likewise
39050 * efiemu/i386/loadcore64.c: likewise
39051 * efiemu/i386/loadcore32.c: likewise
39052 * efiemu/prepare64.c: likewise
39053 * efiemu/loadcore.c: likewise
39054 * efiemu/symbols.c: likewise
39055 * efiemu/mm.c: likewise
39056 * efiemu/loadcore32.c: likewise
7dd4a573 39057
390582009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 39059
39060 ACPI spoofing
39061
39062 * commands/acpi.c: new file
39063 * commands/i386/pc/acpi.c: likewise
39064 * commands/efi/acpi.c: likewise
39065 * include/grub/acpi.h: likewise
39066 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39067 (acpi_mod_SOURCES): new variable
39068 (acpi_mod_CFLAGS): likewise
39069 (acpi_mod_LDFLAGS): likewise
39070 * conf/i386-efi.rmk: likewise
39071 * conf/x86_64-efi.rmk: likewise
39072
7dd4a573 390732009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 39074
39075 Missing part from mmap patch
39076
39077 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39078 (grub_mmap_unregister)
39079 (grub_mmap_free_and_unregister): use grub_mmap_register
39080
7dd4a573 390812009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 39082
39083 Mmap services
39084
39085 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39086 * loader/i386/linux.c (find_mmap_size): likewise
39087 (allocate_pages): likewise
39088 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39089 (grub_fill_multiboot_mmap): likewise
39090 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39091 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39092 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39093 (OPENBSD_MMAP_RESERVED): likewise
39094 * include/grub/i386/pc/memory.h: include grub/memory.h
39095 (grub_lower_mem): removed
39096 (grub_upper_mem): likewise
39097 (GRUB_MACHINE_MEMORY_ACPI): new definition
39098 (GRUB_MACHINE_MEMORY_NVS): likewise
39099 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39100 (GRUB_MACHINE_MEMORY_HOLE): likewise
39101 (grub_machine_mmap_register): likewise
39102 (grub_machine_mmap_unregister): likewise
39103 (grub_machine_get_upper): likewise
39104 (grub_machine_get_lower): likewise
39105 (grub_machine_get_post64): likewise
39106 * include/grub/i386/efi/memory.h: new file
39107 * include/grub/x86_64/efi/memory.h: likewise
39108 * include/grub/efi/memory.h: likewise
39109 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39110 (mmap_mod_SOURCES): new variable
39111 (mmap_mod_LDFLAGS): likewise
39112 (mmap_mod_ASFLAGS): likewise
39113 * conf/i386-coreboot.rmk: likewise
39114 * conf/i386-ieee1275.rmk: likewise
39115 * conf/i386-efi.rmk: likewise
39116 * conf/x86_64-efi.rmk: likewise
39117 * include/grub/types.h (UINT_TO_PTR): new macro
39118 (PTR_TO_UINT32): likewise
39119 (PTR_TO_UINT64): likewise
39120 * include/grub/memory.h: new file
39121 * mmap/i386/pc/mmap.c: likewise
39122 * mmap/i386/pc/mmap_helper.S: likewise
39123 * mmap/i386/uppermem.c: likewise
39124 * mmap/mmap.c: likewise
39125 * mmap/efi/mmap.c: likewise
7dd4a573 39126 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 39127 grub_upper_mem
39128 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39129 (grub_upper_mem): likewise
39130 (grub_machine_init): don't use grub_upper_mem,
39131 make grub_lower_mem local
39132 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39133 grub_mmap_iterate and grub_mmap_get_upper
39134 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39135
d558e6b5 391362009-05-02 Bean <bean123ch@gmail.com>
39137
39138 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39139 script/sh/parser.y.
39140 (pkglib_MODULES): Add normal.mod and sh.mod.
39141 (normal_SOURCES): New variable.
39142 (normal_mod_CFLAGS): Likewise.
39143 (normal_mod_LDFLAGS): Likewise.
39144 (sh_mod_SOURCES): Likewise.
39145 (sh_mod_CFLAGS): Likewise.
39146 (sh_mod_LDFLAGS): Likewise.
39147
39148 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39149 script/sh/lexer.c_DEPENDENCIES.
39150 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39151 kern/rescue_reader.c and kern/rescue_parser.c.
39152 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39153 (grub_emu_SOURCES): Change source files.
39154 (pkglib_MODULES): Remove normal.mod.
39155 (normal_SOURCES): Removed.
39156 (normal_mod_CFLAGS): Likewise.
39157 (normal_mod_LDFLAGS): Likewise.
39158 * conf/i386-coreboot.rmk: Likewise.
39159 * conf/i386-efi.rmk: Likewise.
39160 * conf/i386-ieee1276.rmk: Likewise.
39161 * conf/powerpc-ieee1275.rmk: Likewise.
39162 * conf/sparc64-ieee1275.rmk: Likewise.
39163 * conf/x86_64-efi.rmk: Likewise.
39164
39165 * include/grub/command.h (grub_command_execute): New inline function.
39166
39167 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39168
39169 * include/grub/normal.h: Remove <grub/setjmp.h>.
39170 (grub_fs_module_list): Moved to normal/autofs.c.
39171 (grub_exit_env): Removed.
39172 (grub_command_execute): Likewise.
39173 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39174 parameter script.
39175 (read_command_list): New function declaration.
39176 (read_fs_list): Likewise.
39177
39178 * include/parser.h: Include <grub/reader.h>.
39179 (grub_parser_split_cmdline): Change type of getline parameter.
39180 (grub_parser): New structure.
39181 (grub_parser_class): New variable.
39182 (grub_parser_execute): New function declaration.
39183 (grub_register_rescue_parser): Likewise.
39184 (grub_parser_register): New inline function.
39185 (grub_parser_unregister): Likewise.
39186 (grub_parser_get_current): Likewise.
39187 (grub_parser_set_current): Likewise.
39188
39189 * include/grub/reader.h: New file.
39190 * kern/reader.c: Likewise.
39191 * kern/rescue_parser.c: Likewise.
39192 * kern/rescue_reader.c: Likewise.
39193 * normal/autofs.c: Likewise.
39194 * normal/dyncmd.c: Likewise.
39195
39196 * include/grub/rescue.h: Removed.
39197 * normal/command.h: Likewise.
39198
39199 * include/grub/script.h: Moved to ...
39200 * include/grub/script_sh.h: ... Moved here.
39201 * normal/execute.c: Moved to ...
39202 * script/sh/execute.c: ... Moved here.
39203 * normal/function.c: Moved to ...
39204 * script/sh/function.c: ... Moved here.
39205 * normal/lexer.c: Moved to ...
39206 * script/sh/lexer.c: ... Moved here.
39207 * normal/parser.y: Moved to ...
39208 * script/sh/parser.y: ... Moved here.
39209 * normal/script.c: Moved to ...
39210 * script/sh/script.c: ... Moved here.
39211
39212 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39213 <grub/reader.h>.
39214 (grub_exit_env): Removed.
39215 (fs_module_list): Moved to normal/autofs.c.
39216 (grub_file_getline): Don't handle comment here.
39217 (free_menu): Skip removed field entry->commands.
39218 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39219 script parameter.
39220 (read_config_file): Removed nested parameter, change getline function.
39221 (grub_enter_normal_mode): Removed.
39222 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39223 (read_command_list): Likewise.
39224 (autoload_fs_module): Moved to normal/autofs.c.
39225 (read_fs_list): Likewise.
39226 (reader_nested): New variable.
39227 (grub_normal_execute): Run parser.sh to switch to sh parser.
39228 (grub_cmd_rescue): Removed.
39229 (cmd_normal): Removed.
39230 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39231 rescue command.
39232 (grub_cmdline_run): New function.
39233 (grub_normal_reader_init): Likewise.
39234 (grub_normal_read_line): Likewise.
39235 (grub_env_write_pager): Likewise.
39236 (cmdline): New variable.
39237 (grub_normal_reader): Likewise.
39238 (GRUB_MOD_INIT): Register normal reader and set as current, register
39239 pager hook, register normal command with grub_register_command_prio,
39240 so that it won't show up in command.lst.
39241 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39242 grub_fs_autoload_hook.
39243
39244 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39245 (grub_menu_execute_entry): Replace grub_script_execute with
39246 grub_parser_execute, change parameter to grub_command_execute.
39247
39248 * normal/menu_text.c: Remove <grub/script.h>.
39249
39250 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39251 and <grub/parser.h>.
39252 (run): Change editor_getline to use new parser interface. Change
39253 parameter to grub_command_execute.
39254
39255 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39256 <grub/reader.h> and <grub/parser.h>.
39257 (grub_load_normal_mode): Execute normal command.
39258 (grub_main): Call grub_register_core_commands,
39259 grub_register_rescue_parser and grub_register_rescue_reader, use
39260 grub_reader_loop to enter input loop.
39261
7dd4a573 39262 * kern/parser.c (grub_parser_split_cmdline): Change type of
39263 getline parameter.
d558e6b5 39264 (grub_parser_class): New variable.
39265 (grub_parser_execute): New function.
39266
39267 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39268 * loader/multiboot2.c: Likewise.
39269 * loader/sparc64/ieee1275/linux.c: Likewise.
39270
39271 * util/grub-emu.c (read_command_list): New dummy function.
39272
18db813d 392732009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39274
39275 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39276 count to 16 for CCISS and IDA.
39277
6c67de15 392782009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39279
39280 * normal/menu_text.c (grub_wait_after_message): Print a newline
39281 after waiting for user input.
39282
39283 * loader/i386/linux.c: Include `<grub/normal.h>'.
39284 (grub_cmd_linux): Improve the error message about `ask' mode, by
39285 waiting for user input so it's not missed (we can do this, since
39286 user requested interaction).
39287
d9dc87b0 392882009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39289
39290 Added missing lst to grub-mkrescue
39291
39292 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39293 and ${input_dir}/parttool.lst
39294
ac8a2baa 392952009-04-30 David S. Miller <davem@davemloft.net>
39296
ad22a610 39297 * util/hostdisk.c (device_is_wholedisk): New function.
39298 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39299 zero only if device_is_wholedisk() returns true.
39300
6966215d 39301 * util/hostdisk.c (convert_system_partition_to_system_disk):
39302 Handle virtual disk devices named /dev/vdiskX as found on sparc
39303 and powerpc.
39304
ac8a2baa 39305 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39306 lettered partition specifier is found, convert to numbered.
39307
979b4fb4 393082009-04-29 David S. Miller <davem@davemloft.net>
39309
e2bf39b2 39310 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39311 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39312
3c64e104 39313 * normal/command.c: Add missing newline at end of file.
39314
979b4fb4 39315 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39316 warnings.
39317 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39318 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39319 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39320 ihandles have a 32-bit type but need to be stored in a "void *".
39321
136d9f82 393222009-04-28 Pavel Roskin <proski@gnu.org>
39323
9459c306 39324 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39325 not disk. Adjust all dependencies.
2e08a26a 39326 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 39327 grub_disk_close().
39328
136d9f82 39329 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39330 parent's partition, don't copy it by reference, as it gets freed
39331 on close.
39332
7dd4a573 393332009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 39334
39335 Preboot hooks support
39336
39337 * commands/boot.c (struct grub_preboot_t): new declaration
39338 (preboots_head): new variable
39339 (preboots_tail): likewise
39340 (grub_loader_register_preboot_hook): new function
39341 (grub_loader_unregister_preboot_hook): likewise
39342 (grub_loader_set): launch preboot hooks
39343 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39344 (grub_loader_register_preboot_hook): new declaration
39345 (grub_loader_unregister_preboot_hook): likewise
39346
5af922b5 393472009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39348
39349 Warning fix
39350
7dd4a573 39351 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 39352 calling grub_dprintf
39353
a5562c30 393542009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39355
39356 Bug and warning fixes
39357
7dd4a573 39358 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 39359 declaration
39360 * commands/test.c (test_parse): fixed bug with file tests and corrected
39361 declaration of find_file
39362
4006f85c 393632009-04-26 Pavel Roskin <proski@gnu.org>
39364
39365 * Makefile.in: Don't install empty manual pages if help2man is
39366 missing. Use help2man option for output, not shell redirection.
39367
5c77c3de 393682009-04-26 David S. Miller <davem@davemloft.net>
39369
39370 * util/grub-mkdevicemap.c (make_device_map): Add missing
39371 NESTED_FUNC_ATTR to process_device().
39372
033b10a8 393732009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39374
39375 Test command
39376
39377 * commands/test.c: rewritten to use bash-like test
39378
e4343593 393792009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39380
39381 Parttool autoloading and improvements
39382
7dd4a573 39383 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 39384 (parttool.lst): new target
39385 * genmk.rb: generate parttool-*
39386 (CLEANFILES): add #{parttool}
39387 (PARTTOOLFILES): new variable
39388 * genparttoollist.sh: new file
7dd4a573 39389 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 39390 (grub_pcpart_type): likewise
39391 * commands/parttool.c (helpmsg): new variable
39392 (grub_cmd_parttool): output help if not enough arguments are supplied
39393 autoload modules
39394 (GRUB_MOD_INIT(parttool)): use helpmsg
39395
0d312500 393962009-04-24 David S. Miller <davem@davemloft.net>
39397
7dd4a573 39398 Avoiding opening same device multiple times in device iterator.
0d312500 39399
39400 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 39401 and use it to build a list of partitions in iterate_disk() and
0d312500 39402 iterate_partition().
39403
ac20caff 39404 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39405 on disk->data.
39406
0dcf7495 39407 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39408 grub_devalias_iterate() result instead of unconditional 0.
39409 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39410 Also, capture hook return value, either directly or via
39411 grub_children_iterate(), and propagate to caller.
39412 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39413 grub_children_iterate): Return value is now 'int' instead of
39414 'grub_err_t'.
39415 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39416 like a proper iterator, stopping when hooks return non-zero.
39417 (grub_devalias_iterate): Likewise.
39418
c8c08833 394192009-04-23 David S. Miller <davem@davemloft.net>
39420
39421 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39422
f01005a8 394232009-04-22 David S. Miller <davem@davemloft.net>
39424
39425 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39426 is larger than address_cells, use that value for address_cells too.
39427
4e8269da 39428 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39429 IEEE1275_MAX_PATH_LEN): Define.
39430 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39431 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39432 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39433 'devtype'. Explicitly NULL terminate devalias expansion.
39434
a1447506 39435 * util/sparc64/ieee1275/misc.c: New file.
39436 * util/sparc64/ieee1275/grub-setup.c: New file.
39437 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39438 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39439 * util/sparc64/ieee1275/grub-install.in: New file.
39440 * util/ieee1275/ofpath.c: New file.
39441 * util/ieee1275/devicemap.c: New file.
39442 * util/devicemap.c: New file.
39443 * util/deviceiter.c: New file.
39444 * kern/sparc64/ieee1275/init.c: New file.
39445 * include/grub/util/ofpath.h: New file.
39446 * include/grub/util/deviceiter.h: New file.
39447 * util/grub-mkdevicemap.c: Include deviceiter.h.
39448 Implement using grub_util_emit_devicemap_entry and
39449 grub_util_iterate_devices.
39450 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39451 util/devicemap.c into grub-mkdevicemap
39452 * conf/i386-efi.rmk: Likewise.
39453 * conf/i386-ieee1275.rmk: Likewise.
39454 * conf/i386-pc.rmk: Likewise.
39455 * conf/powerpc-ieee1275.rmk: Likewise.
39456 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39457 images and installation utilities. Build kernel as image
39458 instead of as elf binary. Use common rules as much as possible.
39459
7dd4a573 394602009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 39461
39462 Correct GPT definition
39463
7dd4a573 39464 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 39465 of "attrib" member
39466
c6c5219f 394672009-04-19 Felix Zielcke <fzielcke@z-51.de>
39468
39469 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39470
0552ff9f 394712009-04-19 David S. Miller <davem@davemloft.net>
39472
39473 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39474 (grub_rescue_cmd_linux): Rename to...
39475 (grub_cmd_linux): and fix prototype.
39476 (grub_rescue_cmd_initrd): Rename to...
39477 (grub_cmd_initrd): and fix prototype.
39478 (cmd_linux, cmd_initrd): New.
39479 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39480 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39481
d1a282fc 394822009-04-17 Pavel Roskin <proski@gnu.org>
39483
07c5039f 39484 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39485 format.
39486 (grub_ohci_transfer): Likewise.
39487
b012002d 39488 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39489
1bc09c35 39490 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39491 return without a value. Fix inconsistent indentation.
39492
e0ff9126 39493 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39494 match struct grub_fs.
39495
d1a282fc 39496 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39497 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39498 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39499 * commands/lspci.c (grub_lspci_iter): Likewise.
39500
a96df3f2 395012009-04-16 Bean <bean123ch@gmail.com>
39502
39503 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39504 value.
39505
41bb0fe9 395062009-04-15 Pavel Roskin <proski@gnu.org>
39507
39508 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39509 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39510 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39511 definitions.
39512
596c6970 395132009-04-15 Felix Zielcke <fzielcke@z-51.de>
39514
39515 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 39516 that no multiple data or metadata areas are supported and `Unknown
596c6970 39517 metadata header'.
39518
7dd4a573 395192009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 39520
39521 Move loader out of the kernel
39522
39523 * kern/loader.c: moved to ...
39524 * commands/boot.c: ... moved here
39525 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39526 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39527 * include/grub/kernel.h (grub_machine_fini): export
39528 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39529 (grub_loader_set): likewise
39530 (grub_loader_unset): likewise
39531 (grub_loader_boot): likewise
39532 * conf/common.rmk: new module boot.mod
39533 (pkglib_MODULES): add boot.mod
39534 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39535 (grub_emu_SOURCES): likewise
39536 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39537 (grub_emu_SOURCES): likewise
39538 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39539 (grub_emu_SOURCES): likewise
39540 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39541 (grub_emu_SOURCES): likewise
39542 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39543 (grub_emu_SOURCES): likewise
7dd4a573 39544 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39545 (grub_emu_SOURCES): likewise
0d5d5653 39546 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 39547 (grub_emu_SOURCES): likewise
0d5d5653 39548
7dd4a573 395492009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 39550
39551 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 39552
5999d619 39553 * kern/misc.c (grub_itoa): Removed function
39554 (grub_ltoa): likewise
39555 (grub_vsprintf): use grub_lltoa
39556
7dd4a573 395572009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 39558
39559 Restore grub-emu
39560
39561 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39562 * conf/i386-coreboot.rmk: likewise
39563 * conf/i386-ieee1275.rmk: likewise
39564 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 39565
20318222 395662009-04-15 Felix Zielcke <fzielcke@z-51.de>
39567
39568 * INSTALL: Add that `./autogen.sh' needs to be run before
39569 `./configure.'.
39570
d05f0df3 395712009-04-14 Bean <bean123ch@gmail.com>
39572
39573 * Makefile.in (pkglib_DATA): Add handler.lst.
39574 (handler.lst): New rule.
39575
39576 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39577 * conf/i386-coreboot.rmk: Likewise.
39578 * conf/i386-ieee1275.rmk: Likewise.
39579 * conf/i386-efi.rmk: Likewise.
39580 * conf/x86_64-efi.rmk: Likewise.
39581 * conf/powerpc-ieee1275.rmk: Likewise.
39582 * conf/sparc64-ieee1275.rmk: Likewise.
39583
39584 * genhandlerlist.sh: New file.
39585
39586 * genmk.rb: Add rules to generate handler.lst.
39587
39588 * include/grub/normal.h (grub_file_getline): New function definition.
39589 (read_handler_list): Likewise.
39590 (free_handler_list): Likewise.
39591
39592 * include/grub/term.h (grub_term_register_input): Add name parameter
39593 for auto generation of handler.lst.
39594 (grub_term_register_output): Likewise.
39595
39596 * normal/handler.c: New file.
39597
39598 * normal/main.c (get_line): Renamed to grub_file_getline.
39599 (read_config_file): Use the newly renamed grub_file_getline.
39600 (read_command_list): Likewise.
39601 (read_fs_list): Likewise.
39602 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39603 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39604
39605 * term/efi/console.c (grub_console_init): Add name parameter for auto
39606 generation of handler.lst.
39607 * term/gfxterm.c: Likewise.
39608 * term/i386/pc/at_keyboard.c: Likewise.
39609 * term/i386/pc/console.c: Likewise.
39610 * term/i386/pc/serial.c: Likewise.
39611 * term/i386/pc/vesafb.c: Likewise.
39612 * term/i386/pc/vga.c: Likewise.
39613 * term/i386/pc/vga_text.c: Likewise.
39614 * term/ieee1275/ofconsole.c: Likewise.
39615 * term/usb_keyboard.c: Likewise.
39616
33c846be 396172009-04-14 Bean <bean123ch@gmail.com>
39618
39619 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39620 properly with null character.
39621
4484e01e 396222009-04-14 Felix Zielcke <fzielcke@z-51.de>
39623
39624 * configure: Remove.
39625 * config.h.in: Likewise.
f93d668e 39626 * stamp-h.in: Likewise.
4484e01e 39627 * DISTLIST: Likewise.
39628 * conf/common.mk: Likewise.
39629 * conf/i386-coreboot.mk: Likewise.
39630 * conf/i386-efi.mk: Likewise.
39631 * conf/i386-ieee1275.mk: Likewise.
39632 * conf/i386.mk: Likewise.
39633 * conf/i386-pc.mk: Likewise.
39634 * conf/powerpc-ieee1275.mk: Likewise.
39635 * conf/sparc64-ieee1275.mk: Likewise.
39636 * conf/x86_64-efi.mk: Likewise.
39637
39638 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39639 develop on GRUB.
39640
7dd4a573 396412009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 39642 David S. Miller <davem@davemloft.net>
39643
39644 * util/hostdisk.c (make_device_name): Fix buffer length
39645 calculations.
39646
e25b5a8c 396472009-04-14 Felix Zielcke <fzielcke@z-51.de>
39648
39649 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39650 <sys/param.h> and <sys/sysctl.h>.
39651 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39652 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39653 opening the device and reset them afterwards.
39654
1f1f580c 396552009-04-13 Pavel Roskin <proski@gnu.org>
39656
39657 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39658 Reported by John Stanley <jpsinthemix@verizon.net>
39659
7ebc2d6b 396602009-04-13 Robert Millan <rmh@aybabtu.com>
39661
39662 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 39663 that name for menuentries when appropriate.
7ebc2d6b 39664
d8ba3667 396652009-04-13 Felix Zielcke <fzielcke@z-51.de>
39666
39667 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39668
cba416eb 396692009-04-13 Robert Millan <rmh@aybabtu.com>
39670
39671 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39672 to Linux, simply abort telling the user it's no longer supported.
39673
a547a745 396742009-04-13 Felix Zielcke <fzielcke@z-51.de>
39675
39676 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 39677 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 39678 `freebsd_loadenv' only when devices.hints exist.
39679
232a769c 396802009-04-13 Pavel Roskin <proski@gnu.org>
39681
39682 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39683
c3012039 396842009-04-13 Felix Zielcke <fzielcke@z-51.de>
39685
39686 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39687 partition number.
39688 (grub_drive): Likewise.
39689
234022fe 396902009-04-13 David S. Miller <davem@davemloft.net>
39691
39692 * kern/sparc64/ieee1275/ieee1275.c: New file.
39693 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39694 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39695 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39696 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39697 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39698 grub_ieee1275_alloc_physmem): Declare new exported functions.
39699
d8e1836c 39700 * include/grub/sparc64/ieee1275/loader.h: New file.
39701 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39702 * include/grub/sparc64/kernel.h: Likewise.
39703 * loader/sparc64/ieee1275/linux.c: Likewise.
39704
96bd81ec 39705 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39706 (grub_fstest_SOURCES): Likewise.
39707
6a4737e5 39708 * util/hostdisk.c (make_device_name): Do not make any assumptions
39709 about the length of drive names.
39710
1d7a72fd 39711 * kern/dl.c (grub_dl_load_file): Close file immediately when
39712 we are done using it.
39713
56bc2471 397142009-04-12 David S. Miller <davem@davemloft.net>
39715
39716 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39717 values. Noticed by Pavel Roskin.
39718
df38d0bb 39719 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39720 target compiler.
7dd4a573 39721
e382e93a 39722 * genmk.rb: Add more flexible image type specification, also
39723 pass --strip-unneeded to objcopy.
39724 * conf/i386-pc.rmk: Use *_FORMAT.
39725 * conf/i386-pc.mk: Rebuilt.
39726
f5dbbca9 39727 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39728 (OFDISK_HASH_SZ): Define.
39729 (ofdisk_hash): New hash table.
39730 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39731 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39732 instead of device phandle which is not unique.
39733
91c88b12 39734 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39735 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39736 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39737 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39738 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39739 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39740 GRUB_KERNEL_MACHINE_DATA_END): Define.
39741 (grub_kernel_image_size, grub_total_module_size): Declare.
39742
5b5d4aa5 397432009-04-12 Pavel Roskin <proski@gnu.org>
39744
7dd4a573 39745 * configure.ac: Change the logic when we check for target tools.
39746 Do it when the target is specified and it's different from the
39747 specified value of the host.
5b5d4aa5 39748
c91e1793 397492009-04-11 Felix Zielcke <fzielcke@z-51.de>
39750
39751 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39752 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39753 GNU/kFreeBSD. Check if a device is a character device. Use
39754 DIOCGMEDIASIZE to get the size.
39755 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39756 support for GNU/kFreeBSD.
39757 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39758 is a character device instead of a block device. Add support for
39759 FreeBSD device names.
39760
39761 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39762 is a character device instead of a block device.
39763
39764 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39765 is a character device instead of a block device.
39766
b1ac8644 397672009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39768
39769 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39770 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39771 FreeBSD. Check if a device is a character device. Use
39772 DIOCGMEDIASIZE to get the size.
39773 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39774 support for FreeBSD.
39775 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39776 is a character device instead of a block device. Add support for
39777 FreeBSD device names.
39778
39779 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39780 a character device instead of a block device.
39781 (grub_util_check_char_device): New function.
39782
39783 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39784 a character device instead of a block device.
39785
39786 * include/grub/util/getroot.h (grub_util_check_char_device): New
39787 prototype.
39788
a3f7515a 397892009-04-11 David S. Miller <davem@davemloft.net>
39790
39791 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39792 static libgcc.
39793 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39794 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39795 function, if present.
39796 (__bswapdi2): Likewise.
39797
0d44993d 39798 * include/grub/sparc64/ieee1275/boot.h: New file.
39799 * boot/sparc64/ieee1275/boot.S: Likewise.
39800 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39801
ed3d2bc2 39802 * kern/misc.c (grub_ltoa): New function.
39803 (grub_vsprintf): Use it to format 'long' integers.
39804
d3bfb59c 398052009-04-10 David S. Miller <davem@davemloft.net>
39806
39807 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39808 slots are of type grub_ieee1275_cell_t.
39809 (grub_nand_read): Likewise.
39810 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39811 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39812 macros are used to compare values in arg/ret block of the call.
39813 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39814 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39815 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39816 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39817 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39818 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39819 grub_ieee1275_close, grub_ieee1275_set_property,
39820 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39821 grub_ieee1275_cell_t.
39822 * kern/ieee1275/openfw.c (grub_map): Likewise.
39823 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39824 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39825
450e2238 39826 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39827 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39828 (grub_devalias_iterate): Likewise.
39829
7dd4a573 398302009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 39831
39832 UFS improvements
39833
39834 * fs/ufs.c (INODE_NBLOCKS): new definition
39835 (struct grub_ufs_dirent): added fields for non-BSD dirents
39836 (grub_ufs_get_file_block): fixed double indirect handling
39837 (grub_ufs_lookup_symlink): use more robust way to determine whether
39838 symlink is inline
39839 (grub_ufs_find_file): support for non-BSD dirents
39840 (grub_ufs_dir): support for non-BSD dirents
39841
e7e6862a 398422009-04-10 Bean <bean123ch@gnail.com>
39843
39844 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39845 attribute, otherwise the size would be wrong for i386 platform.
39846
39847 * include/grub/pci.h (grub_pci_read_word): New inline function.
39848 (grub_pci_read_byte): Likewise.
39849 (grub_pci_write): Likewise.
39850 (grub_pci_write_word): Likewise.
39851 (grub_pci_write_byte): Likewise.
39852
39853 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39854
39855 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39856 (find_framebuf): Scan pci to locate the frame buffer address.
39857
39858 * commands/efi/fixvideo.c: New file.
39859
39860 * commands/efi/loadbios.c: Likewise.
39861
39862 * commands/memrw.c: Likewise.
39863
39864 * util/grub-dumpbios.in: Likewise.
39865
39866 * conf/common.rmk (grub-dumpbios): New utility.
39867 (pkglib_MODULES): New module memrw.mod.
39868 (memrw_mod_SOURCE): New macro.
39869 (memrw_mod_CFLAGS): Likewise.
39870 (memrw_mod_LDFLAGS): Likewise.
39871
7dd4a573 39872 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 39873 fixvideo.mod.
39874 (loadbios_mod_SOURCE): New macro.
39875 (loadbios_mod_CFLAGS): Likewise.
39876 (loadbios_mod_LDFLAGS): Likewise.
39877 (fixvideo_mod_SOURCE): Likewise.
39878 (fixvideo_mod_CFLAGS): Likewise.
39879 (fixvideo_mod_LDFLAGS): Likewise.
39880
7dd4a573 39881 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 39882 fixvideo.mod.
39883 (loadbios_mod_SOURCE): New macro.
39884 (loadbios_mod_CFLAGS): Likewise.
39885 (loadbios_mod_LDFLAGS): Likewise.
39886 (fixvideo_mod_SOURCE): Likewise.
39887 (fixvideo_mod_CFLAGS): Likewise.
39888 (fixvideo_mod_LDFLAGS): Likewise.
39889
af63ada2 398902009-04-08 Felix Zielcke <fzielcke@z-51.de>
39891
39892 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39893
c2cdde70 398942009-04-07 David S. Miller <davem@davemloft.net>
39895
39896 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39897 support for R_SPARC_OLO10 relocations. Fix compile warning for
39898 R_SPARC_WDISP30 case.
ea3f72cf 39899 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 39900
761319cf 399012009-04-06 Pavel Roskin <proski@gnu.org>
39902
1007d1f5 39903 * include/grub/misc.h (ARRAY_SIZE): New macro.
39904 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39905 New macro.
39906 * loader/i386/linux.c (allocate_pages): Use free_pages().
39907 (grub_linux_unload): Don't use free_pages().
39908 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39909 wrong index. Treat all other modes as text modes.
39910 (grub_cmd_linux): Initialize vid_mode unconditionally to
39911 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39912
761319cf 39913 * commands/help.c (print_command_help): Use cmd->prio, not
39914 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39915
ea761d40 399162009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 39917
ea761d40 39918 Parttool
39919
39920 * parttool/pcpart.c: new file
39921 * commands/parttool.c: likewise
39922 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39923 (parttool_mod_SOURCES): new variable
39924 (parttool_mod_CFLAGS): likewise
39925 (parttool_mod_LDFLAGS): likewise
39926 (pcpart_mod_SOURCES): likewise
39927 (pcpart_mod_CFLAGS): likewise
39928 (pcpart_mod_LDFLAGS): likewise
7dd4a573 39929 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 39930 and parttool/pcpart.c
39931 * conf/i386-efi.rmk: likewise
39932 * conf/i386-ieee1275.rmk: likewise
39933 * conf/i386-pc.rmk: likewise
39934 * conf/powerpc-ieee1275.rmk: likewise
39935 * conf/sparc64-ieee1275.rmk: likewise
39936 * conf/x86_64-ieee1275.rmk: likewise
39937
05aaebfb 399382009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39939
39940 Support for mtime and further expandability of dir command
39941
39942 * include/grub/lib/datetime.h: moved to ...
7dd4a573 39943 * include/grub/datetime.h: ... moved here and added
05aaebfb 39944 declaration of grub_unixtime2datetime. All users updated
7dd4a573 39945 * include/grub/fs.h: new syntax for dir and mtime functions in
39946 struct grub_fs
05aaebfb 39947 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39948 and GRUB_FSHELP_FLAGS_MASK
39949 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39950 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39951 (grub_ext2_mtime): new function
39952 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39953 (grub_hfsplus_mtime): new function
39954 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39955 (GRUB_UFS_ATTR_FILE): likewise
39956 (GRUB_UFS_ATTR_LNK): likewise
39957 (struct grub_ufs_sblock): new fields mtime
39958 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39959 all users updated
39960 (grub_ufs_dir): mtime support
39961 (grub_ufs_mtime): new function
39962 * fs/affs.c (grub_affs_dir): use new dir syntax
39963 * fs/afs.c (grub_afs_dir): likewise
39964 * fs/cpio.c (grub_cpio_dir): likewise
39965 * fs/fat.c (grub_fat_find_dir): likewise
39966 * fs/hfs.c (grub_hfs_dir): likewise
39967 * fs/iso9660.c (grub_iso9660_dir): likewise
39968 * fs/jfs.c (grub_jfs_dir): likewise
39969 * fs/minix.c (grub_minix_dir): likewise
39970 * fs/ntfs.c (grub_ntfs_dir): likewise
39971 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39972 * fs/sfs.c (grub_sfs_dir): likewise
39973 * fs/xfs.c (grub_xfs_dir): likewise
39974 * util/hostfs.c (grub_hostfs_dir): likewise
39975 * lib/datetime.c: moved to ...
39976 * normal/datetime.c: ... moved here
39977 (grub_unixtime2datetime): new function
39978 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 39979 * normal/completion.c (iterate_dir): use new dir syntax
39980 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 39981 last modification time of a volume
7dd4a573 39982 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 39983 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 39984 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 39985 (normal_mod_SOURCES): likewise
39986 (datetime_mod_SOURCES): Removed lib/datetime.c
39987 * conf/i386-efi.rmk: likewise
7dd4a573 39988 * conf/i386-ieee1275.rmk: likewise
05aaebfb 39989 * conf/i386-pc.rmk: likewise
39990 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 39991 * conf/sparc64-ieee1275.rmk: likewise
39992 * conf/x86_64-efi.rmk: likewise
05aaebfb 39993
8a7e1a14 399942009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39995
39996 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 39997
39998 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 39999 on grub_fat_find_dir
40000 (grub_fat_find_dir): use grub_fat_iterate_dir
40001 (grub_fat_label): likewise
40002
04186a9c 400032009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40004
7dd4a573 40005 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 40006 and command.h
40007 remove extraneous kernel_elf_HEADERS
40008
da4c0bb6 400092009-04-04 Bean <bean123ch@gnail.com>
40010
40011 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40012
40013 * util/misc.c: Likewise.
40014
54ad9555 400152009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40016
40017 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40018 instead of grub_printf.
40019
7a6bf9f2 400202009-04-03 Robert Millan <rmh@aybabtu.com>
40021
40022 * loader/i386/linux.c (grub_linux_setup_video): Fill
40023 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40024 values from `mode info' structure instead of hardcoded
40025 values.
40026
3fcc2083 400272009-04-01 Pavel Roskin <proski@gnu.org>
40028
40029 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40030 unused now.
40031 * genmk.rb: Likewise.
40032 * configure.ac: Likewise.
40033
5ec9740b 400342009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40035
40036 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40037 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40038
5270cec8 400392009-04-01 David S. Miller <davem@davemloft.net>
40040
40041 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 40042 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 40043 (grub_setjmp): Mark with 'returns_twice' attribute.
40044 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40045 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40046 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40047
9c3dd854 400482009-04-01 Robert Millan <rmh@aybabtu.com>
40049
40050 Reapply fix from 2008-07-28 which was accidentally reverted; also
40051 perform the same fix to a similar check in same function.
40052
40053 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40054 with the same number are found, just use issue a warning with
40055 grub_dprintf(), as this error has been reported to be non-fatal.
40056
0d818b7e 400572009-03-31 Pavel Roskin <proski@gnu.org>
40058
40059 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40060 for cross-compilation.
40061
95646d92 400622009-03-30 Robert Millan <rmh@aybabtu.com>
40063
40064 Fix i386-ieee1275 build.
40065
40066 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40067 Remove declaration.
40068
6a003ed1 400692009-03-30 Pavel Roskin <proski@gnu.org>
40070
40071 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40072 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40073 zero-terminated, rely only on the strlen value. Fix comparison
40074 of strings differing in length.
40075
92f33540 400762009-03-30 Robert Millan <rmh@aybabtu.com>
40077
40078 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40079 checking for abi version. Improve error messages on BIOS to notify
40080 user about `linux16' command.
40081
a8c48fd5 400822009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40083
f968172e 40084 Leak fixes
a8c48fd5 40085
f968172e 40086 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40087 in case of collision
40088 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 40089
9c323f09 400902009-03-29 Robert Millan <rmh@aybabtu.com>
40091
40092 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40093 set `vid_mode' accordingly.
40094 (grub_linux_boot): Process `vid_mode' and set video mode.
40095
ae68f423 400962009-03-29 Robert Millan <rmh@aybabtu.com>
40097
40098 * util/grub.d/10_linux.in (linux_entry): New function.
40099 Factorize generation of Linux boot entries.
40100
5709cfc4 401012009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40102
40103 Make the format of Environment Block plain text. The boot loader
40104 part is not tested well yet.
7dd4a573 40105
5709cfc4 40106 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40107 (buffer): Removed.
40108 (envblk): Likewise.
40109 (usage): Remove "info" and "clear". Add "unset". Update the
40110 description of "set", as this does not delete variables any
40111 longer.
40112 (create_envblk_file): Complete rewrite.
40113 (open_envblk_file): Likewise.
40114 (cmd_info): Removed.
40115 (cmd_list): Likewise.
40116 (cmd_set): Likewise.
40117 (cmd_clear): Likewise.
40118 (list_variables): New function.
40119 (write_envblk): Likewise.
40120 (set_variables): Likewise.
40121 (unset_variables): Likewise.
40122 (main): Complete rewrite.
40123
40124 * commands/loadenv.c (buffer): Removed.
40125 (envblk): Likewise.
40126 (open_envblk_file): New function.
40127 (read_envblk_file): Complete rewrite.
40128 (grub_cmd_load_env): Likewise.
40129 (grub_cmd_list_env): Likewise.
40130 (struct blocklist): New struct.
40131 (free_blocklists): New function.
40132 (check_blocklists): Likewise.
40133 (write_blocklists): Likewise.
40134 (grub_cmd_save_env): Complete rewrite.
40135
40136 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40137 a plain text signature.
40138 (GRUB_ENVBLK_MAXLEN): Removed.
40139 (struct grub_envblk): Complete rewrite.
40140 (grub_envblk_find): Removed.
40141 (grub_envblk_insert): Likewise.
40142 (grub_envblk_open): New prototype.
40143 (grub_envblk_set): Likewise.
40144 (grub_envblk_delete): Put const to VALUE.
40145 (grub_envblk_iterate): Put const to NAME and VALUE.
40146 (grub_envblk_close): New prototype.
40147 (grub_envblk_buffer): New inline function.
40148 (grub_envblk_size): Likewise.
40149
40150 * lib/envblk.c: Include grub/mm.h.
40151 (grub_env_find): Removed.
40152 (grub_envblk_open): New function.
40153 (grub_envblk_close): Likewise.
40154 (escaped_value_len): Likewise.
40155 (find_next_line): Likewise.
40156 (grub_envblk_insert): Removed.
40157 (grub_envblk_set): New function.
40158 (grub_envblk_delete): Complete rewrite.
40159 (grub_envblk_iterate): Likewise.
40160
a9368fd3 401612009-03-28 Robert Millan <rmh@aybabtu.com>
40162
40163 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40164 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40165 variables. Use 16-bit loader.
40166 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40167 loader.
40168 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40169 (grub_linux16_boot): ... this. Update all users.
40170 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40171 (grub_linux_boot): ... this. Update all users.
40172
40173 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40174 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40175 commands to `linux16' and `initrd16'.
40176 (GRUB_MOD_FINI(linux)): Rename to ...
40177 (GRUB_MOD_FINI(linux16)): ... this.
40178
e4dd5a7e 401792009-03-24 Pavel Roskin <proski@gnu.org>
40180
40181 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40182 not just for compilation.
40183
c04d6e05 401842009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40185
40186 Move multiboot helper out of kernel
40187
40188 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40189 `loader/i386/multiboot_helper.S'.
40190 * conf/i386-coreboot.rmk: Likewise
40191 * conf/i386-ieee1275.rmk: Likewise
40192
40193 * kern/i386/loader.S: Move multiboot helpers from here...
40194 * loader/i386/multiboot_helper.S: ...moved here
40195 * include/grub/i386/loader.h: Move declarations of multiboot
40196 helpers from here...
40197 * include/grub/i386/multiboot.h: ...moved here
40198 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40199
42a5b3fc 402002009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40201
40202 * kern/env.c (grub_env_context_open): Added an argument to specify
40203 whether a new context inherits exported variables from current
40204 one. This is useful when making a sandbox to interpret a config
40205 file.
40206 All callers updated.
40207
40208 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40209
b28bbc4e 402102009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40211
40212 * kern/env.c (grub_env_context_close): Fix memory leaks.
40213
f04f02e4 402142009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40215
40216 * normal/main.c (grub_normal_execute): Added an argument
40217 BATCH to specify if an interactive interface should be provided
40218 after reading a config file.
40219 All callers updated.
40220 (read_command_list): Prevent being executed twice.
40221 (read_fs_list): Likewise.
40222
42a5b3fc 40223 * include/grub/normal.h (grub_normal_execute): Updated the
40224 prototype.
f04f02e4 40225
41473ac2 402262009-03-22 Pavel Roskin <proski@gno.org>
40227
fbc00b0c 40228 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40229 _start.
40230 * kern/i386/pc/startup.S: Likewise.
40231 * kern/i386/efi/startup.S: Likewise.
40232 * kern/i386/ieee1275/startup.S: Likewise.
40233 * kern/i386/coreboot/startup.S: Likewise.
40234 * kern/x86_64/efi/startup.S: Likewise.
40235
41473ac2 40236 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40237 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40238 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40239
2274cc8f 402402009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40241
40242 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40243
40244 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40245 limit detection.
40246 Use vaddr of correct segment for entry_point.
40247
b1b797cb 402482009-03-21 Bean <bean123ch@gmail.com>
40249
40250 * commands/blocklist.c: Add include file <grub/command.h>, remove
40251 <grub/normal.h> and <grub/arg.h>.
40252 (grub_cmd_blocklist): Use the new command interface.
40253 (GRUB_MOD_INIT): Likewise.
40254 (GRUB_MOD_FINI): Likewise.
40255 * commands/boot.c: Likewise.
40256 * commands/cat.c: Likewise.
40257 * commands/cmp.c: Likewise.
40258 * commands/configfile.c: Likewise.
40259 * commands/crc.c: Likewise.
40260 * commands/echo.c: Likewise.
40261 * commands/halt.c: Likewise.
40262 * commands/handler.c: Likewise.
40263 * commands/hdparm.c: Likewise.
40264 * commands/help.c: Likewise.
40265 * commands/hexdump.c: Likewise.
40266 * commands/loadenv.c: Likewise.
40267 * commands/ls.c: Likewise.
40268 * commands/lsmmap.c: Likewise.
40269 * commands/lspci.c: Likewise.
40270 * commands/loadenv.c: Likewise.
40271 * commands/read.c: Likewise.
40272 * commands/reboot.c: Likewise.
40273 * commands/search.c: Likewise.
40274 * commands/sleep.c: Likewise.
40275 * commands/test.c: Likewise.
40276 * commands/usbtest.c: Likewise.
40277 * commands/videotest.c: Likewise.
40278 * commands/i386/cpuid.c: Likewise.
40279 * commands/i386/pc/halt.c: Likewise.
40280 * commands/i386/pc/play.c: Likewise.
40281 * commands/i386/pc/pxecmd.c: Likewise.
40282 * commands/i386/pc/vbeinfo.c: Likewise.
40283 * commands/i386/pc/vbetest.c: Likewise.
40284 * commands/ieee1275/suspend.c: Likewise.
40285 * disk/loopback.c: Likewise.
40286 * font/font_cmd.c: Likewise.
40287 * hello/hello.c: Likewise.
40288 * loader/efi/appleloader.c: Likewise.
40289 * loader/efi/chainloader.c: Likewise.
40290 * loader/i386/bsd.c: Likewise.
40291 * loader/i386/efi/linux.c: Likewise.
40292 * loader/i386/ieee1275/linux.c: Likewise.
40293 * loader/i386/linux.c: Likewise.
40294 * loader/i386/pc/chainloader.c: Likewise.
40295 * loader/i386/pc/linux.c: Likewise.
40296 * loader/powerpc/ieee1275/linux.c: Likewise.
40297 * loader/multiboot_loader.c: Likewise.
40298 * term/gfxterm.c: Likewise.
40299 * term/i386/pc/serial.c: Likewise.
40300 * term/terminfo.c: Likewise.
40301
40302 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40303 * term/i386/pc/vga.c: Likewise.
40304 * video/readers/jpeg.c: Likewise.
40305 * video/readers/png.c: Likewise.
40306 * video/readers/tga.c: Likewise.
40307
40308 * util/grub-fstest (cmd_loopback): Removed.
40309 (cmd_blocklist): Likewise.
40310 (cmd_ls): Likewise.
40311 (grub_register_command): Likewise.
40312 (grub_unregister_command): Likewise.
40313 (execute_command): Use grub_command_find to locate command and execute
40314 it.
40315
40316 * include/grub/efi/chainloader.h: Removed.
40317 * loader/efi/chainloader_normal.c: Likewise.
40318 * loader/i386/bsd_normal.c: Likewise.
40319 * loader/i386/pc/chainloader_normal.c: Likewise.
40320 * loader/i386/pc/multiboot_normal.c: Likewise.
40321 * loader/linux_normal.c: Likewise.
40322 * loader/multiboot_loader_normal.c: Likewise.
40323 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40324
40325 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40326 and grub_register_command_p1.
40327
40328 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40329 kern/command.c, lib/arg.c and commands/extcmd.c.
40330 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40331 (minicmd_mod_SOURCES): New variable.
40332 (minicmd_mod_CFLAGS): Likewise.
40333 (minicmd_mod_LDFLAGS): Likewise.
40334 (extcmd_mod_SOURCES): Likewise.
40335 (extcmd_mod_CFLAGS): Likewise.
40336 (extcmd_mod_LDFLAGS): Likewise.
40337 (boot_mod_SOURCES): Removed.
40338 (boot_mod_CFLAGS): Likewise.
40339 (boot_mod_LDFLAGS): Likewise.
40340
40341 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40342 kern/corecmd.c.
40343 (kernel_img_HEADERS): Add command.h.
40344 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40345 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40346 and lib/arg.c.
40347 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40348 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40349 remove the corresponding normal mode command.
40350 (normal_mod_SOURCES): Remove normal/arg.c.
40351 * conf/i386-coreboot.rmk: Likewise.
40352 * conf/i386-efi.rmk: Likewise.
40353 * conf/i386-ieee1275.rmk: Likewise.
40354 * conf/powerpc-ieee1275.rmk: Likewise.
40355 * conf/x86_64-efi.rmk: Likewise.
40356
40357 * include/grub/arg.h: Move from here ...
40358 * include/grub/lib/arg.h: ... to here.
40359
40360 * normal/arg.c: Move from here ...
40361 * lib/arg.c: ... to here.
40362
40363 * commands/extcmd.c: New file.
40364 * commands/minicmd.c: Likewise.
40365 * include/grub/command.h: Likewise.
40366 * include/grub/extcmd.h: Likewise.
40367 * kern/command.c: Likewise.
40368 * kern/corecmd.c: Likewise.
40369
40370 * kern/list.c (grub_list_iterate): Return int instead of void.
40371 (grub_list_insert): New function.
40372 (grub_prio_list_insert): Likewise.
40373
40374 * kern/rescue.c (grub_rescue_command): Removed.
40375 (grub_rescue_command_list): Likewise.
40376 (grub_rescue_register_command): Likewise.
40377 (grub_rescue_unregister_command): Likewise.
40378 (grub_rescue_cmd_boot): Move to minicmd.c
40379 (grub_rescue_cmd_help): Likewise.
40380 (grub_rescue_cmd_info): Likewise.
40381 (grub_rescue_cmd_boot): Likewise.
40382 (grub_rescue_cmd_testload): Likewise.
40383 (grub_rescue_cmd_dump): Likewise.
40384 (grub_rescue_cmd_rmmod): Likewise.
40385 (grub_rescue_cmd_lsmod): Likewise.
40386 (grub_rescue_cmd_exit): Likewise.
40387 (grub_rescue_print_devices): Moved to corecmd.c.
40388 (grub_rescue_print_files): Likewise.
40389 (grub_rescue_cmd_ls): Likewise.
40390 (grub_rescue_cmd_insmod): Likewise.
40391 (grub_rescue_cmd_set): Likewise.
40392 (grub_rescue_cmd_unset): Likewise.
7d074e3c 40393 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 40394 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 40395 commands, remove grub_rescue_register_command calls.
b1b797cb 40396
7d074e3c 40397 * normal/command.c (grub_register_command): Removed.
b1b797cb 40398 (grub_unregister_command): Likewise.
40399 (grub_command_find): Likewise.
40400 (grub_iterate_commands): Likewise.
40401 (rescue_command): Likewise.
40402 (export_command): Moved to corecmd.c.
40403 (set_command): Removed.
40404 (unset_command): Likewise.
40405 (insmod_command): Likewise.
40406 (rmmod_command): Likewise.
40407 (lsmod_command): Likewise.
40408 (grub_command_init): Likewise.
40409
40410 * normal/completion.c (iterate_command): Use cmd->prio to check for
40411 active command.
40412 (complete_arguments): Use grub_extcmd_t structure to find options.
40413 (grub_normal_do_completion): Change function grub_iterate_commands to
40414 grub_command_iterate.
40415
40416 * normal/execute.c (grub_script_execute_cmd): No need to parse
40417 argument here.
40418
40419 * normal/main.c (grub_dyncmd_dispatcher): New function.
40420 (read_command_list): Register unload commands as dyncmd.
40421 (grub_cmd_normal): Use new command interface, register rescue,
40422 unregister normal at entry, register normal, unregister rescue at exit.
40423
40424 * include/grub/list.h (grub_list_test_t): New type.
40425 (grub_list_iterate): Return int instead of void.
40426 (grub_list_insert): New function.
40427 (GRUB_AS_NAMED_LIST_P): New macro.
40428 (GRUB_AS_PRIO_LIST): Likewise.
40429 (GRUB_AS_PRIO_LIST_P): Likewise.
40430 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40431 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40432 (grub_prio_list): New structure.
40433 (grub_prio_list_insert): New function.
40434 (grub_prio_list_remove): New inline function.
40435
40436 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40437 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40438 (GRUB_COMMAND_FLAG_MENU): Likewise.
40439 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40440 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40441 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40442 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40443 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40444 (grub_command): Likewise.
40445 (grub_register_command): Likewise.
40446 (grub_command_find): Likewise.
40447 (grub_iterate_commands): Likewise.
40448 (grub_command_init): Likewise.
40449 (grub_arg_parse): Likewise.
40450 (grub_arg_show_help): Likewise.
40451
40452 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40453 (grub_rescue_unregister_command): Likewise.
40454
40455 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40456 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40457 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40458
40459 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40460 grub_rescue_cmd_initrd.
40461 * include/grub/i386/loader.h: Likewise.
40462 * include/grub/x86_64/loader.h: Likewise.
40463
40464 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40465
1f4147aa 404662009-03-21 Bean <bean123ch@gmail.com>
40467
40468 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40469 instead of stat in mingw environment.
40470
40471 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40472
40473 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40474
40475 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40476 AC_CONFIG_LINKS.
40477
2156d5ba 404782009-03-21 Bean <bean123ch@gmail.com>
40479
40480 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40481 out of range error.
40482
177b82ca 404832009-03-18 Michel Dänzer <michel@daenzer.net>
40484
40485 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40486 checking inode flags for EXT4_EXTENTS_FLAG.
40487
14aad807 404882009-03-18 Robert Millan <rmh@aybabtu.com>
40489
40490 * loader/i386/linux.c: Include `<grub/video.h>' and
40491 `<grub/i386/pc/vbe.h>'..
40492 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40493 (grub_linux32_boot): Attempt to configure video settings with
40494 grub_linux_setup_video().
40495 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40496 to avoid grub_console_fini() which would step out of graphical mode
40497 unconditionally.
40498
8cf83a27 404992009-03-14 Robert Millan <rmh@aybabtu.com>
40500
40501 Fix build on powerpc.
40502 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40503
40164e75 405042009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40505
40506 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40507 background image command.
40508
c58bc32a 405092009-03-12 Colin D Bennett <colin@gibibit.com>
40510
40511 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40512 (grub_gfxterm_putchar): Extract pairs of identical calls to
40513 draw_cursor out of conditional blocks.
40514
5415144a 405152009-03-11 Pavel Roskin <proski@gnu.org>
40516
40517 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40518 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40519
6394042e 405202009-03-11 Robert Millan <rmh@aybabtu.com>
40521
40522 * loader/i386/multiboot_elfxx.c
40523 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40524
b7b50e5f 405252009-03-11 Felix Zielcke <fzielcke@z-51.de>
40526
40527 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40528 `kern/handler.c'.
40529
1ca7fc96 405302009-03-11 Robert Millan <rmh@aybabtu.com>
40531
40532 * loader/i386/multiboot.c (code_size): New variable.
40533 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 40534 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 40535 4-byte alignment to MBI and others by increasing
7d074e3c 40536 `boot_loader_name_length' appropriately.
1ca7fc96 40537
40538 * loader/i386/multiboot_elfxx.c
40539 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40540
a83ea1d2 405412009-03-09 Felix Zielcke <fzielcke@z-51.de>
40542
40543 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40544 `fs/ext2.c'.
40545
aa9f3bff 405462009-03-08 Robert Millan <rmh@aybabtu.com>
40547
40548 Make loader/i386/linux.c usable on i386-pc again.
40549
40550 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40551 memory to heap.
40552 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40553 `#error' stanza.
40554
d8b3b60e 405552009-03-07 Bean <bean123ch@gmail.com>
40556
40557 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40558 allocation.
40559
b362c9e9 405602009-03-06 Robert Millan <rmh@aybabtu.com>
40561
40562 Fix display issue on terminals with screen size other than 80x25
40563 (e.g. gfxterm with resolution higher than 640x480).
40564
40565 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 40566 position relative to the center of the terminal instead of relying
b362c9e9 40567 on a hardcoded offset.
40568
9304eef1 405692009-03-04 Robert Millan <rmh@aybabtu.com>
40570
40571 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40572 installed.
40573
40574 * Makefile.in (host_kernel): New variable.
40575 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40576 scripts instead of just the windows one.
40577 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40578
eabc95fb 405792009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 40580
40581 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40582 `kern/handler.c'.
40583 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40584 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40585 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40587 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40588 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40589
ceb1223c 405902009-03-04 Felix Zielcke <fzielcke@z-51.de>
40591
40592 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40593 or if there's no space for the disk label and print the partition number on a
40594 invalid magic.
40595
4910684a 405962009-03-04 Felix Zielcke <fzielcke@z-51.de>
40597
40598 * util/misc.c: Include <time.h>.
40599 (grub_millisleep): New function.
40600
7e9ca17a 406012009-03-04 Bean <bean123ch@gmail.com>
40602
40603 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40604 another option -mno-red-zone.
40605
40606 * commands/handler.c: Change module description.
40607
40608 * kern/handler.c: Add missing space at the end of description line.
40609
40610 * kern/list.c: Likewise.
40611
f501677c 406122009-03-03 Robert Millan <rmh@aybabtu.com>
40613
40614 Move more components to the relocation area, and fix mbi pointer
40615 handling to use the destination rather than the origin (thanks to
40616 Vladimir Serbinenko for spotting).
40617
40618 * loader/i386/multiboot.c (mbi_dest): New variable.
40619 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40620 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40621 relocation area.
40622
9902d047 406232009-03-01 Bean <bean123ch@gmail.com>
40624
50fb7002 40625 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 40626 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40627 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40628 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40629
40630 * loader/i386/efi/linux.c (acpi_guid): New variable.
40631 (acpi_guid): Likewise.
40632 (EBDA_SEG_ADDR): New constant.
40633 (LOW_MEM_ADDR): Likewise.
40634 (FAKE_EBDA_SEG): Likewise.
40635 (fake_bios_data): New function.
40636 (grub_linux_boot): Call fake_bios_data.
40637
71b9f361 406382009-03-01 Bean <bean123ch@gmail.com>
40639
40640 * commands/terminal.c: Removed.
40641
40642 * commands/handler.c: New file.
40643
40644 * include/grub/list.h: Likewise.
40645
40646 * include/grub/handler.h: Likewise.
40647
40648 * kern/list.c: Likewise.
40649
40650 * kern/handler.c: Likewise.
40651
40652 * kern/term.h: Include header file <grub/handler.h>.
40653 (grub_term_input): Move next field to the beginning.
40654 (grub_term_output): Likewise.
40655 (grub_term_input_class): New variable.
40656 (grub_term_output_class): Likewise.
40657 (grub_term_register_input): Changed to inline function.
40658 (grub_term_register_output): Likewise.
40659 (grub_term_unregister_input): Likewise.
40660 (grub_term_unregister_output): Likewise.
40661 (grub_term_set_current_input): Likewise.
40662 (grub_term_set_current_output): Likewise.
40663 (grub_term_get_current_input): Likewise.
40664 (grub_term_get_current_output): Likewise.
40665 (grub_term_iterate_input): Removed.
40666 (grub_term_iterate_output): Likewise.
40667
40668 * kern/term.c (grub_term_list_input): Removed.
40669 (grub_term_list_output): Likewise.
40670 (grub_term_input_class): New variable.
40671 (grub_term_output_class): Likewise.
50fb7002 40672 (grub_cur_term_input): Change variable as macro.
71b9f361 40673 (grub_cur_term_output): Likewise.
40674 (grub_term_register_input): Removed.
40675 (grub_term_register_output): Likewise.
40676 (grub_term_unregister_input): Likewise.
40677 (grub_term_unregister_output): Likewise.
40678 (grub_term_set_current_input): Likewise.
40679 (grub_term_set_current_output): Likewise.
40680 (grub_term_iterate_input): Likewise.
40681 (grub_term_iterate_output): Likewise.
40682 (grub_term_get_current_input): Likewise.
40683 (grub_term_get_current_output): Likewise.
40684
40685 * util/grub-editenv.c: Include header file <grub/handler.h>.
40686 (grub_term_get_current_input): Removed.
40687 (grub_term_get_current_output): Likewise.
40688 (grub_term_input_class): New variable.
50fb7002 40689 (grub_term_output_class): Likewise.
71b9f361 40690
40691 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40692 (grub_term_get_current_output): Likewise.
40693 (grub_term_input_class): New variable.
50fb7002 40694 (grub_term_output_class): Likewise.
71b9f361 40695
40696 * util/grub-probe.c (grub_term_get_current_input): Removed.
40697 (grub_term_get_current_output): Likewise.
40698 (grub_term_input_class): New variable.
50fb7002 40699 (grub_term_output_class): Likewise.
71b9f361 40700
40701 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40702 (grub_term_get_current_output): Likewise.
40703 (grub_term_input_class): New variable.
50fb7002 40704 (grub_term_output_class): Likewise.
71b9f361 40705
40706 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40707 (terminal_mod_SOURCES): Likewise.
40708 (terminal_mod_CFLAGS): Likewise.
40709 (terminal_mod_LDFLAGS): Likewise.
40710
40711 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40712 handler.c.
40713 (kernel_img_SOURCES): Add list.c and handler.c.
40714 (kernel_img_HEADERS): Add list.h and handler.h.
40715
40716 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40717 handler.c.
40718 (kernel_mod_SOURCES): Add list.c and handler.c.
40719 (kernel_mod_HEADERS): Add list.h and handler.h.
40720
40721 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40722 handler.c.
40723 (kernel_elf_SOURCES): Add list.c and handler.c.
40724 (kernel_elf_HEADERS): Add list.h and handler.h.
40725
40726 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40727 handler.c.
40728 (kernel_elf_SOURCES): Add list.c and handler.c.
40729 (kernel_elf_HEADERS): Add list.h and handler.h.
40730
40731 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40732 handler.c.
40733 (kernel_mod_SOURCES): Add list.c and handler.c.
40734 (kernel_mod_HEADERS): Add list.h and handler.h.
40735
40736 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40737 handler.c.
40738 (kernel_elf_SOURCES): Add list.c and handler.c.
40739 (kernel_elf_HEADERS): Add list.h and handler.h.
40740
8a31787f 407412009-02-27 Robert Millan <rmh@aybabtu.com>
40742
40743 Factorize elf32 / elf64 code in Multiboot loader. This will
40744 prevent it from getting out of sync again.
40745
40746 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40747 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40748 grub_multiboot_load_elf64): Move from here ...
40749 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40750 grub_multiboot_load_elf): ... to here (new file).
40751
51cd3dfc 407522009-02-27 Robert Millan <rmh@aybabtu.com>
40753
40754 * util/grub.d/10_linux.in: Rename "single-user mode" to
40755 "recovery mode".
40756
6e8c9c3a 407572009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40758
40759 Don't leak in SCSI code.
40760 * disk/scsi.c (grub_scsi_close): free `scsi'.
40761
4b6bf4f9 407622009-02-27 Robert Millan <rmh@aybabtu.com>
40763
40764 * loader/i386/pc/multiboot.c: Move from here ...
40765 * loader/i386/multiboot.c: ... to here. Update all users.
40766
b9413424 407672009-02-27 Robert Millan <rmh@aybabtu.com>
40768
40769 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40770 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40771
50fb7002 407722009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 40773
40774 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40775 b-tree.
40776
8cc50345 407772009-02-27 Robert Millan <rmh@aybabtu.com>
40778
40779 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40780 `0x' qualifier as 0 when base is specified as parameter).
40781
6e09b8b7 407822009-02-24 Bean <bean123ch@gmail.com>
40783
40784 * configure.ac: Check for -mcmodel=large in x86_64 target.
40785
40786 * include/grub/efi/api.h (efi_call_10): New macro.
40787 (efi_wrap_10): New function.
40788
40789 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40790 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40791 (GRUB_PE32_REL_BASED_LOW): Likewise.
40792 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40793 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40794 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40795 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40796 (GRUB_PE32_REL_BASED_REL): Likewise.
40797 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40798 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40799 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40800
40801 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40802 issue.
40803
40804 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40805 (efi_wrap_10): New function.
40806
40807 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40808
40809 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40810 MB/MBP model (NV chipset).
40811 (devdata_devs): Add devpath_5 to the list.
40812
40813 * load/i386/efi/linux.c (video_base): Remove variable.
40814 (RGB_MASK): New macro.
40815 (RGB_MAGIC): Likewise.
40816 (LINE_MIN): Likewise.
40817 (LINE_MAX): Likewise.
40818 (FBTEST_STEP): Likewise.
40819 (FBTEST_COUNT): Likewise.
40820 (fb_list): New variable.
40821 (grub_find_video_card): Remove function.
40822 (find_framebuf): New function.
40823 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40824 line length.
40825
40826 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40827 problem for x86_64.
40828
74b21bee 408292009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40830
40831 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40832
40833 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40834 coding tool name.
40835
a455f472 408362009-02-22 Robert Millan <rmh@aybabtu.com>
40837
40838 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40839 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40840 in our relocation, instead of using it directly from heap. Also
40841 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40842
6374daf3 408432009-02-21 Robert Millan <rmh@aybabtu.com>
40844
40845 Implement USB keyboard support (based on patch by Marco Gerards)
40846
40847 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40848 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40849 (usb_keyboard_mod_LDFLAGS): New variables.
40850
40851 * term/usb_keyboard.c: New file.
40852
8fa4ea70 408532009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40854
40855 Corrected wrong declaration
40856
40857 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40858
353976ac 408592009-02-14 Christian Franke <franke@computer.org>
40860
40861 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40862 (grub_lspci_iter): Print class code and programming interface byte.
40863
6aa1169b 408642009-02-14 Christian Franke <franke@computer.org>
40865
40866 * gendistlist.sh: Ignore `.svn' directories.
40867
265372ca 408682009-02-14 Felix Zielcke <fzielcke@z-51.de>
40869
40870 * fs/fat.c: Add 2009 to Copyright line.
40871
9ff516f3 408722009-02-14 Christian Franke <franke@computer.org>
40873
40874 * commands/hdparm.c: New file. Provides `hdparm' command
40875 which sends ATA commands via grub_disk_ata_pass_through ().
40876
40877 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40878
40879 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40880 and <grub/cpu/io.h> to include/grub/ata.h.
40881 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40882 (GRUB_CDROM_SECTOR_SIZE): Remove.
40883 (GRUB_ATA_*): Move to include/grub/ata.h.
40884 (GRUB_ATAPI_*): Likewise.
40885 (enum grub_ata_commands): Likewise.
40886 (enum grub_ata_timeout_milliseconds): Likewise.
40887 (struct grub_ata_device): Likewise.
40888 (grub_ata_regset): Likewise.
40889 (grub_ata_regget): Likewise.
40890 (grub_ata_regset2): Likewise.
40891 (grub_ata_regget2): Likewise.
40892 (grub_ata_check_ready): Likewise.
40893 (grub_ata_wait_not_busy): Remove static, exported in
40894 include/grub/ata.h.
40895 (grub_ata_wait_drq): Likewise.
40896 (grub_ata_pio_read): Likewise.
40897
40898 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40899 function for hdparm.mod.
40900
40901 * include/grub/ata.h: New file, contains declarations from
40902 disk/ata.c.
40903 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40904
40905 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40906 (grub_disk_ata_pass_through): New exported variable.
40907
40908 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40909
772e23da 409102009-02-13 Colin D Bennett <colin@gibibit.com>
40911
40912 Support multiple fallback entries, and provide an API to support
40913 executing default+fallback menu entries. Renamed the `terminal' menu
40914 viewer to `text'.
40915
40916 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40917 variable declaration.
40918 (grub_menu_execute_callback): New structure declaration.
40919 (grub_menu_execute_callback_t): New typedef.
40920 (grub_menu_execute_with_fallback): New function declaration.
40921 (grub_menu_get_entry): Likewise.
40922 (grub_menu_get_timeout): Likewise.
40923 (grub_menu_set_timeout): Likewise.
40924
40925 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40926
40927 * normal/menu.c (grub_wait_after_message): Moved to
40928 `normal/menu_text.c'.
40929 (draw_border): Likewise.
40930 (print_message): Likewise.
40931 (print_entry): Likewise.
40932 (print_entries): Likewise.
40933 (grub_menu_init_page): Likewise.
40934 (get_entry_number): Likewise.
40935 (print_timeout): Likewise.
40936 (run_menu): Likewise.
40937 (grub_menu_execute_entry): Likewise.
40938 (show_text_menu): Likewise.
40939 (get_and_remove_first_entry_number): New function.
40940 (grub_menu_execute_with_fallback): Likewise.
40941 (get_entry): Renamed to ...
40942 (grub_menu_get_entry): .. this and made it global.
40943 (get_timeout): Renamed to ...
40944 (grub_menu_get_timeout): ... this and made it global.
40945 (set_timeout): Renamed to ...
40946 (grub_menu_set_timeout): ... this and made it global.
40947 (grub_normal_terminal_menu_viewer): Renamed to ...
40948 (grub_normal_text_menu_viewer): ... this.
40949
40950 * normal/menu_text.c: New file. Extracted text-menu-specific code
40951 from normal/menu.c.
40952
40953 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40954 (normal_mod_SOURCES): Likewise.
40955
40956 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40957 (normal_mod_SOURCES): Likewise.
40958
40959 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40960 (normal_mod_SOURCES): Likewise.
40961
40962 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40963 (normal_mod_SOURCES): Likewise.
40964
40965 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40966 (normal_mod_SOURCES): Likewise.
40967
40968 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40969 (normal_mod_SOURCES): Likewise.
40970
40971 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40972 (normal_mod_SOURCES): Likewise.
40973
16ac430e 409742009-02-11 Robert Millan <rmh@aybabtu.com>
40975
40976 * util/grub.d/00_header.in: Update old reference to `font' command.
40977
06ff20fc 409782009-02-10 Felix Zielcke <fzielcke@z-51.de>
40979
40980 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40981
40982 Based on patch from Javier Martín.
40983
96da9407 409842009-02-09 Felix Zielcke <fzielcke@z-51.de>
40985
40986 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 40987 to avoid false positives with FAT.
96da9407 40988 (grub_fstest_SOURCES): Likewise.
40989 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40990 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40992 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40993 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40994 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40995
6dca6fe4 409962009-02-09 Felix Zielcke <fzielcke@z-51.de>
40997
06ff20fc 40998 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 40999 bpb.version_specific.fat12_or_fat16.fstype and
41000 bpb.version_specific.fat32.fstype.
41001
2550c62f 410022009-02-08 Robert Millan <rmh@aybabtu.com>
41003
be110b30 41004 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 41005
56978920 410062009-02-08 Robert Millan <rmh@aybabtu.com>
41007
41008 * Makefile.in (host_os, host_cpu): New variables.
41009 (target_os): Remove. Update all users.
41010
d64399b5 410112009-02-08 Marco Gerards <marco@gnu.org>
41012
41013 * Makefile.in (enable_grub_emu_usb): New variable.
41014 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41015 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41016 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41017 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41018 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41019 `usbtest.mod' and `usbms.mod'.
41020 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41021 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41022 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41023 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41024 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41025 variables.
41026
41027 * disk/usbms.c: New file.
41028
41029 * include/grub/usb.h: Likewise.
41030
41031 * include/grub/usbtrans.h: Likewise.
41032
41033 * include/grub/usbdesc.h: Likewise.
41034
41035 * bus/usb/usbtrans.c: Likewise.
41036
41037 * bus/usb/ohci.c: Likewise.
41038
41039 * bus/usb/uhci.c: Likewise.
41040
41041 * bus/usb/usbhub.c: Likewise.
41042
41043 * bus/usb/usb.c: Likewise.
41044
41045 * commands/usbtest.c: Likewise.
41046
41047 * util/usb.c: Likewise.
50fb7002 41048
d64399b5 41049 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41050
41051 * configure.ac: Test for libusb presence.
50fb7002 41052
d64399b5 41053 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41054
2b40d6bb 410552009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41056
41057 * kern/mm.c: Add more comments.
41058
73a4ce81 410592009-02-08 Robert Millan <rmh@aybabtu.com>
41060
41061 Patch from Javier Martín.
41062 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41063 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41064
f821ce59 410652009-02-08 Robert Millan <rmh@aybabtu.com>
41066
41067 * fs/cpio.c: Split tar functionality to ...
41068 * fs/tar.c: ... here (new file). Update all users.
41069
aebfc4b0 410702009-02-07 Robert Millan <rmh@aybabtu.com>
41071
41072 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41073 backward-incompatible features.
41074
41075 Based on patch from Javier Martín, with some adjustments.
41076
50fb7002 410772009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 41078
41079 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41080
0bb5115e 410812009-02-07 Robert Millan <rmh@aybabtu.com>
41082
41083 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41084 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41085 after the RAID stuff.
41086
38a0f8e7 410872009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41088
50fb7002 41089 Fixes problem when running vbetest command as reported by
38a0f8e7 41090 Vladimir Serbinenko <phcoder@gmail.com>.
41091
41092 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41093
3143cc1c 410942009-02-04 Felix Zielcke <fzielcke@z-51.de>
41095
41096 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41097 /dev/md/NpN style mdraid devices.
41098
9cba6fce 410992009-02-03 Felix Zielcke <fzielcke@z-51.de>
41100
41101 * util/unifont2pff.rb: Remove.
41102
e507a2c1 411032009-02-03 Felix Zielcke <fzielcke@z-51.de>
41104
41105 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41106 `#'.
41107
d2c2b4cd 411082009-02-03 Felix Zielcke <fzielcke@z-51.de>
41109
41110 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41111 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41112 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41113 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41115 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41116 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41117
b4315fb0 411182009-02-02 Christian Franke <franke@computer.org>
41119
41120 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41121
de3aa260 411222009-02-01 Felix Zielcke <fzielcke@z-51.de>
41123
7c3ff286 41124 * INSTALL: Note that we now require at least autoconf 2.59 and
41125 that LZO is optional.
de3aa260 41126
825a182b 411272009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41128
41129 Base on patch on bug #24154 created by Tomas Tintera
41130 <trosos@seznam.cz>.
41131
41132 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41133
a69ef770 411342009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41135
7c3ff286 41136 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 41137 <bero@arklinux.org>.
41138
41139 * normal/parser.y (script_init): Add missing semicolon.
41140
6fa42fa6 411412009-01-31 Colin D Bennett <colin@gibibit.com>
41142
7c3ff286 41143 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 41144 (free_menu_entry_classes): Added.
41145 (grub_normal_menu_addentry): Added class property handling.
41146 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41147 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41148
41149 * normal/menu_viewer.c: New file.
41150
41151 * normal/menu.c (run_menu_entry): Renamed to ...
41152 (grub_menu_execute_entry): ... this and made it as global.
41153 (grub_menu_run): Renamed to ...
41154 (show_text_menu): ... this and made it local.
41155 (show_text_menu): Adapt to new function names.
41156 (grub_normal_terminal_menu_viewer): New global variable.
41157
41158 * include/grub/menu.h: New file.
41159
41160 * include/grub/menu_viewer.h: New file.
41161
41162 * include/grub/normal.h: Added include to grub/menu.h.
41163 (grub_menu_entry): Moved to include/grub/menu.h.
41164 (grub_menu_entry_t): Likewise.
41165 (grub_menu): Likewise.
41166 (grub_menu_t): Likewise.
41167 (grub_normal_terminal_menu_viewer): Added.
41168 (grub_menu_execute_entry): Likewise.
41169 (grub_menu_run): Removed.
41170
41171 * DISTLIST: Added include/grub/menu.h.
41172 Added include/grub/menu_viewer.h.
41173 Added normal/menu_viewer.c.
41174
411752009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41176
41177 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41178 arglist for menutitle arguments.
41179
41180 * normal/main.c (grub_normal_menu_addentry): Likewise.
41181
41182 * normal/parser.y (menuentry): Likewise.
41183
41184 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41185
41186 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41187 (grub_script_create_cmdmenu): Likewise.
41188
41189 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41190
41191 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41192 changes.
41193
41194 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41195
41196 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41197
41198 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41199
41200 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41201
41202 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41203
41204 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41205
56192c23 412062009-01-30 Christian Franke <franke@computer.org>
41207
41208 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41209 in option help text.
41210
d72521b3 412112009-01-27 Pavel Roskin <proski@gnu.org>
41212
41213 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41214
994b5e84 412152009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41216
41217 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41218
41219 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41220
41221 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41222 unregister function.
41223
6a7eab2c 412242009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41225
41226 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41227
41228 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41229
41230 * util/grub-mkfont.c (usage): Fix typo.
41231
41232 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41233
1806b56e 412342009-01-26 Daniel Mierswa <impulze@impulze.org>
41235
3fb18f09 41236 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41237
336e1fb9 41238 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41239
1806b56e 41240 * kern/misc.c (grub_strcasecmp): New function.
41241 (grub_strcasecmp): Use grub_size_t instead of int for length.
41242 Fix return value.
41243 * include/grub/misc.h: Update function prototypes.
41244
580b2a0f 412452009-01-26 Robert Millan <rmh@aybabtu.com>
41246
41247 * configure.ac: Fix cross-compilation check.
ef257b36 41248
d31c24f1 412492009-01-22 Christian Franke <franke@computer.org>
41250
41251 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41252 (precision) digit string. Allow `.format2' without `format1' (width).
41253 Limit input chars for `%s' output to `format2' if specified. This is
41254 compatible with standard printf ().
41255
3138b44c 412562009-01-22 Christian Franke <franke@computer.org>
41257
41258 * disk/ata.c (grub_ata_wait_status): Replace by ...
41259 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41260 other status bits may be invalid while BSY is asserted.
41261 (grub_ata_check_ready): New function.
41262 (grub_ata_cmd): Removed.
41263 (grub_ata_wait_drq): New function.
41264 (grub_ata_strncpy): Remove inline.
41265 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41266 and error check now done by grub_ata_wait_drq ().
41267 (grub_ata_pio_write): Likewise.
41268 (grub_atapi_identify): Set DEV before check for !BSY. Use
41269 grub_ata_wait_drq () to wait for data.
41270 (grub_ata_device_initialize): Add status register check to
41271 detect missing SATA slave devices. Add debug messages.
41272 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41273 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41274 transfer loop by grub_ata_pio_write ().
41275 (grub_ata_identify): Set DEV before check for !BSY. Use
41276 grub_ata_wait_drq () to wait for data.
ef257b36 41277 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 41278 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41279 read/write in one loop. Fix invalid command on write. Fix incomplete
41280 command on (size % batch) == 0. Add missing error check after write of
41281 last block. Add debug messages.
41282 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41283
59a64ef6 412842009-01-19 Christian Franke <franke@computer.org>
41285
41286 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41287 (GRUB_ATAPI_IREASON_*): Likewise.
41288 (grub_ata_pio_write): Fix timeout error return.
41289 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41290 (grub_atapi_wait_drq): New function.
41291 (grub_atapi_packet): New parameter `size'.
41292 Use grub_atapi_wait_drq () and direct write instead of
41293 grub_ata_pio_write ().
41294 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41295 reads the number of bytes requested by the device for each DRQ
41296 assertion.
41297 (grub_atapi_write): Remove old implementation, return not
41298 implemented instead.
41299
1cfe20b3 413002009-01-19 Christian Franke <franke@computer.org>
41301
41302 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41303 of 512 to calculate data size.
41304 (grub_scsi_read12): Likewise.
41305 (grub_scsi_write10): Likewise.
41306 (grub_scsi_write12): Likewise.
41307 (grub_scsi_read): Adjust size according to blocksize.
41308 Add checks for invalid blocksize and unaligned transfer.
41309
bee5fe5d 413102009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41311
41312 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41313
ef257b36 41314 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 41315 width glyphs.
41316
3e643f8c 413172009-01-19 Robert Millan <rmh@aybabtu.com>
41318
41319 * config.guess: Update to latest version from config git.
41320 * config.sub: Likewise.
41321
4fa80998 413222009-01-17 Felix Zielcke <fzielcke@z-51.de>
41323
41324 * Makefile.in: Change font compilation to use new grub-mkfont instead
41325 of java version.
41326
41327 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41328 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41329 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41330 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41331 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41332 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41333 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41334 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41335 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41336
7086085b 413372009-01-16 Christian Franke <franke@computer.org>
41338
41339 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41340 (enum grub_ata_timeout_milliseconds): New enum.
41341 (grub_ata_wait_status): Add parameter milliseconds.
41342 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41343 recovery from timed-out commands.
41344 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41345 return grub_errno instead of REG_ERROR.
41346 (grub_ata_pio_write): Add parameter milliseconds.
41347 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41348 Pass milliseconds to grub_ata_wait_status () and
41349 grub_ata_pio_read ().
41350 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41351 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41352 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41353 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41354 It is not suitable for device detection, because DEV bit is ignored,
41355 the command may run too long, and not all devices set the signature
41356 properly.
41357 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41358 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41359 Fix device selection, DEV bit must be set first to address the registers
41360 of the correct device.
41361 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41362 grub_ata_pio_read/write ().
41363 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41364 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41365
4a412913 413662009-01-13 Carles Pina i Estany <carles@pina.cat>
41367
41368 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41369
7795c55e 413702009-01-13 Bean <bean123ch@gmail.com>
d913988c 41371
41372 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41373
7795c55e 413742009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 41375
41376 * Makefile.in: (enable_grub_mkfont): New variable.
41377 (freetype_cflags): Likewise.
41378 (freetype_libs): Likewise.
41379
41380 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41381 (grub_mkfont_SOURCES): New variable.
41382 (grub_mkfont_CFLAGS): Likewise.
41383 (grub_mkfont_LDFLAGS): Likewise.
41384
41385 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41386 library if `--enable-grub-mkfont' is requested.
41387 (enable_grub_mkfont): New variable.
41388 (freetype_cflags): Likewise.
41389 (freetype_libs): Likewise.
41390
41391 * util/grub-mkfont.c: New file.
41392
093af1fe 413932009-01-12 Christian Franke <franke@computer.org>
41394
41395 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41396 mode check. Fix setting of compat_use[].
41397
f36cc108 413982009-01-10 Robert Millan <rmh@aybabtu.com>
41399
41400 Update a few copyright years which we forgot to do in 2008 (only for
41401 files whose changes made in 2008 were copyright-significant)
41402
41403 * Makefile.in: Add 2008 to Copyright line.
41404 * disk/ieee1275/ofdisk.c: Likewise.
41405 * disk/efi/efidisk.c: Likewise.
41406 * kern/dl.c: Likewise.
41407 * kern/sparc64/ieee1275/init.c: Likewise.
41408 * kern/mm.c: Likewise.
41409 * kern/efi/mm.c: Likewise.
41410 * boot/i386/pc/boot.S: Likewise.
41411 * genfslist.sh: Likewise.
41412 * fs/iso9660.c: Likewise.
41413 * fs/hfs.c: Likewise.
41414 * fs/jfs.c: Likewise.
41415 * fs/minix.c: Likewise.
41416 * fs/ufs.c: Likewise.
41417 * gensymlist.sh.in: Likewise.
41418 * genkernsyms.sh.in: Likewise.
41419 * include/grub/misc.h: Likewise.
41420 * include/grub/types.h: Likewise.
41421 * include/grub/symbol.h: Likewise.
41422 * include/grub/elf.h: Likewise.
41423 * include/grub/kernel.h: Likewise.
41424 * include/grub/disk.h: Likewise.
41425 * include/grub/dl.h: Likewise.
41426 * include/grub/i386/linux.h: Likewise.
41427 * include/grub/i386/pc/biosdisk.h: Likewise.
41428 * include/grub/efi/api.h: Likewise.
41429 * include/grub/efi/pe32.h: Likewise.
41430 * include/grub/util/misc.h: Likewise.
41431 * normal/execute.c: Likewise.
41432 * normal/arg.c: Likewise.
41433 * normal/completion.c: Likewise.
41434 * normal/lexer.c: Likewise.
41435 * normal/parser.y: Likewise.
41436 * normal/misc.c: Likewise.
41437 * commands/i386/pc/vbeinfo.c: Likewise.
41438 * commands/hexdump.c: Likewise.
41439 * commands/terminal.c: Likewise.
41440 * commands/ls.c: Likewise.
41441 * commands/help.c: Likewise.
41442 * partmap/pc.c: Likewise.
41443 * loader/efi/chainloader.c: Likewise.
41444 * loader/multiboot_loader.c: Likewise.
41445 * loader/i386/pc/multiboot2.c: Likewise.
41446 * term/efi/console.c: Likewise.
41447 * term/i386/pc/serial.c: Likewise.
41448 * util/lvm.c: Likewise.
41449 * util/console.c: Likewise.
41450 * util/i386/efi/grub-mkimage.c: Likewise.
41451 * util/raid.c: Likewise.
41452
7f02114b 414532009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41454
41455 * commands/videotest.c: Removed include to grub/machine/memory.h.
41456
41457 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41458 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41459 (video_mod_SOURCES): Removed.
41460 (video_mod_CFLAGS): Likewise.
41461 (video_mod_LDFLAGS): Likewise.
41462 (gfxterm_mod_SOURCES): Likewise.
41463 (gfxterm_mod_CFLAGS): Likewise.
41464 (gfxterm_mod_LDFLAGS): Likewise.
41465 (videotest_mod_SOURCES): Likewise.
41466 (videotest_mod_CFLAGS): Likewise.
41467 (videotest_mod_LDFLAGS): Likewise.
41468 (bitmap_mod_SOURCES): Likewise.
41469 (bitmap_mod_CFLAGS): Likewise.
41470 (bitmap_mod_LDFLAGS): Likewise.
41471 (tga_mod_SOURCES): Likewise.
41472 (tga_mod_CFLAGS): Likewise.
41473 (tga_mod_LDFLAGS): Likewise.
41474 (jpeg_mod_SOURCES): Likewise.
41475 (jpeg_mod_CFLAGS): Likewise.
41476 (jpeg_mod_LDFLAGS): Likewise.
41477 (png_mod_SOURCES): Likewise.
41478 (png_mod_CFLAGS): Likewise.
41479 (png_mod_LDFLAGS): Likewise.
41480
41481 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41482 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41483 (video_mod_SOURCES): Added.
41484 (video_mod_CFLAGS): Likewise.
41485 (video_mod_LDFLAGS): Likewise.
41486 (videotest_mod_SOURCES): Likewise.
41487 (videotest_mod_CFLAGS): Likewise.
41488 (videotest_mod_LDFLAGS): Likewise.
41489 (bitmap_mod_SOURCES): Likewise.
41490 (bitmap_mod_CFLAGS): Likewise.
41491 (bitmap_mod_LDFLAGS): Likewise.
41492 (tga_mod_SOURCES): Likewise.
41493 (tga_mod_CFLAGS): Likewise.
41494 (tga_mod_LDFLAGS): Likewise.
41495 (jpeg_mod_SOURCES): Likewise.
41496 (jpeg_mod_CFLAGS): Likewise.
41497 (jpeg_mod_LDFLAGS): Likewise.
41498 (png_mod_SOURCES): Likewise.
41499 (png_mod_CFLAGS): Likewise.
41500 (png_mod_LDFLAGS): Likewise.
41501 (gfxterm_mod_SOURCES): Likewise.
41502 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 41503 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 41504
41505 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41506 grub/machine/console.h.
41507
644fff97 415082009-01-04 Jerone Young <jerone@gmail.com>
41509
41510 Make on screen instructions clearer
41511
41512 Based on patch created by Jidanni <jidanni@jidanni.org>
41513
41514 * normal/menu.c: print clearer instructions on the screen
41515
1e901a75 415162009-01-02 Colin D Bennett <colin@gibibit.com>
41517
41518 New font engine.
34c44600 41519
1e901a75 41520 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41521 build system and fixed gfxterm.c to work with different sized fonts.
41522
41523 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 41524
1e901a75 41525 * configure: Re-generated.
34c44600 41526
1e901a75 41527 * DISTLIST: Removed font/manager.c.
41528 Added font/font.c.
41529 Added font/font_cmd.c.
34c44600 41530
1e901a75 41531 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41532 compilation.
34c44600 41533
1e901a75 41534 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 41535
41536 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 41537
41538 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 41539
1e901a75 41540 * normal/menu.c: Likewise.
34c44600 41541
1e901a75 41542 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41543 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 41544
1e901a75 41545 * include/grub/font.h: Replaced with new file.
34c44600 41546
1e901a75 41547 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41548 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41549 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41550 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41551 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 41552 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 41553 fg_red, fg_green, fg_blue, fg_alpha.
41554 (grub_video_adapter): Removed blit_glyph.
34c44600 41555 (grub_video_blit_glyph): Removed.
41556
1e901a75 41557 * font/manager.c: Removed file.
34c44600 41558
41559 * font/font.c: New file.
41560
1e901a75 41561 * font/font_cmd.c: Likewise.
34c44600 41562
1e901a75 41563 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 41564
1e901a75 41565 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41566 (grub_video_vbe_map_rgba): Likewise.
41567 (grub_video_vbe_unmap_color_int): Likewise.
41568 (grub_video_vbe_blit_glyph): Removed.
41569 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 41570
1e901a75 41571 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41572 (get_pixel): Likewise.
34c44600 41573 (set_pixel): Likewise.
41574
1e901a75 41575 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 41576
1e901a75 41577 * term/gfxterm.c: Adapted to new font engine.
34c44600 41578
1e901a75 41579 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 41580
1e901a75 41581 * term/i386/pc/vga.c: Likewise.
34c44600 41582
1e901a75 41583 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 41584
1e901a75 41585 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 41586
1e901a75 41587 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 41588
1e901a75 41589 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 41590
1e901a75 41591 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 41592
1e901a75 41593 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 41594
1e901a75 41595 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 41596
1e901a75 41597 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 41598
1e901a75 41599 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41600
41601 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 41602
1e901a75 41603 * util/grub-mkconfig_lib.in: Changed font extension.
41604
278922e8 416052008-12-28 Felix Zielcke <fzielcke@z-51.de>
41606
41607 * util/getroot.c (grub_util_get_grub_dev): Add support for
41608 /dev/md/dNNpNN style partitionable mdraid devices.
41609
3ced05cf 416102008-12-12 Alex Smith <alex@alex-smith.me.uk>
41611
41612 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41613 at a time limit of the PXE TFTP API correctly.
41614 (grub_pxefs_close): Likewise.
41615
7fd0ee30 416162008-11-29 Robert Millan <rmh@aybabtu.com>
41617
34c44600 41618 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 41619 grub_ata_device_initialize() calls.
41620
34c44600 416212008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 41622
41623 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41624 iteration failed.
41625 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41626
89313780 416272008-11-28 Robert Millan <rmh@aybabtu.com>
41628
41629 Fix build on powerpc-ieee1275. Based on patch created by
41630 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41631 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41632 `kern/ieee1275/mmap.c'.
41633 * include/grub/powerpc/ieee1275/memory.h: New file.
41634
15257703 41635 Provide grub-install on coreboot.
41636 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41637 (grub_install_SOURCES): New variable.
41638 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41639 usable on coreboot.
41640
9fc5388a 416412008-11-25 Felix Zielcke <fzielcke@z-51.de>
41642
41643 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41644 to `grub_term_input_t'.
41645 (grub_term_get_current_output): Change return type to
41646 `grub_term_output_t'.
41647
bc3a2f31 416482008-11-22 Robert Millan <rmh@aybabtu.com>
41649
34c44600 41650 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 41651 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41652 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41653 grub_vga_text_cls().
41654
80fc88f2 41655 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 41656 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 41657
cbf36fd3 41658 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41659 to 0x200000 (avoids trouble with some OFW implementations, and matches
41660 with the one in Yaboot).
41661 Reported by Manoel Abranches
41662
73e8e268 416632008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 41664
41665 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41666 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41667
73e8e268 41668 * util/grub-mkconfig_lib.in (grub_warn): New function.
41669 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41670 warnings, to obtain consistent formatting.
41671 * util/grub.d/00_header.in: Likewise.
41672 * util/update-grub_lib.in: Likewise.
41673
e94045a1 41674 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 41675 Move comment text to `#error' stanza.
e94045a1 41676
79d29fd7 41677 Harmonize ieee1275's grub_available_iterate() with the generic
41678 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41679 build problem on i386-ieee1275):
41680 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41681 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41682 parameter `type'. Update all users of this function.
41683 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41684 `kern/ieee1275/mmap.c'.
41685 * kern/ieee1275/init.c
41686 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41687 with ...
41688 (grub_machine_mmap_iterate): ... this.
41689 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41690 return type to `grub_err_t'. Update all implementations of this
41691 function prototype.
41692 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41693 Likewise.
41694
60d6b16e 41695 Add `lsmmap' command (lists firmware-provided memory map):
41696 * commands/lsmmap.c: New file.
41697 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41698 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41699 variables.
41700 * conf/powerpc-ieee1275.rmk: Likewise.
41701 * conf/i386-coreboot.rmk: Likewise.
41702 * conf/i386-ieee1275.rmk: Likewise.
41703
ebaaf49b 417042008-11-19 Robert Millan <rmh@aybabtu.com>
41705
41706 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 41707 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41708 constraints to initrd allocation (based on code from
41709 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41710 for Linux to find it.
ebaaf49b 41711
dfab719f 417122008-11-14 Robert Millan <rmh@aybabtu.com>
41713
41714 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41715 order to cope with duplicate slashes.
41716
10fc3eb9 417172008-11-14 Robert Millan <rmh@aybabtu.com>
41718
41719 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41720 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41721 don't want to mess with lower memory, because it is used in the Linux
41722 loader.
41723
41724 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 41725 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 41726 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41727 is in our heap (probably as a result of it being corrupted during
2f2a3442 41728 decompression). Add #error instance with comment to explain why this
41729 loader isn't currently usable on PC/BIOS.
10fc3eb9 41730
e2e07847 417312008-11-14 Robert Millan <rmh@aybabtu.com>
41732
41733 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 41734 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 41735
fe8e8d69 417362008-11-12 Robert Millan <rmh@aybabtu.com>
41737
41738 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41739
41740 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41741 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41742 from here ...
41743 * include/grub/i386/pc/memory.h: ... to here.
41744
976b07d0 417452008-11-12 Robert Millan <rmh@aybabtu.com>
41746
41747 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41748 split).
41749
41750 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41751 (grub_console_cur_color, grub_console_real_putchar)
41752 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41753 (grub_console_setcolorstate, grub_console_setcolor)
41754 (grub_console_getcolor): Move from here ...
41755 * include/grub/i386/vga_common.h: ... to here (new file).
41756
41757 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41758 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41759 `<grub/i386/io.h>'.
41760 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41761 `<grub/i386/vga_common.h>'.
41762
76679cd3 417632008-11-12 Robert Millan <rmh@aybabtu.com>
41764
41765 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41766 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41767 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41768 variables.
41769 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41770 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41771
41772 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41773 grub_console_init() with call to grub_vga_text_init().
41774 (grub_machine_fini): Replace call to
41775 grub_console_fini() with call to grub_vga_text_fini() and
41776 grub_at_keyboard_fini().
41777
41778 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41779 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41780 (grub_console_setcolorstate, grub_console_setcolor)
41781 (grub_console_getcolor): New function prototypes.
41782
41783 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41784 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41785 (grub_vga_text_setcursor): Static-ize.
41786 (grub_vga_text_term): New structure.
41787 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41788
41789 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41790 (grub_console_cur_color, grub_console_standard_color)
41791 (grub_console_normal_color, grub_console_highlight_color)
41792 (map_char, grub_console_putchar, grub_console_getcharwidth)
41793 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41794 (grub_console_getcolor): Move from here ...
41795 * term/i386/vga_common.c: ... to here (same function names).
41796
95b841d3 417972008-11-12 Robert Millan <rmh@aybabtu.com>
41798
41799 Use newly-added Multiboot support in coreboot.
41800
41801 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41802 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41803
41804 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41805 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41806 (codestart): Store the MBI in `startup_multiboot_info' when we're
41807 being loaded using Multiboot.
41808
41809 * kern/i386/coreboot/init.c (grub_machine_init): Move
41810 grub_at_keyboard_init() call to beginning of function (useful for
41811 debugging). Call grub_machine_mmap_init() before attempting to use
41812 grub_machine_mmap_iterate().
41813 (grub_lower_mem, grub_upper_mem): Move from here ...
41814 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41815 here (new file).
41816
41817 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41818 function prototype.
41819
761ca975 418202008-11-12 Robert Millan <rmh@aybabtu.com>
41821
41822 Fix a regression introduced by the at_keyboard.mod split. Because
41823 some terminals are default on some platforms and non-default on
41824 others, the first terminal being registered determines which is
41825 going to be default.
41826
41827 * kern/term.c (grub_term_register_input): If this is the first
41828 terminal being registered, set it as the current one.
41829 (grub_term_register_output): Likewise.
41830
41831 * term/efi/console.c (grub_console_init): Do not call
41832 grub_term_set_current_output() or grub_term_set_current_input().
41833 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41834 * term/i386/pc/console.c (grub_console_init): Likewise.
41835 (grub_console_fini): Do not call grub_term_set_current_input()
41836 (but leave grub_term_set_current_output() to restore text mode).
41837
6c529df7 418382008-11-10 Robert Millan <rmh@aybabtu.com>
41839
41840 * util/grub.d/00_header.in: Add backward compatibility check for
41841 versions of terminal.mod that don't understand `terminal_input' or
41842 `terminal_output'.
41843
132e4113 418442008-11-09 Robert Millan <rmh@aybabtu.com>
41845
41846 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41847 `terminal_input' / `terminal_output', not `terminal'.
41848
ac293d50 418492008-11-08 Robert Millan <rmh@aybabtu.com>
41850
41851 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 41852 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 41853
0025933a 418542008-11-08 Robert Millan <rmh@aybabtu.com>
41855
41856 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 41857 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 41858 members. Update all users.
41859 * util/console.c (grub_ncurses_term): Split in ...
41860 (grub_ncurses_term_input): ... this, and ...
41861 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 41862 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 41863
37c86336 418642008-11-08 Robert Millan <rmh@aybabtu.com>
41865
41866 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41867 (PKGDATA): Add $(pkgdata_SRCDIR).
41868 (pkglib_BUILDDIR): New variable.
41869 (pkgdata_SRCDIR): New variable.
41870 (build_env.mk): New target.
41871 (include_DATA): New variable.
41872 (install-local): Install $(include_DATA) files in $(includedir).
41873
b6c15a2d 418742008-11-07 Pavel Roskin <proski@gnu.org>
41875
d99d46f1 41876 * gendistlist.sh: Use C locale for sorting to ensure consistent
41877 output on all systems.
41878
b6c15a2d 41879 * util/grub.d/00_header.in: Remove incorrect space before
41880 "serial".
41881
c32ee8c9 418822008-11-07 Robert Millan <rmh@aybabtu.com>
41883
41884 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41885 per specification.
41886 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41887 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41888 (based on find_multi_boot1_header).
41889 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41890 using find_multi_boot2_header(), and abort if neither Multiboot or
41891 Multiboot headers were found.
41892
651c29b7 418932008-11-07 Robert Millan <rmh@aybabtu.com>
41894
41895 Modularize at_keyboard.mod:
41896
41897 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41898 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41899 (at_keyboard_mod_LDFLAGS): New variables.
41900
41901 Actual terminal split:
41902
41903 * include/grub/term.h (struct grub_term): Split in ...
41904 (struct grub_term_input): ... this, and ...
41905 (struct grub_term_output): ... this. Update all users.
41906 (grub_term_set_current): Split in ...
41907 (grub_term_set_current_input): ... this, and ...
41908 (grub_term_set_current_output): ... this.
41909 (grub_term_get_current): Split in ...
41910 (grub_term_get_current_input): ... this, and ...
41911 (grub_term_get_current_output): ... this.
41912 (grub_term_register): Split in ...
41913 (grub_term_register_input): ... this, and ...
41914 (grub_term_register_output): ... this.
41915 (grub_term_unregister): Split in ...
41916 (grub_term_unregister_input): ... this, and ...
41917 (grub_term_unregister_output): ... this.
41918 (grub_term_iterate): Split in ...
41919 (grub_term_iterate_input): ... this, and ...
41920 (grub_term_iterate_output): ... this.
41921
41922 * kern/term.c (grub_term_list): Split in ...
41923 (grub_term_list_input): ... this, and ...
41924 (grub_term_list_output): ... this. Update all users.
41925 (grub_cur_term): Split in ...
41926 (grub_cur_term_input): ... this, and ...
41927 (grub_cur_term_output): ... this. Update all users.
41928 (grub_term_set_current): Split in ...
41929 (grub_term_set_current_input): ... this, and ...
41930 (grub_term_set_current_output): ... this.
41931 (grub_term_get_current): Split in ...
41932 (grub_term_get_current_input): ... this, and ...
41933 (grub_term_get_current_output): ... this.
41934 (grub_term_register): Split in ...
41935 (grub_term_register_input): ... this, and ...
41936 (grub_term_register_output): ... this.
41937 (grub_term_unregister): Split in ...
41938 (grub_term_unregister_input): ... this, and ...
41939 (grub_term_unregister_output): ... this.
41940 (grub_term_iterate): Split in ...
41941 (grub_term_iterate_input): ... this, and ...
41942 (grub_term_iterate_output): ... this.
41943
41944 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41945 a check for input and one for output (and only attempt to get keys
41946 from user when input works).
41947
41948 * util/grub-probe.c (grub_term_get_current): Split in ...
41949 (grub_term_get_current_input): ... this, and ...
41950 (grub_term_get_current_output): ... this.
41951 * util/grub-fstest.c: Likewise.
41952 * util/i386/pc/grub-setup.c: Likewise.
41953 * util/grub-editenv.c: Likewise.
41954
41955 Portability adjustments:
41956
41957 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41958 `term/i386/pc/at_keyboard.c'.
41959 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41960 grub_keyboard_controller_init() (now handled by terminal .init).
41961 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41962 grub_at_keyboard_init().
41963 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41964 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41965 at_keyboard.mod via input terminal interface).
41966 * include/grub/i386/coreboot/console.h: Convert into a stub for
41967 `<grub/i386/pc/console.h>'.
41968
41969 Migrate full terminals to new API:
41970
41971 * term/efi/console.c (grub_console_term): Split into ...
41972 (grub_console_term_input): ... this, and ...
41973 (grub_console_term_output): ... this. Update all users.
41974 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41975 (grub_ofconsole_init): Split into ...
41976 (grub_ofconsole_init_input): ... this, and ...
41977 (grub_ofconsole_init_output): ... this.
41978 (grub_ofconsole_term): Split into ...
41979 (grub_ofconsole_term_input): ... this, and ...
41980 (grub_ofconsole_term_output): ... this. Update all users.
41981 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41982 (grub_serial_term_input): ... this, and ...
41983 (grub_serial_term_output): ... this. Update all users.
41984 * term/i386/pc/console.c (grub_console_term): Split into ...
41985 (grub_console_term_input): ... this, and ...
41986 (grub_console_term_output): ... this. Update all users.
41987 (grub_console_term_input): Only enable it on PC/BIOS platform.
41988 (grub_console_init): Remove grub_keyboard_controller_init() call.
41989
41990 Migrate input terminals to new API:
41991
41992 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41993 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41994 i386-specific anyway).
41995 (grub_console_checkkey): Rename to ...
41996 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41997 users.
41998 (grub_keyboard_controller_orig): New variable.
41999 (grub_console_getkey): Rename to ...
42000 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42001 users.
42002 (grub_keyboard_controller_init): Static-ize. Save original
42003 controller value so that it can be restored ...
42004 (grub_keyboard_controller_fini): ... here (new function).
42005 (grub_at_keyboard_term): New structure.
42006 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42007 functions.
42008
42009 Migrate output terminals to new API:
42010
42011 * term/i386/pc/vga.c (grub_vga_term): Change type to
42012 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42013 members. Update all users.
42014 * term/gfxterm.c (grub_video_term): Change type to
42015 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42016 members. Update all users.
42017 * include/grub/i386/pc/console.h (grub_console_checkkey)
42018 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42019 etc).
42020
42021 Migrate `terminal' command and userland tools to new API:
42022
42023 * commands/terminal.c (grub_cmd_terminal): Split into ...
42024 (grub_cmd_terminal_input): ... this, and ...
42025 (grub_cmd_terminal_output): ... this.
42026 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42027 `terminal_input' and `terminal_output'.
42028 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42029 `terminal_input' / `terminal_output' API.
42030 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42031 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42032 provided ${GRUB_TERMINAL}, convert it).
42033
96e5d876 420342008-11-04 Robert Millan <rmh@aybabtu.com>
42035
42036 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42037 for FreeBSD.
42038 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42039
556f3775 420402008-11-03 Bean <bean123ch@gmail.com>
42041
42042 * kern/elf.c (grub_elf32_load): Revert to previous code.
42043 (grub_elf64_load): Likewise.
42044
42045 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42046
926b9823 420472008-11-01 Robert Millan <rmh@aybabtu.com>
42048
42049 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42050 (TARGET_CPPFLAGS): Likewise.
42051 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42052
1432e958 420532008-11-01 Carles Pina i Estany <carles@pina.cat>
42054
42055 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42056
dba3f844 420572008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 42058
42059 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42060 addition of objects until the code is not going to be able to fail.
42061
dba3f844 420622008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 42063
42064 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42065 (add a missing NULL check, and correct them by moving the pointer
42066 operations after the actual check).
42067
7ab28c21 420682008-10-29 Robert Millan <rmh@aybabtu.com>
42069
42070 * util/i386/pc/grub-install.in: Handle empty string as output from
42071 make_system_path_relative_to_its_root().
42072
1b7748eb 420732008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42074
42075 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42076 circular metadata worst case scenario. If the metadata is circular
42077 then copy the wrap in place.
42078 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42079 project lib/format_text/layout.h
42080 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42081
c9618ab2 420822008-10-03 Felix Zielcke <fzielcke@z-51.de>
42083
7a36edca 42084 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 42085
bf981c62 420862008-10-03 Felix Zielcke <fzielcke@z-51.de>
42087
42088 * util/update-grub_lib.in: Mention filename in warning message.
42089
6d994591 420902008-09-29 Felix Zielcke <fzielcke@z-51.de>
42091
42092 * NEWS: Update for rename of update-grub to grub-mkconfig.
42093
18ade780 420942008-09-29 Felix Zielcke <fzielcke@z-51.de>
42095
42096 * util/update-grub_lib.in: Copy to ...
42097 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 42098 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 42099 * util/update-grub.in: Rename to ...
42100 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42101 option. Add `--output' option to allow users to specify the generated
42102 configuration file. Default to stdout.
42103 (update_grub_dir): Rename to ...
42104 (grub_mkconfig_dir): ... this.
42105 (grub_cfg): Default to an empty string.
42106 * conf/common.rmk (update-grub): Rename to ...
42107 (grub-mkconfig): ... this.
42108 (update-grub_lib): Copy to ...
42109 (grub-mkconfig_lib): ... this.
42110 (update-grub_SCRIPTS): Copy to ...
42111 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42112 (update-grub_DATA): Rename to ...
42113 (grub-mkconfig_DATA): ... this.
42114
556ce6ac 421152008-09-28 Robert Millan <rmh@aybabtu.com>
42116
42117 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42118 to `modified'. Add the real `created' field.
42119 (grub_iso9660_uuid): Use `modified' rather than `created' for
42120 constructing the UUID.
42121
421222008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 42123
42124 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42125 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42126
92274e85 421272008-09-28 Bean <bean123ch@gmail.com>
42128
42129 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42130 Thanks to Christian Franke for finding this bug.
42131
add6f17a 421322008-09-25 Robert Millan <rmh@aybabtu.com>
42133
42134 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42135 instances of grub_util_get_disk_name() (see previous commit).
42136
d2a367b8 421372008-09-25 Robert Millan <rmh@aybabtu.com>
42138
42139 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42140 `util/i386/get_disk_name.c'.
42141 * conf/i386-efi.rmk: Likewise.
42142 * conf/x86_64-efi.rmk: Likewise.
42143 * conf/i386-coreboot.rmk: Likewise.
42144 * conf/i386-ieee1275.rmk: Likewise.
42145 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42146 `util/ieee1275/get_disk_name.c'.
42147 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42148 * util/ieee1275/get_disk_name.c: Remove file.
42149 * util/i386/get_disk_name.c: Remove file.
42150 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42151 "hd%d" for device.map entries, rather than using
42152 grub_util_get_disk_name().
42153
81a06771 421542008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 42155
42156 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42157 warning.
42158 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42159
5a004279 421602008-09-24 Carles Pina i Estany <carles@pina.cat>
42161
42162 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42163 Changed to 0x5100.
42164 (GRUB_TERM_PPAGE): Changed to 0x4900.
42165
397093d3 421662008-09-24 Robert Millan <rmh@aybabtu.com>
42167
42168 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42169 macros (they were i386-pc specific).
42170 * include/grub/sparc64/ieee1275/console.h: Likewise.
42171 * include/grub/efi/console.h: Likewise.
42172
a91b6c7c 421732008-09-22 Bean <bean123ch@gmail.com>
42174
42175 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42176 resident and in attribute list.
42177
42178 * include/grub/ntfs.h (BMP_LEN): Removed.
42179
c40fd116 421802008-09-22 Bean <bean123ch@gmail.com>
42181
81a06771 42182 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 42183 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42184
42185 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42186 error occurs, as grub_disk_open will call grub_disk_close, which will
42187 call p->close (scsi).
42188
81a06771 421892008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 42190
42191 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42192 (AC_PREREQ): Bumped to 2.59.
42193 (AC_TRY_COMPILE): Replace obsolete macro with ...
42194 (AC_COMPILE_IFELSE): ... this.
42195 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42196 (AC_LINK_IFELSE): ... this.
42197
5dc43410 421982008-09-21 Felix Zielcke <fzielcke@z-51.de>
42199
42200 * autogen.sh: Add a call to `gendistlist.sh'.
42201
9035dce4 422022008-09-19 Christian Franke <franke@computer.org>
42203
42204 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42205 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42206 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42207 Export __enable_execute_stack() to modules.
42208 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42209 New function.
42210
7fd75377 422112008-09-09 Felix Zielcke <fzielcke@z-51.de>
42212
040030b3 42213 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42214 Sort the list.
42215
422162008-09-09 Felix Zielcke <fzielcke@z-51.de>
42217
42218 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 42219 #include <grub/util/hostdisk.h>.
42220
89d5ffcf 422212008-09-08 Robert Millan <rmh@aybabtu.com>
42222
42223 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42224 segments when their filesz is zero (grub_file_read() interprets
81a06771 42225 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 42226 Use `lowest_segment' rather than 0 for calculating the current
42227 segment load address.
42228
40da438f 422292008-09-08 Robert Millan <rmh@aybabtu.com>
42230
42231 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42232 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42233 clobbered useful information.
42234
ddbf5556 422352008-09-08 Robert Millan <rmh@aybabtu.com>
42236
42237 * include/grub/util/biosdisk.h: Move to ...
42238 * include/grub/util/hostdisk.h: ... here. Update all users.
42239 * util/biosdisk.c: Move to ...
42240 * util/hostdisk.c: ... here. Update all users.
42241
783d0f48 422422008-09-07 Robert Millan <rmh@aybabtu.com>
42243
42244 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42245 variables.
42246 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42247 and length can be stored directly in the `mbi->mmap_addr' and
42248 `mbi->mmap_length' struct fields.
42249
548e2ea5 422502008-09-07 Robert Millan <rmh@aybabtu.com>
42251
42252 * conf/i386.rmk: New file. Provides declaration for building
42253 `cpuid.mod'.
42254 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42255 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42256 variables.
42257 Include `conf/i386.mk'.
42258 * conf/i386-efi.rmk: Likewise.
42259 * conf/x86_64-efi.rmk: Likewise.
42260 * conf/i386-coreboot.rmk: Likewise.
42261 * conf/i386-ieee1275.rmk: Likewise.
42262
0ea85a37 422632008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42264
42265 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42266 Adds optimization support for BGR based modes.
42267
42268 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42269 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42270 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42271 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42272 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42273 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42274 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42275 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42276 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42277 (grub_video_i386_vbeblit_index_index): Likewise.
42278 (grub_video_i386_vbeblit_replace_directN): Added.
42279 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42280 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42281 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42282 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42283 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42284 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 42285 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 42286 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42287 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42288 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42289 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42290 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42291 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42292
42293 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42294 (grub_video_i386_vbefill_R8G8B8): Likewise.
42295 (grub_video_i386_vbefill_index): Likewise.
42296 (grub_video_i386_vbefill_direct32): Added.
42297 (grub_video_i386_vbefill_direct24): Likewise.
42298 (grub_video_i386_vbefill_direct16): Likewise.
42299 (grub_video_i386_vbefill_direct8): Likewise.
42300
81a06771 42301 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 42302 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42303 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42304 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42305 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42306 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 42307
0ea85a37 42308 * video/video.c (grub_video_get_blit_format): Updated to use new
42309 blit formats. Added handling for 16 bit color modes.
81a06771 42310
42311 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 42312 fillers.
42313 (common_blitter): Updated to use new blitters.
42314
42315 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42316 Removed.
42317 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42318 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42319 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42320 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42321 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42322 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42323 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42324 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42325 (grub_video_i386_vbeblit_index_index): Likewise.
42326 (grub_video_i386_vbeblit_replace_directN): Added.
42327 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42328 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42329 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42330 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42331 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42332 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42333 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42334 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42335 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42336 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42337 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42338 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42339 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 42340
0ea85a37 42341 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42342 (grub_video_i386_vbefill_R8G8B8): Likewise.
42343 (grub_video_i386_vbefill_index): Likewise.
42344 (grub_video_i386_vbefill_direct32): Added.
42345 (grub_video_i386_vbefill_direct24): Likewise.
42346 (grub_video_i386_vbefill_direct16): Likewise.
42347 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 42348
0ea85a37 42349 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42350 types.
81a06771 42351
0ea85a37 42352 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42353 types.
81a06771 42354
0ea85a37 42355 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42356 blitter types.
81a06771 42357
0ea85a37 42358 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42359 types.
42360
e8a83df6 423612008-09-06 Felix Zielcke <fzielcke@z-51.de>
42362
42363 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42364 RAID level 1.
42365
6bcd8ee5 423662008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 42367
6bcd8ee5 42368 * fs/iso9660.c (grub_iso9660_date): New structure.
42369 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42370 (grub_iso9660_uuid): New function.
c375ae58 42371
59261157 423722008-09-05 Bean <bean123ch@gmail.com>
42373
42374 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42375
42376 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42377 insensitive bit for names in Win32 and Win32 & DOS namespace.
42378
42379 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42380
42381 * include/grub/types.h (LONG_MAX): Likewise.
42382
58b6645a 423832008-09-04 Felix Zielcke <fzielcke@z-51.de>
42384
4ee55921 42385 * util/getroot.c: Include <config.h>.
42386 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42387 add support for /dev/md/N devices and handle LVM double dash escaping.
42388
423892008-09-04 Felix Zielcke <fzielcke@z-51.de>
42390
42391 * config.guess: Update to latest version from config git.
42392 * config.sub: Likewise.
58b6645a 42393
9124f65d 423942008-09-03 Robert Millan <rmh@aybabtu.com>
42395
42396 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42397 `disk->total_sectors'.
42398
81a06771 423992008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 42400
42401 * include/grub/normal.h: Fixed incorrect comment for
42402 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42403
81a06771 424042008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 42405
42406 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42407 values with defines.
42408
42409 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42410 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42411 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42412 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42413 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42414 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42415 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42416 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42417 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42418 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42419 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42420 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42421 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42422 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42423 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42424 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42425 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42426 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42427 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42428
93d5cbf8 424292008-08-31 Robert Millan <rmh@aybabtu.com>
42430
42431 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42432 declaration.
42433 (grub_multiboot): Fix a few warnings.
42434
21751d50 424352008-08-31 Robert Millan <rmh@aybabtu.com>
42436
42437 * loader/i386/pc/multiboot.c: Update comment not to say that
42438 boot_device support is unimplemented.
42439
e27a75c5 424402008-08-31 Robert Millan <rmh@aybabtu.com>
42441
42442 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42443 or memory map support are unimplemented.
42444
81a06771 424452008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 42446
42447 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42448
81a06771 424492008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 42450
42451 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42452 total video memory in 'vbeinfo' output; show color format details for
42453 each video mode.
42454
7c5d8d95 424552008-08-30 Pavel Roskin <proski@gnu.org>
42456
42457 * util/genmoddep.c: Remove for real this time.
42458 * DISTLIST: Remove util/genmoddep.c.
42459
4cebd25a 424602008-08-30 Robert Millan <rmh@aybabtu.com>
42461
42462 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42463 as required by Multiboot spec (it was already 4-byte aligned, but
42464 only by chance).
42465
b497a269 424662008-08-29 Pavel Roskin <proski@gnu.org>
42467
e3925185 42468 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42469 * kern/powerpc/ieee1275/startup.S: ... this.
42470 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42471 * DISTLIST: Likewise.
42472
b497a269 42473 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42474 grub/cpu/kernel.h. Add start label for consistency with other
42475 platforms. Add grub_prefix immediately after start. Add jump
42476 to the code after grub_prefix.
42477 * include/grub/powerpc/kernel.h: Provide valid values for
42478 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42479
6e5a42fe 424802008-08-29 Bean <bean123ch@gmail.com>
42481
42482 * configure.ac: Change host_os to cygwin for mingw.
42483 (asprintf): New check for function.
42484
42485 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42486 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42487
42488 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 42489 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 42490 sync, sleep and grub_util_get_disk_size for mingw.
42491
42492 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42493 to get size in mingw.
42494 (open_device): Use flag O_BINARY if it's defined.
42495 (find_root_device): Add dummy code for mingw.
42496
42497 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42498 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42499 (get_scsi_disk_name): Return 0 for mingw.
42500
42501 * util/hostfs.c: #include <grub/util/misc.h>.
42502 (grub_hostfs_open): Use "rb" flag to open file, use
42503 grub_util_get_disk_size to get disk size for mingw.
42504
42505 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42506 (asprintf): New function if HAVE_ASPRINTF is not set.
42507 (sync): New function for mingw.
42508 (sleep): Likewise.
42509 (grub_util_get_disk_size): Likewise.
42510
ab3f2673 425112008-08-28 Pavel Roskin <proski@gnu.org>
42512
42513 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42514 kern/time.c.
42515
1c282483 425162008-08-28 Robert Millan <rmh@aybabtu.com>
42517
42518 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42519
678e849c 425202008-08-28 Robert Millan <rmh@aybabtu.com>
42521
42522 Change find_grub_drive() syntax so it doesn't prevent it from
42523 detecting NULL names as errors.
42524
42525 * util/biosdisk.c (find_grub_drive): Move free slot search code
42526 from here ...
42527 (find_free_slot): ... to here.
42528 (read_device_map): Use find_free_slot() to search for free slots.
42529
965c75ca 425302008-08-27 Marco Gerards <marco@gnu.org>
42531
42532 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42533 (scsi_mod_SOURCES): New variable.
42534 (scsi_mod_CFLAGS): Likewise
42535 (scsi_mod_LDFLAGS): Likewise.
42536
42537 * disk/scsi.c: New file.
42538
42539 * include/grub/scsi.h: Likewise.
42540
42541 * include/grub/scsicmd.h: Likewise.
42542
42543 * disk/ata.c: Include <grub/scsi.h>.
42544 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42545 instead.
42546 (grub_ata_iterate): Skip ATAPI devices.
42547 (grub_ata_open): Only handle ATAPI devices.
42548 (struct grub_atapi_read): Removed.
42549 (grub_atapi_readsector): Likewise.
42550 (grub_ata_read): No longer handle ATAPI devices.
42551 (grub_ata_write): Likewise.
42552 (grub_atapi_iterate): New function.
42553 (grub_atapi_read): Likewise.
42554 (grub_atapi_write): Likewise.
42555 (grub_atapi_open): Likewise.
42556 (grub_atapi_close): Likewise.
42557 (grub_atapi_dev): New variable.
42558 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42559 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42560
42561 * include/grub/disk.h (enum grub_disk_dev_id): Add
42562 `GRUB_DISK_DEVICE_SCSI_ID'.
42563
c07ae501 425642008-08-26 Robert Millan <rmh@aybabtu.com>
42565
42566 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42567 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42568 descriptive.
42569
5ed20adc 425702008-08-23 Bean <bean123ch@gmail.com>
42571
42572 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42573 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42574 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42575 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42576 dm_nv.mod.
42577 (raid5rec_mod_SOURCES): New macro.
42578 (raid5rec_mod_CFLAGS): Likewise.
42579 (raid5rec_mod_LDFLAGS): Likewise.
42580 (raid6rec_mod_SOURCES): Likewise.
42581 (raid6rec_mod_CFLAGS): Likewise.
42582 (raid6rec_mod_LDFLAGS): Likewise.
42583 (mdraid_mod_SOURCES): Likewise.
42584 (mdraid_mod_CFLAGS): Likewise.
42585 (mdraid_mod_LDFLAGS): Likewise.
42586 (dm_nv_mod_SOURCES): Likewise.
42587 (dm_nv_mod_CFLAGS): Likewise.
42588 (dm_nv_mod_LDFLAGS): Likewise.
42589
42590 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42591 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42592 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42593
42594 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42595 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42596
42597 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42598
42599 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42600
42601 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42602
42603 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42604
42605 * disk/raid5_recover.c: New file.
42606
42607 * disk/raid6_recover.c: Likewise.
42608
42609 * disk/mdraid_linux.c: Likewise.
42610
42611 * disk/dmraid_nvidia.c: Likewise.
42612
42613 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42614 ULONG_MAX.
42615
42616 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42617 calculate the size of raid device.
42618 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42619 different layout of raid5.
42620 (grub_raid_scan_device): Remove code specific to mdraid.
42621 (grub_raid_list): New variable.
42622 (free_array): New function.
42623 (grub_raid_register): Likewise.
42624 (grub_raid_unregister): Likewise.
42625 (grub_raid_rescan): Likewise.
42626 (GRUB_MOD_INIT): Don't iterate device here.
42627 (GRUB_MOD_FINI): Use free_array to release resource.
42628
42629 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42630 (grub_raid5_recover_func_t): New function variable type.
42631 (grub_raid6_recover_func_t): Likewise.
42632 (grub_raid5_recover_func): New variable.
42633 (grub_raid6_recover_func): Likewise.
42634 (grub_raid_register): New function.
42635 (grub_raid_unregister): Likewise.
42636 (grub_raid_rescan): Likewise.
42637 (grub_raid_block_xor): Likewise.
42638
42639 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42640 (CMD_CRC): New macro.
42641 (part): Removed.
42642 (read_file): Handle device as well as file.
42643 (cmd_crc): New function.
42644 (fstest): Handle multiple disks.
42645 (options): Remove part, raw and long, add root and diskcount.
42646 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 42647 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 42648 add handling for the new options, support multiple disks.
42649
42650 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42651
29c18915 426522008-08-23 Bean <bean123ch@gmail.com>
42653
42654 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42655
42656 * genfslist.sh: Ignore kernel.mod.
42657
42658 * genpartmaplist.sh: Likewise.
42659
8415f261 426602008-08-23 Robert Millan <rmh@aybabtu.com>
42661
42662 * util/getroot.c (find_root_device): Skip anything that starts with
42663 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42664
d5a7dc5b 426652008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 42666
d5a7dc5b 42667 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42668 * util/grub.d/00_header.in: Allow the administrator to change default
42669 gfxmode via ${GRUB_GFXMODE}.
42670
380cfbb4 426712008-08-21 Felix Zielcke <fzielcke@z-51.de>
42672
42673 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42674
c9baafe7 426752008-08-21 Robert Millan <rmh@aybabtu.com>
42676
42677 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42678 loader.
42679 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42680 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42681
e290bef2 426822008-08-20 Carles Pina i Estany <carles@pina.cat>
42683
42684 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42685 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42686
f9dbfc96 426872008-08-19 Robert Millan <rmh@aybabtu.com>
42688
42689 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42690 (struct grub_virtual_screen): Remove `cursor_color'.
42691 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42692 initialization.
42693 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42694
dd6bd6ab 426952008-08-18 Robert Millan <rmh@aybabtu.com>
42696
42697 Unify (identical) linux_normal.c files.
42698 * loader/i386/efi/linux_normal.c: Move from here ...
42699 * loader/linux_normal.c: ... to here. Update all users.
42700 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42701 * loader/i386/ieee1275/linux_normal.c: Likewise.
42702
7f42f83e 427032008-08-18 Robert Millan <rmh@aybabtu.com>
42704
42705 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42706 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42707 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42708 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42709 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42710 New macros.
42711 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42712 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42713 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42714 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42715 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42716 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42717 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42718 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42719 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42720 portably using grub_getxy().
42721 Replace `-EFI' with `-bzImage' in boot message.
42722
38487ddb 427232008-08-17 Robert Millan <rmh@aybabtu.com>
42724
42725 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42726
deceb3ec 427272008-08-17 Robert Millan <rmh@aybabtu.com>
42728
42729 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42730
42731 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42732 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42733 (grub_machine_mmap_iterate): New function declaration.
42734 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42735 structure.
42736 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42737 macros.
42738
42739 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42740 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42741 Move e820 parsing from here ...
42742 * kern/i386/pc/mmap.c: New file.
42743 (grub_machine_mmap_iterate): ... to here.
42744
42745 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42746 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42747 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42748 (grub_available_iterate): Redeclare to return `void', and redeclare
42749 its hook to use grub_uint64_t as addr and size parameters, and rename
42750 to ...
42751 (grub_machine_mmap_iterate): ... this. Update all users.
42752
42753 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42754 to make it more readable. Rename to ...
42755 (grub_machine_mmap_iterate): ... this.
42756
42757 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42758 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42759 (grub_multiboot): Allocate an extra region after the payload, and fill
42760 it with a Multiboot memory map. Adjust a.out loader to calculate size
42761 with the extra space.
42762 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42763 with the extra space.
42764
f8aa0f43 427652008-08-17 Carles Pina i Estany <carles@pina.cat>
42766
9807deb9 42767 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 42768
605f5bb6 427692008-08-17 Felix Zielcke <fzielcke@z-51.de>
42770
42771 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42772 mdate-sh to the list `find' searches for.
42773 * DISTLIST: Regenerated.
42774
210db6c6 427752008-08-16 Felix Zielcke <fzielcke@z-51.de>
42776
42777 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42778 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 42779 genmoddep.awk, gensymlist.sh.in.
42780 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 42781 * DISTLIST: Regenerated.
48cdbfd4 42782 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 42783
1082b929 427842008-08-16 Robert Millan <rmh@aybabtu.com>
42785
42786 * disk/raid.c (grub_raid_init): Handle/report errors set by
42787 grub_device_iterate().
42788 * disk/lvm.c (grub_lvm_init): Likewise.
42789
42ce5170 427902008-08-15 Bean <bean123ch@gmail.com>
42791
42792 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42793 and datehook.mod.
42794 (datetime_mod_SOURCES): New macro.
42795 (datetime_mod_CFLAGS): Likewise.
42796 (datetime_mod_LDFLAGS): Likewise.
42797 (date_mod_SOURCES): Likewise.
42798 (date_mod_CFLAGS): Likewise.
42799 (date_mod_LDFLAGS): Likewise.
42800 (datehook_mod_SOURCES): Likewise.
42801 (datehook_mod_CFLAGS): Likewise.
42802 (datehook_mod_LDFLAGS): Likewise.
42803
42804 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42805 and datehook.mod.
42806 (datetime_mod_SOURCES): New macro.
42807 (datetime_mod_CFLAGS): Likewise.
42808 (datetime_mod_LDFLAGS): Likewise.
42809 (date_mod_SOURCES): Likewise.
42810 (date_mod_CFLAGS): Likewise.
42811 (date_mod_LDFLAGS): Likewise.
42812 (datehook_mod_SOURCES): Likewise.
42813 (datehook_mod_CFLAGS): Likewise.
42814 (datehook_mod_LDFLAGS): Likewise.
42815
42816 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42817 and datehook.mod.
42818 (datetime_mod_SOURCES): New macro.
42819 (datetime_mod_CFLAGS): Likewise.
42820 (datetime_mod_LDFLAGS): Likewise.
42821 (date_mod_SOURCES): Likewise.
42822 (date_mod_CFLAGS): Likewise.
42823 (date_mod_LDFLAGS): Likewise.
42824 (datehook_mod_SOURCES): Likewise.
42825 (datehook_mod_CFLAGS): Likewise.
42826 (datehook_mod_LDFLAGS): Likewise.
42827
42828 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42829 and datehook.mod.
42830 (datetime_mod_SOURCES): New macro.
42831 (datetime_mod_CFLAGS): Likewise.
42832 (datetime_mod_LDFLAGS): Likewise.
42833 (date_mod_SOURCES): Likewise.
42834 (date_mod_CFLAGS): Likewise.
42835 (date_mod_LDFLAGS): Likewise.
42836 (datehook_mod_SOURCES): Likewise.
42837 (datehook_mod_CFLAGS): Likewise.
42838 (datehook_mod_LDFLAGS): Likewise.
42839
42840 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42841 and datehook.mod.
42842 (datetime_mod_SOURCES): New macro.
42843 (datetime_mod_CFLAGS): Likewise.
42844 (datetime_mod_LDFLAGS): Likewise.
42845 (date_mod_SOURCES): Likewise.
42846 (date_mod_CFLAGS): Likewise.
42847 (date_mod_LDFLAGS): Likewise.
42848 (datehook_mod_SOURCES): Likewise.
42849 (datehook_mod_CFLAGS): Likewise.
42850 (datehook_mod_LDFLAGS): Likewise.
42851
42852 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42853
42854 * commands/date.c: New file.
42855
42856 * hook/datehook.c: Likewise.
42857
42858 * include/grub/lib/datetime.h: Likewise.
42859
42860 * include/grub/i386/cmos.h: Likewise.
42861
42862 * lib/datetime.c: Likewise.
42863
42864 * lib/i386/datetime.c: Likewise.
42865
42866 * lib/efi/datetime.c: Likewise.
42867
0e9242da 428682008-08-14 Robert Millan <rmh@aybabtu.com>
42869
42870 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42871 (grub_mkelfimage_SOURCES): New variable.
42872 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42873
42874 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42875 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42876 * conf/powerpc-ieee1275.rmk: Likewise.
42877 * conf/i386-ieee1275.rmk: Likewise.
42878
42879 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42880 * kern/i386/coreboot/init.c: Likewise.
42881
42882 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42883 with `<grub/cpu/kernel.h>'.
42884 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42885 to ...
42886 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42887 * kern/i386/coreboot/startup.S: Likewise.
42888
42889 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42890 (GRUB_MOD_GAP): Remove.
42891 * include/grub/powerpc/kernel.h: New file.
42892 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42893 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42894 * include/grub/i386/kernel.h: New file.
42895 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42896 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42897 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42898
42899 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42900 `grub-mkelfimage'.
42901 Use --directory when invoking grub_mkimage.
42902
42903 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42904 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42905 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42906 and GRUB_KERNEL_CPU_PREFIX.
42907
b86408f8 429082008-08-14 Felix Zielcke <fzielcke@z-51.de>
42909
d5e619ca 42910 * include/grub/err.h (grub_err_printf): New function prototype.
42911 * util/misc.c (grub_err_printf): New function.
42912 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42913 grub_printf.
42914 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 42915
7161f0e0 429162008-08-13 Robert Millan <rmh@aybabtu.com>
42917
42918 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42919
a1967522 429202008-08-13 Robert Millan <rmh@aybabtu.com>
42921
42922 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42923 boot entry.
42924
371458b5 429252008-08-12 Robert Millan <rmh@aybabtu.com>
42926
42927 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42928 of the relocation code from here ...
42929 (grub_multiboot): ... to here.
42930 (forward_relocator, backward_relocator): Move from here ...
42931 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42932 (grub_multiboot_backward_relocator): ... to here.
42933 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42934 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42935 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42936 (grub_multiboot_forward_relocator_end)
42937 (grub_multiboot_backward_relocator)
42938 (grub_multiboot_backward_relocator_end): New variables.
42939
05f9452b 429402008-08-12 Bean <bean123ch@gmail.com>
42941
42942 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42943
20024ab0 429442008-08-11 Robert Millan <rmh@aybabtu.com>
42945
42946 * kern/i386/linuxbios/startup.S: Move from here ...
42947 * kern/i386/coreboot/startup.S: ... to here.
42948
42949 * kern/i386/linuxbios/init.c: Move from here ...
42950 * kern/i386/coreboot/init.c: ... to here.
42951
42952 * kern/i386/linuxbios/table.c: Move from here ...
42953 * kern/i386/coreboot/mmap.c: ... to here.
42954
42955 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42956
e352e9cd 429572008-08-11 Robert Millan <rmh@aybabtu.com>
42958
42959 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42960 errors. Leave it to the upper layer to handle them.
42961
2d05bc6a 429622008-08-09 Christian Franke <franke@computer.org>
42963
42964 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42965 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42966 Install `grub.d/10_windows' only on Cygwin.
42967 * configure.ac: Add subst of `target_os'.
42968 Check `target_os' also before setting TARGET_OBJ2ELF.
42969 Add `--enable-grub-pe2elf'.
42970
042bd419 429712008-08-08 Robert Millan <rmh@aybabtu.com>
42972
42973 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42974 (grub_last_time): Change type to grub_uint64_t.
42975 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42976 (grub_disk_close): Likewise.
42977
42978 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42979 (run_menu): Migrate code from to using grub_get_time_ms().
42980
42981 * util/misc.c (grub_get_time_ms): New function.
42982
7f280db5 429832008-08-08 Marco Gerards <marco@gnu.org>
42984
42985 * disk/ata.c (grub_ata_regget): Change return type to
42986 `grub_uint8_t'.
42987 (grub_ata_regget2): Likewise.
42988 (grub_ata_wait_status): New function.
42989 (grub_ata_wait_busy): Removed function, updated all users to use
42990 `grub_ata_wait_status'.
42991 (grub_ata_wait_drq): Likewise.
42992 (grub_ata_cmd): New function.
42993 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42994 error handling.
42995 (grub_ata_pio_write): Add error handling.
42996 (grub_atapi_identify): Likewise.
42997 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42998 handling.
42999 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43000 handling. Actually use the detected registers. Reorder the
43001 detection logic such that it is easier to read.
43002 (grub_ata_pciinit): Do not assign the same ID to each controller.
43003 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43004 handling.
43005 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43006
43007 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43008
1fbc5e66 430092008-08-08 Marco Gerards <marco@gnu.org>
43010
43011 * NEWS: Update.
43012
819ce6c0 430132008-08-07 Bean <bean123ch@gmail.com>
43014
43015 * include/grub/x86_64/pci.h: New file.
43016
5c41d44d 430172008-08-07 Christian Franke <franke@computer.org>
43018
43019 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43020 (TIMER2_GATE): Likewise.
43021 (grub_pit_wait): Add enable/disable of the timer2 gate
43022 bit of port 0x61. This fixes a possible infinite loop.
43023
5ebc275d 430242008-08-07 Bean <bean123ch@gmail.com>
43025
43026 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43027 kern/i386/tsc.c and kern/i386/pit.c.
43028
43029 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43030 x86_64 platform.
43031
43032 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43033 <grub/i386/tsc.h>.
43034
43035 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43036
e383b3d0 430372008-08-07 Bean <bean123ch@gmail.com>
43038
43039 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43040
43041 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43042
43043 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43044 multiple inclusion. Add #include <grub/types.h>.
43045
1cbb58ac 430462008-08-06 Christian Franke <franke@computer.org>
43047
43048 * conf/common.rmk: Build and install `10_windows'.
43049 * util/grub.d/10_windows.in: New script.
43050
337f5a1e 430512008-08-06 Pavel Roskin <proski@gnu.org>
43052
43053 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43054
057bc4ac 430552008-08-06 Robert Millan <rmh@aybabtu.com>
43056
43057 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43058 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43059
2b99f123 430602008-08-06 Bean <bean123ch@gmail.com>
43061
43062 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43063 (grub_pxefs_fs_int): Remove dummy definition.
43064 (grub_pxefs_open): Use data->block_size to store the current block
43065 size setting.
43066 (grub_pxefs_read): Use block size stored in data->block_size. As the
43067 value of grub_pxe_blksize can be changed after the file is opened.
43068
9f0234cb 430692008-08-06 Bean <bean123ch@gmail.com>
43070
43071 * fs/i386/pc/pxe.c (curr_file): new variable.
43072 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43073 require the dummy internal file system anymore.
43074 (grub_pxefs_read): Removed.
43075 (grub_pxefs_close): Likewise.
43076 (grub_pxefs_fs_int): Likewise.
43077 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43078 connection when we switch file.
43079 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43080
a55d42e0 430812008-08-06 Robert Millan <rmh@aybabtu.com>
43082
43083 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43084 `halt.mod'.
43085 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43086 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43087
43088 * kern/i386/halt.c: New file.
43089 * kern/i386/reboot.c: Likewise.
43090 * include/grub/i386/reboot.h: Likewise.
43091 * include/grub/i386/halt.h: Likewise.
43092
43093 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43094 Include `<grub/cpu/halt.h>'.
43095 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43096 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43097
43098 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43099 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43100 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43101 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43102 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43103 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43104 from here ...
43105 * include/grub/i386/at_keyboard.h: ... to here.
43106
24371d26 431072008-08-05 Robert Millan <rmh@aybabtu.com>
43108
43109 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43110 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43111 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43112 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43113 `kern/generic/millisleep.c'.
43114
43115 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43116 instead of grub_get_rtc().
43117 (grub_tsc_init): Initialize `tsc_boot_time'.
43118
43119 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43120 (grub_machine_init): Use grub_tsc_init() rather than
43121 installing an RTC-based handler via grub_install_get_time_ms().
43122
43123 * kern/i386/pit.c: New file.
43124 * include/grub/i386/pit.h: Likewise.
43125
9e7007b3 431262008-08-05 Bean <bean123ch@gmail.com>
43127
43128 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43129
43130 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43131 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43132 (pxe_mod_SOURCES): New macro.
43133 (pxe_mod_CFLAGS): Likewise.
43134 (pxe_mod_LDFLAGS): Likewise.
43135 (pxecmd_mod_SOURCES): Likewise.
43136 (pxecmd_mod_CFLAGS): Likewise.
43137 (pxecmd_mod_LDFLAGS): Likewise.
43138
43139 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43140 (grub_pxe_call): Likewise.
43141
43142 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43143
43144 * commands/i386/pc/pxecmd.c: New file.
43145
9f0234cb 43146 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 43147
43148 * include/grub/i386/pc/pxe.h: Likewise.
43149
6977d49f 431502008-08-05 Bean <bean123ch@gmail.com>
43151
43152 * util/console.c (grub_console_cur_color): New variable.
43153 (grub_console_standard_color): Likewise.
43154 (grub_console_normal_color): Likewise.
43155 (grub_console_highlight_color): Likewise.
43156 (color_map): Likewise.
43157 (use_color): Likewise.
43158 (NUM_COLORS): New macro.
43159 (grub_ncurses_setcolorstate): Handle color properly.
43160 (grub_ncurses_setcolor): Don't change color here, just remember the
43161 settings, color will be set in grub_ncurses_setcolorstate.
43162 (grub_ncurses_getcolor): New function.
43163 (grub_ncurses_init): Initialize color pairs.
43164 (grub_ncurses_term): New member grub_ncurses_getcolor.
43165
9c2ff3ee 431662008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 43167
9c2ff3ee 43168 High resolution timer support. Implemented for x86 CPUs using TSC.
43169 Extracted generic grub_millisleep() so it's linked in only as needed.
43170 This requires a Pentium compatible CPU; if the RDTSC instruction is
43171 not supported, then it falls back on the generic grub_get_time_ms()
43172 implementation that uses the machine's RTC.
43173
43174 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43175 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43176 `kern/generic/millisleep.c'.
43177
43178 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43179 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43180
43181 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43182 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43183
43184 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43185
43186 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43187 `kern/generic/millisleep.c'.
43188
43189 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43190
43191 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43192
43193 * kern/generic/rtc_get_time_ms.c: New file.
43194
43195 * kern/generic/millisleep.c: New file.
337f5a1e 43196
9c2ff3ee 43197 * kern/misc.c: Don't include
43198 <kern/time.h> anymore.
43199 (grub_millisleep_generic): Removed.
43200
43201 * commands/sleep.c (grub_interruptible_millisleep): Uses
43202 grub_get_time_ms() instead of grub_get_rtc().
43203
43204 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43205 function.
43206 (grub_cpu_is_cpuid_supported): New inline function.
43207 (grub_cpu_is_tsc_supported): New inline function.
43208 (grub_tsc_init): New function prototype.
43209 (grub_tsc_get_time_ms): New function prototype.
43210
43211 * kern/i386/tsc.c (grub_get_time_ms): New file.
43212
43213 * include/grub/time.h: Include <grub/types.h.
43214 (grub_millisleep_generic): Removed.
43215 (grub_get_time_ms): New prototype.
43216 (grub_install_get_time_ms): New prototype.
43217 (grub_rtc_get_time_ms): New prototype.
43218
43219 * kern/time.c (grub_get_time_ms): New function.
43220 (grub_install_get_time_ms): New function.
43221
43222 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43223 <grub/time.h> anymore.
43224 (grub_millisleep): Removed.
43225 (grub_machine_init): Call grub_tsc_init.
43226
43227 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43228 get_time_ms() implementation.
43229
43230 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43231 (ieee1275_get_time_ms): New function.
43232 (grub_machine_init): Install get_time_ms() implementation.
43233
43234 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43235 (grub_machine_init): Call grub_tsc_init().
43236 (grub_millisleep): Removed.
bf06a93f 43237
9c2ff3ee 43238 * kern/ieee1275/init.c (grub_millisleep): Removed.
43239 (grub_machine_init): Install ieee1275_get_time_ms()
43240 implementation.
43241 (ieee1275_get_time_ms): New function.
43242 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43243 real work.
43244
9ec92aaf 432452008-08-05 Marco Gerards <marco@gnu.org>
43246
43247 * disk/ata.c: Include <grub/pci.h>.
43248 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43249 (grub_ata_initialize): Rewritten.
43250 (grub_ata_device_initialize): New function.
43251
8d23f507 432522008-08-04 Pavel Roskin <proski@gnu.org>
43253
43254 * kern/main.c: Include grub/mm.h.
43255
5e15ee3d 432562008-08-04 Robert Millan <rmh@aybabtu.com>
43257
43258 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43259 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43260 corruption problem).
43261
a9053f8f 432622008-08-04 Robert Millan <rmh@aybabtu.com>
43263
43264 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43265 warnings introduced in my last commit.
43266
dd19c7d7 432672008-08-03 Robert Millan <rmh@aybabtu.com>
43268
43269 Make PCI available on all i386 architectures.
43270
43271 * include/grub/i386/pc/pci.h: Move from here ...
43272 * include/grub/i386/pci.h: ... to here.
43273
43274 * include/grub/i386/pc/pci.h: Remove.
43275 * include/grub/i386/efi/pci.h: Remove.
43276 * include/grub/x86_64/efi/pci.h: Remove.
43277
43278 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43279 `<grub/cpu/pci.h>'.
43280
43281 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43282 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43283 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43284
43285 * conf/i386-ieee1275.rmk: Likewise.
43286
e14a6184 432872008-08-03 Robert Millan <rmh@aybabtu.com>
43288
43289 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43290 (grub_console_setcursor): Make it possible to set cursor off.
43291
52768e37 432922008-08-03 Robert Millan <rmh@aybabtu.com>
43293
43294 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43295 of modules instead of assuming which platform provides what.
43296 * util/update-grub.in: Likewise.
43297
2d52f57f 432982008-08-03 Robert Millan <rmh@aybabtu.com>
43299
43300 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43301 instead of `grub_install_dos_part' to determine whether a drive needs
43302 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 43303 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 43304
2a5cd121 433052008-08-02 Robert Millan <rmh@aybabtu.com>
43306
43307 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43308
93808428 433092008-08-02 Robert Millan <rmh@aybabtu.com>
43310
43311 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43312 of informational grub_dprintf() calls.
43313
3bd0a12a 433142008-08-02 Robert Millan <rmh@aybabtu.com>
43315
43316 * disk/memdisk.c (memdisk_size): Don't initialize.
43317 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43318
43319 * include/grub/i386/pc/kernel.h
43320 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43321 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43322 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43323 (grub_arch_memdisk_size): Remove.
43324
43325 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43326 field (was only used to transfer a constant). Add `type' field to
43327 support multiple module types.
43328 (grub_module_iterate): New function.
43329
43330 * kern/device.c (grub_device_open): Do not hide error messages
43331 when grub_disk_open() fails. Use grub_print_error() instead.
43332
43333 * kern/i386/pc/init.c (grub_arch_modules_addr)
43334 (grub_arch_memdisk_size): Remove functions.
43335 (grub_arch_modules_addr): Return the module address in high memory
43336 (now that it isn't copied anymore).
43337
43338 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43339 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43340 decompression routine (grub_total_module_size already includes that
43341 now). Don't copy modules back to low memory.
43342
43343 * kern/main.c: Include `<grub/mm.h>'.
43344 (grub_load_modules): Split out (and use) ...
43345 (grub_module_iterate): ... this function, which iterates through
43346 module objects and runs a hook.
43347 Comment out grub_mm_init_region() call, as it would cause non-ELF
43348 modules to be overwritten.
43349
43350 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43351 the memdisk image in its own region, make it part of the module list.
43352 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43353 (main): Parse --memdisk|-m option, and pass user-provided path as
43354 parameter to generate_image().
43355 (add_segments): Pass `memdisk_path' down to load_modules().
43356 (load_modules): Embed memdisk image in module section when requested.
43357 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43358 `header.type' instead of `header.offset'.
43359
43360 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43361 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43362 (memdisk_mod_LDFLAGS): New variables.
43363 * conf/i386-coreboot.rmk: Likewise.
43364 * conf/i386-ieee1275.rmk: Likewise.
43365
a927cc73 433662008-08-02 Robert Millan <rmh@aybabtu.com>
43367
43368 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43369 (backward_relocator): New variables. Used to allocate and relocate
43370 the payload, respectively.
43371 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 43372 address, install the appropriate relocator code in each bound of
a927cc73 43373 the payload, and set the entry point such that
43374 grub_multiboot_real_boot() will jump to one of them.
43375
43376 * kern/i386/loader.S (grub_multiboot_payload_size)
43377 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43378 (grub_multiboot_payload_entry_offset): New variables.
43379 (grub_multiboot_real_boot): Set cpu context to what the relocator
43380 expects, and jump to the relocator instead of the payload.
43381
43382 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43383 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43384 (grub_multiboot_payload_entry_offset): Export.
43385
b15d8a0c 433862008-08-01 Bean <bean123ch@gmail.com>
43387
43388 * normal/menu_entry.c (editor_getline): Don't return the original
43389 string as result, as it will be released by lexer once it has done
43390 using it.
43391
cdfb3d22 433922008-08-01 Robert Millan <rmh@aybabtu.com>
43393
43394 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43395 within menuentries, not before them.
43396 util/grub.d/10_hurd.in: Likewise.
43397
9175e93d 433982008-08-01 Bean <bean123ch@gmail.com>
43399
43400 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43401 (bufio_mod_SOURCES): New macro.
43402 (bufio_mod_CFLAGS): Likewise.
43403 (bufio_mod_LDFLAGS): Likewise.
43404
43405 * include/grub/bufio.h: New file.
43406
43407 * io/bufio.c: Likewise.
43408
43409 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43410 (grub_video_reader_png): Use grub_buffile_open to open file.
43411
43412 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43413 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43414
43415 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43416 (grub_video_reader_tga): Use grub_buffile_open to open file.
43417
43418 * font/manager.c: Include <grub/bufio.h>.
43419 (add_font): Use grub_buffile_open to open file.
43420
3d8383e7 434212008-07-31 Robert Millan <rmh@aybabtu.com>
43422
43423 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43424 ELF segments, use a macro for arbitrarily accessing any of them instead
43425 of preparing a pointer that allows access to one at a time.
43426 (grub_multiboot_load_elf64): Likewise.
43427
16e641b6 434282008-07-31 Bean <bean123ch@gmail.com>
43429
43430 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43431 GRUB_KERNEL_MACHINE_DATA_END.
43432
59198b72 434332008-07-30 Robert Millan <rmh@aybabtu.com>
43434
43435 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43436 Increase from 0x50 to 0x60.
43437 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43438 use UUIDs to identify the root drive for them. If that's not
43439 possible, abort.
43440 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43441 check, for cross-disk installs.
43442
ae88bca3 434432008-07-30 Robert Millan <rmh@aybabtu.com>
43444
43445 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43446 is non-empty, use it to set the `prefix' environment variable instead
43447 of the usual approach.
43448 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43449 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43450 environment variable instead of dummy make_install_device().
43451
43452 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43453 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 43454 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 43455
43456 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43457 New variable reference.
43458 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43459 New macro. Defines offset of `grub_prefix' within startup.S (relative
43460 to `start').
43461 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43462 section within startup.S (relative to `start').
43463 * include/grub/i386/coreboot/kernel.h: Likewise.
43464
43465 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43466 Overwrite grub_prefix with its contents, at the beginning of the
43467 first segment.
43468 (main): Understand -p|--prefix.
43469
14f41dd1 434702008-07-30 Robert Millan <rmh@aybabtu.com>
43471
43472 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43473
4ca049a3 434742008-07-30 Robert Millan <rmh@aybabtu.com>
43475
43476 * term/i386/pc/vga_text.c (grub_console_cls): Use
43477 grub_console_gotoxy() to go back to beginning of the screen.
43478 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43479
2921d337 434802008-07-29 Christian Franke <franke@computer.org>
43481
43482 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43483 Add conversion of emulated mount points on Cygwin.
43484
b609876d 434852008-07-29 Christian Franke <franke@computer.org>
43486
43487 * util/update-grub.in: Add a check for admin
43488 group on Cygwin.
43489 Remove old `grub.cfg.new' before creation.
43490 Add `-f' to `mv' to handle the different filesystem
43491 semantics of Windows.
43492
e93e4679 434932008-07-29 Bean <bean123ch@gmail.com>
43494
43495 * normal/main.c (get_line): Fix buffer overflow bug.
43496
41694fd0 434972008-07-28 Robert Millan <rmh@aybabtu.com>
43498
43499 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43500 (struct grub_apple_header): New struct. Describes the layout of
43501 the partmap header.
43502 (apple_partition_map_iterate): Check the header magic as well as the
43503 partition magic (which was already being checked).
43504
cfd0b4e6 435052008-07-28 Pavel Roskin <proski@gnu.org>
43506
43507 * genmk.rb: Add a warning to the beginning of the output that
43508 it's a generated file and should not be edited.
43509
93cce016 435102008-07-28 Robert Millan <rmh@aybabtu.com>
43511
43512 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43513 with the same number are found, just use issue a warning with
43514 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 43515
cd1df915 435162008-07-27 Robert Millan <rmh@aybabtu.com>
43517
43518 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43519 information.
43520
b70a8427 435212008-07-27 Bean <bean123ch@gmail.com>
43522
43523 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43524 (grub_fat_find_dir): Ignore case when comparing filename.
43525
8f5e379f 435262008-07-27 Bean <bean123ch@gmail.com>
43527
43528 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43529 smallino, as it's more descriptive, and i8count can be confused with
43530 the other field count.
43531 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43532 inode type.
43533
a85cd5a0 435342008-07-27 Bean <bean123ch@gmail.com>
43535
43536 * commands/crc.c: New file.
43537
43538 * lib/crc.c: Likewise.
43539
43540 * include/grub/lib/crc.h: Likewise.
43541
43542 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43543
43544 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43545 (hexdump): Move this function to ...
43546
43547 * lib/hexdump.c: ... here.
43548
43549 * include/grub/hexdump.h: Renamed to ...
43550
43551 * include/grub/lib/hexdump.h: ... this.
43552
43553 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43554
43555 * util/grub-editenv.c: Likewise.
43556
43557 * include/envblk.h: Renamed to ...
43558
43559 * include/lib/envblk.h: ... this.
43560
43561 * util/envblk.c: Renamed to ...
43562
43563 * lib/envblk.c: ... this.
43564
43565 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43566 lib/hexdump.c.
43567 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43568 (pkglib_MODULES): Add crc.mod.
43569 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43570 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43571 (crc_mod_SOURCES): New macro.
43572 (crc_mod_CFLAGS): Likewise.
43573 (crc_mod_LDFLAGS): Likewise.
43574
43575 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43576
43577 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43578
43579 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43580
43581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43582
43583 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43584
c298def0 435852008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 43586
43587 * commands/help.c: Include <grub/term.h>.
43588 (TERM_WIDTH): Removed. Updated all users.
43589
cc349fb3 435902008-07-27 Pavel Roskin <proski@gnu.org>
43591
43592 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43593 spurious warnings about a comment within a comment.
43594
9051607e 435952008-07-25 Robert Millan <rmh@aybabtu.com>
43596
43597 * util/getroot.c (find_root_device): Skip devices that match
43598 /dev/dm-[0-9]. This lets the real device be found for any type of
43599 abstraction (LVM, EVMS, RAID..).
43600 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43601 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43602 device is found first, find_root_device() will now skip it.
43603
01453bfc 436042008-07-24 Pavel Roskin <proski@gnu.org>
43605
43606 * include/grub/types.h: Use __builtin_bswap32() and
43607 __builtin_bswap64() with gcc 4.3 and newer.
43608
6af9849f 436092008-07-24 Christian Franke <franke@computer.org>
43610
3a0fa256 43611 * util/i386/pc/grub-install.in: If `--debug' is specified,
43612 pass `--verbose' to grub-setup.
43613 Abort script if make_system_path_relative_to_its_root() fails.
43614
7810e747 436152008-07-24 Bean <bean123ch@gmail.com>
43616
43617 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43618 variable `target_platform' should be `platform'.
43619
42290e17 436202008-07-24 Bean <bean123ch@gmail.com>
43621
51cc5193 43622 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 43623 (grub_png_init_fixed_block): New function.
43624 (grub_png_decode_image_data): Handle fixed huffman code compression.
43625
2a8a80e4 436262008-07-24 Bean <bean123ch@gmail.com>
43627
43628 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43629 (grub_pe2elf_SOURCES): New macro.
43630 (CLEANFILES): Add grub-pe2elf.
43631
43632 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43633 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43634 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43635 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43636 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43637 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43638 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43639 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43640 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43641 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43642 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43643 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43644 (GRUB_PE32_DT_FUNCTION): Likewise.
43645 (GRUB_PE32_REL_I386_DIR32): Likewise.
43646 (GRUB_PE32_REL_I386_REL32): Likewise.
43647 (grub_pe32_symbol): New structure.
43648 (grub_pe32_reloc): Likewise.
43649
43650 * util/grub-pe2elf.c: New file.
43651
43652 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43653 start symbol in non pc platform.
43654
43655 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43656
43657 The following patches are from Christian Franke.
43658
43659 * include/grub/dl.h: Remove .previous, gas supports this only
43660 for ELF format.
43661
43662 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43663 Remove .type, gas supports this only for ELF format.
43664
43665 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43666 nullbytes in symbol table. This fixes an infinite loop if table is
43667 zero filled.
43668
43669 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43670 TARGET_IMG_LDFLAGS and EXEEXT.
43671
43672 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43673 TARGET_IMG_LDFLAGS_AC.
43674 (grub_CHECK_STACK_ARG_PROBE): New function.
43675
43676 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43677
43678 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43679
43680 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43681 to set TARGET_IMG_LD* accordingly.
43682 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43683 Add call to grub_CHECK_STACK_ARG_PROBE.
43684 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43685
43686 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43687
43688 * genmk.rb: Add EXEEXT to CLEANFILES.
43689
12ccdb75 436902008-07-23 Robert Millan <rmh@aybabtu.com>
43691
43692 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43693 define the codes for arrows and lines used for the menu).
43694 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43695 as well.
43696
43697 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43698 fonts, because the latter are too slow.
43699
18eeaf04 437002008-07-21 Bean <bean123ch@gmail.com>
43701
43702 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43703 a20. Run keyboard test last, as it will cause macbook to halt.
43704
b095e2ad 437052008-07-18 Pavel Roskin <proski@gnu.org>
43706
43707 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43708 load foreign architecture modules correctly anyway. Keep
43709 support for loading host architecture modules, whether we
43710 compile them or not.
43711
737feb35 437122008-07-17 Pavel Roskin <proski@gnu.org>
43713
3f4ce737 43714 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43715 change target_cpu. The compiler default can mismatch target_cpu
43716 in any case.
43717
4ad2d049 43718 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43719 * kern/efi/efi.c: Likewise.
43720
f6130a12 43721 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43722 target compiler is functional.
43723 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43724 are set up.
43725
58393a2d 43726 * configure.ac: Default to efi platform for x86_64-apple. Allow
43727 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43728 adjustments from the rest, only do them if target is not
43729 explicitly given. Merge other adjustments with the final sanity
43730 check. Remove an extraneous check for supported CPU. Be
43731 specific which CPU and which platform is not supported.
43732
737feb35 43733 * configure.ac: Default to pc platform for x86_64.
43734
546f966a 437352008-07-17 Robert Millan <rmh@aybabtu.com>
43736
43737 Partial LinuxBIOS -> Coreboot rename.
43738
43739 * conf/i386-linuxbios.rmk: Renamed to ...
43740 * conf/i386-coreboot.rmk: ... this.
43741 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43742 * configure.ac: Accept "coreboot" as input platform (but maintain
43743 compatibility with "linuxbios").
43744 * include/grub/i386/linuxbios: Renamed to ...
43745 * include/grub/i386/coreboot: ... this.
43746
20011694 437472008-07-17 Bean <bean123ch@gmail.com>
43748
43749 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 43750 (appleldr_mod_SOURCE): New variable.
20011694 43751 (appleldr_mod_CFLAGS): Likewise.
43752 (appleldr_mod_LDFLAGS): Likewise.
43753 (pci_mod_SOURCES): Likewise.
43754 (pci_mod_CFLAGS): Likewise.
43755 (pci_mod_LDFLAGS): Likewise.
43756 (lspci_mod_SOURCES): Likewise.
43757 (lspci_mod_CFLAGS): Likewise.
43758 (lspci_mod_LDFLAGS): Likewise.
43759
43760 * conf/x86_64-efi.rmk: New file.
43761
43762 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43763 macro.
43764 (grub_efidisk_write): Likewise.
43765
43766 * include/efi/api.h (efi_call_0): New macro.
43767 (efi_call_1): Likewise.
43768 (efi_call_2): Likewise.
43769 (efi_call_3): Likewise.
43770 (efi_call_4): Likewise.
43771 (efi_call_5): Likewise.
43772 (efi_call_6): Likewise.
43773
43774 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43775 grub_rescue_cmd_chainloader.
43776
43777 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43778 (grub_pe32_optional_header): Change some fields based on i386 or
43779 x86_64 platform.
43780 (GRUB_PE32_PE32_MAGIC): Likewise.
43781
43782 * include/grub/efi/uga_draw.h: New file.
43783
43784 * include/grub/elf.h (STN_ABS): New constant.
43785 (R_X86_64_NONE): Relocation constant for x86_64.
43786 (R_X86_64_64): Likewise.
43787 (R_X86_64_PC32): Likewise.
43788 (R_X86_64_GOT32): Likewise.
43789 (R_X86_64_PLT32): Likewise.
43790 (R_X86_64_COPY): Likewise.
43791 (R_X86_64_GLOB_DAT): Likewise.
43792 (R_X86_64_JUMP_SLOT): Likewise.
43793 (R_X86_64_RELATIVE): Likewise.
43794 (R_X86_64_GOTPCREL): Likewise.
43795 (R_X86_64_32): Likewise.
43796 (R_X86_64_32S): Likewise.
43797 (R_X86_64_16): Likewise.
43798 (R_X86_64_PC16): Likewise.
43799 (R_X86_64_8): Likewise.
43800 (R_X86_64_PC8): Likewise.
43801
43802 * include/grub/i386/efi/pci.h: New file.
43803
43804 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43805 Change it value based on platform.
43806 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43807 (GRUB_E820_RAM): Likewise.
43808 (GRUB_E820_RESERVED): Likewise.
43809 (GRUB_E820_ACPI): Likewise.
43810 (GRUB_E820_NVS): Likewise.
43811 (GRUB_E820_EXEC_CODE): Likewise.
43812 (GRUB_E820_MAX_ENTRY): Likewise.
43813 (grub_e820_mmap): New structure.
43814 (linux_kernel_header): Change the efi field according to different
43815 kernel version, also field from linux_kernel_header.
43816
43817 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43818
43819 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43820 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43821 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43822 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43823 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43824 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43825 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43826 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43827 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43828 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43829
43830 * include/grub/x86_64/efi/kernel.h: New file.
43831
43832 * include/grub/x86_64/efi/loader.h: Likewise.
43833
43834 * include/grub/x86_64/efi/machine.h: Likewise.
43835
43836 * include/grub/x86_64/efi/pci.h: Likewise.
43837
43838 * include/grub/x86_64/efi/time.h: Likewise.
43839
43840 * include/grub/x86_64/linux.h: Likewise.
43841
43842 * include/grub/x86_64/setjmp.h: Likewise.
43843
43844 * include/grub/x86_64/time.h: Likewise.
43845
43846 * include/grub/x86_64/types.h: Likewise.
43847
43848 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43849 GRUB_TARGET_SIZEOF_VOID_P.
43850
43851 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43852 (grub_efi_locate_handle): Likewise.
43853 (grub_efi_open_protocol): Likewise.
43854 (grub_efi_set_text_mode): Likewise.
43855 (grub_efi_stall): Likewise.
43856 (grub_exit): Likewise.
43857 (grub_reboot): Likewise.
43858 (grub_halt): Likewise.
43859 (grub_efi_exit_boot_services): Likewise.
43860 (grub_get_rtc): Likewise.
43861
43862 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43863 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43864 (grub_efi_allocate_pages): Wrap efi calls.
43865 (grub_efi_free_pages): Wrap efi calls.
43866 (grub_efi_get_memory_map): Wrap efi calls.
43867
43868 * kern/x86_64/dl.c: New file.
43869
43870 * kern/x86_64/efi/callwrap.S: Likewise.
43871
43872 * kern/x86_64/efi/startup.S: Likewise.
43873
43874 * loader/efi/appleloader.c: Likewise.
43875
43876 * loader/efi/chainloader.c (cmdline): New variable.
43877 (grub_chainloader_unload): Wrap efi calls.
43878 (grub_chainloader_boot): Likewise.
43879 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43880 command line.
43881
43882 * loader/efi/chainloader_normal.c (chainloader_command):
43883 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43884 command line.
43885
43886 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43887 method.
43888 (grub_e820_add_region): New function.
43889 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43890 booting.
43891 (grub_find_video_card): New function.
43892 (grub_linux_setup_video): New function.
43893 (grub_rescue_cmd_linux): Probe for video information.
43894
43895 * normal/x86_64/setjmp.S: New file.
43896
43897 * term/efi/console.c (map_char): New function.
43898 (grub_console_putchar): Map unicode char.
43899 (grub_console_checkkey): Wrap efi calls.
43900 (grub_console_getkey): Likewise.
43901 (grub_console_getwh): Likewise.
43902 (grub_console_gotoxy): Likewise.
43903 (grub_console_cls): Likewise.
43904 (grub_console_setcolorstate): Likewise.
43905 (grub_console_setcursor): Likewise.
43906
43907 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43908
59652a20 439092008-07-16 Pavel Roskin <proski@gnu.org>
43910
ef294055 43911 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43912 format strings.
43913
59652a20 43914 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43915 pointer, not an integer. This fixes a warning and prevents
43916 precision loss on 64-bit systems.
43917 (relocate_addresses): Remove unneeded cast.
43918
afc3b5d7 439192008-07-15 Pavel Roskin <proski@gnu.org>
43920
506b2b3e 43921 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43922
62ead89c 43923 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43924
c4cd51d7 43925 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43926 Fix comparison between signed and unsigned.
43927
0d3d8f28 43928 * include/grub/i386/ieee1275/console.h: Declare
43929 grub_console_init() and grub_console_fini().
43930
8804b286 43931 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43932 It's empty and unused.
43933
ee01cf35 43934 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43935 beginning to avoid warnings with some compilers.
43936
afc3b5d7 43937 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43938 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43939
e4e8eaa5 439402008-07-14 Pavel Roskin <proski@gnu.org>
43941
407aceb4 43942 * kern/env.c (grub_register_variable_hook): Don't copy empty
43943 string, it leaks memory. Pass "" to grub_env_set(), it should
43944 handle constant strings.
43945
e4e8eaa5 43946 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43947 * commands/cmp.c (grub_cmd_cmp): Likewise.
43948 * kern/dl.c (grub_dl_flush_cache): Likewise.
43949 (grub_dl_load_core): Likewise.
43950 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43951 (grub_elf64_load_phdrs): Likewise.
43952
d4e2dad3 439532008-07-13 Pavel Roskin <proski@gnu.org>
43954
43955 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43956 between signed and unsigned.
43957 (LzmaEnc_Finish): Fix warning about an unused parameter.
43958
aa24b516 439592008-07-13 Bean <bean123ch@gmail.com>
43960
43961 * Makefile.in (enable_lzo): New rule.
43962
43963 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43964
43965 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43966
43967 * boot/i386/pc/lnxboot.S: #include <config.h>.
43968
43969 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 43970 its value according to the compression algorithm used, lzo or lzma.
aa24b516 43971
43972 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43973 compression algorithm according to configure macro.
43974
43975 * kern/i386/pc/startup.S (codestart): Likewise.
43976
43977 * kern/i386/pc/lzma_decode.S: New file.
43978
43979 * include/grub/lib/LzFind.h: Likewise.
43980
43981 * include/grub/lib/LzHash.h: Likewise.
43982
43983 * include/grub/lib/LzmaDec.h: Likewise.
43984
43985 * include/grub/lib/LzmaEnc.h: Likewise.
43986
43987 * include/grub/lib/LzmaTypes.h: Likewise.
43988
43989 * lib/LzFind.c: Likewise.
43990
43991 * lib/LzmaDec.c: Likewise.
43992
43993 * lib/LzmaEnc.c: Likewise.
43994
4ae821ac 439952008-07-13 Bean <bean123ch@gmail.com>
43996
43997 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43998 (grub_ext4_extent_header): New structure.
43999 (grub_ext4_extent): Likewise.
44000 (grub_ext4_extent_idx): Likewise.
44001 (grub_ext4_find_leaf): New function.
44002 (grub_ext2_read_block): Handle extents.
44003
9a745147 440042008-07-12 Robert Millan <rmh@aybabtu.com>
44005
44006 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44007
d49a4cf6 440082008-07-11 Robert Millan <rmh@aybabtu.com>
44009
44010 * util/grub.d/40_custom.in: New file. Example on how to add custom
44011 entries to /etc/grub.d.
44012 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44013 40_custom (implicitly, by merging all the grub.d rules).
44014
947414b4 440152008-07-11 Pavel Roskin <proski@gnu.org>
44016
0059cf6f 44017 * commands/read.c (grub_getline): Fix invalid memory access.
44018 Don't add newline to the variable value.
44019
947414b4 44020 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44021 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44022 (serial_hw_get_port): Check validity of the port number.
44023 (grub_cmd_serial): Check return value of serial_hw_get_port().
44024
62a02d00 440252008-07-07 Pavel Roskin <proski@gnu.org>
44026
44027 * boot/i386/pc/diskboot.S (notification_string): Replace
44028 "Loading kernel" with just "loading". This is shorter, less
44029 confusing and saves a few bytes for possible future changes.
44030
3e5581b0 440312008-07-05 Pavel Roskin <proski@gnu.org>
44032
ea387a48 44033 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44034 size for ATAPI devices, they are undefined. Output sector
44035 number in decimal form.
44036
3e5581b0 44037 * disk/ata.c: Use named constants for status bits.
44038
fdecb8fd 440392008-07-04 Pavel Roskin <proski@gnu.org>
44040
bcd35b90 44041 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44042 grub_addr_t before casting it to the void pointer to fix a
44043 warning. Non-addressable regions are discarded earlier.
44044 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44045 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44046 (check_signature): Don't shadow table_header.
44047 (grub_linuxbios_table_iterate): Cast numeric constants to
44048 grub_linuxbios_table_header_t.
44049 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44050 grub_stop().
44051
af58ab3d 44052 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44053 prevent warnings.
44054
1759aa57 44055 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44056 pointer, which can cause warnings. Support 64-bit addresses.
44057
fdecb8fd 44058 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44059 of sizeof(long). This fixes PowerPC image generation on x86_64.
44060
8516d2a8 440612008-07-04 Robert Millan <rmh@aybabtu.com>
44062
44063 This fixes a performance issue when pc & gpt partmap iterators
44064 didn't abort iteration even after our hook found what it was
fe987087 44065 looking for (often causing expensive probes of non-existent drives).
8516d2a8 44066
44067 Some callers relied on previous buggy behaviour, since they would
34c44600 44068 raise an error when their own hooks caused early abortion of its
8516d2a8 44069 iteration.
44070
44071 * kern/device.c (grub_device_open): Improve error message.
44072 * disk/lvm.c (grub_lvm_open): Likewise.
44073 * disk/raid.c (grub_raid_open): Likewise.
44074
44075 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44076 when hook requests it, independently of grub_errno.
44077 (pc_partition_map_probe): Do not fail when find_func() caused
44078 early abortion of pc_partition_map_iterate().
44079
44080 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44081 when hook requests it, independently of grub_errno.
44082 (gpt_partition_map_probe): Do not fail when find_func() caused
44083 early abortion of gpt_partition_map_iterate().
44084
44085 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44086 when hook requests it, independently of grub_errno. Do not fail when
44087 part_map_iterate_hook() caused early abortion of p->iterate().
44088
44089 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44090 when grub_partition_iterate() returned with non-zero.
44091
277d0de9 440922008-07-03 Pavel Roskin <proski@gnu.org>
44093
44094 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44095 like we do in grub_ata_pio_read().
44096 (grub_ata_readwrite): Always write individual sectors. Fix the
44097 sector count for the remainder.
44098 (grub_ata_write): Enable writing to ATA devices. Correctly
44099 report error for ATAPI devices.
44100
d4c9b428 441012008-07-02 Pavel Roskin <proski@gnu.org>
44102
e43fc690 44103 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44104 warning.
44105
f707af42 44106 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44107 for every read sector, we already increment it for the whole
44108 batch. This fixes reading more than 256 sectors at once.
44109
11e16b15 44110 * util/grub-editenv.c (cmd_info): Cast argument to long
44111 explicitly. ptrdiff_t reduces to int on i386.
44112
cbabfdd4 44113 * util/grub-editenv.c (main): Be specific which parameter is
44114 missing.
44115
b8fbce0a 44116 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44117 (memdisk): Make memdisk_orig_addr a pointer.
44118
c9c8e606 44119 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44120 for file offsets, use grub_off_t instead. Fix printf format
44121 warnings.
44122
ca62e598 44123 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44124 there. Real unexpected warnings should not drown in the noise
44125 about known problems.
44126
ce8d1766 44127 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44128 grub_disk_addr_t for memory addresses.
44129
00c7a56a 44130 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44131 explicitly to fix a warning.
44132
08d3ef09 44133 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44134
cb71ba20 44135 * Makefile.in (MODULE_LDFLAGS): New variable.
44136 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44137 the linker accepts --build-id=none.
44138 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44139 MODULE_LDFLAGS.
44140 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44141
d4c9b428 44142 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44143 those in Linux XFS code. Provide a way to access 64-bit parent
44144 inode.
44145 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44146 the end of struct grub_xfs_dir_header.
44147
d4156eee 441482008-07-02 Bean <bean123ch@gmail.com>
44149
44150 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44151 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44152 and GRUB_IEEE1275_FLAG_NO_ANSI.
44153
44154 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44155 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44156 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44157
44158 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44159 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44160
44161 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44162 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44163
44164 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44165 esc sequence on non ANSI terminal.
44166 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44167
44168 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44169 beginning of file.
44170
2270f77b 441712008-07-02 Bean <bean123ch@gmail.com>
44172
44173 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44174 (grub_editenv_SOURCES): New variable.
44175 (pkglib_MODULES): Add loadenv.mod.
44176 (loadenv_mod_SOURCES): New variable.
44177 (loadenv_mod_CFLAGS): Likewise.
44178 (loadenv_mod_LDFLAGS): Likewise.
44179
44180 * include/grub/envblk.h: New file.
44181
44182 * util/envblk.c: New file.
44183
44184 * util/grub-editenv.c: New file.
44185
44186 * commands/loadenv.c: New file.
44187
0e9e51ec 441882008-07-01 Pavel Roskin <proski@gnu.org>
44189
d89b7634 44190 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44191 not unsigned char. This fixes warnings and is consistent with
44192 other tags.
44193
bf1835b1 44194 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44195
8222a04b 44196 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44197
6a42d99d 44198 * term/tparm.c (analyze): Always set *popcount.
44199
10b159d1 44200 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44201 cast to fix a warning.
44202
b8789f6c 44203 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44204 cast to suppress a warning.
44205
29d7e38a 44206 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44207 grub_fshelp_read_file() expects.
44208
f341f669 44209 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44210 write uuid as a 32-bit value in CPU byte order, so declare and
44211 use it as such.
44212
0e9e51ec 44213 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44214 long if the format specifier expects it.
44215 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44216 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44217 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44218 long to fix a warning.
44219 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44220 grub_dprintf() arguments to fix warnings.
44221
3aefa857 442222008-06-30 Pavel Roskin <proski@gnu.org>
44223
56c7668b 44224 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44225 install_bsd_part immediately before core.img is embedded or
44226 modified on disk. This fixes core.img verification if core.img
44227 cannot be embedded.
44228
3aefa857 44229 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44230 core_path to calculate the blocklist.
44231 Patch from Javier Martín <lordhabbit@gmail.com>
44232
5444088d 442332008-06-29 Robert Millan <rmh@aybabtu.com>
44234
44235 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44236 block to disk block.
44237 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44238 Patch from Niels Böhm <bitbucket@arcor.de>
44239
674835c8 442402008-06-29 Robert Millan <rmh@aybabtu.com>
44241
44242 * util/update-grub_lib.in (font_path): Search for fonts in
44243 /boot/grub first, which is more likely to be readable (we aren't
44244 deciding where fonts live, just looking for them).
44245
f527dbc8 442462008-06-26 Pavel Roskin <proski@gnu.org>
44247
6c2d8df6 44248 * util/biosdisk.c (read_device_map): Don't leave dead map
44249 entries for devices failing stat() check.
44250
f527dbc8 44251 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44252 core_path_dev for the core.img path on the target device.
44253
aebe3d13 442542008-06-26 Robert Millan <rmh@aybabtu.com>
44255
44256 * disk/fs_uuid.c: New file.
44257 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44258 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44259 (fs_uuid_mod_LDFLAGS): New variables.
44260 * include/grub/disk.h (grub_disk_dev_id): Add
44261 `GRUB_DISK_DEVICE_UUID_ID'.
44262 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44263 implement iterate().
44264
37aaf354 442652008-06-26 Robert Millan <rmh@aybabtu.com>
44266
44267 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44268 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44269 Linux image includes no initrd.
44270
25ff262a 442712008-06-21 Javier Martín <lordhabbit@gmail.com>
44272
44273 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44274 call to resolve the core image location that effectively appended the
44275 name twice.
44276
76a2bd44 442772008-06-21 Robert Millan <rmh@aybabtu.com>
44278
44279 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44280 call from here ...
44281
44282 * util/grub.d/10_hurd.in: ... to here ...
44283 * util/grub.d/10_linux.in: ... and here.
44284
650e1c79 442852008-06-19 Robert Millan <rmh@aybabtu.com>
44286
fe987087 44287 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 44288 after it has been set by grub_machine_set_prefix().
44289
6ce63911 442902008-06-19 Robert Millan <rmh@aybabtu.com>
44291
44292 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44293 search result when not saving to variable, not the other way around.
44294 When saving to variable, abort iteration as soon as a match is found.
44295
73940cec 442962008-06-19 Robert Millan <rmh@aybabtu.com>
44297
44298 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44299 check for partition that provides /boot/grub. Its logic is flawed,
44300 as it prevents prepare_grub_to_access_device() from being called
44301 multiple times.
44302
3c62a39d 443032008-06-19 Robert Millan <rmh@aybabtu.com>
44304
44305 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44306 "insmod" command directly when abstraction modules are needed,
fe987087 44307 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 44308 since it had already been processed).
44309
47395a42 443102008-06-19 Pavel Roskin <proski@gnu.org>
44311
44312 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44313 changed. This is needed in case GRUB_LIBDIR changes.
44314 * conf/i386-ieee1275.rmk: Likewise.
44315 * conf/i386-linuxbios.rmk: Likewise.
44316 * conf/i386-pc.rmk: Likewise.
44317 * conf/powerpc-ieee1275.rmk: Likewise.
44318
a145ac2d 443192008-06-18 Pavel Roskin <proski@gnu.org>
44320
44321 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44322 kernel_elf_symlist.c to symlist.c for consistency with other
44323 architectures. Update all users.
44324 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44325
7847c51e 443262008-06-18 Robert Millan <rmh@aybabtu.com>
44327
44328 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44329 it in prefix.
44330
44331 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44332 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44333 a RAID device, run setup() for all members independently on whether
44334 LVM abstraction is being used.
44335 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44336 If grub-mkimage has set `*install_dos_part == -2', don't override this
44337 value.
44338 Perform *install_dos_part adjustments independently on whether
44339 we're embedding or not.
44340 Clarify error message when image is too big for embedding.
44341 Remove duplicate *install_dos_part stanza.
44342
b23e5644 443432008-06-17 Robert Millan <rmh@aybabtu.com>
44344
44345 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44346 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44347 variables.
44348 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44349 values in grub_ofconsole_normal_color and
44350 grub_ofconsole_highlight_color (they're not directly related to
44351 background and foreground).
44352 (grub_ofconsole_setcolorstate): Extract background and foreground
44353 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44354
0aac2f79 443552008-06-17 Robert Millan <rmh@aybabtu.com>
44356
44357 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44358 /boot/grub for the check in last commit, not /boot (they could be
44359 different partitions).
44360
3cca7ef3 443612008-06-16 Robert Millan <rmh@aybabtu.com>
44362
44363 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44364 asked to setup access for the same partition that provides /boot,
44365 don't bother using UUIDs since our root already has the value we
44366 want.
44367
347396d8 443682008-06-16 Robert Millan <rmh@aybabtu.com>
44369
44370 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44371 I2O devices.
44372 Patch from Sven Mueller <sven@debian.org>.
44373
991477f8 443742008-06-16 Robert Millan <rmh@aybabtu.com>
44375
44376 * util/update-grub.in: Check for $EUID instead of $UID.
44377 Reported by Vincent Zweije.
44378
d31a32a1 443792008-06-16 Bean <bean123ch@gmail.com>
44380
fe987087 44381 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 44382 (grub_ext2_read_block): Likewise.
44383 (grub_ext2_read_inode): Likewise.
44384 (grub_ext2_mount): Likewise.
44385 (grub_ext2_close): Likewise.
44386 (grub_ext3_get_journal): Removed.
44387
fe987087 44388 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 44389 (grub_reiserfs_read_symlink): Likewise.
44390 (grub_reiserfs_mount): Likewise.
44391 (grub_reiserfs_open): Likewise.
44392 (grub_reiserfs_read): Likewise.
44393 (grub_reiserfs_close): Likewise.
44394 (grub_reiserfs_get_journal): Removed.
44395
44396 * fs/fshelp.c (grub_fshelp_read): Removed.
44397 (grub_fshelp_map_block): Likewise.
44398
44399 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44400 (grub_fshelp_journal): Likewise.
44401 (grub_fshelp_read): Likewise.
44402 (grub_fshelp_map_block): Likewise.
44403
3540a760 444042008-06-16 Pavel Roskin <proski@gnu.org>
44405
44406 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44407 floating point anymore.
44408 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44409
95614c84 444102008-06-15 Pavel Roskin <proski@gnu.org>
44411
44412 * commands/ls.c (grub_ls_list_files): Use integer calculations
44413 for human readable format, avoid floating point use.
44414 * kern/misc.c (grub_ftoa): Remove.
44415 (grub_vsprintf): Remove floating point support.
44416
50465dd6 444172008-06-15 Robert Millan <rmh@aybabtu.com>
44418
fe6b695a 44419 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 44420 devices.
44421 Reported by Max Vozeler.
44422
a9207284 444232008-06-15 Robert Millan <rmh@aybabtu.com>
44424
44425 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44426 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44427 skipped later.
44428 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44429 the beginning of the prefix.
44430
44431 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44432 It is assumed that if we have a memdisk, grub-mkimage has set
44433 grub_prefix to include the "(memdisk)" drive in it.
44434
a7cbd45a 444352008-06-15 Robert Millan <rmh@aybabtu.com>
44436
44437 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44438 Initialize keyboard controller after registering the terminal, so that
44439 grub_printf() can be called from grub_keyboard_controller_init().
44440
21cf716a 444412008-06-15 Robert Millan <rmh@aybabtu.com>
44442
44443 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44444 extent-btree which is written as big endian on disk.
44445 Reported by Alain Greppin <al@chilibi.org>.
44446
23a64d8e 444472008-06-14 Robert Millan <rmh@aybabtu.com>
44448
44449 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44450 * util/i386/pc/grub-install.in (modules): Likewise.
44451
d687651c 444522008-06-13 Pavel Roskin <proski@gnu.org>
44453
44454 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44455
dfe9ddd4 444562008-06-13 Bean <bean123ch@gmail.com>
44457
44458 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44459
44460 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44461
44462 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44463 to indicate sparse block.
44464
16ae7781 444652008-06-12 Pavel Roskin <proski@gnu.org>
44466
e6d1a308 44467 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44468 number, grub_fshelp_read() does it for us.
44469
16ae7781 44470 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44471 linear disk read with journal translation.
44472 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44473 * include/grub/fshelp.h: Declare grub_fshelp_read().
44474
40fd3a2b 444752008-06-09 Pavel Roskin <proski@gnu.org>
44476
44477 * fs/minix.c (grub_minix_mount): Handle error reading
44478 superblock.
44479
f5679726 444802008-06-08 Robert Millan <rmh@aybabtu.com>
44481
44482 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44483 don't append the RAID prefix afterwards.
44484 Reported by Clint Adams.
44485
ce525529 444862008-06-08 Robert Millan <rmh@aybabtu.com>
44487
44488 Based on description from Pavel:
44489 * kern/disk.c (grub_disk_check_range): Rename to ...
44490 (grub_disk_adjust_range): ... this. Add a comment explaining the
44491 tasks performed by this function.
44492
ad4936a0 444932008-06-08 Robert Millan <rmh@aybabtu.com>
44494
44495 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44496 `num_serial' (for consistency with other variables).
44497 (struct grub_ntfs_data): Add `uuid' member.
44498 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44499 (grub_ntfs_uuid): New function.
44500 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44501
dc20b0f9 445022008-06-07 Pavel Roskin <proski@gnu.org>
44503
44504 * util/biosdisk.c (open_device): Revert last change to the
44505 function, it broke installation. The sector needs to be
44506 different dependent on which device is opened.
44507
c5e3cfba 445082008-06-06 Robert Millan <rmh@aybabtu.com>
44509
44510 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44511 rest of GRUB, and breakage doesn't happen if its value were modified.
44512
44513 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44514 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44515 a constant (same value).
44516 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44517 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44518
26a1f8c4 445192008-06-06 Robert Millan <rmh@aybabtu.com>
44520
44521 * util/biosdisk.c (open_device): Do not modify sector offset when
44522 accessing a partition. kern/disk.c already handles this for us.
44523
25d6b327 445242008-06-06 Robert Millan <rmh@aybabtu.com>
44525
44526 * util/grub-emu.c (grub_machine_init): Move code in this function from
44527 here ...
44528 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44529 segfault in case grub_printf() is called).
44530
44531 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44532 grub_probe. Update all users not to explicitly add it again.
44533 (grub_device): New variable; contains corresponding device for grubdir.
44534 (fs_module, partmap_module, devabstraction_module): Pass
44535 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44536 every time.
44537
9ece62fb 445382008-06-05 Robert Millan <rmh@aybabtu.com>
44539
44540 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44541 is found, print it (same layout as with labels).
44542
1ad36d37 445432008-06-04 Robert Millan <rmh@aybabtu.com>
44544
44545 * util/biosdisk.c (get_drive): Rename to ...
44546 (find_grub_drive): ... this. Update all users.
44547
44548 (get_os_disk): Rename to ...
44549 (convert_system_partition_to_system_disk): ... this. Update all users.
44550
44551 (find_drive): Rename to ...
44552 (find_system_device): ... this. Update all users.
44553
e6a30859 445542008-06-04 Robert Millan <rmh@aybabtu.com>
44555
44556 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44557 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44558 (make_device_map): Likewise.
44559
00c108a4 445602008-06-01 Robert Millan <rmh@aybabtu.com>
44561
44562 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44563 before dereferencing it.
44564
44565 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44566 union with fat12/fat16-specific ones. Add some new fields, including
44567 `num_serial' for both versions.
44568 (struct grub_fat_data): Add `uuid' member.
44569 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44570 names. Initialize `data->uuid' using `num_serial'.
44571 (grub_fat_uuid): New function.
44572 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44573
44574 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44575 (grub_reiserfs_uuid): New function.
44576 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44577 member.
44578
44579 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44580 (grub_xfs_uuid): New function.
44581 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44582
1385c5bb 445832008-06-01 Robert Millan <rmh@aybabtu.com>
44584
44585 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44586 code that is backward compatible with pre-uuid search command.
44587
c682dfd7 445882008-05-31 Robert Millan <rmh@aybabtu.com>
44589
44590 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44591 floppies after everything else, to ensure floppy drive isn't accessed
44592 unnecessarily (patch from Bean).
44593
b7db5d47 445942008-05-31 Robert Millan <rmh@aybabtu.com>
44595
44596 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44597 not print device names when we were asked to set a variable.
44598
6e037aa9 445992008-05-31 Robert Millan <rmh@aybabtu.com>
44600
44601 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44602 using "cursor-on" and "cursor-off" commands (understood at least by
44603 the Open Firmware flavour on OLPC).
44604
41305bc8 446052008-05-31 Michael Gorven <michael@gorven.za.net>
44606
44607 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44608 on and off sequences.
44609
69ba137e 446102008-05-31 Robert Millan <rmh@aybabtu.com>
44611
44612 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44613 * util/update-grub.in: Likewise.
44614
520ae21b 446152008-05-30 Pavel Roskin <proski@gnu.org>
44616
44617 * util/biosdisk.c (linux_find_partition): Simplify logic and
44618 make the code more universal. Keep special processing for
44619 devfs, but use a simple rule for all other devices. If the
44620 device ends with a number, append 'p' and the partition number.
44621 Otherwise, append only the partition number.
44622
5786569b 446232008-05-30 Robert Millan <rmh@aybabtu.com>
44624
44625 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44626 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44627 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44628 the `root' parameter to Linux.
44629
51500452 446302008-05-30 Robert Millan <rmh@aybabtu.com>
44631
44632 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44633 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44634 --fs_uuid with --fs-uuid.
44635 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44636 all filesystems support them).
44637
811d3878 446382008-05-30 Robert Millan <rmh@aybabtu.com>
44639
44640 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 44641 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 44642
cab63c95 446432008-05-30 Robert Millan <rmh@aybabtu.com>
44644
44645 * util/grub.d/00_header.in: Remove obsolete comment referencing
44646 convert_system_path_to_grub_path().
44647 * util/update-grub.in: Likewise.
44648 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44649 (convert_system_path_to_grub_path): Add a warning message explaining
44650 that this function is deprecated. Rely on is_path_readable_by_grub()
44651 for the readability checks.
44652 (font_path): Use is_path_readable_by_grub() for the readability
44653 check rather than convert_system_path_to_grub_path().
44654
972e2f7a 446552008-05-30 Robert Millan <rmh@aybabtu.com>
44656
44657 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44658 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44659 converting it first.
44660 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44661 grub.cfg for access to font file, and afterwards call it again to set
44662 the root device.
44663
62191274 446642008-05-30 Robert Millan <rmh@aybabtu.com>
44665
44666 * commands/search.c (options): Add --fs_uuid option.
44667 (search_fs_uuid): New function.
44668 (grub_cmd_search): Fix --set argument passing.
44669 Use search_fs_uuid() when requested via --fs_uuid.
44670 (grub_search_init): Update help message.
44671 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44672 and redeclare it as an array of 16-bit words.
44673 (grub_ext2_uuid): New function.
44674 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44675 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44676 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44677 (GRUB_DEVICE_BOOT_UUID): New variables.
44678 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44679 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44680 whenever possible.
44681 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44682 just assume `root' variable has the right value.
44683 * util/grub.d/10_linux.in: Likewise.
44684 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44685 via PRINT_FS_UUID.
44686 (main): Recognise `-t fs_uuid' argument.
44687
01b73ec8 446882008-05-30 Robert Millan <rmh@aybabtu.com>
44689
44690 * util/biosdisk.c (map): Redefine structure to hold information
44691 about GRUB drive name.
fe6b695a 44692 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 44693 drive names.
44694 (call_hook): Remove.
44695 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44696 member. Assume drive has partitions.
44697 (grub_util_biosdisk_open): Access device names via `.device' struct
44698 member.
44699 (open_device): Likewise.
44700 (find_drive): Likewise.
44701 (read_device_map): Adjust map[] usage to match the new struct
44702 definition. Don't check for duplicates (still possible, but not cheap
44703 anymore).
44704 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44705 (make_device_name): Remove assumption of BIOS-like drive names.
44706
22f16596 447072008-05-30 Pavel Roskin <proski@gnu.org>
44708
44709 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44710 compiling execute.c doesn't need grub_script.tab.h anymore.
44711 (normal/command.c_DEPENDENCIES): Likewise.
44712 (normal/function.c_DEPENDENCIES): Likewise.
44713 * conf/i386-ieee1275.rmk: Likewise.
44714 * conf/i386-linuxbios.rmk: Likewise.
44715 * conf/i386-pc.rmk: Likewise.
44716 * conf/powerpc-ieee1275.rmk: Likewise.
44717 * conf/sparc64-ieee1275.rmk: Likewise.
44718
528ad8f2 447192008-05-29 Pavel Roskin <proski@gnu.org>
44720
d1dff95d 44721 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44722 when scanning metadata for volume group name.
44723
528ad8f2 44724 * include/grub/script.h: Don't include grub_script.tab.h. It's
44725 a generated file, which may only be included from the files with
44726 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44727 use union YYSTYPE, as the later allows forward declaration.
44728 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44729
47248e08 447302008-05-29 Robert Millan <rmh@aybabtu.com>
44731
44732 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44733 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44734 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44735 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44736 scan codes.
44737
ee632529 447382008-05-29 Robert Millan <rmh@aybabtu.com>
44739
44740 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44741 control key combinations.
44742
eee96e08 447432008-05-29 Robert Millan <rmh@aybabtu.com>
44744
44745 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44746 * util/ieee1275/grub-install.in: ... to here.
44747 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44748 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44749 (grub_install_SOURCES): Likewise.
44750
da9a6a94 447512008-05-29 Robert Millan <rmh@aybabtu.com>
44752
44753 * fs/affs.c: Update copyright year.
44754 * fs/ext2.c: Likewise.
44755 * fs/fshelp.c: Likewise.
44756 * fs/hfsplus.c: Likewise.
44757 * fs/ntfs.c: Likewise.
44758 * fs/xfs.c: Likewise.
44759 * include/grub/fshelp.h: Likewise.
44760 * util/grub-mkdevicemap.c: Likewise.
44761
12e65f3a 447622008-05-28 Robert Millan <rmh@aybabtu.com>
44763
44764 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44765 might need to be fatfs to support some firmware implementations
44766 (e.g. OFW or EFI).
44767
23023641 447682008-05-28 Robert Millan <rmh@aybabtu.com>
44769
44770 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44771 devices.
44772 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44773 (make_device_map): Likewise.
44774
887d2619 447752008-05-20 Bean <bean123ch@gmail.com>
44776
44777 * fs/fshelp.c (grub_fshelp_map_block): New function.
44778 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44779 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44780
44781 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44782 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44783 (grub_fshelp_journal): New structure.
44784 (grub_fshelp_map_block): New function prototype.
44785 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44786 (grub_fshelp_map_block): Likewise.
44787
44788 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44789 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44790 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44791 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44792 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44793 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44794 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44795 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44796 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44797 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44798 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44799 (grub_ext2_sblock): New members for journal support.
44800 (grub_ext3_journal_header): New structure.
44801 (grub_ext3_journal_revoke_header): Likewise.
44802 (grub_ext3_journal_block_tag): Likewise.
44803 (grub_ext3_journal_sblock): Likewise.
44804 (grub_fshelp_node): New members logfile and journal.
44805 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44806 grub_fshelp_map_block to get real block number.
44807 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44808 number.
44809 (grub_ext2_read_inode): Likewise.
44810 (grub_ext3_get_journal): New function.
44811 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44812 (grub_ext2_close): Release memory used by journal.
44813
44814 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44815 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44816 (grub_reiserfs_transaction_header): Renamed to
44817 grub_reiserfs_description_block, replace field data with real_blocks.
44818 (grub_reiserfs_commit_block): New structure.
44819 (grub_reiserfs_data): New member journal.
44820 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44821 number.
44822 (grub_reiserfs_read_symlink): Likewise.
44823 (grub_reiserfs_iterate_dir): Likewise.
44824 (grub_reiserfs_open): Likewise.
44825 (grub_reiserfs_read): Likewise.
44826 (grub_reiserfs_get_journal): New function.
44827 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44828 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44829 using grub_reiserfs_get_journal.
44830 (grub_reiserfs_close): Release memory used by journal.
44831
44832 * fs/affs.c (grub_affs_read_block): Change block type to
44833 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44834
44835 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44836
44837 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44838
44839 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44840
44841 * fs/udf.c (grub_udf_read_block): Change block type to
44842 grub_disk_addr_t. Use type cast to avoid warning.
44843
44844 * fs/xfs.c (grub_xfs_read_block): Likewise.
44845
b7c6bed5 448462008-05-16 Christian Franke <franke@computer.org>
44847
44848 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44849 to ensure that break with ESC will always work.
44850 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44851 Remove ESC from keyboard queue.
44852
eedf167f 448532008-05-16 Christian Franke <franke@computer.org>
44854
44855 * util/biosdisk.c: [__CYGWIN__] Add includes.
44856 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44857 (get_os_disk): Move variable declarations to OS specific
44858 parts to avoid warning.
44859 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44860 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44861 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44862 Cygwin.
44863 * util/getroot.c: [__CYGWIN__] Add includes.
44864 (strip_extra_slashes): Fix "/" case.
44865 [__CYGWIN__] (get_win32_path): New function.
44866 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44867 [__CYGWIN__] (find_root_device): Disable.
44868 [__CYGWIN__] (get_bootsec_serial): New function.
44869 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44870 [__linux__] (grub_guess_root_device): Add early returns to simplify
44871 structure.
44872 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44873 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44874 check for Linux only.
44875
a079699e 448762008-05-15 Bean <bean123ch@gmail.com>
44877
44878 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44879 keyboard hang problem in apple's intel mac.
44880
1cf4059a 448812008-05-09 Robert Millan <rmh@aybabtu.com>
44882
44883 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44884 devices.
44885 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44886 (make_device_map): Likewise.
44887 Reported by Aurelien Jarno <aurel32@debian.org>
44888
ed759390 448892008-05-07 Ian Campbell <ijc@hellion.org.uk>
44890
44891 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44892 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44893 (make_device_map): Output entries for xvd type disks.
44894
b56c4eaa 448952008-05-07 Robert Millan <rmh@aybabtu.com>
44896
44897 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44898 devices.
44899 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44900 (make_device_map): Likewise.
44901 Reported by Roland Dreier <rdreier@cisco.com>
44902
7f8866ed 449032008-05-07 Robert Millan <rmh@aybabtu.com>
44904
44905 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44906 grub_strstr() call. Correct a few mistakes in failure path handling.
44907
b0346e0f 449082008-05-06 Robert Millan <rmh@aybabtu.com>
44909
44910 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44911 Do not print a trailing slash (therefore, the root directory is an
44912 empty string).
44913 (convert_system_path_to_grub_path): Do not remove trailing slash
44914 from make_system_path_relative_to_its_root() output.
44915
44916 * util/i386/pc/grub-install.in: Add trailing slash to output from
44917 make_system_path_relative_to_its_root().
44918
6cf12cbd 449192008-05-06 Robert Millan <rmh@aybabtu.com>
44920
44921 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44922 ensures that output lines aren't intermangled with those sent to
44923 stderr (via grub_util_info()).
44924 * util/grub-probe.c (grub_refresh): Likewise.
44925 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44926
0fbb3117 449272008-05-05 Christian Franke <franke@computer.org>
44928
44929 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44930 Add Cygwin device names.
44931 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44932 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44933 (check_device): Return error instead of success on empty name.
44934 (make_device_map): Move label inside linux specific code to
44935 prevent compiler warning.
44936
8124cdb7 449372008-04-30 Robert Millan <rmh@aybabtu.com>
44938
44939 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44940 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44941 first boot option.
44942 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44943
094c01d0 449442008-04-29 Robert Millan <rmh@aybabtu.com>
44945
44946 * docs/grub.cfg: New file (example GRUB configuration).
44947
f4b1fc02 449482008-04-26 Robert Millan <rmh@aybabtu.com>
44949
329ce2a5 44950 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44951 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44952 and `disk/ieee1275/nand.c'.
f4b1fc02 44953
25f16ec1 449542008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 44955
25f16ec1 44956 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44957 i386-linuxbios.
44958
44959 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44960 change the buffer size to 4096 for cdrom device.
44961
44962 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44963 and nand.mod.
44964 (_linux_mod_SOURCES): New variable.
44965 (_linux_mod_CFLAGS): Likewise.
44966 (_linux_mod_LDFLAGS): Likewise.
44967 (linux_mod_SOURCES): Likewise.
44968 (linux_mod_CFLAGS): Likewise.
44969 (linux_mod_LDFLAGS): Likewise.
44970 (nand_mod_SOURCES): Likewise.
44971 (nand_mod_CFLAGS): Likewise.
44972 (nand_mod_LDFLAGS): Likewise.
44973
44974 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44975 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44976 type property. (nand device in olpc don't have this property)
44977
44978 * include/grub/disk.h (grub_disk_dev_id): New macro
44979 GRUB_DISK_DEVICE_NAND_ID.
44980
44981 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44982 function prototype.
44983 (grub_rescue_cmd_initrd): Likewise.
44984
44985 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44986 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44987 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 44988
25f16ec1 44989 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44990 GRUB_MACHINE_IEEE1275 is defined.
44991
44992 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44993 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44994
44995 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44996 on nested function heap_init.
44997 (grub_upper_mem): New variable for i386-ieee1275.
44998 (grub_get_extended_memory): New function for i386-ieee1275.
44999 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45000
45001 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45002 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45003 property.
f19dbdb7 45004
25f16ec1 45005 * loader/i386/ieee1275/linux.c: New file.
45006
45007 * loader/i386/ieee1275/linux_normal.c: New file.
45008
45009 * disk/ieee1275/nand.c: New file.
45010
e89d61e9 450112008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45012
45013 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45014 value.
45015 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45016
602566f6 450172008-04-18 Robert Millan <rmh@aybabtu.com>
45018
45019 Restructures early code path on ieee1275 to unify grub_main() as
45020 the first C function that is executed in every platform.
45021
45022 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45023 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45024 cmain().
45025 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45026 * kern/ieee1275/cmain.c (cmain): Rename to ...
45027 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45028 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45029 at the beginning.
45030
57490c2b 450312008-04-18 Robert Millan <rmh@aybabtu.com>
45032
45033 * util/update-grub.in: Fix syntax error when setting
45034 `GRUB_PRELOAD_MODULES'.
45035 Reported by Stephane Chazelas <stephane@artesyncp.com>
45036
1977517d 450372008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45038
45039 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45040 section into account, newer toolchains generate unique build ids
45041 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 45042 we want build ids to be preserved
1977517d 45043 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45044 far from other sections don't cause the raw binary images grow
45045 size
45046
bfb1f1a2 450472008-04-15 Robert Millan <rmh@aybabtu.com>
45048
45049 * disk/lvm.c: Update copyright year.
45050 * kern/misc.c: Likewise.
45051
01979850 450522008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45053
45054 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 45055 there is no memory left for physical volume name.
01979850 45056
0a1150e2 450572008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45058
45059 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45060 volume name mapping to support bigger than 9 character names properly.
45061
82ead3fe 450622008-04-13 Robert Millan <rmh@aybabtu.com>
45063
45064 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45065 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45066
e54a72f5 450672008-04-13 Christian Franke <franke@computer.org>
45068
45069 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45070 to create a floppy emulation boot CD when non emulation mode
45071 does not work.
45072 Enable Joliet CD filesystem extension.
45073
9fe86034 450742008-04-13 Robert Millan <rmh@aybabtu.com>
45075
45076 * kern/misc.c (grub_strncat): Fix off-by-one error.
45077 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45078
45079 * kern/env.c (grub_env_context_close): Clear current context, not
45080 previous one.
45081 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45082
45083 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45084
7ceeee39 450852008-04-13 Robert Millan <rmh@aybabtu.com>
45086
45087 Improve robustness when handling LVM.
45088
45089 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 45090 (and leave `*p' unmodified).
7ceeee39 45091 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45092 through it.
45093 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45094 iterating through it.
45095 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45096 through it.
fe6b695a 45097 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 45098 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45099 Don't assume `vg->pvs != NULL' when iterating through it.
45100
58cd3d85 451012008-04-13 Robert Millan <rmh@aybabtu.com>
45102
45103 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45104 * genmk.rb (partmap): New variable.
45105 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45106 (#{partmap}): New target rule.
45107 * genpartmaplist.sh: New file.
45108 * Makefile.in (pkglib_DATA): Add partmap.lst.
45109 (partmap.lst): New target rule.
45110 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45111 modules (including all partition maps), instead of preloading them.
45112
78b51059 451132007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45114
45115 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45116 `linux-boot-prober' (if installed) to detect other operating
45117 systems which are installed on the computer and add them to
45118 the boot menu.
45119 * conf/common.rmk: Build and install 30_os-prober.
45120
a91627b4 451212008-04-12 Robert Millan <rmh@aybabtu.com>
45122
45123 * kern/powerpc/ieee1275/init.c: Move from here ...
45124 * kern/ieee1275/init.c: ... to here. Update all users.
45125
45126 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45127 * kern/ieee1275/cmain.c: ... to here. Update all users.
45128
45129 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45130 * kern/ieee1275/openfw.c: ... to here. Update all users.
45131
45132 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45133 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45134
322562ea 451352008-04-10 Pavel Roskin <proski@gnu.org>
45136
45137 * configure.ac: Always use "_cv_" in cache variables for
45138 compatibility with Autoconf 2.62.
45139
a02a73c5 451402008-04-07 Robert Millan <rmh@aybabtu.com>
45141
45142 Revert grub/machine/init.h addition by Pavel (since it breaks on
45143 i386-ieee1275 and others):
45144 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45145 * util/powerpc/ieee1275/misc.c: Likewise.
45146
25c024b1 451472008-04-07 Robert Millan <rmh@aybabtu.com>
45148
45149 * util/grub-probe.c (probe): Improve error message.
45150
3cbd2f98 451512008-04-07 Robert Millan <rmh@aybabtu.com>
45152
45153 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45154 (this prevents the presence of a bogus entry from ruining the whole
45155 thing).
45156
87a297bf 451572008-04-06 Pavel Roskin <proski@gnu.org>
45158
36747a62 45159 * util/biosdisk.c: Include grub/util/biosdisk.h.
45160 * util/grub-fstest.c (execute_command): Make static.
45161 * util/grub-mkdevicemap.c (check_device): Likewise.
45162 * util/i386/pc/misc.c: Include grub/machine/init.h.
45163 * util/powerpc/ieee1275/misc.c: Likewise.
45164 * util/lvm.c: Include grub/util/lvm.h.
45165 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45166 grub/cache.h.
45167 * util/raid.c: Include grub/util/raid.h.
45168 (grub_util_getdiskname): Make static.
45169
87a297bf 45170 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45171 grub_hostfs_fini(), as they are called from grub_init_all() and
45172 grub_fini_all() respectively. This fixes an infinite loop in
45173 grub-fstest due to double registration of hostfs.
45174 Reported by Christian Franke <Christian.Franke@t-online.de>
45175
f6ce7629 451762008-04-05 Pavel Roskin <proski@gnu.org>
45177
45178 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45179 all 8 functions. Otherwise, probe function 0 only.
45180
070e49e4 451812008-04-04 Pavel Roskin <proski@gnu.org>
45182
8b088a4c 45183 * commands/lspci.c (grub_lspci_iter): Print the bus number
45184 correctly.
45185
4f657021 45186 * commands/lspci.c (grub_pci_classes): Fix typos.
45187 (grub_lspci_iter): Don't print func twice. Print vendor ID
45188 before device ID, as it's normally done.
45189
070e49e4 45190 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45191 Fix signedness warnings.
45192 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45193 Likewise.
45194 * util/ieee1275/get_disk_name.c: Include config.h so that
45195 _GNU_SOURCE is defined and getline() is declared. Mark an
45196 unused argument as such. Fix a signedness warning.
45197
ba7328dc 451982008-04-02 Pavel Roskin <proski@gnu.org>
45199
26887f22 45200 * genkernsyms.sh.in: Use more robust assignments for CC and
45201 srcdir. Quote srcdir.
45202 * gensymlist.sh.in: Likewise. Assert at the compile time that
45203 the symbol table is not empty.
45204
ba7328dc 45205 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45206 * fs/cpio.c (grub_cpio_read): Likewise.
45207
0f582c6b 452082008-04-01 Pavel Roskin <proski@gnu.org>
45209
4b6e1995 45210 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45211 * disk/host.c (grub_host_open): Likewise.
45212 * disk/loopback.c (grub_loopback_open): Likewise.
45213 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45214 disk->id as in disk/host.c, not a multi-character constant.
45215
828a2768 45216 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45217 later is obsolete, potentially dangerous and sets a bad example.
45218 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45219 * util/misc.c (grub_util_get_image_size): Likewise.
45220
2bb4fb47 45221 * disk/loopback.c (options): Improve help for "--partitions".
45222
0f582c6b 45223 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45224 options to align them with the short options, e.g. "echo -e".
45225
a33224e0 452262008-03-31 Bean <bean123ch@gmail.com>
45227
45228 * video/reader/png.c (grub_png_data): New member is_16bit and
45229 image_data.
45230 (grub_png_decode_image_header): Detect 16 bit png image.
45231 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45232 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45233 (grub_video_reader_png): Release memory occupied by image_data.
45234
45235 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45236 4096 bytes.
45237 (grub_nfs_mount): Skip the test for sector per cluster.
45238
45239 * include/grub/ntfs.h (MAX_SPC): Removed.
45240
86cb4f54 452412008-03-31 Bean <bean123ch@gmail.com>
45242
45243 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45244 (grub_probe_SOURCES): Add fs/afs.c.
45245 (grub_fstest_SOURCES): Likewise.
45246 (afs_mod_SOURCES): New variable.
45247 (afs_mod_CFLAGS): Likewise.
45248 (afs_mod_LDFLAGS): Likewise.
45249
45250 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45251 (grub_emu_SOURCES): Likewise.
45252
45253 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45254
45255 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45256
45257 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45258
45259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45260
45261 * fs/afs.c: New file.
45262
17c74c21 452632008-03-30 Pavel Roskin <proski@gnu.org>
45264
4cb68e89 45265 * disk/host.c: Include grub/misc.h to fix a warning.
45266 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45267 warnings about implicit declarations.
45268
8790bb04 45269 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45270 variable.
45271 * include/grub/i386/loader.h: Change declaration of
45272 grub_linux_boot() to match what grub_loader_set() expects.
45273 * util/getroot.c (grub_guess_root_device): Return const char* to
45274 fix a warning.
45275 * util/grub-probe.c (probe): Fix a warning about uninitialized
45276 abstraction_name variable.
45277 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45278 second argument as unused to fix a warning.
45279
9a3f3296 45280 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45281 missing grub_error() call.
45282
0ecef90d 45283 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45284 2.60 and newer uses it to define datadir.
45285
0bf6d401 45286 * commands/sleep.c: Fix warning about implicit declaration.
45287 * disk/memdisk.c: Likewise.
45288 * loader/aout.c: Likewise.
45289 * loader/i386/bsd_normal.c: Likewise.
45290 * util/grub-probe.c: Likewise.
45291
7cdacf97 45292 * commands/i386/cpuid.c (has_longmode): Make static.
45293 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45294 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45295
17c74c21 45296 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45297 GDT. This is more robust, as %ds can change.
45298 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45299 calling real_to_prot().
45300 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45301
80a3e68b 453022008-03-28 Pavel Roskin <proski@gnu.org>
45303
45304 * kern/i386/pc/startup.S: Assert that uncompressed functions
45305 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45306 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45307 code, as they push parts of the code (error handlers) beyond
45308 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45309 code as correctness and size.
45310
77bcd272 453112008-03-28 Pavel Roskin <proski@gnu.org>
45312
45313 * kern/i386/pc/startup.S
45314 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45315 data block address to the real mode, keep offset minimal. This
45316 works around a bug in AWARD BIOS on old Athlon systems, which
45317 makes CD detection hang.
45318
c5dfd43b 453192008-03-26 Pavel Roskin <proski@gnu.org>
45320
45321 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45322 const.
45323 * include/grub/normal.h: Add grub_parse_color_name_pair()
45324 declaration.
45325
bf962df2 453262008-03-24 Bean <bean123ch@gmail.com>
45327
45328 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45329 (cd_count): Removed.
45330 (cd_drive): New variable.
45331 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45332 (grub_biosdisk_call_hook): Likewise.
45333 (grub_biosdisk_iterate): Change cdrom detection method.
45334 (grub_biosdisk_open): Replace cd_start with cd_drive.
45335 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45336 detect cdrom device.
45337
45338 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45339 Removed.
45340 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45341 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45342 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45343 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45344 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45345 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45346 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45347 (grub_biosdisk_cdrp): New structure.
45348 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45349
45350 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45351
45352 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45353 device.
45354
45355 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45356 New function.
45357
68e7fc7a 453582008-03-20 Robert Millan <rmh@aybabtu.com>
45359
45360 Remove 2 TiB limit in ata.mod.
45361 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45362 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45363 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45364 grub_uint64_t instead of grub_uint32_t.
45365
38ad2cf5 453662008-03-05 Bean <bean123ch@gmail.com>
45367
45368 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45369 (grub_multiboot): Set boot device.
45370
45371 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45372
2b89344e 453732008-03-02 Bean <bean123ch@gmail.com>
45374
45375 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45376 symlink_buffer.
45377
87a95d1f 453782008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45379
45380 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45381 texinfo.tex.
45382
45383 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45384 modified.
45385
45386 * docs/fdl.texi: New file.
f19dbdb7 45387
87a95d1f 45388 * docs/mdate-sh: New file. Copied from gnulib.
45389 * docs/texinfo.tex: Likewise.
45390
45391 * config.guess: Updated from gnulib.
45392 * install-sh: Likewise.
45393
7dc15d8e 453942008-02-28 Robert Millan <rmh@aybabtu.com>
45395
45396 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45397 (aout_mod_SOURCES): New variable.
45398 (aout_mod_CFLAGS): Likewise.
45399 (aout_mod_LDFLAGS): Likewise.
45400
45401 * conf/i386-ieee1275.rmk: Likewise.
45402
b00ab696 454032008-02-28 Robert Millan <rmh@aybabtu.com>
45404
45405 * util/update-grub.in: Reorganise terminal validity check. Accept
45406 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45407 Based on suggestion by Franklin PIAT.
45408
79ca2d78 454092008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45410
45411 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45412 function.
45413 * util/getroot.c (grub_util_check_block_device): New function that
45414 returns the given argument if it is a block device and returns NULL else.
45415 * util/grub-probe.c (argument_is_device): New variable.
45416 (probe): Promote device_name from a variable to an argument. Receive
45417 device_name from grub_util_check_block_device() if path is NULL and from
45418 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 45419 (options): Introduce new parameter '-d, --device'.
79ca2d78 45420 (main): Add description of the new parameter to the help screen.
45421 Rename path variable to argument. Set argument_is_device if the '-d'
45422 option is given. Pass argument to probe() depending on
45423 argument_is_device.
45424
0d16e571 454252008-02-24 Bean <bean123ch@gmail.com>
45426
45427 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45428 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45429 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45430 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45431 (GRUB_ISO9660_VOLDESC_END): Likewise.
45432 (grub_iso9660_primary_voldesc): New member escape.
45433 (grub_iso9660_data): New member joliet.
45434 (grub_iso9660_convert_string): New function.
45435 (grub_iso9660_mount): Detect joliet extension.
45436 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45437 (grub_iso9660_iso9660_label): Likewise.
45438
45439 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45440 (grub_setup_SOURCES): Add fs/udf.c.
45441 (grub_fstest_SOURCES): Likewise.
45442 (udf_mod_SOURCES): New variable.
45443 (udf_mod_CFLAGS): Likewise.
45444 (udf_mod_LDFLAGS): Likewise.
45445
45446 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45447 (grub_emu_SOURCES): Likewise.
45448
45449 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45450
45451 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45452
45453 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45454
45455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45456
45457 * fs/udf.c: New file.
45458
8a594a17 454592008-02-24 Robert Millan <rmh@aybabtu.com>
45460
45461 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45462 (normal/lexer.c_DEPENDENCIES): New variables.
45463 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45464 (normal/lexer.c_DEPENDENCIES): Likewise.
45465 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45466 (normal/lexer.c_DEPENDENCIES): Likewise.
45467 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45468 (normal/lexer.c_DEPENDENCIES): Likewise.
45469 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45470 (normal/lexer.c_DEPENDENCIES): Likewise.
45471 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45472 (normal/lexer.c_DEPENDENCIES): Likewise.
45473
2dc33c03 454742008-02-23 Robert Millan <rmh@aybabtu.com>
45475
45476 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45477 since they were intended to be in hex. This didn't break previously
45478 because of a bug in gpt_partition_map_iterate() (see below).
45479
45480 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45481 when checking the validity of GPT header.
45482 Remove `partno', since it always provides the same information as `i'.
45483
f6f4cfb0 454842008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45485
45486 * include/grub/efi/time.h: Fix a wrong comment.
45487
79ff665f 454882008-02-19 Pavel Roskin <proski@gnu.org>
45489
45490 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45491 message.
45492
d38e24c2 454932008-02-19 Bean <bean123ch@gmail.com>
45494
45495 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45496 (aout_mod_SOURCES): New variable.
45497 (aout_mod_CFLAGS): Likewise.
45498 (aout_mod_LDFLAGS): Likewise.
45499 (_bsd_mod_SOURCES): New variable.
45500 (_bsd_mod_CFLAGS): Likewise.
45501 (_bsd_mod_LDFLAGS): Likewise.
45502 (bsd_mod_SOURCES): New variable.
45503 (bsd_mod_CFLAGS): Likewise.
45504 (bsd_mod_LDFLAGS): Likewise.
45505
45506 * include/grub/aout.h: New file.
45507
45508 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45509
45510 * include/grub/i386/bsd.h: New file.
45511
45512 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45513 to make it public.
45514
45515 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45516 function is called, so that it's possible to change it inside the hook.
45517 (grub_elf64_load): Likewise.
45518 (grub_elf_file): Don't close the file if elf header is not found.
45519 (grub_elf_close): Close the file if grub_elf_file fails (The new
45520 grub_elf_file won't close it).
45521 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45522 (grub_elf64_size): Likewise.
45523
45524 * kern/i386/loader.S (grub_unix_real_boot): New function.
45525
45526 * loader/aout.c: New file.
45527
45528 * loader/i386/bsd.c: New file.
45529
45530 * loader/i386/bsd_normal.c: New file.
45531
45532 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45533
45534 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 45535 can test other formats.
d38e24c2 45536
b93bdb0f 455372008-02-19 Robert Millan <rmh@aybabtu.com>
45538
45539 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45540 (grub_gpt_partition_type_empty): Redefine with macro from
45541 `<grub/gpt_partition.h>'.
45542 (gpt_partition_map_iterate): Adjust partition type comparison.
45543
45544 Export `entry' as partmap-specific `part.data' struct.
45545 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45546
45547 * include/grub/gpt_partition.h (grub_gpt_header)
45548 (grub_gpt_partentry): ... to here (new file).
45549
45550 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45551
45552 (grub_gpt_partition_type_bios_boot): New const variable, defined
45553 with macro from `<grub/gpt_partition.h>'.
45554
45555 (setup): Replace `first_start' with `embed_region', which keeps
45556 track of the embed region (and is partmap-agnostic).
45557
45558 Replace find_first_partition_start() with find_usable_region(),
45559 which finds a usable region for embedding using partmap-specific
45560 knowledge (supports PC/MSDOS and GPT).
45561
45562 Fix all assumptions that the embed region start at sector 1, using
45563 `embed_region.start' from now on. Similarly, use `embed_region.end'
45564 rather than `first_start' to calculate available size.
45565
45566 In grub_util_info() message, replace "into after the MBR" with an
45567 indication of the specific sector our embed region starts at.
45568
66cb40f6 455692008-02-19 Robert Millan <rmh@aybabtu.com>
45570
45571 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45572 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45573 `commands/reboot.c'.
45574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45575 (halt_mod_SOURCES): Likewise.
45576 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45577 (halt_mod_SOURCES): Likewise.
45578
b7202015 455792008-02-17 Christian Franke <franke@computer.org>
45580
45581 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45582
32b0fc49 455832008-02-17 Robert Millan <rmh@aybabtu.com>
45584
45585 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45586 set `first_start' to 0 for non-PC/MSDOS partition maps.
45587
aca63502 455882008-02-16 Robert Millan <rmh@aybabtu.com>
45589
45590 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45591 do not assume partition map is PC/MSDOS before performing checks that
45592 are specific to that layout.
45593
0de8be86 455942008-02-13 Robert Millan <rmh@aybabtu.com>
45595
45596 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45597 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45598 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45599
c3db8364 456002008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45601
45602 * configure.ac: Only a cosmetic change on the handling of
45603 -fno-stack-protector.
45604
f714229e 456052008-02-12 Alexandre Boeglin <alex@boeglin.org>
45606
c3db8364 45607 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45608 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45609 reboot.c.
f714229e 45610 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45611 (halt_mod_SOURCES): New variable.
45612 (halt_mod_CFLAGS): Likewise.
45613 (halt_mod_LDFLAGS): Likewise.
45614 (reboot_mod_SOURCES): Likewise.
45615 (reboot_mod_CFLAGS): Likewise.
45616 (reboot_mod_LDFLAGS): Likewise.
45617
c3db8364 45618 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45619 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45620 reboot.c.
f714229e 45621 (halt_mod_SOURCES): Likewise.
45622 (reboot_mod_SOURCES): Likewise.
45623
c3db8364 45624 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45625 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 45626 (reboot_mod_SOURCES): Likewise.
45627
45628 * commands/i386/pc/reboot.c: merge this file ...
45629
45630 * commands/ieee1275/reboot.c: ... and this file ...
45631
45632 * commands/reboot.c: ... to this file.
c3db8364 45633 Add some precompiler directive to include the correct header for
45634 each machine.
f714229e 45635
45636 * commands/ieee1275/halt.c: move this file ...
45637
45638 * commands/halt.c: ... to here.
c3db8364 45639 Add some precompiler directive to include the correct header for
45640 each machine.
f714229e 45641
45642 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45643 (grub_halt): Likewise.
45644
45645 * kern/efi/efi.c (grub_reboot): New function.
45646 (grub_halt): Likewise.
45647
c74493e0 456482008-02-12 Robert Millan <rmh@aybabtu.com>
45649
45650 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45651 /dev (like it is done for /dev/mapper). This doesn't provide support
45652 for EVMS, but at least it is now easy to identify the problem when it
45653 arises.
45654
d0db4b04 456552008-02-11 Robert Millan <rmh@aybabtu.com>
45656
45657 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45658 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45659 comparing it with -1, not 0.
45660
bf748642 456612008-02-10 Robert Millan <rmh@aybabtu.com>
45662
45663 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45664 `disk/lvm.c'.
45665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45666 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45667
45668 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45669 `disk/lvm.c' to the end of the list.
45670 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45671 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45672
b5db202a 456732008-02-10 Robert Millan <rmh@aybabtu.com>
45674
45675 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45676 grub_print_error() instead. This will let user know why we're entering
45677 rescue mode.
45678 Based on suggestions from Sam Morris.
45679
83abee31 456802008-02-10 Alexandre Boeglin <alex@boeglin.org>
45681
45682 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45683 on remaining N args, instead of "--" arg N times.
45684
78d5a08b 456852008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45686
45687 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45688 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45689 pattern for unknown glyphs.
45690
68807e5f 456912008-02-09 Robert Millan <rmh@aybabtu.com>
45692
45693 * configure.ac: Probe for `help2man'.
45694 * Makefile.in (builddir): New variable.
45695 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45696 or otherwise add a few flags/options to it.
45697 (install-local): For every executable utility or script that is
45698 installed, invoke $(HELP2MAN) to install a manpage based on --help
45699 output.
45700
45701 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45702 that it doesn't prevent --help from working in build tree.
45703
45704 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45705 with `bug-grub@gnu.org'.
45706 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45707 * util/update-grub.in (usage): New function.
45708 Implement proper argument check, with support for --help and --version
45709 (as well as existing -y).
45710
457112008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 45712
45713 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45714 avoid overwriting previous output.
45715 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45716
c1962162 457172008-02-09 Robert Millan <rmh@aybabtu.com>
45718
45719 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45720 drawing the menu.
45721
3dac2e3f 457222008-02-09 Robert Millan <rmh@aybabtu.com>
45723
45724 * commands/sleep.c: New file.
45725 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45726 (sleep_mod_SOURCES): New variable.
45727 (sleep_mod_CFLAGS): Likewise.
45728 (sleep_mod_LDFLAGS): Likewise.
45729
7a634e08 457302008-02-09 Robert Millan <rmh@aybabtu.com>
45731
45732 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45733 situations in which we can deduce the RAID size and the superblock
45734 doesn't match it.
45735
b92f0c18 457362008-02-09 Robert Millan <rmh@aybabtu.com>
45737
45738 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45739 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45740 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45741
45742 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45743 and return a grub_diskmemberlist_t composed of physical array members.
45744 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45745
45746 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45747 prototype.
45748 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45749 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45750 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45751
45752 * util/grub-probe.c (probe): Move partmap probing code from here ...
45753 (probe_partmap): ... to here.
45754 (probe): Use probe_partmap() once for the disk we're probing, and
45755 additionally, when such disk contains a memberlist() struct member,
45756 once for each disk that is contained in the structure returned by
45757 memberlist().
45758
91a4bf68 457592008-02-09 Robert Millan <rmh@aybabtu.com>
45760
45761 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45762 environment variable to 'all' in order to obtain debug output from
45763 non-util/ code.
45764 * util/i386/pc/grub-setup.c (main): Likewise.
45765
a96f9caa 457662008-02-08 Robert Millan <rmh@aybabtu.com>
45767
45768 * disk/raid.c (grub_raid_scan_device): Check for
45769 `array->device[sb.this_disk.number]' rather than for
45770 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 45771 guaranteed to be accessible.
a96f9caa 45772
b37a9222 457732008-02-08 Robert Millan <rmh@aybabtu.com>
45774
45775 * disk/raid.c: Update copyright.
45776 * fs/cpio.c: Likewise.
45777 * include/grub/raid.h: Likewise.
45778 * loader/i386/pc/multiboot.c: Likewise.
45779 * util/hostfs.c: Likewise.
45780
5626aee1 457812008-02-08 Robert Millan <rmh@aybabtu.com>
45782
45783 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45784 to a grub_disk_t array.
45785 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45786 `device[x]'.
45787 (grub_raid_scan_device): Replace `device[x].name' accesses with
45788 `device[x]->name'. Simplify initialization of `array->device[x]'.
45789
554f0187 457902008-02-08 Robert Millan <rmh@aybabtu.com>
45791
45792 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45793 grub_dprintf() calls.
45794 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45795 error message.
45796
1ec8425d 457972008-02-07 Christian Franke <franke@computer.org>
45798
45799 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45800 instead of fseek and ftell to support large files.
45801 (grub_hostfs_read): Likewise.
45802
f2156fda 458032008-02-07 Robert Millan <rmh@aybabtu.com>
45804
45805 Patch from Jeroen Dekkers.
45806 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 45807 failure, since successfully reading all array members might not be
f2156fda 45808 required.
45809
9216e0e7 458102008-02-06 Robert Millan <rmh@aybabtu.com>
45811
45812 * util/grub-probe.c (probe): Simplify partmap probing (with the
45813 assumption that the first word up to the underscore equals to
45814 the module name).
45815
b0dfd29a 458162008-02-06 Christian Franke <franke@computer.org>
45817
45818 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45819 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45820 last block of a cpio or tar stream.
45821 Check for "TRAILER!!!" instead of any empty data
45822 block to detect last block of a cpio stream.
45823 (grub_cpio_dir): Fix constness of variable np.
45824 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45825 cpio or tar trailer is detected. This fixes a crash
45826 on open of a non existing file.
45827
c32865bf 458282008-02-05 Bean <bean123ch@gmail.com>
45829
45830 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45831 address of entry.
45832 (grub_multiboot_load_elf64): Likewise.
45833 (grub_multiboot): Initialize mbi structure.
45834
45835 * util/grub-fstest.c: Don't include unused header file script.h.
45836
fe6b695a 45837 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 45838 of file.
45839 (grub_fstest_SOURCES): Likewise.
45840
409480b7 458412008-02-05 Robert Millan <rmh@aybabtu.com>
45842
45843 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45844 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45845 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45846 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45847
45848 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45849 (translation_table): Replace hardcoded values with macros
45850 provided by `<grub/term.h>'.
45851
45852 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45853 (keyboard_map): Correct/add a few values, with macros provided
45854 by `<grub/term.h>'.
45855 (keyboard_map_shift): Zero values that don't differ from their
45856 `keyboard_map' equivalents.
45857 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45858 Discard the second scan code that is always sent by Caps lock.
45859 Only use `keyboard_map_shift' when it provides a non-zero value,
45860 otherwise fallback to `keyboard_map'.
45861
99fadbaa 458622008-02-04 Bean <bean123ch@gmail.com>
45863
45864 * Makefile.in (enable_grub_fstest): New variable.
45865
45866 * conf/common.rmk (grub_fstest_init.lst): New rule.
45867 (grub_fstest_init.h): Likewise.
45868 (grub_fstest_init.c): Likewise.
45869 (util/grub-fstest.c_DEPENDENCIES): New variable.
45870 (grub_fstest_SOURCES): Likewise.
45871
45872 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45873
45874 * util/grub-fstest.c: New file.
45875
bf567c50 458762008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45877
45878 Make grub-setup handle a separate root device.
f19dbdb7 45879
bf567c50 45880 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45881 so that the root device can be compared with the destination
45882 device.
45883 When embedding the core image, if the root and destination devices
45884 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45885 0xFF.
45886 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 45887
9be6b98b 458882008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45889
45890 Add support for having a grub directory in a different drive. This
45891 is still only the data handling part.
f19dbdb7 45892
9be6b98b 45893 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45894 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45895 (grub_root_drive): New variable.
45896
45897 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45898 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45899 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45900 as it was.
45901
45902 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45903
45904 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45905 macro.
45906 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45907
45908 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45909 is bogus, because PXE booting does not specify any drive
45910 correctly.
45911
45912 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45913 am not sure if this is really correct.
45914
45915 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45916 is always identical to the boot drive when booting from a CD.
45917
45918 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45919 longer.
45920 (root_drive): New variable.
45921 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45922 (setup_sectors): Push %dx right after popping it, because %dh will
45923 be modified later.
45924 (copy_buffer): Restore %dx.
45925
e0ca0677 459262008-02-03 Robert Millan <rmh@aybabtu.com>
45927
45928 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45929 use `cdboot.img' for cdrom images.
45930
3b3f6629 459312008-02-03 Robert Millan <rmh@aybabtu.com>
45932
45933 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45934 only setup gfxterm when `font' command has succeeded.
45935
d42b3672 459362008-02-03 Robert Millan <rmh@aybabtu.com>
45937
45938 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45939 (grub_rescue_cmd_multiboot_loader)
45940 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45941
fa370ea6 459422008-02-03 Pavel Roskin <proski@gnu.org>
45943
e0c5dacb 45944 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 45945 %edx and %esi from stack only after grub_gate_a20() is called.
45946 grub_gate_a20() clobbers %edx.
45947
f2a76e1d 459482008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45949
45950 * configure.ac (AC_INIT): Bumped to 1.96.
45951
45952 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45953 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45954 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45955 video/readers/png.c.
45956
90fd32d1 459572008-02-03 Bean <bean123ch@gmail.com>
9be665dd 45958
45959 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45960 (cdboot_img_SOURCES): New variable.
45961 (cdboot_img_ASFLAGS): New variable.
45962 (cdboot_img_LDFLAGS): New variable.
45963
45964 * boot/i386/pc/cdboot.S: New file.
45965
45966 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45967 (cd_count): Likewise.
45968 (grub_biosdisk_get_drive): Add support for cd device.
45969 (grub_biosdisk_call_hook): Likewise.
45970 (grub_biosdisk_iterate): Likewise.
45971 (grub_biosdisk_open): Likewise.
45972 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45973 (grub_biosdisk_rw): Support reading from cd device.
45974 (GRUB_MOD_INIT): Iterate cd devices.
45975
45976 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45977 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45978 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45979
45980 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45981
4020aa53 459822008-02-02 Robert Millan <rmh@aybabtu.com>
45983
45984 * commands/read.c: New file.
45985 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45986 (read_mod_SOURCES): New variable.
45987 (read_mod_CFLAGS): Likewise.
45988 (read_mod_LDFLAGS): Likewise.
45989
e03a1132 459902008-02-02 Robert Millan <rmh@aybabtu.com>
45991
45992 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45993 determining whether menu has to be displayed.
45994
58c69220 459952008-02-02 Marco Gerards <marco@gnu.org>
45996
45997 * bus/pci.c: New file.
45998
45999 * include/grub/pci.h: Likewise.
46000
46001 * include/grub/i386/pc/pci.h: Likewise.
46002
46003 * commands/lspci.c: Likewise.
46004
46005 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46006 `lspci.mod'.
46007 (pci_mod_SOURCES): New variable.
46008 (pci_mod_CFLAGS): Likewise.
46009 (pci_mod_LDFLAGS): Likewise.
46010 (lspci_mod_SOURCES): Likewise.
46011 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 46012 (lspci_mod_LDFLAGS): Likewise.
58c69220 46013
c004e1b4 460142008-02-02 Bean <bean123ch@gmail.com>
46015
46016 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46017 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46018
46019 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46020 (grub_xfs_btree_node): New structure.
46021 (grub_xfs_btree_root): New structure.
46022 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46023 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46024 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46025 (GRUB_XFS_EXTENT_SIZE): Likewise.
46026 (grub_xfs_read_block): Support btree format type.
46027 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46028 Use directory block as basic unit.
46029
46030 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46031
46032 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46033 __attribute__ ((__regparm__ (1))).
46034
f95562bf 460352008-02-01 Robert Millan <rmh@aybabtu.com>
46036
46037 Correct a mistake in previous commit.
46038
46039 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46040 top.
46041 (normal/command.c_DEPENDENCIES): New variable.
46042
7d31f41f 460432008-02-01 Robert Millan <rmh@aybabtu.com>
46044
46045 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46046 top.
46047 (normal/command.c_DEPENDENCIES): New variable.
46048 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46049 * conf/i386-ieee1275.rmk: Likewise.
46050 * conf/i386-linuxbios.rmk: Likewise.
46051 * conf/i386-pc.rmk: Likewise.
46052 * conf/sparc64-ieee1275.rmk: Likewise.
46053 * conf/powerpc-ieee1275.rmk: Likewise.
46054 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46055
46056 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46057
60b6be74 460582008-02-01 Robert Millan <rmh@aybabtu.com>
46059
46060 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46061 call at beginning of function.
46062
078522ab 460632008-01-31 Pavel Roskin <proski@gnu.org>
46064
46065 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 46066 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46067 (grub_mkrescue_SOURCES): Likewise.
078522ab 46068 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46069
ccaa8a5f 460702008-01-30 Robert Millan <rmh@aybabtu.com>
46071
46072 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46073 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46074 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46075 (grub_probe_SOURCES): ... to here.
46076
46077 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46078 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46079 * conf/i386-ieee1275.rmk: Likewise.
46080 * conf/i386-linuxbios.rmk: Likewise.
46081 * conf/powerpc-ieee1275.rmk: Likewise.
46082
ae5a9cd7 460832008-01-30 Tristan Gingold <gingold@free.fr>
46084
46085 * kern/rescue.c: Silently accept empty lines.
46086
70bc2ef2 460872008-01-29 Bean <bean123ch@gmail.com>
46088
46089 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46090 (real_code_2): Code cleanup and change comment style.
46091 (move_memory): Avoid using 32-bit address mode.
46092
6a4d50ea 460932008-01-29 Bean <bean123ch@gmail.com>
46094
46095 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46096 (png_mod_SOURCES): New variable.
46097 (png_mod_CFLAGS): Likewise.
46098 (png_mod_LDFLAGS): Likewise.
46099
46100 * video/readers/png.c: New file.
46101
11cc30ac 461022008-01-28 Robert Millan <rmh@aybabtu.com>
46103
46104 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46105 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46106 `ifndef GRUB_MOD_GAP' hack.
46107 * util/elf/grub-mkimage.c (add_segments): Likewise.
46108
3abc589f 461092008-01-27 Robert Millan <rmh@aybabtu.com>
46110
46111 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46112 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 46113 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 46114
e1907778 461152008-01-27 Robert Millan <rmh@aybabtu.com>
46116
46117 Get grub-emu to build again (including parallel builds).
46118
46119 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46120 Split into ...
46121 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46122 (normal/execute.c_DEPENDENCIES): ... this, ...
46123 (grub-emu_DEPENDENCIES): ... and this.
46124
46125 * conf/i386-efi.rmk: Likewise.
46126 * conf/i386-linuxbios.rmk: Likewise.
46127 * conf/i386-ieee1275.rmk: Likewise.
46128 * conf/powerpc-ieee1275.rmk: Likewise.
46129 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46130
2216b101 461312008-01-27 Robert Millan <rmh@aybabtu.com>
46132
46133 * NEWS: Add a few items.
46134
f75172d9 461352008-01-27 Robert Millan <rmh@aybabtu.com>
46136
46137 Fix parallel builds with grub-emu. Based on earlier commit for
46138 grub-probe and grub-setup.
46139
46140 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46141 (util/grub-emu.c_DEPENDENCIES): ... this.
46142 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46143 (util/grub-emu.c_DEPENDENCIES): ... this.
46144 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46145 (util/grub-emu.c_DEPENDENCIES): ... this.
46146 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46147 (util/grub-emu.c_DEPENDENCIES): ... this.
46148 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46149 (util/grub-emu.c_DEPENDENCIES): ... this.
46150
3f51de77 461512008-01-27 Pavel Roskin <proski@gnu.org>
46152
46153 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46154 to create a gap between _end and the modules added to the image
46155 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46156 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46157 * util/elf/grub-mkimage.c (add_segments): Likewise.
46158
2033f53e 461592008-01-26 Pavel Roskin <proski@gnu.org>
46160
46161 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46162 just return an error.
46163
22da1f6f 461642008-01-26 Bean <bean123ch@gmail.com>
46165
46166 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46167 (grub_reiserfs_get_item): Save offset of the next item.
46168 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46169
2a9525e6 461702008-01-25 Robert Millan <rmh@aybabtu.com>
46171
46172 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46173 make all filesystem sources appear together (possibly fixing omissions
46174 while at it).
46175 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46176 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46177 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46178 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46179
46180 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46181 add `kern/file.c'.
46182 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46183 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46184 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46185 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46186
46187 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46188 (probe): Add a sanity check to make sure of our ability to read
46189 requested files when probing for filesystem type.
46190
46191 * genmk.rb: Update copyright year (2007).
46192
46193 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46194 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46195 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46196 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46197 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46198 : Remove function prototypes.
46199
b95f71b5 462002008-01-25 Robert Millan <rmh@aybabtu.com>
46201
46202 Revert my previous commits (based on wrong assumption of how grub_errno
46203 works).
46204
fe6b695a 46205 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 46206 * kern/file.c (grub_file_open): Likewise.
46207
d08bbb49 462082008-01-24 Pavel Roskin <proski@gnu.org>
46209
46210 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46211 that hang if GRUB tries to setup colors.
46212 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46213 colors for firmwares that don't support it.
46214 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46215 Recognize Open Hack'Ware, set flags to work around its
46216 limitations.
46217
605e36ed 462182008-01-24 Robert Millan <rmh@aybabtu.com>
46219
46220 * kern/file.c (grub_file_open): Do not account previous failures of
46221 unrelated functions when grub_errno is checked for.
46222 Reported by Oleg Strikov.
46223
bac332a1 462242008-01-24 Bean <bean123ch@gmail.com>
46225
46226 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46227 (grub_ufs_sblock): New member volume name.
46228 (grub_ufs_find_file): Fix string copy bug.
46229 (grub_ufs_label): Implement this function properly.
46230
46231 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46232 (grub_hfs_iterate_records): Use the correct file number for extents
46233 and catalog file. Fix problem in next index calculation.
46234 (grub_hfs_find_node): Replace recursive function call with loop.
46235 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46236
15c80c09 462372008-01-23 Robert Millan <rmh@aybabtu.com>
46238
46239 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46240 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46241 (grub_multiboot2_real_boot): New function prototype.
46242
46243 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46244 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46245
46246 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46247 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46248
305338fd 462492008-01-23 Robert Millan <rmh@aybabtu.com>
46250
46251 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46252 #ifdef'ed out grub_printf().
46253
3ea52685 462542008-01-23 Robert Millan <rmh@aybabtu.com>
46255
46256 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46257 grub_dprintf calls, since they make "debug=all" mode unusable.
46258 (grub_console_checkkey): Likewise.
46259
5882ae4b 462602008-01-23 Robert Millan <rmh@aybabtu.com>
46261
46262 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46263 `term/i386/pc/at_keyboard.c'.
46264 (pkglib_MODULES): Add `serial.mod'.
46265 (serial_mod_SOURCES): New variable.
46266 (serial_mod_CFLAGS): Likewise.
46267 (serial_mod_LDFLAGS): Likewise.
46268
46269 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46270 `<grub/powerpc/ieee1275/console.h>'.
46271 (grub_keyboard_controller_init): New function prototype.
46272 (grub_console_checkkey): Likewise.
46273 (grub_console_getkey): Likewise.
46274
46275 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46276 keyboard on i386.
46277
46278 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46279 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46280
06ab5303 462812008-01-23 Robert Millan <rmh@aybabtu.com>
46282
46283 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46284 present, "(memdisk)/boot/grub" becomes the default prefix.
46285
46286 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46287 a memdisk tarball with all the modules. Add --overlay=DIR option that
46288 allows users to overlay additional files into the image.
46289
dbb475a4 462902008-01-23 Robert Millan <rmh@aybabtu.com>
46291
46292 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46293 and `machine/memory.h'.
46294 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46295 (_multiboot_mod_SOURCES): New variable.
46296 (_multiboot_mod_CFLAGS): Likewise.
46297 (_multiboot_mod_LDFLAGS): Likewise.
46298 (multiboot_mod_SOURCES): Likewise.
46299 (multiboot_mod_CFLAGS): Likewise.
46300 (multiboot_mod_LDFLAGS): Likewise.
46301
46302 * include/grub/i386/ieee1275/loader.h: New file.
46303
46304 * include/grub/i386/ieee1275/machine.h: Likewise.
46305
46306 * include/grub/i386/ieee1275/memory.h: Likewise.
46307
46308 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46309 variable declaration.
46310 (grub_os_area_size): Likewise.
46311
46312 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46313 (grub_lower_mem, grub_upper_mem): New variables.
46314 (grub_stop_floppy): New function (just to make
46315 grub_multiboot2_real_boot() happy).
46316
46317 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46318 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46319 (grub_stop): New function.
46320 Include `"../realmode.S"' and `"../loader.S"'.
46321
46322 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46323 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46324
46325 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46326 rely on grub_multiboot2_real_boot() for final boot.
46327
25638629 463282008-01-22 Robert Millan <rmh@aybabtu.com>
46329
46330 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46331 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46332 device that doesn't look like an SD card.
46333 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46334 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46335 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46336 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46337 found.
46338
9dad816d 463392008-01-22 Robert Millan <rmh@aybabtu.com>
46340
46341 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46342 avoid claiming over our own code.
46343
34842f2d 463442008-01-22 Bean <bean123ch@gmail.com>
46345
46346 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46347 (jpeg_mod_SOURCES): New variable.
46348 (jpeg_mod_CFLAGS): Likewise.
46349 (jpeg_mod_LDFLAGS): Likewise.
46350
46351 * video/readers/jpeg.c : New file.
46352
44023a28 463532008-01-22 Bean <bean123ch@gmail.com>
46354
46355 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46356 there are no more items.
46357
bc2d8ac6 463582008-01-21 Robert Millan <rmh@aybabtu.com>
46359
46360 * kern/mm.c (grub_mm_init_region): Improve debug message.
46361
261bd4bc 463622008-01-21 Robert Millan <rmh@aybabtu.com>
46363
46364 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46365 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46366 address.
46367 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46368 a C macro.
46369 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46370 Indicates start of upper memory.
46371 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46372 (generate_image): Abort when image size is big enough to corrupt
46373 upper memory.
46374
46375 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46376 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46377 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46378 instead of hardcoding 0xA0000.
46379 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46380 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46381 instead of hardcoding 0xA0000.
46382
f970b55e 463832008-01-21 Robert Millan <rmh@aybabtu.com>
46384
46385 * disk/memdisk.c (memdisk_size): New variable.
46386 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46387 `memdisk_size'.
46388 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46389 image to dynamic memory.
46390 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46391 `memdisk_size'. Free memdisk block.
46392
1a8b0526 463932008-01-21 Robert Millan <rmh@aybabtu.com>
46394
46395 Fix detection of very small filesystems (like tar).
46396
46397 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46398 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46399 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46400 a problem with this disk).
46401
6e9b4aab 464022008-01-21 Robert Millan <rmh@aybabtu.com>
46403
46404 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46405 on grub_biosdisk_rw_standard() error.
46406
0d8837b2 464072008-01-21 Robert Millan <rmh@aybabtu.com>
46408
46409 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46410 recent changes.
46411 * kern/elf.c: Likewise.
46412 * kern/ieee1275/ieee1275.c: Likewise.
46413 * kern/powerpc/ieee1275/openfw.c: Likewise.
46414 * term/ieee1275/ofconsole.c: Likewise.
46415
ffd36e34 464162008-01-21 Robert Millan <rmh@aybabtu.com>
46417
46418 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46419
3f0093d0 46420 * include/grub/kernel.h (grub_arch_memdisk_addr)
46421 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 46422
3f0093d0 46423 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46424 (grub_arch_memdisk_size): ... to here.
ffd36e34 46425
6c391b21 464262008-01-21 Robert Millan <rmh@aybabtu.com>
46427
46428 Mostly based on bugfix from Bean.
46429
46430 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46431 attribute with hook() parameter.
46432 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46433 declaration.
46434 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46435 attribute with hook() parameter.
46436 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46437 declaration.
46438
55a581dc 464392008-01-21 Robert Millan <rmh@aybabtu.com>
46440
46441 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46442 (pkglib_MODULES): Add `memdisk.mod'.
46443 (memdisk_mod_SOURCES): New variable.
46444 (memdisk_mod_CFLAGS): Likewise.
46445 (memdisk_mod_LDFLAGS): Likewise.
46446
46447 * disk/memdisk.c: New file.
46448
46449 * include/grub/disk.h (grub_disk_dev_id): Add
46450 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46451
46452 * include/grub/i386/pc/kernel.h
46453 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46454 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46455 (grub_kernel_image_size): New variable declaration.
46456 (grub_total_module_size): Likewise.
46457 (grub_memdisk_image_size): Likewise.
46458
46459 * include/grub/i386/pc/memory.h
46460 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46461
46462 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46463 (grub_arch_memdisk_addr): New variable declaration.
46464 (grub_arch_memdisk_size): Likewise.
46465
46466 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46467 (grub_arch_memdisk_size): Likewise.
46468
46469 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46470 (codestart): Replace hardcoded `0x100000' with
46471 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46472
46473 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46474 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46475 not NULL, append the contents of the file it refers to, at the end of
46476 the compressed kernel image. Initialize `grub_memdisk_image_size'
46477 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46478 (options): Add "memdisk"|'m' option.
46479 (main): Parse --memdisk|-m option, and pass user-provided path as
46480 parameter to generate_image().
46481
3d7f54c9 464822008-01-20 Robert Millan <rmh@aybabtu.com>
46483
46484 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46485 grub_dprintf() calls from here ...
46486 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46487
0bf74728 464882008-01-20 Robert Millan <rmh@aybabtu.com>
46489
46490 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46491
46492 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46493 declaration.
46494 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46495 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46496 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 46497 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 46498 property).
46499 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46500 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46501
33bf70a7 465022008-01-19 Robert Millan <rmh@aybabtu.com>
46503
fe6b695a 46504 Get rid of confusing function (superseded by
33bf70a7 46505 `grub_ieee1275_get_integer_property')
46506 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46507 prototype.
46508 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46509 function.
46510 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46511 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 46512 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 46513
e2da7d26 465142008-01-19 Robert Millan <rmh@aybabtu.com>
46515
46516 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46517 command after "shut-down", since implementations differ on which
46518 the command for halt is.
46519
59f1fd8d 465202008-01-19 Robert Millan <rmh@aybabtu.com>
46521
46522 * include/grub/i386/linuxbios/console.h: Add header protection.
46523 (grub_keyboard_controller_init): New function prototype.
46524 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46525 (KEYBOARD_COMMAND_READ): Likewise.
46526 (KEYBOARD_COMMAND_WRITE): Likewise.
46527 (KEYBOARD_SCANCODE_SET1): Likewise.
46528 (grub_keyboard_controller_write): New function.
46529 (grub_keyboard_controller_read): Likewise.
46530 (grub_keyboard_controller_init): Likewise.
46531
46532 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46533 (grub_console_init): On coreboot/LinuxBIOS, call
46534 grub_keyboard_controller_init().
46535
5f5a7c15 465362008-01-19 Robert Millan <rmh@aybabtu.com>
46537
46538 PowerPC changes provided by Pavel Roskin.
46539
46540 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46541 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46542 don't rely on cmain() doing it.
46543 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46544 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46545
1210e168 465462008-01-16 Robert Millan <rmh@aybabtu.com>
46547
46548 * include/grub/i386/linuxbios/memory.h
46549 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46550 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46551 receive `table_header' as argument. Instead, probe for it in the
46552 known memory ranges where it can be present.
46553 (grub_available_iterate): Do not pass a fixed `table_header' address
46554 to grub_linuxbios_table_iterate().
46555
3d04eab8 465562008-01-15 Robert Millan <rmh@aybabtu.com>
46557
46558 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46559 * conf/i386-ieee1275.rmk: New file.
46560 * include/grub/i386/ieee1275/console.h: Likewise.
46561 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46562 * include/grub/i386/ieee1275/kernel.h: Likewise.
46563 * include/grub/i386/ieee1275/time.h: Likewise.
46564 * kern/i386/ieee1275/init.c: Likewise.
46565 * kern/i386/ieee1275/startup.S: Likewise.
46566
d1bc1b73 465672008-01-15 Robert Millan <rmh@aybabtu.com>
46568
46569 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46570 when pointers are 32-bit (but still do set it to one when they are
46571 64-bit).
46572
66a65807 465732008-01-15 Robert Millan <rmh@aybabtu.com>
46574
46575 * include/grub/ieee1275/ieee1275.h
46576 (grub_ieee1275_get_integer_property): New function prototype.
46577
46578 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46579 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 46580 grub_ieee1275_get_property() to handle endianness.
66a65807 46581
46582 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46583 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 46584 where appropriate.
66a65807 46585 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46586 (grub_map): Likewise.
46587 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46588
a83ccafd 465892008-01-15 Bean <bean123ch@gmail.com>
46590
46591 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46592 (grub_script_execute_cmdline): Reset grub_errno.
46593
46594 * normal/main.c (read_config_file): Reset grub_errno.
46595
46596 * normal/parse.y (script_init): New.
46597 (script): Move function and menuentry here.
46598 (delimiter): New.
46599 (command): Add delimiter at the end of command.
46600 (commands): Adjust to match the new command.
46601 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 46602 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 46603 (if): Use the new commands.
46604
46605 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46606
df6ecfc6 466072008-01-15 Robert Millan <rmh@aybabtu.com>
46608
46609 * normal/menu.c (run_menu): Move timeout message from here ...
46610 (print_timeout): ... to here.
46611 (run_menu): Use print_timeout() once during initial draw to print
46612 the whole message, and again in every clock tick to update only
46613 the number of seconds.
46614
87ae25eb 466152008-01-15 Robert Millan <rmh@aybabtu.com>
46616
46617 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46618 actual size of `available' from grub_ieee1275_get_property(), and
46619 restrict parsing to that bound.
46620
47bf09a4 466212008-01-15 Christian Franke <franke@computer.org>
46622
46623 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46624 (argp_program_version): Remove variable.
46625 (argp_program_bug_address): Likewise.
46626 (options): Convert from struct argp_option to struct option.
46627 (struct arguments): Remove.
46628 (parse_opt): Remove.
46629 (usage): New function.
46630 (main): Replace struct args members by simple variables.
46631 Replace argp_parse() by getopt_long().
46632 Add switch to evaluate options.
46633 Add missing "(...)" around root_dev in prefix string.
46634
c86f1469 466352008-01-14 Robert Millan <rmh@aybabtu.com>
46636
46637 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46638 for grub_ieee1275_exit(), in order to improve portability.
46639
e622c559 466402008-01-14 Robert Millan <rmh@aybabtu.com>
46641
46642 * util/grub.d/10_linux.in (prefix): Define.
46643 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46644
44cb1ec8 466452008-01-13 Pavel Roskin <proski@gnu.org>
46646
46647 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46648 grub_errno if no errors have been detected.
46649
1eb8c802 466502008-01-12 Robert Millan <rmh@aybabtu.com>
46651
46652 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46653 (grub_util_get_dev_abstraction): New function prototype.
46654
46655 * util/getroot.c: Include `<grub/util/getroot.h>'
46656 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46657 (grub_util_get_dev_abstraction): ... here (new function).
46658
46659 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46660 `PRINT_ABSTRACTION'.
46661 (probe): Probe for abstraction type when requested.
46662 (main): Understand `--target=abstraction'.
46663
46664 * util/i386/efi/grub-install.in: Add abstraction module to core
46665 image when it is found to be necessary.
46666 * util/i386/pc/grub-install.in: Likewise.
46667 * util/powerpc/ieee1275/grub-install.in: Likewise.
46668
46669 * util/update-grub_lib.in (font_path): Return system path without
46670 converting to GRUB path.
46671 * util/update-grub.in: Convert system path returned by font_path()
46672 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46673 abstraction module is needed for loading fonts (if any). Export
46674 that as `GRUB_PRELOAD_MODULES'.
46675 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46676 insmod commands).
46677
52bd3de9 466782008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46679
46680 Remove some unused code from reiserfs.
f19dbdb7 46681
52bd3de9 46682 * fs/reiserfs.c (struct grub_reiserfs_key)
46683 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46684 (struct grub_reiserfs_node_body): Removed.
46685 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46686 Likewise.
46687 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46688 Likewise.
46689 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46690 Likewise.
46691 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46692 Likewise.
46693 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46694 Likewise.
46695 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46696 Likewise.
46697 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46698 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46699 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46700
2f80039d 467012008-01-10 Robert Millan <rmh@aybabtu.com>
46702
46703 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46704 Determines if a file is garbage left by packaging systems, etc.
46705 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46706 for processing /etc/grub.d scripts.
46707 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46708 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46709 as a condition for processing Linux images.
46710
87888032 467112008-01-10 Pavel Roskin <proski@gnu.org>
46712
46713 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46714 to compile reiserfs.c on PowerPC.
46715
7e54fced 467162008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 46717
46718 * kern/device.c (grub_device_iterate): Do not abort device iteration
46719 when one of the devices cannot be opened.
46720 * kern/disk.c (grub_disk_open): Do not account previous failures of
46721 unrelated functions when grub_errno is checked for.
46722
5aa541e6 467232008-01-08 Robert Millan <rmh@aybabtu.com>
46724
46725 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46726 `! grub_linux_is_bzimage', change order of address comparison to make
46727 it more intuitive, and improve "too big zImage" error message.
46728
7076340d 467292008-01-08 Robert Millan <rmh@aybabtu.com>
46730
46731 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46732 `$(update-grub_DATA)'.
46733 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46734 targets.
46735
9ca70333 467362008-01-07 Robert Millan <rmh@aybabtu.com>
46737
46738 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46739 which instruction is modified by grub-setup during installation
46740 (since it wasn't obvious by only looking at this file).
46741
38ccf575 467422008-01-07 Robert Millan <rmh@aybabtu.com>
46743
46744 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46745 listing actual TODO items.
46746
f5db4291 467472008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46748
868967cf 46749 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46750 correctly.
46751 (grub_reiserfs_get_key_offset): Likewise.
46752 (grub_reiserfs_set_key_offset): Likewise.
46753 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 46754 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 46755
46756 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46757 better to remove the bitfield version completely.
f19dbdb7 46758
868967cf 467592008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 46760
f5db4291 46761 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46762 allocated from the heap, due to the fshelp implementation.
46763 (grub_reiserfs_dir): Free NODE, due to the same reason.
46764
492e6d9d 467652008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46766
46767 Mostly from Vincent Pelletier:
f19dbdb7 46768
492e6d9d 46769 * fs/reiserfs.c: New file.
f19dbdb7 46770
492e6d9d 46771 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46772 (reiserfs_mod_SOURCES): New variable.
46773 (reiserfs_mod_CFLAGS): Likewise.
46774 (reiserfs_mod_LDFLAGS): Likewise.
46775
46776 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46777 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46778 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46779 normal/color.c.
46780
9ce3e7c1 467812008-01-06 Robert Millan <rmh@aybabtu.com>
46782
46783 * normal/color.c: Remove `<grub/env.h>'.
46784
f3b58148 467852008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46786
46787 * include/grub/normal.h: Include <grub/env.h>.
46788
7ac3bcfa 467892008-01-05 Robert Millan <rmh@aybabtu.com>
46790
46791 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46792 usage example with `(hd0,1)'.
fb358190 46793 Reported by Samuel Thibault.
7ac3bcfa 46794
c8ee99d7 467952008-01-05 Robert Millan <rmh@aybabtu.com>
46796
46797 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46798 (grub_linux_boot_zimage): Rename to ...
46799 (grub_linux_boot): ... this.
46800 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46801 (grub_linux_boot_zimage): Conditionalize zImage copy.
46802
46803 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46804 (grub_linux_boot_bzimage): Remove prototype.
46805 (grub_linux_boot_zimage): Rename to ...
46806 (grub_linux_boot): ... this.
46807
46808 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46809 (grub_linux_boot): Remove function.
46810
0ece25b1 468112008-01-05 Robert Millan <rmh@aybabtu.com>
46812
46813 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46814 (grub_env_write_color_highlight): Likewise.
46815 (grub_wait_after_message): Likewise.
46816
46817 * normal/color.c: New file.
46818
46819 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46820 (normal_mod_DEPENDENCIES): Likewise.
46821
46822 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46823 (normal_mod_DEPENDENCIES): Likewise.
46824
46825 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46826 (normal_mod_DEPENDENCIES): Likewise.
46827
46828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46829 (normal_mod_DEPENDENCIES): Likewise.
46830
46831 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46832 for waiting after a message is printed.
46833 * normal/main.c (read_config_file): Likewise.
46834 (grub_normal_init): Register grub_env_write_color_normal() and
46835 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46836 `color_highlight' variables as global.
46837
46838 * normal/menu.c (grub_wait_after_message): New function.
46839 (grub_color_menu_normal): New variable. Replaces ...
46840 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46841 (grub_color_menu_highlight): New variable. Replaces ...
46842 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46843 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46844 `GRUB_TERM_COLOR_STANDARD'.
46845 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46846 `normal_code' and `highlight_code' to `old_color_normal' and
46847 `old_color_highlight', respectively.
46848 (grub_menu_init_page): Update colors when drawing the menu, based on
46849 `menu_color_normal' and `menu_color_highlight' variables.
46850 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46851 a message is printed.
46852
182dd4e5 468532008-01-05 Robert Millan <rmh@aybabtu.com>
46854
46855 * kern/env.c (grub_env_context_open): Propagate hooks for global
46856 variables to new context.
46857
46858 * kern/main.c (grub_set_root_dev): Export `root' variable.
46859
ddf8f6ad 468602008-01-05 Robert Millan <rmh@aybabtu.com>
46861
46862 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 46863 discs unconditionally, since udev and others have options to provide
ddf8f6ad 46864 them.
46865
d8b43d9b 468662008-01-05 Robert Millan <rmh@aybabtu.com>
46867
46868 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46869
2bff2de3 468702008-01-04 Christian Franke <franke@computer.org>
46871
46872 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46873 of eisa_mmap.
46874
97eab917 468752008-01-03 Pavel Roskin <proski@gnu.org>
46876
46877 * kern/i386/linuxbios/init.c: Put "void" to all function
46878 declarations with no arguments.
46879 * kern/powerpc/ieee1275/init.c: Likewise.
46880 * term/i386/pc/at_keyboard.c: Likewise.
46881 * term/i386/pc/vga_text.c: Likewise.
46882 * util/grub-mkdevicemap.c: Likewise.
46883
b9416d00 468842008-01-02 Robert Millan <rmh@aybabtu.com>
46885
46886 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46887 message when loaded image is out of bounds.
46888 (grub_multiboot_load_elf64): Likewise.
46889
92695df9 468902008-01-02 Pavel Roskin <proski@gnu.org>
46891
46892 * util/grub.d/10_linux.in: Try version without ".old" when
46893 looking for initrd. It's better to use initrd from the newer
46894 kernel of the same version than no initrd at all.
46895
d98d9cad 468962008-01-01 Robert Millan <rmh@aybabtu.com>
46897
46898 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46899
dbfdce36 469002008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46901
f19dbdb7 46902 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 46903 grub_video_get_active_render_target.
46904 (grub_video_adapter): Added unmap_color and get_active_render_target.
46905
f19dbdb7 46906 * video/video.c: Added grub_video_unmap_color and
dbfdce36 46907 grub_video_get_active_render_target.
46908 (grub_video_get_info): Changed method to accept NULL pointer as an
46909 argument to allow detection of active video adapter.
46910
46911 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46912 grub_video_vbe_unmap_color_int.
46913 Added grub_video_vbe_unmap_color and
46914 grub_video_vbe_get_active_render_target.
46915 (grub_video_vbe_adapter): Added unmap_color and
46916 get_active_render_target.
46917
f19dbdb7 46918 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 46919 with grub_video_vbe_unmap_color_int.
46920
46921 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46922 (DEFAULT_NORMAL_COLOR): Likewise.
46923 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46924 (DEFAULT_FG_COLOR): Removed.
46925 (DEFAULT_BG_COLOR): Likewise.
46926 (DEFAULT_CURSOR_COLOR): Changed value.
46927 (grub_virtual_screen): Added standard_color_setting,
46928 normal_color_setting, highlight_color_setting and term_color.
46929 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46930 (bitmap_width): Added.
46931 (bitmap_height): Likewise.
46932 (bitmap): Likewise.
46933 (set_term_color): Likewise.
46934 (grub_virtual_screen_setup): Changed to use new terminal coloring
46935 settings.
46936 (grub_gfxterm_init): Added init for bitmap.
46937 (grub_gfxterm_fini): Added destroy for bitmap.
46938 (redraw_screen_rect): Updated to use background bitmap and new
46939 terminal coloring.
46940 (scroll_up): Added optimization for case when there is no bitmap.
46941 (grub_gfxterm_cls): Fixed to use correct background color.
46942 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46943 coloring.
46944 (grub_virtual_screen_setcolor): Likewise.
46945 (grub_virtual_screen_getcolor): Added.
46946 (grub_gfxterm_background_image_cmd): Likewise.
46947 (grub_video_term): Added setcolor and getcolor.
46948 (MOD_INIT): Added registration of background_image command.
46949 (MOD_TERM): Added unregistration for background_image command.
46950
c3c20931 469512007-12-30 Pavel Roskin <proski@gnu.org>
46952
46953 * loader/multiboot_loader.c: Fix multiboot command
46954 unregistration. Fix all typos in the word "multiboot".
46955
df266716 469562007-12-29 Pavel Roskin <proski@gnu.org>
94239199 46957
46958 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46959 support for initrd names used in Fedora.
46960
fc6e896c 469612007-12-26 Bean <bean123ch@gmail.com>
46962
46963 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46964 (cpio_mod_SOURCES): New variable.
46965 (cpio_mod_CFLAGS): Likewise.
46966 (cpio_mod_LDFLAGS): Likewise.
46967
46968 * fs/cpio.c: New file.
46969
46970 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46971
46972 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46973
46974 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46975
46976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46977
533110ad 469782007-12-25 Robert Millan <rmh@aybabtu.com>
46979
46980 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46981 (grub_getcolor): New function.
46982
46983 * kern/term.c (grub_getcolor): New function.
46984 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46985 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46986 (print_entry): Set normal and highlight colors to
46987 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46988 respectively, before printing and restore them to old
46989 values afterwards.
46990 (grub_menu_init_page): Likewise. Fill an additional colored space
46991 that would otherwise be left blank.
46992
46993 * term/efi/console.c (grub_console_getcolor): New function.
46994 (struct grub_console_term.getcolor): New variable.
46995 * term/i386/pc/console.c (grub_console_getcolor): New function.
46996 (struct grub_console_term.getcolor): New variable.
46997 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46998 (struct grub_console_term.getcolor): New variable.
46999
47000 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47001 (struct grub_console_term.setcolor): Remove variable.
47002 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47003 (struct grub_console_term.setcolor): Remove variable.
47004 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47005 (struct grub_console_term.setcolor): Remove variable.
47006 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47007 (struct grub_console_term.setcolor): Remove variable.
47008
4931827f 470092007-12-25 Robert Millan <rmh@aybabtu.com>
47010
47011 * configure.ac: Search for possible unifont.hex locations, and
47012 define UNIFONT_HEX if found.
47013
47014 * Makefile.in (UNIFONT_HEX): Define variable.
47015 (DATA): Rename to ...
47016 (PKGLIB): ... this. Update all users.
47017 (PKGDATA): New variable.
47018 (pkgdata_IMAGES): Rename to ...
47019 (pkglib_IMAGES): ... this. Update all users.
47020 (pkgdata_MODULES): Rename to ...
47021 (pkglib_MODULES): ... this. Update all users.
47022 (pkgdata_PROGRAMS): Rename to ...
47023 (pkglib_PROGRAMS): ... this. Update all users.
47024 (pkgdata_DATA): Rename to ...
47025 (pkglib_DATA): ... this. Update all users.
47026 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47027 (unicode.pff, ascii.pff): New rules.
47028 (all-local): Add `$(PKGDATA)' dependency.
47029 (install-local): Process `$(PKGDATA)'.
47030
47031 * util/update-grub_lib.in (font_path): Search for *.pff files in
47032 a few more locations, including `${pkgdata}'.
47033
57e57e31 470342007-12-23 Robert Millan <rmh@aybabtu.com>
47035
47036 Patch from Bean <bean123ch@gmail.com>:
47037 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47038 `size'.
47039
4bc72aa9 470402007-12-21 Bean <bean123ch@gmail.com>
47041
47042 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47043 (ntfscomp_mod_SOURCES): New variable.
47044 (ntfscomp_mod_CFLAGS): Likewise.
47045 (ntfscomp_mod_LDFLAGS): Likewise.
47046
47047 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47048 (grub_probe_SOURCES): Likewise.
47049 (grub_emu_SOURCES): Likewise.
47050
47051 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47052 (grub_emu_SOURCES): Likewise.
47053
47054 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47055 (grub_emu_SOURCES): Likewise.
47056
47057 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47058 (grub_emu_SOURCES): Likewise.
47059
47060 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47061 (read_run_list): Renamed to grub_ntfs_read_run_list.
47062 (decomp_nextvcn): Moved to ntfscomp.c.
47063 (decomp_getch): Likewise.
47064 (decomp_get16): Likewise.
47065 (decomp_block): Likewise.
47066 (read_block): Likewise.
47067 (read_data): Partially moved to ntfscomp.c.
47068 (fixup): Change unsigned to grub_uint16_t.
47069 (read_mft): Change unsigned long to grub_uint32_t.
47070 (read_attr): Likewise.
47071 (read_data): Likewise.
47072 (read_run_data): Likewise.
47073 (read_run_list): Likewise.
47074 (read_mft): Likewise.
47075
47076 * fs/ntfscomp.c: New file.
47077
47078 * include/grub/ntfs.h: New file.
47079
af680a87 470802007-12-16 Robert Millan <rmh@aybabtu.com>
47081
47082 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47083 IDE disk check, since Linux is known to support 20 IDE disks.
47084 Reported by Colin Watson.
47085
84be7599 470862007-12-15 Bean <bean123ch@gmail.com>
47087
47088 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47089 (lnxboot_img_SOURCES): New variable.
47090 (lnxboot_img_ASFLAGS): Likewise.
47091 (lnxboot_img_LDFLAGS): Likewise.
47092
47093 * boot/i386/pc/lnxboot.S: New file.
47094
6af9db01 470952007-11-24 Pavel Roskin <proski@gnu.org>
47096
47097 * configure.ac: Test if '--build-id=none' is supported by the
47098 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47099 objcopy to generate incorrect binary files (binutils
47100 2.17.50.0.18-1 as shipped by Fedora 8).
47101 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47102 linking, so that build ID doesn't break the test.
47103
7361cfe6 471042007-11-24 Pavel Roskin <proski@gnu.org>
47105
47106 * include/grub/i386/time.h: use "void" in the argument list
47107 of grub_cpu_idle().
47108 * include/grub/powerpc/time.h: Likewise.
47109 * include/grub/sparc64/time.h: Likewise.
47110
1593e10c 471112007-11-18 Christian Franke <franke@computer.org>
47112
47113 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47114 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47115 This fixes the problem that function keys did not work in grub-emu.
47116
3b8db1a8 471172007-11-18 Christian Franke <franke@computer.org>
47118
47119 * disk/host.c (grub_host_open): Remove attribute unused from
47120 name parameter. Add check for "host". This fixes the problem
47121 that grub-emu does not find partitions.
47122
2e29408d 471232007-11-18 Christian Franke <franke@computer.org>
47124
47125 * util/hostfs.c (is_dir): New function.
47126 (grub_hostfs_dir): Handle missing dirent.d_type case.
47127 (grub_hostfs_read): Add missing fseek().
47128 (grub_hostfs_label): Clear label pointer. This fixes a crash
47129 of grub-emu on "ls (host)".
47130
398cd047 471312007-11-18 Christian Franke <franke@computer.org>
47132
47133 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47134 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47135 to 64 bit boundary by default.
47136
c405c391 471372007-11-18 Bean <bean123ch@gmail.com>
47138
47139 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47140 (hexdump_mod_SOURCES): New variable.
47141 (hexdump_mod_CFLAGS): Likewise.
47142 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 47143
c405c391 47144 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47145
47146 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47147
47148 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47149
47150 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47151
47152 * include/grub/hexdump.h: New file.
47153
47154 * commands/hexdump.c: New file.
47155
5cced7fd 471562007-11-10 Robert Millan <rmh@aybabtu.com>
47157
47158 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47159 in grub_outb() calls.
47160 (beep_on): Likewise.
47161
8b714eb0 471622007-11-10 Christian Franke <franke@computer.org>
47163
47164 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47165 (grub_menu_run): Likewise.
47166
ce0f1839 471672007-11-10 Robert Millan <rmh@aybabtu.com>
47168
47169 * include/grub/i386/efi/machine.h: New file.
47170 * include/grub/i386/linuxbios/machine.h: Likewise.
47171 * include/grub/i386/pc/machine.h: Likewise.
47172 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47173 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47174
47175 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47176 (serial_hw_io_addr): New variable.
47177 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47178 instead of `(unsigned short *) 0x400'.
47179
270c237d 471802007-11-10 Bean <bean123ch@gmail.com>
47181
47182 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47183
a87783bf 471842007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47185
47186 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47187 (vga_mod_SOURCES): Added.
47188 (vga_mod_CFLAGS): Likewise.
47189 (vga_mod_LDFLAGS): Likewise.
47190
47191 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47192 grub_outb() calls.
47193 (set_map_mask): Likewise.
47194 (set_read_map): Likewise.
47195 (set_read_address): Likewise.
47196 (vga_font): Removed variable.
47197 (get_vga_glyph): Removed function.
47198 (invalidate_char): Likewise.
47199 (write_char): Changed to use grub_font_get_glyph() for font
47200 information.
47201 (grub_vga_putchar): Likewise.
47202 (grub_vga_getcharwidth): Likewise.
47203
6433b448 472042007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47205
47206 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47207 flags.
47208 (pxeboot_img_LDFLAGS): Likewise.
47209 (diskboot_img_LDFLAGS): Likewise.
47210 (kernel_img_LDFLAGS): Likewise.
47211
49178511 472122007-11-06 Robert Millan <rmh@aybabtu.com>
47213
47214 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47215 in grub_outb() calls.
47216 (serial_hw_init): Likewise.
47217
53b052de 472182007-11-05 Robert Millan <rmh@aybabtu.com>
47219
47220 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47221 spaces. Skip non-regular files.
47222
5ab33bba 472232007-11-05 Robert Millan <rmh@aybabtu.com>
47224
47225 * kern/disk.c (grub_disk_firmware_fini)
47226 (grub_disk_firmware_is_tainted): New variables.
47227
47228 * include/grub/disk.h (grub_disk_firmware_fini)
47229 (grub_disk_firmware_is_tainted): Likewise.
47230
47231 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47232 (grub_disk_biosdisk_fini): ... to here.
47233 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47234 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47235 is set. Register grub_disk_biosdisk_fini() in
47236 `grub_disk_firmware_fini'.
47237
47238 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47239 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47240 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47241 to finish existing firmware disk interface.
47242
47243 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47244 (ata_mod_SOURCES): New variable.
47245 (ata_mod_CFLAGS): Likewise.
47246 (ata_mod_LDFLAGS): Likewise.
47247
0149ab7c 472482007-11-05 Robert Millan <rmh@aybabtu.com>
47249
47250 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47251 (grub_ata_wait): Reimplement using grub_millisleep().
47252
47253 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47254 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47255
be7ac41e 472562007-11-03 Marco Gerards <marco@gnu.org>
47257
47258 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47259 (CRTC_ADDR_PORT): New macro.
47260 (CRTC_DATA_PORT): Likewise.
47261 (CRTC_CURSOR): Likewise.
47262 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47263 (CRTC_CURSOR_ADDR_LOW): Likewise.
47264 (update_cursor): New function.
47265 (grub_console_real_putchar): Call `update_cursor'.
47266 (grub_console_gotoxy): Likewise.
47267 (grub_console_cls): Set the default color when clearing the
47268 screen.
47269 (grub_console_setcursor): Implemented.
47270
bb06ab2e 472712007-11-03 Marco Gerards <marco@gnu.org>
47272
47273 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47274 become activate.
47275 (grub_ata_pio_write): Likewise.
47276
47277 (grub_atapi_identify): Wait after issuing an ATA command.
47278 (grub_atapi_packet): Likewise.
47279 (grub_ata_identify): Likewise.
47280 (grub_ata_readwrite): Likewise.
47281
cf8f780b 472822007-11-03 Marco Gerards <marco@gnu.org>
47283
47284 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47285 (grub_ata_pio_write): Likewise.
47286 (grub_ata_readwrite): Use `grub_error', instead of
47287 returning `grub_errno'.
47288
ed649e54 472892007-11-03 Marco Gerards <marco@gnu.org>
47290
47291 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47292 grub_ata_pio_write once for every single sector, instead of for
47293 multiple sectors.
47294
ca25d8f0 472952007-10-31 Robert Millan <rmh@aybabtu.com>
47296
47297 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47298
47299 * conf/i386-linuxbios.rmk: New file.
47300
47301 * kern/i386/pc/hardware.c: Likewise.
47302 * term/i386/pc/at_keyboard.c: Likewise.
47303 * term/i386/pc/vga_text.c: Likewise.
47304
47305 * include/grub/i386/linuxbios/boot.h: Likewise.
47306 * include/grub/i386/linuxbios/console.h: Likewise.
47307 * include/grub/i386/linuxbios/init.h: Likewise.
47308 * include/grub/i386/linuxbios/kernel.h: Likewise.
47309 * include/grub/i386/linuxbios/loader.h: Likewise.
47310 * include/grub/i386/linuxbios/memory.h: Likewise.
47311 * include/grub/i386/linuxbios/serial.h: Likewise.
47312 * include/grub/i386/linuxbios/time.h: Likewise.
47313
47314 * kern/i386/linuxbios/init.c: Likewise.
47315 * kern/i386/linuxbios/startup.S: Likewise.
47316 * kern/i386/linuxbios/table.c: Likewise.
47317
e911ecc1 473182007-10-31 Marco Gerards <marco@gnu.org>
47319
47320 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47321 (ata_mod_SOURCES): New variable.
47322 (ata_mod_CFLAGS): Likewise.
47323 (ata_mod_LDFLAGS): Likewise.
47324
47325 * disk/ata.c: New file.
47326
47327 * include/grub/disk.h (grub_disk_dev_id): Add
47328 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 47329
7f66d0e0 473302007-10-31 Robert Millan <rmh@aybabtu.com>
47331
47332 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47333 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47334
47335 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47336 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47337
47338 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47339 `<grub/types.h>'.
47340
47341 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47342
5cd7dd46 473432007-10-27 Robert Millan <rmh@aybabtu.com>
47344
3236ca65 47345 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 47346
2ebfc90f 473472007-10-22 Robert Millan <rmh@aybabtu.com>
47348
47349 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47350 `"../realmode.S"'.
47351 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47352
73fcb0f3 473532007-10-22 Robert Millan <rmh@aybabtu.com>
47354
47355 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47356 (pkgdata_MODULES): Add `biosdisk.mod'.
47357 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47358 variables.
47359
47360 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47361 (grub_biosdisk_init): Replace with ...
47362 (GRUB_MOD_INIT(biosdisk)): ... this.
47363 (grub_biosdisk_fini): Replace with ...
47364 (GRUB_MOD_FINI(biosdisk)): ... this.
47365
47366 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47367 (grub_machine_init): Remove call to grub_biosdisk_init().
47368 (grub_machine_fini): Remove call to grub_machine_fini().
47369
47370 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47371
3381d274 473722007-10-22 Robert Millan <rmh@aybabtu.com>
47373
47374 * include/grub/time.h: New file.
47375 * include/grub/i386/time.h: Likewise.
47376 * include/grub/powerpc/time.h: Likewise.
47377 * include/grub/sparc64/time.h: Likewise.
47378
47379 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47380 instances to ...
47381 (KERNEL_MACHINE_TIME_HEADER): ... this.
47382 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47383 instances to ...
47384 (KERNEL_MACHINE_TIME_HEADER): ... this.
47385 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47386 instances to ...
47387 (KERNEL_MACHINE_TIME_HEADER): ... this.
47388
47389 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47390 (grub_millisleep): New function.
47391 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47392 (grub_millisleep): New function.
47393 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47394 Remove `grub/machine/time.h' include.
47395 (grub_millisleep): New function.
47396 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47397 Remove `grub/machine/time.h' include.
47398 (grub_millisleep): New function.
47399
47400 * include/grub/misc.h (grub_div_roundup): New function.
47401
47402 * kern/misc.c: Include `<grub/time.h>'.
47403 (grub_millisleep_generic): New function.
47404
47405 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47406 Add `time.h'.
47407 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47408 Add `time.h'.
47409 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47410 `machine/time.h'. Add `time.h'.
47411 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47412
a39a0312 474132007-10-21 Robert Millan <rmh@aybabtu.com>
47414
47415 * include/grub/misc.h (grub_max): New function.
47416
2aad70e2 474172007-10-21 Robert Millan <rmh@aybabtu.com>
47418
47419 * util/misc.c (grub_util_info): Call fflush() before returning.
47420
54b71c4b 474212007-10-20 Robert Millan <rmh@aybabtu.com>
47422
47423 * genmk.rb (Image): Copy `extra_flags' from here ...
47424 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47425
47426 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47427 to `argc' and `args' arguments.
47428
a979f513 474292007-10-17 Robert Millan <rmh@aybabtu.com>
47430
47431 * kern/i386/loader.S: New file.
47432
47433 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47434 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47435 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47436 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47437 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47438 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47439 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47440 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47441 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47442 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47443 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47444 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47445 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47446 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47447
47448 * kern/i386/realmode.S: New file.
47449
47450 * kern/i386/pc/startup.S (protstack): Moved from here ...
47451 * kern/i386/realmode.S (protstack)... to here.
47452 * kern/i386/pc/startup.S (gdt): Moved from here ...
47453 * kern/i386/realmode.S (gdt)... to here.
47454 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47455 * kern/i386/realmode.S (prot_to_real)... to here.
47456
47457 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47458 `kern/i386/realmode.S'.
47459
825fc8fd 474602007-10-17 Robert Millan <rmh@aybabtu.com>
47461
47462 * include/grub/i386/loader.h: New file.
47463
47464 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47465 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47466 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47467 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47468 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47469 * include/grub/i386/loader.h (grub_linux_prot_size)
47470 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47471 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47472 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47473 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47474
47475 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47476
e179b2f4 474772007-10-15 Robert Millan <rmh@aybabtu.com>
47478
47479 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47480 filesystem when dev->disk is unset.
47481 Do probe for filesystem even when dev->disk->has_partitions is set.
47482 In case a filesystem is found, always report it.
47483 In case it isn't, if dev->disk->has_partitions is set, report that
47484 a partition table was found instead of reporting that no filesystem
47485 could be identified.
47486
5db82af6 474872007-10-12 Robert Millan <rmh@aybabtu.com>
47488
47489 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47490 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47491
68f6ac74 47492 * include/grub/types.h (grub_host_to_target16): New macro.
47493 (grub_host_to_target32): Likewise.
47494 (grub_host_to_target64): Likewise.
47495 (grub_target_to_host16): Likewise.
47496 (grub_target_to_host32): Likewise.
47497 (grub_target_to_host64): Likewise.
5db82af6 47498
47499 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47500 Renamed from to ...
47501 (GRUB_MOD_ALIGN): ...this. Update all users.
47502
68f6ac74 47503 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47504 grub_host_to_target32.
47505 Replace grub_be_to_cpu32 with grub_target_to_host32.
47506 (load_modules): Likewise.
47507 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47508 Replace grub_be_to_cpu32 with grub_target_to_host32.
47509 Replace grub_cpu_to_be16 with grub_host_to_target16.
47510 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 47511
3cf497cc 475122007-10-12 Robert Millan <rmh@aybabtu.com>
47513
47514 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47515 * util/elf/grub-mkimage.c: ... here.
47516
47517 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47518 `util/powerpc/ieee1275/grub-mkimage.c'.
47519
c8cc3692 475202007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 47521
c8cc3692 47522 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47523 and make it easier to figure out.
47524 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47525 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47526 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47527 leave us with less than HEAP_MIN_SIZE total heap.
47528 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 47529
5c58b791 475302007-10-03 Robert Millan <rmh@aybabtu.com>
47531
47532 * include/grub/i386/io.h: New file.
47533 * commands/i386/pc/play.c (inb): Removed.
47534 (outb): Removed.
47535 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47536 with grub_outb().
afcd2ef8 47537 * term/i386/pc/serial.c (inb): Removed.
47538 (outb): Removed.
47539 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47540 with grub_outb().
47541 * term/i386/pc/vga.c (inb): Removed.
47542 (outb): Removed.
47543 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47544 with grub_outb().
5c58b791 47545
1a477ed6 475462007-10-02 Robert Millan <rmh@aybabtu.com>
47547
47548 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47549 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47550 Reported by Marcin Kurek.
47551
6b5d80fa 475522007-09-07 Robert Millan <rmh@aybabtu.com>
47553
47554 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47555 SmartFirmware version updates (as released by Sven Luther), and avoid
47556 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47557 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47558 known broken.
47559
5618afbf 475602007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47561
47562 From Hitoshi Ozeki:
47563 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47564 when merging two regions.
47565
6139dcd9 475662007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47567
508e39ee 47568 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47569 * normal/completion.c (grub_normal_do_completion): Likewise.
47570 Reported by Hitoshi Ozeki.
47571
475722007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 47573
6139dcd9 47574 Do not use devices at boot in chainloading.
f19dbdb7 47575
6139dcd9 47576 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47577 (boot_part_addr): Likewise.
47578 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47579 with BOOT_DRIVE and BOOT_PART_ADDR.
47580 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47581 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47582
38da6516 475832007-08-29 Robert Millan <rmh@aybabtu.com>
47584
47585 Patch from Simon Peter <dn.tlp@gmx.net>:
47586 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47587 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47588 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47589 util/i386/pc/grub-setup.c_DEPENDENCIES.
47590 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47591 util/grub-probe.c_DEPENDENCIES.
47592 * conf/powerpc-ieee1275.rmk: Likewise.
47593
29d0928c 475942007-08-28 Robert Millan <rmh@aybabtu.com>
47595
47596 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47597 to tell grub-mkdevicemap how to name devices.
47598 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47599 feature).
47600
47601 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47602 util/i386/get_disk_name.c.
47603 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47604 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47605 util/ieee1275/get_disk_name.c.
47606
47607 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47608
47609 * DISTLIST: Add util/i386/get_disk_name.c and
47610 util/ieee1275/get_disk_name.c.
47611
47612 * util/grub-mkdevicemap.c: Replace device naming logic with
47613 grub_util_get_disk_name() calls.
47614
5a0d3cca 476152007-08-20 Robert Millan <rmh@aybabtu.com>
47616
47617 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47618 (so that it works for both plural and singular quantities).
47619
8b72db2f 476202007-08-05 Robert Millan <rmh@aybabtu.com>
47621
47622 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47623 so that [xz] isn't taken into account when determining order.
47624
352466bf 476252007-08-02 Marco Gerards <marco@gnu.org>
47626
47627 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47628 `include/multiboot2.h', `include/grub/elfload.h',
47629 `include/multiboot.h', `include/grub/multiboot.h',
47630 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47631 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47632 `kern/elf.c', `loader/multiboot_loader.c',
47633 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47634 `loader/i386/pc/multiboot2.c',
47635 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47636 `util/i386/pc/grub-mkrescue.in'. Remove
47637 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47638 `include/grub/i386/pc/util/biosdisk.h' and
47639 `include/grub/powerpc/ieee1275/multiboot.h'.
47640
8f096014 476412007-08-02 Bean <bean123ch@gmail.com>
47642
47643 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47644 (ntfs_mod_SOURCES): New variable.
47645 (ntfs_mod_CFLAGS): Likewise.
47646 (ntfs_mod_LDFLAGS): Likewise.
47647
47648 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47649 (grub_probe_SOURCES): Likewise.
47650 (grub_emu_SOURCES): Likewise.
47651
47652 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47653 (grub_emu_SOURCES): Likewise.
47654
47655 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47656 (grub_emu_SOURCES): Likewise.
f19dbdb7 47657
8f096014 47658 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47659
47660 * fs/ntfs.c: New file.
47661
9959f7db 476622007-08-02 Bean <bean123ch@gmail.com>
47663
47664 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47665
47666 * file.h (grub_file): Likewise.
47667
47668 * fshelp.h (grub_fshelp_read_file): Likewise.
47669
47670 * util/i386/pc/grub-setup.c (setup): Likewise.
47671 (save_first_sector): Likewise.
47672 (save_blocklists): Likewise.
f19dbdb7 47673
9959f7db 47674 * fs/affs.c (grub_affs_read_file): Likewise.
47675
47676 * fs/ext2.c (grub_ext2_read_file): Likewise.
47677
47678 * fs/fat.c (grub_fat_read_data): Likewise.
47679
47680 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47681
47682 * fs/hfs.c (grub_hfs_read_file): Likewise.
47683
47684 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47685
47686 * fs/jfs.c (grub_jfs_read_file): Likewise.
47687
47688 * fs/minix.c (grub_minix_read_file): Likewise.
47689
47690 * fs/sfs.c (grub_sfs_read_file): Likewise.
47691
47692 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 47693
9959f7db 47694 * fs/xfs.c (grub_xfs_read_file): Likewise.
47695
47696 * command/blocklist.c (read_blocklist): Likewise.
47697 (print_blocklist): Likewise.
47698
0a203f83 476992007-08-02 Marco Gerards <marco@gnu.org>
47700
47701 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47702 `util/hostfs.c'.
47703
47704 * disk/host.c: New file.
47705
47706 * util/hostfs.c: Likewise.
47707
47708 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47709 return `GRUB_ERR_BAD_FS'.
47710 * fs/sfs.c (grub_sfs_mount): Likewise.
47711 * fs/xfs.c (grub_xfs_mount): Likewise.
47712
47713 * include/grub/disk.h (enum grub_disk_dev_id): Add
47714 `GRUB_DISK_DEVICE_HOST_ID'.
47715
47716 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47717
e5dfe777 477182007-07-24 Jerone Young <jerone@gmail.com>
47719
f19dbdb7 47720 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 47721 modules for compilation.
47722 * conf/powerpc-ieee1275.rmk: Likewise.
47723
47724 * include/multiboot.h: Move multiboot definitions to one file. Rename
47725 many definitions to not get grub specific.
47726 * include/multiboot2.h: Create header with multiboot 2 definitions.
47727 * include/grub/multiboot.h: Header for grub specific function
47728 prototypes and definitions.
47729 * include/grub/multiboot2.h: Likewise.
47730 * include/grub/multiboot_loader.h: Likewise.
47731 * include/grub/i386/pc/multiboot.h: Removed.
47732 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47733
47734 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47735 and 2 to allow for one multiboot and module commands.
47736 * loader/multiboot2.c: Add multiboot2 functionality.
47737 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47738 and definition names.
47739 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47740 2 functions.
47741 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47742 ieee1275 specific multiboot2 code.
47743
47744 * kern/i386/pc/startup.S: Change headers and definition names for
47745 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47746
daf0f0ba 477472007-07-22 Robert Millan <rmh@aybabtu.com>
47748
47749 * geninitheader.sh: Process file specified in first parameter rather
47750 than hardcoding grub_modules_init.lst.
fe6b695a 47751 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 47752 than hardcoding grub_modules_init.h.
47753
47754 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47755 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47756 grub_probe_init.[ch] and grub_setup_init.[ch].
47757
47758 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47759 grub_modules_init.h with grub_emu_init.h.
47760 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47761 grub_probe_init.[ch] files.
47762 * conf/i386-efi.rmk: Likewise.
47763 * conf/i386-pc.rmk: Likewise.
47764 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47765 grub_setup_init.[ch] files.
47766
47767 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47768 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47769 to initialize modules rather than a list of hardcoded functions.
47770 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47771 grub_init_all() to initialize modules rather than a list of hardcoded
47772 functions.
47773
54cdc1cc 477742007-07-22 Robert Millan <rmh@aybabtu.com>
47775
47776 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47777 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47778
ad0686cc 477792007-07-22 Robert Millan <rmh@aybabtu.com>
47780
47781 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47782 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47783 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47784 flag when running on SmartFirmware.
47785 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47786 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47787 was set.
47788
47789 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47790 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47791 rather than decreasing it.
47792
47793 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47794 there's not enough space to do it, fail in the same way as when it
47795 can't be done because there are no partitions.
47796
47797 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47798 when nvsetenv failed.
47799
969c02ec 478002007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47801
47802 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47803 because this rule is automatically generated.
47804 (grub-mkrescue): Removed for the same reason as above.
47805
5a79f472 478062007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47807
47808 Migrate to GNU General Public License Version 3.
f19dbdb7 47809
5a79f472 47810 * COPYING: Replaced with the plain text version of GPLv3.
47811
47812 * config.guess: Updated from gnulib.
47813 * config.sub: Likewise.
47814
47815 * geninit.sh: Output a GPLv3 copyright notice.
47816 * geninitheader.sh: Likewise.
47817 * genmodsrc.sh: Likewise.
47818 * gensymlist.sh.in: Likewise.
47819
47820 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47821 * boot/i386/pc/diskboot.S: Likewise.
47822 * boot/i386/pc/pxeboot.S: Likewise.
47823 * commands/blocklist.c: Likewise.
47824 * commands/boot.c: Likewise.
47825 * commands/cat.c: Likewise.
47826 * commands/cmp.c: Likewise.
47827 * commands/configfile.c: Likewise.
47828 * commands/echo.c: Likewise.
47829 * commands/help.c: Likewise.
47830 * commands/ls.c: Likewise.
47831 * commands/search.c: Likewise.
47832 * commands/terminal.c: Likewise.
47833 * commands/test.c: Likewise.
47834 * commands/videotest.c: Likewise.
47835 * commands/i386/cpuid.c: Likewise.
47836 * commands/i386/pc/halt.c: Likewise.
47837 * commands/i386/pc/play.c: Likewise.
47838 * commands/i386/pc/reboot.c: Likewise.
47839 * commands/i386/pc/vbeinfo.c: Likewise.
47840 * commands/i386/pc/vbetest.c: Likewise.
47841 * commands/ieee1275/halt.c: Likewise.
47842 * commands/ieee1275/reboot.c: Likewise.
47843 * commands/ieee1275/suspend.c: Likewise.
47844 * disk/loopback.c: Likewise.
47845 * disk/lvm.c: Likewise.
47846 * disk/raid.c: Likewise.
47847 * disk/efi/efidisk.c: Likewise.
47848 * disk/i386/pc/biosdisk.c: Likewise.
47849 * disk/ieee1275/ofdisk.c: Likewise.
47850 * font/manager.c: Likewise.
47851 * fs/affs.c: Likewise.
47852 * fs/ext2.c: Likewise.
47853 * fs/fat.c: Likewise.
47854 * fs/fshelp.c: Likewise.
47855 * fs/hfs.c: Likewise.
47856 * fs/hfsplus.c: Likewise.
47857 * fs/iso9660.c: Likewise.
47858 * fs/jfs.c: Likewise.
47859 * fs/minix.c: Likewise.
47860 * fs/sfs.c: Likewise.
47861 * fs/ufs.c: Likewise.
47862 * fs/xfs.c: Likewise.
47863 * hello/hello.c: Likewise.
47864 * include/grub/acorn_filecore.h: Likewise.
47865 * include/grub/arg.h: Likewise.
47866 * include/grub/bitmap.h: Likewise.
47867 * include/grub/boot.h: Likewise.
47868 * include/grub/cache.h: Likewise.
47869 * include/grub/device.h: Likewise.
47870 * include/grub/disk.h: Likewise.
47871 * include/grub/dl.h: Likewise.
47872 * include/grub/elfload.h: Likewise.
47873 * include/grub/env.h: Likewise.
47874 * include/grub/err.h: Likewise.
47875 * include/grub/file.h: Likewise.
47876 * include/grub/font.h: Likewise.
47877 * include/grub/fs.h: Likewise.
47878 * include/grub/fshelp.h: Likewise.
47879 * include/grub/gzio.h: Likewise.
47880 * include/grub/hfs.h: Likewise.
47881 * include/grub/kernel.h: Likewise.
47882 * include/grub/loader.h: Likewise.
47883 * include/grub/lvm.h: Likewise.
47884 * include/grub/misc.h: Likewise.
47885 * include/grub/mm.h: Likewise.
47886 * include/grub/net.h: Likewise.
47887 * include/grub/normal.h: Likewise.
47888 * include/grub/parser.h: Likewise.
47889 * include/grub/partition.h: Likewise.
47890 * include/grub/pc_partition.h: Likewise.
47891 * include/grub/raid.h: Likewise.
47892 * include/grub/rescue.h: Likewise.
47893 * include/grub/script.h: Likewise.
47894 * include/grub/setjmp.h: Likewise.
47895 * include/grub/symbol.h: Likewise.
47896 * include/grub/term.h: Likewise.
47897 * include/grub/terminfo.h: Likewise.
47898 * include/grub/tparm.h: Likewise.
47899 * include/grub/types.h: Likewise.
47900 * include/grub/video.h: Likewise.
47901 * include/grub/efi/api.h: Likewise.
47902 * include/grub/efi/chainloader.h: Likewise.
47903 * include/grub/efi/console.h: Likewise.
47904 * include/grub/efi/console_control.h: Likewise.
47905 * include/grub/efi/disk.h: Likewise.
47906 * include/grub/efi/efi.h: Likewise.
47907 * include/grub/efi/pe32.h: Likewise.
47908 * include/grub/efi/time.h: Likewise.
47909 * include/grub/i386/linux.h: Likewise.
47910 * include/grub/i386/setjmp.h: Likewise.
47911 * include/grub/i386/types.h: Likewise.
47912 * include/grub/i386/efi/kernel.h: Likewise.
47913 * include/grub/i386/efi/loader.h: Likewise.
47914 * include/grub/i386/efi/time.h: Likewise.
47915 * include/grub/i386/pc/biosdisk.h: Likewise.
47916 * include/grub/i386/pc/boot.h: Likewise.
47917 * include/grub/i386/pc/chainloader.h: Likewise.
47918 * include/grub/i386/pc/console.h: Likewise.
47919 * include/grub/i386/pc/init.h: Likewise.
47920 * include/grub/i386/pc/kernel.h: Likewise.
47921 * include/grub/i386/pc/loader.h: Likewise.
47922 * include/grub/i386/pc/memory.h: Likewise.
47923 * include/grub/i386/pc/multiboot.h: Likewise.
47924 * include/grub/i386/pc/serial.h: Likewise.
47925 * include/grub/i386/pc/time.h: Likewise.
47926 * include/grub/i386/pc/vbe.h: Likewise.
47927 * include/grub/i386/pc/vbeblit.h: Likewise.
47928 * include/grub/i386/pc/vbefill.h: Likewise.
47929 * include/grub/i386/pc/vbeutil.h: Likewise.
47930 * include/grub/i386/pc/vga.h: Likewise.
47931 * include/grub/ieee1275/ieee1275.h: Likewise.
47932 * include/grub/ieee1275/ofdisk.h: Likewise.
47933 * include/grub/powerpc/libgcc.h: Likewise.
47934 * include/grub/powerpc/setjmp.h: Likewise.
47935 * include/grub/powerpc/types.h: Likewise.
47936 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47937 * include/grub/powerpc/ieee1275/console.h: Likewise.
47938 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47939 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47940 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47941 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47942 * include/grub/powerpc/ieee1275/time.h: Likewise.
47943 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47944 * include/grub/sparc64/libgcc.h: Likewise.
47945 * include/grub/sparc64/setjmp.h: Likewise.
47946 * include/grub/sparc64/types.h: Likewise.
47947 * include/grub/sparc64/ieee1275/console.h: Likewise.
47948 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47949 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47950 * include/grub/sparc64/ieee1275/time.h: Likewise.
47951 * include/grub/util/biosdisk.h: Likewise.
47952 * include/grub/util/getroot.h: Likewise.
47953 * include/grub/util/lvm.h: Likewise.
47954 * include/grub/util/misc.h: Likewise.
47955 * include/grub/util/raid.h: Likewise.
47956 * include/grub/util/resolve.h: Likewise.
47957 * io/gzio.c: Likewise.
47958 * kern/device.c: Likewise.
47959 * kern/disk.c: Likewise.
47960 * kern/dl.c: Likewise.
47961 * kern/elf.c: Likewise.
47962 * kern/env.c: Likewise.
47963 * kern/err.c: Likewise.
47964 * kern/file.c: Likewise.
47965 * kern/fs.c: Likewise.
47966 * kern/loader.c: Likewise.
47967 * kern/main.c: Likewise.
47968 * kern/misc.c: Likewise.
47969 * kern/mm.c: Likewise.
47970 * kern/parser.c: Likewise.
47971 * kern/partition.c: Likewise.
47972 * kern/rescue.c: Likewise.
47973 * kern/term.c: Likewise.
47974 * kern/efi/efi.c: Likewise.
47975 * kern/efi/init.c: Likewise.
47976 * kern/efi/mm.c: Likewise.
47977 * kern/i386/dl.c: Likewise.
47978 * kern/i386/efi/init.c: Likewise.
47979 * kern/i386/efi/startup.S: Likewise.
47980 * kern/i386/pc/init.c: Likewise.
47981 * kern/i386/pc/lzo1x.S: Likewise.
47982 * kern/i386/pc/startup.S: Likewise.
47983 * kern/ieee1275/ieee1275.c: Likewise.
47984 * kern/powerpc/cache.S: Likewise.
47985 * kern/powerpc/dl.c: Likewise.
47986 * kern/powerpc/ieee1275/cmain.c: Likewise.
47987 * kern/powerpc/ieee1275/crt0.S: Likewise.
47988 * kern/powerpc/ieee1275/init.c: Likewise.
47989 * kern/powerpc/ieee1275/openfw.c: Likewise.
47990 * kern/sparc64/cache.S: Likewise.
47991 * kern/sparc64/dl.c: Likewise.
47992 * kern/sparc64/ieee1275/init.c: Likewise.
47993 * kern/sparc64/ieee1275/openfw.c: Likewise.
47994 * loader/efi/chainloader.c: Likewise.
47995 * loader/efi/chainloader_normal.c: Likewise.
47996 * loader/i386/efi/linux.c: Likewise.
47997 * loader/i386/efi/linux_normal.c: Likewise.
47998 * loader/i386/pc/chainloader.c: Likewise.
47999 * loader/i386/pc/chainloader_normal.c: Likewise.
48000 * loader/i386/pc/linux.c: Likewise.
48001 * loader/i386/pc/linux_normal.c: Likewise.
48002 * loader/i386/pc/multiboot.c: Likewise.
48003 * loader/i386/pc/multiboot_normal.c: Likewise.
48004 * loader/powerpc/ieee1275/linux.c: Likewise.
48005 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48006 * normal/arg.c: Likewise.
48007 * normal/cmdline.c: Likewise.
48008 * normal/command.c: Likewise.
48009 * normal/completion.c: Likewise.
48010 * normal/execute.c: Likewise.
48011 * normal/function.c: Likewise.
48012 * normal/lexer.c: Likewise.
48013 * normal/main.c: Likewise.
48014 * normal/menu.c: Likewise.
48015 * normal/menu_entry.c: Likewise.
48016 * normal/misc.c: Likewise.
48017 * normal/parser.y: Likewise.
48018 * normal/script.c: Likewise.
48019 * normal/i386/setjmp.S: Likewise.
48020 * normal/powerpc/setjmp.S: Likewise.
48021 * normal/sparc64/setjmp.S: Likewise.
48022 * partmap/acorn.c: Likewise.
48023 * partmap/amiga.c: Likewise.
48024 * partmap/apple.c: Likewise.
48025 * partmap/gpt.c: Likewise.
48026 * partmap/pc.c: Likewise.
48027 * partmap/sun.c: Likewise.
48028 * term/gfxterm.c: Likewise.
48029 * term/terminfo.c: Likewise.
48030 * term/efi/console.c: Likewise.
48031 * term/i386/pc/console.c: Likewise.
48032 * term/i386/pc/serial.c: Likewise.
48033 * term/i386/pc/vesafb.c: Likewise.
48034 * term/i386/pc/vga.c: Likewise.
48035 * term/ieee1275/ofconsole.c: Likewise.
48036 * util/biosdisk.c: Likewise.
48037 * util/console.c: Likewise.
48038 * util/genmoddep.c: Likewise.
48039 * util/getroot.c: Likewise.
48040 * util/grub-emu.c: Likewise.
48041 * util/grub-mkdevicemap.c: Likewise.
48042 * util/grub-probe.c: Likewise.
48043 * util/lvm.c: Likewise.
48044 * util/misc.c: Likewise.
48045 * util/raid.c: Likewise.
48046 * util/resolve.c: Likewise.
48047 * util/update-grub.in: Likewise.
48048 * util/update-grub_lib.in: Likewise.
48049 * util/grub.d/00_header.in: Likewise.
48050 * util/grub.d/10_hurd.in: Likewise.
48051 * util/grub.d/10_linux.in: Likewise.
48052 * util/i386/efi/grub-install.in: Likewise.
48053 * util/i386/efi/grub-mkimage.c: Likewise.
48054 * util/i386/pc/grub-install.in: Likewise.
48055 * util/i386/pc/grub-mkimage.c: Likewise.
48056 * util/i386/pc/grub-mkrescue.in: Likewise.
48057 * util/i386/pc/grub-setup.c: Likewise.
48058 * util/i386/pc/misc.c: Likewise.
48059 * util/powerpc/ieee1275/grub-install.in: Likewise.
48060 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48061 * util/powerpc/ieee1275/misc.c: Likewise.
48062 * video/bitmap.c: Likewise.
48063 * video/video.c: Likewise.
48064 * video/i386/pc/vbe.c: Likewise.
48065 * video/i386/pc/vbeblit.c: Likewise.
48066 * video/i386/pc/vbefill.c: Likewise.
48067 * video/i386/pc/vbeutil.c: Likewise.
48068 * video/readers/tga.c: Likewise.
48069
3572d015 480702007-07-02 Robert Millan <rmh@aybabtu.com>
48071
48072 * conf/i386-efi.rmk: Replace obsolete reference to
48073 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48074 with util/getroot.c.
48075 * conf/powerpc-ieee1275.rmk: Likewise.
48076 * conf/sparc64-ieee1275.rmk: Likewise.
48077
48078 * util/grub-emu.c (main): Fix unchecked pointer handling.
48079
2c2a681b 480802007-07-02 Robert Millan <rmh@aybabtu.com>
48081
48082 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48083 invocation to fail, in order to support partition-less media.
48084
48085 * util/i386/pc/grub-install.in: Likewise.
48086
48087 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48088 which fs or partmap modules are needed (akin to its sister scripts).
48089
48090 Also use grub-probe to get rid of unportable /proc/mounts check.
48091
48092 Print the same informational message that the other scripts do, before
fe6b695a 48093 exiting.
2c2a681b 48094
6193defe 480952007-06-23 Robert Millan <rmh@aybabtu.com>
48096
fe6b695a 48097 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 48098 a font file can be found and, if so, echo the GRUB path to it.
48099
48100 * util/update-grub.in: Handle multiple terminals depending on user
48101 input, platform availability and font file presence. Propagate
48102 variables of our findings to /etc/grub.d/ children.
48103
48104 * util/grub.d/00_header.in: Handle multiple terminals, based on
48105 environment setup by update-grub.
48106
eface1dc 481072007-06-23 Robert Millan <rmh@aybabtu.com>
48108
ba50d28f 48109 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 48110
bf697e28 481112007-06-21 Robert Millan <rmh@aybabtu.com>
48112
48113 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48114 indicate end of data section in kernel image.
48115 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48116 GRUB_KERNEL_MACHINE_DATA_END.
48117
48118 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48119 space for it.
48120 * kern/i386/efi/startup.S: Likewise.
48121
48122 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48123 during image generation. Implement --prefix option to override this
48124 patch.
48125 * util/i386/efi/grub-mkimage.c: Likewise.
48126
48127 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48128 code to make path relative to its root into a separate function.
48129
48130 * util/i386/pc/grub-install.in: Use newly provided
48131 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48132 pass the result to grub-install --prefix.
48133
baa574b4 481342007-06-13 Robert Millan <rmh@aybabtu.com>
48135
48136 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48137 DEFAULT_DEVICE_MAP.
48138 * util/grub-emu.c: Use above definitions from misc.h instead of
48139 defining them.
48140 * util/grub-mkdevicemap.c: Likewise.
48141 * util/i386/pc/grub-setup.c: Likewise.
48142 * util/grub-probe.c: Likewise.
48143 (probe): Abort with grub_util_error() when either
48144 grub_guess_root_device or grub_util_get_grub_dev fails.
48145
0215dcbf 481462007-06-12 Robert Millan <rmh@aybabtu.com>
48147
48148 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48149 "pager" assignment.
48150 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48151 "pcdata".
48152 * util/grub-probe.c (probe): Likewise for "drive_name".
48153
8af2ab7b 481542007-06-11 Robert Millan <rmh@aybabtu.com>
48155
48156 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48157 not just the cdrom one.
48158
59d31694 481592007-06-11 Robert Millan <rmh@aybabtu.com>
48160
48161 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48162 Add --pkglibdir=DIR option to override pkglibdir.
48163 Mention --image-type=TYPE in help output.
48164 Fix --grub-mkimage (it was a no-op).
fe6b695a 48165 Abort gracefully when no parameter is given.
59d31694 48166
7ee367e4 481672007-06-11 Robert Millan <rmh@aybabtu.com>
48168
48169 * util/i386/pc/grub-mkrescue.in: New file.
48170 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48171 * Makefile.in: Handle bin_SCRIPTS.
48172
29b0ed46 481732007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48174
48175 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48176 list of video modes.
48177
c0f90770 481782007-06-06 Robert Millan <rmh@aybabtu.com>
48179
48180 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48181 file doesn't exist, or if it is in a filesystem grub can't read.
48182
48183 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48184 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48185 header comment to fit in 80 columns when the variables are resolved.
48186
48187 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48188 could be identified by update-grub. Remove redundant check for
fe6b695a 48189 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 48190 handles that).
48191
fb36dc26 481922007-06-04 Robert Millan <rmh@aybabtu.com>
48193
48194 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48195
48196 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48197
48198 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48199
0c68c93e 482002007-06-04 Robert Millan <rmh@aybabtu.com>
48201
48202 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48203
48204 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48205 grub_apple_partition_map_fini.
48206
48207 * util/biosdisk.c
48208 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48209 to access >2 TiB disks).
48210
48211 Print disk->total_sectors with %llu instead of %lu, since this
48212 variable is always 64-bit (prevents wrong disk size from being displayed
48213 on either >2 TiB disk or big-endian CPU).
48214
48215 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48216 into a generic case that supports all (sane) partition maps.
48217
48218 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48219 breaks big-endian.
48220
48221 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48222 and grub_apple_partition_map_fini() after that.
48223
0f23eb74 482242007-06-01 Robert Millan <rmh@aybabtu.com>
48225
48226 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48227
48228 * util/grub.d/00_header.in: Only enable gfxterm when
48229 convert_system_path_to_grub_path() succeeds.
48230
42c71976 482312007-05-20 Robert Millan <rmh@aybabtu.com>
48232
48233 * util/update-grub_lib.in: New file.
48234 * DISTLIST: Add update-grub_lib.in.
48235 * conf/common.rmk: Generate update-grub_lib and install it in
48236 $(lib_DATA).
48237 * Makefile.in: Add install routine for $(lib_DATA).
48238
48239 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48240 function provided by update-grub_lib to support arbitrary paths of
48241 unifont.pff.
48242 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48243 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48244
5beb2291 482452007-05-19 Robert Millan <rmh@aybabtu.com>
48246
48247 * commands/i386/cpuid.c: New module.
48248 * DISTLIST: Add it.
48249 * conf/i386-efi.rmk: Enable cpuid.mod.
48250 * conf/i386-pc.rmk: Likewise.
48251
7262eca1 482522007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48253
48254 * kern/disk.c (grub_disk_read): Check return value of
48255 grub_realloc().
48256
260ba823 482572007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48258
48259 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48260 arrays.
48261 * disk/raid.c (grub_raid_open): Likewise.
48262
1ecb6cf2 482632007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48264
48265 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48266 stack instead of on the heap.
48267
48268 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48269 before doing a read on it.
48270
48271 * configure.ac: Only use -fno-stack-protector for the target
48272 environment.
f19dbdb7 48273
21c8cbb1 482742007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48275
48276 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48277 __attribute_ ((unused)) to mode_type argument.
48278
48279 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 48280
21c8cbb1 48281 * kern/misc.c (memcmp): Fix prototype.
48282
48283 * include/grub/partition.h [GRUB_UTIL]
48284 (grub_gpt_partition_map_init): Add prototype.
48285 (grub_gpt_partition_map_fini): Likewise.
48286
48287 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48288 at the right place.
48289
48290 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48291 (grub_fat_read_data): Likewise.
48292 (grub_fat_find_dir): Likewise.
48293
48294 * font/manager.c (find_glyph): Make table a const.
48295 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 48296
849d55d3 482972007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48298
48299 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48300 code, first search for device in /dev/mapper, then in /dev.
48301 (grub_util_get_grub_dev): New function.
48302 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48303 prototype.
48304 * util/grub-probe.c (probe): Remove check for RAID, call
48305 grub_util_get_grub_dev() instead of
48306 grub_util_biosdisk_get_grub_dev().
48307 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48308 grub_util_biosdisk_get_grub_dev().
48309 * util/i386/pc/grub-setup.c (main): Likewise.
48310
8fff7c2f 483112007-05-16 Robert Millan <rmh@aybabtu.com>
48312
48313 * DISTLIST: Update for the latest changes.
48314 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48315 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48316 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48317 grub/util/biosdisk.h.
48318 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48319 grub/util/biosdisk.h.
48320
48e12b52 483212007-05-16 Robert Millan <rmh@aybabtu.com>
48322
48323 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48324
46b9d128 483252007-05-16 Robert Millan <rmh@aybabtu.com>
48326
48327 * util/i386/efi/grub-install.in: New.
48328 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48329 newly added grub-install.
48330 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48331 include.
48332 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48333 grub/util/biosdisk.h.
48334 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48335 grub/util/biosdisk.h.
48336
2d1a40a9 483372007-05-16 Robert Millan <rmh@aybabtu.com>
48338
48339 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48340 * include/grub/util/biosdisk.h: ... here.
48341 * util/i386/pc/biosdisk.c: Moved to ...
48342 * util/biosdisk.c: ... here.
48343 * util/i386/pc/getroot.c: Moved to ...
48344 * util/getroot.c: ... here.
48345 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48346 * util/grub-mkdevicemap.c: ... here.
48347 * util/i386/pc/grub-probe.c: Moved to ...
48348 * util/grub-probe.c: ... here.
48349
9e26e3bc 483502007-05-15 Robert Millan <rmh@aybabtu.com>
48351
48352 * util/update-grub.in: Remove duplicated line in grub.cfg header
48353 message.
48354
57f96397 483552007-05-13 Robert Millan <rmh@aybabtu.com>
48356
48357 * util/update-grub.in: Fix a few assumptions about the devices holding
48358 /, /boot and /boot/grub being the same.
48359 * util/grub.d/00_header.in: Likewise.
48360 * util/grub.d/10_hurd.in: Likewise.
48361 * util/grub.d/10_linux.in: Likewise.
48362
48363 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48364 patterns. Use that to define the `.old' suffix as older than `'.
48365
48366 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48367
48368 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48369 the grub.cfg header message.
48370
2e610d62 483712007-05-11 Robert Millan <rmh@aybabtu.com>
48372
48373 * util/update-grub.in: Create device.map if it doesn't already exist,
48374 before attempting to run grub-probe.
48375 Check for grub-probe and grub-mkdevicemap with the same code
48376 grub-install is using.
48377 Remove test mode.
48378
3f6a10ef 483792007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48380
48381 * Makefile.in: Add the datarootdir autoconf variable.
48382
02e7b75e 483832007-05-09 Robert Millan <rmh@aybabtu.com>
48384
48385 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 48386 fail gracefully if dev->disk->partition == NULL.
02e7b75e 48387
75f396cc 483882007-05-07 Robert Millan <rmh@aybabtu.com>
48389
48390 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48391 determine partition map module.
48392 * util/i386/pc/grub-install.in: Use this feature to decide which
48393 partition module to load, instead of hardcoding pc and gpt.
48394
da65cb36 483952007-05-07 Robert Millan <rmh@aybabtu.com>
48396
48397 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48398 source directory differs from build directory.
48399
b57d6a91 484002007-05-05 Robert Millan <rmh@aybabtu.com>
48401
48402 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48403 initialisation.
48404
509d00f1 484052007-05-05 Robert Millan <rmh@aybabtu.com>
48406
48407 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48408
c48f23ef 484092007-05-05 Robert Millan <rmh@aybabtu.com>
48410
48411 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48412 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48413
20b97658 484142007-05-05 Robert Millan <rmh@aybabtu.com>
48415
48416 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48417 (grub_probe_SOURCES): Likewise.
48418 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48419 GPT and initialize dos_part and bsd_part accordingly.
48420 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48421 install_bsd_part.
48422 (main): Activate gpt module for use during partition identification,
48423 and deactivate it afterwards.
48424 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48425 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48426 partition identification, and deactivate it afterwards.
48427
99123174 484282007-05-05 Robert Millan <rmh@aybabtu.com>
48429
48430 * term/i386/pc/console.c (grub_console_fini): Call
48431 grub_term_set_current() before grub_term_unregister().
48432
ebd97f6e 484332007-05-04 Robert Millan <rmh@aybabtu.com>
48434
48435 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48436 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48437 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48438 and update-grub_DATA.
48439 * conf/common.rmk: Build and install update-grub components.
48440 * conf/common.mk: Regenerate.
48441 * util/update-grub.in: New. Core of update-grub.
48442 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48443 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48444 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48445 * util/grub.d/README: New. Document grub.d directory layout.
48446
b06a264d 484472007-05-01 Robert Millan <rmh@aybabtu.com>
48448
48449 * util/grub-emu.c: Move initialization functions
48450 grub_util_biosdisk_init() and grub_init_all() before
48451 grub_util_biosdisk_get_grub_dev(), which relies on them.
48452
41f0050e 484532007-04-19 Robert Millan <rmh@aybabtu.com>
48454
48455 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48456 it is used later.
48457
04582bb3 484582007-04-18 Jerone Young <jerone@gmail.com>
48459
f19dbdb7 48460 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 48461 stanza.
48462
08db4632 484632007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 48464
08db4632 48465 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48466 continue on and look for device node with real device name.
48467
801b76be 484682007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 48469
fe6b695a 48470 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 48471 ability.
48472 * Makefile.in: Add autoconf package transformation code.
48473 * util/i386/pc/grub-install.in: Likewise.
48474 * util/powerpc/ieee1275/grub-install.in: Likewise.
48475
6795c4e1 484762007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48477
48478 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48479 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48480 (EXT2_REVISION): Likewise.
48481 (EXT2_INODE_SIZE): Likewise.
48482 (struct grub_ext2_block_group): Added a missing member
48483 "used_dirs".
48484 (grub_ext2_read_inode): Divide by the inode size in a superblock
48485 instead of 128 to obtain INODES_PER_BLOCK.
48486 Use the macro EXT2_INODE_SIZE instead of directly using
48487 SBLOCK->INODE_SIZE.
48488
d70af616 484892007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48490
48491 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48492 superblock instead of the structure size to compute an
48493 offset. This fixes the problem that GRUB could not read a
48494 filesystem when inode size is different from 128-byte.
48495
3b801603 484962007-03-05 Marco Gerards <marco@gnu.org>
48497
48498 * normal/main.c (read_config_file): When "menu" is not set, create
48499 an initial context.
48500
4785bfe4 485012007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48502
48503 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48504 (HEAP_LIMIT): New macro.
48505 (grub_claim_heap): Claim memory up to `heaplimit'.
48506
a0cbb023 485072007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48508
48509 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48510 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48511 (_start): Likewise.
48512 (grub_arch_modules_addr): Return address after `_end'.
48513 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48514 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48515 (add_segments): Calculate `_end' from phdr size and location.
48516 (ALIGN_UP): Moved to ...
48517 * include/grub/misc.h: here.
48518 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48519 New macro.
48520 (GRUB_IEEE1275_MODULE_BASE): Removed.
48521
fd7d8eba 485222007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48523
48524 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48525 loop boundary.
48526
9b09e6fc 485272007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48528
48529 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48530 All users updated.
48531 (grub_elf64_load_hook_t): Likewise.
48532 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48533 debug output.
48534
3ce27299 485352007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48536
48537 * kern/mm.c: Update copyright.
48538 (grub_mm_debug): Correct syntax error.
48539 (grub_mm_dump_free): New function.
48540 (grub_debug_free): Call `grub_free'.
48541 * include/grub/mm.h: Update copyright.
48542 (grub_mm_dump_free): Add declaration.
48543
077d5fee 485442007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48545
48546 * include/grub/ieee1275/ieee1275.h: Update copyright.
48547 * kern/powerpc/ieee1275/init.c: Likewise.
48548 * kern/powerpc/ieee1275/openfw.c: Likewise.
48549
48550 * loader/powerpc/ieee1275/linux.c: Likewise.
48551 * include/grub/elfload.h: Likewise.
48552 * kern/elf.c: Likewise.
48553 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48554 callers.
48555 (grub_elf64_load): Likewise.
48556 (grub_elf32_load_segment): Move to a nested function.
48557 (grub_elf64_load_segment): Likewise.
48558
dc946850 485592007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48560
48561 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48562 prototype.
48563 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48564 (grub_heap_len): Likewise.
48565 (HEAP_SIZE): New macro.
48566 (grub_claim_heap): New function.
48567 (grub_machine_init): Don't claim heap directly. Call
48568 `grub_claim_heap'.
48569 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48570 (grub_available_iterate): New function.
48571
baa2a121 485722007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48573
48574 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48575 * configure.ac: Use it for testing the HOST and TARGET compilers.
48576
4fe9862e 485772006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48578
48579 * Makefile.in (enable_grub_emu): New variable.
48580 * configure.ac (--enable-grub-emu): New option.
48581 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48582 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48583 * conf/i386-pc.rmk: Likewise.
48584 * conf/powerpc-ieee1275.rmk: Likewise.
48585 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48586
a8aa5762 485872006-12-12 Marco Gerards <marco@gnu.org>
48588
48589 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48590
48591 * kern/env.c (grub_env_unset): Don't free the member `value' when
48592 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48593 pointer.
48594
48595 * normal/main.c (current_menu): Removed.
48596 (free_menu): Unset the `menu' environment variable.
48597 (grub_normal_menu_addentry): Make use of the environment variable
48598 `menu', instead of using the global `current_menu'. Allocate
48599 memory for the sourcecode of this entry.
48600 (read_config_file): New argument `nested', changed all callers.
48601 Only in the case of a new context, initialize a new menu. Set the
48602 `menu' environment variable.
48603 (grub_normal_execute): Don't set and unset the environment
48604 variable `menu' here anymore. Only free the menu when leaving the
48605 context.
48606
48607 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48608 leak.
48609
957b3a3e 486102006-12-11 Marco Gerards <marco@gnu.org>
48611
48612 * normal/menu_entry.c (run): Fix off by one bug so the last line
48613 is executed. Move the loader check to outside the loop.
48614
ef875714 486152006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48616
48617 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48618
4e739985 486192006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48620
48621 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48622 the number of sectors. Reported by Andrey Shuvikov
48623 <mr_hyro@yahoo.com>.
f19dbdb7 48624
790707f2 486252006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48626
48627 * kern/disk.c (grub_disk_read): When there is a read error, always
48628 try to read only the necessary data.
f19dbdb7 48629
790707f2 48630 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48631 disk/raid.c.
48632 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48633 prototype.
48634 [GRUB_UTIL] (grub_raid_fini): Likewise.
48635 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 48636 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 48637 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48638 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48639 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48640 and grub_raid_fini().
f19dbdb7 48641
03e58196 486422006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48643
48644 * include/grub/types.h (__unused): Rename to UNUSED.
48645 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48646 (grub_elf64_size): Likewise.
f19dbdb7 48647
ae4f23bf 486482006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48649
48650 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48651 grub_error_push and grub_error_pop in the error-handling path.
48652 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48653 length.
48654
2166cc83 486552006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48656
48657 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48658 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48659 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48660 (kernel_elf_SOURCES): Likewise.
48661 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48662 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48663 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48664 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48665 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48666 (elf_mod_SOURCES): New variable.
48667 (elf_mod_CFLAGS): Likewise.
48668 (elf_mod_LDFLAGS): Likewise.
48669 * include/grub/types.h (__unused): New macro.
48670 * include/grub/elfload.h: New file.
48671 * kern/elf.c: Likewise.
48672 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48673 (ELF32_LOADMASK): New macro.
48674 (ELF64_LOADMASK): Likewise.
48675 (vmlinux): Removed.
48676 (grub_linux_load32): New function.
48677 (grub_linux_load64): Likewise.
48678 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48679 Use grub_elf_t instead of grub_file_t.
48680
a09d5aa5 486812006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48682
48683 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48684 `catch_result' to struct set_color_args.
48685
d976fc51 486862006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48687
48688 * normal/menu.c: Include grub/script.h.
48689 * normal/menu_entry.c: Likewise.
48690 * include/grub/normal.h: Do not include grub/script.h.
48691
67507549 486922006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48693
48694 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48695
69203a99 486962006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48697
48698 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48699 disk.
48700 (grub_disk_close): Print debug messages when closing a disk.
48701 (grub_disk_read): Print debug messages when disk read fails.
48702 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48703 filesystem type.
48704 * kern/partition.c: Include misc.h.
48705 (grub_partition_iterate): Print debug messages when detecting
48706 partition type.
48707
e2b8278c 487082006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48709
48710 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48711 is negative.
48712 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48713
97b2f2ff 487142006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48715
48716 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48717 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48718
6555d655 487192006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48720
48721 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48722 instead of sizeof(lv). Patch by Michael Guntsche.
48723
4d42b77f 487242006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48725
48726 * disk/lvm.c: Rename VGS to VG_LIST.
48727 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48728 (grub_lvm_open): Likewise.
48729 Thanks to Michael Guntsche for finding this bug.
48730
5d74d927 487312006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48732
48733 * configure.ac (AC_INIT): Bumped to 1.95.
48734
a1bb27e4 487352006-10-14 Robert Millan <rmh@aybabtu.com>
48736
48737 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48738 with "/dev/.static/dev/md".
48739
e0994b8b 487402006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48741
48742 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48743 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48744 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48745 DRIVE_NAME are always freed.
48746
48747 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48748 DOS_PART, as a DOS partition is counted from one instead of zero
48749 now. Reported by Robert Millan.
48750
ddd5cee9 487512006-10-14 Robert Millan <rmh@aybabtu.com>
48752
48753 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48754 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48755 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48756 string returned by grub_guess_root_device.
48757 * util/i386/pc/grub-setup.c: Likewise.
48758 * util/i386/pc/grub-probefs.c: Likewise.
48759
48760 * util/i386/pc/grub-probefs.c: Rename to ...
48761 * util/i386/pc/grub-probe.c: ... this.
48762 * DISTLIST: Remove grub-probefs, add grub-probe.
48763 * conf/i386-efi.rmk: Likewise.
48764 * conf/i386-pc.rmk: Likewise.
48765 * util/i386/pc/grub-install.in: Likewise.
48766
48767 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48768 choose which information we want to print.
48769
2b002173 487702006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48771
48772 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48773 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48774 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48775 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48776 video/readers/tga.c and video/i386/pc/vbeutil.c.
48777
487782006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48779
48780 Added support for RAID and LVM.
f19dbdb7 48781
2b002173 48782 * disk/lvm.c: New file.
48783 * disk/raid.c: Likewise.
48784 * include/grub/lvm.h: Likewise.
f19dbdb7 48785 * include/grub/raid.h: Likewise.
2b002173 48786 * include/grub/util/lvm.h: Likewise.
48787 * include/grub/util/raid.h: Likewise.
48788 * util/lvm.c: Likewise.
48789 * util/raid.c: Likewise.
48790
48791 * include/grub/disk.h (grub_disk_dev_id): Add
48792 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48793 (grub_disk_get_size): New prototype.
48794 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48795 returns a partition.
48796 (grub_disk_get_size): New function.
f19dbdb7 48797
2b002173 48798 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48799 verbatim if grub_install_dos_part is -2.
48800
48801 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48802 and LVM devices.
48803
48804 * util/i386/pc/grub-setup.c (setup): New argument
48805 MUST_EMBED. Force embedding of GRUB when the argument is
48806 true. Close FILE before returning.
48807 (main): Add support for RAID and LVM.
f19dbdb7 48808
2b002173 48809 * conf/common.rmk: Add RAID and LVM modules.
48810 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48811 util/lvm.c.
48812 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48813
48814 * kern/misc.c (grub_strstr): New function.
48815 * include/grub/misc.h (grub_strstr): New prototype.
48816
050548d0 488172006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48818
48819 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48820
da849d2d 488212006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48822
48823 * kern/misc.c (grub_strtoull): Guess the base only if not
48824 specified.
48825
97b2f2ff 488262006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 48827
48828 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48829 PowerMac support.
48830
97b2f2ff 488312006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 48832
48833 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48834
48835 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48836 Remove `flags' argument. All callers changed.
48837 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48838 (IEEE1275_IHANDLE_INVALID): New variable.
48839 (IEEE1275_CELL_INVALID): New variable.
48840 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48841 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48842 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48843 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48844 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48845 codes from Open Firmware. All callers updated.
48846 (grub_ieee1275_next_property): Directly return Open Firmware return
48847 code.
48848 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48849 Standardize error checking from `grub_ieee1275_get_property'.
48850 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48851 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48852
97b2f2ff 488532006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 48854
48855 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48856 `instance_to_package_args' to `instance_to_path_args'.
48857
48858 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48859 `grub_ieee1275_chosen'.
48860
48861 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48862 `grub_ieee1275_interpret'.
48863
97b2f2ff 488642006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 48865
48866 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48867
97b2f2ff 488682006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 48869
48870 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48871 (__cmpdi): Likewise.
48872
48873 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48874 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48875 `grub_ssize_t'.
48876
02bb8acc 48877 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 48878
48879 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48880 to type `grub_ssize_t'.
48881 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48882
7f9a8531 488832006-09-22 Marco Gerards <marco@gnu.org>
48884
48885 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48886 newlines.
48887
b5ef1102 488882006-09-22 Marco Gerards <marco@gnu.org>
48889
48890 * commands/echo.c: New file.
48891
48892 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48893
48894 * conf/common.rmk (echo_mod_SOURCES): New variable.
48895 (echo_mod_CFLAGS): Likewise.
48896 (echo_mod_LDFLAGS): Likewise.
48897
2cff3677 488982006-09-22 Marco Gerards <marco@gnu.org>
48899
48900 * normal/main.c (get_line): Malloc memory instead of using
48901 preallocated memory. Removed the arguments `cmdline' and
48902 `max_len'. Updated all callers.
48903
6ba4688b 489042006-09-22 Marco Gerards <marco@gnu.org>
48905
48906 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48907 (normal_mod_DEPENDENCIES): Likewise.
48908
48909 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48910 (normal_mod_DEPENDENCIES): Likewise.
48911
48912 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48913
e02ac02c 489142006-09-22 Johan Rydberg <jrydberg@gnu.org>
48915
48916 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48917 programs.
48918 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48919 (normal_mod_DEPENDENCIES): Likewise.
48920 * conf/i386-pc.mk: Regenerate.
48921 * conf/i386-efi.mk: Likewise
48922 * conf/common.mk: Likewise.
48923 * conf/powerpc-ieee1275.mk: Likewise.
48924 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 48925
8d252e44 489262006-09-22 Robert Millan <rmh@aybabtu.com>
48927
48928 Sync with i386 version.
48929 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48930 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48931
209bf7ac 489322006-09-21 Robert Millan <rmh@aybabtu.com>
48933
48934 Import from GRUB Legacy (lib/device.c):
48935 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48936 (init_device_map) [__linux__]: Add support for I2O devices.
48937
6b146090 489382006-09-14 Marco Gerards <marco@gnu.org>
48939
48940 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48941 `-melf_i386'.
48942
e38600a8 489432006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 48944
48945 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48946 /boot/grub/*.lst.
78fa1790 48947
2952da5d 48948 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 48949
2952da5d 48950 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48951 before adding it to device.map.
48952
01b82a64 489532006-08-15 Johan Rydberg <jrydberg@gnu.org>
48954
fe6b695a 48955 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 48956 compiles a file; using the -MD option.
48957 * conf/common.mk: Regenerate.
48958 * conf/i386-pc.mk: Likewise.
48959 * conf/i386-efi.mk: Likewise.
48960 * conf/powerpc-ieee1275.mk: Likewise.
48961 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 48962
1064790d 489632006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48964
48965 Move the prototypes of grub_setjmp and grub_longjmp to
48966 cpu/setjmp.h, so that each architecture may specify different
48967 attributes.
f19dbdb7 48968
1064790d 48969 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48970 (grub_longjmp): Likewise.
48971 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48972 (grub_longjmp): Likewise.
48973 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48974 (grub_longjmp): Likewise.
48975
48976 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48977 [!GRUB_UTIL] (grub_longjmp): Removed.
48978
29dda3ed 489792006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48980
48981 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48982 "color!" method does not return any value.
48983
ad2a06ed 489842006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48985
48986 * include/grub/bitmap.h: New file.
48987
48988 * include/grub/i386/pc/vbeutil.h: Likewise.
48989
48990 * video/bitmap.c: Likewise.
48991
48992 * video/readers/tga.c: Likewise.
48993
48994 * video/i386/pc/vbeutil.c: Likewise.
48995
48996 * commands/videotest.c: Code cleanup and updated to reflect to new
48997 video API.
48998
48999 * term/gfxterm.c: Likewise.
49000
49001 * video/video.c: Likewise.
49002
49003 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49004 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49005 (bitmap_mod_SOURCES): New entry.
49006 (bitmap_mod_CFLAGS): Likewise.
49007 (bitmap_mod_LDFLAGS): Likewise.
49008 (tga_mod_SOURCES): Likewise.
49009 (tga_mod_CFLAGS): Likewise.
49010 (tga_mod_LDFLAGS): Likewise.
49011
49012 * include/grub/video.h (grub_video_blit_operators): New enum type.
49013 (grub_video_render_target): Changed as forward declaration and moved
49014 actual definition to be video driver specific.
49015 (grub_video_adapter.blit_bitmap): Added blitting operator.
49016 (grub_video_adapter.blit_render_target): Likewise.
49017 (grub_video_blit_bitmap): Likewise.
49018 (grub_video_blit_render_target): Likewise.
49019
49020 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49021 driver specific render target definition.
49022 (grub_video_vbe_map_rgba): Added driver internal helper.
49023 (grub_video_vbe_unmap_color): Updated to use
49024 grub_video_i386_vbeblit_info.
49025 (grub_video_vbe_get_video_ptr): Likewise.
49026
49027 * include/grub/i386/pc/vbeblit.h
49028 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49029 grub_video_i386_vbeblit_info.
49030 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49031 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49032 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49033 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49034 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49035 (grub_video_i386_vbeblit_index_index): Likewise.
49036 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49037 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49038 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49039 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49040 operator.
49041 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49042 operator.
49043
49044 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49045 include/grub/i386/pc/vbeblit.h.
49046
49047 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49048 Updated to use grub_video_i386_vbeblit_info.
49049 (grub_video_i386_vbefill_R8G8B8): Likewise.
49050 (grub_video_i386_vbefill_index): Likewise.
49051 (grub_video_i386_vbefill): Added generic filler.
49052
49053 * video/i386/pc/vbefill.c: Updated to reflect changes on
49054 include/grub/i386/pc/vbefill.h.
49055
49056 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49057 grub_video_i386_vbeblit_info.
49058 (grub_video_vbe_unmap_color): Likewise.
49059 (grub_video_vbe_blit_glyph): Likewise.
49060 (grub_video_vbe_scroll): Likewise.
49061 (grub_video_vbe_draw_pixel): Removed function.
49062 (grub_video_vbe_get_pixel): Likewise.
49063 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49064 updated code to use it.
49065 (common_blitter): Added common blitter for render target and bitmap.
49066 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49067 (grub_video_vbe_blit_render_target): Likewise.
49068
bc8c036d 490692006-07-30 Johan Rydberg <jrydberg@gnu.org>
49070
49071 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49072 is in text mode if there is no console control protocol instance
49073 available.
49074
684a8eff 490752006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49076
49077 * include/grub/video.h: Code cleanup.
49078
49079 * include/grub/i386/pc/vbe.h: Likewise.
49080
49081 * video/i386/pc/vbe.c: Likewise.
49082
49083 * video/i386/pc/vbeblit.c: Likewise.
49084
49085 * video/i386/pc/vbefill.c: Likewise.
49086
49087 * video/video.c: Likewise. Also added more comments.
49088
5915059b 490892006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49090
49091 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49092 (struct grub_biosdisk_dap): Likewise.
49093
49094 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49095 linkage settings for all functions.
49096
90ce5d56 490972006-07-12 Marco Gerards <marco@gnu.org>
49098
49099 * configure.ac (--enable-mm-debug): Fix typo.
49100
49101 * genkernsyms.sh.in: Use proper quoting for `CC'.
49102
43e7f879 491032006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49104
49105 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49106 (normal_mod_ASFLAGS): Remove "-m32".
49107
4889bdec 491082006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49109
49110 * util/misc.c: Include config.h.
49111 [!HAVE_MEMALIGN]: Do not include malloc.h.
49112 (grub_memalign): Use posix_memalign, if present. Then, use
49113 memalign, if present. Otherwise, emit an error.
49114
49115 * util/grub-emu.c: Do not include malloc.h.
49116
49117 * include/grub/util/misc.h: Include unistd.h. This is required for
49118 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49119 D. Eades III <hde@foobar-qux.org>.
49120
49121 * configure.ac (AC_GNU_SOURCE): Added.
49122 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49123 type.
49124
fd39d4da 491252006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49126
49127 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49128 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49129
b786f3b5 491302006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49131
49132 * include/grub/types.h (grub_host_addr_t): Rename to
49133 grub_target_addr_t.
49134 (grub_host_off_t): Rename to grub_target_off_t.
49135 (grub_host_size_t): Rename to grub_target_size_t.
49136 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49137 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49138
49139 * include/grub/kernel.h (struct grub_module_header): Change type
49140 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49141 (grub_module_info): Likewise.
f19dbdb7 49142
051988bb 491432006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49144
49145 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49146 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49147 Velazquez <jesus.velazquez@gmail.com>.
49148
deae281b 491492006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49150
49151 Count partitions from 1 instead of 0 in the string representation
49152 of partitions. Still use 0-based internally.
f19dbdb7 49153
deae281b 49154 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49155 (sun_partition_map_iterate): Use grub_partition_t instead of
49156 struct grub_partition *. Cast DESC->START_CYLINDER to
49157 grub_uint64_t after converting the endian.
49158 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49159 (sun_partition_map_get_name): Add 1 to P->INDEX.
49160
49161 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49162 PCDATA->DOS_PART.
49163 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49164
49165 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49166 zero instead of one.
49167 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49168 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49169
49170 * partmap/apple.c (apple_partition_map_iterate): Change the type
49171 of POS to unsigned.
49172 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49173 (apple_partition_map_get_name): Add 1 into P->INDEX.
49174
49175 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49176 of POS to unsigned.
49177 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49178 calculate the offset of a partition.
49179 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49180 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49181
49182 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49183 SECTOR to grub_disk_addr_t.
49184 (acorn_partition_map_iterate): Likewise.
49185 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49186 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49187 top.
49188 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49189
49190 * kern/i386/pc/init.c (make_install_device): Add 1 into
49191 GRUB_INSTALL_DOS_PART.
49192
49193 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49194 conditional.
49195
524a1e6a 491962006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49197
49198 Clean up the code to support 64-bit addressing in disks and
49199 files. This change is not enough for filesystems yet.
f19dbdb7 49200
524a1e6a 49201 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49202 type of "start" to grub_uint64_t.
49203 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49204 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49205 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49206 convert addresses.
49207
49208 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49209 to grub_disk_addr_t.
49210
49211 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49212 string.
49213
49214 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49215
49216 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49217 to char *.
49218
49219 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49220
49221 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49222
49223 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49224
49225 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49226 to grub_off_t, to detect an error from grub_file_seek.
49227 (grub_multiboot_load_elf32): Likewise.
49228
49229 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49230 maximum unsigned long value when an overflow is detected.
49231 (grub_strtoull): New function.
49232 (grub_divmod64): Likewise.
49233 (grub_lltoa): use grub_divmod64.
49234
49235 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49236 grub_disk_addr_t.
49237 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49238 the pointer to next character. Use grub_strtoull instead of
49239 grub_strtoul.
49240 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49241 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49242 respectively.
49243
fe6b695a 49244 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 49245 return value is signed.
49246 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49247 test if OFFSET is less than zero, as OFFSET is unsigned now.
49248
49249 * kern/disk.c (struct grub_disk_cache): Change the type of
49250 "sector" to grub_disk_addr_t.
49251 (grub_disk_cache_get_index): Change the type of SECTOR to
49252 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49253 unsigned after shifting.
49254 (grub_disk_cache_invalidate): Change the type of SECTOR to
49255 grub_disk_addr_t.
49256 (grub_disk_cache_unlock): Likewise.
49257 (grub_disk_cache_store): Likewise.
49258 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49259 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49260 grub_disk_addr_t and grub_uint64_t, respectively.
49261 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49262 body, as the value of OFFSET is tweaked by
49263 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49264 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49265 respectively.
49266 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49267 body, as the value of OFFSET is tweaked by
49268 grub_disk_check_range. Change the types of LEN and N to
49269 grub_size_t.
49270
49271 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49272 and "saved_offset" to grub_off_t.
49273 (test_header): Cast BUF to char *.
49274 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49275 to char *.
49276 (grub_gzio_read): Change the types of OFFSET and SIZE to
49277 grub_off_t and grub_size_t, respectively.
49278
49279 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49280 Removed.
49281 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49282 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49283 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49284 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49285 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49286
49287 * include/grub/types.h (grub_off_t): Unconditionally set to
49288 grub_uint64_t.
49289 (grub_disk_addr_t): Changed to grub_uint64_t.
49290
49291 * include/grub/partition.h (struct grub_partition): Change the
49292 types of "start", "len" and "offset" to grub_disk_addr_t,
49293 grub_uint64_t and grub_disk_addr_t, respectively.
49294 (grub_partition_get_start): Return grub_disk_addr_t.
49295 (grub_partition_get_len): Return grub_uint64_t.
49296
49297 * include/grub/misc.h (grub_strtoull): New prototype.
49298 (grub_divmod64): Likewise.
49299
49300 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49301 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49302 grub_off_t, respectively.
49303 All callers and references changed.
49304
49305 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49306 grub_size_t in "read".
49307 All callers and references changed.
49308
49309 * include/grub/file.h (struct grub_file): Change the types of
49310 "offset" and "size" to grub_off_t and grub_off_t,
49311 respectively. Change the type of SECTOR to grub_disk_addr_t in
49312 "read_hook".
49313 (grub_file_read): Change the type of LEN to grub_size_t.
49314 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49315 grub_off_t.
49316 (grub_file_size): Return grub_off_t.
49317 (grub_file_tell): Likewise.
49318 All callers and references changed.
49319
49320 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49321 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49322 "write".
49323 (struct grub_disk): Change the type of "total_sectors" to
49324 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 49325 "read_hook".
524a1e6a 49326 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49327 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49328 (grub_disk_write): Likewise.
49329 All callers and references changed.
49330
49331 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49332 char * for grub_strncmp to silence gcc.
49333 (grub_iso9660_mount): Likewise.
49334 (grub_iso9660_mount): Likewise.
49335 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49336 return statement.
49337 (grub_iso9660_iterate_dir): Likewise.
49338 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49339
49340 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49341 LEN to grub_disk_addr_t and grub_size_t, respectively.
49342
49343 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49344
49345 * fs/jfs.c (grub_jfs_read_file): Likewise.
49346
49347 * fs/minix.c (grub_jfs_read_file): Likewise.
49348
49349 * fs/sfs.c (grub_jfs_read_file): Likewise.
49350
49351 * fs/ufs.c (grub_jfs_read_file): Likewise.
49352
49353 * fs/xfs.c (grub_jfs_read_file): Likewise.
49354
49355 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49356 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49357 respectively.
49358
49359 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49360 BLKNR to -1 instead of returning GRUB_ERRNO.
49361 (grub_ext2_read_file): Change the types of SECTOR and
49362 LEN to grub_disk_addr_t and grub_size_t, respectively.
49363
49364 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49365 LEN to grub_disk_addr_t and grub_size_t, respectively.
49366
49367 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49368 grub_file_read.
49369
49370 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49371 string. Do not cast SECTOR explicitly.
49372
49373 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49374 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49375 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49376 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49377 over 2TB and LBA mode is not supported, raise an error.
49378 (get_safe_sectors): New function.
49379 (grub_biosdisk_read): Use get_safe_sectors.
49380 (grub_biosdisk_write): Likewise.
49381
49382 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49383 (grub_efidisk_write): Likewise.
49384
49385 * disk/loopback.c (delete_loopback): Cosmetic changes.
49386 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49387 correctly.
49388 (grub_loopback_open): Likewise.
49389 (grub_loopback_read): Likewise. Also, change the type of POS to
49390 grub_off_t, and fix the usage of grub_memset.
49391
49392 * commands/i386/pc/play.c: Include grub/machine/time.h.
49393
49394 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49395 print FILE->SIZE.
49396
49397 * commands/configfile.c: Include grub/env.h.
49398
49399 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49400 GRUB_ERRNO directly instead. Change the type of POS to
49401 grub_off_t. Follow the coding standard.
49402
49403 * commands/blocklist.c: Include grub/partition.h.
49404 (grub_cmd_blocklist): Return an error if the underlying device is
49405 not a disk. Take the starting sector of a partition into account,
49406 if a partition is used.
49407
49408 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49409 a length field.
49410 (lba_mode): Support 64-bit addresses.
49411 (chs_mode): Likewise.
49412 (copy_buffer): Adapted to the new offsets of a length field and a
49413 segment field.
49414 (blocklist_default_start): Allocate 64-bit space.
49415
49416 * boot/i386/pc/boot.S (force_lba): Removed.
49417 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 49418 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 49419 space.
49420 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49421 is useless.
49422 (lba_mode): Refactored to support a 64-bit address. More size
49423 optimization.
49424 (setup_sectors): Likewise.
49425
53af98ad 494262006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49427
49428 * DISTLIST: Added include/grub/i386/linux.h. Removed
49429 include/grub/i386/pc/linux.h
49430
49431 * configure.ac (AC_INIT): Bumped to 1.94.
49432
49433 * config.guess: Updated from gnulib.
49434 * config.sub: Likewise.
49435 * install-sh: Likewise.
49436 * mkinstalldirs: Likewise.
49437
b4c1940a 494382006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49439
49440 * conf/common.rmk (grub_modules_init.lst): Depended on
49441 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49442 MODSRCFILES.
49443
49444 * genmk.rb (PModule::rule): Reverted the previous change.
49445
cfca1cfd 494462006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49447
49448 * conf/common.rmk (grub_modules_init.lst): Depends on
49449 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49450 that the target does not exist before producing.
49451 (grub_modules_init.h): Remove the target before generating.
49452 (grub_emu_init.c): Likewise.
49453
49454 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49455
aa6d7826 494562006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49457
49458 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49459 for the target-specific tests. Make sure that we also have the
49460 up-to-date target variables for those tests.
49461
26c607b9 494622006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49463
49464 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49465 (PModule::rule): Likewise.
49466
0162321a 494672006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49468
49469 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49470 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49471 target-specific flags should be prefixed.
49472 (PModule::rule): Likewise.
49473
6c826348 494742006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49475
49476 * configure.ac (CMP): Check if cmp is available explicitly.
49477
b977bf01 494782006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49479
49480 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49481 (target_cpu): New variable.
49482 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 49483
b977bf01 49484 * util/i386/pc/grub-install.in (host_cpu): Removed.
49485 (target_cpu): New variable.
49486 (pkglibdir): Use target_cpu instead of host_cpu.
49487
49488 * util/genmoddep.c: Removed.
f19dbdb7 49489
b977bf01 49490 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49491 instead of GRUB_HOST_SIZEOF_VOID_P.
49492 * kern/dl.c: Likewise.
49493
49494 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49495 ...
49496 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49497 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49498 (GRUB_TARGET_SIZEOF_LONG): ... this.
49499 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49500 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49501 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49502 to ...
49503 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49504 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49505 (GRUB_TARGET_SIZEOF_LONG): ... this.
49506 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49507 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49508 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49509 to ...
49510 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49511 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49512 (GRUB_TARGET_SIZEOF_LONG): ... this.
49513 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49514 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49515
49516 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49517 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49518 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49519 instead of GRUB_HOST_SIZEOF_LONG.
49520 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49521 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49522 GRUB_CPU_WORDS_BIGENDIAN.
49523 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49524 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49525 grub_host_ssize_t.
49526
49527 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49528 (genmoddep_SOURCES): Likewise.
49529 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49530 (genmoddep_SOURCES): Likewise.
49531 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49532 (genmoddep_SOURCES): Likewise.
49533 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49534 Likewise.
49535 (genmoddep_SOURCES): Likewise.
49536
49537 * genmoddep.awk: New file.
49538
49539 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49540 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49541 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49542 (PModule::rule): Likewise.
49543 (Program::rule): Likewise.
49544 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49545 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49546 respectively.
49547
49548 * configure.ac: Rewritten intensively to use host and target
49549 instead of build and host, respectively.
49550
49551 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49552 (host_cpu): Removed.
49553 (target_cpu): New variable.
49554 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49555 (BUILD_CC): Removed.
49556 (BUILD_CFLAGS): Likewise.
49557 (BUILD_CPPFLAGS): Likewise.
49558 (TARGET_CC): New variable.
49559 (TARGET_CFLAGS): Likewise.
49560 (TARGET_CPPFLAGS): Likewise.
49561 (TARGET_LDFLAGS): Likewise.
49562 (AWK): Likewise.
49563 (include): Use target_cpu instead of host_cpu.
49564 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 49565
b977bf01 49566 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49567
f09771a1 495682006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49569
49570 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49571 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49572 field 'false' to 'exec_on_false'.
49573 (grub_script_create_cmdif): Renamed argument names to reflect above
49574 changes.
49575
49576 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49577
49578 * normal/script.c (grub_script_create_cmdif): Likewise.
49579
118f4fb3 495802006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49581
49582 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49583 top.
49584 (grub_hfsplus_btree_recptr): Likewise.
49585 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49586 FILEBLOCK both to pass a block number and store next block
49587 number.
49588 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49589 overflow file correctly. Specify errors appropriately, because
49590 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49591 grub_hfsplus_btree_recptr to get the pointer to a found key.
49592 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49593 is found.
49594
49595 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49596 linux.mod.
49597 (_linux_mod_SOURCES): New variable.
49598 (_linux_mod_CFLAGS): Likewise.
49599 (_linux_mod_LDFLAGS): Likewise.
49600 (linux_mod_SOURCES): Likewise.
49601 (linux_mod_CFLAGS): Likewise.
49602 (linux_mod_LDFLAGS): Likewise.
49603
49604 * DISTLIST: Added loader/i386/efi/linux.c,
49605 loader/i386/efi/linux_normal.c and
49606 include/grub/i386/efi/loader.h.
49607
49608 * loader/i386/efi/linux.c: New file.
49609 * loader/i386/efi/linux_normal.c: Likewise.
49610 * include/grub/i386/efi/loader.h: Likewise.
49611
89a7d726 496122006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49613
49614 * commands/blocklist.c: New file.
49615
49616 * DISTLIST: Added commands/blocklist.c.
49617
49618 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 49619 color for the background, and a darker color for the foreground.
89a7d726 49620 (grub_console_checkkey): Return READ_KEY.
49621 (grub_console_cls): Set the background to
49622 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49623
49624 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49625
49626 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49627 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49628
49629 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49630 prototype.
49631
49632 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49633 BG. The spec is wrong again.
49634
49635 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49636 prototype.
49637 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49638
49639 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49640 commands/blocklist.c.
49641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 49642
89a7d726 49643 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49644 (blocklist_mod_SOURCES): New variable.
49645 (blocklist_mod_CFLAGS): Likewise.
49646 (blocklist_mod_LDFLAGS): Likewise.
49647
75c8f258 496482006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49649
49650 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49651 duplication.
49652 (lba_mode): Use %eax more intensively to reduce the code size.
49653
da2eb181 496542006-05-20 Marco Gerards <marco@gnu.org>
49655
49656 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49657
49658 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49659 for `menuentry'.
49660 (script): Accept leading newlines.
49661 (newlines): New rule to describe 0 or more newlines.
49662 (commands): Accept `command' with trailing newline. Fixed the
49663 order in which arguments were passed to `grub_script_add_cmd'.
49664 Accept commands separated by newlines.
49665 (function): Changed to accept newlines.
49666 (menuentry) Rewritten.
49667
49668 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49669 front of the list, instead of to the end.
49670
577b4050 496712006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49672
49673 * util/i386/pc/grub-install.in (bindir): New variable.
49674 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49675 Shaver <lbgwjl@gmail.com>.
49676
0d6e1189 496772006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49678
49679 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49680 grub/machine/linux.h
49681 * loader/i386/pc/linux.c: Likewise.
49682
49683 * include/grub/i386/pc/linux.h: Moved to ...
49684 * include/grub/i386/linux.h: ... here.
49685
49686 * include/grub/i386/linux.h (struct linux_kernel_params): New
49687 struct.
f19dbdb7 49688
31b86e9f 496892006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49690
49691 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49692 checking.
49693 (grub_video_vbe_blit_glyph): Likewise.
49694 (grub_video_vbe_blit_bitmap): Likewise.
49695 (grub_video_vbe_blit_render_target): Likewise.
49696
83b984de 496972006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49698
49699 * configure.ac (--with-platform): Properly quote the square
49700 brackets.
49701
5f0413bd 497022006-05-08 Marco Gerards <marco@gnu.org>
49703
49704 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49705 this...
49706 (kernel_elf_HEADERS): ...to this. Updated all users.
49707 (grubof_symlist.c): Renamed from this...
49708 (kernel_elf_symlist.c): ...to this. Updated all users.
49709 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49710 (grubof_SOURCES): Renamed from this...
49711 (kernel_elf_SOURCES): ...to this.
49712 (grubof_HEADERS): Renamed from this...
49713 (kernel_elf_HEADERS): ...to this.
49714 (grubof_CFLAGS): Renamed from this...
49715 (kernel_elf_CFLAGS): ...to this.
49716 (grubof_ASFLAGS): Renamed from this...
49717 (kernel_elf_ASFLAGS): ...to this.
49718 (grubof_LDFLAGS): Renamed from this...
49719 (kernel_elf_LDFLAGS): ...to this.
49720
49721 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49722 this...
49723 (kernel_elf_HEADERS): ...to this. Updated all users.
49724 (grubof_symlist.c): Renamed from this...
49725 (kernel_elf_symlist.c): ...to this. Updated all users.
49726 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49727 (grubof_SOURCES): Renamed from this...
49728 (kernel_elf_SOURCES): ...to this.
49729 (grubof_HEADERS): Renamed from this...
49730 (kernel_elf_HEADERS): ...to this.
49731 (grubof_CFLAGS): Renamed from this...
49732 (kernel_elf_CFLAGS): ...to this.
49733 (grubof_ASFLAGS): Renamed from this...
49734 (kernel_elf_ASFLAGS): ...to this.
49735 (grubof_LDFLAGS): Renamed from this...
49736 (kernel_elf_LDFLAGS): ...to this.
49737
49738 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49739 `kernel.elf' instead of `grubof'.
49740
05568c2e 497412006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49742
49743 Add --with-platform to configure. Use pkglibdir instead of
49744 pkgdatadir. This is reported by Roger Leigh.
49745
49746 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49747 (host_vendor): Likewise.
49748 (host_os): Likewise.
49749 (pkgdatadir): Likewise.
49750 (platform): New variable.
49751 (pkglibdir): Likewise.
49752 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 49753
05568c2e 49754 * util/i386/pc/grub-install.in (datadir): Removed.
49755 (host_vendor): Likewise.
49756 (host_os): Likewise.
49757 (pkgdatadir): Likewise.
49758 (platform): New variable.
49759 (pkglibdir): Likewise.
49760 Use PKGLIBDIR instead of PKGDATADIR.
49761
49762 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49763 instead of GRUB_DATADIR.
49764 (main): Likewise.
49765 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49766 (main): Likewise.
49767 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49768 (main): Likewise.
49769
49770 * configure.ac (--with-platform): New option.
49771 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49772
49773 * Makefile.in: Include a makefile based on PLATFORM instead of
49774 HOST_VENDOR.
49775 (pkgdatadir): Not appended by the machine type.
49776 (pkglibdir): Appended by the machine type.
49777 (host_vendor): Removed.
49778 (platform): New variable.
49779 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49780 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49781 (uninstall): Likewise.
49782
4e93851c 497832006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49784
49785 Use the environment context in the menu. Remove the commands
49786 "default" and "timeout", and use variables instead.
f19dbdb7 49787
4e93851c 49788 * normal/menu.c: Include grub/env.h.
49789 (print_entry): Cast TITLE to silence gcc.
49790 (get_timeout): New function.
49791 (set_timeout): Likewise.
49792 (get_entry_number): Likewise.
49793 (run_menu): Use a default entry, a fallback entry and a timeout
49794 in the environment variables "default", "fallback" and
49795 "timeout". Also, tweak the default entry if it is not within the
49796 current menu entries.
49797 (grub_menu_run): Use a fallback entry in the environment variable
49798 "fallback".
49799
49800 * normal/main.c (read_config_file): Do not initialize
49801 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49802 NEWMENU->TIMEOUT.
49803 (grub_normal_execute): Use a data slot to store the menu.
49804
49805 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49806 fallback_entry and timeout.
49807 (struct grub_menu_list): Removed.
49808 (grub_menu_list_t): Likewise.
49809 (struct grub_context): Likewise.
49810 (grub_context_t): Likewise.
49811 (grub_context_get): Likewise.
49812 (grub_context_get_current_menu): Likewise.
49813 (grub_context_push_menu): Likewise.
49814 (grub_context_pop_menu): Likewise.
49815 (grub_default_init): Likewise.
49816 (grub_default_fini): Likewise.
49817 (grub_timeout_init): Likewise.
49818 (grub_timeout_fini): Likewise.
49819
49820 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49821 and timeout.mod.
49822 (normal_mod_SOURCES): Removed normal/context.c.
49823
49824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49825 commands/default.c, commands/timeout.c and normal/context.c.
49826 (normal_mod_SOURCES): Removed normal/context.c.
49827
49828 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49829 commands/timeout.c and normal/context.c.
49830 (normal_mod_SOURCES): Removed normal/context.c.
49831
49832 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49833 commands/default.c, commands/timeout.c and normal/context.c.
49834 (normal_mod_SOURCES): Removed normal/context.c.
49835
49836 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49837 timeout.mod.
49838 (default_mod_SOURCES): Removed.
49839 (default_mod_CFLAGS): Likewise.
49840 (default_mod_LDFLAGS): Likewise.
49841 (timeout_mod_SOURCES): Removed.
49842 (timeout_mod_CFLAGS): Likewise.
49843 (timeout_mod_LDFLAGS): Likewise.
49844
49845 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49846 normal/context.c.
49847
49848 * commands/default.c: Removed.
49849 * commands/timeout.c: Likewise.
49850 * normal/context.c: Likewise.
49851
1eb9cc1d 498522006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49853
49854 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49855
385bd9c1 498562006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49857
49858 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49859 "next" to "prev" for readability.
49860 (struct grub_env_sorted_var): New struct.
49861 (grub_env_context): Renamed to ...
49862 (initial_context): ... this.
49863 (grub_env_var_context): Renamed to ...
49864 (current_context): ... this.
49865 (grub_env_find): Look only at CURRENT_CONTEXT.
49866 (grub_env_context_open): Rewritten to copy exported variables from
49867 previous context.
49868 (grub_env_context_close): Rewritten according to the new
49869 scheme. Also, add an assertion to prevent the initial context from
49870 removed.
49871 (grub_env_insert): Removed the code for the sorted list.
49872 (grub_env_remove): Likewise.
49873 (grub_env_export): Simply mark the variable with
49874 GRUB_ENV_VAR_GLOBAL.
49875 (grub_env_set): A cosmetic change for naming consistency.
49876 (grub_env_get): Likewise.
49877 (grub_env_unset): Likewise.
49878 (grub_env_iterate): Rewritten to sort variables within this
49879 function.
49880 (grub_register_variable_hook): Fixed for naming consistency. Call
49881 grub_env_find again, only if NAME is not found at the first time.
49882 (mangle_data_slot_name): New function.
49883 (grub_env_set_data_slot): Likewise.
49884 (grub_env_get_data_slot): Likewise.
49885 (grub_env_unset_data_slot): Likewise.
49886
49887 * include/grub/env.h (grub_env_var_type): New enum.
49888 (GRUB_ENV_VAR_LOCAL): New constant.
49889 (GRUB_ENV_VAR_GLOBAL): Likewise.
49890 (GRUB_ENV_VAR_DATA): Likewise.
49891 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49892 "type".
49893 (grub_env_set): Replace VAR with NAME for consistency.
49894 (grub_register_variable_hook): Likewise.
49895 (grub_env_export): Specify the name of the argument.
49896 (grub_env_set_data_slot): New prototype.
49897 (grub_env_get_data_slot): Likewise.
49898 (grub_env_unset_data_slot): Likewise.
49899
7f362539 499002006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49901
49902 Extend the loader so that GRUB can accept a loader which comes
49903 back to GRUB when a loaded image exits. Also, this change adds
49904 support for a chainloader on EFI.
f19dbdb7 49905
7f362539 49906 * term/efi/console.c: Include grub/misc.h.
49907 (grub_console_checkkey): Display a scan code on the top for
49908 debugging. This will be removed once the EFI port gets stable.
49909 Correct the scan code mapping.
49910
49911 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49912 allocate memory from larger regions, in order to reduce the number
49913 of allocated regions. Otherwise, the MacOSX loader panics.
49914 (filter_memory_map): Avoid less than 1MB for compatibility with
49915 other loaders.
49916 (add_memory_regions): Allocate from the tail of a region, if
49917 possible, to avoid allocating a region near to 1MB, for the MacOSX
49918 loader.
49919
49920 * kern/efi/init.c (grub_efi_set_prefix): Specify
49921 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49922
49923 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49924 argument IMAGE_HANDLE and specify it to get a loaded image.
49925 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49926 grub_efi_get_loaded_image.
fe6b695a 49927 (grub_efi_get_filename): Divide the length by the size of
7f362539 49928 grub_efi_char16_t.
49929 (grub_efi_get_device_path): New function.
49930 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49931 the length by the size of grub_efi_char16_t for a file path device
49932 path node.
49933
49934 * kern/loader.c (grub_loader_noreturn): New variable.
49935 (grub_loader_set): Accept a new argument NORETURN. Set
49936 GRUB_LOADER_NORETURN to NORETURN.
49937 All callers changed.
49938 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49939 grub_machine_fini.
49940
49941 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49942 prototype.
49943 (grub_efi_get_loaded_image): Take an argument to specify an image
49944 handle.
49945
49946 * include/grub/loader.h (grub_loader_set): Added one more argument
49947 NORETURN.
49948
49949 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49950 instead of grub_efi_open_protocol.
49951 (grub_efidisk_get_device_name): Likewise.
49952 (grub_efidisk_close): Print a newline.
49953 (grub_efidisk_get_device_handle): Fixed to use
49954 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49955 GRUB_EFI_DEVICE_PATH_TYPE.
49956
49957 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49958 * kern/efi/efi.c (device_path_guid): ... here.
49959
49960 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49961 chain.mod.
49962 (kernel_mod_HEADERS): Added efi/disk.h.
49963 (_chain_mod_SOURCES): New variable.
49964 (_chain_mod_CFLAGS): Likewise.
49965 (_chain_mod_LDFLAGS): Likewise.
49966 (chain_mod_SOURCES): Likewise.
49967 (chain_mod_CFLAGS): Likewise.
49968 (chain_mod_LDFLAGS): Likewise.
49969
49970 * DISTLIST: Added include/grub/efi/chainloader.h,
49971 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49972
49973 * include/grub/efi/chainloader.h: New file.
49974 * loader/efi/chainloader.c: Likewise.
49975 * loader/efi/chainloader_normal.c: Likewise.
49976
c0111d6e 499772006-04-30 Marco Gerards <marco@gnu.org>
49978
49979 * commands/configfile.c (grub_cmd_source): New function.
49980 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49981 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49982
df5341da 499832006-04-30 Marco Gerards <marco@gnu.org>
49984
49985 * normal/execute.c (grub_script_execute_cmd): Change the return
49986 type to `grub_err_t'. Correctly return the error.
49987 (grub_script_execute_cmdline): In case a command line is not a
49988 command or a function, try to interpret it as an assignment.
49989
f85934bd 499902006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49991
49992 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49993 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49994 skip a node whose name is obviously invalid as UTF-16,
49995 i.e. contains a NUL character. Stop the iteration when the last
49996 directory entry is found. Instead of using the return value of
49997 grub_hfsplus_btree_iterate_node, store the value in RET and use
49998 it, because the iterator can be stopped by the last directory
49999 entry.
50000
8f8a2cf8 500012006-04-30 Marco Gerards <marco@gnu.org>
50002
50003 * include/grub/env.h (grub_env_export): New prototype. Reported
50004 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50005
a27e84ce 500062006-04-30 Marco Gerards <marco@gnu.org>
50007
50008 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50009 size of the extents in a catalog file record.
50010
eaef0553 500112006-04-29 Marco Gerards <marco@gnu.org>
50012
50013 * commands/configfile.c (grub_cmd_configfile): Execute the
50014 configfile within its own context.
50015
50016 * include/grub/env.h (grub_env_context_open): New prototype.
50017 (grub_env_context_close): Likewise.
50018
50019 * kern/env.c (grub_env): Removed.
50020 (grub_env_sorted): Likewise.
50021 (grub_env_context): New variable.
50022 (grub_env_var_context): Likewise.
50023 (grub_env_find): Search both the active context and the global
50024 context.
50025 (grub_env_context_open): New function.
50026 (grub_env_context_close): Likewise.
50027 (grub_env_insert): Likewise.
50028 (grub_env_remove): Likewise.
50029 (grub_env_export): Likewise.
50030 (grub_env_set): Changed to use helper functions to avoid code
50031 duplication.
50032 (grub_env_iterate): Rewritten so both the current context and the
50033 global context are being used.
50034
50035 * normal/command.c (export_command): New function.
50036 (grub_command_init): Register the `export' function.
50037
7b455f4d 500382006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50039
50040 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50041 explicitly to suppress gcc's warnings.
50042 * fs/fat.c (grub_fat_find_dir): Likewise.
50043 (grub_fat_label): Likewise.
50044 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50045 (grub_xfs_mount): Likewise.
50046 (grub_xfs_label): Likewise.
50047 * fs/affs.c (grub_affs_mount): Likewise.
50048 (grub_affs_label): Likewise.
50049 (grub_affs_iterate_dir): Likewise.
50050 * fs/sfs.c (grub_sfs_mount): Likewise.
50051 (grub_sfs_iterate_dir): Likewise.
50052 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50053 * fs/hfs.c (grub_hfs_mount): Likewise.
50054 (grub_hfs_cmp_catkeys): Likewise.
50055 (grub_hfs_find_dir): Likewise.
50056 (grub_hfs_dir): Likewise.
50057 (grub_hfs_label): Likewise.
50058 * fs/jfs.c (grub_jfs_mount): Likewise.
50059 (grub_jfs_opendir): Likewise.
50060 (grub_jfs_getent): Likewise.
50061 (grub_jfs_lookup_symlink): Likewise.
50062 (grub_jfs_label): Likewise.
50063 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50064 (grub_hfsplus_iterate_dir): Likewise.
50065 (grub_hfsplus_btree_iterate_node): Made static.
50066
50067 * util/grub-emu.c (prefix): New variable.
50068 (grub_machine_set_prefix): New function.
50069 (main): Do not set the environment variable "prefix" here. Only
50070 set PREFIX, which is used later by grub_machine_set_prefix.
50071
50072 * include/grub/video.h: Do not include grub/symbol.h.
50073 (grub_video_register): Not exported. This symbol is not defined in
50074 the kernel.
50075 (grub_video_unregister): Likewise.
50076 (grub_video_iterate): Likewise.
50077 (grub_video_setup): Likewise.
50078 (grub_video_restore): Likewise.
50079 (grub_video_get_info): Likewise.
50080 (grub_video_get_blit_format): Likewise.
50081 (grub_video_set_palette): Likewise.
50082 (grub_video_get_palette): Likewise.
50083 (grub_video_set_viewport): Likewise.
50084 (grub_video_get_viewport): Likewise.
50085 (grub_video_map_color): Likewise.
50086 (grub_video_map_rgb): Likewise.
50087 (grub_video_map_rgba): Likewise.
50088 (grub_video_fill_rect): Likewise.
50089 (grub_video_blit_glyph): Likewise.
50090 (grub_video_blit_bitmap): Likewise.
50091 (grub_video_blit_render_target): Likewise.
50092 (grub_video_scroll): Likewise.
50093 (grub_video_swap_buffers): Likewise.
50094 (grub_video_create_render_target): Likewise.
50095 (grub_video_delete_render_target): Likewise.
50096 (grub_video_set_active_render_target): Likewise.
50097
50098 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50099 Undefined.
50100 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50101
50102 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50103 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50104 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50105 instead of $(srcdir)/genkernsyms.sh.
50106
50107 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50108 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50109 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50110 instead of $(srcdir)/genkernsyms.sh.
50111
50112 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50113 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50114 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50115 instead of $(srcdir)/genkernsyms.sh.
50116
50117 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50118 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50119 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50120 instead of $(srcdir)/genkernsyms.sh.
50121
50122 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50123 genkernsyms.sh.
50124
50125 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50126 genkernsyms.sh.
50127 (gensymlist.sh): New target.
50128 (genkernsyms.sh): Likewise.
50129
50130 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50131 genkernsyms.sh.in and gensymlist.sh.in.
50132
50133 * genkernsyms.sh: Removed.
50134 * gensymlist.sh: Likewise.
f19dbdb7 50135
7b455f4d 50136 * genkernsyms.sh.in: New file.
50137 * gensymlist.sh.in: Likewise.
50138
1885bb27 501392006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50140
50141 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50142 clobber "prefix", since we may have already set it manually.
50143
71538dff 501442006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50145
50146 * kern/misc.c (abort): New alias for grub_abort.
50147
2965c7cc 501482006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50149
50150 A new machine-specific function "grub_machine_set_prefix" is
50151 defined. This is called after loading modules, so that a prefix
50152 initialization can use modules. Also, this change adds an
50153 intensive debugging feature for the memory manager via the
50154 configure option "--enable-mm-debug".
f19dbdb7 50155
2965c7cc 50156 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50157 PART.LEN.
50158
50159 * kern/sparc64/ieee1275/init.c (abort): Removed.
50160 (grub_stop): Likewise.
50161 (grub_exit): New function.
50162 (grub_set_prefix): Renamed to ...
50163 (grub_machine_set_prefix): ... this.
50164 (grub_machine_init): Do not call grub_set_prefix.
50165
50166 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50167 (grub_machine_set_prefix): ... this.
50168 (grub_machine_init): Do not call grub_set_prefix.
50169
50170 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50171 (grub_machine_init): Do not set the prefix here.
50172
50173 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50174
50175 * kern/efi/init.c: Include grub/mm.h.
50176 (grub_efi_set_prefix): New function.
50177
50178 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50179 (grub_efi_get_filename): New function.
50180 (grub_print_device_path): Renamed to ...
50181 (grub_efi_print_device_path): ... this.
50182
50183 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50184 [MM_DEBUG] (grub_realloc): Likewise.
50185 [MM_DEBUG] (grub_free): Likewise.
50186 [MM_DEBUG] (grub_memalign): Likewise.
50187 [MM_DEBUG] (grub_mm_debug): New variable.
50188 [MM_DEBUG] (grub_debug_malloc): New function.
50189 [MM_DEBUG] (grub_debug_free): New function.
50190 [MM_DEBUG] (grub_debug_realloc): New function.
50191 [MM_DEBUG] (grub_debug_memalign): New function.
50192
50193 * kern/misc.c (grub_abort): Print a newline to distinguish
50194 the message.
50195
50196 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50197 grub_set_root_dev after loading modules. This is necessary when
50198 setting a prefix depends on modules.
50199
50200 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50201 (grub_efi_print_device_path): ... this.
50202 (grub_efi_get_filename): New prototype.
50203 (grub_efi_set_prefix): Likewise.
50204
50205 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50206 and grub/disk.h.
50207 (grub_efidisk_get_device_handle): New prototype.
50208 (grub_efidisk_get_device_name): Likewise.
50209
50210 * include/grub/mm.h: Include config.h.
50211 (MM_DEBUG): Removed.
50212 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50213 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50214 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50215 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50216 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50217 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50218 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50219 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50220 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50221
50222 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50223
50224 * disk/efi/efidisk.c: Include grub/partition.h.
50225 (iterate_child_devices): New function.
50226 (add_device): First, compare only last device path nodes, so that
50227 devices are sorted by the types.
50228 (grub_efidisk_get_device_handle): New function.
50229 (grub_efidisk_get_device_name): Likewise.
50230
50231 * configure.ac (--enable-mm-debug): New option to enable the
50232 memory manager debugging feature. This makes the binary much
50233 bigger, so is disabled by default.
50234
9cacaa17 502352006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50236
50237 Use grub_abort instead of grub_stop, and grub_exit must be
50238 define in each architecture now. Also, this change adds support
50239 for EFI disks.
f19dbdb7 50240
9cacaa17 50241 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50242 (grub_getkey): New function.
50243 (grub_term_get_current): Likewise.
50244
50245 * util/i386/pc/grub-setup.c: Include grub/term.h.
50246 (grub_getkey): New function.
50247 (grub_term_get_current): Likewise.
50248
50249 * util/misc.c (grub_stop): Renamed to ...
50250 (grub_exit): ... this.
50251
50252 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50253 (grub_exit): ... this.
50254 (grub_machine_init): Use grub_abort instead of abort.
50255 (grub_stop): Removed.
50256
50257 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50258 abort.
50259
50260 * kern/i386/pc/startup.S (grub_exit): New function.
50261 (cold_reboot): New label.
50262
50263 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50264 (grub_efi_init): Call grub_efidisk_init.
50265 (grub_efi_fini): Call grub_efidisk_fini.
50266
50267 * kern/efi/efi.c: Include grub/mm.h.
50268 (grub_efi_console_control_guid): Renamed to ...
50269 (console_control_guid): ... this.
50270 (grub_efi_loaded_image_guid): Renamed to ...
50271 (loaded_image_guid): ... this.
50272 (grub_efi_locate_handle): New function.
50273 (grub_efi_open_protocol): Likewise.
50274 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50275 GRUB_EFI_CONSOLE_CONTROL_GUID.
50276 (grub_efi_exit): Removed.
50277 (grub_stop): Likewise.
50278 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50279 (grub_exit): New function.
50280 (grub_print_device_path): Likewise.
50281
50282 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50283 (grub_enter_rescue_mode): Register "exit".
50284
50285 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50286 (grub_abort): New function.
50287
50288 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50289
50290 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50291
50292 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50293
50294 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50295 (grub_print_device_path): New prototype.
50296 (grub_efi_locate_handle): Likewise.
50297 (grub_efi_open_protocol): Likewise.
50298
50299 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50300 * disk/efi/efidisk.c: Likewise.
50301
50302 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50303
50304 * include/grub/efi/console_control.h
50305 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50306
50307 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50308 last 8 bytes as an array.
50309 (GRUB_EFI_DISK_IO_GUID): New macro.
50310 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50311 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50312 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50313 grub_uint8_t.
50314 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50315 (struct grub_efi_device_path): Rename the member "sub_type" to
50316 "subtype".
50317 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50318 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50319 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50320 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50321 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50322 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50323 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50324 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50325 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50326 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50327 (struct grub_efi_pci_device_path): New structure.
50328 (grub_efi_pci_device_path_t): New type.
50329 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50330 (struct grub_efi_pccard_device_path): New structure.
50331 (grub_efi_pccard_device_path_t): New type.
50332 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50333 (struct grub_efi_memory_mapped_device_path): New structure.
50334 (grub_efi_memory_mapped_device_path_t): New type.
50335 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50336 (struct grub_efi_vendor_device_path): New structure.
50337 (grub_efi_vendor_device_path_t): New type.
50338 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50339 (struct grub_efi_controller_device_path): New structure.
50340 (grub_efi_controller_device_path_t): New type.
50341 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50342 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50343 (struct grub_efi_acpi_device_path): New structure.
50344 (grub_efi_acpi_device_path_t): New type.
50345 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50346 (struct grub_efi_expanded_acpi_device_path): New structure.
50347 (grub_efi_expanded_acpi_device_path_t): New type.
50348 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50349 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50350 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50351 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50352 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50353 (struct grub_efi_atapi_device_path): New structure.
50354 (grub_efi_atapi_device_path_t): New type.
50355 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50356 (struct grub_efi_fibre_channel_device_path): New structure.
50357 (grub_efi_fibre_channel_device_path_t): New type.
50358 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50359 (struct grub_efi_1394_device_path): New structure.
50360 (grub_efi_1394_device_path_t): New type.
50361 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50362 (struct grub_efi_usb_device_path): New structure.
50363 (grub_efi_usb_device_path_t): New type.
50364 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50365 (struct grub_efi_usb_class_device_path): New structure.
50366 (grub_efi_usb_class_device_path_t): New type.
50367 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50368 (struct grub_efi_i2o_device_path): New structure.
50369 (grub_efi_i2o_device_path_t): New type.
50370 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50371 (struct grub_efi_mac_address_device_path): New structure.
50372 (grub_efi_mac_address_device_path_t): New type.
50373 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50374 (struct grub_efi_ipv4_device_path): New structure.
50375 (grub_efi_ipv4_device_path_t): New type.
50376 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50377 (struct grub_efi_ipv6_device_path): New structure.
50378 (grub_efi_ipv6_device_path_t): New type.
50379 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50380 (struct grub_efi_infiniband_device_path): New structure.
50381 (grub_efi_infiniband_device_path_t): New type.
50382 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50383 (struct grub_efi_uart_device_path): New structure.
50384 (grub_efi_uart_device_path_t): New type.
50385 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50386 (struct grub_efi_vendor_messaging_device_path): New structure.
50387 (grub_efi_vendor_messaging_device_path_t): New type.
50388 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50389 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50390 (struct grub_efi_hard_drive_device_path): New structure.
50391 (grub_efi_hard_drive_device_path_t): New type.
50392 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50393 (struct grub_efi_cdrom_device_path): New structure.
50394 (grub_efi_cdrom_device_path_t): New type.
50395 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50396 (struct grub_efi_vendor_media_device_path): New structure.
50397 (grub_efi_vendor_media_device_path_t): New type.
50398 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50399 (struct grub_efi_file_path_device_path): New structure.
50400 (grub_efi_file_path_device_path_t): New type.
50401 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50402 (struct grub_efi_protocol_device_path): New structure.
50403 (grub_efi_protocol_device_path_t): New type.
50404 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50405 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50406 (struct grub_efi_bios_device_path): New structure.
50407 (grub_efi_bios_device_path_t): New type.
50408 (struct grub_efi_disk_io): New structure.
50409 (grub_efi_disk_io_t): New type.
50410 (struct grub_efi_block_io_media): New structure.
50411 (grub_efi_block_io_media_t): New type.
50412 (struct grub_efi_block_io): New structure.
50413 (grub_efi_block_io_t): New type.
50414
50415 * include/grub/misc.h (grub_stop): Removed.
50416 (grub_exit): New prototype.
50417 (grub_abort): Likewise.
50418
50419 * include/grub/disk.h (enum grub_disk_dev_id): Added
50420 GRUB_DISK_DEVICE_EFIDISK_ID.
50421
50422 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50423 disk/efi/efidisk.c.
50424 (kernel_syms.lst): Remove the target if an error occurs.
50425
49986a9f 504262006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50427
50428 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50429 as it was simply too buggy.
50430
970d3b8a 504312006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50432
50433 * kern/misc.c (grub_lltoa): New function.
50434 (grub_vsprintf): Added support for the long long suffix,
50435 i.e. "ll".
50436
ff04ec24 504372006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50438
50439 * Makefile.in (LDFLAGS): Add variable.
50440 (LD): Remove variable.
50441 * configure.ac: Add -m32 to LDFLAGS.
50442 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50443 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50444 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50445 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50446 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50447 variables.
50448 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50449 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50450 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50451
37e5e1a4 504522006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50453
50454 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50455 length for unknown glyph.
50456
c352d8dd 504572006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50458
2eab1c0d 50459 Add support for pre-loaded modules into the EFI port.
f19dbdb7 50460
2eab1c0d 50461 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50462 completely. Accept one more argument DIR. The caller has changed.
50463
50464 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50465
50466 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50467 (grub_efi_loaded_image_guid): New variable.
50468 (grub_efi_get_loaded_image): New function.
50469 (grub_arch_modules_addr): Likewise.
50470
50471 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50472 prototype.
50473
50474 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50475 (struct grub_efi_loaded_image): New structure.
50476 (grub_efi_loaded_image_t): New type.
50477
504782006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 50479
c352d8dd 50480 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50481 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50482 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50483
6d01d6b4 504842006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50485
50486 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50487
976a4ea0 504882006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50489
50490 * DISTLIST: Added include/grub/efi/console.h,
50491 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50492 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50493
50494 * include/grub/efi/console.h: New file.
50495 * include/grub/efi/time.h: Likewise.
50496 * include/grub/i386/efi/kernel.h: Likewise.
50497 * kern/efi/init.c: Likewise.
50498 * kern/efi/mm.c: Likewise.
50499 * term/efi/console.c: Likewise.
f19dbdb7 50500
976a4ea0 50501 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50502 (grub_stop): Removed.
50503 (grub_get_rtc): Likewise.
50504 (grub_machine_init): Simply call grub_efi_init.
50505 (grub_machine_fini): Call grub_efi_fini.
50506
50507 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50508 (grub_efi_output_string): Removed.
50509 (grub_efi_stall): New function.
50510 (grub_stop): Likewise.
50511 (grub_get_rtc): Likewise.
50512
50513 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50514 (grub_efi_stall): New prototype.
50515 (grub_efi_allocate_pages): Likewise.
50516 (grub_efi_free_pages): Likewise.
50517 (grub_efi_get_memory_map): Likewise.
50518 (grub_efi_mm_init): Likewise.
50519 (grub_efi_mm_fini): Likewise.
50520 (grub_efi_init): Likewise.
50521 (grub_efi_fini): Likewise.
50522
50523 * include/grub/i386/efi/time.h: Do not include
50524 grub/symbol.h. Include grub/efi/time.h.
50525 (GRUB_TICKS_PER_SECOND): Removed.
50526 (grub_get_rtc): Likewise.
50527
50528 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50529 Added padding. The EFI spec is buggy.
50530 (GRUB_EFI_BLACK): New macro.
50531 (GRUB_EFI_BLUE): Likewise.
50532 (GRUB_EFI_GREEN): Likewise.
50533 (GRUB_EFI_CYAN): Likewise.
50534 (GRUB_EFI_RED): Likewise.
50535 (GRUB_EFI_MAGENTA): Likewise.
50536 (GRUB_EFI_BROWN): Likewise.
50537 (GRUB_EFI_LIGHTGRAY): Likewise.
50538 (GRUB_EFI_BRIGHT): Likewise.
50539 (GRUB_EFI_DARKGRAY): Likewise.
50540 (GRUB_EFI_LIGHTBLUE): Likewise.
50541 (GRUB_EFI_LIGHTGREEN): Likewise.
50542 (GRUB_EFI_LIGHTCYAN): Likewise.
50543 (GRUB_EFI_LIGHTRED): Likewise.
50544 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50545 (GRUB_EFI_YELLOW): Likewise.
50546 (GRUB_EFI_WHITE): Likewise.
50547 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50548 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50549 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50550 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50551 (GRUB_EFI_BACKGROUND_RED): Likewise.
50552 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50553 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50554 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50555 (GRUB_EFI_TEXT_ATTR): Likewise.
50556
50557 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50558 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50559 (kernel_mod_HEADERS): Added efi/time.h.
50560
83709125 505612006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50562
50563 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50564 include/grub/efi/api.h, include/grub/efi/console_control.h,
50565 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50566 include/grub/i386/efi/time.h, kern/efi/efi.c,
50567 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50568 and util/i386/efi/grub-mkimage.c.
50569
50570 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50571
50572 * genmk.rb (PModule#rule): Do not export symbols if
50573 #{prefix}_EXPORTS is set to "no".
50574
50575 * conf/i386-efi.mk: New file.
50576 * conf/i386-efi.rmk: Likewise.
50577 * include/grub/efi/api.h: Likewise.
50578 * include/grub/efi/console_control.h: Likewise.
50579 * include/grub/efi/efi.h: Likewise.
50580 * include/grub/efi/pe32.h: Likewise.
50581 * include/grub/i386/efi/time.h: Likewise.
50582 * kern/efi/efi.c: Likewise.
50583 * kern/i386/efi/init.c: Likewise.
50584 * kern/i386/efi/startup.S: Likewise.
50585 * util/i386/efi/grub-mkimage.c: Likewise.
50586
505872006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 50588
50589 * include/grub/script.h: Include <grub/parser.h> and
50590 "grub_script.tab.h".
50591 (struct grub_lexer_param): New struct.
50592 (struct grub_parser_param): Likewise.
50593 (grub_script_create_arglist): Pass the state in an argument.
50594 (grub_script_add_arglist): Likewise.
50595 (grub_script_create_cmdline): Likewise.
50596 (grub_script_create_cmdblock): Likewise.
50597 (grub_script_create_cmdif): Likewise.
50598 (grub_script_create_cmdmenu): Likewise.
50599 (grub_script_add_cmd): Likewise.
50600 (grub_script_arg_add): Likewise.
50601 (grub_script_lexer_ref): Likewise.
50602 (grub_script_lexer_deref): Likewise.
50603 (grub_script_lexer_record_start): Likewise.
50604 (grub_script_lexer_record_stop): Likewise.
50605 (grub_script_mem_record): Likewise.
50606 (grub_script_mem_record_stop): Likewise.
50607 (grub_script_malloc): Likewise.
50608 (grub_script_yylex): Likewise.
50609 (grub_script_yyparse): Likewise.
50610 (grub_script_yyerror): Likewise.
50611 (grub_script_yylex): Likewise.
50612 (grub_script_lexer_init): Return the state.
50613
50614 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50615 (grub_script_lexer_done): Likewise.
50616 (grub_script_lexer_getline): Likewise.
50617 (grub_script_lexer_refs): Likewise.
50618 (script): Likewise.
50619 (newscript): Likewise.
50620 (record): Likewise.
50621 (recording): Likewise.
50622 (recordpos): Likewise.
50623 (recordlen): Likewise.
50624 (grub_script_lexer_init): Return the state instead of setting
50625 global variables.
50626 (grub_script_lexer_ref): Use the newly added argument for state
50627 instead of globals.
50628 (grub_script_lexer_deref): Likewise.
50629 (grub_script_lexer_record_start): Likewise.
50630 (grub_script_lexer_record_stop): Likewise.
50631 (recordchar): Likewise.
50632 (nextchar): Likewise.
50633 (grub_script_yylex2): Likewise.
50634 (grub_script_yylex): Likewise.
50635 (grub_script_yyerror): Likewise.
50636
50637 * normal/parser.y (func_mem): Removed variable.
50638 (menu_entry): Likewise.
50639 (err): Likewise.
50640 (%lex-param): New parser option.
50641 (%parse-param): Likewise.
50642 (script): Always return the AST.
50643 (argument): Pass the state around.
50644 (arguments): Likewise.
50645 (grubcmd): Likewise.
50646 (commands): Likewise.
50647 (function): Likewise.
50648 (menuentry): Likewise.
50649 (if_statement): Likewise.
50650 (if): Likewise.
50651
50652 * normal/script.c (grub_script_memused): Removed variable.
50653 (grub_script_parsed): Likewise.
50654 (grub_script_malloc): Added a state argument. Use that instead of
50655 global variables.
50656 (grub_script_mem_record): Likewise.
50657 (grub_script_mem_record_stop): Likewise.
50658 (grub_script_arg_add): Likewise.
50659 (grub_script_add_arglist): Likewise.
50660 (grub_script_create_cmdline): Likewise.
50661 (grub_script_create_cmdif): Likewise.
50662 (grub_script_create_cmdmenu): Likewise.
50663 (grub_script_add_cmd): Likewise.
50664 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 50665
e2a8c904 506662006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 50667
50668 * normal/command.c (grub_command_init): Remove the title command.
50669
50670 * normal/lexer.c (grub_script_yylex): Renamed from this...
50671 (grub_script_yylex2): ... to this.
50672 (grub_script_yylex): New function. Temporary
50673 introduced to filter some tokens.
50674 (grub_script_yyerror): Print a newline.
50675
50676 * normal/main.c (read_config_file): Output information about the
50677 lines that contain errors. Wait for a key after all lines have
50678 been processed. Don't return an empty menu.
50679
50680 * normal/parser.y (func_mem): Don't initialize.
50681 (menu_entry): Likewise.
50682 (err): New variable.
50683 (script): Don't return anything when an error was encountered.
50684 (ws, returns): Removed rules.
50685 (argument): Disabled concatenated variable support.
50686 (arguments): Remove explicit separators.
50687 (grubcmd): Likewise.
50688 (function): Likewise.
50689 (menuentry): Likewise.
50690 (if): Likewise.
50691 (commands): Likewise. Add error handling.
50692
50693 * normal/script.c (grub_script_create_cmdline): If
50694 `grub_script_parsed' is 0, assume the parser encountered an error.
50695
c9a86192 506962006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50697
50698 * configure.ac: Add support for EFI. Fix the typo
50699 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50700
70f3b243 507012006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50702
50703 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50704 foreign multibyte characters should be shown correctly.
50705
65f201ad 507062006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50707
50708 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50709 calculation.
50710 (read_config_file): Made it to close file before returning.
50711
b4b93674 507122006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50713
50714 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50715 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50716 video/i386/pc/vbefill.c.
50717
50718 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50719 video/i386/pc/vbefill.c.
50720
50721 * include/grub/video.h (grub_video_blit_format): New enum.
50722 (grub_video_mode_info): Added new member blit_format.
50723 (grub_video_get_blit_format): New function prototype.
50724
50725 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50726 function prototype.
50727 (grub_video_vbe_map_rgb): Likewise.
50728 (grub_video_vbe_unmap_color): Likewise.
50729
50730 * include/grub/i386/pc/vbeblit.h: New file.
50731
50732 * include/grub/i386/pc/vbefill.h: New file.
50733
50734 * video/video.c (grub_video_get_blit_format): New function.
50735 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50736 (grub_video_vbe_map_rgb): Likewise.
50737 (grub_video_vbe_unmap_color): Likewise.
50738
50739 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50740 optimized fills.
50741 (grub_video_vbe_blit_render_target): Changed to use more optimized
50742 blits.
50743 (grub_video_vbe_setup): Added detection for optimized settings.
50744 (grub_video_vbe_create_render_target): Likewise.
50745
50746 * video/i386/pc/vbeblit.c: New file.
50747
50748 * video/i386/pc/vbefill.c: New file.
50749
c2379b9c 507502006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50751
50752 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50753 here...
50754
50755 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50756 parsing to support both hex and dec ranges. If filename was missing
50757 show usage information.
50758
bd0d7896 507592006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50760
50761 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50762 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50763
50764 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50765 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50766 (video_mod_SOURCES): Added.
50767 (video_mod_CFLAGS): Likewise.
50768 (video_mod_LDFLAGS): Likewise.
50769 (gfxterm_mod_SOURCES): Likewise.
50770 (gfxterm_mod_CFLAGS): Likewise.
50771 (gfxterm_mod_LDFLAGS): Likewise.
50772 (videotest_mod_SOURCES): Likewise.
50773 (videotest_mod_CFLAGS): Likewise.
50774 (videotest_mod_LDFLAGS): Likewise.
50775 (vesafb_mod_SOURCES): Removed.
50776 (vesafb_mod_CFLAGS): Likewise.
50777 (vesafb_mod_LDFLAGS): Likewise.
50778 (vga_mod_SOURCES): Likewise.
50779 (vga_mod_CFLAGS): Likewise.
50780 (vga_mod_LDFLAGS): Likewise.
50781
50782 * commands/videotest.c: New file.
50783
50784 * font/manager.c (fill_with_default_glyph): Modified to use
50785 grub_font_glyph.
50786 (grub_font_get_glyph): Likewise.
50787 (fontmanager): Renamed from this...
50788 (font_manager): ... to this.
50789
50790 * include/grub/font.h (grub_font_glyph): Added new structure.
50791 (grub_font_get_glyph): Modified to use grub_font_glyph.
50792
50793 * include/grub/misc.h (grub_abs): Added as inline function.
50794
50795 * include/grub/video.h: New file.
50796
50797 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50798 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50799 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50800 (grub_vbe_get_controller_info): Renamed from this...
50801 (grub_vbe_bios_get_controller_info): ... to this.
50802 (grub_vbe_get_mode_info): Renamed from this...
50803 (grub_vbe_bios_get_mode_info): ... to this.
50804 (grub_vbe_set_mode): Renamed from this...
50805 (grub_vbe_bios_set_mode): ... to this.
50806 (grub_vbe_get_mode): Renamed from this...
50807 (grub_vbe_bios_get_mode): ... to this.
50808 (grub_vbe_set_memory_window): Renamed from this...
50809 (grub_vbe_bios_set_memory_window): ... to this.
50810 (grub_vbe_get_memory_window): Renamed from this...
50811 (grub_vbe_bios_get_memory_window): ... to this.
50812 (grub_vbe_set_scanline_length): Renamed from this...
50813 (grub_vbe_set_scanline_length): ... to this.
50814 (grub_vbe_get_scanline_length): Renamed from this...
50815 (grub_vbe_bios_get_scanline_length): ... to this.
50816 (grub_vbe_set_display_start): Renamed from this...
50817 (grub_vbe_bios_set_display_start): ... to this.
50818 (grub_vbe_get_display_start): Renamed from this...
50819 (grub_vbe_bios_get_display_start): ... to this.
50820 (grub_vbe_set_palette_data): Renamed from this...
50821 (grub_vbe_bios_set_palette_data): ... to this.
50822 (grub_vbe_set_pixel_rgb): Removed.
50823 (grub_vbe_set_pixel_index): Likewise.
50824
50825 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50826 from this...
50827 (grub_vbe_bios_get_controller_info): ... to this.
50828 (grub_vbe_get_mode_info): Renamed from this...
50829 (grub_vbe_bios_get_mode_info): ... to this.
50830 (grub_vbe_set_mode): Renamed from this...
50831 (grub_vbe_bios_set_mode): ... to this.
50832 (grub_vbe_get_mode): Renamed from this...
50833 (grub_vbe_bios_get_mode): ... to this.
50834 (grub_vbe_set_memory_window): Renamed from this...
50835 (grub_vbe_bios_set_memory_window): ... to this.
50836 (grub_vbe_get_memory_window): Renamed from this...
50837 (grub_vbe_bios_get_memory_window): ... to this.
50838 (grub_vbe_set_scanline_length): Renamed from this...
50839 (grub_vbe_set_scanline_length): ... to this.
50840 (grub_vbe_get_scanline_length): Renamed from this...
50841 (grub_vbe_bios_get_scanline_length): ... to this.
50842 (grub_vbe_set_display_start): Renamed from this...
50843 (grub_vbe_bios_set_display_start): ... to this.
50844 (grub_vbe_get_display_start): Renamed from this...
50845 (grub_vbe_bios_get_display_start): ... to this.
50846 (grub_vbe_set_palette_data): Renamed from this...
50847 (grub_vbe_bios_set_palette_data): ... to this.
50848 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50849 getting corrupted after calling it. Added more pushes and pops.
50850 (grub_vbe_bios_set_mode): Likewise.
50851 (grub_vbe_bios_get_mode): Likewise.
50852 (grub_vbe_bios_get_memory_window): Likewise.
50853 (grub_vbe_bios_set_scanline_length): Likewise.
50854 (grub_vbe_bios_get_scanline_length): Likewise.
50855 (grub_vbe_bios_get_display_start): Likewise.
50856 (grub_vbe_bios_set_palette_data): Likewise.
50857
50858 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50859 (cl_insert): Likewise.
50860 (cl_delete): Likewise.
50861
50862 * term/gfxterm.c: New file.
50863
50864 * term/i386/pc/vesafb.c: Removed file.
50865
50866 * video/video.c: New file.
50867
50868 * video/i386/pc/vbe.c (real2pm): Added new function.
50869 (grub_video_vbe_draw_pixel): Likewise.
50870 (grub_video_vbe_get_video_ptr): Likewise.
50871 (grub_video_vbe_get_pixel): Likewise
50872 (grub_video_vbe_init): Likewise.
50873 (grub_video_vbe_fini): Likewise.
50874 (grub_video_vbe_setup): Likewise.
50875 (grub_video_vbe_get_info): Likewise.
50876 (grub_video_vbe_set_palette): Likewise.
50877 (grub_video_vbe_get_palette): Likewise.
50878 (grub_video_vbe_set_viewport): Likewise.
50879 (grub_video_vbe_get_viewport): Likewise.
50880 (grub_video_vbe_map_color): Likewise.
50881 (grub_video_vbe_map_rgb): Likewise.
50882 (grub_video_vbe_map_rgba): Likewise.
50883 (grub_video_vbe_unmap_color): Likewise.
50884 (grub_video_vbe_fill_rect): Likewise.
50885 (grub_video_vbe_blit_glyph): Likewise.
50886 (grub_video_vbe_blit_bitmap): Likewise.
50887 (grub_video_vbe_blit_render_target): Likewise.
50888 (grub_video_vbe_scroll): Likewise.
50889 (grub_video_vbe_swap_buffers): Likewise.
50890 (grub_video_vbe_create_render_target): Likewise.
50891 (grub_video_vbe_delete_render_target): Likewise.
50892 (grub_video_vbe_set_active_render_target): Likewise.
50893 (grub_vbe_set_pixel_rgb): Remove function.
50894 (grub_vbe_set_pixel_index): Likewise.
50895 (index_color_mode): Remove static variable.
50896 (active_mode): Likewise.
50897 (framebuffer): Likewise.
50898 (bytes_per_scan_line): Likewise.
50899 (grub_video_vbe_adapter): Added new static variable.
50900 (framebuffer): Likewise.
50901 (render_target): Likewise.
50902 (initial_mode): Likewise.
50903 (mode_in_use): Likewise.
50904 (mode_list): Likewise.
50905
5f97350b 509062006-03-10 Marco Gerards <marco@gnu.org>
50907
50908 * configure.ac (AC_INIT): Bumped to 1.93.
50909
50910 * DISTLIST: Added `include/grub/hfs.h'.
50911
a3c5c6f8 509122006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50913
50914 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50915 18H, which might help the BIOS falling back to next boot media.
50916
6de53d26 509172006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50918
50919 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50920 Poe Chen <poe.poechen@gmail.com>.
50921
77c4a393 509222006-01-17 Marco Gerards <marco@gnu.org>
50923
50924 * include/grub/normal.h: Include <grub/script.h>.
50925 (grub_command_list): Removed struct.
50926 (grub_command_list_t): Removed type.
50927 (grub_menu_entry): Remove members `num' and `command_list'. Add
50928 members `commands' and `sourcecode'.
50929 * include/grub/script.h: Add inclusion guards.
50930 (grub_script_cmd_menuentry): New struct.
50931 (grub_script_execute_menuentry): New prototype.
50932 (grub_script_lexer_record_start): Likewise.
50933 (grub_script_lexer_record_stop): Likewise.
50934 * normal/execute.c (grub_script_execute_menuentry): New function.
50935 * normal/lexer.c (record, recording, recordpos, recordlen): New
50936 variables.
50937 (grub_script_lexer_record_start): New function.
50938 (grub_script_lexer_record_stop): Likewise.
50939 (recordchar): Likewise.
50940 (nextchar): Likewise.
50941 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50942 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50943 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50944 (current_menu): New variable.
50945 (free_menu): Mainly rewritten.
50946 (grub_normal_menu_addentry): New function.
50947 (read_config_file): Rewritten.
50948 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 50949 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 50950 the menu entry.
50951 (run): Mainly rewritten.
50952 * normal/parser.y (menu_entry): New variable.
50953 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50954 (menuentry): New rule.
50955 (command): Add `menuentry'.
50956 (if_statement): Allow additional returns before `fi'.
50957 * normal/script.c (grub_script_create_cmdmenu): New function.
50958
144f1f98 509592006-01-03 Marco Gerards <marco@gnu.org>
50960
50961 * INSTALL: GNU Bison is required.
50962 * configure.ac: Rewritten the test to detect Bison.
50963 * Makefile.in (YACC): New variable. Reported by Xun Sun
50964 <xun.sun.cn@gmail.com>.
50965
af4b2d89 509662006-01-03 Marco Gerards <marco@gnu.org>
50967
50968 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50969 the HFS+ filesystem to filesystem blocks.
50970 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50971 GCC warning is silenced.
50972
15643b71 509732006-01-03 Marco Gerards <marco@gnu.org>
50974
50975 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50976 read from disk from big endian to host byte order.
50977
00905879 509782006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50979
50980 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50981 documentation.
50982 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50983 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50984 embedded HFS+ filesystem.
50985 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50986 (grub_hfs_sblock): Move from here...
50987 * include/grub/hfs.h: To here... New file.
50988 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50989 documentation.
50990 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50991 New macros.
50992 (grub_hfsplus_volheader): Change type of member `magic' to
50993 `grub_uint16_t'.
50994 (grub_hfsplus_data): Add new member `embedded_offset'.
50995 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50996 returned block.
50997 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50998 Calculate the offset.
50999
8899bc3e 510002005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51001
51002 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51003 Removed.
51004 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51005
ae8c0277 510062005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51007
51008 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51009 ENV->NAME is NULL after allocating ENV->VALUE.
51010
07084456 510112005-12-25 Marco Gerards <marco@gnu.org>
51012
51013 * kern/env.c (grub_env_set): Rewritten the error handling code.
51014
4750f5f1 510152005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51016
51017 * geninit.sh: Made more robust, and more portable.
51018
50214199 510192005-12-25 Marco Gerards <marco@gnu.org>
51020
51021 Add support for Apple HFS+ filesystems.
f19dbdb7 51022
50214199 51023 * fs/hfsplus.c: New file.
51024
51025 * DISTLIST: Added `fs/hfsplus.c'.
51026
51027 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51028 (hfsplus_mod_SOURCES): New variable.
51029 (hfsplus_mod_CFLAGS): Likewise.
51030 (hfsplus_mod_LDFLAGS): Likewise.
51031 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51032 (grub_setup_SOURCES): Likewise.
51033 (grub_mkdevicemap_SOURCES): Likewise.
51034 (grub_emu_SOURCES): Likewise.
51035 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51036
51037 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51038
51039 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51040
befaed6c 510412005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51042
51043 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51044 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51045 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51046 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51047 normal/lexer.c, normal/parser.y, normal/script.c, and
51048 partmap/gpt.c.
51049 Removed kern/sparc64/cache.c.
51050
51051 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51052 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51053 grub_emu_init.c.
51054
51055 * configure.ac (AC_INIT): Bumped to 1.92.
51056
6a124103 510572005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51058
51059 * kern/err.c (grub_error_push): Added new function to support error
51060 stacks.
51061 (grub_error_pop): Likewise.
51062 (grub_error_stack_items): New local variable to support error stacks.
51063 (grub_error_stack_pos): Likewise.
51064 (grub_error_stack_assert): Likewise.
51065 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51066 stack depth.
51067 (grub_print_error): Added support to print errors from error stack.
51068
51069 * include/grub/err.h (grub_error_push): Added function prototype.
51070 (grub_error_pop): Likewise.
51071
be973c1b 510722005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51073
51074 * configure.ac: Accept `powerpc64' as host_cpu.
51075 (amd64): Rename to `biarch32'.
51076
51077 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51078 non-cacheline-aligned addresses.
51079
51080 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51081 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51082 if `size' is non-zero.
51083
b04216ab 510842005-12-03 Marco Gerards <mgerards@xs4all.nl>
51085
51086 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51087 and `cd' to make sure the filename is not prefixed with a
51088 directory name.
51089 (pkgdata_MODULES): Add `gpt.mod'.
51090 (gpt_mod_SOURCES): New variable.
51091 (gpt_mod_CFLAGS): Likewise.
51092 (gpt_mod_LDFLAGS): Likewise.
51093
51094 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51095
51096 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51097 New macro.
51098
51099 * partmap/gpt.c: New file.
51100
51101 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51102 GPT partition map is detected.
51103
41730ed9 511042005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51105
51106 * commands/i386/pc/play.c: New file.
51107 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51108 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51109 macros.
f19dbdb7 51110
95dc3643 511112005-11-27 Marco Gerards <mgerards@xs4all.nl>
51112
51113 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51114 ((unused))' to silence gcc warning.
51115
1569ec51 511162005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51117
51118 * configure.ac: Correct `AC_PROG_YACC' test.
51119
9abde152 511202005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51121
51122 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51123 check before installing files.
51124
44b83271 511252005-11-22 Mike Small <smallm@panix.com>
51126
51127 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51128 number regex so multidigit numbers are recognized correctly.
51129
511302005-11-22 Mike Small <smallm@panix.com>
51131
51132 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51133 debugging message before attempting to claim memory.
51134 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51135 multiple addresses in case of failure.
51136
9c12956b 511372005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51138
51139 * term/tparm.c (get_space): Remove empty `if' statement.
51140
51141 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51142
51143 * kern/parser.c (check_varstate): Rename `state' to 's'.
51144
aeaf81d9 511452005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51146
51147 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51148 variable definitions to the beginning of each function. Sort stack
51149 variables by size.
51150 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51151 `buf' argument to `char *'.
51152
79bbb63f 511532005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51154
51155 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51156 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 51157 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 51158 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51159 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51160 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51161 configfile.mod, search.mod, gzio.mod and test.mod.
51162 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51163 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51164 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51165 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51166 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51167 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51168 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51169 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51170 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51171 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51172 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51173 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51174 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51175 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51176 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51177 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51178 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51179 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51180 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51181 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51182 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51183 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51184 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51185
51186 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51187 `grep --include'.
51188 (pkgdata_MODULES): Add test.mod.
51189
233b1628 511902005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51191
51192 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51193 appending to variables with "+=".
51194 (PModule): Use full pathname to generate *.lst filenames.
51195
51196 * Makefile.in: Fixed list rules moved from genmk.rb.
51197 (.DELETE_ON_ERROR): New special target.
51198 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51199
51200 * conf/i386-pc.rmk: Include conf/common.mk.
51201 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 51202 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 51203 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51204 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51205 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51206 configfile.mod, search.mod, gzio.mod and test.mod.
51207 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51208 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51209 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51210 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51211 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51212 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51213 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51214 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51215 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51216 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51217 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51218 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51219 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51220 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51221 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51222 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51223 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51224 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51225 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51226 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51227 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51228 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51229 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51230 here...
51231 * conf/common.rmk: ... to here. New file.
51232
51233 * conf/common.mk: New file.
51234
16f820c8 512352005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51236
51237 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51238 (grub_script.tab.c): ... here.
51239
51240 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51241 (grub_script.tab.c): ... here.
51242
51243 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51244 (grub_script.tab.c): ... here.
51245
51246 * normal/command.c (grub_command_find): Fixed a memory leak of
51247 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51248
63ba1554 512492005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51250
51251 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51252 "@" which marks the start of a comment on ARM.
51253 (VARIABLE): Likewise.
51254
7f67dc13 512552005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51256
79bbb63f 51257 Add support for Linux/ADFS partition tables.
7f67dc13 51258
51259 * partmap/acorn.c: New file.
51260
51261 * include/grub/acorn_filecore.h: Likewise.
51262
51263 * DISTLIST: Added `partmap/acorn.c' and
51264 `include/grub/acorn_filecore.h'.
f19dbdb7 51265
7f67dc13 51266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51267 `partmap/acorn.c'.
51268 (pkgdata_MODULES): Add `acorn.mod'.
51269 (acorn_mod_SOURCES): New variable.
51270 (acorn_mod_CFLAGS): Likewise.
51271
51272 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51273 `partmap/acorn.c'.
51274 (pkgdata_MODULES): Add `acorn.mod'.
51275 (acorn_mod_SOURCES): New variable.
51276 (acorn_mod_CFLAGS): Likewise.
51277
51278 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51279 (pkgdata_MODULES): Add `acorn.mod'.
51280 (acorn_mod_SOURCES): New variable.
51281 (acorn_mod_CFLAGS): Likewise.
51282 (acorn_mod_LDFLAGS): Likewise.
51283
51284 * include/types.h (grub_disk_addr_t): New typedef.
51285
6d099807 512862005-11-13 Marco Gerards <mgerards@xs4all.nl>
51287
51288 * geninit.sh: New file.
51289
51290 * geninitheader.sh: Likewise.
51291
51292 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51293 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51294 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51295 * commands/configfile.c (grub_configfile_init)
51296 (grub_configfile_fini): Likewise.
51297 * commands/default.c (grub_default_init, grub_default_fini):
51298 Likewise.
51299 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51300 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51301 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51302 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51303 Likewise.
51304 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51305 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51306 Likewise.
51307 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 51308 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 51309 Likewise.
51310 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51311 Likewise.
fe6b695a 51312 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 51313 Likewise.
51314 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51315 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51316 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51317 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51318 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51319 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51320 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51321 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51322 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51323 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51324 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51325 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51326 * partmap/amiga.c (grub_amiga_partition_map_init)
51327 (grub_amiga_partition_map_fini): Likewise.
51328 * partmap/apple.c (grub_apple_partition_map_init)
51329 (grub_apple_partition_map_fini): Likewise.
51330 * partmap/pc.c (grub_pc_partition_map_init)
51331 (grub_pc_partition_map_fini): Likewise.
51332 * partmap/sun.c (grub_sun_partition_map_init,
51333 grub_sun_partition_map_fini): Likewise.
51334 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51335 Likewise.
51336
51337 * util/grub-emu.c: Include <grub_modules_init.h>.
51338 (main): Don't initialize and de-initialize any modules directly,
51339 use `grub_init_all' and `grub_fini_all' instead.
51340
51341 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51342 `grub_vesafb_mod_init'.
51343 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51344 all users.
51345 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51346 `grub_vga_mod_init'. Updated all users.
51347 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 51348
6d099807 51349 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51350 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51351 rules.
51352
51353 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51354 Generate a function to initialize the module in utilities.
51355 Updated all callers.
51356 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51357 initialize the module in utilities. Updated all callers.
51358
9046bcf0 513592005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51360
51361 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51362 escape sequence and a literal ^L to clear the screen.
51363
51364 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51365 when returning from Open Firmware.
51366
d13ea639 513672005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51368
51369 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51370 (grub_ofconsole_height): Likewise.
51371 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51372 manually insert a '\n'.
51373 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51374 `grub_ofconsole_height'. Return early if these are already set.
51375
a8fcf206 513762005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51377
51378 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51379 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51380 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51381 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51382 and `normal/script.c'.
51383 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51384 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51385 (test_mod_SOURCES): New variable.
51386 (test_mod_CFLAGS): Likewise.
51387 (test_mod_LDFLAGS): Likewise.
51388 (pkgdata_MODULES): Add `test.mod'.
51389 (grub_script.tab.c): New rule.
51390 (grub_script.tab.h): Likewise.
51391
b6b32745 513922005-11-07 Marco Gerards <mgerards@xs4all.nl>
51393
51394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51395 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51396 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51397 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51398 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51399 (test_mod_SOURCES): New variable.
51400 (test_mod_CFLAGS): Likewise.
51401 (pkgdata_MODULES): Add `test.mod'.
51402 (grub_script.tab.c): New rule.
51403 (grub_script.tab.h): Likewise.
51404
daac212a 514052005-11-06 Marco Gerards <mgerards@xs4all.nl>
51406
51407 Add initial scripting support.
51408
51409 * commands/test.c: New file.
51410 * include/grub/script.h: Likewise.
51411 * normal/execute.c: Likewise.
51412 * normal/function.c: Likewise.
51413 * normal/lexer.c: Likewise.
51414 * normal/parser.y: Likewise.
51415 * normal/script.c: Likewise.
51416
51417 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 51418
daac212a 51419 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51420 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51421 `normal/function.c' and `normal/script.c'.
51422 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51423 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 51424 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51425 variables.
daac212a 51426 (pkgdata_MODULES): Add `test.mod'.
51427 (grub_script.tab.c): New rule.
51428 (grub_script.tab.h): Likewise.
51429
51430 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51431
51432 * include/grub/normal.h (grub_test_init): New prototype.
51433 (grub_test_fini): Likewise.
f19dbdb7 51434
daac212a 51435 * normal/command.c: Include <grub/script.h>.
51436 (grub_command_execute): Rewritten.
f19dbdb7 51437
daac212a 51438 * util/grub-emu.c (main): Call `grub_test_init' and
51439 `grub_test_fini'.
51440
77500b2b 514412005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51442
51443 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51444 to 0.
51445 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51446 there are no pending characters.
51447
e45deb9e 514482005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51449
51450 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51451 `grub_strndup' to drop device arguments. Replace unnecessary
51452 `grub_strndup' with `grub_strdup'.
51453
4ce32619 514542005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51455
51456 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51457 `debug' environment variable has been set.
51458
514592005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 51460
4ce32619 51461 * Makefile.in (install-local): Use $(DATA).
51462 (uninstall): Likewise.
51463 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51464 (sbin_UTILITIES): ... to here.
51465 (sbin_SCRIPTS): New variable.
51466 (grub_install_SOURCES): New variable.
51467 * util/powerpc/ieee1275/grub-install.in: New file.
51468 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51469 variable.
51470 (add_segments): Call `grub_util_get_path'.
51471
25fe6f03 514722005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51473
51474 From Timothy Baldwin:
51475 * commands/ls.c (grub_ls_list_files): Close FILE with
51476 grub_file_close.
51477 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51478
04ccf3ec 514792005-10-24 Marco Gerards <mgerards@xs4all.nl>
51480
51481 * include/grub/parser.h: New file.
51482
51483 * kern/parser.c: Likewise.
51484
51485 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51486 (grub_setup_SOURCES): Likewise.
51487 (grub_probefs_SOURCES): Likewise.
51488 (grub_emu_SOURCES): Likewise.
51489 (kernel_img_HEADERS): Add `parser.h'.
51490
51491 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51492 (grub_emu_SOURCES): Add `kern/parser.c'.
51493 (grubof_SOURCES): Likewise.
51494
51495 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51496 (grubof_SOURCES): Add `kern/parser.c'.
51497
51498 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51499
51500 * kern/misc.c (grub_split_cmdline): Removed function.
51501
51502 * kern/rescue.c: Include <grub/parser.h>.
51503 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51504 of `grub_split_cmdline'.
51505
51506 * normal/command.c: Include <grub/parser.h>.
51507 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51508 of `grub_split_cmdline'.
51509
51510 * normal/completion.c: Include <grub/parser.h>.
51511 (cmdline_state): New variable.
51512 (iterate_dir): End the filename with a quote depending on the
51513 command line state.
51514 (get_state): new function.
51515 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51516 split the arguments and determine the current argument. When the
51517 argument string is not quoted, escape all spaces.
51518
6d8f4b0e 515192005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51520
51521 * normal/sparc64/setjmp.S: New file.
51522
15cf03ed 515232005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51524
51525 * include/grub/sparc64/libgcc.h: New file.
51526 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51527 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51528 normal/sparc64/setjmp.c.
51529
03e8661a 515302005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51531
51532 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51533 * kern/sparc64/cache.S: New file.
51534 * kern/sparc64/cache.c: Removed.
51535 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51536 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51537 -mtune=ultrasparc.
51538 (COMMON_LDFLAGS): Add -melf64_sparc.
51539 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51540 (grubof_SOURCES): Use cache.S instead of cache.c.
51541 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51542 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51543 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51544 commented though.
51545 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51546 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51547 (linux_mod_CFLAGS): Commented out.
51548 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51549 out because module isn't built.
51550 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51551 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51552 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51553 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51554 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51555 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51556 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51557 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51558 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51559 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51560 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51561 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51562 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51563 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51564
34eeec8a 515652005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51566
51567 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51568 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51569 longer, because HFS should not be used on PC.
51570
708367a3 515712005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51572
51573 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51574 consistently within the loop.
51575
6fa1251a 515762005-10-15 Marco Gerards <mgerards@xs4all.nl>
51577
51578 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51579 directory can not be read.
51580
4801580b 515812005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51582
51583 * configure.ac (AC_INIT): Increase the version number to 1.91.
51584
51585 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51586 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51587 term/i386/pc/serial.c.
51588
219ad426 515892005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51590
51591 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51592 file size must be permitted.
51593
51594 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51595 between %ah and %al.
51596
688e5699 515972005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51598
51599 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51600 grub_uint64_t.
51601 Call the hook with a NUL-terminated filename.
51602 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51603 grub_cpu_to_be32.
51604
51605 * kern/term.c (cursor_state): New variable.
51606 (grub_term_set_current): Reset the cursor state on a new
51607 terminal.
51608 (grub_setcursor): Rewritten to use CURSOR_STATE.
51609 (grub_getcursor): New function.
51610
51611 * include/grub/term.h (grub_getcursor): New prototype.
51612
51613 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51614 integers on ARM. Reported by Timothy Baldwin
51615 <T.E.Baldwin99@members.leeds.ac.uk>.
51616
bb34586c 516172005-10-11 Marco Gerards <mgerards@xs4all.nl>
51618
51619 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51620 allocated.
51621 (grub_sfs_dir): Likewise.
51622
9a909877 516232005-10-09 Marco Gerards <mgerards@xs4all.nl>
51624
51625 Add support for the SFS filesystem.
51626
51627 * fs/sfs.c: New file.
51628
51629 * DISTLIST: Added `fs/sfs.c'.
51630
51631 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51632 (grub_probefs_SOURCES): Likewise.
51633 (grub_emu_SOURCES): Likewise.
51634 (pkgdata_MODULES): Add `sfs.mod'.
51635 (sfs_mod_SOURCES): New variable.
51636 (sfs_mod_CFLAGS): Likewise.
51637 (sfs_mod_LDFLAGS): Likewise.
51638
51639 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51640 (pkgdata_MODULES): Add `sfs.mod'.
51641 (sfs_mod_SOURCES): New variable.
51642 (sfs_mod_CFLAGS): Likewise.
51643
51644 * util/grub-emu.c (main): Call `grub_sfs_init' and
51645 `grub_sfs_fini'.
51646
51647 * include/grub/fs.h (grub_sfs_init): New prototype.
51648 (grub_sfs_fini): Likewise.
51649
57bdbde3 516502005-10-07 Marco Gerards <mgerards@xs4all.nl>
51651
51652 Add support for the AFFS filesystem.
51653
51654 * fs/affs.c: New file.
51655
51656 * DISTLIST: Added `fs/affs.c'.
51657
51658 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51659 (grub_probefs_SOURCES): Likewise.
51660 (grub_emu_SOURCES): Likewise.
51661 (pkgdata_MODULES): Add `affs.mod'.
51662 (affs_mod_SOURCES): New variable.
51663 (affs_mod_CFLAGS): Likewise.
51664 (affs_mod_LDFLAGS): Likewise.
51665
51666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51667 (pkgdata_MODULES): Add `affs.mod'.
51668 (affs_mod_SOURCES): New variable.
51669 (affs_mod_CFLAGS): Likewise.
51670
51671 * util/grub-emu.c (main): Call `grub_affs_init' and
51672 `grub_affs_fini'.
51673
51674 * include/grub/fs.h (grub_affs_init): New prototype.
51675 (grub_affs_fini): Likewise.
51676
047b67e0 516772005-10-01 Marco Gerards <mgerards@xs4all.nl>
51678
51679 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51680
59b8208a 516812005-10-01 Marco Gerards <mgerards@xs4all.nl>
51682
51683 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51684 `-m32' to CFLAGS.
51685
51686 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51687 linking.
f19dbdb7 51688
59b8208a 51689 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51690 (COMMON_LDFLAGS): New variable.
51691 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51692 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51693 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51694 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51695 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51696 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51697 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51698 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51699 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51700 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51701 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51702 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51703 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51704 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51705 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51706 variables.
51707 (normal_mod_ASFLAGS): Add `-m32'.
51708
51709 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51710 (grub_host_size_t, grub_host_ssize_t): New types.
51711 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 51712 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 51713 `GRUB_HOST_SIZEOF_VOID_P'.
51714
51715 * include/grub/kernel.h (struct grub_module_header): Type of
51716 member offset changed to `grub_host_off_t'. Type of member size
51717 changed to `grub_host_size_t'.
51718 (struct grub_module_info): Type of member offset changed to
51719 `grub_host_off_t'. Type of member size changed to
51720 `grub_host_size_t'.
51721
b4093103 517222005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51723
51724 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 51725
b4093103 51726 * kern/i386/pc/startup.S (multiboot_header): New label.
51727 (multiboot_entry): Likewise.
51728 (multiboot_trampoline): Likewise.
51729
51730 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51731 Increased to 0x4A0.
51732
51733 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51734 put parentheses after a question mark.
51735 [!GRUB_UTIL] (my_mod): New variable.
51736
51737 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51738
b2499b29 517392005-09-28 Marco Gerards <mgerards@xs4all.nl>
51740
51741 Adds support for the XFS filesystem. Btrees are not supported
51742 yet.
51743
51744 * fs/xfs.c: New file.
51745
51746 * DISTLIST: Added `fs/xfs.c'.
51747
51748 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51749 (grub_probefs_SOURCES): Likewise.
51750 (grub_emu_SOURCES): Likewise.
51751 (pkgdata_MODULES): Add `xfs.mod'.
51752 (xfs_mod_SOURCES): New variable.
51753 (xfs_mod_CFLAGS): Likewise.
51754
51755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51756 (pkgdata_MODULES): Add `xfs.mod'.
51757 (xfs_mod_SOURCES): New variable.
51758 (xfs_mod_CFLAGS): Likewise.
51759
51760 * util/grub-emu.c (main): Call `grub_xfs_init' and
51761 `grub_xfs_fini'.
51762
51763 * include/grub/fs.h (grub_xfs_init): New prototype.
51764 (grub_xfs_fini): Likewise.
51765
f19dbdb7 51766
83d37a62 517672005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51768
51769 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51770 color modes, allow greater than 16 colors to be configured as
51771 a default palette.
51772
47d2d65e 517732005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51774
51775 * normal/completion.c (complete_arguments): Add the qualifier
51776 const into OPTIONS.
51777
51778 From Omniflux <omniflux+lists@omniflux.com>:
51779 * include/grub/terminfo.h: New file.
51780 * include/grub/tparm.h: Likewise.
51781 * include/grub/i386/pc/serial.h: Likewise.
51782 * term/terminfo.c: Likewise.
51783 * term/tparm.c: Likewise.
51784 * term/i386/pc/serial.c: Likewise.
51785 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51786 serial.mod.
51787 (terminfo_mod_SOURCES): New variable.
51788 (terminfo_mod_CFLAGS): Likewise.
51789 (serial_mod_SOURCES): Likewise.
51790 (serial_mod_CFLAGS): Likewise.
51791
48b671ff 517922005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51793
51794 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51795 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51796 and kern/powerpc/ieee1275/cmain.c, respectively.
51797
51798 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51799 * kern/powerpc/ieee1275/crt0.S: ... here.
51800
51801 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51802 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 51803
48b671ff 51804 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51805 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51806 instead of boot/powerpc/ieee1275/crt0.S and
51807 boot/powerpc/ieee1275/cmain.c, respectively.
51808
51809 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51810 sectors. It was not used anyway.
51811
09fc77a7 518122005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51813
51814 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51815 `unused parameter' warning.
51816
003789c7 518172005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51818
51819 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51820 function.
51821 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51822 getcharwidth.
51823
67f44c86 518242005-08-28 Marco Gerards <metgerards@student.han.nl>
51825
51826 * include/grub/normal.h (enum grub_completion_type): Added
51827 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51828
51829 * normal/cmdline.c (print_completion): Handle
51830 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51831 * normal/menu_entry.c (store_completion): Likewise.
51832
51833 * normal/completion.c (complete_arguments): New function.
51834 (grub_normal_do_completion): Call `complete_arguments' when the
51835 current words start with a dash.
51836
0b5abe02 518372005-08-27 Marco Gerards <metgerards@student.han.nl>
51838
51839 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51840 `gzio.mod' instead of `io.mod').
51841
d9864ee1 518422005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51843
51844 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51845 (DISTDIRS): Added io and video.
51846 Rewrite the search routine to make an output consistently.
51847
51848 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51849 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51850 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51851 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51852 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51853 util/powerpc/ieee1275/misc.c.
f19dbdb7 51854
d9864ee1 51855 * include/grub/gzio.h: New file.
51856 * io/gzio.c: Likewise.
f19dbdb7 51857
d9864ee1 51858 * kern/file.c (grub_file_close): Call grub_device_close only if
51859 FILE->DEVICE is not NULL.
51860
51861 * include/grub/mm.h [!NULL] (NULL): New macro.
51862
51863 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51864
51865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51866 (pkgdata_MODULES): Added gzio.mod.
51867 (gzio_mod_SOURCES): New variable.
51868 (gzio_mod_CFLAGS): Likewise.
51869
51870 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51871 (pkgdata_MODULES): Added gzio.mod.
51872 (gzio_mod_SOURCES): New variable.
51873 (gzio_mod_CFLAGS): Likewise.
51874
51875 * commands/cat.c: Include grub/gzio.h.
51876 (grub_cmd_cat): Use grub_gzfile_open instead of
51877 grub_file_open.
f19dbdb7 51878
d9864ee1 51879 * commands/cmp.c: Include grub/gzio.h.
51880 (grub_cmd_cmp): Use grub_gzfile_open instead of
51881 grub_file_open.
51882
51883 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51884 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51885 grub_file_open.
51886 (grub_rescue_cmd_module): Likewise.
51887
fa46f4b5 518882005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51889
51890 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51891 kern/sparc64/ieee1275/init.c because it contains _start.
51892 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51893
e9211b5d 518942005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51895
51896 * configure.ac: Add support for sparc64 host with ieee1275
51897 firmware.
51898 * configure: Generated from configure.ac.
51899 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51900 instead of int.
51901 (grub_ofdisk_read): Likewise.
51902 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51903 pointers as (void *) to remove a warning.
51904 (grub_ofdisk_close): Likewise.
51905 (grub_ofdisk_read): Likewise.
51906 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51907 returns, so make it return void to remove a warning.
51908 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51909 Corresponding prototype change.
51910 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51911 values, and cast the pointers as (void *) to remove a warning.
51912 (grub_mm_dump): Likewise.
51913 * conf/sparc64-ieee1275.mk: New file.
51914 * conf/sparc64-ieee1275.rmk: Likewise.
51915 * include/grub/sparc64/setjmp.h: Likewise.
51916 * include/grub/sparc64/types.h: Likewise.
51917 * include/grub/sparc64/ieee1275/console.h: Likewise.
51918 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51919 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51920 * include/grub/sparc64/ieee1275/time.h: Likewise.
51921 * kern/sparc64/cache.c: Likewise.
51922 * kern/sparc64/dl.c: Likewise.
51923 * kern/sparc64/ieee1275/init.c: Likewise.
51924 * kern/sparc64/ieee1275/openfw.c: Likewise.
51925
385c6a92 519262005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51927
51928 * util/console.c (grub_ncurses_putchar): If C is greater than
51929 0x7f, set C to a question mark.
51930 (grub_ncurses_getcharwidth): New function.
51931 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51932 getcharwidth.
51933
51934 * normal/menu.c (print_entry): Made aware of Unicode. First,
51935 convert TITLE to UCS-4, and predict the cursor position by
51936 grub_getcharwidth.
51937
51938 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51939 const to SRC.
51940 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51941
16ccb8b1 519422005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51943
51944 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51945 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51946 grub_strcat.
51947
51948 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51949 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51950 grub_strcpy and grub_strlen. Take it into account that a space
51951 character is inserted as a delimiter.
51952
6a85ce79 519532005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51954
51955 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 51956 invalid magic in the error.
6a85ce79 51957
51958 * commands/search.c: New file.
f19dbdb7 51959
6a85ce79 51960 * util/grub-emu.c (main): Call grub_search_init and
51961 grub_search_fini.
51962
51963 * kern/rescue.c (grub_rescue_print_disks): Removed.
51964 (grub_rescue_print_devices): New function.
51965 (grub_rescue_cmd_ls): Use grub_device_iterate with
51966 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51967 grub_rescue_print_disks.
51968
51969 * kern/partition.c (grub_partition_iterate): Return the result of
51970 PARTMAP->ITERATE instead of GRUB_ERRNO.
51971
51972 * kern/device.c: Include grub/partition.h.
51973 (grub_device_iterate): New function.
51974
51975 * include/grub/partition.h (grub_partition_iterate): Return int
51976 instead of grub_err_t.
51977
51978 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51979 prototype.
51980 [GRUB_UTIL] (grub_search_fini): Likewise.
51981
51982 * include/grub/device.h (grub_device_iterate): New prototype.
51983
51984 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51985 commands/search.c.
51986 (pkgdata_MODULES): Added search.mod.
51987 (search_mod_SOURCES): New variable.
51988 (search_mod_CFLAGS): Likewise.
51989
51990 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51991 (pkgdata_MODULES): Added search.mod.
51992 (search_mod_SOURCES): New variable.
51993 (search_mod_CFLAGS): Likewise.
51994
51995 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51996 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51997 All callers changed.
51998
51999 * DISTLIST: Added commands/search.c.
52000
ef095434 520012005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52002
52003 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52004 conversion.
52005 (grub_getcharwidth): New function.
52006
52007 * kern/misc.c (grub_utf8_to_ucs4): New function.
52008
52009 * include/grub/term.h (struct grub_term): Added a new member
52010 "getcharwidth".
52011 (grub_getcharwidth): New prototype.
52012
52013 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52014
52015 * term/i386/pc/console.c (map_char): New function. Segregated from
52016 grub_console_putchar.
52017 (grub_console_putchar): Use map_char.
52018 (grub_console_getcharwidth): New function.
52019 (grub_console_term): Specified grub_console_getcharwidth as
52020 getcharwidth.
52021
52022 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52023 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52024
52025 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52026 GRUB_ERRNO.
52027 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52028 on grub_strtoul completely.
52029 (write_char): Declare local variables in the beginning of the
52030 function.
52031 (grub_vesafb_getcharwidth): New function.
52032 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52033 getcharwidth.
52034
1f0a95e4 520352005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52036
52037 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52038 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52039 commands/i386/pc/vbetest.c.
52040
52041 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52042 call grub_vbe_get_controller_info again, because the returned
52043 information is volatile.
52044 (grub_vbe_set_video_mode): Mostly rewritten.
52045 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52046 grub_vbe_status_t correctly.
52047 (grub_vbe_get_video_mode_info): Likewise.
52048 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52049 several if statements.
52050
52051 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52052 * commands/i386/pc/vbeinfo.c: ... this.
52053
52054 * commands/i386/pc/vbe_test.c: Renamed to ...
52055 * commands/i386/pc/vbetest.c: ... this.
52056
52057 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52058 ...
52059 (grub_cmd_vbeinfo): ... this. Save video modes before
52060 iterating. Skip a video mode, if it is not available, not enough
52061 information is given or it is monochrome. Show the memory
52062 model. Leave the interpretation of MODEVAR to grub_strtoul
52063 completely.
52064 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52065 (GRUB_MOD_FINI): Likewise.
52066
52067 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52068 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52069 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52070 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52071 grub_strtoul completely.
52072 (real2pm): Removed.
52073 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52074 (GRUB_MOD_FINI): Likewise.
52075
52076 * normal/misc.c: Include grub/mm.h.
52077
52078 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52079 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52080 (vbe_list_modes_mod_SOURCES): Removed.
52081 (vbe_list_modes_mod_CFLAGS): Likewise.
52082 (vbe_test_mod_SOURCES): Likewise.
52083 (vbe_test_mod_CFLAGS): Likewise.
52084 (vbeinfo_mod_SOURCES): New variable.
52085 (vbeinfo_mod_CFLAGS): Likewise.
52086 (vbetest_mod_SOURCES): Likewise.
52087 (vbetest_mod_CFLAGS): Likewise.
52088
992ffbbe 520892005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52090
52091 * normal/misc.c: New file.
52092
52093 * DISTLIST: Added normal/misc.c.
f19dbdb7 52094
992ffbbe 52095 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52096 DISK to HOOK. Call HOOK with DISK.
52097 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52098 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52099 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52100
52101 * normal/menu_entry.c (struct screen): Added a new member
52102 "completion_shown".
52103 (completion_buffer): New global variable.
52104 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52105 (store_completion): New function.
52106 (complete): Likewise.
52107 (clear_completions): Likewise.
52108 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52109 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52110 a tab, call complete.
52111
52112 * normal/completion.c (disk_dev): Removed.
52113 (print_simple_completion): Likewise.
52114 (print_partition_completion): Likewise.
52115 (print_func): New global variable.
52116 (add_completion): Do not take the arguments WHAT or PRINT any
52117 longer. Added a new argument TYPE. Instead of printing directly,
52118 call PRINT_FUNC if not NULL.
52119 All callers changed.
52120 (complete_device): Use a local variable DEV instead of
52121 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52122 (grub_normal_do_completion): Take a new argument HOOK. Do not
52123 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52124 empty string, return NULL instead.
52125 All callers changed.
52126
52127 * normal/cmdline.c (print_completion): New function.
52128
52129 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52130 to HOOK.
52131 All callers changed.
52132
52133 * kern/disk.c (grub_print_partinfo): Removed.
52134
52135 * include/grub/partition.h (struct grub_partition_map): Add a new
52136 argument DISK into HOOK of ITERATE.
52137 (grub_partition_iterate): Add a new argument DISK to HOOK.
52138
52139 * include/grub/normal.h (enum grub_completion_type): New enum.
52140 (grub_completion_type_t): New type.
52141 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52142 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52143 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52144 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52145 (grub_normal_do_completion): Added a new argument HOOK.
52146 (grub_normal_print_device_info): New prototype.
52147
52148 * include/grub/disk.h (grub_print_partinfo): Removed.
52149
52150 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52151 (normal_mod_SOURCES): Likewise.
52152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52153 (normal_mod_SOURCES): Likewise.
52154
52155 * commands/ls.c (grub_ls_list_disks): Use
52156 grub_normal_print_device_info instead of grub_print_partinfo. Free
52157 PNAME.
52158 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52159 duplicating the code.
52160
0bd41162 521612005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52162
52163 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 52164 follow GCS more precisely.
52165 * commands/i386/pc/vbe_test.c: Likewise.
52166 * include/grub/i386/pc/vbe.h: Likewise.
52167 * term/i386/pc/vesafb.c: Likewise.
52168 * video/i386/pc/vbe.c: Likewise.
0bd41162 52169
6323696a 521702005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52171
52172 * DISTLIST: Added term/i386/pc/vesafb.c
52173 DISTLIST: Added video/i386/pc/vbe.c
52174 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52175 DISTLIST: Added commands/i386/pc/vbe_test.c.
52176 * commands/i386/pc/vbe_list_modes.c: New file.
52177 * commands/i386/pc/vbe_test.c: Likewise.
52178 * term/i386/pc/vesafb.c: Likewise.
52179 * video/i386/pc/vbe.c: Likewise.
52180 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52181 (grub_vbe_probe) Added prototype.
52182 (grub_vbe_set_video_mode) Likewise.
52183 (grub_vbe_get_video_mode) Likewise.
52184 (grub_vbe_get_video_mode_info) Likewise.
52185 (grub_vbe_set_pixel_rgb) Likewise.
52186 (grub_vbe_set_pixel_index) Likewise.
52187 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52188 (pkgdata_MODULES): Added vesafb.mod.
52189 (pkgdata_MODULES): Added vbe_list_modes.mod.
52190 (pkgdata_MODULES): Added vbe_test.mod.
52191 (vbe_mod_SOURCES): Added.
52192 (vbe_mod_CFLAGS): Likewise.
52193 (vesafb_mod_SOURCES): Likewise.
52194 (vesafb_mod_CFLAGS): Likewise.
52195 (vbe_list_modes_mod_SOURCES): Likewise.
52196 (vbe_list_modes_mod_CFLAGS): Likewise.
52197 (vbe_test_mod_SOURCES): Likewise.
52198 (vbe_test_mod_CFLAGS): Likewise.
52199
0a74e62f 522002005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52201
0a74e62f 52202 * normal/command.c (grub_command_execute): If INTERACTIVE is
52203 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52204 CMDLINE. Disable the pager if INTERACTIVE is true.
52205 All callers are changed.
52206
52207 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52208 before reading a config file.
52209 * normal/main.c (read_config_file): Even if a command is not
52210 found, register it if it is within an entry.
52211
52212 * util/grub-emu.c: Include sys/types.h and unistd.h.
52213 (options): Added --hold.
52214 (struct arguments): Added a new member "hold".
52215 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52216 missing.
52217 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52218 cleared by a debugger, if it is not zero.
52219
52220 * include/grub/normal.h (grub_command_execute): Add an argument
52221 INTERACTIVE.
52222
e51f85ae 522232005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52224
52225 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52226
e9c6f39b 522272005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52228
52229 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52230 program with another one, because the old one didn't detect a bug
52231 in gcc-3.4. Always use regparm 2, because the new test is still
52232 not enough for gcc-4.0. Someone must investigate a simple test
52233 case which detects a bug in gcc-4.0.
52234
8de3495c 522352005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52236
52237 * DISTLIST: Added normal/completion.c.
52238
52239 * normal/completion.c: New file.
f19dbdb7 52240
8de3495c 52241 * term/i386/pc/console.c (grub_console_getwh): New function.
52242 (grub_console_term): Assign grub_console_getwh to getwh.
52243
52244 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52245 function is defined in normal/completion.c as
52246 grub_normal_do_completion.
52247 (grub_cmdline_get): Use grub_normal_do_completion instead of
52248 grub_tab_complete.
52249
52250 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52251 returns non-zero, otherwise return 0.
52252 (grub_partition_iterate): First, probe the partition map. Then,
52253 call ITERATE only for this partition map.
52254
52255 * kern/misc.c (grub_strncmp): Rewritten.
52256
52257 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52258 returns non-zero. Otherwise return 0.
52259
52260 * include/grub/partition.h (grub_partition_map_iterate): Return
52261 int instead of void.
52262
52263 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52264
52265 * include/grub/misc.h (grub_strncmp): Change the type of N to
52266 grub_size_t.
52267
52268 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52269 of void.
52270
52271 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 52272 unsigned explicitly before comparing it with I.
8de3495c 52273
52274 * kern/main.c (grub_env_write_root): Add the attribute unused into
52275 VAR.
52276
52277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52278 normal/completion.c.
52279 (normal_mod_SOURCES): Likewise.
52280 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52281 (normal_mod_SOURCES): Likewise.
52282
52283 * normal/command.c (grub_iterate_commands): If ITERATE returns
52284 non-zero, return one immediately.
52285
e85e144b 522862005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52287
52288 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52289 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52290 descriptions.
52291 (grub_vbe_get_controller_info): New function.
52292 (grub_vbe_get_mode_info): Likewise.
52293 (grub_vbe_set_mode): Likewise.
52294 (grub_vbe_get_mode): Likewise.
52295 (grub_vbe_set_memory_window): Likewise.
52296 (grub_vbe_get_memory_window): Likewise.
52297 (grub_vbe_set_scanline_length): Likewise.
52298 (grub_vbe_get_scanline_length): Likewise.
52299 (grub_vbe_set_display_start): Likewise.
52300 (grub_vbe_get_display_start): Likewise.
52301 (grub_vbe_set_palette_data): Likewise.
52302 * include/grub/i386/pc/vbe.h: New file.
52303
c46153d2 523042005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52305
52306 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52307 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52308 * DISTLIST: Likewise.
52309 * kern/ieee1275/of.c: Moved to ...
52310 * kern/ieee1275/ieee1275.c: ... here.
52311
0cb90c45 523122005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52313
52314 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52315 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52316 Pass 0 as `end' parameter to grub_strtoul().
52317
a19fb360 523182005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52319
52320 * include/grub/powerpc/ieee1275/console.h: Do not include
52321 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52322 ifdef.
52323 (grub_console_cur_color): Remove i386-specific prototype.
52324 (grub_console_real_putchar): Likewise.
52325 (grub_console_checkkey): Likewise.
52326 (grub_console_getkey): Likewise.
52327 (grub_console_getxy): Likewise.
52328 (grub_console_gotoxy): Likewise.
52329 (grub_console_cls): Likewise.
52330 (grub_console_setcursor): Likewise.
52331 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52332 Include <grub/machine/console.h>.
52333 * term/ieee1275/ofconsole.c: Likewise.
52334
4ac9bd04 523352005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52336
52337 * Makefile.in (LIBLZO): New variable.
52338
52339 * configure.ac: Check for LZO version 2.
52340
52341 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52342 lzo/lzo1x.h instead of lzo1x.h.
52343
52344 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52345 of -llzo.
52346
52347 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52348 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52349
52350 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52351 copying the data from PARTITION to P.
52352
f4917dfd 523532005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52354
52355 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52356 negative, unload the module.
52357
52358 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52359 map is "pc_partition_map" but not "pc".
52360 (usage): Fix the description. The options are --boot-image and
52361 --core-image but not --boot-file or --core-file.
52362 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52363 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52364 DEFAULT_DIRECTORY.
52365
52366 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52367 --core-file. Specify INSTALL_DEVICE as an argument.
52368
52369 * util/console.c: Include config.h.
52370 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52371 [HAVE_NCURSES_H]: Include ncurses.h.
52372 [HAVE_CURSES_H]: Include curses.h.
52373 [!A_NORMAL] (A_NORMAL): Defined as zero.
52374 [!A_STANDOUT] (A_STANDOUT): Likewise.
52375
52376 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52377 -lncurses.
52378 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52379
52380 * configure.ac: Check for curses libraries and headers.
52381
52382 * Makefile.in (LIBCURSES): New variable.
52383
52384 * genmk.rb (Script::rule): Set the executable bits.
52385
52386 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52387 name of the PC partition map is "pc_partition_map" but not "pc".
52388
0e143073 523892005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52390
52391 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52392 (modules): Likewise.
52393 (usage): Added descriptions for --modules and --grub-probefs.
52394 Handle --modules and --grub-probefs. Save the arguments in MODULES
52395 and GRUB_PROBEFS, respectively.
52396 Auto-detect a filesystem module against GRUBDIR. If the result is
52397 empty and modules are not specified explicitly, abort the
52398 installation. Add the result to MODULES.
52399
52400 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52401 disk/powerpc/ieee1275/ofdisk.c,
52402 include/grub/powerpc/ieee1275/init.h and
52403 term/powerpc/ieee1275/ofconsole.c.
52404 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52405 term/ieee1275/ofconsole.c.
52406
52407 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52408
52409 * COPYING: Upgraded to the latest version. Only the address of the
52410 FSF office has changed.
f19dbdb7 52411
efd6e6d5 524122005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52413
52414 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52415 kern/ieee1275.c with kern/ieee1275/of.c.
52416
52417 * kern/ieee1275.c: Moved to ...
52418 * kern/ieee1275/of.c: ... here.
52419
8ceafda2 524202005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52421
52422 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 52423 readability.
8ceafda2 52424
52425 * config.guess: Updated to the latest version from gnulib.
52426 * config.sub: Likewise.
52427 * install.sh: Likewise.
52428 * mkinstalldirs: Likewise.
52429
52430 * include/grub/console.h: Removed. This file is arch-specific. Do
52431 not put this in include/grub.
52432
52433 * include/grub/i386/pc/console.h: Resurrected.
52434
52435 * util/console.c: Include grub/machine/console.h instead of
52436 grub/console.h.
52437 * util/grub-emu.c: Likewise.
52438
267f6cd9 524392005-08-04 Marco Gerards <metgerards@student.han.nl>
52440
52441 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52442 hardcoded value.
f19dbdb7 52443
267f6cd9 52444 From Vincent Pelletier <subdino2004@yahoo.fr>
52445 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52446 Redefined to use grub_getwh.
52447 (grub_term): New member named getwh.
52448 (grub_getwh): New prototype.
52449 * kern/term.c (grub_getwh): New function.
52450 * term/i386/pc/console.c (grub_console_getwh): New function.
52451 (grub_console_term): New member `getwh'.
52452 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52453 (grub_vga_term): New member `getwh'.
0b5abe02 52454 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 52455 grub_ssize_t.
52456 (grub_ofconsole_getw): New function.
52457 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52458 (grub_ofconsole_term): New field named getwh and new initial
52459 value.
52460
3be7266d 524612005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52462
52463 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52464 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52465 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52466 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52467 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52468 of <grub/machine/ieee1275.h>.
52469 * commands/ieee1275/reboot.c: Likewise.
52470 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52471 * kern/ieee1275.c: ... to here. All users updated. Change all
52472 parameter structs to use new type `grub_ieee1275_cell_t'.
52473 * term/powerpc/ieee1275/ofconsole.c: Move ...
52474 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52475 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52476 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52477 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52478 to return int.
52479 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52480 Remove unused prototypes. All users updated.
52481 * include/grub/powerpc/ieee1275/console.h: Removed.
52482 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52483 `grub_ieee1275_cell_t'.
52484 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52485 Cast comparisons with -1 to the correct type.
52486 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52487 type to match `grub_ieee1275_entry_fn'.
52488
8b5f3938 524892005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52490
52491 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52492
52493 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52494 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52495 partmap/sun.c.
52496 (grub_probefs_SOURCES): New variable.
52497
52498 * util/i386/pc/grub-probefs.c: New file.
52499
52500 * util/i386/pc/grub-setup.c (main): Call
52501 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52502 grub_hfs_init and grub_jfs_init to initialize the system. Call
52503 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52504 grub_pc_partition_map_fini to finish the system.
52505
ea409713 525062005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52507
52508 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52509 function.
52510 (grub_multiboot_load_elf32): Likewise.
52511 (grub_multiboot_is_elf64): Likewise.
52512 (grub_multiboot_load_elf64): Likewise.
52513 (grub_multiboot_load_elf): Likewise.
52514 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52515 an ELF32 or ELF64 file.
52516 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52517
52518 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52519 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52520 NULL before calling FS->LABEL.
52521 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52522 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52523 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52524 before calling FS->LABEL.
52525
141a288b 525262005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52527
52528 * util/i386/pc/grub-install.in (datadir): New variable.
52529 (libdir): Removed.
52530 (pkgdatadir): New variable.
52531 (pkglibdir): Removed.
52532
0d5f8a54 525332005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52534
52535 * DISTLIST: Added util/i386/pc/grub-install.in.
52536
52537 * util/i386/pc/grub-install.in: New file.
52538
52539 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52540 (grub_install_SOURCES): Likewise.
52541
52542 * genmk.rb: Added support for scripts.
52543 (Script): New class.
52544 (scripts): New variable.
52545
52546 * Makefile.in (install-local): Install sbin_SCRIPTS by
52547 INSTALL_SCRIPT.
52548 (uninstall): Remove sbin_SCRIPTS.
52549
52550 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52551 device, try to get a GRUB device by
52552 grub_util_biosdisk_get_grub_dev.
52553 Free DEST_DEV.
52554
52555 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52556 description for --device-map.
52557
5f968e1e 525582005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52559
52560 Change the semantics of variable hooks. They now return strings
52561 instead of error values.
f19dbdb7 52562
5f968e1e 52563 * util/i386/pc/grub-setup.c: Include grub/env.h.
52564 (setup): Use grub_device_set_root instead of grub_env_set.
52565
52566 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52567 grub_env_get instead of grub_device_set_root and
52568 grub_device_get_root, respectively.
52569
52570 * kern/main.c (grub_env_write_root): New function.
52571 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52572 grub_env_set instead of grub_device_set_root.
52573
52574 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52575 many variables.
52576 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52577 rather than calling ENV->WRITE_HOOK afterwards.
52578 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52579 passing a pointer of a pointer.
52580 (grub_register_variable_hook): Change the types of "read_hook" and
52581 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52582 respectively.
52583 Allocate the default empty string on the heap, because this string
52584 may be freed later.
52585
52586 * kern/device.c: Include grub/env.h.
52587 (grub_device_set_root): Removed.
52588 (grub_device_get_root): Likewise.
52589 (grub_device_open): Use grub_env_get instead of
52590 grub_device_get_root.
52591
52592 * include/grub/env.h (grub_env_read_hook_t): New type.
52593 (grub_env_write_hook_t): Likewise.
52594 (grub_env_var): Change the types of "read_hook" and "write_hook"
52595 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52596 (grub_register_variable_hook): Likewise.
52597
52598 * include/grub/device.h (grub_device_set_root): Removed.
52599 (grub_device_set_root): Likewise.
52600
52601 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52602 make sure that DIRNAME terminates with '/', so that
52603 grub_fat_find_dir will fail if PATH is not a directory.
52604
52605 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52606 from DIRNAME.
52607 Use the qualifier auto for print_files and print_files_long.
52608 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52609 as a regular file.
52610 Put a newline only if there is no error.
52611 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52612 used.
52613
896f0afd 526142005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52615
52616 * kern/partition.c (grub_partition_probe): Initialize PART to
52617 NULL. Otherwise, when no partition map is registered, this returns
52618 a garbage.
52619
b28b81b2 526202005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52621
52622 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52623 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52624 valid.
52625
5f3607e0 526262005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52627
52628 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52629 information on each device, if it does not have partitions. Print
52630 "Device" instead of "Disk", because this function is not specific
52631 to disk devices.
52632
52633 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52634 static to ensure that it is put on the memory rather than a
52635 register.
52636
502c87e8 526372005-07-17 Yoshinori Okuji <okuji@enbug.org>
52638
52639 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52640 (grub_cat_init): Likewise.
52641 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52642 (options): Likewise.
52643 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52644 (grub_configfile_init): Likewise.
52645 * font/manager.c (GRUB_MOD_INIT): Likewise.
52646 * commands/help.c (GRUB_MOD_INIT): Likewise.
52647 (grub_help_init): Likewise.
52648 * normal/command.c (grub_command_init): Likewise.
52649 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52650 * disk/loopback.c (grub_loop_init): Likewise.
52651 (GRUB_MOD_INIT): Likewise.
52652 * commands/ls.c (grub_ls_init): Likewise.
52653 (GRUB_MOD_INIT): Likewise.
52654 (options): Likewise.
52655 * commands/boot.c (grub_boot_init): Likewise.
52656 (GRUB_MOD_INIT): Likewise.
52657 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52658 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52659 (GRUB_MOD_INIT): Likewise.
52660 * commands/cmp.c (grub_cmp_init): Likewise.
52661 (GRUB_MOD_INIT): Likewise.
52662
52663 * normal/arg.c: Use <> instead of "" to include header files.
52664 (SHORT_ARG_HELP): New macro.
52665 (SHORT_ARG_USAGE): Likewise.
52666 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52667 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52668 descriptions.
52669 (find_short): Check if C is 'h' or 'u' explicitly.
52670 (grub_arg_show_help): Use space characters instead of tabs. Treat
52671 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52672 are shown with --help and --usage only if they are not used for
52673 the command itself.
52674 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52675 'h' and 'u'.
52676
52677 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52678 const into "longarg". Change the type of "shortarg" to int.
52679
f806d18e 526802005-07-17 Yoshinori Okuji <okuji@enbug.org>
52681
52682 * boot/i386/pc/boot.S (boot_drive_check): New label.
52683
52684 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52685 macro.
52686
52687 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52688 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52689
e293232b 526902005-07-17 Yoshinori Okuji <okuji@enbug.org>
52691
52692 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52693 When turning off Gate A20, skip the check and return immediately,
52694 because this is not fatal usually.
52695
ebedfd00 526962005-07-17 Yoshinori Okuji <okuji@enbug.org>
52697
52698 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52699 be 0x7C00 instead of 0x8000.
52700
52701 * boot/i386/pc/pxeboot.S: Rewritten.
52702
52703 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52704 EXT_C.
52705 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52706 result.
52707
654fc59f 527082005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52709
52710 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52711 robustness. This routine now supports a BIOS call and System
52712 Control Port A to modify the gate A20.
52713
52714 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52715 Increased to 0x440.
52716
09f9923f 527172005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52718
52719 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52720 device path and resulting ihandle.
52721 (grub_ofdisk_close): dprintf the ihandle being closed.
52722 (grub_ofdisk_read): dprintf function parameters.
52723 * kern/mm.c (grub_mm_init_region): Likewise.
52724 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52725 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52726 size, and boot arguments.
52727 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52728 before loading into memory.
52729 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52730 before loading into memory.
52731
7ef504d8 527322005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52733
52734 * kern/mm.c: Added much documentation.
52735 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52736 8, set to 5 instead of 8.
52737
e0f050c2 527382005-07-10 Yoshinori Okuji <okuji@enbug.org>
52739
52740 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52741
52742 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52743 (grub_mkdevicemap_SOURCES): New variable.
52744
52745 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52746 lib/device.c of GRUB Legacy.
52747
7224189a 527482005-07-10 Yoshinori Okuji <okuji@enbug.org>
52749
52750 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52751 instead of PATH is NULL.
52752
68c864eb 527532005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52754
52755 * commands/cmp.c (BUFFER_SIZE): New macro.
52756 (grub_cmd_cmp): Close the right file at the right time. Compare
52757 only data just read. Don't report files of different size as
52758 identical. Dynamically allocate buffers. Move variable
52759 declarations at the beginning of function.
52760
e6f3e614 527612005-07-09 Yoshinori Okuji <okuji@enbug.org>
52762
52763 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52764 reverse.
52765
f8f1559a 527662004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52767
52768 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52769 when backspace is pressed at beginning of line.
52770
39c9d41d 527712005-07-03 Yoshinori Okuji <okuji@enbug.org>
52772
52773 * DISTLIST: Added genfslist.sh.
52774
52775 * normal/main.c (fs_module_list): New variable.
52776 (autoload_fs_module): New function.
52777 (read_fs_list): Likewise.
52778 (grub_normal_execute): Call read_fs_list.
52779
52780 * kern/fs.c (grub_fs_autoload_hook): New variable.
52781 (grub_fs_probe): Added support for auto-loading.
52782
52783 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52784 (grub_fs_module_list_t): New type.
52785
52786 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52787 (grub_fs_autoload_hook): New prototype.
52788
52789 * genfslist.sh: New file.
f19dbdb7 52790
39c9d41d 52791 * genmk.rb: Added a rule to generate a filesystem list.
52792
121c1d83 527932005-06-30 Marco Gerards <metgerards@student.han.nl>
52794
52795 * configure.ac: Fix the test for cross-compiling.
52796
52797 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52798 define GRUB_UTIL anymore.
52799
52800 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52801 so this function works on other systems than just big endian.
52802 (load_modules): Likewise.
52803 (add_segments): Likewise.
52804
e75d76e1 528052005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52806
52807 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52808 contains `l' modifier, get a long from va_arg().
52809
50b5a0a7 528102005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52811
52812 * kern/mm.c (grub_free): If the next free block which is being
52813 merged is the first free block, set the first block to the block
52814 being freed.
52815 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52816
89371b20 528172005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52818
52819 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52820 `grub_ieee1275_chosen'.
52821
168d6e58 528222005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52823
52824 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52825 (grub_ieee1275_chosen): New variable.
52826 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52827 `chosen'.
52828 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52829 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52830 Rename first argument to `phandle' for consistency.
52831 (grub_ieee1275_get_property_length): Likewise.
52832 (grub_ieee1275_next_property): Likewise. Change type of first argument
52833 to grub_ieee1275_phandle_t.
52834 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52835 Move export next to declaration.
52836 (grub_ieee1275_chosen): New variable.
52837 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52838 Correct cosmetic typo.
52839 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52840 `grub_ieee1275_chosen'.
52841 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52842 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52843 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52844 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52845 `grub_ieee1275_chosen'.
52846
ca5baa3f 528472005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52848
52849 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52850 /chosen/bootargs.
52851 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52852 /chosen/bootargs as "variable=value" pairs.
52853
708b345f 528542005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52855
52856 * include/grub/misc.h (grub_dprintf): New macro.
52857 (grub_real_dprintf): New prototype.
52858 (grub_strword): Likewise.
52859 (grub_iswordseparator): Likewise.
52860 * kern/misc.c (grub_real_dprintf): New function.
52861 (grub_strword): Likewise.
52862 (grub_iswordseparator): Likewise.
52863
f4c5e67c 528642005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52865
52866 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52867 (roundup): Remove macro.
52868 (grub_ieee1275_flags): Make static.
52869 (grub_ieee1275_realmode): Remove.
52870 (grub_ieee1275_test_flag): New function.
52871 (grub_ieee1275_set_flag): Likewise.
52872 (find_options): Rename to `grub_ieee1275_find_options'; update
52873 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52874 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52875 (cmain): New prototype.
52876 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52877 `grub_ieee1275_flags' directly.
52878 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52879 machine/biosdisk.h.
52880 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52881 Don't include grub/machine/init.h.
52882 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52883 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52884 Remove prototype.
52885 (grub_ieee1275_realmode): Likewise.
52886 (grub_ieee1275_flag): New enum.
52887 (grub_ieee1275_test_flag): New prototype.
52888 (grub_ieee1275_set_flag): New prototype.
52889 * include/grub/powerpc/ieee1275/init.h: Remove file.
52890 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52891 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52892 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52893 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52894 comment.
52895 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52896 `grub_ieee1275_test_flag'.
52897 (grub_ieee1275_encode_devname): Likewise.
52898
ed16607e 528992005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52900
52901 * include/grub/powerpc/ieee1275/ieee1275.h
52902 (grub_ieee1275_encode_devname): New prototype.
52903 (grub_ieee1275_get_filename): Likewise.
52904 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52905 function.
52906 (grub_set_prefix): Likewise.
52907 (grub_machine_init): Call grub_set_prefix.
52908 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52909 (grub_parse_type): New enum.
52910 (grub_ieee1275_get_devargs): New function.
52911 (grub_ieee1275_get_devname): Likewise.
52912 (grub_ieee1275_parse_args): Likewise.
52913 (grub_ieee1275_get_filename): Likewise.
52914 (grub_ieee1275_encode_devname): Likewise.
52915
be369920 529162005-03-30 Marco Gerards <metgerards@student.han.nl>
52917
52918 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52919 `grub_loader_unset'.
52920
a5ce3a4a 529212005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52922
52923 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52924 instead of grub_ieee1275_interpret.
52925 (grub_halt_init): New function.
52926 (grub_halt_fini): Likewise.
52927 (GRUB_MOD_INIT): Correct message grammar.
52928 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52929 instead of grub_ieee1275_interpret.
52930 (grub_reboot_init): New function.
52931 (grub_reboot_fini): Likewise.
52932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52933 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52934 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52935 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52936 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52937 function.
52938 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52939 Add prototype.
52940 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52941 prototype.
52942 (grub_halt): Likewise.
52943 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52944 (cmain): Remove __attribute__((unused)).
52945 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52946 (grub_heap_len): Likewise.
52947 (grub_machine_fini): New function.
52948 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52949 (grub_halt): Likewise.
52950 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52951 function.
52952 * util/powerpc/ieee1275/misc.c: New file.
52953
0058f771 529542005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52955
52956 * DISTLIST: New file.
52957 * gendistlist.sh: Likewise.
f19dbdb7 52958
0058f771 52959 * Makefile.in (COMMON_DISTFILES): Removed.
52960 (BOOT_DISTFILES): Likewise.
52961 (CONF_DISTFILES): Likewise.
52962 (DISK_DISTFILES): Likewise.
52963 (FS_DISTFILES): Likewise.
52964 (INCLUDE_DISTFILES): Likewise.
52965 (KERN_DISTFILES): Likewise.
52966 (LOADER_DISTFILES): Likewise.
52967 (TERM_DISTFILES): Likewise.
52968 (UTIL_DISTFILES): Likewise.
52969 (DISTFILES): Likewise.
52970 (uninstall): Uninstall files in $(pkgdata_DATA).
52971 (DISTLIST): New target.
52972 (distdir): Use the contents of the file DISTLIST to get a list of
52973 distributed files.
52974
46b3b8a5 529752005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52976
52977 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52978 descriptor. This is ported from GRUB Legacy.
52979
52980 * gencmdlist.sh: Added an extra semicolon to make it work with
52981 old sed versions. Reported by Robert Bihlmeyer
52982 <robbe@orcus.priv.at>.
52983
5822ff87 529842005-03-08 Yoshinori Okuji <okuji@enbug.org>
52985
52986 Automatic loading of commands is supported.
f19dbdb7 52987
5822ff87 52988 * normal/main.c (read_command_list): New function.
52989 (grub_normal_execute): Call read_command_list.
52990
52991 * normal/command.c (grub_register_command): Return zero or CMD.
52992 Allocate CMD->NAME from the heap.
52993 Initialize CMD->MODULE_NAME to zero.
52994 Find the same name as well. If the same command is found and it is
52995 a dummy command, overwrite members. If it is not a dummy command,
52996 return zero.
52997 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52998 (grub_command_find): If a dummy command is found, load a module
52999 and retry to find a command only once.
53000
53001 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53002 make sure that each command is loaded.
53003
53004 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53005 macro.
53006 (struct grub_command): Remove const from the member `name'.
53007 Add a new member `module_name'.
53008 (grub_register_command): Return grub_command_t.
53009
53010 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53011 sure that each command is loaded.
53012
53013 * genmk.rb (PModule::rule): Specify a module name without the
53014 suffix ".mod" to gencmdlist.sh.
53015
7b1f4b57 530162005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53017
53018 * gencmdlist.sh: New file.
f19dbdb7 53019
7b1f4b57 53020 * genmk.rb (PModule::rule): Generate a rule for a command list.
53021 Clean command.lst.
53022 Generate command.lst from $(COMMANDFILES).
53023
53024 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53025 (DATA): Added $(pkgdata_DATA).
53026 (install-local): Install files in $(pkgdata_DATA).
53027
062aaf39 530282005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53029
53030 * term/i386/pc/vga.c (debug_command): Removed.
53031 (GRUB_MOD_INIT): Do not register the command "debug".
53032
53033 From Hollis Blanchard:
53034 * commands/configfile.c: New file.
53035 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53036 commands/configfile.c.
53037 (pkgdata_MODULES): Added configfile.mod.
53038 (configfile_mod_SOURCES): New variable.
53039 (configfile_mod_CFLAGS): Likewise.
53040 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53041 commands/configfile.c.
53042 (pkgdata_MODULES): Added configfile.mod.
53043 (configfile_mod_SOURCES): New variable.
53044 (configfile_mod_CFLAGS): Likewise.
53045 * util/grub-emu.c (main): Call grub_configfile_init and
53046 grub_configfile_fini.
53047 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53048 prototype.
53049 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 53050
cee01aa6 530512005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53052
53053 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53054 address.
53055
53056 * commands/help.c (grub_cmd_help): Do not print newlines after
53057 the last command in print_command_help.
53058
93f3a1d8 530592005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53060
53061 * commands/default.h: New file.
53062 * commands/timeout.h: Likewise.
53063 * normal/context.c: Likewise.
f19dbdb7 53064
93f3a1d8 53065 * util/misc.c: Do not include sys/times.h.
53066 Include sys/time.h and grub/machine/time.h.
53067 (grub_get_rtc): Rewritten with gettimeofday.
53068
53069 * util/grub-emu.c (main): Call grub_default_init and
53070 grub_timeout_init before grub_normal_init, and call
53071 grub_timeout_fini and grub_default_fini after grub_main.
53072
53073 * util/console.c (grub_ncurses_checkkey): Return the read
53074 character or -1.
53075
53076 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53077 timeouts.
53078
53079 * normal/main.c (read_config_file): Push MENU. If this fails,
53080 print an error and wait for a user input.
53081 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53082 If a menu is empty or an error occurs, pop MENU.
53083 (grub_normal_execute): Pop and free MENU after grub_menu_run
53084 returns.
53085
53086 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53087
53088 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53089 include time.h.
53090 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53091 without GRUB_UTIL.
53092 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53093 time.h.
53094 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53095 without GRUB_UTIL.
53096
53097 * include/grub/normal.h (struct grub_menu_list): New struct.
53098 (grub_menu_list_t): New type.
53099 (struct grub_context): New struct.
53100 (grub_context_t): New type.
53101 (grub_register_command): Got rid of EXPORT_FUNC.
53102 (grub_unregister_command): Likewise.
53103 (grub_context_get): New prototype.
53104 (grub_context_get_current_menu): Likewise.
53105 (grub_context_push_menu): Likewise.
53106 (grub_context_pop_menu): Likewise.
53107 [GRUB_UTIL] (grub_default_init): Likewise.
53108 [GRUB_UTIL] (grub_default_fini): Likewise.
53109 [GRUB_UTIL] (grub_timeout_init): Likewise.
53110 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53111
53112 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53113 commands/timeout.c and normal/context.c.
53114 (pkgdata_MODULES): Added default.mod and timeout.mod.
53115 (normal_mod_SOURCES): Added normal/context.c.
53116 (default_mod_SOURCES): New variable.
53117 (default_mod_CFLAGS): Likewise.
53118 (timeout_mod_SOURCES): Likewise.
53119 (timeout_mod_CFLAGS): Likewise.
53120 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53121 conf/i386-pc.rmk.
53122 (pkgdata_MODULES): Added default.mod and timeout.mod.
53123 (normal_mod_SOURCES): Added normal/context.c.
53124 (default_mod_SOURCES): New variable.
53125 (default_mod_CFLAGS): Likewise.
53126 (timeout_mod_SOURCES): Likewise.
53127 (timeout_mod_CFLAGS): Likewise.
53128
53129 * Makefile.in (all-local): Added $(MKFILES).
53130
4ed2e1dd 531312005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53132
53133 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53134 (grub_emu_SOURCES): Likewise.
53135 (pkgdata_MODULES): Add `sun.mod'.
53136 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53137 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53138 `partmap/sun.c'.
53139 (pkgdata_MODULES): Add `sun.mod'.
53140 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53141 * include/grub/partition.h (grub_sun_partition_map_init): New
53142 prototype.
53143 (grub_sun_partition_map_fini): Likewise.
53144 * partmap/sun.c: New file.
53145 * util/grub-emu.c (main): Initialize and de-initialize the sun
53146 partitionmap support.
53147
4d4e372e 531482005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53149
53150 This implements an Emacs-like menu entry editor.
f19dbdb7 53151
4d4e372e 53152 * normal/menu_entry.c: New file.
f19dbdb7 53153
4d4e372e 53154 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53155 characters to ASCII.
53156 (saved_char): New variable.
53157 (grub_ncurses_checkkey): Rewritten completely.
53158 (grub_ncurses_getkey): Likewise.
53159 (grub_ncurses_init): Call raw instead of cbreak.
53160
53161 * normal/menu.c (print_entry): Do not put a space.
53162 (init_page): Renamed to ...
53163 (grub_menu_init_page): ... this. All callers changed.
53164 (edit_menu_entry): Removed.
53165 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53166
53167 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53168
53169 * kern/misc.c (grub_vprintf): Call grub_refresh.
53170
53171 * normal/menu.c (DISP_LEFT): Renamed to ...
53172 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53173 * normal/menu.c (DISP_UP): Renamed to ...
53174 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53175 * normal/menu.c (DISP_RIGHT): Renamed to ...
53176 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53177 * normal/menu.c (DISP_DOWN): Renamed to ...
53178 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53179 * normal/menu.c (DISP_HLINE): Renamed to ...
53180 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53181 * normal/menu.c (DISP_VLINE): Renamed to ...
53182 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53183 * normal/menu.c (DISP_UL): Renamed to ...
53184 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53185 * normal/menu.c (DISP_UR): Renamed to ...
53186 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53187 * normal/menu.c (DISP_LL): Renamed to ...
53188 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53189 * normal/menu.c (DISP_LR): Renamed to ...
53190 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53191 * normal/menu.c (TERM_WIDTH): Renamed to ...
53192 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53193 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53194 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53195 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53196 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53197 * normal/menu.c (TERM_MARGIN): Renamed to ...
53198 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53199 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53200 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53201 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53202 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53203 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53204 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53205 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53206 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53207 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53208 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53209 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53210 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53211 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53212 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53213 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53214 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53215 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53216 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53217 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53218 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53219 All callers changed.
53220
53221 * include/grub/normal.h: New prototype.
53222
53223 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53224 normal/menu_entry.c.
53225 (normal_mod_SOURCES): Likewise.
53226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53227 (normal_mod_SOURCES): Likewise.
53228
e6b92c8a 532292005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53230
53231 * include/grub/normal.h (grub_halt_init): New prototype.
53232 (grub_halt_fini): Likewise.
53233 (grub_reboot_init): Likewise.
53234 (grub_reboot_fini): Likewise.
53235
53236 * util/grub-emu.c: Include signal.h.
53237 (main_env): New global variable.
53238 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53239 catch C-c.
53240 (grub_machine_fini): New function.
53241 (main): Call grub_halt_init and grub_reboot_init before
53242 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53243 Call setjmp with MAIN_ENV to go back afterwards.
53244 Call grub_machine_fini right before return.
53245
53246 * include/grub/util/misc.h: Include setjmp.h.
53247 (main_env): New prototype.
53248
53249 * include/grub/kernel.h (grub_machine_fini): New prototype.
53250 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53251 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53252
53253 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53254 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53255 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 53256
e6b92c8a 53257 * util/i386/pc/misc.c: New file.
f19dbdb7 53258
e6b92c8a 53259 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53260 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53261 commands/i386/pc/reboot.c.
53262
c642636f 532632005-02-14 Guillem Jover <guillem@hadrons.org>
53264
53265 * include/grub/dl.h (grub_dl_check_header): New prototype.
53266 (grub_arch_dl_check_header): Change return type to grub_err_t,
53267 remove size parameter and export function. Update all callers.
53268 * kern/dl.c (grub_dl_check_header): New function.
53269 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53270 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53271 are inside the core.
53272 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53273 independent ELF header checks.
53274 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53275 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53276 `grub_dl_check_header' instead of explicit checks. Check for the
53277 ELF type.
53278 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53279 `grub_dl_check_header' instead of explicit checks. Remove arch
53280 specific ELF header checks.
53281
e6b92c8a 53282 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53283 argument SIZE.
53284
5eabe94b 532852005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53286
53287 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53288 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53289
1b14a681 532902005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53291
53292 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 53293 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 53294 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 53295 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 53296 * partmap/amiga.c (amiga_partition_map_iterate): Return
53297 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53298 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53299
aca108aa 533002005-02-01 Guillem Jover <guillem@hadrons.org>
53301
53302 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53303 help info.
53304
c9f9c556 533052005-01-31 Marco Gerards <metgerards@student.han.nl>
53306
53307 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53308 Removed prototype.
53309 (grub_rescue_cmd_linux): New prototype.
53310 (grub_rescue_cmd_initrd): Likewise.
53311 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53312 `bi_rec'.
53313 (grub_linux_release_mem): Release the memory for the initrd.
53314 (grub_load_linux): Renamed from this...
53315 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53316 Changed `entry' not to be static. Loop over memory regions to
53317 find another one when the default fails.
53318 (grub_rescue_cmd_initrd): New function.
53319 (grub_linux_init): Remove function.
53320 (grub_linux_fini): Likewise.
53321 (GRUB_MOD_INIT): Register `initrd'.
53322 (GRUB_MOD_FINI): Unregister `initrd'.
53323 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53324 Function removed.
53325 (grub_linux_normal_fini): Likewise.
53326 (GRUB_MOD_INIT): Register `initrd'.
53327 (GRUB_MOD_FINI): Unregister `initrd'.
53328
990cf3aa 533292005-01-31 Marco Gerards <metgerards@student.han.nl>
53330
53331 * commands/help.c: New file.
53332 * normal/arg.c (show_help): Renamed to...
53333 (grub_arg_show_help): ... this.
53334 * commands/i386/pc/halt.c: New file.
53335 * commands/i386/pc/reboot.c: Likewise.
53336 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53337 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53338 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53339 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53340 variables.
53341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53342 `commands/help.c'.
53343 (pkgdata_MODULES): Add `help.mod'.
53344 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53345 * grub/i386/pc/init.h (grub_reboot): New prototype.
53346 (grub_halt): Likewise.
53347 * include/grub/normal.h (grub_arg_show_help): New prototype.
53348 (grub_help_init): Likewise.
53349 (grub_help_fini): Likewise.
53350 * util/grub-emu.c (main): Initialize and deinitialize the help
53351 command.
53352
53353 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53354
53355 * normal/command.c (grub_command_init): Fixed the description of
53356 the `set' and `unset' commands.
53357
533582005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 53359
53360 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53361 function.
53362 * commands/ieee1275/halt.c: New file.
53363 * commands/ieee1275/reboot.c: Likewise.
53364 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53365 `__attribute__ ((unused))'. Some GCS related fixed.
53366 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53367 (grub_suspend_fini): Likewise.
53368 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53369 and `halt.mod'.
53370 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53371 (halt_mod_CFLAGS): New variables.
53372 * include/grub/powerpc/ieee1275/ieee1275.h
53373 (grub_ieee1275_interpret): New prototype.
53374
1ab09cc7 533752005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53376
53377 * include/grub/misc.h (memmove): New prototype.
53378 (memcpy): Likewise.
53379
8b8cbdb2 533802005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53381
53382 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53383 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53384
e3741a27 533852005-01-22 Marco Gerards <metgerards@student.han.nl>
53386
53387 * kern/misc.c (grub_strndup): Function rewritten.
53388
776bd780 533892005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53390
53391 * normal/menu.c (TERM_WIDTH): Macro redefined.
53392 (TERM_TOP_BORDER_Y): Likewise.
53393 (draw_border): Replaced while-loop by a for-loop. Make the number
53394 of lines consistent with the number of lines displayed in
53395 print_entries. Added a margin below the rectangle.
53396 (print_entry): Make the entry fit in the rectangle.
53397 (print_entries): Display the scroll arrows next to the right
53398 border.
53399
78026bce 534002005-01-21 Marco Gerards <metgerards@student.han.nl>
53401
53402 * fs/minix.c (grub_minix_find_file): Reserve more space for
53403 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53404 `grub_strncpy' to copy `path' into it.
53405
67bbaf0f 534062005-01-21 Marco Gerards <metgerards@student.han.nl>
53407
53408 Add the loopback device, a device via which files can be accessed
53409 as devices.
f19dbdb7 53410
67bbaf0f 53411 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53412 (pkgdata_MODULES): Add loopback.mod.
53413 (loopback_mod_SOURCES): New variable.
53414 (loopback_mod_CFLAGS): Likewise.
53415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53416 `disk/loopback.c'.
53417 (pkgdata_MODULES): Add loopback.mod.
53418 (loopback_mod_SOURCES): New variable.
53419 (loopback_mod_CFLAGS): Likewise.
53420 * disk/loopback.c: new file.
53421 * include/grub/normal.h (grub_loop_init): New prototype.
53422 (grub_loop_fini): New prototype.
53423 * util/grub-emu.c (main): Initialize and de-initialize loopback
53424 support.
53425 * include/grub/disk.h (grub_disk_dev_id): Add
53426 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53427
6f1c18bd 534282005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53429
53430 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53431 function.
53432 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53433 (suspend_mod_SOURCES): New variable.
53434 (suspend_mod_CFLAGS): Likewise.
53435 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53436 New prototype.
53437 * commands/ieee1275/suspend.c: New file.
53438
b38551da 534392005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53440
53441 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 53442 ((unused))' to `__attribute__ ((used))'.
b38551da 53443 (GRUB_MOD_FINI): Likewise.
53444 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53445 * genmk.rb (PModule): Assign space to common symbols when linking
53446 modules.
53447
777aff39 534482005-01-20 Marco Gerards <metgerards@student.han.nl>
53449
53450 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53451 `unsigned' arguments to `grub_size_t'.
53452 (grub_malloc): Likewise.
53453 (grub_realloc): Likewise.
53454 (grub_memalign): Likewise.
53455 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53456 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53457 * util/misc.c (grub_malloc): Likewise.
53458 (grub_realloc): Likewise.
53459 * kern/mm.c (get_header_from_pointer): Change the casts to
53460 `unsigned' into a cast to `grub_size_t'.
53461
53462 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53463 point to `currnode' when `currnode' is changed.
53464
53465 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53466 Schottelius <nico-linux@schottelius.org>.
53467
d0ff18e1 534682005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53469
53470 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53471 (note_path): Remove variable.
53472 (GRUB_IEEE1275_NOTE_NAME): New macro.
53473 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53474 (grub_ieee1275_note_hdr): New structure.
53475 (grub_ieee1275_note_desc): Likewise.
53476 (grub_ieee1275_note): Likewise.
53477 (load_note): Remove `dir' argument. All callers updated. Remove
53478 `note_img' and `path'. Do not load a file from `note_path'.
53479 Initialize a struct grub_ieee1275_note and write that to `out'.
53480 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53481
4ca7004c 534822005-01-05 Marco Gerards <metgerards@student.han.nl>
53483
53484 * util/misc.c (grub_util_read_image): Revert last change. It
53485 called `grub_util_read_at', which seeks from the beginning of the
53486 file.
53487
0b412211 534882005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53489
53490 * TODO: Add note about endianness in grub-mkimage.
53491 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53492 section.
53493 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53494 (grub_mkimage_SOURCES): New target.
53495 * include/grub/kernel.h (grub_start_addr): Remove variable.
53496 (grub_end_addr): Likewise.
53497 (grub_total_module_size): Likewise.
53498 (grub_kernel_image_size): Likewise.
53499 (GRUB_MODULE_MAGIC): New constant.
53500 (grub_module_info): New structure.
53501 (grub_arch_modules_addr): New prototype.
53502 (grub_get_end_addr): Remove prototype.
53503 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53504 * include/grub/powerpc/ieee1275/kernel.h: New file.
53505 * include/grub/util/misc.h (grub_util_get_fp_size): New
53506 prototype.
53507 (grub_util_read_at): Likewise.
53508 (grub_util_write_image_at): Likewise.
53509 * kern/main.c (grub_get_end_addr): Remove function.
53510 (grub_load_modules): Call grub_arch_modules_addr instead of using
53511 grub_end_addr. Look for a grub_module_info struct in memory. Use
53512 the grub_module_info fields instead of calling grub_get_end_addr
53513 as loop conditions. Move grub_add_unused_region code here.
53514 (grub_add_unused_region): Remove function.
53515 * kern/i386/pc/init.c: Include grub/cache.h.
53516 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53517 one call to add_mem_region.
53518 (grub_arch_modules_addr): New function.
53519 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53520 (grub_total_module_size): Likewise.
53521 Include grub/machine/kernel.h.
53522 (grub_arch_modules_addr): New function.
53523 * util/grub-emu.c (grub_end_addr): Remove variable.
53524 (grub_total_module_size): Likewise.
53525 (grub_arch_modules_addr): New function.
53526 * util/misc.c: Include unistd.h.
53527 (grub_util_get_fp_size): New function.
53528 (grub_util_read_at): Likewise.
53529 (grub_util_write_image_at): Likewise.
53530 (grub_util_read_image): Call grub_util_read_at.
53531 (grub_util_write_image): Call grub_util_write_image_at.
53532 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53533 additional memory in kernel_img for a struct grub_module_info.
53534 Fill in that grub_module_info.
53535 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53536
458786f8 535372005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53538
53539 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53540 New function.
53541 * include/grub/powerpc/ieee1275/ieee1275.h
53542 (grub_ieee1275_milliseconds): New prototype.
53543 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53544 Change to 1000.
53545 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53546 grub_ieee1275_milliseconds.
53547
ac507d1b 535482005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53549
53550 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53551 variable.
53552 (find_options): New function.
53553 (cmain): Call find_options.
53554 * include/grub/powerpc/ieee1275/ieee1275.h
53555 (grub_ieee1275_realmode): New extern variable.
53556 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53557 grub_map if grub_ieee1275_realmode is false.
53558
6b8fd1c4 535592004-12-29 Marco Gerards <metgerards@student.han.nl>
53560
53561 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53562 lines are inserted and make it work like readline. Reported by
53563 Vincent Pelletier <subdino2004@yahoo.fr>.
53564
8514a1e0 535652004-12-28 Marco Gerards <metgerards@student.han.nl>
53566
53567 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53568
53569 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53570 `kern/powerpc/cache.S'.
53571
924b6140 535722004-12-27 Marco Gerards <metgerards@student.han.nl>
53573
53574 * genmk.rb: Handle the `Program' class in the main loop. Written
53575 by Johan Rydberg <jrydberg@gnu.org>.
53576 (Program): New class.
53577 (programs): New variable.
53578 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53579 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53580 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53581 (help_arch): Function removed.
53582 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53583 `powerpc/libgcc.h' and `loader.h'.
53584 (pkgdata_PROGRAMS): New variable.
53585 (sbin_UTILITIES): Variable removed.
53586 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53587 (grubof_SOURCES): Variable re-defined so it only includes the
53588 core functionality.
53589 (grubof_CFLAGS): Remove `-DGRUBOF'.
53590 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53591 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53592 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53593 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53594 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53595 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53596 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53597 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53598 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53599 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53600 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53601 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53602 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53603 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53604 (pc_mod_CFLAGS): New variables.
53605 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53606 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53607 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53608 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53609 Moved from here...
53610 * include/grub/i386/pc/init.h (grub_os_area_addr)
53611 (rub_os_area_size): ... to here.
53612 * include/grub/powerpc/ieee1275/ieee1275.h
53613 (grub_ieee1275_entry_fn): Export symbol.
53614 * include/grub/powerpc/ieee1275/init.h: New file.
53615 * include/grub/powerpc/libgcc.h: Likewise.
53616 * include/grub/cache.h: Likewise.
53617 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53618 <hollis@penguinppc.org>.
53619 * kern/dl.c: Include <grub/cache.h>.
53620 (grub_dl_flush_cache): New function.
53621 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53622 for this module.
53623 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53624 (grub_console_init): Removed prototypes.
53625 (grub_machine_init): Don't initialize the modules anymore.
53626 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53627 static.
53628 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53629 Macro undef removed.
53630 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53631 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53632 relocation `R_PPC_REL32'. Return an error when the relocation is
53633 unknown.
53634 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53635 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53636 * util/misc.c (grub_arch_sync_caches): Likewise.
53637
e4b47e0c 536382004-12-19 Marco Gerards <metgerards@student.han.nl>
53639
53640 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53641 `symlist.c', add `grubof_symlist.c'.
53642 (symlist.c): Variable removed.
53643 (grubof_HEADERS): Variable added.
53644 (grubof_symlist.c): New target.
53645 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53646 `kernel_img_HEADERS'.
53647 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53648 * kern/powerpc/dl.c: New file.
53649 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53650 Function removed.
53651 (grub_arch_dl_relocate_symbols): Likewise.
53652 (grub_register_exported_symbols): Likewise.
53653
4ceb3636 536542004-12-13 Marco Gerards <metgerards@student.han.nl>
53655
53656 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53657 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53658 to fail instead. Reported by Vincent Pelletier
53659 <subdino2004@yahoo.fr>.
53660
53661 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53662 it is not allocated. Reported by Vincent Pelletier
53663 <subdino2004@yahoo.fr>.
53664
53665 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53666 output so the output looks better.
f19dbdb7 53667
3f1578fe 536682004-12-04 Marco Gerards <metgerards@student.han.nl>
53669
53670 Modulize the partition map support and add support for the amiga
53671 partition map.
f19dbdb7 53672
3f1578fe 53673 * commands/ls.c: Include <grub/partition.h> instead of
53674 <grub/machine/partition.h>.
53675 * kern/disk.c: Likewise.
53676 * kern/rescue.c: Likewise.
53677 * loader/i386/pc/chainloader.c: Likewise.
53678 * normal/cmdline.c: Likewise.
53679 * kern/powerpc/ieee1275/init.c: Likewise.
53680 (grub_machine_init): Call `grub_pc_partition_map_init',
53681 `grub_amiga_partition_map_init' and
53682 `grub_apple_partition_map_init'.
53683 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53684 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53685 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53686 `partition.h' and `pc_partition.h'.
53687 (grub_setup_SOURCES): Remove
53688 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53689 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53690 (grub_emu_SOURCES): Likewise.
53691 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53692 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53693 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53694 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53695 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53696 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53697 (grubof_SOURCES): Likewise.
53698 * disk/i386/pc/partition.c: File removed.
53699 * disk/powerpc/ieee1275/partition.c: Likewise.
53700 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53701 * include/grub/i386/pc/partition.h: Likewise.
53702 * kern/partition.c: New file.
53703 * partmap/amiga.c: Likewise.
53704 * partmap/apple.c: Likewise.
53705 * partmap/pc.c: Likewise.
53706 * include/grub/partition.h: Likewise..
53707 * include/grub/pc_partition.h: Likewise.
53708 * util/grub-emu.c: Include <grub/partition.h> instead of
53709 <grub/machine/partition.h>.
53710 (main): Call `grub_pc_partition_map_init',
53711 `grub_amiga_partition_map_init' and
53712 `grub_apple_partition_map_init' and deinitialize afterwards.
53713 * util/i386/pc/biosdisk.c: Include `#include
53714 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53715 `<grub/machine/partition.h>'.
53716 * util/i386/pc/grub-setup.c: Likewise.
53717 * util/i386/pc/biosdisk.c: Likewise.
53718 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53719 partition information in case of a PC partition.
53720 * util/i386/pc/grub-setup.c: Include `#include
53721 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53722 `<grub/machine/partition.h>'.
53723 (setup): Only access the PC specific partition information in case
53724 of a PC partition.
53725
0ef4ced9 537262004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 53727
0ef4ced9 53728 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53729 (grub_longjmp): Likewise.
53730 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53731 20.
53732 * normal/powerpc/setjmp.S: New file.
53733 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53734 `normal/powerpc/setjmp.S'.
53735 (grubof_CFLAGS): Add `-DGRUBOF'.
53736 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53737 [GRUB_UTIL && !GRUBOF].
f19dbdb7 53738
19950e29 537392004-11-16 Marco Gerards <metgerards@student.han.nl>
53740
53741 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53742 property named `name'. Correctly handle the error returned by
53743 `grub_ieee1275_finddevice' if a device can not be opened.
53744
a2fea427 537452004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53746
53747 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53748 `actual' for negativity.
53749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53750 kern/fshelp.c.
53751
41ea0ea3 537522004-11-01 Marco Gerards <metgerards@student.han.nl>
53753
53754 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53755 (PAGE_OFFSET): New macro.
53756 (CRTC_ADDR_PORT): Likewise.
53757 (CRTC_DATA_PORT): Likewise.
53758 (START_ADDR_HIGH_REGISTER): Likewise.
53759 (START_ADDR_LOW_REGISTER): Likewise.
53760 (GRAPHICS_ADDR_PORT): Likewise.
53761 (GRAPHICS_DATA_PORT): Likewise.
53762 (READ_MAP_REGISTER): Likewise.
53763 (INPUT_STATUS1_REGISTER): Likewise.
53764 (INPUT_STATUS1_VERTR_BIT): Likewise.
53765 (page): New variable.
53766 (wait_vretrace): New function.
53767 (set_read_map): Likewise.
53768 (set_start_address): Likewise.
53769 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53770 the right page.
53771 (check_vga_mem): Take the page into account.
53772 (write_char): Likewise.
53773 (write_cursor): Likewise.
53774 (scroll_up): Likewise. Copy the page to the page that is not
53775 shown and switch between both pages.
53776 (grub_vga_putchar): Fix off by one error.
53777 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53778 account.
53779
ad0bd20b 537802004-11-01 Marco Gerards <metgerards@student.han.nl>
53781
53782 Add support for iso9660 (including rockridge).
f19dbdb7 53783
ad0bd20b 53784 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53785 (iso9660_mod_SOURCES): New variable.
53786 (iso9660_mod_CFLAGS): Likewise.
53787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53788 * include/grub/fs.h (grub_iso9660_init): New prototype.
53789 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53790 * fs/iso9660.c: New file.
53791
53792 * include/grub/misc.h (grub_strncat): New prototype.
53793 * kern/misc.c (grub_strncat): New function.
f19dbdb7 53794
ad0bd20b 53795 * fs/hfs.c (grub_hfs_mount): Translate the error
53796 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53797 * fs/jfs.c (grub_jfs_mount): Likewise.
53798 * fs/ufs.c (grub_ufs_mount): Likewise.
53799
a5477a59 538002004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53801
53802 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53803 which initialized BAT registers.
53804 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53805 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53806 Move from here...
53807 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53808 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53809 ... to here.
53810 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53811 (grub_mapclaim): Likewise.
53812 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53813 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53814 hand.
53815
9304c1f8 538162004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53817
53818 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53819 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53820 -ffreestanding and -msoft-float.
53821
86f4ae25 538222004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53823
53824 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53825 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53826 set in grub_ieee1275_flags.
53827
38912228 538282004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53829
53830 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53831 prototype.
53832 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53833 grub_console_init first.
53834 Change the memory range used for grub_ieee1275_claim and
53835 grub_mm_init_region.
53836 Print an error message if the claim fails.
53837 Include <grub/misc.h>.
53838
d1923dc8 538392004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53840
53841 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53842 Call grub_children_iterate for device nodes of type `scsi',
53843 `ide', or `ata'.
53844 (grub_ofdisk_open): Remove manual device alias resolution.
53845 Fix memory leak when device cannot be opened.
f19dbdb7 53846 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 53847 (grub_children_iterate): New prototype.
53848 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53849 New function.
53850 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53851 Return -1 if args.size was -1.
53852
4512e4f3 538532004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53854
53855 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53856 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53857 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53858 Open Firmware's memory for it; claim memory from _start to _end.
53859 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53860 (_end): New extern.
53861 (_start): Zero BSS from __bss_start to _end.
53862 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53863 New extern.
53864 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53865
4d61feb0 538662004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53867
ad0bd20b 53868 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53869 -1 if args.base was -1.
4d61feb0 53870
026fa2f9 538712004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53872
53873 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53874 escape sequence instead of a literal ^L. Also call
53875 grub_ofconsole_gotoxy.
53876
9f2220ef 538772004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53878
53879 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53880 void * arguments to grub_addr_t. All callers updated. Also make
53881 the `result' argument optional.
53882 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53883 All callers updated.
53884
8a572cd7 538852004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53886
53887 * commands/ls.c (grub_ls_list_files): Use the string following the
53888 initial ')', if present, as the filesystem path.
53889 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53890
53891 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53892
18aa81f2 538932004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53894
53895 Make the source code of the menu interface more readable.
f19dbdb7 53896
18aa81f2 53897 * normal/menu.c: Include grub/mm.h.
53898 (TERM_WIDTH): New macro.
53899 (TERM_HEIGHT): Likewise.
53900 (TERM_INFO_HEIGHT): Likewise.
53901 (TERM_MARGIN): Likewise.
53902 (TERM_SCROLL_WIDTH): Likewise.
53903 (TERM_TOP_BORDER_Y): Likewise.
53904 (TERM_LEFT_BORDER_X): Likewise.
53905 (TERM_BORDER_WIDTH): Likewise.
53906 (TERM_MESSAGE_HEIGHT): Likewise.
53907 (TERM_BORDER_HEIGHT): Likewise.
53908 (TERM_NUM_ENTRIES): Likewise.
53909 (TERM_FIRST_ENTRY_Y): Likewise.
53910 (TERM_ENTRY_WIDTH): Likewise.
53911 (TERM_CURSOR_X): Likewise.
53912 (draw_border): Use macros instead of magic numbers.
53913 (print_entry): Likewise.
53914 (print_entries): Likewise.
53915 (run_menu): Likewise. Also, handle the key 'e'.
53916 (run_menu_entry): Ignore empty command lines.
53917 (print_message): Added a new argument EDIT. If EDIT is true,
53918 print a different message.
53919 (init_page): Likewise.
53920 (edit_menu_entry): New function. Not implemented yet.
53921
b47efe30 539222004-09-17 Marco Gerards <metgerards@student.han.nl>
53923
53924 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53925 can be loaded from normal mode.
f19dbdb7 53926
b47efe30 53927 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53928 `multiboot.mod'.
53929 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53930 (multiboot_mod_CFLAGS): New variables.
53931 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 53932 * loader/i386/pc/multiboot_normal.c: Likewise.
53933
b47efe30 53934 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53935 attribute `unused'.
f19dbdb7 53936
b47efe30 53937 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53938 `fdiro' to read the mode information from instead of `diro'.
53939
53940 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53941 looking up a symlink.
53942
53943 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53944 macro.
53945 * normal/command.c (grub_command_execute): Don't parse the
53946 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53947 flags of the command.
53948
53949 * normal/menu.c (grub_menu_run): Fix typo.
53950
da75ac71 539512004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53952
53953 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53954
53955 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53956 `y + 1' instead of `y - 1'.
53957
53958 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 53959
062b24c2 539602004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53961
53962 From Hollis Blanchard <hollis@penguinppc.org>:
53963 * kern/misc.c (memmove): New alias for grub_memmove.
53964 (memcmp): New alias for grub_memcmp.
53965 (memset): New alias for grub_memset.
f19dbdb7 53966 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 53967 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 53968 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 53969 (grub_ieee1275_get_property): Likewise.
f19dbdb7 53970
8ddad845 539712004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53972
53973 Added normal mode command `chainloader' as module chain.mod, which
53974 depends on normal.mod and _chain.mod.
f19dbdb7 53975
8ddad845 53976 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53977 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53978 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53979 Deleted prototype.
53980 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53981 but arguments parsing moved to ...
53982 (grub_chainloader_cmd): ... here. New function.
53983 * include/grub/i386/pc/chainloader.h: New file.
53984 * loader/i386/pc/chainloader_normal.c: Likewise.
53985
2c1f4ce3 539862004-09-11 Marco Gerards <metgerards@student.han.nl>
53987
53988 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53989 (grub_mkimage_LDFLAGS): Likewise.
53990 (grub_emu_SOURCES): Likewise.
53991 (kernel_img_HEADERS): Added fshelp.h.
53992 * fs/ext2.c: Include <grub/fshelp.h>.
53993 (FILETYPE_REG): New macro.
53994 (FILETYPE_INO_REG): Likewise.
53995 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53996 Changed all users.
53997 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53998 all users.
53999 (grub_fshelp_node): New struct.
54000 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54001 to a pointer.
54002 (grub_ext2_get_file_block): Removed function.
54003 (grub_ext2_read_block): New function.
54004 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54005 This function was written.
54006 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54007 (grub_ext2_find_file): Removed function.
54008 (grub_ext2_read_symlink): New function.
54009 (grub_ext2_iterate_dir): Likewise.
54010 (grub_ext2_open): Rewritten.
54011 (grub_ext2_dir): Rewritten.
54012 * include/grub/fshelp.h: New file.
54013 * fs/fshelp.c: Likewise.
54014
3c52136a 540152004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54016
54017 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54018 (print_message): Add a missing newline.
54019 (run_menu): Added timeout support.
54020 (run_menu_entry): New local function.
54021 (grub_menu_run): Added support for booting.
54022
54023 * kern/loader.c (grub_loader_is_loaded): New function.
54024
54025 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54026 (grub_get_rtc): Exported.
54027
54028 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54029 (grub_get_rtc): Exported.
54030
54031 * include/grub/normal.h (struct grub_command_list): Remove
54032 constant from the member `command'.
54033
54034 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54035
54036 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54037
54038 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54039
aa033560 540402004-08-28 Marco Gerards <metgerards@student.han.nl>
54041
54042 Add support for the JFS filesystem.
54043
54044 * fs/jfs.c: New file.
54045 * include/grub/fs.h (grub_jfs_init): New prototype.
54046 (grub_jfs_fini): New prototype.
54047 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54048 (grub_emu_SOURCES): Likewise.
54049 (pkgdata_MODULES): Add jfs.mod.
54050 (jfs_mod_SOURCES): New variable.
54051 (jfs_mod_CFLAGS): Likewise.
54052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54053 (grubof_SOURCES): Likewise.
54054 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54055
54056 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54057 endian to the host endian.
54058 (grub_fat_utf16_to_utf8): Move function from there...
54059 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 54060 the endianness of the source string anymore.
aa033560 54061 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54062
94bc45af 540632004-08-24 Marco Gerards <metgerards@student.han.nl>
54064
54065 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54066 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54067 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54068 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 54069
94bc45af 54070 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54071 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54072 for `node_found' and `it_dir'.
54073 (grub_hfs_dir): Add prototype for `dir_hook'.
54074
54075 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54076 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54077 and `indir32' to silence a gcc warning.
54078
54079 * include/grub/fs.h (grub_hfs_init): New prototype.
54080 (grub_hfs_fini): Likewise.
f19dbdb7 54081
54082
97543f08 540832004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54084
54085 Each disk device has its own id now. This is useful to make use
54086 of multiple disk devices.
f19dbdb7 54087
97543f08 54088 * include/grub/disk.h (grub_disk_dev_id): New enum.
54089 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54090 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54091
54092 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54093 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54094
54095 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54096 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54097
54098 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54099 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54100
54101 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54102 "id" which is used by the cache manager.
54103
54104 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54105 of just "GRUB".
54106
64372eb4 541072004-08-18 Marco Gerards <metgerards@student.han.nl>
54108
54109 * fs/hfs.c: New file.
54110 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54111 (grub_emu_SOURCES): Likewise.
54112 (pkgdata_MODULES): Add hfs.mod.
54113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54114 (grubof_SOURCES): Likewise.
54115 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54116
54117 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54118 * kern/misc.c (grub_strncasecmp): Add function.
54119
cc61b58f 541202004-08-14 Marco Gerards <metgerards@student.han.nl>
54121
54122 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54123 with parentheses.
54124
54125 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54126 (grub_ext2_dir): In case the directory entry type is unknown, read
54127 it from the inode.
54128
0ef123f6 541292004-08-02 Peter Bruin <pjbruin@dds.nl>
54130
54131 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54132 grub_load_linux instead of grub_rescue_cmd_linux as second
54133 argument of grub_rescue_register_command.
54134
54135 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54136
a447c5df 541372004-07-27 Marco Gerards <metgerards@student.han.nl>
54138
54139 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54140 function.
54141 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54142 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54143 `loader/powerpc/ieee1275/linux.c',
54144 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54145 * include/grub/powerpc/ieee1275/ieee1275.h
54146 (grub_ieee1275_release): New prototype.
54147 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54148 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54149 normal, boot, linux and linux_normal.
54150 * loader/powerpc/ieee1275/linux.c: New file.
54151 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54152
5a9e3546 541532004-07-12 Marco Gerards <metgerards@student.han.nl>
54154
54155 * normal/arg.c (grub_arg_parse): Correct error handling after
54156 reallocating the argumentlist (check if `argl' is not null instead
54157 of checking if `args' is not null).
54158 * kern/mm.c (grub_realloc): Return the same pointer when using the
54159 same region, instead of returning the header address.
54160
e15199cb 541612004-07-11 Marco Gerards <metgerards@student.han.nl>
54162
54163 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54164 one block instead of two when looking for the initial partition.
54165 (grub_partition_probe): Initialize the local variable `p' with 0.
54166 Use base 10 for the grub_strtoul call.
54167 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54168 need for one local variable.
54169 (grub_strtoul): Don't add the new value to `num', instead of that
54170 just assign it.
54171
020616c2 541722004-07-11 Marco Gerards <metgerards@student.han.nl>
54173
54174 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54175 (pxeboot_img_SOURCES): New variable.
54176 (pxeboot_img_ASFLAGS): Likewise.
54177 (pxeboot_img_LDFLAGS): Likewise.
54178 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54179 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54180 <lode_leroy@hotmail.com>.
54181
6c51eb64 541822004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54183
54184 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54185 there was no input.
54186
cfb12aff 541872004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54188
54189 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54190 the history buffer logic.
54191
6eabba74 541922004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54193
54194 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54195 (FILETYPE_INO_SYMLINK): New macros.
54196 (grub_ext2_find_file): Check if the node is a directory using the
54197 inode stat information instead of using the filetype in the
54198 dirent. Exclude the first character of an absolute symlink.
54199 (grub_ext2_dir): Mask out the filetype part of the mode member of
54200 the inode.
54201
66e19ef8 542022004-05-24 Marco Gerards <metgerards@student.han.nl>
54203
54204 Add support for UFS version 1 and 2. Add support for the minix
54205 filesystem version 1 and 2, both the variants with 14 and 30 long
54206 filenames.
f19dbdb7 54207
66e19ef8 54208 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54209 fs/minix.c.
54210 (grub_emu_SOURCES): Likewise.
54211 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54212 (ufs_mod_SOURCES): New variable.
54213 (ufs_mod_CFLAGS): Likewise.
54214 (minix_mod_SOURCES): Likewise.
54215 (minix_mod_CFLAGS): Likewise.
54216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54217 fs/minix.c.
54218 (grubof_SOURCES): Likewise.
54219 * fs/ufs.c: New file.
54220 * fs/minix.c: New file.
54221 * include/grub/fs.h (grub_ufs_init): New prototype.
54222 (grub_ufs_fini): Likewise.
54223 (grub_minix_init): Likewise.
54224 (grub_minix_fini): Likewise.
54225 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54226 minix fs.
54227
cc2e748a 542282004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54229
54230 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54231 commands/ls.c, commands/terminal.c, commands/boot.c,
54232 commands/cmp.c and commands/cat.c.
54233 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54234
54235 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54236 "env.h"
54237
4b13b216 542382004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54239
54240 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54241 and grub_, respectively. Because the conversion is trivial and
54242 mechanical, I omit the details here. Please refer to the CVS
54243 if you need more information.
54244
6a142551 542452004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54246
54247 * include/pupa: Renamed to ...
54248 * include/grub: ... this.
54249 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54250 * util/i386/pc/grub-mkimage.c: ... this.
54251 * util/i386/pc/pupa-setup.c: Renamed to ...
54252 * util/i386/pc/grub-setup.c: ... this.
54253 * util/pupa-emu.c: Renamed to ...
54254 * util/grub-emu.c: ... this.
54255
e56cdf21 542562004-03-29 Marco Gerards <metgerards@student.han.nl>
54257
54258 Add support for the newworld apple macintosh (PPC). This has been
54259 tested on the powerbook 2000 only. It only adds support for
54260 generic ieee1275 functions, console and disk support. This should
54261 be easy to port to other architectures with support for Open
54262 Firmware.
f19dbdb7 54263
e56cdf21 54264 * configure.ac: Accept the powerpc as host_cpu. In the case of
54265 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54266 specific tests are only executed while building for the i386.
54267 Inverse test for crosscompile.
54268 * genmk.rb (Utility): Allow assembler files.
54269 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54270 * conf/powerpc-ieee1275.rmk: New file.
54271 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54272 * disk/powerpc/ieee1275/partition.c: Likewise.
54273 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54274 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54275 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54276 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54277 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54278 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54279 * include/pupa/powerpc/ieee1275/loader.h
54280 * include/pupa/powerpc/setjmp.h: Likewise.
54281 * include/pupa/powerpc/types.h: Likewise.
54282 * kern/powerpc/ieee1275/init.c: Likewise.
54283 * kern/powerpc/ieee1275/openfw.c: Likewise.
54284 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54285
54286 These files were written by Johan Rydberg
54287 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 54288
e56cdf21 54289 * boot/powerpc/ieee1275/cmain.c: New file.
54290 * boot/powerpc/ieee1275/crt0.S: Likewise.
54291 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54292 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54293
8c8cc205 542942004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54295
54296 * Makefile.in: Update copyright.
54297 * genmodsrc.sh: Likewise.
54298 * gensymlist.sh: Likewise.
54299 * term/i386/pc/vga.c: Indent correctly.
54300
54301 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54302 bugreporting address.
54303 * util/i386/pc/pupa-setup.c (usage): Likewise,
54304 (main): Call pupa_ext2_init and pupa_ext2_fini.
54305
f19dbdb7 54306 * fs/fat.c (log2): Renamed to ...
8c8cc205 54307 (fat_log2): ... this.
54308 All callers changed.
54309 * kern/misc.c (memcpy): Alias to pupa_memmove.
54310 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54311 lvalue cast.
54312 * util/console.c (pupa_ncurses_fini): Return 0.
54313
54314 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54315 Move fail label here.
54316 [__GNU__]: Don't warn when using stat.
54317 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54318 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54319 long int. Use strtol instead of strtoul.
f19dbdb7 54320
db1771cf 543212004-03-14 Marco Gerards <metgerards@student.han.nl>
54322
54323 * commands/boot.c: New file.
54324 * commands/cat.c: Likewise.
54325 * commands/cmp.c: Likewise.
54326 * commands/ls.c: Likewise.
54327 * commands/terminal.c: Likewise.
54328 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54329 (pupa_register_command): Changed interface to match the new
54330 argument parser.
54331 (pupa_command_execute): Changed (almost rewritten) so it uses
54332 pupa_split_command. Added support for setting variables using the
54333 syntax `foo=bar'.
54334 (rescue_command): Changed to work with the new argument parser.
54335 (terminal_command): Moved from here to commands/terminal.c.
54336 (set_command): New function.
54337 (unset_command): New function.
54338 (insmod_command): New function.
54339 (rmmod_command): New function.
54340 (lsmod_command): New function.
54341 (pupa_command_init): Don't initialize the command terminal
54342 anymore. Initialize the commands set, unset, insmod, rmmod and
54343 lsmod.
54344 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54345 (kernel_img_HEADERS): Add arg.h and env.h.
54346 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54347 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54348 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54349 normal/arg.c.
54350 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54351 terminal.mod.
54352 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54353 (boot_mod_SOURCES): New variable.
54354 (terminal_mod_SOURCES): Likewise.
54355 (ls_mod_SOURCES): Likewise.
54356 (cmp_mod_SOURCES): Likewise.
54357 (cat_mod_SOURCES): Likewise.
54358
54359 * normal/arg.c: New file.
54360 * kern/env.c: Likewise.
54361 * include/pupa/arg.h: Likewise.
54362 * include/pupa/env.h: Likewise.
54363 * font/manager.c (font_command): Changed to match argument parsing
54364 interface changes.
54365 (PUPA_MOD_INIT): Likewise.
54366 * hello/hello.c (pupa_cmd_hello): Likewise.
54367 (PUPA_MOD_INIT): Likewise.
54368 * include/pupa/disk.h: Include <pupa/device.h>.
54369 (pupa_print_partinfo): New prototype.
54370 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54371 (pupa_dl_get_prefix): Likewise.
54372 * include/pupa/misc.h: Include <pupa/err.h>.
54373 (pupa_isgraph): New prototype.
54374 (pupa_isdigit): Likewise.
54375 (pupa_split_cmdline): Likewise.
54376 * include/pupa/normal.h: Include <pupa/arg.h>.
54377 (pupa_command): Changed the prototype of the member `func' to
54378 match the argument parsing interface. Added member `options'.
54379 (pupa_register_command): Updated to match function.
54380 (pupa_arg_parse): New prototype.
54381 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54382 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54383 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54384 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54385 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54386 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54387 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54388 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54389 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54390 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54391 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54392 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54393 * kern/disk.c: Include <pupa/file.h>.
54394 (pupa_print_partinfo): New function.
54395 * kern/dl.c: Include <pupa/env.h>.
54396 (pupa_dl_dir): Variable removed.
54397 (pupa_dl_load): Use the environment variable `prefix' instead of
54398 the variable pupa_dl_dir.
54399 (pupa_dl_set_prefix): Function removed.
54400 (pupa_dl_get_prefix): Likewise.
54401 * kern/i386/pc/init.c: Include <pupa/env.h>.
54402 (pupa_machine_init): Use the environment variable `prefix' instead of
54403 using pupa_dl_set_prefix to set the prefix.
54404 * kern/main.c: Include <pupa/env.h>.
54405 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54406 using pupa_dl_get_prefix to get the prefix.
54407 * kern/misc.c: Include <pupa/env.h>.
54408 (pupa_isdigit): New function.
54409 (pupa_isgraph): Likewise.
54410 (pupa_ftoa): Likewise.
54411 (pupa_vsprintf): Added support for printing values of the type
54412 `double'. Make it possible to format variable output when using
54413 formatting like `%1.2%f'.
54414 (pupa_split_cmdline): New function.
54415 * kern/rescue.c: Include <pupa/env.h>.
54416 (next_word): Removed function.
54417 (pupa_rescue_cmd_prefix): Likewise.
54418 (pupa_rescue_cmd_set): New function.
54419 (pupa_rescue_cmd_unset): New function.
54420 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54421 split the command line instead of splitting it here. Added
54422 support for setting variables using the syntax `foo=bar'. Don't
54423 initialize the prefix command anymore. Initialized the set and
54424 unset commands.
54425 * normal/cmdline.c: Include <pupa/env.h>.
54426 (pupa_tab_complete): Added prototypes for print_simple_completion,
54427 print_partition_completion, add_completion, iterate_commands,
54428 iterate_dev, iterate_part and iterate_dir. Moved code to print
54429 partition information from here to kern/disk.c.
fe6b695a 54430 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 54431 * normal/main.c: Include <pupa/env.h>.
54432 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54433 instead of using pupa_dl_get_prefix to get the prefix.
54434 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54435 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54436 warning.
54437 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54438 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54439 ((unused))' to silence a gcc warning.
54440 (pupa_vga_setcolor): Likewise.
54441 (debug_command): Changed to match argument parsing
54442 interface changes.
54443 * util/pupa-emu.c: Include <pupa/env.h>.
54444 (options): Added 0's for unused fields to silence a gcc warning.
54445 (argp): Likewise.
54446 (main): Use the environment variable `prefix' instead of using
54447 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54448 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54449 and terminal.
54450
54451 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54452 * util/misc.c: Include <malloc.h>.
54453 (pupa_malloc): Rewritten so errors are correctly reported.
54454 (pupa_realloc): Likewise.
54455 (pupa_memalign): Likewise.
54456 (pupa_mm_init_region): Declare unused variables with
54457 `__attribute__ ((unused))' to silence a gcc warning.
54458 * normal/i386/setjmp.S: Remove tab at the end of the file to
54459 silence a gcc warning.
54460 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54461 variables with `__attribute__ ((unused))' to silence a gcc
54462 warning.
54463 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54464 local variable i unsigned to silence a gcc warning.
54465
54466 * kern/term.c: Include <pupa/misc.h>.
54467 (pupa_more_lines): New variable.
54468 (pupa_more): Likewise.
54469 (pupa_putcode): When the pager is active pause at the end of every
54470 screen.
54471 (pupa_set_more): New function.
54472 * include/pupa/term.h (pupa_set_more): New prototype.
54473
54474
3b1139cb 544752004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54476
54477 Now this project is GRUB 2 rather than PUPA. The location of
54478 the CVS repository was moved to GRUB's.
f19dbdb7 54479
3b1139cb 54480 * configure.ac: Use bug-grub as the reporting address.
54481 Use GRUB instead of PUPA.
54482 Change the version number to 1.90.
54483
8367695c 544842004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54485
54486 * genkernsyms.sh: Updated copyright information.
54487 * genmk.rb: Likewise.
54488 * genmodsrc.sh: Likewise.
54489 * gensymlist.sh: Likewise.
54490 * boot/i386/pc/boot.S: Likewise.
54491 * boot/i386/pc/diskboot.S: Likewise.
54492 * disk/i386/pc/biosdisk.c: Likewise.
54493 * disk/i386/pc/partition.c: Likewise.
54494 * font/manager.c: Likewise.
54495 * fs/ext2.c: Likewise.
54496 * fs/fat.c: Likewise.
54497 * include/pupa/boot.h: Likewise.
54498 * include/pupa/device.h: Likewise.
54499 * include/pupa/disk.h: Likewise.
54500 * include/pupa/dl.h: Likewise.
54501 * include/pupa/elf.h: Likewise.
54502 * include/pupa/err.h: Likewise.
54503 * include/pupa/file.h: Likewise.
54504 * include/pupa/font.h: Likewise.
54505 * include/pupa/fs.h: Likewise.
54506 * include/pupa/kernel.h: Likewise.
54507 * include/pupa/loader.h: Likewise.
54508 * include/pupa/misc.h: Likewise.
54509 * include/pupa/mm.h: Likewise.
54510 * include/pupa/net.h: Likewise.
54511 * include/pupa/normal.h: Likewise.
54512 * include/pupa/rescue.h: Likewise.
54513 * include/pupa/setjmp.h: Likewise.
54514 * include/pupa/symbol.h: Likewise.
54515 * include/pupa/term.h: Likewise.
54516 * include/pupa/types.h: Likewise.
54517 * include/pupa/i386/setjmp.h: Likewise.
54518 * include/pupa/i386/types.h: Likewise.
54519 * include/pupa/i386/pc/biosdisk.h: Likewise.
54520 * include/pupa/i386/pc/boot.h: Likewise.
54521 * include/pupa/i386/pc/console.h: Likewise.
54522 * include/pupa/i386/pc/init.h: Likewise.
54523 * include/pupa/i386/pc/kernel.h: Likewise.
54524 * include/pupa/i386/pc/linux.h: Likewise.
54525 * include/pupa/i386/pc/loader.h: Likewise.
54526 * include/pupa/i386/pc/memory.h: Likewise.
54527 * include/pupa/i386/pc/multiboot.h: Likewise.
54528 * include/pupa/i386/pc/partition.h: Likewise.
54529 * include/pupa/i386/pc/time.h: Likewise.
54530 * include/pupa/i386/pc/vga.h: Likewise.
54531 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54532 * include/pupa/util/getroot.h: Likewise.
54533 * include/pupa/util/misc.h: Likewise.
54534 * include/pupa/util/resolve.h: Likewise.
54535 * kern/device.c: Likewise.
54536 * kern/disk.c: Likewise.
54537 * kern/dl.c: Likewise.
54538 * kern/err.c: Likewise.
54539 * kern/file.c: Likewise.
54540 * kern/fs.c: Likewise.
54541 * kern/loader.c: Likewise.
54542 * kern/main.c: Likewise.
54543 * kern/misc.c: Likewise.
54544 * kern/mm.c: Likewise.
54545 * kern/rescue.c: Likewise.
54546 * kern/term.c: Likewise.
54547 * kern/i386/dl.c: Likewise.
54548 * kern/i386/pc/init.c: Likewise.
54549 * kern/i386/pc/lzo1x.S: Likewise.
54550 * kern/i386/pc/startup.S: Likewise.
54551 * loader/i386/pc/chainloader.c: Likewise.
54552 * loader/i386/pc/linux.c: Likewise.
54553 * loader/i386/pc/multiboot.c: Likewise.
54554 * normal/cmdline.c: Likewise.
54555 * normal/command.c: Likewise.
54556 * normal/main.c: Likewise.
54557 * normal/menu.c: Likewise.
54558 * normal/i386/setjmp.S: Likewise.
54559 * term/i386/pc/console.c: Likewise.
54560 * term/i386/pc/vga.c: Likewise.
54561 * util/console.c: Likewise.
54562 * util/genmoddep.c: Likewise.
54563 * util/misc.c: Likewise.
54564 * util/pupa-emu.c: Likewise.
54565 * util/resolve.c: Likewise.
54566 * util/unifont2pff.rb: Likewise.
54567 * util/i386/pc/biosdisk.c: Likewise.
54568 * util/i386/pc/getroot.c: Likewise.
54569 * util/i386/pc/pupa-mkimage.c: Likewise.
54570 * util/i386/pc/pupa-setup.c: Likewise.
54571
e6eced71 545722004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54573
54574 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54575 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54576 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54577 reading and reset it after reading.
54578 (pupa_ext2_close): Return PUPA_ERR_NONE.
54579
54580 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54581 Correct value.
54582 (struct linux_kernel_header): Add kernel_version and
54583 initrd_addr_max.
54584 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54585 pupa_file_read succeeds.
54586 (pupa_rescue_cmd_initrd): Implement.
54587
5aded270 545882003-12-03 Marco Gerards <metgerards@student.han.nl>
54589
54590 * fs/ext2.c (pupa_ext2_label): New function.
54591 (pupa_ext2_fs): Added label.
54592 * fs/fat.c (pupa_fat_label): New function.
54593 (pupa_fat_fs): Added label.
54594 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54595
54596 * kern/misc.c (pupa_strndup): New function.
54597 * include/pupa/misc.h (pupa_strndup): New prototype.
54598
54599 * include/pupa/normal.h: Include <pupa/err.h>.
54600 (pupa_set_history): New prototype.
54601 (pupa_iterate_commands): New prototype.
54602 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54603 <pupa/disk.h>, <pupa/file.h>.
54604 (hist_size): New variable.
54605 (hist_lines): Likewise.
54606 (hist_end): Likewise.
54607 (hist_used): Likewise.
54608 (pupa_set_history): New function.
54609 (pupa_history_get): Likewise.
54610 (pupa_history_add): Likewise.
54611 (pupa_history_replace): Likewise.
54612 (pupa_tab_complete): Likewise.
54613 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54614 completion shows partitionnames while completing partitions, this
54615 feature was suggested by Jeff Bailey.
54616 * normal/command.c (pupa_iterate_commands): New function.
54617 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54618 (pupa_normal_init): Initialize history buffer.
54619 (PUPA_MOD_INIT): Likewise.
54620 (pupa_normal_fini): Free the history buffer.
54621 (PUPA_MOD_FINI): Likewise.
54622
54623 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54624 key.
54625
54626 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54627 * configure.ac [i386]: Check for regparam bug.
54628 (NESTED_FUNC_ATTR) [! i386]: Defined.
54629
1f7315a3 546302003-11-17 Marco Gerards <metgerards@student.han.nl>
54631
54632 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54633 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54634 (pupa_emu_SOURCES): New variable.
54635 (pupa_emu_LDFLAGS): Likewise.
54636 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54637 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54638 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54639 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54640 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54641 (pupa_jmp_buf): New typedef.
54642 (pupa_setjmp) [PUPA_UTIL]: New macro.
54643 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54644 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54645 (pupa_refresh): New prototype.
54646 * include/pupa/util/getroot.h: New file.
54647 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54648 it.
54649 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54650 (pupa_rescue_cmd_cat): Likewise.
54651 (pupa_rescue_cmd_ls): Likewise.
54652 (pupa_rescue_cmd_testload): Likewise.
54653 (pupa_rescue_cmd_lsmod): Likewise.
54654 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54655 * normal/menu.c (run_menu): Likewise.
54656 * kern/term.c (pupa_cls): Likewise.
54657 (pupa_refresh): New function.
54658 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54659 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54660 * util/console.c: New file.
f19dbdb7 54661
1f7315a3 54662 * util/i386/pc/getroot.c: New file.
54663 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54664 (pupa_putchar): New function.
54665 (pupa_refresh): Likewise.
54666 (xgetcwd): Function moved to ...
54667 (strip_extra_slashes): Likewise.
54668 (get_prefix): Likewise.
f19dbdb7 54669 * util/i386/pc/getroot.c: ... here.
1f7315a3 54670 (find_root_device): Function moved and renamed to...
54671 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54672 Changed all callers.
54673 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54674 and renamed to...
54675 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54676 Changed all callers.
54677 * util/misc.c (pupa_memalign): New function.
54678 (pupa_mm_init_region): Likewise.
54679 (pupa_register_exported_symbols): Likewise.
54680 (pupa_putchar): Function removed.
54681 * util/pupa-emu.c: New file.
54682
9a5c1ade 546832003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54684
54685 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54686 (_multiboot_mod_SOURCES): New variable.
54687 (_multiboot_mod_CFLAGS): Likewise.
54688 * loader/i386/pc/multiboot.c: New file.
54689 * include/pupa/i386/pc/multiboot.h: Likewise.
54690 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54691 (pupa_multiboot_real_boot): New function.
54692 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54693 (pupa_multiboot_real_boot): New prototype.
54694 (pupa_rescue_cmd_multiboot): Likewise
54695 (pupa_rescue_cmd_module): Likewise.
54696
54697 * kern/loader.c (pupa_loader_set): Continue when
54698 pupa_loader_unload_func() fails.
54699 (pupa_loader_unset): New function.
54700 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54701
54702 * kern/misc.c (pupa_stpcpy): New function.
54703 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54704
8e72a9c0 547052003-11-12 Marco Gerards <metgerards@student.han.nl>
54706
54707 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54708 for available extensions.
54709
54710 * include/pupa/i386/pc/time.h: New file.
54711 * kern/disk.c: Include <pupa/machine/time.h>.
54712 (PUPA_CACHE_TIMEOUT): New macro.
54713 (pupa_last_time): New variable.
54714 (pupa_disk_open): Flush the cache when there was a timeout.
54715 (pupa_disk_close): Reset the timer.
54716 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54717 pupa_currticks.
54718 * util/misc.c: Include <sys/times.h>
54719 (pupa_get_rtc): New function.
54720
c4adbd32 547212003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54722
54723 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54724 as blocks.
54725 (pupa_ext2_get_file_block): Use blocks member.
54726
54727 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54728 first block. Return -1 instead of pupa_errno on error.
54729
bfd30f06 547302003-10-27 Marco Gerards <metgerards@student.han.nl>
54731
54732 * README: In the pupa-mkimage example use _chain instead of chain
54733 and ext2 instead of fat.
54734 * TODO: Replace ext2fs with jfs as an example. Add an item for
54735 adding journal playback for ext2fs.
54736 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54737 (pkgdata_MODULES): Added ext2.mod.
54738 (ext2_mod_SOURCES): New variable.
54739 (ext2_mod_CFLAGS): Likewise.
54740 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54741 * include/pupa/misc.h (pupa_strncpy): New prototype.
54742 (pupa_strcat): Likewise.
54743 (pupa_strncmp): Likewise.
54744 * kern/misc.c (pupa_strcat): Enable function.
54745 (pupa_strncpy): New function.
54746 (pupa_strncmp): Likewise.
54747 * fs/ext2.c: New file.
f19dbdb7 54748
bfd30f06 54749 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54750 when the read failed before retrying.
54751 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54752 (_FILE_OFFSET_BITS): Likewise.
54753 * configure.ac: Added AC_SYS_LARGEFILE.
54754
98d15063 547552003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54756
54757 * genmk.rb (PModule#rule): Make sure to get only symbol names
54758 from the output of nm.
59cad637 54759 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 54760
18d9c7cd 547612003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54762
54763 I forgot to check in these changes for a long time. This adds
54764 incomplete support for VGA console, and this is still very
54765 buggy. Also, a lot of consideration is required for I18N,
54766 UNICODE, and VGA font issues. Therefore, assume that this is
54767 such that "better than nothing".
f19dbdb7 54768
18d9c7cd 54769 * font/manager.c: New file.
54770 * include/pupa/font.h: Likewise.
54771 * include/pupa/i386/pc/vga.h: Likewise.
54772 * term/i386/pc/vga.c: Likewise.
54773 * util/unifont2pff.rb: Likewise.
54774
54775 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54776 (pkgdata_MODULES): Added vga.mod and font.mod.
54777 (vga_mod_SOURCES): New variables.
54778 (vga_mod_CFLAGS): Likewise.
54779 (font_mod_SOURCES): Likewise.
54780 (font_mod_CFLAGS): Likewise.
54781
54782 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54783
54784 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 54785 (struct pupa_term): Added init and fini.
18d9c7cd 54786 Changed the argument of putchar to pupa_uint32_t.
54787
54788 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54789 (pupa_console_real_putchar): New prototype.
54790 (pupa_console_putchar): Removed.
54791 (pupa_console_checkkey): Exported.
54792 (pupa_console_getkey): Likewise.
54793
54794 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54795 characters.
54796
54797 * kern/term.c (pupa_term_set_current): Rewritten.
54798 (pupa_putchar): Likewise.
54799 (pupa_putcode): New function.
54800
54801 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54802 (pupa_console_real_putchar): ... this.
54803 (pupa_vga_set_mode): New function.
54804 (pupa_vga_get_font): Likewise.
54805
54806 * normal/command.c: Include pupa/term.h.
54807 (terminal_command): New function.
54808 (pupa_command_init): Register the command "terminal".
54809
54810 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54811 (DISP_UP): Likewise.
54812 (DISP_RIGHT): Likewise.
54813 (DISP_DOWN): Likewise.
54814 (DISP_HLINE): Likewise.
54815 (DISP_VLINE): Likewise.
54816 (DISP_UL): Likewise.
54817 (DISP_UR): Likewise.
54818 (DISP_LL): Likewise.
54819 (DISP_LR): Likewise.
54820
54821 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 54822
977329f5 548232003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54824
54825 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54826 FIX. Reverse the path_list.
54827
54828 * include/pupa/normal.h: Export pupa_register_command and
54829 pupa_unregister_command.
54830
54831 * hello/hello.c (pupa_cmd_hello): New module.
54832 * conf/i386-pc.rmk: Added hello.mod.
54833
1f5ab428 548342003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54835
54836 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 54837
1f5ab428 54838 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54839 (compress_kernel): New variable.
54840 (generate_image): Heavily modified to support compressing a
54841 large part of the core image.
54842
54843 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54844 leak.
54845 (pupa_util_load_image): New function.
54846
54847 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54848 (pupa_compressed_size): New variable.
54849 (codestart): Enable Gate A20 here.
54850 Decompress the compressed part of the core image.
54851 Rearrange the code to put functions and variables which are
54852 required for initialization in the non-compressed part.
54853 Include lzo1x.S.
54854
54855 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54856 here.
54857
54858 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54859
f19dbdb7 54860 * include/pupa/i386/pc/kernel.h
1f5ab428 54861 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54862 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54863 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54864 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54865 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54866
54867 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54868
54869 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54870 (Utility#rule): Likewise.
54871
54872 * configure.ac: Check if LZO is available.
54873
ce5bf700 548742003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54875
54876 * include/pupa/normal.h: New file.
54877 * include/pupa/setjmp.h: Likewise.
54878 * include/pupa/i386/setjmp.h: Likewise.
54879 * normal/cmdline.c: Likewise.
54880 * normal/command.c: Likewise.
54881 * normal/main.c: Likewise.
54882 * normal/menu.c: Likewise.
54883 * normal/i386/setjmp.S: Likewise.
f19dbdb7 54884
ce5bf700 54885 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54886 (pupa_rescue_cmd_initrd): Likewise.
54887
54888 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54889 Likewise.
54890
54891 * kern/i386/pc/startup.S (translation_table): New variable.
54892 (translate_keycode): New function.
54893 (pupa_console_getkey): Call translate_keycode.
54894
54895 * kern/rescue.c (attempt_normal_mode): New function.
54896 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54897 it failed, print a message.
54898
54899 * kern/mm.c (pupa_real_malloc): Print more information when a
54900 free magic is broken.
54901 (pupa_free): If the first free header is not free actually, set
54902 it to P.
54903
54904 * kern/main.c (pupa_load_normal_mode): Just load the module
54905 "normal".
54906 (pupa_main): Don't print the message
54907 "Entering into rescue mode..." here.
54908
54909 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54910 Declared.
54911 (pupa_rescue_cmd_initrd): Likewise.
54912 (pupa_rescue_cmd_initrd): Likewise.
54913
54914 * include/pupa/symbol.h (FUNCTION): Specify the type.
54915 (VARIABLE): Likewise.
54916
54917 * include/pupa/err.h (pupa_err_t): Added
54918 PUPA_ERR_UNKNOWN_COMMAND.
54919
54920 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54921 (pupa_dl_get_prefix): Likewise.
54922
54923 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54924 Added _chain.mod and _linux.mod instead of chain.mod and
54925 linux.mod.
54926 (chain_mod_SOURCES): Renamed to ...
54927 (_chain_mod_SOURCES): ... this.
54928 (chain_mod_CFLAGS): Renamed to ...
54929 (_chain_mod_CFLAGS): ... this.
54930 (linux_mod_SOURCES): Renamed to ...
54931 (_linux_mod_SOURCES): ... this.
54932 (linux_mod_CFLAGS): Renamed to ...
54933 (_linux_mod_CFLAGS): ... this.
54934 (normal_mod_SOURCES): New variable.
54935 (normal_mod_CFLAGS): Likewise.
54936 (normal_mod_ASFLAGS): Likewise.
54937
549382003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54939
54940 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54941 possible.
54942
fe6b695a 54943 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 54944 recursively.
54945 (pupa_dl_unref): Unrefer depending modules recursively.
54946 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54947 a module is unloaded before one depending on that module is
54948 unloaded.
54949 (pupa_dl_unload): Unload depending modules explicitly,
54950 if possible.
54951
c04da074 549522003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54953
54954 * include/pupa/i386/pc/linux.h: New file.
54955 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 54956
c04da074 54957 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54958 Removed.
54959 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54960 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54961 of PUPA_CHAINLOADER_BOOT_SECTOR.
54962
54963 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54964 (pupa_linux_prot_size): New variable.
54965 (pupa_linux_tmp_addr): Likewise.
54966 (pupa_linux_real_addr): Likewise.
54967 (pupa_linux_boot_zimage): New function.
54968 (pupa_linux_boot_bzimage): Likewise.
54969
54970 * kern/i386/pc/init.c (struct mem_region): New structure.
54971 (MAX_REGIONS): New macro.
54972 (mem_regions): New variable.
54973 (num_regions): Likewise.
54974 (pupa_os_area_addr): Likewise.
54975 (pupa_os_area_size): Likewise.
54976 (pupa_lower_mem): Likewise.
54977 (pupa_upper_mem): Likewise.
54978 (add_mem_region): New function.
54979 (compact_mem_regions): Likewise.
54980 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54981 the size of the conventional memory and that of so-called upper
54982 memory (before the first memory hole).
54983 Instead of adding each found region to free memory, use
54984 add_mem_region and add them after removing overlaps.
54985 Also, add only 1/4 of the upper memory to free memory. The rest
54986 is used for loading OS images. Maybe this is ad hoc, but this
54987 makes it much easier to relocate OS images when booting.
54988
54989 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54990 (pupa_enter_rescue_mode): Don't register initrd and module.
54991
54992 * kern/mm.c: Include pupa/dl.h.
54993
54994 * kern/main.c: Include pupa/file.h and pupa/device.h.
54995
54996 * kern/loader.c (pupa_loader_load_module_func): Removed.
54997 (pupa_loader_load_module): Likewise.
54998
54999 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55000 ``.o''.
55001
55002 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55003 (pupa_linux_tmp_addr): Likewise.
55004 (pupa_linux_real_addr): Likewise.
55005 (pupa_linux_boot_zimage): Likewise.
55006 (pupa_linux_boot_bzimage): Likewise.
55007
55008 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55009 (pupa_upper_mem): Likewise.
55010 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55011 module is too dangerous.
55012
55013 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55014 (pupa_os_area_size): Likewise.
55015 (pupa_loader_set): Remove the first argument. Loader doesn't
55016 manage modules or initrd any longer.
55017 (pupa_loader_load_module): Removed.
55018
55019 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55020 (linux_mod_SOURCES): New variable.
55021 (linux_mod_CFLAGS): Likewise.
55022
a13f9237 550232003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55024
55025 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55026 the length of a blocklist correctly.
55027
55028 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55029 Use ioctl only if the OS file is a block device.
55030 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55031 not very useful for normal files.
55032
55033 * kern/main.c (pupa_set_root_dev): New function.
55034 (pupa_load_normal_mode): Likewise.
55035 (pupa_main): Call those above.
55036
55037 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55038 pupa_uint16_t.
55039
55040 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55041
a5ffe966 550422003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55043
55044 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55045 (setup): Configure the installed partition information and the
55046 dl prefix.
55047
55048 * loader/i386/pc/chainloader.c (my_mod): New variable.
55049 (pupa_chainloader_unload): New function.
55050 (pupa_rescue_cmd_chainloader): Refer itself.
55051 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55052
55053 * kern/i386/pc/startup.S (install_partition): Removed.
55054 (version_string): Likewise.
55055 (config_file): Likewise.
55056 (pupa_install_dos_part): New variable.
55057 (pupa_install_bsd_part): Likewise.
55058 (pupa_prefix): Likewise.
55059 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55060
55061 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55062 and pupa/misc.h.
55063 (make_install_device): New function.
55064 (pupa_machine_init): Set the dl prefix.
55065
55066 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55067 (buf): Renamed to ...
55068 (linebuf): ... this.
55069 (pupa_rescue_cmd_prefix): New function.
55070 (pupa_rescue_cmd_insmod): Likewise.
55071 (pupa_rescue_cmd_rmmod): Likewise.
55072 (pupa_rescue_cmd_lsmod): Likewise.
55073 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55074 rmmod and lsmod.
55075
55076 * kern/mm.c (pupa_memalign): If failed even after invalidating
55077 disk caches, unload unneeded modules and retry.
55078
55079 * kern/misc.c (pupa_memmove): New function.
55080 (pupa_memcpy): Removed.
55081 (pupa_strcpy): New function.
55082 (pupa_itoa): Made static.
55083
55084 * kern/dl.c (pupa_dl_iterate): New function.
55085 (pupa_dl_ref): Likewise.
55086 (pupa_dl_unref): Likewise.
55087 (pupa_dl_unload): Return if succeeded or not.
55088 (pupa_dl_unload_unneeded): New function.
55089 (pupa_dl_unload_all): Likewise.
55090 (pupa_dl_init): Renamed to ...
55091 (pupa_dl_set_prefix): ... this.
55092 (pupa_dl_get_prefix): New function.
55093
55094 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55095 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55096 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55097 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55098 (pupa_install_dos_part): Declared.
55099 (pupa_install_bsd_part): Likewise.
55100 (pupa_prefix): Likewise.
55101 (pupa_boot_drive): Likewise.
55102
55103 * include/pupa/types.h: Fix a typo.
55104
55105 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55106 pupa_memmove.
55107 (pupa_memmove): Declared.
55108 (pupa_strcpy): Likewise.
55109
55110 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55111 pupa_mod_init takes one argument, its own module.
55112 (pupa_dl_unload_unneeded): Declared.
55113 (pupa_dl_unload_all): Likewise.
55114 (pupa_dl_ref): Likewise.
55115 (pupa_dl_unref): Likewise.
55116 (pupa_dl_iterate): Likewise.
55117 (pupa_dl_init): Renamed to ...
55118 (pupa_dl_set_prefix): ... this.
55119 (pupa_dl_get_prefix): Declared.
55120
55121 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 55122 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 55123 unloaded.
55124 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55125 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55126
55127 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55128 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55129
012d7999 551302003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55131
55132 * util/i386/pc/pupa-setup.c (setup): Define the internal
55133 function find_first_partition_start at the top level, because GCC
55134 3.0.x cannot compile internal functions in deeper scopes
55135 correctly.
55136 (find_root_device): Use lstat instead of stat.
55137 Don't follow symbolic links.
55138 Fix the path-constructing code.
55139
55140 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55141 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55142 by a BLKGETSIZE ioctl first, because block devices don't fill
55143 the member st_mode of the structure stat on Linux.
55144 [__linux__] (linux_find_partition): Use a temporary buffer
55145 REAL_DEV for the working space. Copy it to DEV before returning.
55146 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55147 buffer cache consistent.
55148 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55149 strncmp. The previous value was merely wrong.
55150 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55151
55152 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55153 FAT size is 12. The previous value was merely wrong.
55154
55155 * kern/main.c (pupa_main): Don't split the starting message from
55156 newlines.
55157
55158 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55159 LF, because BIOS goes crazy about character attributes in this
55160 case.
55161
1cc73a62 551622003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55163
55164 * include/i386/pc/util/biosdisk.h: New file.
55165 * util/i386/pc/biosdisk.c: Likewise.
55166 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 55167
1cc73a62 55168 * Makefile.in (INCLUDE_DISTFILES): Added
55169 include/pupa/i386/pc/util/biosdisk.h.
55170 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55171 directory util/i386/pc.
55172 (install-local): Added a rule for sbin_UTILITIES.
55173 (uninstall): Likewise.
55174
55175 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55176
55177 * util/misc.c (xrealloc): New function.
55178 (pupa_malloc): Likewise.
55179 (pupa_free): Likewise.
55180 (pupa_realloc): Likewise.
55181 (pupa_stop): Likewise.
55182 (pupa_putchar): Likewise.
55183
55184 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55185
55186 * include/pupa/util/misc.h (xrealloc): Declared.
55187
55188 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55189 macro.
55190 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55191 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55192
55193 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55194 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55195
55196 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55197 way should be implemented.
55198 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55199
55200 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55201 the size of NAME for safety.
55202 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55203 0x88.
55204
55205 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55206 (pupa_setup_SOURCES): Likewise.
55207
55208 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55209
08b70fe8 552102002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55211
55212 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55213 bunch of pushl's from pusha, because this destroys the return
55214 value.
55215
62ddcc8f 552162002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55217
55218 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55219 This means that any missing prototypes could be fatal. Also, you
55220 must take care when writing assembly code. See the comments at
55221 the beginning of startup.S, for more details.
f19dbdb7 55222
62ddcc8f 55223 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55224 compilation mechanism.
55225 (pupa_chainloader_real_boot): Likewise.
55226 (pupa_biosdisk_rw_int13_extensions): Likewise.
55227 (pupa_biosdisk_rw_standard): Likewise.
55228 (pupa_biosdisk_check_int13_extensions): Likewise.
55229 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55230 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55231 (pupa_get_memsize): Likewise.
55232 (pupa_get_mmap_entry): Likewise.
55233 (pupa_console_putchar): Likewise.
55234 (pupa_console_setcursor): Likewise.
55235 (pupa_getrtsecs): Use pushl instead of push.
55236
55237 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55238 memory instead of the stack for a mmap entry, because some
55239 BIOSes may ignore the maximum size and overflow.
55240
55241 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55242
55243 * genmk.rb (PModule#rule): Compile automatically generated
55244 sources with module-specific CFLAGS as well as other sources.
55245
9962ed99 552462002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55247
55248 * configure.ac: Check ld.
55249 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55250 respectively, before checking endianness and sizes.
55251
55252 * Makefile.in (LD): New variable.
f19dbdb7 55253
abdfc3c5 552542002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55255
55256 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55257
6a161fa9 552582002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55259
55260 * Changelog: New file.
55261