]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* grub-core/fs/zfs.c: Avoid divisions by zero.
[grub2.git] / ChangeLog
CommitLineData
475bffea
VS
12015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/fs/zfs.c: Avoid divisions by zero.
4
9deb46e3
VS
52015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6
7 * grub-core/fs/btrfs.c: Avoid divisions by zero.
8
065ed900
VS
92015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10
11 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Check that hash len is not 0.
12
111ab3b9
VS
132015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14
15 * grub-core/osdep/linux/blocklist.c (grub_install_get_blocklist): Check
16 blocksize validity.
17
4200ad44
VS
182015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19
20 * grub-core/disk/i386/pc/biosdisk.c: Check disk size sanity.
21
f1959b16
VS
222015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23
24 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Check block size
25 validity.
26
93586351
VS
272015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28
29 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Do not
30 divide by zero.
31
98f74998
VS
322015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
33
34 * grub-core/fs/hfs.c (grub_hfs_mount): Additional filesystem
35 sanity checks.
36
5ed3a5d0
VS
372015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
38
39 * grub-core/fs/minix.c: Additional filesystem
40 sanity checks.
41
47cd2645
VS
422015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * grub-core/fs/ext2.c (grub_ext2_mount): Additional
45 checks for superblock validity.
46
245e21b2
VS
472015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
48
49 * grub-core/fs/ufs.c (grub_ufs_mount): Check
50 that sblock.ino_per_group is not 0.
51
9201cd79
VS
522015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
53
54 Reject NILFS2 superblocks with over 1GiB blocks.
55
56 * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
57 block size is <= 1GiB.
58
f27ccb58
VS
592015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
60
61 * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
62 is sane when using CHS addressing.
63
1dfe3f97
VS
642015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
65
66 * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
67
44461d5a
VS
682015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
69
70 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
71 division by zero.
72
30e177a0
VS
732015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
74
75 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
76 potentially returning 0.
77
782015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
79
80 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
81 the end of file.
82
af435524
VS
832015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
84
85 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
86 past the end of file.
87
66ce4d1a
VS
882015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
89
90 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
91 synchronously with line.
92
59d40365
VS
932015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
94
95 Replace explicit sizeof divisions by ARRAY_SIZE.
96
ba3031f9
KM
972015-01-19 Kris Moore <kris@pcbsd.org>
98
99 * grub-core/disk/geli.c: Support GELI v6 and v7.
100
bac5d1a6
AB
1012014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
102
103 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
104 option processing.
105
17328db3
DK
1062014-12-07 David Kozub <zub.272@gmail.com>
107
108 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
109 in __aeabi_uidivmod
110 Fixes Savannah bug #43632.
111
58f66137
PN
1122014-12-07 Peter Nelson <peterdn>
113
114 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
115 chunks.
116
cdae5bf2
AB
1172014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
118
119 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
120 non-portable '-n' echo option.
121 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
122 non-portable 'echo -n.
123 * util/grub.d/10_linux.in: Likewise (closes 43668).
124 * util/grub.d/20_linux_xen.in: Likewise.
125 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
126 non-portable 'echo -n'.
127
06eadf5e
CL
1282014-12-07 Curtis Larsen <larsen@dixie.edu>
129
130 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
131 free when multiple empty segments were received (closes 42765).
132
4b94e322
AB
1332014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
134
135 * tests/util/grub-shell.in: Support --files also for netboot.
272e0466
AB
136 * tests/file_filter_test.in: New file with file filters tests.
137 * Makefile.util.def: Add file_filter_test.
138 * conf/Makefile.extra-dist: ... and here.
139 * tests/file_filter/file.gz: Test file for file_filter_test.
140 * tests/file_filter/file.gz.sig: Likewise.
141 * tests/file_filter/file.lzop: Likewise.
142 * tests/file_filter/file.lzop.sig: Likewise.
143 * tests/file_filter/file.xz: Likewise.
144 * tests/file_filter/file.xz.sig: Likewise.
145 * tests/file_filter/keys: Likewise.
146 * tests/file_filter/keys.pub: Likewise.
147 * tests/file_filter/test.cfg: Likewise.
ebb3d958
AB
148 * grub-core/commands/verify.c: Fix memory corruption doing
149 signature check for network files (closes 43601).
4b94e322 150
03d79a87
AB
1512014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
152
3173c750
AB
153 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
154 memory leak (CID 73645, 73782).
03d79a87
AB
155 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
156 (CID 73635).
157
dbbac5a0
AB
1582014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
159
160 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
161 inline array (CID 73610).
162
478b5675
AB
1632014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
164
343dad41 165 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
f07784e8
AB
166 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
167 (Coverity CID 73813, 73710)
ea44693f
AB
168 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
169 and use after free (Coverity CID 73813, 73710, 73730)
170 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
171 CID 73854)
0415dbe2
AB
172 * util/grub-install-common.c (grub_install_get_target): Check return
173 value of grub_util_fd_read (Coverity CID 73819).
478b5675
AB
174 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
175 to hd.magic (Coverity CID 73587, 73888, bug 43690).
176
e2dd6daa
AB
1772014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
178
179 * tests/util/grub-fs-tester.in: Consistently print output
180 of grub ls if test fails.
181
2ccaa3b9 1822014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
004a2b1e
LL
183
184 * grub-core/kern/efi/init.c: check value of *path before
185 dereferencing.
186
72ec399a
MC
1872014-11-03 Michael Chang <mchang@suse.com>
188
189 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
190 of neighbor solicitation packet in grub_netbuff_pull.
191
9a67e1ac
AB
1922014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
193
194 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
195 avoid fatal warnings with older gcc (probably before 4.7).
196 * grub-core/loader/arm64/linux.c: Likewise.
197 * grub-core/loader/i386/linux.c: Likewise.
198 * grub-core/loader/i386/pc/linux.c: Likewise.
199 * grub-core/loader/ia64/efi/linux.c: Likewise.
200 * grub-core/loader/mips/linux.c: Likewise.
201 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
202 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
203
77063f4c
CW
2042014-09-25 Colin Watson <cjwatson@ubuntu.com>
205
206 Fix in-tree --platform=none
207
208 * configure.ac: Only remove include/grub/cpu and
209 include/grub/machine in the --platform=none case, not all of
210 include/grub.
211
5d90f6e5
CW
2122014-09-23 Colin Watson <cjwatson@ubuntu.com>
213
214 Add a new "none" platform that only builds utilities
215
216 * configure.ac: Add "none" platform. Default to it for unsupported
217 CPUs rather than stopping with a fatal error. Don't downgrade
218 x86_64-none to i386. Define COND_real_platform Automake conditional
219 if the platform is anything other than "none". Don't do any include
220 directory linking for "none".
221 * Makefile.am: Skip building grub-core and all bootcheck targets if
222 !COND_real_platform.
223 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
224 is defined.
225
954fe771
AB
2262014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
227
228 Use grub_cpu_to_XXX_compile_time for constants.
229
0f1f95c7
VD
2302014-09-21 Valentin Dornauer <valentin@unimplemented.org>
231
232 The AML parser implements only a small subset of possible AML
233 opcodes. On the Fujitsu Lifebook E744 this and another bug in
234 the parser (incorrect handling of TermArg data types) would lead
235 to the laptop not turning off (_S5 not found).
236
237 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
238 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
239 aren't always simply strings!); Add function to skip TermArgs
240 * include/grub/acpi.h: Add new opcodes
241
41c6f91f
VS
2422014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
243
244 * grub-core/normal/main.c: Don't drop to rescue console in
245 case of password-protected prompt and no menu entries.
246
7c378c39
VS
2472014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
248
249 * grub-core/commands/keylayouts.c: Ignore unknown keys.
250
2988a849
VS
2512014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * grub-core/gmodule.pl.in: Accept newer binutils which output
254 empty column rather than 0x0.
255
0aece00c
MC
2562014-09-21 Michael Chang <mchang@suse.com>
257
258 * grub-core/osdep/unix/config.c: Remove extraneous comma.
259
2602014-09-21 Peter Jones <pjones@redhat.com>
631a8200
PJ
261
262 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
263 we don't free a random pointer from the stack.
264 * grub-core/loader/arm64/linux.c: Likewise.
265 * grub-core/loader/i386/linux.c: Likewise.
266 * grub-core/loader/i386/pc/linux.c: Likewise.
267 * grub-core/loader/ia64/efi/linux.c: Likewise.
268 * grub-core/loader/mips/linux.c: Likewise.
269 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
270 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
271
60049a0e
CW
2722014-09-15 Khem Raj <raj.khem@gmail.com>
273
a276b840
KR
274 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
275 _BSD_SOURCE to avoid warnings under glibc 2.20+.
276
54bd9a06
MC
2772014-09-08 Michael Chang <mchang@suse.com>
278
279 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
280 check; comparing &data->extent against addresses in the region it
281 points to is unpredictable.
282
2a5a532c
CW
2832014-09-07 Colin Watson <cjwatson@ubuntu.com>
284
285 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
286
287 * configure.ac: Remove -m64 from checks for -mcmodel=large and
288 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
289 already in TARGET_CFLAGS at this point, and they produce incorrect
290 results when building for x32.
291 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
292 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
293 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
294 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
295
4d94b2db
CW
2962014-09-07 Colin Watson <cjwatson@ubuntu.com>
297
298 * configure.ac: Remove several unnecessary semicolons.
299
1de3a480
CW
3002014-08-25 Colin Watson <cjwatson@ubuntu.com>
301
302 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
303 Initialise pend to pacify GCC.
304
c291f47b
AB
3052014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
306
307 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
308 gettext_printf).
309
3c058332
VS
3102014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/term/at_keyboard.c: Retry probing keyboard if
313 scancode setup failed.
314
d1224d20
VS
3152014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
316
317 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
318
0af3ae2d
VS
3192014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
320
321 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
322 safety to avoid triggerring VirtualBox bug.
323
33f6ce67
VS
3242014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
325
326 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
327
79c80b06
VS
328 Fixes hang on virtualbox.
329
0901e785
CW
3302014-07-08 Colin Watson <cjwatson@ubuntu.com>
331
332 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
333 kernels whose paths contain regex metacharacters.
334 * util/grub.d/10_kfreebsd.in: Likewise.
335 * util/grub.d/10_linux.in: Likewise.
336 * util/grub.d/20_linux_xen.in: Likewise.
337
338 Reported by: Heimo Stranner.
339
4250f552
CW
3402014-06-26 Colin Watson <cjwatson@ubuntu.com>
341
342 * docs/grub-dev.texi (Finding your way around): The build system no
343 longer uses AutoGen directly.
344
1f6af2a9
РП
3452014-06-21 Роман Пехов <roman_pekhov>
346
347 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
348
fa335308
GW
3492014-06-21 Glenn Washburn <development@efficientek.com>
350
351 * util/grub-install.c: Fix handling of --disk-module.
352
15bd333e
SR
3532014-06-21 Stephane Rochoy <sheda>
354
355 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
356 EFI system table.
357
3f3ec8ef
SR
3582014-06-21 Stephane Rochoy <sheda>
359
360 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
361 EFI system table physical address.
362
87de66d9
TW
3632014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
364
365 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
366
2c2c5c72
VS
3672014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
368
369 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
370
480c8985
VS
3712014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
372
373 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
374 check.
375
4b8b9135
VS
3762014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
377
378 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
379
380 Reported by: Yves Blusseau <blusseau@zetam.org>.
381
5a6db38d
PK
3822014-04-20 Piotr Krysiuk <piotras@gmail.com>
383
384 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
385 GDT in conventional memory.
386
3a310e84
CW
3872014-04-10 Colin Watson <cjwatson@ubuntu.com>
388
389 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
390 UUID. Other parts of grub-mkconfig tolerate these, they were
391 previously allowed here up to commit
392 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
393 practice when the system has active LVM snapshots.
394 Fixes Ubuntu bug #1287436.
395
c4badfe8
CW
3962014-04-10 Colin Watson <cjwatson@ubuntu.com>
397
398 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
399 "logical_volumes" block a little more accurately.
400
a72fc329
VS
4012014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
402
403 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
404
6f6d4aa0
VS
4052014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
406
407 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
408 pulled from libgcc.
409
8063ce19
VS
4102014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
411
412 Replace few instances of memcmp/memcpy in the code that should be
413 grub_memcmp/grub_memcpy.
414
97060667
VS
4152014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
418 device names.
419
4afd0107
TF
4202014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
421
422 btrfs: fix get_root key comparison failures due to endianness
423
424 * grub-core/fs/btrfs.c (get_root): Convert
425 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
426
24024dac
CW
4272014-03-31 Colin Watson <cjwatson@ubuntu.com>
428
429 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
430
431 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
432 no longer to be forgiving of trailing spaces on grub-probe output
433 lines, which among other things means that util/grub.d/10_linux.in
434 no longer detects LVM. To fix this, make grub-probe's output
435 delimiting more consistent. As a bonus, this improves the coverage
436 of the -0 option.
437
438 Fixes Debian bug #735935.
439
440 * grub-core/disk/cryptodisk.c
441 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
442 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
443 Likewise.
444 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
445 Update prototype.
446 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
447 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
448 probe_mods): Adjust for extra user-data arguments.
449 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
450 probe_abstraction): Use configured delimiter. Update callers.
451
9b35fe81
CW
4522014-03-31 Colin Watson <cjwatson@ubuntu.com>
453
454 * util/grub-probe,c (options): Make -0 work again (broken by
455 conversion to argp).
456 (main): Simplify logic.
457
46b74dd3
VS
4582014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
459
460 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
461
68f17b2b
FW
4622014-03-26 Fu Wei <fu.wei@linaro.org>
463
464 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
465
86402b4e
VS
4662014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
467
468 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
469 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
470
471 Suggested by: Markus Müller.
472
bec35dad
VS
4732014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
474
475 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
476 if E820 failed to return any regions.
477
dfc5ccfa
VS
4782014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
479
480 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
481 tables for low memory calculations.
482
4a70fed8
VS
4832014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
484
485 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
486 location to 640K.
487
f94b2b4e
VS
4882014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
489
490 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
491 region.
492
d0949e37
VS
4932014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
494
495 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
496 exclusively.
497
9585647a
PFS
4982014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
499
500 Add bootpath parser for open firmware.
501
502 It enables net boot even when there is no bootp/dhcp server.
503
504 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
505 and call it at grub_ieee1275_net_config_real.
506 * grub-core/kern/ieee1275/init.c: Add bootpath to
507 grub_ieee1275_net_config.
508 * include/grub/ieee1275/ieee1275.h: Likewise.
509
510
e4dbf247
PFS
5112014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
512
513 Add grub_env_set_net_property function.
514
515 * grub-core/net/bootp.c: Remove set_env_limn_ro.
516 * grub-core/net/net.c: Add grub_env_set_net_property.
517 * include/grub/net.h: Likewise.
518
006c78f3
VS
5192014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
520
521 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
522
511ece7c
VS
5232014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
524
525 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
526
9abbaae7
VS
5272014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
528
529 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
530 7 seconds to recover if last poweroff was bad.
531
d6b94c5e
VS
5322014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
533
534 * grub-core/disk/ahci.c: Properly handle transactions with no
535 transferred data.
536
07ea8daa
VS
5372014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
538
539 * grub-core/disk/ahci.c: Add safety cleanups.
540
3142b2fe
VS
5412014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
542
543 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
544 slots to avoid pointing to uninited area.
545
4686e163
VS
5462014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
547
548 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
549 enabling busmaster for the end.
550
ba424f37
VS
5512014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
552
553 * util/grub-mkfont.c: Downgrade warnings about unhandled features
554 to debug.
555
3beabdc8 5562014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7f64fb59
VS
557
558 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
559
ba584da1
PFS
5602014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
561
562 * .gitignore: add missing files and .exe variants.
563
35f2d96c
MG
5642014-01-26 Mike Gilbert <floppym@gentoo.org>
565
566 grub-install: support for partitioned partx loop devices.
567
568 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
569 /dev/loopX as being the parent of /dev/loopXpY.
570
9afe2053
VS
5712014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
572
573 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
574 Ensure that pointers are inited to NULL and that pointers are not
575 accessed after free.
5ae584c0
AB
576
5772014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
578
579 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
580 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
581 * include/grub/emu/misc.h: ... and here.
582 * include/grub/err.h: ... and here.
583 * util/import_gcry.py: ... and here (in files g10lib.h).
584
1440b7eb
AB
5852014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
586
587 * util/grub-mkimage.c: Make prefix argument mandatory.
588
61c8482b
VS
5892014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
590
591 Fix several translatable strings.
592
593 Suggested by: D. Prévot.
594
95cd131e
VS
5952014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
596
597 * util/grub-install.c: List available targets.
598
d0805930
CW
5992014-01-23 Colin Watson <cjwatson@ubuntu.com>
600
601 * util/grub-install.c (write_to_disk): Add an info message.
602
eec4237a
AB
6032014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
604
605 * Makefile.am: Allow adding extra files to generated Windows ZIP
606 archive by setting GRUB_WINDOWS_EXTRA_DIST.
607
36387ece
AB
6082014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
609
610 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
443b3222 611 Show detected font path in summary.
36387ece 612
6f65e36c
PFS
6132014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
614
615 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
616 interval gradually.
617 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
618 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
619 * grub-core/net/tftp.c (tftp_open): Likewise.
620 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
621
d99d2f84
PFS
6222014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
623
624 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
625 infinite loops.
626
627 In net/net.c there is a while (1) that only exits if there is a stop
628 condition and more then 10 packages or if there is no package received.
629
630 If GRUB is idle and enter in this loop, the only condition to leave is
631 if it doesn't have incoming packages. In a network with heavy traffic
632 this never happens.
633
049f6382
CW
6342014-01-19 Colin Watson <cjwatson@ubuntu.com>
635
636 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
637 EPERM when modifying kern.geom.debugflags. It is only a problem for
638 such things as installing GRUB to the MBR, in which case there'll be
639 an error later anyway, not for opening files during tests.
640
01504547
AB
6412014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
642
643 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
644 instead of MOD_FILES.
645 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
646 both with and without .exe.
647 * grub-core/genemuinitheader.sh: Same.
648
b204b718
VS
6492014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
650
651 * util/grub-install.c: Fix a typo.
652
41155a57
VS
6532014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
654
655 * grub-core/normal/main.c (read_config_file): Buffer config file.
656 Reduces boot time.
657
e0a85094
AB
6582014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
659
660 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
661 symbolic link to directory. It fails in Msys shell on Windows 2003.
662
0b47c57a
VS
6632014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
664
665 * Makefile.am (default_payload.elf): Add modules
666 multiboot cbmemc linux16 gzio echo help.
667
6682014-01-18 Mike Gilbert <floppym@gentoo.org>
6ba98355
MG
669
670 * Makefile.util.def: Link grub-ofpathname with zfs libs.
671
6c519b5c
VS
6722014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
673
674 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
675 conflicts.
676
677 Reported by: Andrey Borzenkov.
678
f371dd5d
AB
6792014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
680
681 * include/grub/misc.h: Move macros for compiler features to ...
682 * include/grub/compiler.h: ... new file.
683 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
684 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
685 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
686 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
687 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
688 * grub-core/video/capture.c: Include <grub/misc.h>.
689 * include/grub/command.h: Include <grub/misc.h>.
690 * include/grub/dl.h: Include <grub/misc.h>.
691 * include/grub/procfs.h: Include <grub/misc.h>.
692
1ecf96fc
AB
6932014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
694
695 * configure.ac: Add support for BUILD_EXEEXT and use it ...
696 * Makefile.am: ... here.
697 * Makefile.util.def: ... and here.
698 * grub-core/Makefile.am: ... and here.
699
5ef569df
AB
7002014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
701
702 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
703 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
704
3abb9563
VS
7052014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
706
707 * grub-core/term/terminfo.c: Recognize keys F1-F12.
708
9b9c4686 7092014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
dcecae1a
AB
710
711 * configure.ac: Add support for BUILD_LDFLAGS.
712 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
713 * grub-core/Makefile.am: ... and here.
714 * INSTALL: Mention BUILD_LDFLAGS.
715
ae80f312
VS
7162014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
717
718 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
719
7e7293d7
VS
7202014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
721
722 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
723 and has no //.
724
5acc8020
VS
7252014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
726
727 * NEWS: Add few missing entries.
728
ff66b8e7
CW
7292014-01-17 Colin Watson <cjwatson@ubuntu.com>
730
731 * util/grub.d/00_header.in (make_timeout): Use && rather than test
732 -a.
733 * util/grub.d/10_windows.in: Likewise.
734 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
735 than test -o.
736 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
737 rather than test -o.
738
7392014-01-17 Colin Watson <cjwatson@ubuntu.com>
09a836e5
CW
740
741 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
742 redundant preprocessor conditional.
743
ccd21a65
CW
7442014-01-08 Colin Watson <cjwatson@ubuntu.com>
745
746 * Makefile.util.def (grub-macbless): Change mansection to 8.
747
4d21c101
LL
7482014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
749
750 * grub-core/loader/arm64/linux.c: correctly set device path end length.
751
e7cfa8d5
AB
7522014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
753
754 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
755 arm64 to comply with EFI specification. Also use grubaa64.efi for
756 consistency.
757 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
758
94cee4a4
AB
7592014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
760
761 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
762 on MinGW-64 when compiling for 32 bits.
763
668add25
AB
7642013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
765
766 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
767
0e309454
VS
7682013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
769
770 * NEWS: Add few missing entries. Correct existing ones.
771
093dec73
VS
7722013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
773
774 Don't abort() on unavailable coreboot tables if not running on coreboot.
775
989af025
AB
7762013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
777
778 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
779 on mingw.
780
8442d3e9
CW
7812013-12-28 Colin Watson <cjwatson@ubuntu.com>
782
783 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
784 mention of it from 2.02.
785
645ff636 7862013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5bda44d7
VS
787
788 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
789
790 As these functions are used on pre-ARMv6 CPUs as well we don't want
791 to make assembler assume that architecture is higher than default one.
792
30a33846
CW
7932013-12-27 Colin Watson <cjwatson@ubuntu.com>
794
795 * NEWS: First draft of 2.02 entry.
796
51f941a0
CW
7972013-12-27 Colin Watson <cjwatson@ubuntu.com>
798
799 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
800 * docs/grub.texi (Getting the source code): Likewise.
801
a6e7719b
AB
8022013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
803
804 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
805 detection.
806
e8f07821
VS
8072013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
808
809 * configure.ac: Set version to 2.02~beta2.
810
dc3286ad
VS
8112013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
812
813 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
814
46f8d358
AB
8152013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
816
817 * util/grub-probe.c: Improve help message and simplify list handling.
818
09c47900
VS
8192013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
820
821 Fix buffer overflow in grub_efi_print_device_path.
822
4d6c6953
VS
8232013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
824
825 Show SATA device path.
826
faf4a65e
VS
8272013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
828
829 Revert grub-file usage in grub-mkconfig.
830
e5fa26e5
VS
8312013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
832
833 Make newly-created files other than grub.cfg world-readable.
834
569766e4
AB
8352013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
836
837 * util/grub.d/00_header.in: Improve compatibility with old config.
838
41272068
VS
8392013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
840
841 Make rijndael.c respect aliasing rules.
842
843 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
844
f7c7c4d4
VS
8452013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
846
847 Make grub_util_device_is_mapped_stat available in grub-emu core.
848
57bc5d43
VS
8492013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
850
851 Add -Qn to TARGET_CFLAGS if it's supported.
852 Fixes compilation on cygwin.
853
854 Reported by: Andrey Borzenkov.
855 Suggested by: Andrey Borzenkov.
856
6a7957f9
VS
8572013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
858
859 Save TARGET_CC version in modinfo.sh.
860
861 Suggested by: Andrey Borzenkov.
862
e88f0420
VS
8632013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
864
865 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
866 follow the same algorithm to avoid method mismatch. Don't assume
867 DMRAID- UUID to mean full disk but instead check that mapping is linear.
868
da986226
VS
8692013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
870
871 Declare GRUB_EFI_VENDOR_APPLE_GUID.
872
fba31b5f
VS
8732013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
874
875 Dump type and vendor specific data when printing device path.
876
3d369a01
CW
8772013-12-23 Colin Watson <cjwatson@debian.org>
878
879 Update some documentation to refer to Git rather than Bazaar.
880
881 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
882 than Bazaar.
883 * po/README: Likewise. Fix spelling mistake.
884
5b83ef97
CW
8852013-12-23 Colin Watson <cjwatson@ubuntu.com>
886
887 Don't distribute config.h.
888
889 * Makefile.am (platform_HEADERS): Move to ...
890 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
891 failure when building from a distributed tarball.
892
16f7455b
CW
8932013-12-23 Colin Watson <cjwatson@ubuntu.com>
894
895 * configure.ac: Fix spelling.
896 * grub-core/commands/parttool.c: Fix grammar.
897 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
898 Embedding Partition".
899
808e97c4
VS
9002013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
901
902 ARM64 support for grub-mkrescue.
903
e388db90
VS
9042013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
905
906 Install modinfo.sh to keep build information around.
907
cef39403
VS
9082013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
909
910 * grub-core/modinfo.sh.in: Add build config information.
911
a4d61002
VS
9122013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
913
914 ARM64 grub-file and grub-mkconfig support.
915
0c930a84
VS
9162013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
917
918 Remove leftover options defines.
919
74fa9ac1
VS
9202013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
921
922 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
923
62956fe7
VS
9242013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
925
926 * grub-core/loader/arm64/linux.c: Add missing bracket.
927
26063216
VS
9282013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
929
930 Add arm64-efi recognition to grub-file.
931
4cd0b55f
VS
9322013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
933
934 Fix ia64-efi recognition in grub-file.
935
95b56e3a
VS
9362013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
937
938 Recognize raspberry pi kernel in grub-file.
939
bbc52c22
VS
9402013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
941
942 Enable cache on ARM U-Boot port.
943
944 Without it the port is reidiculously slow.
945
943981ff
VS
9462013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
947
948 Fix ARM cache maintainance.
949
950 More code was converted from ASM to C for easier handling.
951
adabfb54
VS
9522013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
953
954 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
955 algorithm on v5.
956
957 Suggested by: Leif Lindholm.
958
77ec462a
AB
9592013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
960
961 * util/grub-mkconfig.in: Fix Xen platform conditions.
962
3bf2db89
AB
9632013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
964
965 * util/grub-mkrescue.c: Split single help message string in several
966 strings used in previous shell version.
967
30a9ab95
LL
9682013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
969
970 Add arm64 Linux loader.
971
c415eaa9
LL
9722013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
973
974 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
975
313fb3ce
VS
9762013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
977
978 Add module loading and parsing boot time checkpoints.
979
37f617c0
VS
9802013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
981
982 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
983 platforms.
984
3deedfc0
LW
9852013-12-22 Lars Wendler <polynomial-c@gentoo.org>
986
987 * util/grub-mkconfig.in: Skip non-executable files.
988
5ad9f728
VS
9892013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
990
991 Workaround buggy timer in raspberry pie by using our own timer
992 implementation.
993
eeb84997
VS
9942013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
995
996 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
997 Increase to 16 MiB to allow loading the whole memdisk.
998
0d8b81f8
VS
9992013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1000
1001 Fix ARM Linux Loader on non-FDT platforms.
1002
bf082198
VS
10032013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1004
1005 * configure.ac: Choose link format based on host_os on emu.
1006
0b602bf9
VS
10072013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1008
1009 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
1010
96650a82
VS
10112013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 * grub-core/kern/emu/main.c: Build fix for emu.
1014
ca3e2088
VS
10152013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1016
1017 Build fixes for argp.h with older gcc.
1018
27db1a9b
VS
10192013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1020
1021 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
1022 in strings.
1023
1024 Suggested by: David Prévot.
1025
8a913e66
VS
10262013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
1029
ae558c2c
VS
10302013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1031
1032 Enable -Wformat=2 if it's supported.
1033
bbac6789
VS
10342013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1035
1036 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
1037 -Wmissing-declarations if supported.
1038
ab216512
VS
10392013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1040
1041 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
1042 u32 as both HFS and HFS+ have 32-bit inodes.
1043
0d4aa91d
VS
10442013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1045
1046 * include/grub/misc.h (grub_strtol): Fix overflow.
1047
a997af68
VS
10482013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
1051 as return type in both conditionals.
1052
36bcaf29
VS
10532013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1054
1055 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
1056 to use uint8_t for color.
1057
74763e96
VS
10582013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 * util/misc.c (grub_util_get_image_size): Check for overflow.
1061
80b29fc9
VS
10622013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1065 for size.
1066
6e327fcd
VS
10672013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1070 for pointer difference.
1071
62ce03cf
VS
10722013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 * util/import_gcry.py: Skip sample keys.
1075
f4d70fd0
VS
10762013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1077
1078 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1079
93bf55e6
VS
10802013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * configure.ac: Remove duplicate warning arguments.
1083
579ee114
VS
10842013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1085
1086 Add missing static qualifiers.
1087
ee5283d6
VS
10882013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1089
1090 Add missing includes.
1091
5dbde526
VS
10922013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 Inline printf templates when possible to enable format checking.
1095
d88ae4f0
VS
10962013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 * include/grub/crypto.h: Don't discard const attribute.
1099
17b43559
VS
11002013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1103 was intended.
1104
76a2a430
VS
11052013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 * grub-core/lib/crypto.c: Don't discard const attribute.
1108
0d26164e
VS
11092013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 * grub-core/lib/disk.c: Fix potential overflow.
1112
2622b1e8
VS
11132013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 * grub-core/lib/arg.c: Don't discard const attribute.
1116
05126706
VS
11172013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 * grub-core/kern/dl.c: Don't discard const attribute.
1120
2f9c4804
VS
11212013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * grub-core/kern/disk.c: Fix potential overflow.
1124
0438ebf1
VS
11252013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1126
1127 * conf/Makefile.common: Don't include non-existing directory
1128 grub-core/lib/libgcrypt-grub/include.
1129
065adc34
VS
11302013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 Clarify several translatable messages.
1133
496a6b30
DP
11342013-12-21 David Prévot <david@tilapin.org>
1135
1136 Correct some translatable strings.
1137
971038be
CW
11382013-12-21 Colin Watson <cjwatson@ubuntu.com>
1139
1140 * util/grub-mkrescue.c: Rephrase mkrescue description.
1141
bfdfeb25
VS
11422013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
11432013-12-21 Colin Watson <cjwatson@ubuntu.com>
1144
1145 Clarify several translatable messages.
1146
d642d761
CW
11472013-12-20 Colin Watson <cjwatson@ubuntu.com>
1148
1149 Be more verbose about some configure failures.
1150
3bc1b2da
CW
11512013-12-20 Colin Watson <cjwatson@ubuntu.com>
1152
1153 Fix various build problems on GNU/Hurd.
1154
1155 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1156 !defined (__GNU__).
1157 (xgetcwd): Likewise.
1158 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1159 [__GNU__]: Add prototype.
1160 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1161 long int using %ld rather than %d.
1162
871aa709
VS
11632013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1164
1165 * util/grub-install.c: Inform user about install platform.
1166
2fa5a58c
VS
11672013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1168
1169 * configure.ac: Set version to 2.02~beta1.
1170
ee281fd0
AP
11712013-12-18 Allen Pais <allen.pais@oracle.com>
11722013-12-18 Bob Picco <bob.picco@oracle.com>
1173
1174 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1175
2e238b37
VS
11762013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 Make grub_zlib_decompress handle incomplete chunks.
1179
1180 Fixes squash4.
1181
2984035e
VS
11822013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1185 on i386-multiboot.
1186
b9f03772
AN
11872013-12-18 Aleš Nesrsta <starous@volny.cz>
1188
1189 * grub-core/disk/usbms.c: Retry on unknown errors.
1190 Reuse the same tag on retries.
1191
e3ef0d30
AN
11922013-12-18 Aleš Nesrsta <starous@volny.cz>
1193
1194 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1195
1196 Avoid confusing them with already completed transfers.
1197
72c9a507
VS
11982013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 Remove xen VFB.
1201
1202 Due to XEN bug it prevents Linux boot. Remove it at least, until
1203 workaround is found.
1204
84455670
VS
12052013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1206
1207 * po/exclude.pot: Add 2 missing excludes.
1208
64dd5fdc
VS
12092013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1210
1211 Add missing license section in macbless.mod and macho.mod.
1212
a29f317a
VS
12132013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 Allow compilation without thumb-interwork as long as no thumb is
1216 involved or only thumb2 is used.
1217
113f7869
VS
12182013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1219
1220 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1221
eba2afed
VS
12222013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 Add __attribute__ ((sysv_abi)) only if it's really needed.
1225
1226 Some compilers don't support it.
1227
1962ed95
VS
12282013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1229
1230 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1231
c2be6f7e
VS
12322013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1233
1234 Remove -Wold-style-definition.
1235
1236 Not very useful and interaction of it with regexp depends on GCC
1237 version.
1238
7a7f5238
VS
12392013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1240
1241 Make grub_util_get_windows_path_real static.
1242
9246d5c8
VS
12432013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1244
1245 * grub-core/commands/fileXX.c: Silence cast-align.
1246 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1247
b3aea1bc
VS
12482013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1249
1250 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1251 rather than LL suffix.
1252
bc8dd119
VS
12532013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1254
e8c360ca
VS
1255 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1256
12572013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1258
1259 * grub-core/loader/arm/linux.c: Use common initrd functions.
bc8dd119 1260
57a691b7
VS
12612013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 Decrease number of strings to translate.
1264
74fa9417
VS
12652013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1268
636977b0
VS
12692013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1270
1271 Mark strings for translation and add remaining ones to exclude list.
1272
ee4450eb
VS
12732013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * util/grub-file.c (main): Fix sizeof usage.
1276
12772013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
a43b3e5d
VS
1278
1279 Silence spurious warning.
1280
ee4450eb 12812013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
81294aff
VS
1282
1283 Remove check_nt_hiberfil as it's been superseeded by file command.
1284
a99c0a32
VS
12852013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1286
1287 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1288
8f5add13
VS
12892013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1290
1291 Implement syslinux parser.
1292
8ff35d0a
VS
12932013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1296
ba144760
VS
12972013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 Support cpuid --pae.
1300
daaa89db
VS
13012013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1302
1303 Use AT keyboard on Yeeloong 3A.
1304
25a7863d
VS
13052013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1306
1307 Add Yeeloong 3A reboot and halt.
1308
184c61dd
VS
13092013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1310
1311 Add Radeon Yeeloong 3A support.
1312
fd4650a5
VS
13132013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 Add bonito 3A support.
1316
3e88fbfa
VS
13172013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1318
1319 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1320
1123bed9
VS
13212013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1324
ebda165f
VS
13252013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 * grub-core/loader/macho.c: Fix compilation on non-i386.
1328
fe7c20bf
VS
13292013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 Add missing format_arg attribute to check that printf with translated
1332 messages has proper arguments.
1333
f4dab3d1
VS
13342013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 Use grub_xasprintf to format translated error messages containing
1337 64-bit quantity.
1338
24d5934d
JM
13392013-12-17 Jon McCune <jonmccune@google.com>
1340
1341 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1342
d6c2782a
VS
13432013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1344
1345 Unify message for unsupported relocation.
1346
50d2e959
VS
13472013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 Mark miscompile error for translation.
1350
18e76955
VS
13512013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 Use %I64 and not %ll when using OS printf if compiling for windows.
1354
d218ec97
VS
13552013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 Update Mac code to match new register_efi prototype.
1358
b8765fa0
VS
13592013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 Implement better integration with Mac firmware.
1362
1f032575
VS
13632013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1364
1365 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1366 load_addr.
1367
14829755
VS
13682013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 Include serial module in default_payload.elf.
1371
d45067a2
VS
13722013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 Add explicit thumb interwork bx in asm files.
1375
1376 Shouldn't matter for armv >= 5 but let's be safe.
1377
30861754
VS
13782013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1379
1380 Implement Truecrypt ISO loader.
1381
e14d409b
VS
13822013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1385
ec824e0f
VS
13862013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 Implement grub_file tool and use it to implement generating of config
1389 in separate root.
1390
296f7606
VS
13912013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 Change to v1 xen grants.
1394
2c384f1e
VS
13952013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1398
1399 GRUB relied on %ebx being preserved across hypercall which isn't true.
1400
d16ff589
VS
14012013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1404
1405 GRUB relied on %rdi being preserved across hypercall which isn't true.
1406
71669c3b
VS
14072013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 Implement XEN VFB support.
1410
60d1dd3d
VS
14112013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1412
1413 Remove grub_bios_interrupt on coreboot.
1414
1415 It's not used currently and cannot be used safely currently.
1416
a8201050
VS
14172013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 Update exclude.pot and mark few strings for translation.
1420
6cc89597
VS
14212013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1422
1423 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1424
1425 Reported by: Jon McCune
1426
840a2c05
AB
14272013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1428
1429 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1430 Add verbose information which firmware directories were tried.
1431
35248820
AB
14322013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1433
1434 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1435 function to optionally redirect all three standard descriptors.
1436 Redefine grub_util_exec, grub_util_exec_redirect and
1437 grub_util_exec_redirect_null to use it.
1438 * include/grub/emu/exec.h: Define it.
1439 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1440 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1441 Use grub_util_exec_redirect_all to redirect error to NULL.
1442
2a123f4c
VS
14432013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 * grub-core/tests/sleep_test.c: Silence spurious warning.
1446
316c8d9a
VS
14472013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1448
1449 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1450 linker trying to "fixup" the code.
1451
8fcce8d5
VS
14522013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1453
1454 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1455
6f1f6a0c
VS
14562013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1457
1458 Add support for converting PE+ to Elf64.
1459
66a07ce2
VS
14602013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1461
1462 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1463
cc6fb517
VS
14642013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1465
1466 Remove practice of assigning random const pointers to device id.
1467
1468 This is not required as cache code already checks driver id as well.
1469
f009f07c
VS
14702013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1471
1472 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1473 with mingw.
1474
9fdec226
VS
14752013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1476
1477 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1478 mingw or cygwin as API already matches.
1479
d87cb3ae
VS
14802013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1483
3e38c31a
VS
14842013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1485
1486 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1487 not on long.
1488
f4171ebd
VS
14892013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 Handle X86_64_PC64 relocation.
1492
1493 Those are generated by some cygwin compilers.
1494
252a289c
VS
14952013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1496
1497 Determine the need for mingw-related stubs at compile time rather than
1498 using not very significant $target_os.
1499
23d2abc3
VS
15002013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1501
1502 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1503 may not work with ELF.
1504
4f979ccb
VS
15052013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1506
1507 Use unix functions for temporary files and special files on cygwin.
1508
37378f74
VS
15092013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 Define functions explicitly rather than using --defsym in tests
1512 whenever possible. Respect locality in remaining cases.
1513
6a09d83e
VS
15142013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1515
1516 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1517
e477187b
AB
15182013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1519
1520 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1521 unlikely errors when getting EFI variables and make exhaustive search
1522 for all BootNNNN variables to find matching one.
1523
80b865bd
IC
15242013-12-15 Ian Campbell <ijc@hellion.org.uk>
1525
1526 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1527
04b02857
VS
15282013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1529
1530 New functional test for sleep function.
1531
1532 This test allows to check sleep without qemu. Keep qemu version as
1533 well as functional test won't notice if all clocks are going too fast
1534 or too slow.
1535
39711101
VS
15362013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1537
1538 Add explicit sysv_abi on amd64 asm routines.
1539
d99af4f0
VS
15402013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1543 num_table_entries.
1544
71043684
VS
15452013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1546
1547 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1548 functions.
1549
111bf5db
VS
15502013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1553 appropriate.
1554
24ca71c9
VS
15552013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1558
48ba5c0c
VS
15592013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1560
1561 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1562 appropriate.
1563
8ae67045
VS
15642013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1565
1566 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1567
1568 In case of quick removal of loopback and adding another one it may
1569 get same ID, confusing the cache system.
1570
ed559310
VS
15712013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1572
1573 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1574 appropriate.
1575
8fa26279
VS
15762013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1577
1578 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1579 than converting to long.
1580
6f5f3337
VS
15812013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1582
1583 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1584
e7c418c5
VS
15852013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1586
1587 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1588 than almost useless pointer.
1589
7e47e27b
VS
15902013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 Add gcc_struct to all packed structures when compiling with mingw.
1593
1594 Just "packed" doesn't always pack the way we expect.
1595
ae8159b9
VS
15962013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1599
74e7ad66
VS
16002013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1601
1602 * util/grub-pe2elf.c: Fix handling of .bss.
1603
814442ba
VS
16042013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 Implement windows flavour of EFI install routines.
1607
5f5bb107
VS
16082013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1609
1610 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1611
a24725cc
VS
16122013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1613
1614 Change grub_install_register_efi interface to pass GRUB device.
1615
1616 This allows grub_install_register_efi to request partition info
1617 directly.
1618
38933cee
VS
16192013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1622
6d3cfe50
VS
16232013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 Do not use TCHAR string functions as they are not available on cygwin.
1626
4bad23a1
VS
16272013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1628
1629 Workaround windows bug when querying EFI system partition parameters.
1630
6a5fe132
VS
16312013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1632
1633 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1634 by using bitfields.
1635
bc8fcf4b
VS
16362013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1637
1638 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1639
60b967be
VS
16402013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1641
1642 Make i386-* other than i386-pc compileable under cygwin.
1643
6dc33377
VS
16442013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 Fix definition of grub_efi_hard_drive_device_path. Take care that
1647 existing code would work even if by some reason bogus definition is
1648 used by EFI implementations.
1649
f2c6ff15
VS
16502013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1651
1652 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1653
6b8a1625
VS
16542013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1657 invocation.
1658
954c723a
VS
16592013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 * util/config.c: Remove trailing newline from distributor in simple
1662 parsing.
1663
607a39f9
VS
16642013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 * include/grub/efi/api.h: Rename protocol and interface to avoid
1667 conflict.
1668
df6fedca
VS
16692013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1670
ba584da1 1671 * .gitignore: add .exe variants. add missing files. remove few outdated
df6fedca
VS
1672 entries.
1673
f684d7e1
VS
16742013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 * grub-core/osdep/exec.c: Use unix version on cygwin.
1677
0df77d79
VS
16782013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 Implement multiboot2 EFI BS specification.
1681
dafff9ce
VS
16822013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1683
1684 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1685 Crash happened only in some cases like a string starting at the
1686 half of the screen of same length.
1687
6644d973
VS
16882013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1689
1690 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1691 with EFI counterpart.
1692
44bbfa33
VS
16932013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1694
1695 Propagate the EFI commits to x86-efi specific parts.
1696
3e3dff24
VS
16972013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1700
316dda71
VS
17012013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 Introduce grub_efi_packed_guid and use it where alignment is not
1704 guaranteed.
1705
219401b8
VS
17062013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1709 unaligned u16 rather than u8[2].
1710
30d00537
VS
17112013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1712
1713 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1714 for relocation range.
1715
979742bc
VS
17162013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1717
1718 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1719 non-function pcrel21b relocation. It happens with .text.unlikely
1720 section.
1721
16c8f785
LL
17222013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1723
1724 * make MAX_USABLE_ADDRESS platform-specific
1725 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1726
3f1423e7
LL
17272013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1728
1729 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1730
dd73313c
JM
17312013-12-09 Jon McCune <jonmccune@google.com>
1732
1733 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1734 in grub-install and grub-bios-setup for x86 BIOS targets.
1735
eaf01c25
VS
17362013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1737
1738 Add missing compile and link options for sparc64-emu.
1739
7a148da6
VS
17402013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 Implement sparc64 trampolines (needed for sparc64-emu).
1743
21eee750
VS
17442013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1745
1746 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1747 range of R_SPARC_HI22.
1748 Implement R_SPARC_LM22.
1749
7b54b626
VS
17502013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1751
1752 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1753 Do not explicitly check for symbol table as it's already checked in
1754 platform-independent layer.
1755
9a945e2a
VS
17562013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1757
1758 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1759 on ia64 as __clear_cache is a dummy on ia64.
1760
4f4ea1b4
VS
17612013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1762
1763 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1764 Do not explicitly check for symbol table as it's already checked in
1765 platform-independent layer.
1766
fe4ae213
CW
17672013-12-09 Colin Watson <cjwatson@ubuntu.com>
1768
1769 * util/grub-mkconfig.in: Add missing newline to output.
1770
78b2b0a1
VS
17712013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1772
1773 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1774 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1775
d14772c4
VS
17762013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1777
1778 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1779 compilation with GCC <= 4.2.
1780 * grub-core/kern/emu/argp_common.c: Likewise.
1781
388f3cd0
VS
17822013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1783
1784 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1785 right platform rather than leaking to sparc64-emu.
1786
11e4167a
VS
17872013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1790 But ensure that the variables in question are indeed unsigned.
1791
fa7eb63d
VS
17922013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1793
1794 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1795
50b3a68d
VS
17962013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 Remove grub_memalign on emu.
1799
fbbfb6ab
VS
18002013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1801
1802 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1803 truncate incomplete lines but instead flushes them.
1804
a19293cb
VS
18052013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1806
1807 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1808 and implement windows variant.
1809
d5c14e1e
VS
18102013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1811
1812 Fix mips-emu compilation.
1813
b75db69a
VS
18142013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1815
1816 * configure.ac: Check for freetype library usability.
1817
c311ced5
VS
18182013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1819
1820 Make arm-emu work.
1821
c8fd2ddf
VS
18222013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1823
1824 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1825
c50e5f45
AB
18262013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1827
1828 * docs/grub.texi (Environment): Update color_normal and color_highlight
1829 defaults (light-gray instead of white).
1830
bb05e313
AB
18312013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1832
1833 * grub-core/normal/main.c (INIT): Set default color to light-gray
1834 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1835 and apparently BIOS defaults.
1836
f23bc651
VS
18372013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 Transform -C option to grub-mkstandalone to --core-compress available
1840 in all grub-install flavours.
1841
4c4ea9c7
VS
18422013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1843
1844 Merge GRUBFS and GRUB_FS variables.
1845
92e9352d
AB
18462013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1847
1848 Revert commit 69ca97c820, it caused failures when using OS device name
1849 in grub-install. Instead just strip off parenthesis in grub-install
1850 if (hdX) was passed.
1851
f585c905
AB
18522013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1853
1854 * util/grub-install.c (push_partmap_module): Add helper to convert
1855 partmap names to module names and use it in probe_mods(). Fixes
1856 failure to find partmap modules in diskfilter case.
1857
5ff24907
VS
18582013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1859
1860 * configure.ac: Make unifont mandatory on coreboot.
1861
0277eab7
VS
18622013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 * configure.ac: Skip unifont 6.3 pcf and bdf.
1865
4861b6c8
VS
18662013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1867
1868 * Makefile.am: Remove partial font files if generation failed.
1869
3100cdc7
AB
18702013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1871
1872 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1873 strings.
1874 * include/grub/util/misc.h: Define it ...
1875 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1876
ad73cc33
AB
18772013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1878
1879 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1880 ${grub_probe}.
1881
41822625
VS
18822013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1883
1884 Don't add -mlong-calls when compiling with clang.
1885
896f483d
VS
18862013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1887
1888 * configure.ac: Fix a typo.
1889
8c534b85
VS
18902013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1891
1892 Revamp relocation handling.
1893
1894 Move more code to common dl.c. Add missing veneers for arm and arm64.
1895 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1896
a846dd4b
VS
18972013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1898
1899 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1900
aa437b58
MG
19012013-12-05 Mike Gilbert <floppym@gentoo.org>
1902
1903 * INSTALL: Raise minimum python version to 2.6.
1904 * gentpl.py: Use python3-style print function.
1905
b0f311f4
VS
19062013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1907
1908 * util/grub-install.c: Mention Boot* variable.
1909
59b38922
CW
19102013-12-05 Colin Watson <cjwatson@ubuntu.com>
1911
1912 * grub-core/osdep/linux/hostdisk.c
1913 (grub_util_find_partition_start_os): Initialise start to avoid
1914 spurious compiler warning.
1915
0480665b
CW
19162013-12-05 Colin Watson <cjwatson@ubuntu.com>
1917
1918 On Linux, read partition start offsets from sysfs if possible, to
1919 cope with block device drivers that don't implement HDIO_GETGEO.
1920 Fixes Ubuntu bug #1237519.
1921
1922 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1923 function.
1924 (sysfs_partition_start): Likewise.
1925 (grub_util_find_partition_start_os): Try sysfs_partition_start
1926 before HDIO_GETGEO.
1927
bbeee1c4
LL
19282013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1929
1930 * grub-core/kern/fdt.c: Update struct size when adding node.
1931
e5ed2f69
VS
19322013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1933
1934 Handle unaligned .bss on sparc64.
1935
1936 Current code improperly assumes that both __bss_start and _end are
1937 aligned to 8-bytes. Eliminating this assumption and explicitly align
1938 modules.
1939
4a73746a
VS
19402013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1941
1942 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1943 so it doesn't land in the middle of loaded image.
1944
382b500e
VS
19452013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 * configure.ac: Move all warning options that may be absent in
1948 gcc >= 3.1 to optional.
1949
1950 Note: while this allows to compile with older GCC, official requirements
1951 remain the same and no support for older GCC.
1952
3a82f8bb
CW
19532013-12-04 Colin Watson <cjwatson@ubuntu.com>
1954
1955 Copying the themes directory in grub-shell isn't
1956 parallel-test-friendly and breaks on the second test when the source
1957 directory is read-only (as in "make distcheck"). Instead, add a
1958 hidden --themes-directory option to grub-mkrescue et al, and use it
1959 in grub-shell.
1960
e3046431
VS
19612013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1964 as it's no longer necessarry.
1965
bdb6090d
VS
19662013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1967
1968 * configure.ac: Allow compilation with older GCC for ARM.
1969
b73b70eb
VS
19702013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1973 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1974 ppc.
1975
8a3f0a24
VS
19762013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1977
1978 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1979
6f07c4e4
VS
19802013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 Pass font config to config.h and not by TARGET_CFLAGS as adding
1983 arguments doesn't work if TARGET_CFLAGS is specified on command
1984 line.
1985
60d5e9cb
VS
19862013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * configure.ac: Add -Wvla if compiler supports it.
1989
cd15c394
VS
19902013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1993 Remove variable length arrays.
1994 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1995
bb6e299c
VS
19962013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1997
1998 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1999
85eb579a
VS
20002013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2001
2002 * include/grub/types.h: Declare all byteswaps as inline functions
2003 except compile-time ones.
2004
2005 Solves variable shadowing in constructions like
2006 cpu_to_le (le_to_cpu(x) + 1).
2007
47f88cc9
VS
20082013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2009
2010 * grub-core/kern/efi/efi.c: Remove variable length arrays.
2011
40b5739f
VS
20122013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2013
2014 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
2015 minutes.
2016
234d9346
VS
20172013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2018
2019 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
2020 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
2021
0c0eab52
CW
20222013-12-03 Colin Watson <cjwatson@ubuntu.com>
2023
2024 * grub-core/Makefile.core.def (setjmp): Distribute
2025 lib/arm64/setjmp.S.
2026
44d48847 20272013-12-03 Colin Watson <cjwatson@ubuntu.com>
8f236c14
CW
2028
2029 Add a new timeout_style environment variable and a corresponding
2030 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
2031 controls hidden-timeout handling more simply than the previous
2032 arrangements, and pressing any hotkeys associated with menu entries
2033 during the hidden timeout will now boot the corresponding menu entry
2034 immediately.
2035
2036 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
2037 generates a warning, and if it shows the menu it will do so as if
2038 the second timeout were not present. Other combinations are
2039 translated into reasonable equivalents.
2040
10955cda
CW
2041 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
2042
9e4e6ddf
VS
20432013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
2044
2045 * util/config.c: Add missing pointer adjustment.
2046 Reported by: qwertial
2047
5037aa9a
AB
20482013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2049
2050 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
2051 directly, not via `cpu' link, to fix libgrub.pp generation.
2052
8a952d20
VS
20532013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
2054
2055 New port arm64-efi.
2056
be0d4555
AB
20572013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2058
2059 * docs/grub.texi (sleep): Document exit codes.
2060
d74b9a1d
VS
20612013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2062
2063 Ensure that -mno-unaligned-access or some equivalent option is used.
2064
35de6d4b
VS
20652013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2066
2067 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2068 -march=armv3.
2069
ce55ed03
VS
20702013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2071
2072 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2073
8ddf84bf
CW
20742013-11-29 Colin Watson <cjwatson@ubuntu.com>
2075
2076 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2077 builds, since we don't have an EPS version of font_char_metrics.png.
2078 Add leading dot to image extension per the Texinfo documentation.
2079
fd0df6d0
CW
20802013-11-29 Colin Watson <cjwatson@ubuntu.com>
2081
2082 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2083 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2084 * util/grub-gen-widthspec.c: Likewise.
2085 * util/grub-mkfont.c: Likewise.
2086
69ca97c8
AB
20872013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2088
2089 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2090 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2091 failed to install on (hdX).
2092 * util/grub-setup.c (get_device_name): Remove, not needed after
2093 above change.
2094
eec893ae
VS
20952013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2098
621e167f
VS
20992013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2100
2101 * util/grub-fstest.c: Remove variable length arrays.
2102
d54f647a
VS
21032013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2104
2105 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2106
c8a0f1b2
VS
21072013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2108
2109 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2110 computing crc32 rather than handling with md fundtions directly.
2111
726409a5
VS
21122013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2115 checking fwstart.img rather than md fundtions directly.
2116
422e6e88
VS
21172013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2118
2119 * util/grub-mkrescue.c (main): Check that fread succeeded.
2120
af1faca3
VS
21212013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2122
2123 * conf/Makefile.common: Remove -mexplicit-relocs and
2124 -DUSE_ASCII_FALLBACK on yeeloong.
2125
2126 -DUSE_ASCII_FALLBACK is already added by font snippets.
2127 -mexplicit-relocs isn't needed is compiler/assemblera are
2128 configured properly.
2129 If they're not we shouldn't attempt to fix it by ourselves.
2130 Binary compare between before and after shows no difference.
2131
469021b4
VS
21322013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2135 sources in dependencies directly.
2136
2137 This was the only instance of "library" in core config. A bug was
2138 reported that -fno-stack-protector wasn't passed to it. Instead of
2139 figuring out why it failed just remove this construction used
2140 needlessly.
2141
83c256ba
VS
21422013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2145 fgets succeeded.
2146
b67422d3
FL
21472013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2148
2149 * docs/grub.texi (ls): Fix command description in case of a device name
2150 passed as argument.
2151
2d76b4d8
VS
21522013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2153
2154 Eliminate variable length arrays in grub_vsnprintf_real.
2155
2156 A bit tricky because this function has to continue to work without
2157 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2158 but make all stack references use 32-bit offset rather than 8-bit one.
2159 So split va_args preparsing to separate function and put the prealloc
2160 into the caller.
2161
4f954122
VS
21622013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2165 Fixes build for windows.
2166
b1f742c1
VS
21672013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2168
2169 * gentpl.py: Don't generate platform-dependent conditionals for
2170 platform-independent targets.
2171
16ef26fd
CW
21722013-11-27 Colin Watson <cjwatson@ubuntu.com>
2173
2174 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2175 references to mdadm from otherwise generic code.
2176 (grub_util_exec_pipe): Likewise.
2177 (grub_util_exec_pipe_stderr): Likewise.
2178 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2179 This function calls vgs, not mdadm; adjust variable names
2180 accordingly.
2181
cf8c80ff 21822013-11-27 Colin Watson <cjwatson@ubuntu.com>
ab4f1501
CW
2183
2184 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2185 of Autogen. The Autogen definitions files remain intact as they
2186 offer a useful abstraction.
2187
5c7206e4
CW
21882013-11-27 Colin Watson <cjwatson@ubuntu.com>
2189
2190 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2191 into no-ops, and use it in programs that copy files but do not need
2192 to take special care to sync writes (grub-mknetdir, grub-rescue,
2193 grub-mkstandalone).
2194
fc3f2b72
CW
21952013-11-26 Colin Watson <cjwatson@ubuntu.com>
2196
2197 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2198 than hardcoding /usr/local/bin/xorriso.
2199
1e4b3587
VS
22002013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 Add PCI command activation to all PCI drivers as required for coreboot
2203 and maybe some other firmwares.
2204
9208367d
VS
22052013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2208 and non-Apple variants of efiemu compile.
2209
67b9b7af
AB
22102013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2211
2212 * configure.ac: Add explicit check for linking format of
2213 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2214 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2215 hardcoding linking format.
2216
bee1b5ce
VS
22172013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2220 and not pkgdatadir.
2221
07e3b047
CW
22222013-11-25 Colin Watson <cjwatson@ubuntu.com>
22232013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 Add a --locale-directory option to grub-install and related tools.
2226
2227 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2228 --locale-directory option.
2229 (enum grub_install_options): Add
2230 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2231 * util/grub-install-common.c (grub_install_help_filter): Handle
2232 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2233 (grub_install_parse): Likewise.
2234 (get_localedir): New function to check for a user-provided option
2235 before trying grub_util_get_localedir.
2236 (copy_locales): Use get_localedir rather than
2237 grub_util_get_localedir. Handle differing locale directory layouts.
2238 (grub_install_copy_files): Likewise.
2239
61e1b9a4
VS
22402013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2241
2242 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2243 Don't rely on PATH_MAX.
2244
c98dd165
VS
22452013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 * grub-core/genmoddep.awk: Use more portable && rather than and.
2248
ff1c277e
VS
22492013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2250
2251 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2252 an object after data. While it doesn't seem right solution, it
2253 works well enough and OSX isn't main compilation platform.
2254
c8f7614b
VS
22552013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2256
2257 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2258 While it doesn't seem right solution, it works well enough and
2259 OSX isn't main compilation platform.
2260
246a434f
VS
22612013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * configure.ac: Add -static to LDFLAGS when using apple linker to
2264 prevent it from pulling in dynamic linker.
2265
5c066a81
VS
22662013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 Apple assembly doesn't handle symbol arithmetic well. So define an
2269 offset symbol in boot.S and use it.
2270
78f961ef
VS
22712013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 Apple assembly doesn't handle symbol arithmetic well. So instead
2274 of getting addres of kernel_sector + 4 define kernel_sector_high.
2275 It also makes code more readable.
2276
09bc0a57
VS
22772013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 With Apple assembly in .macro environvemnt you have to use $$ instead
2280 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2281 to $$x on Apple and to $x on everything else.
2282
b700a427
VS
22832013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2286 OBJCONV.
2287
4480b95d
VS
22882013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2291 and non-Apple. This instruction is shorter and faster,
2292 so no reason not to use it on both.
2293
e77c81f6
VS
22942013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2297 .text when compiling for Apple.
2298
971dbee5
VS
22992013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2300
2301 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2302
6f2e82be
VS
23032013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2306 %dx restore the probe worked on non-existant drive. Reorganize the
2307 code a little bit to free 2 bytes necessary for push/pop.
2308
9eec9699
VS
23092013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2310
2311 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2312 Add missing cast to silence warning.
2313
5ae5c54c
KPA
23142013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2315
2316 * util/grub-install.c (update_nvram): Support --no-nvram flag
2317 for EFI targets.
2318
7b04fe6c
VS
23192013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2322
e67566ce
VS
23232013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2324
2325 * util/garbage-gen.c: Add missing include of sys/time.h.
2326
f93ddcfd
VS
23272013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2328
2329 Don't add -mflush-func if it's not supported by compiler.
2330
1bba40f5
VS
23312013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2332
2333 Move common BIOS/coreboot memory map declarations to
2334 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2335
f65e14dc
AB
23362013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2337
2338 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2339
14a94bba
VS
23402013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 * INSTALL: Document why older clang versions aren't appropriate.
2343
8109c5d4
VS
23442013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 * INSTALL: Document about clang for mips.
2347
a92b5cb8
VS
23482013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2351 clang.
2352
4a23e2fe
VS
23532013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2354
2355 Add *-xen to the list of grub-install-common platforms.
2356
a3ba7410
VS
23572013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2358
2359 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2360 3 last commits.
2361
e1c22419
VS
23622013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2363
2364 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2365
189090ce
VS
23662013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2369 with -mcmodel=large.
2370
1a5b7b40
VS
23712013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2374 range-checking for 32-bit quantities.
2375
9cf12b20
VS
23762013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2377
2378 * configure.ac: Compile with -fPIC when compiling with clang on
2379 mips.
2380
63a45330
VS
23812013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2384 when compiling with clang.
2385
4a0aaad0
VS
23862013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 clang emits calls to abort () under some unknown conditions.
2389 Export abort () when compiling with clang.
2390
095bb1bf
VS
23912013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * docs/grub-dev.texi: Document stack and heap sizes.
2394
3937bd96
VS
23952013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * include/grub/i386/pc/memory.h: Decrease
2398 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2399 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2400 The binary doesn't change (checked). It's more to better reflect actual
2401 usage.
2402
ddb3efc9
VS
24032013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2404
2405 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2406 at compile time that enough of scratch size is available.
2407
4e42521d
VS
24082013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2409
2410 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2411 Previously we misaligned stack by 8 in startup.S and compensated
2412 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2413 right behaviour is to align stack in startup.S and keep it aligned
2414 in callwrap.S. startup.S part was committed few commits before. This
2415 takes care of callwrap.S.
2416 Reported by: Gary Lin.
2417
054efe54
VS
24182013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2421 .data and .bss. May happen if compiler and assembly use different
2422 alignment.
2423
a0e1befb
VS
24242013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2427 way.
2428
c36c73f6
VS
24292013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2430
2431 Add support for a new magic symbol _gp_disp on mips to handle PIC
2432 binaries.
2433
6f4a19f5
VS
24342013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2437
0d8f04cd
VS
24382013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2439
2440 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2441 when rest of GRUB is compiled for hisher stepping. Instead use
2442 .set mips3/.set mips1 around cache and sync opcodes.
2443
49060520
VS
24442013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2445
2446 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2447 do essentially the same thing, do it in similar way.
2448
c6a823e2
CW
24492013-11-21 Colin Watson <cjwatson@ubuntu.com>
2450
2451 * util/grub-mkrescue.c (main): If a source directory is not
2452 specified, read platform-specific files from subdirectories of
2453 pkglibdir, not pkgdatadir.
2454
b7f9aedf
CW
24552013-11-21 Colin Watson <cjwatson@ubuntu.com>
2456
2457 * grub-core/normal/progress.c: Remove unused file.
2458
7dd0a303
VS
24592013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2460
2461 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2462 array.
2463
ca120e31
VS
24642013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2465
2466 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2467 than grub.cfg.
2468
48eb35cd
VS
24692013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2470
2471 * coreboot.cfg: Add missing file.
2472
7f20dbbc
VS
24732013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2476
55e706c9
AK
24772013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2478
2479 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2480 selectively skipping systems.
2481
4e7d433d
CW
24822013-11-19 Colin Watson <cjwatson@ubuntu.com>
2483
2484 * Makefile.util.def (grub-mkimage): Add
2485 grub-core/osdep/aros/config.c to extra_dist.
2486 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2487 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2488 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2489 grub-core/gnulib-no-gets.diff.
2490
7d44ff7d
VS
24912013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 Add automated filesystem checking based on scripts I've used now for
2494 quite some time locally. Most of the test require root so they are
2495 skipped when run without necessarry privelegies.
2496
a8c3e5e3
CW
24972013-11-19 Colin Watson <cjwatson@ubuntu.com>
2498
2499 * util/grub-install.c (main): Adjust info messages to match
2500 installed paths of grub-bios-setup and grub-sparc64-setup.
2501
4402db3e
CW
25022013-11-19 Colin Watson <cjwatson@ubuntu.com>
2503
2504 * util/grub-install-common.c (copy_locales): Consistently use
2505 grub_util_get_localedir () rather than LOCALEDIR.
2506 (grub_install_copy_files): Likewise.
2507
7960d3e1
JT
25082013-11-19 Josh Triplett <josh@joshtriplett.org>
2509
2510 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2511 16-byte boundary, as required by the x86-64 ABI, before calling
2512 grub_main. In some cases, GCC emits code that assumes this
2513 alignment, which crashes if not aligned. The EFI firmware is also
2514 entitled to assume that stack alignment without checking.
2515
d53f4900
JT
25162013-11-18 Josh Triplett <josh@joshtriplett.org>
2517
2518 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2519 4k page boundaries as expected by firmware rather than 1k
2520 boundaries.
2521 (grub_mmap_malign_and_register): Likewise.
2522
bb2b275b
VS
25232013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2524
2525 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2526 fragmentation 512M is enough.
2527
45bf8b3a
VS
25282013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2529
2530 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2531 pointer to 32K. This is the size of cache element which is the most
2532 common allocation >1K. This way the pointer is always around blocks
2533 of 32K and so we keep performance while decreasing fragmentation.
2534
39ff43c5
VS
25352013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2536
2537 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2538 current memory when allocating large chunks. This significantly
2539 decreases memory fragmentation.
2540
60870be8
CW
25412013-11-18 Colin Watson <cjwatson@ubuntu.com>
2542
2543 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2544 but for symmetry).
2545 * tests/lzocompress_test.in: Skip if lzop is not installed.
2546 * tests/xzcompress_test.in: Skip if xz is not installed.
2547
a1f00cc5
CW
25482013-11-18 Colin Watson <cjwatson@ubuntu.com>
2549
2550 * util/grub-mkrescue.c (main): Fix typo.
2551
74e632fe
VS
25522013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2555 clock frequency to 200 MHz,
2556
efb8de49
VS
25572013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2560
b7526e78
VS
25612013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2562
2563 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2564 Load config file from (cbfsdisk)/etc/grub.cfg.
2565
b40ce651
VS
25662013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2567
2568 * util/grub-install-common.c (grub_install_copy_files): Fix module
2569 destination directory.
2570
1e8e2e78
CW
25712013-11-18 Colin Watson <cjwatson@ubuntu.com>
2572
2573 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2574 files have not been built.
2575
3bf4088b
CW
25762013-11-18 Colin Watson <cjwatson@ubuntu.com>
2577
2578 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2579 Handle errors from mkstemp.
2580 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2581
35c2851c
VS
25822013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2585 on primary master on pseries.
2586
ea7c1a7d
VS
25872013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2590 already loaded. This saves memory needed for tests,
2591
96adefdb
VS
25922013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2595 work again.
2596
5e3cb8a7
VS
25972013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2600 work again.
2601
256ee7ac
VS
26022013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2603
2604 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2605 master since with some combinations of qemu and firmware only primary
2606 IDE channel is available.
2607
f8b4c3b6
VS
26082013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2609
2610 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2611 low-memory platforms where we don't have enough memory for them.
2612 * grub-core/tests/videotest_checksum.c: Likewise.
2613
4bf70320
VS
26142013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2615
2616 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2617 already loaded. This saves memory needed for tests,
2618
a284320e
VS
26192013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 Fix handling of install lists.
2622
2df8f43d
VS
26232013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2624
2625 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2626
6f1bc8bc
VS
26272013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2628
2629 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2630 the devices before accessing them.
2631
04f39f6d
VS
26322013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2633
2634 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2635 as file argument.
2636
35d4761c
VS
26372013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2638
2639 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2640
33d02a42
VS
26412013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2642
2643 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2644 (grub_file_close): Free file->name.
2645
7bbb60cf
VS
26462013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2647
2648 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2649 (grub_load_public_key): Likewise.
2650 (grub_verify_signature_real): Likewise.
2651 (grub_cmd_verify_signature): Likewise.
2652
da93d675
VS
26532013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2654
2655 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2656 memory leak.
2657
59c943ec
VS
26582013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2661 (grub_longjmp): Restore r31.
2662 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2663
4336b5d8
VS
26642013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2667 modules to be in line with make_image_abs.
2668
44ce3a93
VS
26692013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2670
2671 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2672
2673 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2674
7d400406
IC
26752013-11-17 Ian Campbell <ijc@hellion.org.uk>
2676
2677 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2678
77dae919
VS
26792013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2680
2681 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2682 to leave some memory to firmware.
2683
0ab8e025
VS
26842013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2687 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2688 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2689 Load gfxmenu.
2690
b80c2d6d
VS
26912013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2692
2693 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2694 now needs full arguments.
2695
6aa6077b
VS
26962013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2697
2698 * util/grub-mkrescue.c (main): Add trailing \n in
2699 .disk_label.contentDetails to be in line with previous shell script.
2700
66c00cb1
VS
27012013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2704
3a129dba
VS
27052013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2706
2707 * util/grub-install-common.c (grub_install_parse): Recognize
2708 --compress=none like shell script did.
2709
8df6eff6
VS
27102013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2711
2712 * include/grub/misc.h: Replace check for __sparc64__ with one for
2713 __sparc__ as __sparc64__ isn't actually defined.
2714
889ebe92
VS
27152013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2716
2717 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2718 counterpart of fixing the naming of escc ports.
2719
d4d55b29
VS
27202013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * util/grub-install-common.c (platforms): Fix the order of entries and
2723 remove useless field val.
2724
55e2c84f
VS
27252013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * util/grub-install.c: Add new option --no-bootsector to skip
2728 installing of bootsector. Accept --grub-setup=/bin/true as
2729 backwards-compatible synonym.
2730
cd46aa6c
VS
27312013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2732
2733 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2734 order of qsort arguments (number of elements vs. element size).
2735
27362013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2737
2738 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2739 the function of these files exceeds what can be sanely handled in shell
2740 in posix-comaptible way. Also writing it in C extends the functionality
2741 to non-UNIX-like OS and minimal environments.
2742
9ef81064
VS
27432013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2744
2745 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2746 compiling to thumb2.
2747 * grub-core/kern/arm/cache_armv7.S: Likewise.
2748 * grub-core/lib/arm/setjmp.S: Likewise.
2749
11a77932
LL
27502013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2751
2752 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2753 in grub_uboot_syscall
2754
080603f0
VS
27552013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2756
2757 Decrease stack usage in lexer.
2758
2759 We have only 92K of stack and using over 4K per frame is wasteful
2760
2761 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2762 as macros so that compiler would remove useless structure on stack.
2763 Better solution would be to fix flex not to put this structure on
2764 the stack but flex is external program.
2765
4f84ae0e
VS
27662013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2767
2768 Decrease stack usage in signature verification.
2769
2770 We have only 92K of stack and using over 4K per frame is wasteful
2771
2772 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2773 rather than stack.
2774 (grub_verify_signature_real): Likewise.
2775
e6a6182d
VS
27762013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 Decrease stack usage in mdraid 0.9x.
2779
2780 We have only 92K of stack and using over 4K per frame is wasteful
2781
2782 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2783 rather than stack.
2784
1a454efe
VS
27852013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2786
2787 Decrease stack usage in BtrFS.
2788
2789 We have only 92K of stack and using over 4K per frame is wasteful
2790
2791 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2792 rather than stack.
2793
7b5d51d8
VS
27942013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2795
2796 Decrease stack usage in JFS.
2797
2798 We have only 92K of stack and using over 4K per frame is wasteful
2799
2800 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2801 stack. Note: this function is recursive.
2802 (grub_jfs_read_inode): Read only part we care about.
2803
593865b9
LL
28042013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2805
2806 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2807 handling
7b5d51d8 2808
31c0cd43
AB
28092013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2810
2811 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2812
c2fdb331
AB
28132013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2814
2815 * docs/grub.texi (Environment): Document cmdpath.
2816
9e18dfe2
AB
28172013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2818
2819 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2820 Remove "unused" attribute from arguments, they are used.
2821
59ba9d14
CW
28222013-11-15 Colin Watson <cjwatson@debian.org>
2823
2824 * .gitignore: Only ignore grub-mk* at the top level.
2825
23012db9
CW
28262013-11-15 Colin Watson <cjwatson@ubuntu.com>
2827
2828 * util/grub-reboot.in (usage): Fix a typo.
2829
6fcec439
VS
28302013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2831
2832 Replace libgcc version of ctz with our own.
2833
2834 On upcoming arm64 port libgcc ctz* are not usable in standalone
2835 environment. Since we need ctz* for this case and implementation is
2836 in C we may as well use it on all concerned platforms.
2837
a9f25a08
VS
28382013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2839
2840 * configure.ac: Probe for linking format rather than guessing it based
2841 on target_os.
2842
c7995256
VS
28432013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2846 "1" prior to handoff.
2847
2848 Reported by: M A Young.
2849
e1aa5b66
VS
28502013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2851
2852 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2853 \0 to all files.
2854
2855 Reported by: M A Young.
2856
da5ed5cf
VS
28572013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2858
2859 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2860 compilation on NetBSD.
2861
5757a93e
VS
28622013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2863
2864 * acinclude.m4: Don't add -P on initial nm test.
2865
2866 Note: even though this patch postdates Andrey's it bears 14 Nov as
2867 date due to timezone difference.
2868
a5986276
AB
28692013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2870
2871 * grub-core/Makefile.core.def (signature_test): Add missing
2872 tests/signatures.h.
2873
0de172a0
CW
28742013-11-14 Colin Watson <cjwatson@ubuntu.com>
2875
2876 * util/grub-install_header: Set localedir here, since this file is
2877 where it's used.
2878 * util/grub-install.in: Remove setting of localedir.
2879 * util/grub-mkrescue.in: Likewise.
2880
da45f43c
VS
28812013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2884
20aea949
VS
28852013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2886
2887 * configure.ac: Move nm checks to the end.
2888 Call grub_PROG_NM_WORKS.
2889 * acinclude.m4: New check grub_PROG_NM_WORKS.
2890 Use $TARGET_CFLAGS -c when compiling test binary.
2891
1326b9ae
CW
28922013-11-14 Colin Watson <cjwatson@ubuntu.com>
2893
2894 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2895 unused variables.
2896
1fe26ab4
MG
28972013-11-14 Matthew Garrett <mjg@redhat.com>
2898
2899 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2900 cmdpath to firmware directory.
2901
83e9c273
VS
29022013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2903
2904 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2905 at the start of second iteration.
2906
ec525c18
VS
29072013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2910
93fcc7ad
VS
29112013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 * Makefile.am (default_payload.elf): New target for easier coreboot
2914 build.
2915
57ffe934
VS
29162013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2917
2918 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2919 clang (not necessarry with -no-integrated-as).
2920 * include/grub/symbol.h [__arm__]: Likewise.
2921
2312f06c
VS
29222013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2923
2924 * configure.ac: Use -no-integrated-as on arm with clang.
2925 * INSTALL: Mention ARM compilation with clang.
2926
2416415c
VS
29272013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2928
2929 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2930 -mthumb-interwork.
2931
5da55172
CW
29322013-11-14 Colin Watson <cjwatson@ubuntu.com>
2933
2934 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2935 code for indirect block handling.
2936
2937 Saves 185 bytes on compressed image.
2938
da770328
PFS
29392013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2940
2941 Fix make clean.
2942
2943 * Makefile.am: Remove build-grub-* in make clean.
2944
f02e6b56
PFS
29452013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2946
2947 New files to gitignore.
2948
2949 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2950 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2951
035a26c1
LL
29522013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2953
2954 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2955
bc8a6137
LL
29562013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2957
2958 * .gitignore: fix rules for .dep* and add *.a post git migration
2959
6fe506b0
CW
29602013-11-13 Colin Watson <cjwatson@ubuntu.com>
2961
2962 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2963 to match INSTALL.
2964
81a2e438
CW
29652013-11-13 Colin Watson <cjwatson@ubuntu.com>
2966
2967 * grub-core/kern/misc.c: Don't redirect divisions in the
2968 GRUB_UTIL case.
2969 * include/grub/misc.h: Likewise.
2970
9b45c073
CW
29712013-11-13 Colin Watson <cjwatson@ubuntu.com>
2972
2973 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2974 systems that require checking the return value of write.
2975
11b2a9b7
CW
29762013-11-13 Colin Watson <cjwatson@ubuntu.com>
2977
2978 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2979 efibootmgr quiet when --debug is not used, rather than when it is.
2980
d743d22d
CW
29812013-11-13 Colin Watson <cjwatson@ubuntu.com>
2982
2983 * gentpl.py (define_macro_for_platform_dependencies): Remove
2984 first (and thus unused) of two definitions for this function.
2985 (platform_dependencies): Likewise.
2986
11da14b5
CW
29872013-11-13 Colin Watson <cjwatson@ubuntu.com>
2988
2989 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2990 functions, we only need to check this for the target, not the host.
2991 * configure.ac (grub_apple_cc): Likewise.
2992
2bdd0719
VS
29932013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2994
2995 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2996 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2997 asm to stay in arm even if surrounding is thumb.
2998
5e77d9cf
VS
29992013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3000
3001 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
3002 helper functions are needed for thumb.
3003
7d511625
VS
30042013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3005
3006 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
3007 level / 3 division explicitly unsigned. Saves few bytes.
3008
81023dbd
VS
30092013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
3012
b2e9294f
VS
30132013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
3016 division.
3017
16a22c38
VS
30182013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
3021 grub_uboot_boot_data to asm part.
3022
c9cd02c9
VS
30232013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
3026 literal load.
3027 (grub_uboot_syscall): Save/restore r9 and align stack.
3028
81498615
VS
30292013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3030
3031 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
3032
ea57de18
VS
30332013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
3036 occurencies with END.
3037
d0d1e3da
CW
30382013-11-13 Colin Watson <cjwatson@ubuntu.com>
3039
3040 * util/grub-editenv.c (help_filter, argp): Document how to delete
3041 the whole environment block.
3042 Reported by Dan Jacobson. Fixes Debian bug #726265.
3043
3809f016
CW
30442013-11-13 Colin Watson <cjwatson@ubuntu.com>
3045
3046 * docs/grub.texi (Internationalisation, Supported kernels): Fix
3047 sectioning.
3048
46d8a203
JT
30492013-11-13 Josh Triplett <josh@joshtriplett.org>
3050
3051 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
3052 increment/decrement.
3053
513eeb61
VS
30542013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3055
3056 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
3057 compiling with clang.
3058
bc379c1a
VS
30592013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3060
3061 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3062 ".".
3063
30642013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
286551b4 3065
16057d6b
VS
3066 Redirect all divisions to grub_divmod64.
3067
f649a6a8
VS
30682013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3071
ef28ee8b
VS
30722013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 Add missing includes of loader.h.
3075
300f48c5
VS
30762013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3077
3078 * configure.ac: Allow disabling themes.
3079
2d357558
LS
30802013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3081
3082 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3083
0c62a5b2
VS
30842013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3085
3086 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3087 until it becomes operational.
3088
b0720b49
VS
30892013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3090
3091 * grub-core/Makefile.core.def (legacy_password_test): Disable
3092 on platforms where no legacycfg is compiled.
3093 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3094 load legacy_password_test.
3095
d5bab2c0
VS
30962013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3097
3098 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3099
3ea0ccb3
VS
31002013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3103
08772054
VS
31042013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3105
3106 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3107 strict-aliasing warning.
3108 (fsync): Silence cast warning.
3109
1dcb2715
VS
31102013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * grub-core/commands/verify.c: Remove variable length arrays.
3113 Load gcry_dsa/gcry_rsa automatically.
3114
61c22fdf
VS
31152013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * grub-core/tests/signature_test.c: New test.
3118
431e57a7
VS
31192013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3122 API.
3123
b521bb81
VS
31242013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3127 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3128
7d06b24e
VS
31292013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3132
3bbeade4
VS
31332013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3134
3135 * grub-core/fs/proc.c: Allow \0 in proc files.
3136
ba82db7a
VS
31372013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3138
3139 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3140
801564c8
VS
31412013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3144
ac8cac1d
VS
31452013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 * grub-core/fs/ext2.c: Remove variable length arrays.
3148
4b85f122
VS
31492013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3150
3151 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3152 length arrays.
3153
c35fcdc0
VS
31542013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3157 * grub-core/disk/cryptodisk.c: Likewise.
3158 * grub-core/disk/geli.c: Likewise.
3159 * grub-core/disk/luks.c: Likewise.
3160
15decd26
VS
31612013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3162
3163 * grub-core/tests/legacy_password_test.c: New test.
3164 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3165
9c6482b8
VS
31662013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3167
3168 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3169
41f26e0e
VS
31702013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3171
3172 * grub-core/tests/pbkdf2_test.c: New test.
3173
2def6616
VS
31742013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3177
9e34a34e
VS
31782013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3179
3180 * grub-core/io/lzopio.c: Remove variable length arrays.
3181
5ccaf904
VS
31822013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3183
3184 * include/grub/crypto.h: Add maximums on hash size and cipher block
3185 size.
3186
44a387e0
VS
31872013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3188
3189 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3190
a388e255
VS
31912013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 * grub-core/tests/xnu_uuid_test.c: New test.
3194
a1ef7718
VS
31952013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3198 covers it).
3199
65ddb300
VS
32002013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * grub-core/commands/hashsum.c: Remove variable length arrays.
3203
31747dd5
VS
32042013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3205
3206 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3207 condition.
3208 * tests/grub_func_test.in: Increase memory allocation.
3209
6a74c4df
VS
32102013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3211
3212 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3213 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3214 sys/mount.h.
3215
394c3e0a
VS
32162013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3219 (grub_util_get_fd_size_os): ...this.
3220 (grub_hostdisk_flush_initial_buffer): New empty function.
3221
60d31116
VS
32222013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3225 without --defined-only.
3226
8445b011
VS
32272013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3228
3229 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3230 rip-relative addressing in prologue.
3231
8506a641
VS
32322013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3235 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3236
66acd9d6
VS
32372013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3240 Add missing semicolon.
3241
348d0535
VS
32422013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3245
0d2d30bb
VS
32462013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3247
3248 * configure.ac: Check for lzma.h for enabling liblzma and allow
3249 manual disabling.
3250
631187be
VS
32512013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 Add missing includes of loader.h.
3254
e756ec82
FZ
32552013-11-11 Fam Zheng <famcool@gmail.com>
3256
3257 * util/grub.d/30_os-prober.in: Add minix entry.
3258
87d62d7d
VS
32592013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3260
3261 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3262 right buffer for temporary load.
3263
5460cfeb
VS
32642013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3267
89977306
VS
32682013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3271 payload.
3272
3617c59b
VS
32732013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3274
3275 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3276 not Types.h.
3277 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3278 environment.
3279 (LzmaDec_InitDicAndState): Make static.
3280
881c6a10
VS
32812013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3284
2024ade2
VS
32852013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3286
3287 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3288
3289 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3290
674ad4f6
VS
32912013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3292
3293 * docs/grub-dev.texi: Replace bzr references with git ones.
3294
5b99970e
AB
32952013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3296
3297 * docs/grub.texi (Simple configuration): Remove reference to
3298 grub-reboot from saved default entry description - grub-default
3299 does not use it anymore.
3300
3c2304d5
VS
33012013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3304 compiled with.
3305
80cfd940
AB
33062013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3307
3308 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3309
33690255
VS
33102013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 Fix grub_machine_fini bitrot.
3313
3314 Reported by: Glenn Washburn.
3315
c61471fc
VS
33162013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3317
3318 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3319
54da019f
VS
33202013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3321
3322 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3323 -DELF.
3324 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3325 instead of ELF*.
3326
33272013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
28668d80
VS
3328
3329 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3330 Add -march=core2 when testing compile of efiemu64.
3331
3332 Thanks Andrey Borzenkov for spotting this.
3333
9612ebc0
VS
33342013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3335
3336 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3337 XEN PV environment and load kernels.
3338
1a46a3a4
VS
33392013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3342 * grub-core/loader/multiboot_mbi2.c: Likewise.
3343
2df12551
VS
33442013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3347 handling.
3348
3c980381
VS
33492013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3352
3353 Tested by: Denis 'GNUtoo' Carikli.
3354
800f63d3
VS
33552013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3356
3357 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3358
9f8acdaa
VS
33592013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3360
5620eb53
VS
3361 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3362 Use to get rounded angle rather than truncated.
3363
33642013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3365
3366 * grub-core/term/serial.c: Add option for enabling/disabling
9f8acdaa
VS
3367 RTS/CTS flow control.
3368
2dc1eb6c
VS
33692013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3372 divisions.
3373
b9563c94
VS
33742013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3377 Use grub_fatal rather than divide by zero.
3378 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3379
d6d8e9a9
VS
33802013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3381
3382 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3383 truncate.
3384 (grub_fixed_fsf_divide): Likewise.
3385
d06de6c8
VS
33862013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3387
3388 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3389 division by-zero and senseless negative divisions.
3390
6af7d49b
VS
33912013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3392
3393 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3394 division by-zero and senseless negative divisions.
3395 (circprog_set_property): Don't accept negative num_ticks.
3396
bcfa6d72
VS
33972013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3398
3399 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3400 division by-zero and senseless negative divisions.
3401
dd7f792c
VS
34022013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3403
3404 * configure.ac: Use elf_*_fbsd on kfreebsd.
3405
d061fda7
VS
34062013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3407
3408 * grub-core/tests/div_test.c: New test.
3409
4db22500
VT
34102013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3411
3412 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3413 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3414 * grub-core/gfxmenu/view.c: Likewise.
3415 * grub-core/video/fb/video_fb.c: Introduce new functions:
3416 grub_video_set_area_status, grub_video_get_area_status,
3417 grub_video_set_region, grub_video_get_region.
3418 * grub-core/video/bochs.c: Likewise.
3419 * grub-core/video/capture.c: Likewise.
3420 * grub-core/video/video.c: Likewise.
3421 * grub-core/video/cirrus.c: Likewise.
3422 * grub-core/video/efi_gop.c: Likewise.
3423 * grub-core/video/efi_uga.c: Likewise.
3424 * grub-core/video/emu/sdl.c: Likewise.
3425 * grub-core/video/radeon_fuloong2e.c: Likewise.
3426 * grub-core/video/sis315pro.c: Likewise.
3427 * grub-core/video/sm712.c: Likewise.
3428 * grub-core/video/i386/pc/vbe.c: Likewise.
3429 * grub-core/video/i386/pc/vga.c: Likewise.
3430 * grub-core/video/ieee1275.c: Likewise.
3431 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3432 * include/grub/video.h: Likewise.
3433 * include/grub/video_fb.h: Likewise.
3434 * include/grub/fbfill.h: Updated render_target structure.
3435 grub_video_rect_t viewport, region, area
3436 int area_offset_x, area_offset_y, area_enabled
3437 * include/grub/gui.h: New helper function
3438 grub_video_bounds_inside_region.
3439 * docs/grub-dev.texi: Added information about new functions.
3440
c6b755df
VS
34412013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3444 for alignment.
3445
e2a68100
VS
34462013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3449 missing attribute.
3450 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3451
c4f11a2a
VS
34522013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3453
3454 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3455 simple division on arm and ia64.
3456
e0a7bffa
VS
34572013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3460 link with libgcc.
3461
38b864ea
VS
34622013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3465
12359faf
VS
34662013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3467
3468 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3469 prefix symbol, not @.
3470
9fdc64a9
VS
34712013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3472
3473 * INSTALL: Add note about older gcc and clang.
3474
665c575b
VS
34752013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3478
47dcf7b1
VS
34792013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3480
3481 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3482 NULL pointer dereference.
3483
d59849b2
VS
34842013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3485
3486 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3487 clang.
3488
7a3f4a18
VS
34892013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3492 warnings.
3493
7f084087
VS
34942013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3497 function.
3498 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3499 * grub-core/disk/geli.c (ascii2hex): Likewise.
3500
d5524ca8
VS
35012013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3502
3503 * configure.ac: Run linker tests without -Werror.
3504 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3505 Change all occurences of -static-libgcc resp -lgcc to
3506 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3507
390cd7ca
VS
35082013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3511
60375a88
VS
35122013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3513
3514 Allow compiling with clang (not really supported though).
3515
3516 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3517 unconditionally.
3518 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3519 Add -mrtd -mregparm=3 on i386 when not using clang.
3520 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3521
dd07e0c4
VS
35222013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3525 bindings.
3526 * grub-core/lib/reed_solomon.c: Likewise.
3527 * include/grub/i386/gdb.h: Likewise.
3528 * include/grub/i386/pc/int.h: Likewise.
3529 * include/grub/i386/pc/pxe.h: Likewise.
3530 * include/grub/ieee1275/ieee1275.h: Likewise.
3531
9d3ae8ec
VS
35322013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 Import libgcrypt 1.5.3.
3535
c12936c5
VS
35362013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3537
3538 * configure.ac: Don't add -Wcast-align on x86.
3539
cdc17f60
VS
35402013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3541
3542 * configure.ac: Add -freg-struct-return on all platforms that
3543 support it.
3544
b35ec299
VS
35452013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 * acinclude.m4: Use -Werror on parameter tests.
3548 * configure.ac: Likewise.
3549
05f3a0d7
VS
35502013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3553
c966a489
VS
35542013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3555
3556 * configure.ac: Check that -malign-loops works rather than assuming that
3557 either -falign-loops or -malign-loops work.
3558
bb0c57ec
VS
35592013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3560
3561 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3562
24f4e57c
VS
35632013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3564
3565 * configure.ac: Prevent cflags leaking to subsequent tests by always
3566 resetting cflags to target_cflags in target tests.
3567
ac319fbc
VS
35682013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3569
3570 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3571 function.
3572
4bfe934c
VS
35732013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3574
3575 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3576
40a5bfde
VS
35772013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3578
3579 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3580
a67c755e
VS
35812013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 * grub-core/normal/cmdline.c (grub_cmdline_get):
3584 Remove nested functions.
3585
87a04a2d
VS
35862013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * tests/test_sha512sum.in: Make it work on emu.
3589
c03995d2
VS
35902013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3591
3592 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3593 functions.
3594 (grub_bidi_line_logical_to_visual): Likewise.
3595
ec0ebb3f
VS
35962013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 Remove vestiges of -Wunsafe-loop-optimisations.
3599
3600 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3601 -Wno-unsafe-loop-optimisations.
3602 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3603 pragma.
3604 * grub-core/io/gzio.c: Likewise.
3605 * grub-core/script/parser.y: Likewise.
3606 * grub-core/script/yylex.l: Likewise.
3607 * util/grub-mkfont.c: Likewise.
3608
6ab537e3
VS
36092013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 * util/grub-mkfont.c (process_cursive): Remove nested function.
3612
e6c368d4
VS
36132013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3616 (grub_boot_time): Likewise.
3617
4f1cfd22
VS
36182013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * include/grub/symbol.h (FUNCTION): Use @function rather than
3621 "function".
3622 (VARIABLE): Likewise.
3623
6d5a4cee
VS
36242013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3625
3626 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3627
f06c2172
VS
36282013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3631 (parse_dhcp_vendor): Likewise.
3632
7cb24eb5
VS
36332013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3636
f30c692c
VS
36372013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3640 Define after defining type and not before.
3641
8b66bb5d
VS
36422013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3645 type.
3646 (grub_gcm_decrypt): Likewise.
3647 (algo_decrypt): Likewise.
3648 (grub_zfs_decrypt_real): Transform error type.
3649
5d17fd0f
VS
36502013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3653
ac35a0f7
VS
36542013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3657 (grub_usbms_cbi_reset): Likewise.
3658 (grub_usbms_bo_reset): Likewise.
3659 (grub_usbms_reset): Likewise.
3660 (grub_usbms_attach): Likewise.
3661 (grub_usbms_transfer_cbi): Likewise.
3662
3ee08697
VS
36632013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3666 "checksum = checksum;".
3667
70bb6c85
VS
36682013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3671 entry_type.
3672
c7f34744
VS
36732013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3676 BIOS disk check.
3677
3f63b4d8
VS
36782013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3681 type.
3682 (grub_ehci_fini_hw): Likewise.
3683 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3684
dac6ce73
VS
36852013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3686
3687 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3688 return grub_usb_err_t for cosistency. All users updated.
3689
5701750c
VS
36902013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3693 assigning to itself.
3694
9e236169
GLD
36952013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
36962013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3697
3698 Issue separate DNS queries for ipv4 and ipv6
3699
3700 Adding multiple questions on a single DNS query is not supportted by
3701 most DNS servers. This patch issues two separate DNS queries
3702 sequentially for ipv4 and then for ipv6.
3703
3704 Fixes: https://savannah.gnu.org/bugs/?39710
3705
3706 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3707 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3708 * (grub_net_dns_lookup): Now using separated dns packages.
3709 * (grub_cmd_nslookup): Add error condition.
3710 * (grub_cmd_list_dns): Print DNS option.
3711 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3712 --prefer-ipv4, and --prefer-ipv6.
3713 * include/grub/net.h (grub_dns_option_t): New enum.
3714 * (grub_net_network_level_address): option added.
3715
339eacce
VT
37162013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3717
3718 * grub-core/video/fb/video_fb.c: Merge two blit functions
3719 into one.
3720
810f991b
VS
37212013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3722
3723 * grub-core/term/terminfo.c: Add sequences for home and end.
3724
386571a2
VS
37252013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3726
3727 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3728 graphics console.
3729
3fe63754
VS
37302013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3731
3732 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3733 add mode 0x12.
3734
76681e71
VS
37352013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3736
3737 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3738 e-mail by Per Öberg.
3739
46522fb7
VS
37402013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3741
3742 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3743 name.
3744
e7d09ac4
AB
37452013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3746
3747 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3748 emu platforms.
3749 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3750
67508925
VS
37512013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * docs/grub.texi: Document usage of menuentry id.
3754
0c62124e
VS
37552013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3758
9b5d4eed
PL
37592013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3760
3761 * grub-core/commands/i386/nthibr.c: New command.
3762
79054c1d
VS
37632013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3766
44d47bbe
VS
37672013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3770 coordinate.
3771
323de05b
VS
37722013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 Support GRUB_DISABLE_SUBMENU config.
3775
3776 Inspired by patch from Prarit Bhargava.
3777
5a01722e
VS
37782013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * docs/grub.texi: Mention RSA support.
3781
1106c3f0
VS
37822013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * grub-core/commands/verify.c: Add RSA support.
3785
a1dcc2cb
VS
37862013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3789 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3790 device is known to be ATAPI.
3791
ee7fb780
MF
37922013-11-03 Mike Frysinger <vapier>
3793
3794 * configure.ac: Don't add target-prefix.
3795
5ade4a42
VS
37962013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3799 variables.
3800
6cd66043
VS
38012013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3804 if language is English.
3805
090d7c81
VS
38062013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3809
dd614590
VS
38102013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * configure.ac: Don't add -m32/-m64 on emu.
3813
a8686589 38142013-11-02 neil
3815
3816 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3817 broken linux headers.
3818
fb9f12a0
VS
38192013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3820
3821 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3822
e25f8e1f
VS
38232013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3826 Reed-Solomon recovery if more than half of redundancy info is 0.
3827
4685200f
VS
38282013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * util/grub-mount.c: Handle symlinks to directories.
3831
1397f0b5
VS
38322013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3835 find_file recursively for symlink.
3836
8b3e6eb6
VS
38372013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * tests/util/grub-shell.in: Copy themes.
3840
a0c9d5c6
VS
38412013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3844
5cf9459c
VS
38452013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * configure.ac: Use 0x8000 for address instead of 8000.
3848
e7b66a28
VS
38492013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3852 signature.
3853
203f53fb
VS
38542013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3857 variable.
3858
02663ee9
VS
38592013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3862
f169f65e
VS
38632013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3864
3865 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3866 file_progress_read_hook.
3867 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3868
2855a0fc
VS
38692013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3872 and double.
3873
bf0f3a8c
VS
38742013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3877
cb72aa18
VS
38782013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3879
3880 Rewrite blocklist functions in order to get progress when
3881 reading large extents and decrease amount of blocklist hook calls.
3882
896f9135
VS
38832013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3884
3885 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3886 of SI suffixes.
3887
89295a06
VS
38882013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3889
3890 Support --base-clock for serial command to handle weird cards with
3891 non-standard base clock.
3892
eb03ede0
VS
38932013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3894
3895 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3896 strncpy.
3897 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3898 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3899 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3900 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3901 + strcpy rather than strncpy.
3902
8fbe5c7d
VS
39032013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3906 (check_pool_label): Likewise. Fixes overflow.
3907 (nvlist_find_value): Fix comparison.
3908
e54b8f53
VS
39092013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3912 more appropriate functions.
3913
fa9b3dca
VS
39142013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3917 realloc.
3918
9a021c55
VS
39192013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3920
3921 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3922
80e8b13a
VS
39232013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3924
3925 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3926 on core size.
3927
b61599ac
VS
39282013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3929
3930 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3931
a602dc54
VS
39322013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3935 (initialize_tables): reset tl and td to NULL after freeing.
3936
93c12075
VS
39372013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3938
3939 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3940
1ca4b75e
VS
39412013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3944 of supported tags.
3945
329550c4
VS
39462013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3949
00bfa988
VS
39502013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3951
3952 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3953 quirks.
3954
81afc5cc
VS
39552013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3956
3957 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3958 a page in protected space.
3959
cb3c4a47
VS
39602013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3961
3962 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3963 allocate space for zero-sized modules.
3964
954f7bf5
VS
39652013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3966
3967 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3968
526d3d25
FL
39692013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3970
3971 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3972
74124c34
VS
39732013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3974
3975 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3976 safeguards. Fixes a crash with i386/pc/console.c.
3977
5177391e
VS
39782013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3979
3980 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3981 and grub_hostfs_init.
3982
64db14b0
VS
39832013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3986 windows method on other platforms without good stat as well.
3987
effe2036
VS
39882013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3989
3990 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3991
82591fa6 39922013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 3993
82591fa6
VS
3994 Make / in btrfs refer to real root, not the default volume.
3995 Modify mkrelpath to work even if device is mounted with subvolid option.
3996
39972013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3998
3999 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
4000 extra_dist.
4001 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
4002 extra_dist.
4003
30fd7198
VS
40042013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
4007 fails.
4008
8d179dae
BC
40092013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
4010
4011 * docs/autoiso.cfg: New file.
4012
3bc9c8cf
VS
40132013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4014
4015 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
4016 COND_GRUB_PE2ELF conditions.
4017
8b46b0ea
VS
40182013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4019
4020 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
4021 "vnd", "rd" and "fd" disks.
4022
442b86de
VS
40232013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4024
4025 Move grub_disk_write out of kernel into disk.mod.
4026
04dea7e6
VS
40272013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4028
4029 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
4030 handling.
4031
40322013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
4033
4034 * grub-core/kern/misc.c (grub_abort): Make static
4035
04dea7e6 40362013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
4037
4038 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
4039 transform invalid unicode codepoints.
4040
04dea7e6 40412013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
4042
4043 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4044 \0 checking.
4045
03dcac7f
VS
40462013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
4049
c81acb7f
VS
40502013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 Consolidate cpuid code.
4053
c1bee646
VS
40542013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4055
4056 Move cpuid code to cpuid.h and TSC code to tsc.c.
4057
f37bf9c7
GS
40582013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4059
4060 * util/grub.d/00_header.in: Don't use LANG if it's not set.
4061
4021132b
GS
40622013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4063
4064 * util/grub-mkconfig.in: Replace $0 with $self.
4065 * util/grub-reboot.in: Likewise.
4066 * util/grub-set-default.in: Likewise.
4067
3ace8d75
BC
40682013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4069
4070 * docs/osdetect.cfg: New file.
4071
1e6ad6a6
BC
40722013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4073
4074 * tests/util/grub-shell.in: Add new --debug option.
4075
188929eb
BC
40762013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4077
4078 * tests/test_unset.in: New test.
4079
7994a09a
BC
40802013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4081
4082 * tests/test_sha512sum.in: New test.
4083
2a8a7585
VS
40842013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4085
4086 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4087 * include/grub/misc.h: Remove strncat.
4088 * grub-core/lib/posix_wrap/string.h: Likewise.
4089
cf8d6bbd
VS
40902013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4091
4092 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4093 Try to handle more than 0xFFFF packets.
4094 Reported by: Bernhard Übelacker <bernhardu>.
4095 He also spotted few overflows in first version of this patch.
4096
6d1fc99a
VS
40972013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4098
4099 * tests/date_unit_test.c: New test.
4100
10bafa1c
VS
41012013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4102
4103 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4104 of first three years after start of validity of unixtime.
4105
b1c6d037
VS
41062013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4107
4108 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4109 division as the one making more sense.
4110 (update_screen): Likewise.
4111 (complete): Likewise.
4112
5f4028d4
VS
41132013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4114
4115 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4116
a2856736
VS
41172013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4118
4119 Make char and string width grub_size_t rather than grub_ssize_t.
4120
0a7e52b2
VS
41212013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4122
4123 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4124 unsigned.
4125 (grub_history_replace): Likewise.
4126
42829573
VS
41272013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4130 appropriate.
4131
3523b8d8
VS
41322013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4133
4134 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4135 appropriate.
4136
d43c6489
VS
41372013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4140 Use unsigned divisions rather than signed variants.
4141
f690f8b0
VS
41422013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4145 unsigned arithmetics.
4146 Add missing break.
4147
74ff2c05
VS
41482013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4151
fb56391e
VS
41522013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4155 rather than signed one.
4156 (recovery): Likewise.
4157
40f29060
VS
41582013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4159
4160 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4161
c64577a5
VS
41622013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4165 than signed.
4166
c16535a8
JM
41672013-10-25 Jon McCune <jonmccune@google.com>
4168
4169 * docs/grub.texi: Cleanup security documentation around signatures.
4170
6673d8e7
VS
41712013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4172
4173 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4174
a105d375
VS
41752013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4176
4177 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4178 than int.
4179
af81ed88
VS
41802013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4181
4182 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4183 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4184 functions when compiling for kernel.
4185
ea899a57
VS
41862013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4187
4188 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4189 unsigned long long when using %llu.
4190
c6dc6fa1
VS
41912013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4194 terminal after updating progress.
4195
ad2dc003
VS
41962013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4199 argument. We don't disable Gate A20 in this code.
4200
b46684ae
VS
42012013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4202
4203 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4204 Conceptually based on change in branch "vbe-on-coreboot".
4205
f70d5c07
RM
42062013-10-24 Robert Millan <rmh@gnu.org>
4207
4208 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4209 numeric constants with their symbolic equivalent.
4210 Taken from branch "vbe-on-coreboot".
4211
bca274b4
VS
42122013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4213
4214 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4215
238f0489
VS
42162013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4217
4218 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4219 divmod64 for offset division.
4220
863c590b
PFS
42212013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4222
4223 Rename .bzrignore to .gitignore. Add "*.o" rule.
4224
4225 * .bzrignore: Renamed to...
4226 * .gitignore: ...this.
4227
84a0e969
PFS
42282013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4229
4230 Add new progress module that displays the load progress of files.
4231
4232 * grub-core/lib/progress.c: New file.
4233 * grub-core/Makefile.core.def (progress): New module.
4234 * grub-core/kern/file.c (grub_file_open): File name added.
4235 * (grub_file_read): Progress hook added.
4236 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4237 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4238 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4239 * include/grub/file.h (struct grub_file): Add progress module members.
4240 * include/grub/term.h (struct grub_term_output): Likewise.
4241 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4242 Terminal velocity added.
4243 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4244 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4245 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4246 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4247 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4248 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4249 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4250 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4251 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4252 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4253 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4254 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4255
0d711431
VS
42562013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 Verify signatures of signatures unless --skip-sig is specified.
4259
f8401f76
VS
42602013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4261
4262 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4263 \0 checking.
4264
4265 Saves 70 bytes on compressed image.
4266
ac1feb61
VS
42672013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4268
4269 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4270 check.
4271
4272 Saves 10 bytes on compressed image.
4273
00f72e89
VS
42742013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4275
4276 * grub-core/kern/misc.c (grub_isprint): Move to ...
4277 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4278
4279 Saves 20 bytes on compressed image due to remving exporting.
4280
067e6ae7
VS
42812013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4284
4285 Saves 5 bytes on compressed image.
4286
64a6c791
VS
42872013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4288
4289 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4290 function get_utf8.
4291
4292 Saves 379 bytes on compressed image.
4293
979d9f52
VS
42942013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4297
1437da54
VS
42982013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4301
4302 Saves 40 bytes on compressed image.
4303
d9ee2269
VS
43042013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4307 mask rather than 64-bit type.
4308
4309 Saves 20 bytes on compressed image.
4310
63efa602
VS
43112013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4314 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4315
47601ffe
VS
4316 Saves 273 bytes on compressed image.
4317
2cc679ad
VS
43182013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4319
4320 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4321 variable length arrays.
4322
4323 Saves 50 bytes on compressed image.
4324
2e4659b8
VS
43252013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4326
4327 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4328
2a40badf
VS
43292013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4330
4331 * grub-core/fs/ufs.c: Remove variable length arrays.
4332
1ba6b9b9
VS
43332013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4336
f3e39341
VS
43372013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 * grub-core/fs/zfs.c: Remove variable length arrays.
4340 Reduces zfs.mod by 160 bytes (208 compressed).
4341
71523935
VS
43422013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4343
4344 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4345
28153eb8
VS
43462013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4347
4348 * grub-core/net/arp.c: Remove variable length arrays.
4349 * grub-core/net/bootp.c: Likewise.
4350 * grub-core/net/dns.c: Likewise.
4351 * grub-core/net/icmp6.c: Likewise.
4352 * grub-core/net/net.c: Likewise.
4353
88ce4cd7
VS
43542013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 * grub-core/fs/ntfs.c: Remove variable length arrays.
4357 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4358 compressed).
4359
66123940
VS
43602013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 * grub-core/fs/hfs.c: Remove variable length arrays.
4363 Reduces hfs.mod by 8 bytes (52 compressed).
4364
0927e5bd
VS
43652013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4366
4367 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 4368 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
4369 compressed).
4370
9c12ac97
VS
43712013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4372
4373 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 4374 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
4375 compressed).
4376
97ec2d71
VS
43772013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 4380 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
4381 compressed).
4382
156e4ea0
VS
43832013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4384
4385 * grub-core/fs/xfs.c: Remove variable length arrays.
4386 Reduces xfs.mod by 40 bytes (43 compressed).
4387
3b502c29
VS
43882013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4389
4390 * grub-core/fs/fshelp.c: Remove variable length arrays.
4391 Reduces fshelp.mod by 116 bytes (23 compressed).
4392
c7037f1d
VS
43932013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4394
4395 * grub-core/normal/completion.c: Remove variable length arrays.
4396 * grub-core/normal/menu_entry.c: Likewise.
4397
4398 Reduces normal.mod by 496 bytes.
4399
a07e6ad0
VS
44002013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4403 by 356 bytes (158 compressed).
4404
2359bf88
VS
44052013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4408 by 364 bytes (169 compressed).
4409
d28e1163
VS
44102013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4411
4412 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4413 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4414 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4415
e89c2d48
VS
44162013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4419 bitmasks to small structures of size chosen to fit in registers.
4420
7abdac8e
VS
44212013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 * conf/Makefile.common: Use -freg-struct-return on i386. This
4424 decreases code size and improves performance.
4425
518864c0
VS
44262013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4429
bbd2b539
VS
44302013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4431
4432 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4433 "(null)" string.
4434 Simplify expressions to save around 256 bytes in kernel.img.
4435 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4436
99519c15
VS
44372013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4440 Use GRUB_UTIL_FD_O_* rather than O_*.
4441
20285765
VS
44422013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4443
4444 Add haiku-specific functions.
4445
887c0bb6
VS
44462013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4449
cd78a56f
VS
44502013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4451
4452 Move stat () and device mode checking into OS-dependent files as
4453 long as performance doesn't suffer.
4454
a4012f07
VS
44552013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4456
4457 Split make_system_path_relative_to_its_root into separate file
4458 relpath.c from getroot.c as it's common between unix and haiku
4459 but otherwise haiku doesn't use any functions from unix getroot.c.
4460
31de274d
VS
44612013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4464 New function.
4465 (grub_util_is_special_file): Likewise.
4466
40346de6
VS
44672013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4470 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4471
d3923ab9
VS
44722013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4475 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4476
663f6eb1
VS
44772013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4480 (load_image): Likewise.
4481
44d1c20a
VS
44822013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * util/grub-render-label.c: Move backend part to ...
4485 * util/render-label.c: ... here.
4486
d0a116ee
VS
44872013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4490 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4491
b47fcae6
VS
44922013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4495
0f7c00c1
VS
44962013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4499 CD-ROM in case when it's declared as having subpartitions.
4500
29013cba
VS
45012013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4502
4503 Don't add -lm on haiku.
4504
4505 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4506 and empty on haiku.
4507 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4508 -lm.
4509
e8559d24
VS
45102013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 * configure.ac: Use -melf_*_haiku as target on haiku.
4513
8104063c
VS
45142013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4515
4516 * Makefile.util.def: Add util/setup.c to extra_dist.
4517
fc3182c7
VS
45182013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4519
4520 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4521 unknown types through.
4522
f90a3cc0
VS
45232013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4524
4525 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4526 (grub_util_check_char_device): Likewise.
4527 * include/grub/emu/getroot.h: Likewise.
4528
1e3e7419
VS
45292013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4530
4531 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4532 memset rather than inline static function.
4533
92c88fc8
VS
45342013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4535
4536 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4537 not doing embedded decompressor.
4538
3cd910a2
VS
45392013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4542 shadowing.
4543 * grub-core/kern/disk.c: Likewise.
4544 * grub-core/kern/misc.c: Likewise.
4545 * include/grub/parser.h: Likewise.
4546 * include/grub/script_sh.h: Likewise.
4547 * include/grub/zfs/zfs.h: Likewise.
4548
7b3aca00
VS
45492013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4550
4551 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4552
97dfe7e4
VS
45532013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4556 defined before trying to use it.
4557
bf919aa9
VS
45582013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4561 warning.
4562
f4ccf29d
VS
45632013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4566 Use __unused__ rather than __used__ on gcc < 3.2.
4567
0d3a6f85
VS
45682013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4569
4570 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4571 gcc < 4.0.
4572 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4573
757e3eb7
VS
45742013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4577
fb320faf
VS
45782013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4579
4580 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4581 * include/grub/emu/misc.h: Likewise.
4582
ea73acd2
VS
45832013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4584
4585 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4586 cur_color.
4587
71237a6f
VT
45882013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4589
4590 * grub-core/tests/checksums.h: Regenerated due to progress bar
4591 get_minimal_size changes.
4592
3d46c22f
BC
45932013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4594
4595 Added `tr' command support.
4596
4597 * grub-core/commands/tr.c: New file.
4598 * grub-core/Makefile.core.def: Build rules for new module.
4599
4600 * tests/grub_cmd_tr.in: New test.
4601 * Makefile.util.def: Build rules for new test.
4602
47e0a61f
VT
46032013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4604
4605 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4606
946fd073
VT
46072013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4608
4609 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4610 * docs/gurb.texi: Likewise.
4611
9c13c576
VT
46122013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4613
4614 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4615 Pixmap highlighted section with east and west slices was displayed
4616 incorrectly due to negative width of the central slice.
4617
ad543f12
VT
46182013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4619
4620 * docs/grub.texi: Graphical options information update.
4621 Removed outdated. Updated current. Inserted missed.
4622
6176a0cd
VS
46232013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 * docs/grub.texi: Mention few new platform-specific commands.
4626
9688cae2
VS
46272013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4630 currently used so this doesn't really have any effect.
4631 Reported by: Douglas Ray <dougray>
4632
f7b69a3f
VS
46332013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4636 compilation but prevents gcc from displaying messages in non-Latin
4637 alphabets.
4638 * conf/Makefile.common: Likewise.
4639
ceca6ddf
HY
46402013-10-16 Hiroyuki YAMAMORI
4641
4642 Handle Japanese special keys.
4643 Reported by: Hiroyuki YAMAMORI.
4644 Codes supplied by: Hiroyuki YAMAMORI.
4645
ac48d334
VT
46462013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4647
4648 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4649
b2b71bff
VT
46502013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4651
4652 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4653 * docs/grub.texi: Likewise.
4654
669fc449
VS
46552013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4656
4657 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4658 value in case of incomplete read.
4659 (grub_util_fd_write): Likewise.
4660
59381678
VS
46612013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4662
4663 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4664
bacfefbb
VS
46652013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4666
4667 * util/grub-editenv.c (create_envblk_file): More from here ...
4668 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4669
f7c49570
VS
46702013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4671
4672 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4673 canonicalize file name before doing the rest.
4674
7b83ca44
VS
46752013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4676
4677 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4678 mingw32.
4679
df1e64c9
VS
46802013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4681
4682 Define grub_util_is_directory/regular/special_file and
4683 use OS-dependent versions rather than to rely on stat().
4684
ec16e026
VS
46852013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * util/grub-mkimage.c: Move backend part to ...
4688 * util/mkimage.c: ... here.
4689
4b4eeb3c
VS
46902013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4691
4692 Allow compilation with mingw64 albeit with warnings due to lack of
4693 %llx/%llu.
4694
4695 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4696 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4697 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4698 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4699 on mingw64.
4700 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4701
f4e0adc0
VS
47022013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4703
4704 Remove leftover references to some of the system headers.
4705
e0127364
VS
47062013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4707
4708 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4709 read.
4710
20d53541
VS
47112013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4714 of strerror.
4715
5a869940
VS
47162013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4717
4718 Split out blocklist retrieving from setup.c to
4719 grub-core/osdep/blocklist.c and add windows implementation since
4720 generic version doesn't work on NTFS on Windows due to aggressive
4721 unflushable cache.
4722
c06c7520
VS
47232013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4726 files.
4727
8f53bb3f
VS
47282013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4729
4730 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4731 Cut tailing newline. Remove arbitrary limitation. Always use
4732 grub_util_tchar_to_utf8.
4733
148f1007
VS
47342013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4735
4736 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4737 * tests/printf_unit_test.c (printf_test): Add %% tests.
4738 Reported by: Paulo Flabiano Smorigo.
4739
af3b06be
VS
47402013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4741
4742 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4743 implement fsync.
4744
27f9d02e
VS
47452013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4748 use nvlist_lookup_string and don't use nvlist_print.
4749
f6a81f0a
VS
47502013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4753 closedir to handle filename charset translation.
4754
d7750b32
VS
47552013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4756
4757 * include/grub/emu/hostdisk.h: Move file operations to
4758 * include/grub/emu/hostfile.h: ... here.
4759
2859196e
VS
47602013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4761
4762 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4763 unicode path.
4764
c018c968
VS
47652013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4768
7e45abce
VS
47692013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4772 and remove export.h.
4773
23934da2
VS
47742013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4775
4776 * grub-core/kern/emu/error.c: Removed.
4777 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4778 explicitly as it's already in libgnu.a.
4779
c11ebcc8
VS
47802013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4781
4782 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4783 config-util.h include.
4784
70671037
VS
47852013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4786
4787 Split emunet into platform-dependent and GRUB-binding parts. Keep
4788 platform-dependent part in kernel for easy access to OS functions.
4789
25ac643a
VS
47902013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4791
4792 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4793 open/read/write.
4794
69ca5876
VS
47952013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4796
4797 * grub-core/osdep/windows/emuconsole.c: New file.
4798
d9d68ef0
AB
47992013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4800
4801 * conf/Makefile.extra-dist: Add osdep/*/init.c
4802
58e211cc
VS
48032013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4804
4805 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4806
588744d0
VS
48072013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4808
4809 * util/grub-probe.c (probe): Separate different drives in hint-str
4810 by spaces and not newlines.
4811 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4812
44016e52
AB
48132013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4814
4815 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4816 Handle CD-ROMs.
4817
6de9ee86
VS
48182013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4819
4820 Pass-through unknown E820 types. It required reorganisation of mmap
4821 module.
4822
f8f3f155
AB
48232013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4824
4825 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4826
b73249d2
VS
48272013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4830 fseeko.
4831
dac86b18 48322013-10-14 qwertial <qwertial>
4833
4834 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4835
17614b84
JM
48362013-10-14 Jon McCune <jonmccune@google.com>
4837
4838 * docs/grub.texi: Document new signatures possibility.
4839
6de292cb
VS
48402013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4843
84379b61
VS
48442013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4845
4846 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4847 missing prototype.
4848 (grub_util_tchar_to_utf8): Likewise.
4849
21d85db1
VS
48502013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4853 * grub-core/kern/emu/main.c: Add missing include.
4854 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4855 Don't call grub_util_init_nls.
4856 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4857 Likewise.
4858
66a1b3ee
VS
48592013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4860
4861 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4862 stat.
4863
e19bec17
VS
48642013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4865
4866 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4867
ee8c1b29
VS
48682013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4869
4870 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4871
bb338aaf
VS
48722013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 Add a wrapper for fopen. On unix-like systems just pass-through. On
4875 windows use unicode version.
4876
ae5540d3
VS
48772013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4878
4879 Move set_program_name and init_nls to host_init. On windows
4880 fix in this fuction console and argument charset as well.
4881
4cd3c4fe
AB
48822013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4883
4884 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4885 GRUB_ENABLE_CRYPTODISK.
4886
4887 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4888 GRUB_ENABLE_CRYPTODISK.
4889 * util/grub-mkconfig_lib.in: Likewise.
4890
78170f3e
CCZ
48912013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4892
4893 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4894
3414b6c0
MC
48952013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4896
4897 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4898 error when enabling debug.
4899
6d0740e8
IB
49002013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4901
4902 * configure.ac: Use -melf_*_obsd on openbsd.
4903
ff2d4dc4
VS
49042013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4905
4906 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4907
eac6ae82
VS
49082013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * include/grub/misc.h: Use gnu_printf rather than printf as format
4911 template since our functions are independent of libc.
4912
ba9baabe
VS
49132013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * util/grub-setup.c (setup): Move copying of partition table as
4916 futher up as possible to avoid possible overwrite by floppy routines.
4917
49182013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
4919
4920 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4921
145e2369
VT
49222013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4923
4924 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4925 * docs/grub.texi: Likewise.
4926
3530bc9d
VS
49272013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4928
4929 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4930 it's mostly unused. Move vestiges to the callers.
4931
fb9f59c3
VS
49322013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4935 version of salt and hash. Use grub_snprintf rather than snprintf.
4936
9be1c255
VS
49372013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4938
4939 * docs/grub.texi: Fix problem with braces.
4940
ed8c0887
VS
49412013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4942
4943 * conf/Makefile.extra-dist: Fix extra-dist list.
4944 * grub-core/Makefile.core.def: Likewise.
4945
f72ab14e
VS
49462013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4947
4948 * docs/grub.texi: Document disk names used on Windows and AROS.
4949
2fe53a22
VS
49502013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4951
4952 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4953 with AROS devs.
4954 * grub-core/osdep/aros/hostdisk.c: Likewise.
4955
71c1d67a
VS
49562013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 Avoid including hostfile.h when not necessarry as it pulls
4959 in OS-specific headers which may redefine generic names
4960 like "far".
4961
ad297ec7
VT
49622013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4963
4964 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4965 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4966 scrollbar_bottom_pad
4967 * docs/grub.texi: Likewise.
4968
6e9e5dc9
VT
49692013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4970
4971 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4972
761c718b
VS
49732013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4974
4975 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4976
37149a2f
VS
49772013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4978
4979 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4980 Removed.
4981 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4982 Made static.
4983
3837a151
VS
49842013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4987 leftover.
4988
caca1c70
VS
49892013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 Move OS-specific driver configuration to grub_util_fd_open. This
4992 moves OS-dependent parts from kern/emu/hostdisk.c to
4993 grub-core/osdep/*/hostdisk.c.
4994
f7676b70
VS
49952013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4996
4997 * util/grub-mkimage.c (generate_image): Use size_t instead of
4998 grub_size_t.
4999 * util/grub-mkimagexx.c (locate_sections): Likewise.
5000 (load_image): Likewise.
5001
22f98db2
VS
50022013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
5005 size_t.
5006 (grub_util_write_image): Likewise.
5007
b102ce69
VS
50082013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5009
5010 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
5011 get random when no RNG is available.
5012 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
5013
acbbe5cb
VS
50142013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5015
5016 * include/grub/util/lvm.h: Removed.
5017
2112fb3f
VS
50182013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5019
5020 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
5021 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
5022
79f78fbf
VS
50232013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5024
5025 * grub-core/osdep/windows/sleep.c: Add missing config.h.
5026
c2e6f705
VS
50272013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5028
5029 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
5030
aabe433a
VS
50312013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 * grub-core/net/drivers/emu/emunet.c: Move to ..
5034 * grub-core/osdep/linux/emunet.c: ..here.
5035
9a2c903f
VS
50362013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5037
5038 * util/ieee1275/ofpath.c: Move to ...
5039 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
5040 * grub-core/osdep/basic/ofpath.c: ..here.
5041
4a445f58
VS
50422013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5043
5044 Move password-querying (util-version) routines to grub-core/osdep.
5045
c1ca4244
VS
50462013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5047
5048 Move sleep routines to grub-core/osdep.
5049
672fa55e
VS
50502013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 Move OS-dependent files to grub-core/osdep and document it.
5053
a5b0365a
VS
50542013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
5057 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
5058
29072e99
VS
50592013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5060
5061 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5062
f8772ea7
VS
50632013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5064
5065 * util/misc.c: Remove leftover inclusion of malloc.h.
5066
a1a315e7
VS
50672013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5068
5069 * include/grub/setjmp.h: Remove leftover GRUBOF.
5070
cef86fef
VS
50712013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5072
5073 * util/raid.c: Fold into ...
5074 * util/getroot_linux.c: ... here. Make all functions static.
5075
c4cf25ee
VS
50762013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5077
5078 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5079 macros to GRUB ones.
5080
53a5f5c2
VT
50812013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5082
5083 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5084 occasional bug. If there are too many boot entries or too low
5085 scrollbar height then we need to use another formula to calculate
5086 the position and size of the scrollbar thumb.
5087
de300af2
VS
50882013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5089
c4cf25ee 5090 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 5091
c5827364
VT
50922013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5093
5094 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5095 * docs/grub.texi: Likewise.
5096
dd2ed8b0
VT
50972013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5098
5099 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5100 viewport.
5101
7286c384
VT
51022013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5103
ffdfc1f3
VT
5104 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5105 minimal width calculations.
7286c384 5106
ea547e14
VS
51072013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5108
5109 * docs/grub.texi: Update note on colors on emu console.
5110
b726be76
VS
51112013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5112
5113 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5114 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5115 it's FS and not GRUB limitation.
5116
a5f6ade6
VS
51172013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5118
5119 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5120
3b0f3aa2
VS
51212013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5122
5123 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5124
1db38304
ST
51252013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5126
5127 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5128 kernels by version order.
5129
fb295fc0
VS
51302013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5131
5132 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5133
47345010
VS
51342013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5135
5136 Add AROS hostdisk and getroot routines.
5137
bf25f879
VS
51382013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5139
5140 Make cryptodisk and diskfilter probe data retrievable programmatically
5141 and not just printable.
5142
24ca4512
VS
51432013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5144
5145 Split random retrieving code into separate files.
5146
c7c177f0
VS
51472013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5148
5149 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5150 R_ARM_V4BX.
5151
d71b45ae
VS
51522013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5153
5154 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5155 condition.
5156 * grub-core/tests/fake_input.c: Likewise.
5157 * grub-core/tests/cmdline_cat_test.c: Likewise.
5158
e44b9a83
VS
51592013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 * grub-core/video/capture.c: Do not do finalization when .fini
5162 is called as there is explicit capture_end.
5163
4fa60739
VS
51642013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5167 changing windows to avoid crash.
5168
17c8bc37
VS
51692013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5170
5171 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5172
9d4d7977
VS
51732013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 * po/exclude.pot: Add several strings to exclude.
5176
0caa407c
VS
51772013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5178
5179 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5180
9ae393da
VS
51812013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5182
5183 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5184 ./util/grub-gen-asciih.c to exclude list.
5185
498d5033
VS
51862013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5187
5188 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5189 and don't mark error strings for translation.
5190
7d93298f
VS
51912013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5192
5193 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5194 properly in case of missing block size.
5195
b2cae20c
VS
51962013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5197
5198 * grub-core/lib/arm/setjmp.S: Add missing license section.
5199
3896d6b4
VS
52002013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5201
5202 * po/swiss.sed: Add replacement for key names and for term computer.
5203
ebc1da55
VT
52042013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5205
5206 * grub-core/gfxmenu/theme_loader.c: New global options for the
5207 theme background image handling. desktop-image-scale-method,
5208 desktop-image-h-align, desktop-image-v-align.
5209 * grub-core/gfxmenu/view.c: Likewise.
5210 * include/gfxmenu_view.h: Likewise.
5211 * include/bitmap_scale.h: Proportional scale functions introduced.
5212 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5213 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5214 cases of unexpected input variables for scale functions.
5215 * docs/grub.texi: Updated documentation for new options.
5216
c5739143
VS
52172013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5218
5219 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5220
be74aeb3
VT
52212013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5222
5223 * grub-core/tests/checksums.h: Corrected due to changes in
5224 bilinear interpolation function.
5225
d999ac72
VT
52262013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5227
5228 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5229 to eliminate artefacts in bilinear interpolation.
5230
2b131610
VS
52312013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5232
5233 * grub-core/video/readers/tga.c: Support paletted tga.
5234
de6e5ff8
VS
52352013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5236
5237 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5238 incorrect cbcr setting when in color mode.
5239
fa31ee9c
VS
52402013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5241
5242 * grub-core/video/readers/png.c: Support paletted images and clean up
5243 greyscale support.
5244
e84f8188
VS
52452013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5248 usage of wrong table which resulted in mishandling of 4-byte
5249 sequences.
5250
52512013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
5252
5253 * grub-core/term/terminfo.c: Add Home and End key sequences.
5254
d72bff09
VS
52552013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5256
5257 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5258 Fix formula for computing total number of bytes.
5259
29648c5d
VS
52602013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5261
5262 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5263 image processing, fix big-endian and support grayscale.
5264
4a876492
VS
52652013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5266
5267 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5268 Correctly will with maximum transparency when using index color.
5269
3ccf16df
VS
52702013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 * grub-core/video/readers/png.c: Support grayscale
5273
52742013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
5275
5276 * grub-core/video/readers/jpeg.c: Support grayscale.
5277
3ccf16df 52782013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
5279
5280 * grub-core/commands/loadenv.c: Support skipping signature check
5281 and variable names filtering.
5282
30b7f58f
VS
52832013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5284
5285 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5286 * grub-core/kern/emu/hostfs.c: Likewise.
5287 * util/getroot_unix.c: Likewise.
5288
bab7b1eb
VS
52892013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5290
5291 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5292 Migrate all explicit defines to this new one.
5293
43b1c99d
VS
52942013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5295
5296 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5297 grub_util_fd_strerror when using grub_util_fd_*.
5298 (grub_util_fd_open_device): Likewise.
5299 (grub_util_biosdisk_read): Likewise.
5300 (grub_util_biosdisk_write): Likewise.
5301 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5302 (grub_util_fd_strerror): Likewise.
5303 (grub_util_fd_sync): Likewise.
5304 (grub_util_fd_close): Likewise.
5305 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5306 (grub_util_fd_close): Likewise.
5307 (grub_util_fd_strerror): Likewise.
5308 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5309 function proto rather than macro.
5310 (grub_util_fd_sync): Likewise.
5311 (grub_util_fd_open): Likewise.
5312 (grub_util_fd_strerror): New proto.
5313
e8fd80bc
VS
53142013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5315
5316 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5317 platforms on which it doesn't work.
5318
bf645fda
VS
53192013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5322 stat immediately to where it's used.
5323
5177ba14
VS
53242013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5325
5326 * util/getroot.c (grub_util_check_block_device): Move to ...
5327 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5328 * util/getroot.c (grub_util_check_char_device): Move to ...
5329 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5330
9db826e1
VS
53312013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5332
5333 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5334 disk closing logic.
5335
49120085
AB
53362013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5337
5338 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5339
b3328b68
AB
53402013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5341
5342 * docs/grub.texi (File name syntax): Document ZFS filenames
5343 (/volume@snapshot/...).
5344
3fff48ab
VS
53452013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5346
5347 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5348 Always return full path. Fixes a problem with mkrelpath.
5349
39cfdaa9
PFS
53502013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5351
5352 * util/grub-install.in: Add GPT PReP support.
5353 * util/grub-probe.c (probe): Support GPT partition type.
5354 (main): Support -t gpt_parttype.
5355
7c680e1f 53562013-09-23 Aleš Nesrsta <starous@volny.cz>
5357
5358 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5359
890bdabe
MM
53602013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5361
5362 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5363
9c262ff9
TH
53642013-09-23 Tim Hardeck <thardeck>
5365
5366 * util/grub.d/10_hurd.in: Filter out character for the class.
5367 * util/grub.d/10_kfreebsd.in: Likewise.
5368 * util/grub.d/10_linux.in: Likewise.
5369 * util/grub.d/20_linux_xen.in: Likewise.
5370
d755342a
MC
53712013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5372
5373 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5374 "changed".
5375
68b77707
JT
53762013-09-23 Josh Triplett <josh@joshtriplett.org>
5377
5378 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5379 boot partition.
5380
efa68bfa
VS
53812013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5382
5383 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5384 doesn't use posix_wrap. Keep literal -fno-builtin however.
5385
d9104204
VS
53862013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5387
5388 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5389
c248781a 53902013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
53912013-09-23 neil
5392
5830df88 5393 * configure.ac: Do not enable -Wmissing-noreturn as its
5394 usefulness is limited and creates problems on some OS notably with
5395 code generated by bison.
5396
53972013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
53982013-09-23 neil
5399
5400 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 5401 supported by all gcc and when it is, it's already enabled by -Wall.
5402
621bed69
VS
54032013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5404
5405 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5406 desactivated use of EDID at all.
5407
71764dc8 54082013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
54092013-09-23 neil
5410
5411 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5412 video if no text is available.
5413
affce7d4 54142013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
54152013-09-23 neil
5416
5417 * configure.ac: Substitute TARGET_RANLIB.
5418
54192013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
54202013-09-23 neil
affce7d4
VS
5421
5422 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5423
5424 Based on patches from AROS.
5425
0e8daad0 54262013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 54272013-09-23 neil
0e8daad0
VS
5428
5429 * grub-core/Makefile.am: Override STRIP and RANLIB.
5430 * configure.ac: compute TARGET_RANLIB.
5431 * INSTALL: Document TARGET_RANLIB
5432
5433 Based on patches from AROS.
5434
3f7d9c82
VS
54352013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5436
5437 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5438 that floppies are unpartitioned.
5439
bca8873a
VS
54402013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5441
5442 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5443 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5444
54452013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5448 less nice but more portable.
5449 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5450
a47a78be
VS
54512013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5452
5453 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5454 for cheat_fd.
5455 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5456 functions.
5457 (grub_cryptodisk_cheat_insert): Likewise.
5458 (grub_cryptodisk_close): Likewise.
5459
e85a5d5c
VS
54602013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5461
5462 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5463 Use windows path for DEFAULT_DIRECTORY.
5464
dad9fa6b
VS
54652013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5466
5467 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5468 difference was likely just gcc version, not anything mingw-related.
5469
7e518ca8
VS
54702013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5471
5472 Use Winapi on both cygwin and mingw32 to share more code between both.
5473
d68d0157
AB
54742013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5475
5476 * util/grub-install.in: Add --grub-editenv option.
5477 * util/grub-install_header (grub_compress_file): Explicitly check for
5478 plain file to avoid cp error.
5479
775b284d
AB
54802013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5481
5482 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5483 names; fix LVM driver name (lvm, not lv).
5484 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5485 names.
5486
3ff4063d
VS
54872013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5488
5489 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5490 files rather than one file with loads of #if's.
5491 * util/getroot.c: Likewise.
5492
287faafe
VS
54932013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5494
5495 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5496
d1983764
VS
54972013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5498
5499 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5500 GNU/Hurd to the list of checked PRNG.
5501
15ce95c4
VS
55022013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5503
5504 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5505
207862dd 55062013-09-21 Ales Nesrsta <starous@volny.cz>
5507
7c680e1f 5508 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 5509
63653cfd
VS
55102013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5511
5512 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5513 * grub-core/disk/lvm.c: Add LVM UUIDs.
5514 * util/getroot.c: Use LVM UUIDs whenever possible.
5515
f5d3e7ef
AB
55162013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5517
5518 * docs/grub.texi (Networking commands): Add documentation for
5519 network related commands.
5520
53c6b7d6
VS
55212013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5522
5523 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5524 to determine if device is handled by devmapper.
5525 (convert_system_partition_to_system_disk): Likewise.
5526 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5527 already done in grub_util_open_dm.
5528
e70d6736
LL
55292013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5530
5531 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5532 Clean up stack manipulation (sync_caches_armv*)
5533
90379808
VS
55342013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5535
5536 * util/lvm.c: Remove since unused. Remove remaining references.
5537
386701a8
VS
55382013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5539
5540 Handle the case of partitioned LVM properly.
5541
5542 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5543 Stop on meeting LVM, mpath or DMRAID.
5544 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5545 (read_device_map): Likewise.
5546 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5547 device is full disk rather than erroring out on LVM and similar cases.
5548
53070787
VS
55492013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5550
5551 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5552
1bc783bd
VS
55532013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5554
5555 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5556 4K before the end.
5557 Reported by: Leif Lindholm
5558
436ad5c3
PW
55592013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
55602013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5561
5562 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5563 codes.
5564
607319c9
CW
55652013-09-18 Colin Watson <cjwatson@ubuntu.com>
5566
5567 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5568 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5569
d404d154
DR
55702013-09-18 Douglas Ray <dougray@cpan.org>
5571
5572 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5573 as secure.
5574
28851ef6
AN
55752013-09-18 Aleš Nesrsta <starous@volny.cz>
5576
5577 * docs/grub.texi: Fix broken link.
5578
897c3bc6
MC
55792013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5580
5581 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5582 to break endless loop.
5583
f1630459
VS
55842013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5585
5586 * util/grub-fstest.c: Fix several printf formats.
5587 * util/grub-mkimage.c: Likewise.
5588 * util/grub-mkimagexx.c: Likewise.
5589 * util/grub-script-check.c: Likewise.
5590
64463dfd
VS
55912013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5592
5593 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5594 error.
5595
48972495
VS
55962013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5597
5598 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5599
5dd5e64b
VS
56002013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5601
5602 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5603 removed in current versions cygwin_conv_*.
5604
1c1f31e5
VS
56052013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 * configure.ac: Disable efiemu runtime on cygwin.
5608
c546a259
VS
56092013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5612 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5613
81690478
VS
56142013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5615
5616 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5617 error message.
5618
6b87c10a
VS
56192013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5620
5621 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5622 windows variant.
5623 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5624 data.
5625
8f0baaac
VS
56262013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5627
5628 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5629 when on x86 and not cygwin.
5630 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5631 -Wl,-melf_x86_64.
5632
b224c266
VS
56332013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5634
5635 * configure.ac: Set CPP to build one when checkoing for freetype for
5636 build.
5637
506b336b
VS
56382013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5639
5640 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5641 [!GRUB_BUILD]: Remove has_argument.
5642
8c8c87b7
VS
56432013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5644
5645 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5646 Replace with a dummy.
5647
7dc5ca13
VS
56482013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5649
5650 * configure.ac: Don't change host_os from mingw to cygwin.
5651
c3302aa5
VS
56522013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5653
5654 * configure.ac: Change target_os from windows to cygwin.
5655
7b780018
VS
56562013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5657
5658 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5659
5660 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5661 (build-grub-gen-asciih): Likewise.
5662 (build-grub-gen-widthspec): Likewise.
5663 * Makefile.util.def (grub-pe2elf): Remove.
5664 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5665 * configure.ac: Separate tests for build.
5666 Move ./build-grub-pe2elf to grub-core.
5667 Fix typo.
5668 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5669 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5670 defined.
5671 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5672 constants.
5673 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5674 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5675 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5676
984cfd8a
VS
56772013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5680 mingw32 as well based on grub_util_get_disk_size.
5681 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5682 grub_util_get_fd_size.
5683 (sync): Removed.
5684 (fsync): Moved to ...
5685 * grub-core/kern/emu/misc.c (fsync): ... here.
5686
f82d79c9
VS
56872013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5688
5689 * include/grub/mm.h (grub_extend_alloc): Remove.
5690 * grub-core/loader/i386/pc/plan9.c: Use own version of
5691 grub_extend_alloc with appropriate types.
5692
fd7dd66d
VS
56932013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5694
5695 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5696
43ffba7c
VS
56972013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5698
5699 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5700
3c7eac44
VS
57012013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5702
5703 Fix dependencies on cygwin.
5704
5705 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5706 dependencies when used and defined.
5707 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5708
bdb5ba47
VS
57092013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5712 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5713
ed7fbf43
VS
57142013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5715
5716 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5717 implementation available to cause compile-time rather than runtime
5718 error.
5719
fc46e9fc
VS
57202013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5721
5722 * util/grub-fstest.c: Don't check for symlinks on windows.
5723
7f68269a
VS
57242013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5725
5726 * INSTALL: Mention unavailability of man pages when cross-compiling.
5727
8ed358e0
VS
57282013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5731 and gcry_log_bug.
5732 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5733
fc97214f
VS
57342013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5735
5736 * INSTALL: Document cross-compilation.
5737 * acinclude.m4: Determine whether nm support -P and --defined-only.
5738 * configure.ac: Add TARGET_ to all variables pertaining to target
5739 that don't have it yet.
5740 * gentpl.py: Likewise.
5741 * grub-core/Makefile.am: Likewise.
5742 * grub-core/genmod.sh.in: Likewise.
5743 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5744 as well.
5745
ca1fb563
IB
57462013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5747
5748 * configure.ac: Remove -Wempty-body. It's not essential and needs
5749 recent gcc.
5750
0031b229
IB
57512013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5752
5753 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5754 * util/getroot.c: Likewise.
5755
54ea2f44
VS
57562013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 * grub-core/disk/ahci.c: Add needed explicit cast.
5759 * grub-core/lib/backtrace.c: Likewise.
5760 * grub-core/net/ip.c: Likewise.
5761 * grub-core/net/tcp.c: Likewise.
5762 * grub-core/net/udp.c: Likewise.
5763
3c601f8c
VS
57642013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5765
5766 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5767
1d679dda
VS
57682013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5769
5770 * util/import_gcry.py: Add final newline in visibility.h.
5771
00c28dd9
VS
57722013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5773
5774 * conf/Makefile.common: Fix typo.
5775
32af299a
VS
57762013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5777
5778 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5779
e733cf52
VS
57802013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5781
5782 * Makefile.am (widthspec.h): Fix typo.
5783 * util/grub-gen-widthspec.c: Likewise.
5784
c6b066f2
VS
57852013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5786
5787 Move ascii.h and widthspec.h generation to a separate build-time-only
5788 tool.
5789
ad1fe3f9 57902013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5791
5792 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5793 Always fill bootdisk info and improve check for NetBSD disklabel.
5794
92a52dd4
VS
57952013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 * conf/Makefile.extra-dist: Add util/bin2h.c.
5798 Reported by: floppym.
5799
b2e9d276
VS
58002013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5801
5802 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5803
7b966834
VS
58042013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5805
5806 * configure.ac: Disable unifont and starfield if no freetype was found.
5807
d5c1eef1
VS
58082013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5809
5810 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5811 on NetBSD and OpenBSD.
5812
66345b50 58132013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
5814
5815 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5816
66345b50 58172013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
5818
5819 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5820 reduced. Inheritant options are processed during the theme loading.
5821
66345b50 58222013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
5823
5824 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5825
369508b3
AS
58262013-08-14 Avik Sil <aviksil@in.ibm.com>
5827
5828 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5829
58302013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
5831
5832 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5833 using qemu.
5834
6f27a3f6
PFS
58352013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5836
5837 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5838 remove-potcdate.sed.
5839
c6ed362a
AB
58402013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5841
5842 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5843 unused attribute from pull argument.
5844
5e7d9464
AB
58452013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5846
5847 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5848 memory leak.
5849
dea55e2a
AB
58502013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5851
5852 * util/getroot.c (pull_lvm_by_command): add --separator option
5853 to vgs call to disable padding of output to 10 characters.
5854
f0b94ded
VS
58552013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5856
5857 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5858 here ...
5859 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5860 here.
5861
b828fb5d
VS
58622013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5863
5864 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5865 length.
5866
7c9d0c39
VS
58672013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5868
5869 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5870 full Canadian cross. Tested with build=x86_64, host=arm,
5871 target=ppc-ieee1275.
5872
816719c8
VS
58732013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5874
5875 * configure.ac: Error if no $BUILD_CC could be found.
5876 Reported by: DevHC.
5877
2af2353b
VS
58782013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5879
5880 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5881 i386-multiboot.
5882
797abd0a
VS
58832013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5884
5885 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5886 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5887
36e87d25
CW
58882013-08-13 Colin Watson <cjwatson@ubuntu.com>
5889
5890 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5891 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5892 falling back to the partition device, otherwise a later call to this
5893 function may fail spuriously.
5894 Reported by Axel Beckert. Fixes Debian bug #708614.
5895
273349fe
GS
58962013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5897
5898 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5899
418f86c6
GS
59002013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5901
5902 Prevent shadowing of stdlib's devname(3) on BSD.
5903
5904 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5905 and devlast to diskname and disklast, respectively.
5906
c137aea0
CW
59072013-08-11 Colin Watson <cjwatson@ubuntu.com>
5908
5909 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5910
272dc8df 59112013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
5912
5913 * docs/grub.texi: Introduce terminal window position options:
5914 terminal-left: terminal window's left position
5915 terminal-top: terminal window's top position
5916 terminal-width: terminal window's width
5917 terminal-height: terminal window's height
5918 terminal-border: terminal window's border width
5919 * grub-core/gfxmenu/theme-loader.c: Likewise.
5920 * include/grub/gfxmenu_view.h: Likewise.
5921 * po/exlude.pot: Likewise.
5922 * grub-core/gfxmenu/view.c: Likewise.
5923 Also updated minimal window size.
5924 Also terminal_sanity_check function has been introduced.
272dc8df
VT
5925 * grub-core/tests/checksums.h: Update (terminal window height
5926 is adjusted now for low resolution screen)
b4743461 5927
748a4533
VS
59282013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5929
5930 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5931 position).
5932
fca5f944
VS
59332013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5934
5935 * po/exclude.pot: Add few recent exceptions.
5936
4f47d809
VS
59372013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5938
5939 * tests/grub_func_test.in: Add unicode.pf2.
5940
a62ae90c
VS
59412013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5942
5943 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5944 standard rather than noral color, in line with other terminals.
5945
4ed41392
VS
59462013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5947
5948 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5949 analysis.
5950
3719fbc5
VS
59512013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5954
459b1d91
VS
59552013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5956
5957 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5958 inappropriate printf.
5959
f4e1ab9d
AB
59602013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5961
5962 * .bzrignore: Remove grub-core/lib/dtc-grub,
5963 grub-core/Makefile.libfdt.def
5964 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5965
fa471bfa
VS
59662013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 * include/grub/video.h (grub_video_register): Keep double-linked as
5969 well as single-linked invariants.
5970 Reported by: qwertial.
5971
d65be02b
VS
59722013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5973
5974 * grub-core/commands/nativedisk.c (get_uuid): Handle
5975 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5976
ba8bc620
VT
59772013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5978
5979 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5980 maximum of NW, N, NE heights instead of N's height and maximum of
5981 NW, W, SW widths instead of W's width. (So the box will be always
5982 correctly drawn)
5983
4f0ad029
GS
59842013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5985
5986 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5987 Fix misuse of variable count.
5988
43d53b72
LL
59892013-07-18 Leif Lindholm <leif.lindholm@arm.com>
59902013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
59912013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 5992
43d53b72
LL
5993 New ports to arm-uboot and arm-efi.
5994 Mostly by Leif Lindholm with some additions from
5995 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 5996
88f8d146
VS
59972013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
6000 and not before.
6001 Reported by: Leon Drugi.
6002
3f42504c
VS
60032013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6004
6005 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
6006 Reported by: Paulo Flabiano Smorigo.
6007
d110499b
VT
60082013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6009
6010 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
6011
a8674ad3
VT
60122013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6013
6014 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
6015
286fe4b3
VS
60162013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6017
6018 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
6019
1bd57aa3
VS
60202013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6021
6022 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
6023
7a87d69f
AB
60242013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
6025
6026 * grub-core/net/bootp.c: Export net_* variables.
6027 * grub-core/net/net.c: Likewise.
6028
b2182299
VS
60292013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6030
6031 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
6032
795b3dc0
VS
60332013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6034
6035 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
6036
68714c43
VS
60372013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
6040
af211bab
VS
60412013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6042
6043 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
6044
0036f02d
MM
60452013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6046
6047 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
6048 <= 0.
6049
6d0ddff3
MM
60502013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6051
6052 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
6053 functions.
6054
038016f4
MM
60552013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6056
6057 * grub-core/fs/zfs/zfs_lz4.c: New file.
6058 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
6059
776bdce2
MM
60602013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6061
6062 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6063
c71dbd40
MM
60642013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6065
6066 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6067 (check_pool_label): Likewise.
6068 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6069
60702013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
6071
6072 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6073
8e67b50f
AB
60742013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6075
6076 * docs/grub.texi (Commands): Document postition parameters
6077 for menuentry command.
6078
f5ae3717
AB
60792013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6080
6081 * util/grub-mknetdir.in: Remove stray line from help output.
6082
9c28da2a
VS
60832013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 Remove early sm712 init as there is no reason for it (the "watchdog"
6086 effect was due to wrong GPIO map).
6087
139072b8
VS
60882013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6089
6090 * grub-core/commands/pcidump.c: Remove static variables.
6091
c6a61bda
VS
60922013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6093
6094 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6095
51369614
VS
60962013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6097
6098 * configure.ac: Move delimiter after the infos.
6099
efa8640a
VS
61002013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6101
6102 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6103
6f80a7b2
VS
61042013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6105
6106 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6107 not filling whole 8x16 space.
6108
a2371e19
VS
61092013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6112
64fce2d8
VS
61132013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * configure.ac: Indicate which liblzma is used if any.
6116
eb272d84
PW
61172013-06-21 Paul Wise <pabs3@bonedaddy.net>
61182013-06-21 Craig Sanders <savannah@taz.net.au>
6119
6120 * util/grub-reboot.in: Document submenu usage.
6121
a9e5abee
CW
61222013-06-25 Colin Watson <cjwatson@ubuntu.com>
6123
6124 * .bzrignore: Update with a number of new test-related files.
6125
e639c204
CW
61262013-06-25 Colin Watson <cjwatson@ubuntu.com>
6127
6128 * util/grub-script-check.c: Fail on scripts containing no
6129 commands, to guard against corrupted grub-mkconfig setups that
6130 produce no useful output.
6131 * tests/grub_script_no_commands.in: New test.
6132 * Makefile.util.def (grub_script_no_commands): Add.
6133 Reported by Hans Putter. Fixes Debian bug #713886.
6134
a4c89b17
AB
61352013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6136
6137 * grub-core/disk/diskfilter.c: Forgot to remove comment
6138 from previous commit.
6139
5b06b53c
AB
61402013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6141
6142 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6143 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6144
702da5c9
AB
61452013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6146
6147 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6148
aa62a5b7
AB
61492013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6150
6151 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6152 rescan diskfilter devices until nothing new is found.
6153
4aa237c8
VS
61542013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6157
93d8479b
VS
61582013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6159
6160 Don't try to detect cbfs on *-emu.
6161
837222cc
VS
61622013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6163
6164 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6165
99c971af
VS
61662013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6167
6168 Add support for processed coreboot payload chainloading.
6169
e6930a45
VS
61702013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6171
6172 Enable coreboot information commands even when not loaded as
6173 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6174
5027af38
VS
61752013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6176
6177 Support for cbfs. Also factor out the part which is common
6178 for all archives to a separate module. This splits tar from cpio
6179 as they are very different but keeps cpio, cpio_be, odc and newc
6180 together since they're very similar.
6181
a5b55c4b
DM
61822013-06-15 David Michael <fedora.dm0@gmail.com>
6183
6184 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6185 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6186
0301a8b3
VS
61872013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6188
6189 * tests/grub_script_eval.in: Really add the eval test.
6190
3d84cb17
VS
61912013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6192
6193 Move flavour-specific parts out of common cpio.c file and
6194 rename remaining to cpio_common.c
6195
593e430c
AB
61962013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6197
6198 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6199 off new function grub_script_execute_new_scope. Change callers to use
6200 either of them as appropriate.
6201 * grub-core/commands/eval.c: New command eval.
6202 * docs/grub.texi (Commands): Document it.
6203
63c29849
AB
62042013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6205
6206 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6207 to fetch values when listing.
6208
cc284112
AB
62092013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6210
6211 Fix make dist on non-pc.
6212
62132013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
6214
6215 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6216 without a device name.
6217
69544d1e
VS
62182013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 Remove enable_executable_check as it's not needed anymore.
6221 Reported by: dougray.
6222
96dbe648
VS
62232013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6224
6225 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6226 ambigouos RAID before discovering RAIDs on top of it.
6227 Reported by: bodom.
6228
ccfc0bdb
VS
62292013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6230
6231 Fix typo (failback vs fallback).
6232
f2587088
AB
62332013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6234
6235 * util/grub.d/30_os-prober.in: Add support for probing EFI
6236 System Partition (as of os-prober 1.58).
6237
cec5cf0c
VS
62382013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6239
6240 * configure.ac: Add yet another path to unifont. For parabola.
6241
e40b4596
JT
62422013-05-30 Josh Triplett <josh@joshtriplett.org>
6243
6244 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6245 handling to copy the killed characters to the kill buffer as
6246 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6247 stored as char. Eliminates UCS4 truncation and corruption
6248 observed when killing characters with Ctrl-u and yanking them
6249 back with Ctrl-y.
6250
fc4c4fdd
VS
62512013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6252
6253 Detach optional parts of gfxterm and integrate in with coreboot init.
6254
6570b205
VS
62552013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6256
6257 Move blit and fill dispatcher to appropriate files to decrease export
6258 and relocation overhead.
6259
b8323067
VS
62602013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6261
6262 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6263 functions.
6264
3cc1878f
VS
62652013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * grub-core/Makefile.am: Fix compilation problem with some
6268 automake versions.
6269
4b80e43c
VS
62702013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6273
57e0c20c
VS
62742013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6275
6276 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6277 automake versions.
6278
4fd42c53
VS
62792013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6280
6281 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6282 SSDT.
6283
1e908b34
RS
62842013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6285
6286 * grub-core/partmap/dfly.c: New partition map.
6287
1359e474
VS
62882013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6289
6290 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6291 checking.
6292 Reported by: Francesco Lavra.
6293
17806392
AB
62942013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6295
6296 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6297 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6298 false conditions.
6299 * conf/Makefile.common: define dist_grubconf_DATA
6300
cdce14fa
VS
63012013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6302
6303 Progressively skip menu elements on small terminals rather
6304 than crashing.
6305
c8d6cc3c
VS
63062013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6307
6308 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6309 to avoid losing last column.
6310
a73b31ce
VS
63112013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6312
6313 * po/exclude.pot: Add missing string "%C".
6314
1202c764
VS
63152013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6316
6317 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6318 after the test.
6319
50268344
VS
63202013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 * util/grub-install.in: Gettextize "Not found" message.
6323
62b15edf
VS
63242013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6325
6326 Fix distfiles list.
6327 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6328
63292013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
6330
6331 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6332 present.
6333 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6334
709ad61b
VS
63352013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6338
d128901a
VS
63392013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6340
6341 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6342 attribute since structure is not necessarily aligned.
6343
34b22f5c
AB
63442013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6345
6346 * docs/grub.texi (Device syntax): Clarify description of network
6347 drives.
6348
0f7e980b
VS
63492013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6352 for vasprintf presence.
6353
30b03dc2
VS
63542013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6355
6356 * util/grub-install.in: Handle efibootmgr presence check.
6357 Reported by: Leif Lindholm.
6358
0dc11c08
VS
63592013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6362 new strings to translate.
6363
f8024c3f
VS
63642013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6367 yet another string (pun intended) to translate.
6368
b4c1da62
VS
63692013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6370
6371 * po/POTFILES-shell.in: Autogenerate it.
6372
0ef7478b
VS
63732013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6374
6375 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6376
8200fa15
VS
63772013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6378
6379 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6380 misnomer.
6381
091945b2
AB
63822013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6383
6384 * docs/grub.texi (Network): Add description of net_default_interface,
6385 net_default_ip and net_default_mac. Rewrite variables description
6386 to emphasize that they are per-interface.
6387
0e7b2e32
VS
63882013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6389
6390 New test: cmdline and cat.
6391
16f7c8f6
VS
63922013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6393
6394 * grub-core/commands/cat.c: Show UTF-8 characters.
6395
3e912fda
VS
63962013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 * conf/Makefile.common: Poison float and double on non-emu.
6399
ee0220bc
VS
64002013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6401
6402 * configure.ac: Don't disable extended registers on emu.
6403
89e0240c
VS
64042013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6405
6406 * configure.ac: Don't use extended registers on x86_64.
6407 Reported by: Peter Jones.
6408
e56d9637
VS
64092013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6410
6411 * grub-core/term/efi/console.c: Fix compile error.
6412
8098f655
VS
64132013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6414
6415 Compressed HFS+ support.
6416
16940e07
VS
64172013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6420 pixel".
6421
c5dbc13d
VS
64222013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6423
6424 Menu color test.
6425
011f8ae8
VS
64262013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6427
6428 * grub-core/tests/setjmp_test.c: New test.
6429
2aa072d7
VS
64302013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6431
6432 New variables 'net_default_*' to determine MAC/IP of default interface.
6433
43fe02cb
VS
64342013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6435
6436 * tests/gettext_strings_test.in: A test to check for strings not
6437 marked for translation.
6438
bed06142
VS
64392013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6440
6441 * autogen.sh: Exclude unused libgcrypt files from translation.
6442
fb2666b5
VS
64432013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6444
6445 Simplify few strings.
6446
d22840ec
VS
64472013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6448
6449 Mark few forgotten strings for translation.
6450
e34092fd
VS
64512013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6452
6453 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6454 rather than printf.
6455
47cf82b4
VS
64562013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6457
6458 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6459 rather than printf.
6460 * grub-core/video/readers/tga.c: Likewise.
6461
1eed0e6e
VS
64622013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6463
6464 * tests/priority_queue_unit_test.cc: New test.
6465
c5b7697b
VS
64662013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6467
6468 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6469 than printf.
6470
5945c2f8
AB
64712013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6472
6473 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6474 variable for one time boot menu entry.
6475
fa292343
B
64762013-05-05 Bean <bean123ch@gmail.com>
6477
6478 * grub-core/commands/testspeed.c: New command testspeed.
6479
310d4214
VS
64802013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6481
6482 Factor-out human-size printing.
6483
85002bf3
VS
64842013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6485
6486 Agglomerate more mallocs to speed-up gfxterm.
6487
22b06e96
VS
64882013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6489
6490 Speed-up gfxterm by slightly agglomerating mallocs.
6491
b7c036bc
VS
64922013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6493
6494 More video checks.
6495
92323d1f
VS
64962013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6497
6498 Speed-up gfxterm by saving intermediate results in index+alpha
6499 format.
6500
0fb356a3
VS
65012013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6502
6503 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6504 test.
6505
44dea3f9
VS
65062013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6507
6508 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6509 line of timeout as it may contain the rest of long line.
6510
14af86e4
VS
65112013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6512
6513 * grub-core/normal/main.c: Fix freed memory dereference.
6514
03f7c8c3
VS
65152013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6516
6517 Fix several memory leaks.
6518
c686014c
VS
65192013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6520
6521 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6522
0788a695
VS
65232013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6524
6525 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6526
daf01d61
VS
65272013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 Fix test -a and -o precedence.
6530 Reported by: adrian15.
6531
82ae74d7
VS
65322013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6533
6534 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6535
8cec7bd4
AB
65362013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6537
6538 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6539 and add it as source to functional_test module.
6540
aa73d688
VS
65412013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6542
6543 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6544
c104b6f9
VS
65452013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6546
6547 New series of tests for gfxterm and gfxmenu.
6548
7391c4d5
VS
65492013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6550
6551 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6552 the theme path relative to $prefix/themes.
6553
cff50118
VS
65542013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6555
6556 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6557 Fix order bug.
6558 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6559
7c332bdc
VS
65602013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6561
6562 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6563 descriptor.
6564
a4f9a5ff
VS
65652013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6568 grub_gfxmenu_timeout_notifications.
6569 (grub_gfxmenu_view_destroy): Likewise.
6570
b5a2114d
VS
65712013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6572
6573 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6574
a8905e8a
VS
65752013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6576
6577 Several fixes to ieee1275 and big-endian video.
6578
813c1622
VS
65792013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 Add missing exports on mips.
6582
3f3e7326
VS
65832013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6586 if no unifont is found.
6587 Restore original keyboard.
6588
095accd1
VS
65892013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6590
6591 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6592 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6593
50361660
VS
65942013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 First automated video test (running videotest and comparing results)
6597
cd0f6eec
VS
65982013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6599
6600 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6601 instead of 2 to have full RGB/CMY test pattern.
6602
3f9634e5
VS
66032013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 Add few more tests.
6606
583e5b64
VS
66072013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6610 ARCS. All users updated.
6611
aa7bcb99
VS
66122013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6613
6614 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6615
95ef1a54
VS
66162013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6617
6618 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6619
46546fc5
VS
66202013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6623 Reported by: qwertial.
6624
3476e0ef
VT
66252013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6626
6627 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6628 with syntax "XXX deg"/"XXX °".
6629
96f33fed
VS
66302013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6631
6632 Make PCI init in i386-qemu port more robust.
6633
66342013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
6635
6636 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6637 cached view is reused.
6638 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6639 open boot menus.
6640
c53b4e67
VS
66412013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 Unify more code in grub-install_header.
6644
f7457fb2
VS
66452013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 Add few new tests.
6648
e2f27a8c
VS
66492013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6650
6651 Enforce disabling of firmware disk drivers when native drivers kick in.
6652
ef9d8cd5
VS
66532013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6654
6655 * grub-core/commands/nativedisk.c: Customize the list of modules on
6656 platform. Don't try to search for disks already using native drivers.
6657
f7bf6c31
VS
66582013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6661 platforms.
6662
bdc4add8
VS
66632013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6666 handling of variables containing backslash.
6667
e9e46c9a
VS
66682013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6669
6670 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6671 dereference.
6672 Reported by: qwertial.
6673
0e90dee8
VS
66742013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6675
6676 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6677
e0aacf24
VS
66782013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6679
6680 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6681 dereference.
6682 Reported by: qwertial.
6683
3c0003c3
VS
66842013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6687
adb7d667
VS
66882013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6691
7cd0df84
VS
66922013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6693
6694 New command `nativedisk'.
6695
02adbb93
VS
66962013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6697
6698 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6699 * grub-core/loader/i386/bsd.c: Likewise.
6700
9fb0fd4f
VS
67012013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6704
bd69257a
VS
67052013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6708 grub_get_unaligned16 rather than shifts.
6709
178c2764
VS
67102013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 * grub-core/kern/file.c: Use const char * rather than casting to
6713 non-const.
6714
eadfad24
VS
67152013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 * grub-core/commands/probe.c: Add missing grub_device_close.
6718
9f73ebd4
VS
67192013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6720
6721 * INSTALL: Document linguas.sh.
6722
965fa829
VS
67232013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6724
6725 Remove POTFILES.in and regenerate it in autogen.sh.
6726
d417ddc4
VS
67272013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 Move --directory/--override-directorry to grub-install_header and unify.
6730
f97ec546
VS
67312013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 * grub-core/term/morse.c: Macroify dih and dah.
6734
b2d7470c
PFS
67352013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6736
6737 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6738
141e2a78
VS
67392013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6740
6741 * grub-core/term/ns8250.c: Systematically probe ports by writing
6742 to SR before using them.
6743
1dd70ebd
PFS
67442013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6745
6746 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6747 disks.
6748 (check_sas): Get sas_adress info.
6749
c796a107
VS
67502013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6751
6752 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6753 ports.
6754
43168646
LD
67552013-04-27 Leon Drugi <eyak>
6756
6757 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6758 BSS clearing.
6759
e7b8fd08
VS
67602013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 Core compression test.
6763
17f9fd29
VS
67642013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6765
6766 Implement grub_machine_get_bootlocation for ARC.
6767
dc2a6c8b
VS
67682013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 Improve AHCI detection and command issuing.
6771
f25a2ba6
VS
67722013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6773
6774 Fix pseries test.
6775
a6393224
VS
67762013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6777
6778 Make 'make check' work on emu.
6779
db99fbe8
VS
67802013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 Replace libcurses with our own vt100 handling for the ease of testing
6783 and decreasing prerequisites.
6784
b24ca7cd
VS
67852013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6788
63314aa4
VS
67892013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6792 compile when not needed.
6793
c1b00fff
VS
67942013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6795
6796 * tests/pseries_test.in: New test.
6797
f93e89ef
VS
67982013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6799
6800 Add test to check that different boot mediums work.
6801
c4b456d3
VS
68022013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6803
6804 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6805 ofw limited ISO support.
6806
5fe67f39
VS
68072013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6808
6809 * configure.ac: Fix loongson conditional.
6810
7f63a64f
VS
68112013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6812
6813 Enable mipsel-arc.
6814
b04b5990
VS
68152013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6816
6817 Add serial on ARC platform.
6818
88d2f302
VS
68192013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6820
6821 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6822 commit.
6823
86eb23bc
VS
68242013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 * tests/partmap_test.in: Add missing double semicolon.
6827
eec3bb75
VS
68282013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6829
6830 * util/grub-mkrescue.in: Fix loongson filename.
6831
e0810df3
VS
68322013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6833
6834 * util/grub-mkrescue.in: Move all files that don't have a location
6835 set in stone under /boot/grub. Use ISO hard links rather than copies
6836 to save some space.
6837
65a6b30b
VS
68382013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6839
6840 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6841 bogus SLOF values.
6842
6aff0107
VS
68432013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6844
6845 Make check work on mips-arc.
6846
5e013e56
VS
68472013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 * util/grub-mkrescue.in: Alias sashARCS as sash.
6850
d1989e2e
VS
68512013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6852
6853 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6854 it's serial.
6855
1a25e72c
VS
68562013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6857
6858 * util/grub-install.in: Fix target fo qemu_mips.
6859 Fix extension on EFI.
6860
a59a9826
VS
68612013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6864 in front of chosen entry to mark it even if highlighting is lost.
6865
1a40f80c
VS
68662013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6869 gfxpayload=keep if cbfb is active.
6870
e343549c
VS
68712013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6872
6873 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6874
45fbd9a2
VS
68752013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6876
6877 Add missing video ids to coreboot and ieee1275 video.
6878
ab1440bd
VS
68792013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6880
6881 * util/grub-mkrescue.in: Add mips-arc support.
6882
cdeb8324
VS
68832013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6884
6885 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6886
8528c879
VS
68872013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6888
6889 Move mips-arc link address. Previous link address was chosen
6890 in belief that RAM on SGI platforms grows down while in fact it
6891 grows up from an unusual base.
6892
17fca573
VS
68932013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6894
6895 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6896 Fix a type which prevented CD-ROM and floppy boot.
6897
d178788e
VS
68982013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6899
6900 Support coreboot framebuffer.
6901
6902 * grub-core/video/i386/coreboot/cbfb.c: New file.
6903
fe4c3e7e
VS
69042013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6905
6906 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6907 detecting too small regions.
6908
ec2dd179
VS
69092013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6910
6911 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6912
872dac83
VS
69132013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6914
6915 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6916 Remove dprintf.
6917 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6918
90ec4b7f
VS
69192013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6920
6921 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6922 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6923 * grub-core/loader/powerpc/ieee1275/linux.c
6924 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6925
f32555dd
VS
69262013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6929 Look for /boot-rom as well as /rom/boot-rom.
6930
38649799
VS
69312013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6932
6933 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6934 handling when creating text_layer failed.
6935 * grub-core/video/video.c (grub_video_create_render_target):
6936 Set result to 0 on error.
6937 (grub_video_delete_render_target): Do not dereference NULL.
6938
aeace7f7
VS
69392013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6940
6941 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6942 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6943 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6944 (grub_linux_load64): Mask out 2 high bits.
6945
4eafa175
AB
69462013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6947
6948 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6949 more place.
6950
daaa64bd
VS
69512013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 Add support for pseries and other bootinfo machines to grub-mkrescue.
6954
6955 Tested by: Paulo Flabiano Smorigo.
6956
d0d2daa6
VS
69572013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6958
6959 * util/grub-mkrescue.in: Add GPT for EFI boot.
6960
b193e100
VS
69612013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6962
6963 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6964 It improves performance in qemu.
6965
a0f8f3ac
VS
69662013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6967
6968 * build-aux/snippet: Add missing gnulib files.
6969
284df0e2
AB
69702013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6971
6972 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6973
740201f3
AB
69742013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6975
6976 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6977
a7e03923
PJ
69782013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
69792013-04-15 Peter Jones <pjones@redhat.com>
6980
6981 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6982 sectors.
6983 Based on patch by Peter Jones.
6984
25fc51a8
VS
69852013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6986
6987 Fix DMRAID partition handling.
6988
88017d47
VS
69892013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6990
6991 * tests/grub_cmd_date.in: Skip on sparc64.
6992
fa7d914e
VS
69932013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6994
6995 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6996 firmware error messages.
6997
cbe57a48
VS
69982013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6999
7000 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
7001 source and destination differ.
7002
21aecce0
VS
70032013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7004
7005 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
7006 detection.
7007
25092d29
VS
70082013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
7011 match config-util.h to avoid warnings and increase compatibility.
7012
79451522 70132013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 70142013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
7015
7016 Add option to compress files on install/image creation.
7017
78b7d77b
VS
70182013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 * docs/grub-dev.texi: Rearrange menu to match the section order.
7021 Reported by: Bryan Hundven.
7022
cc2fa5ec
VS
70232013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7024
7025 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
7026
b49fe879
VS
70272013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7028
7029 Move GRUB out of system area when using xorriso 1.2.9 or later.
7030
5351da81
VS
70312013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7032
7033 * tests/grub_cmd_date.in: Add missing exit 1.
7034
c9d586ea
VS
70352013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7036
7037 * tests/partmap_test.in: Skip on sparc64.
7038
3f729741
VS
70392013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7040
7041 Support grub-shell on sparc64.
7042
8ca86b3a
VS
70432013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7044
7045 Support mkrescue on sparc64.
7046
aa1af9bb
VS
70472013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7048
7049 Allow IEEE1275 ports on path even if it wasn't detected automatically.
7050 Needed on OpenBIOS due to incomplete device tree.
7051
ac4fea79
VS
70522013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
7055 would be otherwise excluded.
7056
70572013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
7058
7059 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7060 Inline name defines used only once.
7061
fe22b071
VS
70622013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7063
7064 Fix memory leaks in ofnet.
7065 Reported by: Francesco Lavra.
7066
9d21381b
VS
70672013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7068
7069 * docs/man/grub-glue-efi.h2m: Add missing file.
7070
07aec23c
VS
70712013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7072
7073 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7074
67ab8353
VS
70752013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7076
7077 Better support Apple Intel Macs on CD.
7078
ba44ca6d
VS
70792013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7080
7081 Replace stpcpy with grub_stpcpy in tools.
7082
bbdd6305
VS
70832013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7084
7085 Handle Japanese special keys.
7086 Reported by: Hiroyuki YAMAMORI.
7087 Codes supplied by: Hiroyuki YAMAMORI.
7088
8573d302
VS
70892013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7090
7091 * util/grub-mkimage.c: Document memdisk implying --prefix.
7092
d70dbab7
VS
70932013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7096 much we can do about it anyway.
7097
51a4c3e3
AN
70982013-04-12 Aleš Nesrsta <starous@volny.cz>
7099
7100 Fix handling of split transfers.
7101
92c8f58d
VS
71022013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7103
7104 * grub-core/net/http.c: Fix bad free.
7105
b7d17a49
VS
71062013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7107
7108 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7109 than buffer size.
7110
a3d566d4
VS
71112013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7114
a936af56
VS
71152013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 * tests/util/grub-shell.in: Fix it on powerpc.
7118
51212234
VS
71192013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7120
7121 Turn off QEMU ACPI-way since new releases don't have shutdown port
7122 anymore.
7123
a21eec9e
VS
71242013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7125
7126 * docs/grub.texi: Update coreboot status info.
7127
e3734b84
VS
71282013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 * tests/grub_cmd_date.in: New test for datetime.
7131
f9d40055
VS
71322013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7133
7134 * tests/partmap_test.in: Fix missing qemudisk setting.
7135
dbc56d8f
VS
71362013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7137
7138 Support i386-ieee1275 grub-mkrescue and make check on it.
7139
a79b8a15
VS
71402013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7141
7142 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7143 feature for it.
7144
48f39bb4
VS
71452013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7146
7147 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7148 GRUB_CMDLINE_XEN_DEFAULT.
7149 Reported by: Marc Warne (GigaTux) <gigatux>
7150
053cfcdd
VS
71512013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7152
7153 Import new gnulib.
7154
93cd84df
VS
71552013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7156
7157 Use ACPI shutdown intests as traditional port was removed.
7158
f4b1fa4f
AB
71592013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7160
7161 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7162 distinction.
7163
49818a59
VS
71642013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7165
7166 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7167 Fix few warining messages and leaks while on it.
7168
9277a306
AB
71692013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7170
7171 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7172 links under grub-core/lib/libgcrypt-grub/mpi.
7173
d5e2a158
VS
71742013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 Fix ia64-efi image generation on big-endian machines. Deduplicate
7177 some code while on it.
7178 Reported by: Leif Lindholm.
7179
18866643
AB
71802013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7181
7182 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7183 as extra_dist.
7184
ca53deb8
AB
71852013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7186
7187 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7188
d4c4b8e1
BH
71892013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7190
7191 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7192 texinfo-5.1.
7193
47043f95
VS
71942013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 * grub-core/normal/term.c: Few more fixes for menu entry editor
7197 rendering.
7198 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7199
a3216068
VS
72002013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7201
7202 * grub-core/normal/term.c: Few more fixes for menu entry editor
7203 rendering.
7204 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7205
21026747
AB
72062013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7207
7208 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7209 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7210
59624ca8
AB
72112013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7212
7213 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7214 instead of hardcoding grub.mo.
7215
1f44478c
FN
72162013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7217
7218 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7219
eeada7b1
VS
72202013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7221
7222 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7223 grub-core/disk/geli.c.
7224
132867de
VS
72252013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7226
7227 * util/grub-mkfont.c: Prefer enum to #define.
7228
de73de17
VS
72292013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7230
7231 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7232
1865baa7
VS
72332013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7234
7235 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7236
ce7d92a9
VS
72372013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7238
7239 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7240
52eab656
VS
72412013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7242
7243 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7244
98b23b95
VS
72452013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7246
7247 * include/grub/bsdlabel.h: Use enums.
7248
0467a5dd
VS
72492013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 Move GRUB_CHAR_BIT to types.h.
7252
16cc9f03
AB
72532013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7254
7255 * docs/grub.texi: Document more user commands.
7256
3152aecb
AB
72572013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7258
7259 * docs/grub.texi: Document menuentry --id option.
7260
c506fc30
FL
72612013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7262
7263 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7264
aa428238
VS
72652013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7266
7267 Unify file copying setup across different install scripts. Add
7268 options for performing partial install.
7269
efe0cdda
PJ
72702013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
72712013-04-04 Peter Jones <pjones@redhat.com>
7272
7273 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7274
f75835bd
VS
72752013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7276
7277 Use TSC as a possible time source on i386-ieee1275.
7278
2cd5ce6c
VS
72792013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7280
7281 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7282 Init err.
7283
c9625630
VS
72842013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7285
7286 * util/grub-setup.c (setup): Handle some corner cases.
7287
be008941
VS
72882013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7289
7290 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7291
1a78d573
VS
72922013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7293
7294 * grub-core/commands/verify.c: Save verified file to avoid it being
7295 tampered with after verification was done.
7296
db8ff59f
VS
72972013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7300 reported width by one to compensate for curesor algorithm problem.
7301
91bf46b1
VS
73022013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 Fix screen corruption in menu entry editor and simplify the code
7305 flow while on it.
7306
a7b1d693
AB
73072013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7308
7309 * util/grub-mount.c (fuse_init): Return error if fuse_main
7310 failed.
7311
31df9ad8
FL
73122013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7313
7314 * include/grub/elf.h: Add missing ARM relocation codes and fix
7315 existing ones.
7316
07f392eb
VT
73172013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7318
7319 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7320
9efd73ec 73212013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
73222013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7325 into account when calculating radius.
7326
73272013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
7328
7329 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7330
4985ddaa
VT
73312013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7332
7333 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7334
8c3635ff
RS
73352013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7336
7337 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7338 missing closing bracket.
7339
74a35e69
RS
73402013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7341
7342 * INSTALL: Mention xorriso requirement.
7343
40f1c000
AB
73442013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7345
7346 * grub-core/commands/verify.c: Fix hash algorithms values for
7347 the first three hashes - they start with 1, not with 0.
7348
e75fdee4
VS
73492013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7350
7351 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7352 Try terminating EFI services several times due to quirks in some
7353 implementations.
7354
33028f4c
CW
73552013-03-26 Colin Watson <cjwatson@ubuntu.com>
7356
7357 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7358 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7359 BankField extended opcodes.
7360 (get_sleep_type): Add minimal scope handling (just enough to
7361 handle setting the scope to the root path).
7362 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7363 * include/grub/acpi.h: Add enumeration values for Event, Device,
7364 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7365
33871a10
VT
73662013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7367
7368 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7369 memory leak.
7370
8990963a
VS
73712013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7372
7373 * grub-core/disk/ahci.c: Give more time for AHCI request.
7374
daae8f9e
VS
73752013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7376
7377 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7378 command.
7379
6a7fb94b
VS
73802013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7381
7382 Replace the region at 0 from coreboot tables to available in BSD
7383 memory map.
7384
ff99babd
VS
73852013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7386
7387 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7388 non-BIOS platforms.
7389
30d6b1b2
VS
73902013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7391
7392 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7393 platforms.
7394
6ccd0b31
VS
73952013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7398 handling of multi-device filesystems.
7399
23c9cc04
VS
74002013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7403 platforms.
7404
ce50dbd7
VS
74052013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7406
7407 Add new 'proc' filesystem framework and put luks_script into it.
7408
d975e8d5
VS
74092013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7410
7411 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7412 and qemu.
7413
e73ba5e8
VS
74142013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7415
7416 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7417
92750e4c
VS
74182013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7419
7420 Add ability to generate newc additions on runtime.
7421
0ec45a68
VS
74222013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7423
7424 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7425 description.
7426
320abd43
VS
74272013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7428
7429 * po/POTFILES.in: Regenerate.
7430
d7a6506e
VS
74312013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7432
7433 * grub-core/commands/verify.c (hashes): Add several hashes
7434 from the spec.
7435
8fe05def
VS
74362013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7437
7438 Slight improve in USB-related boot-time checkpoints.
7439
524e2766
VS
74402013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7441
7442 * grub-core/commands/boottime.c: Fix copyright header.
7443
cc19857a
VS
74442013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7445
7446 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7447 coreboot tables content. Support for cbmemc.
7448
ef8810e9
VS
74492013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7450
7451 Fix a conflict between ports structures with 2 controllers of
7452 same kind.
7453
e9dabdfa
VS
74542013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 * include/grub/boottime.h: Add missing file.
7457
f6df57d2
VS
74582013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7459
7460 Initialize USB ports in parallel to speed-up boot.
7461
d745dda7
VS
74622013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7463
7464 Fix USB devices not being detected when requested
7465 due to delayed attach.
7466
e5a2dd7b
VS
74672013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7468
e744219b
VS
7469 Implement boot time analysis framework.
7470
74712013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7472
7473 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
7474 descriptor to just receive it as argument rather than endpoint
7475 address.
7476
5dd6f587
VS
74772013-03-19 Aleš Nesrsta <starous@volny.cz>
7478
7479 Better estimate the maximum USB transfer size.
7480
2f1071d5
VS
74812013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7482
7483 Resend a packet if we got the wrong buffer in status.
7484
46ecfc49
VS
74852013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7488 multiplication rather than division.
7489
ea811130
VS
74902013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7491
7492 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7493 than divisions.
7494
d2789cf0
VS
74952013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7496
7497 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7498 operations to have intended shifts and not divisions.
7499
a9c94590
VS
75002013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7503 intended shifts rather than division.
7504
84cfe81b
VS
75052013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7506
7507 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7508 computation for some years before epoch. Avode confusing division
7509 while on it.
7510
21344ef6
VS
75112013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7512
7513 * grub-core/video/i386/pc/vbe.c
7514 (grub_video_vbe_print_adapter_specific_info): Replace division by
7515 shifts.
7516
3f2b4d1a
VS
75172013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7518
7519 Adjust types in gdb module to have intended unsigned shifts rather than
7520 signed divisions.
7521
3dac5878
VS
75222013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7523
7524 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7525 maximum size is 4G - 1 on hfs
7526
5341c0fb
VS
75272013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7528
7529 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7530
fc3ff2a2
VS
75312013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7534 function.
7535
81455e8e
AB
75362013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7537
7538 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7539 causing gcc error with gcc 4.7.1.
7540
efd4f117
NZ
75412013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7542
7543 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7544 dereference null pointer. While the code is technically correct, gcc
7545 may eliminate a null check if pointer is already dereferenced.
7546
e11645f4
NZ
75472013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7548
7549 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7550 OOM check.
7551 * grub-core/normal/term.c (read_terminal_list): Likewise.
7552
77468368
VS
75532013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 Lift up core size limits on some platforms. Fix potential memory
7556 corruption with big core on small memory systems. Document remaining
7557 limits.
7558
f6b58fe5
VS
75592013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7560
7561 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7562 gotoxy to 0,0.
7563
19ce697d
VS
75642013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7565
7566 Remove all trampoline support. Add -Wtrampolines when
7567 present. Remove symbols used for trampolines to make
7568 link fail if trampolines are present.
7569
73b5d90f
VS
75702013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7571
7572 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7573 append out of its parent.
7574
cb758e96
VS
75752013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7576
7577 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7578 parent.
7579
3188131f
VS
75802013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7583 all vars to a macro. All users updated.
7584
e42b2514
VS
75852013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7588 i386-ieee1275.
7589
83e1a1a1
VS
75902013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7591
7592 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7593
1d5a880f
VS
75942013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7597
6e4146c4
VS
75982013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7599
7600 Move to more hookless approach in IEEE1275 devices handling.
7601
99fcda8a
VS
76022013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7603
7604 * grub-core/kern/term.c (grub_term_normal_color),
7605 (grub_term_highlight_color): Add back lost defaults.
7606
73bf57e2
VS
76072013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 Make elfload not use hooks. Opt for flags and iterators instead.
7610
7f8c105f
VS
76112013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7612
7613 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7614 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7615
396d4091
VS
76162013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7617
7618 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7619
76202013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7621
7622 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7623 hook pass-through parameter. All users updated and unnested.
7624
74a27421
VS
76252013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7626
7627 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7628 out of its parent.
7629
b46d4213
VS
76302013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 * grub-core/fs/hfs.c: Remove nested functions.
7633
e114c3cc
VS
76342013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7635
7636 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7637 the context through.
7638 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7639
f9b7d780
VS
76402013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 * util/grub-editenv.c (list_variables): Move print_var out of its
7643 parent.
7644
ca9c2608
VS
76452013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7648 function.
7649
5d983f5f
VS
76502013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * grub-core/gentrigtables.c: Make tables const.
7653
3056d3e7
VS
76542013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7655
7656 Remove nested functions from videoinfo iterators.
7657
e2303774
VS
76582013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7659
7660 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7661 for 64-bit platforms.
7662
f42e3a2f
VS
76632013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7664
7665 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7666 a FOR_CHILDREN macro.
7667
be174e5e
VS
76682013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7669
7670 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7671 platform from firmware path.
7672
0789b672
VS
76732013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7674
7675 Enable linux16 on non-BIOS systems for i.a. memtest.
7676
7677 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7678 correctly.
7679 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7680
005a9c32
VS
76812013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7682
7683 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7684 Fix end of table condition.
7685
ff2b3cd9
VS
76862013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7689 out of its parent.
7690
4fc40ff8
VS
76912013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7692
7693 * grub-core/fs/jfs.c: Remove nested functions.
7694
be42d97a
VS
76952013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7696
7697 * grub-core/fs/minix.c: Remove nested functions.
7698
99373ce4
VS
76992013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7700
7701 * grub-core/fs/iso9660.c: Remove nested functions.
7702
5aec2afe
VS
77032013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7706 of parent function.
7707
6c69e691
VS
77082013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 * util/grub-fstest.c: Remove nested functions.
7711
43c91882
VS
77122013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7713
7714 * grub-core/loader/machoXX.c: Remove nested functions.
7715
4eb8b756
CW
77162013-02-27 Colin Watson <cjwatson@ubuntu.com>
7717
7718 Remove nested functions from disk and file read hooks.
7719
7720 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7721 (struct grub_disk): Add read_hook_data member.
7722 * include/grub/file.h (struct grub_file): Likewise.
7723 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7724 argument.
7725
7726 Update all callers.
7727
df6da5a5
AB
77282012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7729
7730 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7731 Fix off by one error in enumerating extended partitions.
7732
21aecde5
AB
77332013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7734
7735 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7736 memory leak if device name is not found.
7737
f1a19118
AB
77382013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7739
7740 * grub-core/normal/menu_entry.c (update_screen): remove
7741 unused variable `off' which caused scroll down arrow to be always shown.
7742
958bfd20
AB
77432013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7744
7745 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7746 access to unallocated memory.
7747
b7b78edb
AB
77482013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7749
7750 * Makefile.util.def: Add partmap/msdos.c to common library.
7751 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7752 * grub-core/disk/ldm.c: Check for existence of
7753 GRUB_PC_PARTITION_TYPE_LDM.
7754
28d468d6
VS
77552013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7756
7757 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7758 sizes and display sector size.
7759
d55ffb02
VS
77602013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7761
7762 Implement new command cmosdump.
7763
b5ea6ce0
VS
77642013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7765
7766 Support Openfirmware disks with non-512B sectors.
7767
7768 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7769 size of the disk.
7770 * (grub_ofdisk_get_block_size): New function.
7771 * (grub_ofdisk_prepare): Use the correct block size.
7772 * (grub_ofdisk_read): Likewise.
7773 * (grub_ofdisk_write): Likewise.
7774 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7775 New proto.
7776
cc0e476f
VS
77772013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7778
7779 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7780
c5dbdc33
VS
77812013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7782
7783 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7784 on first error.
7785
3f078c0f
VS
77862013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7787
7788 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7789 freeing it.
7790
66a93674
VS
77912013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7792
7793 Implement USBDebug (full USB stack variant).
7794
c9f0c134
VS
77952013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7796
7797 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7798 unless they have unexpected values.
7799
cfe1288b
VS
78002013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7801
7802 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7803 grub_print_error.
7804
e42b9969
VS
78052013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7806
7807 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7808 zero-out of port structure.
7809
cf94fd62
VS
78102013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7811
7812 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7813 of extended attributes.
7814
f81ef4b5
AB
78152013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7816
7817 * util/grub-install.in: change misleading comment about
7818 device.map creation
7819
af18fdb4
VS
78202013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7821
7822 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7823 when menu highlight color isn't set.
7824
08bcec50
M
78252013-01-27 C. Masloch <pushbx@38.de>
7826
7827 Improve FreeDOS direct loading support compatibility.
7828
7829 * include/grub/i386/relocator.h (grub_relocator16_state):
7830 New member ebp.
7831 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7832 variable.
7833 (grub_relocator16_boot): Handle %ebp.
7834 * grub-core/lib/i386/relocator16.S: Likewise.
7835 * grub-core/loader/i386/pc/freedos.c:
7836 Load BPB to pass kernel which partition to load from.
7837 Check that kernel file is not too large.
7838 Set register dl to BIOS unit number as well.
7839
7782b8a6
CW
78402013-01-22 Colin Watson <cjwatson@ubuntu.com>
7841
7842 * util/grub-reboot.in (usage): Document the need for
7843 GRUB_DEFAULT=saved.
7844 * util/grub-set-default.in (usage): Likewise.
7845 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7846
e661c180
VS
78472013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7848
7849 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7850 than defining WORDS_BIGENDIAN manually.
7851
1c22ca9a
VS
78522013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7853
7854 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7855 invariants.
7856
d44892fe
CW
78572013-01-21 Colin Watson <cjwatson@ubuntu.com>
7858
7859 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7860 nested.
7861 (blit_comb: add_device_width): Likewise.
7862
5fdbaed1
CW
78632013-01-21 Colin Watson <cjwatson@ubuntu.com>
7864
7865 Remove nested functions from USB iterators.
7866
7867 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7868 (grub_usb_controller_iterate_hook_t): Likewise.
7869 (grub_usb_iterate): Add hook_data argument.
7870 (grub_usb_controller_iterate): Likewise.
7871 (struct grub_usb_controller_dev.iterate): Likewise.
7872
7873 Update all implementations and callers.
7874
4250985a
VS
78752013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7876
7877 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7878 margin when not needed.
7879
7d8848f3
VS
78802013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7881
bc136973 7882 Make color variables global instead of it being per-terminal.
7d8848f3
VS
7883
78842013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7885
bc136973
VS
7886 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7887 asterisk.
7d8848f3 7888
ed12a003
CW
78892013-01-21 Colin Watson <cjwatson@ubuntu.com>
7890
7891 Fix powerpc and sparc64 build failures caused by un-nesting memory
7892 map iterators.
7893
6a0db449
CW
78942013-01-21 Colin Watson <cjwatson@ubuntu.com>
7895
7896 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7897 parameter declarations.
7898
ccd86b21
VS
78992013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7900
7901 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7902
822b726b
VS
79032013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7904
7905 Improve spkmomdem reliability by adding a separator between bytes.
7906
115c2cc1
CW
79072013-01-21 Colin Watson <cjwatson@ubuntu.com>
7908
7909 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7910 an Acer registration utility with several sightings in the wild.
7911 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7912
fc524edf
CW
79132013-01-21 Colin Watson <cjwatson@ubuntu.com>
7914
7915 Remove nested functions from filesystem directory iterators.
7916
7917 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7918 (struct grub_fs.dir): Add hook_data argument.
7919
7920 Update all implementations and callers.
7921
53d3e4e3
CW
79222013-01-21 Colin Watson <cjwatson@ubuntu.com>
7923
7924 * docs/grub.texi (Multi-boot manual config): Fix typo for
7925 "recommended".
7926
c821711f
LL
79272013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7928
7929 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7930 until after its use in generate_image.
7931
6a0debbd
CW
79322013-01-20 Colin Watson <cjwatson@ubuntu.com>
7933
7934 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7935 initrd size to addr_min, since the initrd will be allocated after
7936 this address.
7937
f41e08db
AB
79382013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7939
7940 * conf/Makefile.common: Fix autogen rules to pass definition
7941 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7942
77529e0f
LL
79432013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7944
7945 * include/grub/elf.h: Update ARM definitions based on binutils.
7946
b879aa7b
VS
79472013-01-20 Aleš Nesrsta <starous@volny.cz>
7948
7949 Split long USB transfers into short ones.
7950
8eb8284d
AB
79512013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7952
7953 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7954 is interrupted by ESC.
7955
08dad2dc
VS
79562013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7957
7958 * util/grub-script-check.c (main): Uniform the error message.
7959
6c724b85
CW
79602013-01-20 Colin Watson <cjwatson@ubuntu.com>
7961
7962 Remove nested functions from ELF iterators.
7963
25239370
CW
79642013-01-20 Colin Watson <cjwatson@ubuntu.com>
7965
7966 Remove nested functions from device iterators.
7967
7968 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7969 (grub_arc_iterate_devs): Add hook_data argument.
7970 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7971 (struct grub_ata_dev.iterate): Add hook_data argument.
7972 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7973 (grub_device_iterate): Add hook_data argument.
7974 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7975 (struct grub_disk_dev.iterate): Add hook_data argument.
7976 (grub_disk_dev_iterate): Likewise.
7977 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7978 Likewise.
7979 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7980 Likewise.
7981 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7982 type.
7983 (struct grub_partition_map.iterate): Add hook_data argument.
7984 (grub_partition_iterate): Likewise.
7985 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7986 (struct grub_scsi_dev.iterate): Add hook_data argument.
7987
7988 Update all callers.
7989
6c0314d6
CW
79902013-01-20 Colin Watson <cjwatson@ubuntu.com>
7991
7992 Fix typos for "developer" and "development".
7993
600dc5f1
VS
79942013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7995
7996 Add license header to spkmodem-recv.c.
7997
17334a6b
VS
79982013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7999
8000 Rewrite spkmodem to use PIT for timing. Double the speed.
8001
7d462559
VS
80022013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8003
8004 Add new command pcidump.
8005
b78d6c32
VS
80062013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8007
8008 New terminal outputs using serial: morse and spkmodem.
8009
34f71cb8
VS
80102013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8011
8012 Improve bidi handling in entry editor.
8013
4542e71b
VS
80142013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8015
8016 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8017 argument to prevent name collision.
8018
09fd6d82
CW
80192013-01-15 Colin Watson <cjwatson@ubuntu.com>
8020
8021 Remove nested functions from script reading and parsing.
8022
8023 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
8024 getline_data argument, passed to getline.
8025 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
8026 getline_data argument, passed to grub_parser_split_cmdline.
8027 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
8028 lexerstate->getline_data to lexerstate->getline.
8029 (grub_script_lexer_init): Add getline_data argument, saved in
8030 lexerstate->getline_data.
8031 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
8032 argument, passed to grub_script_parse.
8033 * grub-core/script/script.c (grub_script_parse): Add getline_data
8034 argument, passed to grub_script_lexer_init.
8035 * include/grub/parser.h (grub_parser_split_cmdline): Update
8036 prototype. Update all callers to pass appropriate getline data.
8037 (struct grub_parser.parse_line): Likewise.
8038 (grub_rescue_parse_line): Likewise.
8039 * include/grub/reader.h (grub_reader_getline_t): Add void *
8040 argument.
8041 * include/grub/script_sh.h (struct grub_lexer_param): Add
8042 getline_data member.
8043 (grub_script_parse): Update prototype. Update all callers to pass
8044 appropriate getline data.
8045 (grub_script_lexer_init): Likewise.
8046 (grub_normal_parse_line): Likewise.
8047
8048 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
8049 data argument.
8050 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
8051 static instead of nested. Rename to ...
8052 (grub_parser_execute_getline): ... this.
8053 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
8054 data argument.
8055 * grub-core/normal/main.c (read_config_file: getline): Make static
8056 instead of nested. Rename to ...
8057 (read_config_file_getline): ... this.
8058 (grub_normal_read_line): Add unused data argument.
8059 * grub-core/script/execute.c (grub_script_execute_sourcecode:
8060 getline): Make static instead of nested. Rename to ...
8061 (grub_script_execute_sourcecode_getline): ... this.
8062 * util/grub-script-check.c (main: get_config_line): Make static
8063 instead of nested.
8064
d0d4b8a0
CW
80652013-01-15 Colin Watson <cjwatson@ubuntu.com>
8066
8067 Remove nested functions from memory map iterators.
8068
8069 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8070 argument, passed to hook.
8071 * grub-core/kern/i386/coreboot/mmap.c
8072 (grub_linuxbios_table_iterate): Likewise.
8073 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8074 instead of nested.
8075 (grub_machine_mmap_iterate): Add hook_data argument.
8076 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8077 Add hook_data argument, passed to hook.
8078 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8079 Likewise.
8080 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8081 Likewise.
8082 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8083 Likewise.
8084 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8085 Likewise.
8086 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8087 Likewise.
8088 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8089 Likewise.
8090 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8091 (grub_machine_mmap_iterate): Likewise.
8092 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8093 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8094 prototype.
8095 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8096 Remove NESTED_FUNC_ATTR from here and from all users.
8097 (grub_mmap_iterate): Update prototype.
8098 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8099 pass appropriate hook data.
8100 (grub_machine_mmap_iterate): Likewise.
8101
8102 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8103 static instead of nested.
8104 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8105 Rename to ...
8106 (lsmmap_hook): ... this.
8107 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8108 Likewise.
8109 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8110 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8111 heap_init): Likewise.
8112 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8113 Rename to ...
8114 (mmap_iterate_hook): ... this.
8115 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8116 Likewise.
8117 * grub-core/lib/ieee1275/relocator.c
8118 (grub_relocator_firmware_get_max_events: count): Likewise.
8119 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8120 to ...
8121 (grub_relocator_firmware_fill_events_iter): ... this.
8122 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8123 hook): Likewise. Rename to ...
8124 (grub_relocator_alloc_chunk_align_iter): ... this.
8125 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8126 Rename to ...
8127 (generate_e820_mmap_iter): ... this.
8128 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8129 Rename to ...
8130 (count_hook): ... this.
8131 (grub_linux_boot: hook): Likewise. Rename to ...
8132 (grub_linux_boot_mmap_find): ... this.
8133 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8134 (grub_linux_boot_mmap_fill): ... this.
8135 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8136 hook): Likewise. Rename to ...
8137 (grub_fill_multiboot_mmap_iter): ... this.
8138 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8139 hook): Likewise. Rename to ...
8140 (count_hook): ... this.
8141 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8142 hook): Likewise. Rename to ...
8143 (grub_fill_multiboot_mmap_iter): ... this.
8144 * grub-core/loader/powerpc/ieee1275/linux.c
8145 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8146 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8147 Likewise. Rename to ...
8148 (alloc_phys_choose): ... this.
8149 (determine_phys_base: get_physbase): Likewise.
8150 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8151 find_hook): Likewise.
8152 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8153 (malloc_hook: count_hook): Likewise.
8154 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8155 Likewise. Rename to ...
8156 (lower_hook): ... this.
8157 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8158 (upper_hook): ... this.
8159 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8160 (post64_hook): ... this.
8161 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8162 Likewise. Rename to ...
8163 (lower_hook): ... this.
8164 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8165 (upper_hook): ... this.
8166 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8167 (grub_mmap_iterate: fill_hook): Likewise.
8168 (fill_mask): Pass addr and mask within a single struct.
8169 (grub_cmd_badram: hook): Make static instead of nested. Rename
8170 to ...
8171 (badram_iter): ... this.
8172 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8173 (cutmem_iter): ... this.
8174
22099030
VS
81752013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8176
8177 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8178 delimit path in strings using quotes.
8179 * util/getroot.c (grub_guess_root_devices): Likewise.
8180 (grub_make_system_path_relative_to_its_root): Likewise.
8181 * util/grub-probe.c (probe): Likewise.
8182 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8183 (xrealpath): Likewise.
8184
4a9950ec
VS
81852013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8186
8187 Fix compilation with older compilers.
8188
8189 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8190 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8191 declarations.
8192 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8193 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8194 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8195 identifier with b.
8196 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8197 * include/grub/crypto.h: Add type defines.
8198 * util/import_gcrypth.sed: Remove duplicate type defines.
8199
adcc6020
VS
82002013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8201
8202 New command list_trusted.
8203
8204 * grub-core/commands/verify.c (grub_cmd_list): New function.
8205
a4528937
CW
82062013-01-13 Colin Watson <cjwatson@ubuntu.com>
8207
8208 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8209 info message.
8210
ca3a7446
CW
82112013-01-13 Colin Watson <cjwatson@ubuntu.com>
8212
8213 Remove nested functions from PCI iterators.
8214
8215 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8216 passed to hook. Update all callers to pass appropriate hook data.
8217 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8218 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8219 Remove NESTED_FUNC_ATTR from here and from all users.
8220 (grub_pci_iterate): Update prototype.
8221 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8222 instead of nested. Rename to ...
8223 (grub_cs5536_find_iter): ... this.
8224 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8225 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8226 Likewise.
8227 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8228 Likewise.
8229 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8230 Likewise.
8231 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8232 Likewise.
8233 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8234 * grub-core/video/radeon_fuloong2e.c
8235 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8236 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8237 find_card): Likewise.
8238 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8239 Likewise.
8240
f8e98fee
VS
82412013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8242
8243 * grub-core/commands/verify.c: Mark messages for translating.
8244
055b36b6
VS
82452013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8246
8247 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8248 fatal.
8249
f7ff879b
VS
82502013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8251
8252 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8253 fatal.
8254
82552013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
8256
8257 * autogen.sh: Do not try to delete nonexistant files.
8258 * util/import_gcrypth.sed: Add some missing header removals.
8259
01323d49
CW
82602013-01-12 Colin Watson <cjwatson@ubuntu.com>
8261
8262 Clean up dangling references to grub-setup.
8263 Fixes Ubuntu bug #1082045.
8264
8265 * docs/grub.texi (Images): Refer generally to grub-install rather
8266 than directly to grub-setup.
8267 (Installing GRUB using grub-install): Remove direct reference to
8268 grub-setup.
8269 (Device map) Likewise.
8270 (Invoking grub-install): Likewise.
8271 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8272 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8273 * util/grub-install.in (usage): Likewise.
8274
8275 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8276 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8277 grub-setup.
8278 * configure.ac: Remove grub_setup output variable.
8279
8280 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8281 to grub-bios-setup.
8282 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8283 grub-setup to grub-sparc64-setup.
8284
5e3b8dcb
VS
82852013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8286
8287 Import gcrypt public-key cryptography and implement signature checking.
8288
535714bd
VS
82892013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8290
8291 * grub-core/fs/ntfs.c: Ue more appropriate types.
8292 * grub-core/fs/ntfscomp.c: Likewise.
8293 * include/grub/ntfs.h: Likewise.
8294
3e4f3566
VS
82952013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8296
8297 Support Apple FAT binaries on non-Apple platforms.
8298
8299 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8300 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8301 Likewise.
8302 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8303 Apple FAT binaries.
8304
4dedb13f
VS
83052013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8306
8307 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8308 sector devices.
8309
f8861eaf
CW
83102013-01-07 Colin Watson <cjwatson@ubuntu.com>
8311
8312 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8313 explicitly zeroing elements.
8314 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8315 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8316 of elements in a structure already allocated using grub_zalloc.
8317 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8318
86065b0a
CW
83192013-01-07 Colin Watson <cjwatson@ubuntu.com>
8320
8321 * docs/grub.texi (grub_cpu): New subsection.
8322 (grub_platform): Likewise.
8323
c6f1e92f
VS
83242013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8325
8326 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8327
f797ec85
VS
83282013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8329
8330 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8331 divisions.
8332
033d0b4b
VS
83332013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8334
8335 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8336 * grub-core/fs/ntfscomp.c: Likewise.
8337 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8338 (grub_ntfs_comp): Likewise.
8339
21d1b9a0
VS
83402013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8341
8342 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8343 Rename to ...
8344 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8345 of groups_per_block. All users updated.
8346
10ca8645
VS
83472013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8348
8349 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8350 grub_error properly.
8351 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8352 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8353
a4c3ed4c
VS
83542013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8355
8356 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8357 always in /boot/zfs.
8358 Reported by: Yuta Satoh.
8359
0b716507
YS
83602013-01-03 Yuta Satoh <nigoro>
8361
8362 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8363 ${grub_probe}
8364
00c05e22
VS
83652013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8366
8367 * configure.ac: Extend -Wno-trampolines to host.
8368
dadddb76
VS
83692013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8370
8371 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8372 entry->len = 0.
8373
54ce53ca
CW
83742013-01-03 Colin Watson <cjwatson@ubuntu.com>
8375
8376 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8377 (Invoking grub-script-check): Likewise.
8378
8912efca
CW
83792013-01-03 Colin Watson <cjwatson@ubuntu.com>
8380
8381 * docs/grub.texi (Invoking grub-mount): New section.
8382 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8383
c3fc8394
CW
83842013-01-02 Colin Watson <cjwatson@ubuntu.com>
8385
8386 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8387 test failures, so that a failing unit test correctly causes 'make
8388 check' to fail.
8389
45d26abb
CW
83902013-01-02 Colin Watson <cjwatson@ubuntu.com>
8391
8392 Fix failing printf test.
8393
8394 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8395 '$' in the correct order when collecting type information.
8396
971dd2c6
CW
83972013-01-02 Colin Watson <cjwatson@ubuntu.com>
8398
8399 * docs/grub.texi (configfile): Explain environment variable
8400 handling.
8401 (source): New section.
8402 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8403
5c67ea6c
CW
84042012-12-31 Colin Watson <cjwatson@ubuntu.com>
8405
8406 Remove several trivially-unnecessary uses of nested functions.
8407
8408 * grub-core/commands/i386/pc/sendkey.c
8409 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8410 instead of nested.
8411 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8412 Rename to ...
8413 (legacy_file_getline): ... this.
8414 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8415 Likewise.
8416 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8417 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8418 to ...
8419 (probe_dummy_iter): ... this.
8420 * grub-core/kern/i386/coreboot/mmap.c
8421 (grub_linuxbios_table_iterate: check_signature): Likewise.
8422 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8423 check_varstate): Likewise. Mark inline.
8424 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8425 an additional parameter.
8426 (find_long: fnd_long): Likewise. Pass two additional parameters.
8427 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8428 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8429 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8430 Likewise. Rename to ...
8431 (grub_cmos_find_port_iter): ... this.
8432 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8433 Rename to ...
8434 (find_rtc_iter): ... this.
8435
8436 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8437 function directly into the function body, since it is only called
8438 once.
8439
33a68ac6
CW
84402012-12-30 Colin Watson <cjwatson@ubuntu.com>
8441
8442 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8443 __attribute__ ((unused)).
8444 * grub-core/video/bochs.c (find_card): Likewise.
8445 * grub-core/video/cirrus.c (find_card): Likewise.
8446 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8447 * grub-core/video/sis315pro.c (find_card): Likewise.
8448 * grub-core/video/sm712.c (find_card): Likewise.
8449
608b647a
CW
84502012-12-28 Colin Watson <cjwatson@ubuntu.com>
8451
8452 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8453 Fixes Savannah bug #37821.
8454
fd49ceb3
CW
84552012-12-28 Colin Watson <cjwatson@ubuntu.com>
8456
8457 Apply program name transformations at build-time rather than at
8458 run-time. Fixes Debian bug #696465.
8459
8460 * acinclude.m4 (grub_TRANSFORM): New macro.
8461 * configure.ac: Create output variables with transformed names for
8462 most programs.
8463 * util/bash-completion.d/grub-completion.bash.in: Use
8464 pre-transformed variables for program names.
8465 * util/grub-install.in: Likewise.
8466 * util/grub-kbdcomp.in: Likewise.
8467 * util/grub-mkconfig.in: Likewise.
8468 * util/grub-mkconfig_lib.in: Likewise.
8469 * util/grub-mknetdir.in: Likewise.
8470 * util/grub-mkrescue.in: Likewise.
8471 * util/grub-mkstandalone.in: Likewise.
8472 * util/grub-reboot.in: Likewise.
8473 * util/grub-set-default.in: Likewise.
8474 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8475 * tests/util/grub-shell-tester.in: Remove unused assignment.
8476 * tests/util/grub-shell.in: Likewise.
8477 * util/grub.d/00_header.in: Likewise.
8478
7024b3c0
CW
84792012-12-28 Colin Watson <cjwatson@ubuntu.com>
8480
8481 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8482
8483 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8484 HAVE_RAW_DECL_GETS.
8485 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8486
e3501b13
VS
84872012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8488
8489 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8490 Reported by: Eriks Latosheks <foresterlv>.
8491
b40c88a9
VS
84922012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8493
8494 * docs/grub.texi (Network): Update instructions on generating netboot
8495 image.
8496
ce96d01c
VS
84972012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8498
8499 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8500 around device name if necessarry.
8501
0f596201
PFS
85022012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8503
8504 * util/grub-install.in: Follow the symbolic link parameter added
8505 to the file command.
8506
600d5bdb
AB
85072012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8508
8509 * util/grub-install.in: Remove stale TODO.
8510
64ebd2f4
PFS
85112012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8512
8513 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8514 dynamic allocation for the bootpath buffer.
8515
74b2fe3e
DTB
85162012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8517
8518 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8519 window too small.
8520
969b804f
VS
85212012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8522
8523 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8524 argument rather than font name. All users updated.
8525 (grub_gfxterm_set_window): Likewise.
8526
b9f5ebd6
VT
85272012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8528
8529 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8530 from working.
8531
258f43b7
VS
85322012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8533
8534 * util/getroot.c (convert_system_partition_to_system_disk): Support
8535 nbd disks.
8536
cc1ce5f9
VS
85372012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8538
8539 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8540 infinite loop on corrupted FS.
8541
e77a16ca
VS
85422012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8543
8544 Fix big-endian mtime.
8545
8546 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8547 together sec and usec.
8548 (grub_ufs_dir): Use correct byteswapping for UFS time.
8549
d9c48c7b
VS
85502012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8551
8552 Support big-endian UFS1.
8553
8554 * Makefile.util.def (libgrubmods): Add ufs_be.c
8555 * grub-core/Makefile.core.def (ufs1_be): New module.
8556 * grub-core/fs/ufs_be.c: New file.
8557 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8558 the file.
8559
2f9f40ba
LL
85602012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8561
8562 * include/grub/types.h: Fix functionality unaffecting typo in
8563 GRUB_TARGET_WORDSIZE conditional macro.
8564
48ff0889
PFS
85652012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8566
8567 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8568
03711240
GS
85692012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8570
8571 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8572 that /netbsd appears first (when it exists).
8573
a31b11bd
CJ
85742012-10-12 Christoph Junghans <ottxor@gentoo.org>
8575
8576 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8577 Fixes Savannah bug #37558.
8578
e8a5d5d4
CW
85792012-10-12 Colin Watson <cjwatson@ubuntu.com>
8580
8581 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8582 description of extract_entries_configfile.
8583
85842012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
8585
8586 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8587 preferred_address.
8588 (grub_cmd_linux): Likewise.
8589 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8590 preferred_lifetime. Update all users.
8591
288c757d
CW
85922012-09-26 Colin Watson <cjwatson@ubuntu.com>
8593
8594 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8595 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8596
0d35da3f
CW
85972012-09-26 Colin Watson <cjwatson@ubuntu.com>
8598
8599 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8600 errors from grub-probe to /dev/null, not stdout.
8601
b78c3127
VS
86022012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8603
8604 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8605 sector 1.
8606
473959f0
CW
86072012-09-24 Colin Watson <cjwatson@ubuntu.com>
8608
8609 * util/grub-install.in: Make the error message if $source_dir
8610 doesn't exist more useful.
8611
794c8c33
CW
86122012-09-22 Colin Watson <cjwatson@ubuntu.com>
8613
8614 Fix grub-emu build on FreeBSD.
8615
8616 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8617 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8618 headers on Linux.
8619 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8620 implementation is currently Linux-specific.
8621 * util/getroot.c (exec_pipe): Define only on Linux or when either
8622 libzfs or libnvpair is unavailable.
8623 (find_root_devices_from_poolname): Remove unused path variable.
8624
86d08fdb
CW
86252012-09-19 Colin Watson <cjwatson@ubuntu.com>
8626
8627 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8628 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8629 should fit before end == 63.
8630
735abf54
CW
86312012-09-19 Colin Watson <cjwatson@ubuntu.com>
8632
8633 * util/grub-setup.c (write_rootdev): Remove unused core_img
8634 parameter. Update all callers.
8635 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8636 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8637 GRUB_SETUP_BIOS.
8638
140acd3c
VS
86392012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8640
8641 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8642 (grub_add_tab): New function.
8643 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8644 * util/grub.d/10_illumos.in: Likewise.
8645 * util/grub.d/10_kfreebsd.in: Likewise.
8646 * util/grub.d/10_linux.in: Likewise.
8647 * util/grub.d/10_netbsd.in: Likewise.
8648 * util/grub.d/10_windows.in: Likewise.
8649 * util/grub.d/10_xnu.in: Likewise.
8650 * util/grub.d/20_linux_xen.in: Likewise.
8651 * util/grub.d/30_os-prober.in: Likewise.
8652
7ddffdad
VS
86532012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8654
8655 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8656 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8657 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8658 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8659 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8660 ieee1275-nocursor.
8661 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8662 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8663
4e092454
VS
86642012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8665
8666 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8667 le-conversion.
8668 Reported by: BURETTE, Bernard.
8669
735abf54 86702012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
8671
8672 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8673 from comment.
8674
dfd39dbd
CW
86752012-09-14 Colin Watson <cjwatson@ubuntu.com>
8676
8677 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8678 IEEE1275 machines. Fixes powerpc-emu compilation.
8679 * include/grub/terminfo.h: Likewise.
8680
3bfa763c
VS
86812012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8682
8683 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8684 a const pointer.
8685 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8686 const pointer.
8687 (efiemu_set_variable): Make vendor_guid a const pointer.
8688
250e475b
VS
86892012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8690
8691 Don't require grub-mkconfig_lib to generate manpages for programs.
8692
8693 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8694 dependencies, don't add grub-mkconfig_lib.
8695 (program): Pass empty adddeps.
8696 (script): Pass grub-mkconfig_lib as adddeps.
8697
592fd0e4
VS
86982012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8699
8700 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8701 * util/getroot.c (grub_find_device): Likewise.
8702 (get_mdadm_uuid): Likewise.
8703 (grub_util_is_imsm): Likewise.
8704 (grub_util_pull_device): Likewise.
8705 * util/grub-probe.c (probe): Likewise.
8706
801a3027
BG
87072012-09-10 Benoit Gschwind <gschwind>
8708
8709 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8710 (devs): Add devpath_8.
8711
c5052c81
PJ
87122012-09-08 Peter Jones <pjones@redhat.com>
8713
8714 * grub-core/Makefile.core.def (efifwsetup): New module.
8715 * grub-core/commands/efi/efifwsetup.c: New file.
8716 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8717 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8718 New define.
8719 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8720
8e832f71
JS
87212012-09-05 Jiri Slaby <jslaby@suse.cz>
8722
8723 * configure.ac: Add SuSe path.
8724
f0f55752
CW
87252012-09-05 Colin Watson <cjwatson@ubuntu.com>
8726
8727 * NEWS: Fix typo.
8728
ecadc4c2
CW
87292012-09-05 Colin Watson <cjwatson@ubuntu.com>
8730
8731 * util/import_gcry.py: Sort cipher_files, to make build system
8732 generation more deterministic.
8733
64498f25
VS
87342012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8735
8736 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8737 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8738 (grub_set_datetime): Likewise.
8739
9cc836a2
VS
87402012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8741
8742 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8743 warnings.
8744
bcfcea01
VS
87452012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8746
8747 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8748
a4099485
VS
87492012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8750
8751 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8752
265c162a
CW
87532012-09-04 Colin Watson <cjwatson@ubuntu.com>
8754
8755 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8756 required for checkouts from bzr, but it may be useful for users or
8757 distributors wishing to update translations against a tarball
8758 distribution, and it can be helpful for the tarball to be a superset
8759 of what's in bzr.
8760
3d171e95
CW
87612012-09-04 Colin Watson <cjwatson@ubuntu.com>
8762
8763 * Makefile.am (EXTRA_DIST): Add
8764 grub-core/tests/boot/linux.init-mips.S,
8765 grub-core/tests/boot/linux.init-ppc.S, and
8766 grub-core/tests/boot/linux-ppc.cfg.
8767
f2c2503e
CW
87682012-09-04 Colin Watson <cjwatson@ubuntu.com>
8769
8770 * grub-core/mmap/mips/loongson: Remove empty directory.
8771
87722012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
8773
8774 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8775 gone.
8776
ab2163d5
CW
87772012-09-04 Colin Watson <cjwatson@ubuntu.com>
8778
8779 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8780 grub-sparc64-setup.
8781
ce938140
GS
87822012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8783
8784 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8785
529f58a5
GS
87862012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8787
8788 * po/POTFILES.in: Regenerated.
8789
16cf79e9
GS
87902012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8791
8792 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8793 (NetBSD): New subsection.
8794
39b27f1e 87952012-07-22 Ales Nesrsta <starous@volny.cz>
8796
8797 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8798 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8799
a885261b
VS
88002012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8801
8802 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8803 * util/grub.d/10_hurd.in: Add missing quoting.
8804 * util/grub.d/10_illumos.in: Likewise.
8805 * util/grub.d/10_kfreebsd.in: Likewise.
8806 * util/grub.d/10_linux.in: Likewise.
8807 * util/grub.d/20_linux_xen.in: Likewise.
8808
7bd29c01
VS
88092012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8810
8811 New command `lsefi'.
8812
8813 * grub-core/Makefile.core.def (lsefi): New module.
8814 * grub-core/commands/efi/lsefi.c: New file.
8815 * include/grub/efi/api.h: Add more GUIDs.
8816
ac625d8f
VS
88172012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8818
8819 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8820 (grub_bsd_elf32_hook): Likewise.
8821 (grub_bsd_elf64_size_hook): Likewise.
8822 (grub_bsd_elf64_hook): Likewise.
8823 (grub_bsd_load_elf): Likewise.
8824
e73bb801
VS
88252012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8826
8827 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8828 if hash function is unavailable.
8829 (dec_stream_header): Likewise.
8830
e81db8b5
VS
88312012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8832
8833 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8834 filter state.
8835
d187a1c3
VS
88362012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8837
8838 Fix coreboot compilation.
8839
8840 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8841 (grub_vga_text_init_real): ... this.
8842 (grub_vga_text_fini): Rename to ...
8843 (grub_vga_text_fini_real): ... this.
8844
91a05f64
VS
88452012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8846
8847 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8848
6af96df7
VS
88492012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8850
8851 * grub-core/lib/legacy_parse.c: Support clear and testload.
8852
4d569e12
VS
88532012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8854
8855 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8856
073b57bb
VS
88572012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8858
8859 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8860
a706f4cc
VS
88612012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8862
8863 * grub-core/net/tftp.c (ack): Fix endianness problem.
8864 (tftp_receive): Likewise.
8865 Reported by: Michael Davidsaver.
8866
e7850aa9
VS
88672012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8868
8869 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8870
88712012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8872
8873 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8874 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8875 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8876
35692881
VS
88772012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8878
8879 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8880 efi_mmap_size.
8881 Reported by: Stuart Hayes.
8882
c35fc5bd
VS
88832012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8884
8885 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8886
8887 * grub-core/Makefile.core.def (mda_text): New module.
8888 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8889 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8890 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8891 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8892 here.
8893 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8894 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8895 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8896 here.
8897 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8898 to ..
8899 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8900 ... here
8901 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8902 here.
8903 * grub-core/term/i386/vga_common.c: Removed.
8904 * include/grub/i386/vga_common.h: Likewise.
8905 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8906 (grub_vga_cr_bw_read): Likewise.
8907 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8908 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8909 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8910 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8911 grub_vga_cr_read/grub_vga_cr_write.
8912 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8913
5f91f701
VS
89142012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8915
8916 * configure.ac: Bump version to 2.00.
8917 * grub-core/normal/main.c (features): Add feature_200_final.
8918
0c4f85f6
VS
89192012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
89202012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8921
8922 * NEWS: Fix unclarity and language mistakes.
8923
f923ad22
VS
89242012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8927 additional size to 3 pages.
8928 Reported by: Stuart Hayes.
8929
d22029ba
VS
89302012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8931
8932 * NEWS: Add 2.00 entry.
8933
58eee08f
VS
89342012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8935
8936 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8937 put explicit "/" for empty path.
8938 (wildcard_expand): Improve dprintf.
8939
c59bdff7
VS
89402012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8941
8942 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8943 it's equal to currnode. This can happen with "" symlink.
8944
5e6a440a
YB
89452012-06-27 Yves Blusseau <blusseau@zetam.org>
8946
8947 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8948 echo shell command by printf command.
8949
73a68bcb
VS
89502012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8951
8952 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8953 the value returned by firmware is the maximal position, not diumension.
8954 (grub_terminfo_output_state): Use a more sane fallback.
8955
392a603b
VS
89562012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8957
8958 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8959
42d0867f
VS
89602012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8961
8962 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8963 frequency to 150 MHz.
8964
489509f4
VS
89652012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 Apple fixes.
8968
8969 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8970 __APPLE_
8971 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8972 definition.
8973 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8974
9f3fc883
VS
89752012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8976
8977 Handle slash in HFS label.
8978
8979 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8980 (grub_hfs_dir): Tanslate slash.
8981 (grub_hfs_label): Don't translate slash.
8982
54853fd7
VS
89832012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8984
8985 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8986 network protocol listing since it introduces problematic dependency on
8987 net module.
8988
4dc02ddf
VS
89892012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8990
8991 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8992
c50c867d
VS
89932012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8994
8995 Init video early on yeeloong to avoid being rebooted by watchdog.
8996
8997 * grub-core/Makefile.am (gensm712): New target.
8998 (sm712_start.S): Likewise.
8999 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
9000 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
9001 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
9002 description.
9003 * include/grub/vga.h: Move registry definitions to...
9004 * include/grub/vgaregs.h: ... here.
9005
5f92c8a1
VS
90062012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9007
9008 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
9009 signedness.
9010
e9e6f111
VS
90112012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9012
9013 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
9014 platforms with firmware disk drivers in the core.
9015
754ad9eb
VS
90162012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9017
9018 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
9019 informative verbose message.
9020 (read_lv): Handle 64-bit segment size.
9021
315654c2
VS
90222012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9023
9024 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
9025
fb022c79
VS
90262012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
9029 character but still remove trainling spaces.
9030 (grub_fat_label): Ignore archive flag.
9031
8645f72c
VS
90322012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
9035 cast between linux_kernel_header and linux_kernel_params.
9036
36498496
VS
90372012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9038
9039 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
9040 type for size.
9041 (grub_raid6_recover_func_t): Likewise.
9042 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
9043 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9044
0b5ea6b8
VS
90452012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
9048
650cfcfe
GS
90492012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9050
9051 Fix overflow.
9052
9053 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
9054 [__NetBSD__]: Add explicit cast before bitshift.
9055
8a4d6a44
VS
90562012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9057
9058 * configure.ac: Bump to 2.00~rc1.
9059
2fb97ed3
VS
90602012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9061
9062 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9063 half of $a0.
9064
1fa097dc
VS
90652012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
90662012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9067
9068 * docs/grub.texi: Fix search syntax.
9069 (Multi-boot manual config): Put msdos rather than GPT example.
9070 Grammar corrections.
9071
c890ba78
VS
90722012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9075
0f92dca7
VS
90762012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9077
9078 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9079
3988c4a0
VS
90802012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9081
9082 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9083 message on double free. Put the value of magic in case of mismatch.
9084
9e86d4c5
VS
90852012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 Speed-up video on yeeloong.
9088
9089 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9090 add cached_ptr.
9091 (grub_video_sm712_video_fini): Unmap cached_ptr.
9092 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9093 (grub_video_sm712_set_active_render_target): Removed.
9094 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9095 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9096 sync caches.
9097
ed24c312
VS
90982012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9099
9100 Avoid flushing the same line multiple times on loongson.
9101
9102 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9103 Step in 32 bytes and not 1 byte.
9104 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9105 Likewise.
9106
d1718e7d
VS
91072012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9108
9109 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9110 subvolumes.
9111
982f1909
VS
91122012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9113
9114 Implement flow control for http.
9115
9116 * grub-core/net/http.c (parse_line): Handle response 206.
9117 (http_receive): Stall if too many packets are in the queue.
9118 (http_establish): Fix range header.
9119 (http_seek): Fix double free.
9120 (http_close): Likewise.
9121 (http_packets_pulled): New function.
9122 (grub_http_protocol): Set http_seek
9123 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9124 (ack_real): Set window depending on i_stall.
9125 (grub_net_send_tcp_packet): Likewise.
9126 (grub_net_tcp_stall): New function.
9127 (grub_net_tcp_unstall): Likewise.
9128 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9129 (grub_net_tcp_unstall): Likewise.
9130
bd407d6e
VS
91312012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9132
9133 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9134
c7564b8e
VS
91352012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9136
9137 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9138
a3706162
VS
91392012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9140
9141 * tests/util/grub-shell.in: Fix a typo.
9142
b27069e0
VS
91432012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9144
9145 Implement flow control for tftp.
9146
9147 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9148 packets but stop only if stop condition is satisfied.
9149 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9150 `stall' instead of `eof' as stop condition.
9151 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9152 (http_err): Likewise.
9153 * grub-core/net/tftp.c (ack): Replace the first argument with data
9154 instead of socket.
9155 (tftp_receive): Stall if too many packets are in wait queue.
9156 (tftp_packets_pulled): New function.
9157 (grub_tftp_protocol): Set packets_pulled.
9158 * include/grub/net.h (grub_net_packets): New field count.
9159 (grub_net_put_packet): Increment count.
9160 (grub_net_remove_packet): Likewise.
9161 (grub_net_app_protocol): New field `packets_pulled'.
9162 (grub_net): New field `stall'.
9163
6b9cfac6
VS
91642012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9165
9166 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9167 sync part to handle them.
9168
f35abd81
VS
91692012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9170
9171 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9172 * grub-core/net/drivers/ieee1275/ofnet.c
9173 (grub_ieee1275_net_config_real): Likewise.
9174
0e7ec820
VS
91752012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9178 the direct route for server/gateway.
9179
9d611a31
VS
91802012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9181
9182 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9183 IP address to server name since we may not hame the DNS.
9184
418f45ab
VS
91852012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9186
9187 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9188 freeing random buffer on failure.
9189 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9190
44a0efc1
VS
91912012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9192
9193 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9194
531e2241
VS
91952012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9196
9197 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9198 reserved bytes.
9199 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9200 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9201 Handle malloc error correctly.
9202
cde393c9
VS
92032012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9204
9205 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9206 blocks.
9207
538478d0
VS
92082012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9209
9210 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9211 increment.
9212
9b55efe0
VS
92132012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9216 none is explicitly specified.
9217
9eb832c3
VS
92182012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9219
9220 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9221 while reallocating.
9222
d6b7c7c9
VS
92232012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9224
9225 Respect netmask from bootp/dhcp.
9226
9227 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9228 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9229 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9230 into ...
9231 (grub_net_add_ipv4_local): ... this.
9232 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9233 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9234 (grub_net_add_ipv4_local): New proto.
9235
67caf9eb
VS
92362012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9237
9238 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9239 determining EFI memory map size.
9240
43657558
VS
92412012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9242
9243 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9244
eb6d0dd3
VS
92452012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9246
9247 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9248 when looking for partition separator.
9249
31230544
VS
92502012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9251
9252 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9253 Escape commas.
9254
918a2517
VS
92552012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9256
9257 Restructure FAT driver to avoid hook in label reading as it hits a
9258 GCC bug.
9259
9260 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9261 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9262 (grub_fat_iterate_dir): Split into ...
9263 (grub_fat_iterate_init): ... this, ...
9264 (grub_fat_iterate_fini): ... this, ...
9265 (grub_fat_iterate_dir_next): ... and this. All users updated.
9266
9f1d654e
VS
92672012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9268
9269 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9270 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9271 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9272 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9273 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9274 New fields last_key and last_key_time.
9275 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9276 extended key-esc into extended key-extended key.
9277
52f0f643
VS
92782012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 Avoid unnecessary memcpy of whole video buffer.
9281
9282 * grub-core/video/fb/video_fb.c (dirty): New struct.
9283 (framebuffer): Add members current_dirty and previous_dirty.
9284 (dirty): New function.
9285 (grub_video_fb_fill_rect): Update dirty.
9286 (common_blitter): Likewise.
9287 (grub_video_fb_scroll): Likewise.
9288 (doublebuf_blit_update_screen): Copy only dirty part.
9289 (doublebuf_pageflipping_update_screen): Likewise.
9290 (grub_video_fb_doublebuf_blit_init): Init dirty.
9291 (doublebuf_pageflipping_init): Likewise.
9292 (grub_video_fb_setup): Likewise.
9293
e169a180
VS
92942012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9295
9296 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9297 poll rate.
9298
48556879
VS
92992012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9300
9301 Fix wildcard regexp dot and other special characters handling.
9302 Reported by: Robert Mabee.
9303
9304 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9305 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9306 (split_path): Trigger expansion on '?'.
9307 (unescape): New function.
9308 (wildcard_expand): Unescape parts copied without globbing.
9309 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9310 (grub_script_arglist_to_argv): Don't unescape expansions.
9311
0494408e
VS
93122012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9313
9314 * include/grub/net.h (grub_net_card): New member txbufsize.
9315 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9316 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9317 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9318 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9319 txbufsize.
9320 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9321 compatible property to check for macs. Set
9322 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9323 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9324 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9325 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9326 (send_card_buffer): Use txbuf.
9327 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9328 nested function out of the parent while on it.
9329
cc35fe8f
VS
93302012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9331
9332 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9333 presence check.
9334 (grub_ieee1275_net_config_real): Fix config pointer.
9335
970a0a09
VS
93362012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9337
9338 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9339 filename parsing to non-block devices.
9340
3e19bf87
VS
93412012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9342
9343 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9344
c62d1a0c
VS
93452012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9346
9347 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9348 All users updated.
9349
ef76bec3
VS
93502012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9351
9352 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9353 UUID search command even if hints probing failed.
9354
93552012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
9356
9357 * po/POTFILES.in: Regenerated.
9358
70aaf305
VS
93592012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9360
9361 Speed-up video on fuloong.
9362
9363 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9364 New function.
9365 (grub_pci_device_unmap_range): Handle non-cached address.
9366 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9367 add direct_ptr.
9368 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9369 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9370 (grub_video_sis315pro_set_active_render_target): Removed.
9371 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9372 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9373 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9374 sync caches.
9375 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9376 New proto.
9377
10400f0b
VS
93782012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9379
9380 * docs/grub.texi (Multi-boot manual config): New section.
9381
ba67e2c6
VS
93822012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9383
9384 Avoid slow read-back from VRAM.
9385
9386 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9387 Move from here ...
9388 * grub-core/video/fb/video_fb.c
9389 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9390 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9391 (front_target): Remove front_target. Add pages.
9392 (grub_video_fb_init): Skip setting front_pages.
9393 (grub_video_fb_fini): Likewise.
9394 (doublebuf_blit_update_screen): Use pages.
9395 (grub_video_fb_doublebuf_blit_init): Likewise.
9396 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9397 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9398 (grub_video_fb_setup): Prefer doublebuffing.
9399
377c98cb
VS
94002012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9401
9402 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9403 gzio.
9404
eac49cff
VS
94052012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9406
9407 Add loongson tests.
9408
9409 * tests/util/grub-shell.in: Handle loongson.
9410 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9411 drivers.
9412 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9413 Reboot instead of shutdown if REBOOT is defined.
9414
0321415e
VS
94152012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9416
9417 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9418 sized ports since unlike on real hardware qemu supports only 32-bit
9419 regs.
9420
3f2bdd8f
VS
94212012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9422
9423 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9424 * util/grub-mkrescue.in: Handle loongson.
9425
29a049c9
VS
94262012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9427
9428 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9429 Set is_part appropriately.
9430 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9431 names. Canonicalize partition without full disk.
9432
4abde346
VS
94332012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9434
9435 Revert usb-quiesce since it's wrong.
9436
9437 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9438 (grub_ofdisk_init): Don't do quiesce.
9439
61f1d93b
VS
94402012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9441
9442 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9443 PowerMac workaround to Xserves as well.
9444 Information supplied by: Benjamin Herrenschmidt.
9445
a09eb541
VS
94462012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9447
9448 Don't assume that beginning address is also the entry point on ppc.
9449
9450 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9451 (grub_linux_boot): Use linux_entry.
9452 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9453 (grub_linux_load64): Likewise.
9454
505b3c9b
VS
94552012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9456
9457 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9458
cbe0b4ef
VS
94592012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9460
9461 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9462 needlessly lose the console.
9463
3006e981
VS
94642012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9465
9466 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9467 space.
9468
4e5a96b0
VS
94692012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9470
7da036bb
VS
9471 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9472 than current grub_get_rtc() not implemented when booted with
9473 coreboot without TSC.
9474
9475 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9476 Add machine/time.h to kernel headers on loongson.
9477 * grub-core/Makefile.core.def (kernel): Remove
9478 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9479 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9480 (grub_get_rtc): Likewise.
9481 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9482 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9483 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9484 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9485 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9486 rather than installing known non-working time source.
9487 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9488 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9489 * include/grub/time.h: Don't include machine/time.h.
9490 * include/grub/efi/time.h: Removed.
9491 * include/grub/i386/efi/time.h: Likewise.
9492 * include/grub/i386/ieee1275/time.h: Likewise.
9493 * include/grub/powerpc/ieee1275/time.h: Likewise.
9494 * include/grub/sparc64/ieee1275/time.h: Likewise.
9495 * include/grub/x86_64/efi/time.h: Likewise.
9496
94972012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9498
9499 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
9500
9501 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9502 value.
9503 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9504 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9505 with dotless variants when any combining above is present.
9506
5561c22d
VS
95072012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9508
9509 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9510 text and not binary.
9511
96f7e60e
VS
95122012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9513
9514 Stop polling as soon as we have the packet we were waiting for.
9515
9516 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9517 All users updated.
9518 * grub-core/net/arp.c (have_pending): New var.
9519 (pending_req): Likewise.
9520 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9521 stop indicator.
9522 (grub_net_arp_receive): Set have_pending.
9523 * grub-core/net/dns.c (recv_data): New field stop.
9524 (recv_hook): Set stop.
9525 (grub_net_dns_lookup): Init stop and use as stop condition.
9526 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9527 condition.
9528 * grub-core/net/net.c (grub_net_poll_cards): New argument
9529 stop_condition. Stop when it goes true.
9530 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9531 indicator.
9532 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9533
3e747239
VS
95342012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9535
9536 Keep TX and RX buffers on EFI rather than always allocate new ones.
9537
9538 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9539 card. All users updated.
9540 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9541 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9542 (get_card_packet): Likewise.
9543 (grub_efinet_findcards): Init new fields.
9544
f695e99a
VS
95452012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9546
9547 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9548 compilation error on sparc64.
9549
9e5e66d1
VS
95502012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9551
9552 Use ITC on IA64 rather than broken routine based on daytime.
9553
9554 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9555 ia64.
9556 (grub_get_rtc) [__ia64__]: Likewise.
9557 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9558 (get_itc): New function.
9559 (grub_rtc_get_time_ms): Likewise.
9560 (grub_machine_init): Calibrate ITC.
9561 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9562 Keep only on non-ia64. Don't export since it's broken and used only
9563 if TSC is unavailable.
9564
a1767404
VS
95652012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9566
9567 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9568 even if it's used.
9569 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9570 Skip if parent is unused.
9571
34b2bced
VS
95722012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9573
9574 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9575
5e619f40
VS
95762012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9577
9578 Fix wildcard escaping.
9579
9580 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9581 * grub-core/script/execute.c (wildcard_escape): .. to here.
9582 Don't escape dot.
9583 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9584 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9585 Don't escape dot.
9586 * grub-core/script/execute.c (gettext_append): Always escape.
9587 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9588 * grub-core/script/yylex.l: Don't cut away the escaping.
9589 * tests/grub_script_echo1.in: Add tests with wildcard.
9590
c8ca5855
VS
95912012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9592
9593 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9594 (ftdi_hw_configure): Likewise.
9595 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9596 define.
9597 (real_config): Handle 1.5 stop bits.
9598 (pl2303_hw_configure): Likewise.
9599
7183452c
VS
96002012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9601
9602 * Makefile.am: Add ppc linux bootcheck.
9603 * grub-core/tests/boot/linux-ppc.cfg: New file.
9604 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9605
f57c84cd
VS
96062012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9607
9608 * tests/grub_script_expansion.in: Skip network protocols.
9609
ecfc6207
VS
96102012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9611
9612 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9613
8d03d284
VS
96142012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9615
9616 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9617 --rom-directory.
9618 Add -graft-points.
9619
61c42af0
VS
96202012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 ESCC serial driver for conducting sautomated tests in qemu.
9623 Not tested on real hardware.
9624
9625 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9626 * grub-core/term/ieee1275/escc.c: New file.
9627 * grub-core/Makefile.core.def (escc): New module.
9628
08fd1291
VS
96292012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9630
9631 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9632 invalid on error.
9633 (serial_hw_fetch): Don't read invalid handle.
9634 (serial_hw_put): Don't write into invalid handle.
9635
08dafeea
VS
96362012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9637
9638 Add a 1.5 stop bits value.
9639
9640 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9641 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9642 GRUB_SERIAL_STOP_BITS_1_5.
9643
9068fdcf
VS
96442012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9645
9646 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9647 value rather than let it uninited.
9648
f4d5820f
VS
96492012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9650
9651 * grub-core/commands/wildcard.c (+check_file): New function.
9652 (wildcard_expand): Don't expand to non-existing files, expand with
9653 suffix and not attempt to expand if not needed.
9654
3d2de9a7
VS
96552012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9656
9657 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9658 out of partitions containing other partitions.
9659
c5c81ff9
VS
96602012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9661
9662 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9663 on some qemu versions with GRUB.
9664
9665 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9666 define.
9667 (grub_openbsd_bootarg_pcibios): New struct.
9668 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9669 Add PCIINFO.
9670
08a14e0b
VS
96712012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9672
9673 * tests/util/grub-shell.in: Trim firmware output on EFI.
9674
cede3ca3
VS
96752012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9676
9677 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9678 and coreboot since it's already in kernel.
9679
558d3a60
VS
96802012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9681
9682 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9683 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9684 to here. New return value start. All users updated.
9685 Recursively scan linear mappings.
9686 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9687 proto.
9688 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9689 Use grub_util_get_dm_node_linear_info.
9690 * util/getroot.c (convert_system_partition_to_system_disk): Use
9691 grub_util_info rather than grub_dprintf.
9692 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9693
60fde14d
VS
96942012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9695
9696 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9697
9698 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9699 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9700
24bd8838
VS
97012012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9702
9703 * include/grub/types.h (grub_set_unaligned64): New function.
9704 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9705 (setup): Likewise.
9706
7bc06a49
VS
97072012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9708
9709 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9710 (grub_ofdisk_fini): Quiesce USB devices.
9711
49cea015
VS
97122012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9713
9714 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9715 caches.
9716
8dcbe03b
VS
97172012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9718
9719 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9720
5b258735
VS
97212012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9722
9723 * grub-core/disk/pata.c (grub_pata_pio_read)
9724 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9725 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9726
37ba07eb
VS
97272012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9728
9729 Extend automated tests to qemu-mips.
9730
9731 * Makefile.am: reorganise tests and enable qemu-mips.
9732 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9733 * grub-core/tests/boot/linux.init-mips.S: New file.
9734 * tests/partmap_test.in: Handle ata0 disks.
9735 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9736 non-pc i386.
9737
070038f8
VS
97382012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9739
9740 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9741 ia64.
9742 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9743 quotes while on it.
9744
004be2cd
VS
97452012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9746
9747 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9748 (grub_halt): Likewise.
9749 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9750
b1622487
VS
97512012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9752
9753 * grub-core/term/serial.c (grub_serial_register)
9754 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9755 the behaviour in line with x86 platforms.
9756
b7b4ab33
VS
97572012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9760 (grub_ata_strncpy): Likewise.
9761 (grub_ata_identify): Add missing byteswaps.
9762
5e3535ae
VS
97632012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9764
9765 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9766 byte-swap.
9767 (screen_read_char): Likewise.
9768 (grub_vga_text_cls): Likewise.
9769
c21b17e6
VS
97702012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9771
9772 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9773 filenames.
9774 (make_file_path): Likewise.
9775
bf293dec
VS
97762012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9777
9778 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9779 machines.
9780 Tested by: Paulo Flabiano Smorigo.
9781 Crucial information about API supplied by: Coleen <Last name unknown>.
9782 Reviewed by: Coleen <Last name unknown>.
9783
81f6ef0e
VS
97842012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9785
9786 * util/grub-mkimage.c: Disable -Wcast-align.
9787
7284143a
VS
97882012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9789
9790 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9791 as they are fatal.
9792
b99f3e00
VS
97932012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9794
9795 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9796
944f752d
VS
97972012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9798
9799 * util/grub-probe.c (escape_of_path): Fix double free.
9800
6cce6f38
VS
98012012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9802
9803 * grub-core/commands/videoinfo.c (hook): Show pitch.
9804
1e1eb50e
VS
98052012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9806
9807 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9808
1c715b5a
VS
98092012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9810
9811 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9812 (probe): Add ieee1275 to OFW devices.
9813
007ae52d
VS
98142012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9815
9816 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9817
4557a36d
VS
98182012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9819
9820 Handle IBM OFW path.
9821
9822 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9823 available.
9824 (of_path_of_scsi): Handle vdevice.
9825
efbeefe9
VS
98262012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9827
9828 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9829 Allocate in multiples of 16 to avoid adding a few bytes free region the
9830 windows bugs upon.
9831
15a940bb
VS
98322012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9835 Allocate in multiples of 16 to avoid adding a few bytes free region the
9836 windows bugs upon.
9837 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9838
6e5efd60
VS
98392012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9840
9841 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9842 resolutions.
9843 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9844 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9845
0d3d137e
IS
98462012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9847
9848 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9849
45dbe300
VS
98502012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9851
9852 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9853 resulted in \\ at the end of the line.
9854
6d8db947
VS
98552012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9856
9857 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9858 (grub_parser_cmdline_state): Likewise.
9859 (grub_parser_split_cmdline): Likewise.
9860
de89d338
VS
98612012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9862
9863 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9864 /dev/root and /dev/dm-*.
9865
00d41dee
VS
98662012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9867
9868 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9869 fix partially stale display.
9870
f95d1f11
VS
98712012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9872
9873 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9874 substraction.
9875
6297e197
VS
98762012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9877
9878 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9879 Fix MBR remapping workaround.
9880 (grub_util_biosdisk_read) [__linux__]: Likewise.
9881
8a7ecad3
VS
98822012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9883
9884 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9885
2b34f944
VS
98862012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9887
9888 * configure.ac: Bump to beta6.
9889
684aef11
CW
98902012-05-31 Christer Weinigel <christer@weinigel.se>
9891
9892 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9893
05b0bb91
VS
98942012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9895
9896 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9897 (grub_cmd_linux): Likewise.
9898
bda36bfa
CW
98992012-05-31 Christer Weinigel <christer@weinigel.se>
9900
9901 Fix EHCI low-speed.
9902
9903 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9904 (GRUB_EHCI_MULT_TWO): Likewise.
9905 (GRUB_EHCI_MULT_THREE): Likewise.
9906 (GRUB_EHCI_CMASK_MASK): New enum value.
9907 (GRUB_EHCI_SMASK_MASK): Likewise.
9908 (GRUB_EHCI_CMASK_OFF): Likewise.
9909 (GRUB_EHCI_SMASK_OFF): Likewise.
9910 (grub_ehci_pci_iter): Enable periodic schedule.
9911 (grub_ehci_parse_notrun): Likewise.
9912 (grub_ehci_restore_hw): Likewise.
9913 (grub_ehci_setup_qh): Set flags for low speed transfers.
9914 (grub_ehci_find_qh): Use periodic list for low speed.
9915 (grub_ehci_setup_transfer): Check periodic queue as well.
9916 (grub_ehci_check_transfer): Likewise.
9917 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9918
e12bcb1c
PFS
99192012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9920
9921 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9922 parameter is used.
9923
bcc75fb3
PJ
99242012-05-31 Peter Jones <pjones@redhat.com>
9925
9926 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9927 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9928 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9929
f19cb95e
VS
99302012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9931
9932 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9933 uninited variable. Allocate at least setup_sects.
9934
a4e5ca80
VS
99352012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9936
9937 Fix handling of EFI with big memory maps.
9938
9939 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9940 (real_mode_mem): Likewise.
9941 (real_mode_target): Likewise.
9942 (real_mode_pages): Likewise.
9943 (prot_mode_pages): Likewise.
9944 (linux_params): New var.
9945 (linux_cmdline): Likewise.
9946 (free_pages): Don't set real mode variables.
9947 (allocate_pages): Don't allocate real mode memory.
9948 (grub_e820_add_region): Remove the limit.
9949 (grub_linux_boot): Allocate and copy real mode memory.
9950 (grub_linux_unload): Free linux_cmdline.
9951 (grub_cmd_linux): Use temporary storage for parameters.
9952 (grub_cmd_initrd): Likewise.
9953 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9954 (linux_kernel_params): Make it 1K big.
9955
ddb73558
VS
99562012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9957
9958 * Makefile.util.def: Remove -Wno-format.
9959 * grub-core/Makefile.core.def: Likewise.
9960
1c4afb60
VS
99612012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9962
9963 * tests/cmp_unit_test.c: Add missing failure message.
9964 * tests/example_unit_test.c: Likewise.
9965 * tests/printf_unit_test.c: Likewise.
9966
941e3a6d
VS
99672012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9968
9969 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9970 relaxation of protective MBR requirements.
9971
b105df76
VS
99722012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9973
9974 * configure.ac: Add condition for COND_HOST_XNU.
9975 * Makefile.util.def (10_xnu): New script.
9976 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9977
84e1569e
VS
99782012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9979
9980 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9981 objconv bug.
9982
130c0f77
VS
99832012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9986 Binary on other platforms stays identical.
9987
6fd0b143
VS
99882012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9991 Apple.
9992
0af1751d
VS
99932012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9994
9995 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9996
176d5f7d
VS
99972012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9998
9999 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
10000 rather than defining size_t ourselves to avoid conflict.
10001
7de5e20a
VS
100022012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10003
10004 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
10005 initialisation to avoid __bzero reference.
10006
f7143efe
VS
100072012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
10010 version.
10011 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
10012 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
10013 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
10014 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
10015 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
10016
e6ad0555
VS
100172012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10018
10019 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
10020 * grub-core/kern/misc.c: Likewise.
10021 * grub-core/loader/i386/xnu.c: Likewise.
10022 * include/grub/i386/tsc.h: Likewise.
10023 * include/grub/symbol.h: Likewise.
10024
4a5a3c4a
VS
100252012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10026
10027 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
10028 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
10029 on older compiler.
10030
037f6d90
VS
100312012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10032
10033 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
10034 Implement Apple flavour.
10035 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
10036
f7194551
VS
100372012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10038
10039 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
10040 (memmove) [__APPLE__]: Likewise.
10041 (memcpy) [__APPLE__]: Likewise.
10042 (memset) [__APPLE__]: Likewise.
10043 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
10044 (memmove) [__APPLE__]: Likewise.
10045 (memcpy) [__APPLE__]: Likewise.
10046 (memset) [__APPLE__]: Likewise.
10047
85a730ca
VS
100482012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10049
10050 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
10051 dependency discard.
10052
40e80b94
VS
100532012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10054
10055 * grub-core/normal/main.c (read_config_file): Provide config_file and
10056 config_directory.
10057 * util/grub.d/41_custom.in: Use config_directoy when available.
10058
9da59c32
VS
100592012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10060
10061 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
10062 (grub_bfs_dir): Likewise.
10063
2787ae53
PJ
100642012-05-27 Peter Jones <pjones@redhat.com>
10065
10066 The old code gives arguments to a printf function which can't work
10067 correctly, and the compiler complains.
10068
10069 * grub-core/tests/example_functional_test.c (example_test): Add
10070 missing text.
10071 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10072 * include/grub/test.h (grub_test_assert_helper): New declaration.
10073 (grub_test_assert): Use grub_test_assert_helper.
10074
526ef13d
VS
100752012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10076
10077 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10078 (exfctest): ... this to avoid overlong filenames.
10079 All users updated.
10080
20dd511c
VS
100812012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 Handle "." and ".." on squashfs.
10084
10085 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10086 Make inode numbers into stack.
10087 (grub_squash_read_symlink): Use stack.
10088 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10089 (make_root_node): Fill stack.
10090 (grub_squash_open): Use stack.
10091
1d80c62a
VS
100922012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10093
10094 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10095 freeing.
10096
d336f652
VS
100972012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10098
10099 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10100 stderr on test calls.
10101
8b43f587
VS
101022012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10105
80a3dc3f
VS
101062012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10107
10108 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10109
47e297d4
VS
101102012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10111
10112 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10113 "..".
10114
df042ccb
VS
101152012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10116
10117 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10118 (grub_hfsplus_iterate_dir): Add "." and "..".
10119
fc977f48
VS
101202012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10121
10122 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10123 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10124
f3250e5f
VS
101252012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10126
10127 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10128 (find_path): Handle "." and "..".
10129
fd8ed4c5
VS
101302012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10131
10132 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10133 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10134 (grub_affs_iterate_dir): Handle hardlinks.
10135
4ce776d2
MG
101362012-05-26 Matthew Garrett <mjg@redhat.com>
10137
10138 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10139 (grub_efi_console_fini): Likewise.
10140 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10141 (grub_video_gop_fill_mode_info): Rename to ...
10142 (grub_video_gop_fill_real_mode_info): ... this.
10143 (grub_video_gop_fill_mode_info): New function.
10144 (grub_video_gop_setup): Setup double framebuffer.
10145 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10146 Free offscreen.
10147 (grub_video_gop_swap_buffers): Copy framebuffer.
10148 (grub_video_gop_fini): Free offscreen buffer.
10149 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10150 New enum.
10151 (grub_efi_gop_blt_pixel): New struct.
10152
683031ba
VS
101532012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10154
10155 * gentpl.py: Remove error disabling for objconv.
10156
c2deb798
VS
101572012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10158
10159 * configure.ac: Remove -Wunitialized as it's not available on older
10160 compilers.
10161
101622012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
10163
10164 Fix extent overflow comparator.
10165
10166 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10167 (grub_hfsplus_read_block): Set type.
10168 (grub_hfsplus_cmp_extkey): Compare type.
10169
d6b1fd36
VS
101702012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10173
0a9aa0f6
VS
101742012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10175
10176 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10177 than 0.
10178
8360e159
VS
101792012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10180
10181 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10182 (dejavu_bold_14.pf2): New target.
10183
501b9e4b
VS
101842012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10185
10186 * configure.ac: Fix djvu font detection.
10187
7026b0e2
VS
101882012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10189
10190 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10191 ext* instead of ext2.
10192
c2a51ade
VS
101932012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10194
10195 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10196 name with \0.
10197
8f803a5d
JU
101982012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10199
10200 * docs/grub-dev.texi: Remove dot from .png.
10201
13c6353f
VS
102022012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10203
10204 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10205 protective entry in any slot.
10206 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10207 if protective entry is found in any slot.
10208
10209 Protective entry in non-first slot make no sense but is a widespread
10210 brain damage.
10211
4cf6be1b
VS
102122012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10213
10214 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10215
937d1c44
VS
102162012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10217
10218 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10219 with old reiserfs.
10220 (grub_reiserfs_open): Don't free root.
10221
021d90ec
VS
102222012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10223
10224 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10225 after freeing for safety.
10226
967b2b64
VS
102272012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10228
10229 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10230 Reported by: Jordan Uggla.
10231
34274d02
JU
102322012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10233
967b2b64
VS
10234 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10235 actual implementation. Specifically, clarify that the grub menu will
10236 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10237 passed.
34274d02 10238
dcaaae9d
BH
102392012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10240
10241 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10242 of r0.
10243
7086ad52
VS
102442012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10245
10246 Remove unjustified hard dependency of normal.mod on gfxterm.
10247
10248 * include/grub/term.h (grub_term_output): New member fullscreen.
10249 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10250 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10251 (grub_gfxterm): Set .fullscreen.
10252 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10253 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10254
37ed2c9b
VS
102552012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10256
10257 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10258 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 10259 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 10260
a4469c88
VS
102612012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10262
10263 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10264
4e461486
VS
102652012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10266
10267 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10268 a bad FS.
10269
aa78f5c4
VS
102702012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10271
10272 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10273 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10274
197626b5
VS
102752012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10276
10277 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10278 (grub_jfs_mount): Fill caseins.
10279 (grub_jfs_find_file): Respect caseins.
10280
8ad3f28c
VS
102812012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10282
10283 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10284 through UTF-16.
10285
0c6c324e
VS
102862012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10287
10288 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10289 New argument origpath. All users updated.
10290
c6666ba6
VS
102912012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10292
10293 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10294 (read_attr): Ensure that we read start of possibly compressed block.
10295
e28e5fe5
VS
102962012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10297
10298 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10299 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10300 All users updated.
10301
5fc23ab2
VS
103022012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10303
10304 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10305 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10306 (dejavu.pf2): Replace with ...
10307 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10308 this.
10309
79dbc21c
VS
103102012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10311
10312 * util/grub.d/20_linux_xen.in: Add missing line.
10313
d2fcfb0c
VS
103142012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10315
10316 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10317 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10318 (grub_utf16_to_utf8): Likewise.
10319
5560e9d6
VS
103202012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10321
10322 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10323 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10324 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10325 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10326 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10327 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10328
103292012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
10330
10331 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10332 a bad FS.
10333
5560e9d6 103342012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
10335
10336 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10337 (grub_udf_read_symlink): Handle read_string failure.
10338
5eae3175
VS
103392012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10342 comment.
10343
c1ad82db
VS
103442012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10345
10346 Fix handling of UDF symlinks.
10347
10348 * grub-core/fs/udf.c (read_string): New argument outbuf.
10349 All users updated.
10350 (grub_ufs_read_symlink): Rename to ...
10351 (grub_udf_read_symlink): ... this. All users updated.
10352 Handle symlinks with more than one component.
10353
33eca6e0
VS
103542012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10355
10356 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10357 symlinks. Replace leading colon with a slash.
10358
57f4a70b
VS
103592012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10360
10361 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10362 filename.
10363
38c8ee20
VS
103642012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10367 match in inner node.
10368
2e57f28f
VS
103692012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10370
10371 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10372 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10373 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10374 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10375 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10376 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10377 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10378 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10379 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10380
fe8c2f11
VS
103812012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10382
10383 Use grub-probe and not cmp to check that disk is empty.
10384
10385 * util/grub-install.in: Use grub-probe for zero-check.
10386 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10387 (probe): Handle PRINT_ZERO_CHECK.
10388 (argp_parser): Handle -t zero_check.
10389
103902012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
10391
10392 Flush block cache on adding disk to device map.
10393
10394 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10395 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10396 adding.
10397 (read_device_map): Likewise.
10398 (open_device): Flush on opening.
10399
690434e8
VS
104002012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10401
10402 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10403 (handle_symlink): Fix off-by-one error.
10404 Canonicalize the target.
10405 (grub_cpio_dir): Canonicalize the name.
10406 Fix memory leak.
10407 Set directory.
10408 (grub_cpio_open): Canonicalize the name.
10409
742d2be6
VS
104102012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10411
10412 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10413 handling.
10414
3244fe96
VS
104152012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10416
10417 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10418 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10419
8aeb1837
VS
104202012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10421
10422 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10423 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 10424 All users updated.
8aeb1837 10425
9133fd05
VS
104262012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10427
10428 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10429 counterpart.
10430
6d521c5b
VS
104312012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10432
10433 Fix UFS1 big file support.
10434
10435 * grub-core/fs/ufs.c (INODE): Removed.
10436 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10437 64-bit.
10438 (INODE_MODE): Simplify.
10439 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10440 (grub_ufs_lookup_symlink): Don't use INODE.
10441
21b82e17
VS
104422012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10443
10444 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10445
10446 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10447 (grub_minix_data): Replace log_block_size with block_size.
10448 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10449 (grub_minix_mount): Fill block_size.
10450
104512012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
10452
10453 * configure.ac: Bump to beta5.
10454
f417ed04
VS
104552012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10456
10457 Fix wrapped HFS+ handling.
10458
10459 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10460 blocks_start. All users updated.
10461 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10462 wrapping offset.
10463 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10464
607d282b
VS
104652012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10466
10467 Fix long symlinks on reiserfs.
10468
10469 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10470 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10471 (grub_reiserfs_iterate_dir): Save size for non-directories.
10472 (grub_reiserfs_open): Don't reread stat block as we already know the
10473 size.
10474 (grub_reiserfs_read): Split into...
10475 (grub_reiserfs_read_real): ... and ...
10476 (grub_reiserfs_read): ...this.
10477
ae16024d
VS
104782012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10479
10480 Fix non-indexed JFS.
10481
10482 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10483 (grub_jfs_data): New field namecomponentlen.
10484 (grub_jfs_mount): Fill namecomponentlen.
10485 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10486
eea1e26e
VS
104872012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10490 * tests/grub_script_echo1.in: Add tests.
10491
df760f77
VS
104922012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 * util/grub-install.in: Ignore empty devicetree directory.
10495
5efb817d
B
104962012-05-08 Bean <bean123ch@gmail.com>
10497
10498 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10499 All users updated.
10500 (free_rsm): Free header as well.
10501 (free_old_fragments): Fix memory leak.
10502 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10503 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10504 (destroy_pq): Likewise.
10505 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10506
668ea6d2
VS
105072012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10508
10509 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10510 resulting hash as a precaution.
10511
1739b1fe
VS
105122012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10513
10514 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10515 '_' in variable names.
10516 * grub-core/net/net.c (grub_net_network_level_interface_register):
10517 Likewise.
10518
6ae485aa
VS
105192012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10520
10521 Fix AFFS with non-512B blocks.
10522
10523 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10524 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10525 (grub_affs_data): Replace blocksize with log_blocksize.
10526 (grub_affs_read_block): Fix non-512B blocks.
10527 (grub_affs_read_symlink): Likewise.
10528 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10529 (grub_affs_read): Fix non-512B blocks.
10530 (grub_affs_label): Likewise.
10531 (grub_affs_mtime): Likewise.
10532 (grub_affs_mount): Fix block detection routine.
10533
d20fab84
VS
105342012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10535
10536 Add filesystem mtime to AFFS.
10537
10538 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10539 (aftime2ctime): New function.
10540 (grub_affs_dir): Use aftime2ctime.
10541 (grub_affs_label): Fix return value.
10542 (grub_affs_mtime): New function.
10543 (grub_affs_fs): Add mtime.
10544
e87b10f5
VS
105452012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10546
10547 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10548 UTF-8.
10549
7dceec9b
VS
105502012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10551
10552 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10553 UTF-8.
10554
2f48221f
VS
105552012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10556
10557 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10558
dacd85cf
VS
105592012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10560
10561 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10562 flags.
10563 (FLAGS_CASE_SENSITIVE): New enum value.
10564 (cache_entry): New struct.
10565 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10566 cache_size and cache.
10567 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10568 Add log_blocksize and fshelp_flags.
10569 (grub_sfs_read_extent): Handle non-512 blocks.
10570 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10571 (grub_sfs_read_file): Handle non-512 blocks.
10572 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10573 fshelp_flags.
10574 (grub_sfs_read_symlink): Handle non-512 blocks.
10575 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10576 (grub_sfs_dir): Free cache.
10577 (grub_sfs_close): Likewise.
10578
24e9a854
VS
105792012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10580
10581 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10582 filesystems.
10583
62ace64d
VS
105842012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10585
10586 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10587
83b2e89c
VS
105882012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10589
10590 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10591
75ccaea3
VS
105922012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10593
10594 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10595 (grub_sfs_read_extent): Likewise.
10596 (grub_sfs_read_block): Likewise.
10597 (grub_sfs_mount): Likewise.
10598 (grub_sfs_iterate_dir): Likewise.
10599 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10600 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10601
1b8463f2
VS
106022012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10603
10604 Fix errors on compressed NTFS with 512B clusters.
10605
10606 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10607 types.
10608 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10609 not 0.
10610 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10611 Relax check for inline extents.
10612 (ntfscomp): Return correct -1 on error and not 0.
10613
4f8e368f
VS
106142012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10615
10616 * util/grub-install.in: Fix handling of prefix containing spaces.
10617
6f5d5ee8
VS
106182012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10619
10620 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10621 (grub_squash_read_data): Fix offset byte-swapping.
10622
ce41ab7a
VS
106232012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10626 per common usage and preffered in several parts of code.
10627 (grub_memcmp): Likewise.
10628 (grub_strncmp): Likewise.
10629 * include/grub/misc.h (grub_strcasecmp): Likewise.
10630 (grub_strncasecmp): Likewise.
10631 * Makefile.util.def (cmp_test): New test.
10632 (grub_script_strcmp): Likewise.
10633 * tests/cmp_unit_test.c: New file.
10634 * tests/grub_script_strcmp.in: Likewise.
10635 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10636
49717bf4
VS
106372012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10638
10639 * include/grub/pci.h: Move enums into no-asm part.
10640
0a308f64
VS
106412012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10642
10643 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10644
1796965f
ST
106452012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10646
10647 * util/getroot.c (find_hurd_root_device): Try to make error message
10648 and comments to translators clearer.
10649
4e9b2819
VS
106502012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10651
10652 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10653
076aeb50
VS
106542012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10657 btrfs.
10658
19424d94
VS
106592012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10660
10661 * docs/grub.cfg: Update.
10662
ebb73076
VS
106632012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10664
10665 * docs/grub.texi (PXE): Remove not present variables.
10666
9a1b669c
VS
106672012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10668
10669 * grub-core/net/net.c (defserver_set_env): New function.
10670 (defserver_get_env): Likewise.
10671 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10672
d38bf7d3
VS
106732012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10674
10675 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10676 entries.
10677
106782012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
10679
10680 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10681 * grub-core/kern/emu/hostdisk.c: Likewise.
10682
e5e4ca48
ST
106832012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10684
10685 Handle hurd userspace partitions.
10686
10687 * util/getroot.c (find_hurd_root_device): New function.
10688 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10689
56bb5dd5
VS
106902012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10691
10692 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10693 names.
10694 Reported by: Bastian Blank.
10695
9e8bc27a
VS
106962012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10697
10698 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10699 crossing page boundary.
10700
aa01499d
VS
107012012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10702
10703 Fix B-tree search in BFS, especially in presence of non-ASCII
10704 characters.
10705
10706 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10707 (find_in_b_tree): Use standard bsearch + btree algorithm.
10708
57006035
VS
107092012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10710
10711 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10712 and so on.
10713
9d34bb85
MG
107142012-05-03 Matthew Garrett <mjg@redhat.com>
107152012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10716
10717 Suspend broadcom cards in order to stop their DMA.
10718
10719 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10720 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10721 (pci): Don't build on x86 EFI.
10722 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10723 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10724 New function.
10725 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10726 stop_broadcom if running on EFI.
10727 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10728 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10729 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10730 (grub_pci_find_capability): New proto.
10731
01aab997
VS
107322012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10733
10734 * docs/grub.texi: Remove dot from the extension as it apparently
10735 doesn't work with some makeinfo versions.
10736
fbd8dca6
VS
107372012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10738
10739 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10740 with GRUB expectance.
10741
dab797f4
VS
107422012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10743
10744 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10745
1516bfb4
VS
107462012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10747
10748 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10749 zero after directory block since last entry may be not 0-terminated if
10750 it ends on block boundary. Use continue instead of if spanning whole
10751 loop.
10752
a3a0eace
VS
107532012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10754
10755 Support 4K sectors UDF inline files.
10756
10757 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10758 (grub_udf_extended_file_entry): Likewise.
10759 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10760 All users updated.
10761 (get_fshelp_size): New function.
10762 (grub_udf_read_icb): Read whole block.
10763 (grub_udf_iterate_dir): Likewise.
10764 (grub_udf_dir): Likewise.
10765 (grub_udf_open): Likewise.
10766
c82f16c1
VS
107672012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10768
10769 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10770
59fd2aac
VS
107712012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10774 inline symlinks in addition to workaround.
10775
3b4afb4d
VS
107762012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10777
10778 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10779
f45c794a
VS
107802012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10781
10782 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10783
f25cecbd
VS
107842012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10785
10786 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10787
bb9a34e8
VS
107882012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10789
10790 Fix reiserfs big seek times.
10791
10792 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10793 exact. All users updated.
10794 (grub_reiserfs_read): Use nearest btree search for seeking.
10795 Fix return value on error.
10796
dc478aea
VS
107972012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10798
10799 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10800 entries.
10801 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10802 * docs/grub.texi: Update menuentry description.
10803
8db10f47
VS
108042012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10805
10806 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10807 crash when embedding onto filesystem.
10808
bcb288ed
VS
108092012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10810
10811 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10812 name.
10813
a626fdd7
VS
108142012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10815
10816 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10817
b2f68477
VS
108182012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10819
10820 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10821 commit.
10822
ba15b2af
B
108232012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
108242012-05-01 Bean <bean123ch@gmail.com>
10825
10826 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10827
a188012e
VS
108282012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10829
10830 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10831 Special behaviour for len = 0 to read whole file isn't used anywhere and
10832 can cause buffer ovewrflows in several places.
10833
f0a53ed2
VS
108342012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10835
10836 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10837
5ed554f0
VS
108382012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10839
10840 Handle RAIDZ on non-512B sectors.
10841
10842 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10843 max_children_ashift.
10844 (fill_vdev_info_real): Fill max_children_ashift.
10845 (read_device): Use max_children_ashift.
10846
ddc58357
VS
108472012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10848
10849 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10850
e3282399
VS
108512012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10852
10853 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10854 disk names.
10855 * docs/grub.texi: Update device.map parts.
10856
ee618bd4
VS
108572012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10858
10859 Don't scan into non-diskfilter devices having diskfilter names.
10860
10861 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10862 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10863 handling.
10864 (scan_disk_hook): New function.
10865
bdf88864
B
108662012-04-29 Bean <bean123ch@gmail.com>
10867
10868 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10869 allocation.
10870
32745f51
MK
108712012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10872
10873 * configure.ac: Detect starfield theme font path
10874 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10875
bc95c8c0
VS
108762012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10877
10878 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10879 geometry on serial consoles.
10880
147fbcab
VS
108812012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10882
10883 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10884 because of network consoles.
10885
0f42c889
VS
108862012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10887
10888 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10889 handling.
10890
4a3594c9
VS
108912012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10892
10893 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10894 falls on Q syndrom.
10895
5cb53879
VS
108962012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10897
10898 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10899 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10900
b282dfe5
VS
109012012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10902
10903 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10904 Allocate at lest 8192 for temporary buffer as required for lzo.
10905
daa59f47
VS
109062012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10907
10908 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10909 to cluster_bits, since it's already added in.
10910 (grub_fat_read_data): Likewise.
10911
986748ce
VS
109122012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10913
10914 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10915 as long as cluster size is multiple of 512 bytes.
10916
a20f6ad0
VS
109172012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10918
10919 * util/grub-mkrescue.in: Fix locale directory.
10920
385f9abb
VS
109212012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10922
10923 * grub-core/kern/emu/hostdisk.c (map): Make static.
10924
1c557d30
B
109252012-04-23 Bean <bean123ch@gmail.com>
10926
10927 * util/grub-fstest.c (fstest): Add missing break.
10928
524b5d3a
ST
109292012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10930
10931 Fix hurd build.
10932
10933 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10934 not define nr variable.
fe4824e9 10935 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10936 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10937 grub_find_device): Do not define.
524b5d3a 10938
9a06490c
VS
109392012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10940
10941 Fix kfreebsd compile and behaviour.
10942
10943 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10944 format-security.
10945 * util/getroot.c: Fix wait.h include.
10946 (grub_guess_root_devices): Error if grub_find_device fails.
10947 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10948 (grub_util_get_dev_abstraction): Likewise.
10949 (grub_util_pull_device): Likewise.
10950 (grub_util_get_grub_dev): Likewise.
10951 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10952
48143d96
VS
109532012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10954
10955 Fix and unify wholedisk detection.
10956
10957 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10958 is_part. All users updated.
10959 (device_is_wholedisk): Removed.
10960 (grub_util_biosdisk_get_grub_dev): Use is_part.
10961
ebbd24f3
VS
109622012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10963
10964 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10965 mode.
10966
56f7aa1e
VS
109672012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10968
10969 * configure.ac: Bump to beta4.
10970
9c815e01
VS
109712012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10972
10973 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10974 --fs-uuid --set UUID syntax.
10975
59e2651a
VS
109762012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10977
10978 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10979 disunification.
10980
54e03cfc
VS
109812012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10982
10983 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10984
81092a75
MK
109852012-04-18 Mads Kiilerich <mads@kiilerich.com>
10986
10987 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10988
f8315e14
MG
109892012-04-18 Mike Gilbert <floppym@gentoo.org>
10990
10991 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10992
1501ac21
B
109932012-04-18 Bean <bean123ch@gmail.com>
10994
10995 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10996 place.
10997
cb7f944e
VS
109982012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10999
11000 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
11001 users updated.
11002 (grub_util_biosdisk_read): Handle Linux partitions not exactly
11003 corresponding to GRUB partitions.
11004 (grub_util_biosdisk_write): Likewise.
11005
b72d44a1
VS
110062012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11007
11008 Scan mdraid before LVM.
11009
11010 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
11011 (grub_diskfilter_register_front): ... this.
11012 (grub_diskfilter_register_back): New function.
11013 All users of grub_diskfilter_register updated.
11014
33d918b8
VS
110152012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11016
11017 * util/grub-install.in: Fix an automatic target detection bug.
11018
c6ca973d
VS
110192012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11020
11021 * util/grub-install.in: New option --efi-directory.
11022
b41be562
VS
110232012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11024
11025 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
11026 boot services if we have no other choice.
11027
110282012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
11029
11030 * util/grub-mknetdir.in: Rename --override-directory to --directory and
11031 document it.
11032 * tests/util/grub-shell.in: Update to --directory.
11033
e0595a73
VS
110342012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11035
11036 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
11037
4ed80652
VS
110382012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11039
11040 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
11041 (grub_minix_read_file): Likewise.
11042 (grub_minix_read_inode): Likewise.
11043 (grub_minix_find_file): Likewise.
11044 (grub_minix_dir): Likewise.
11045
56008077
VS
110462012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11047
11048 * util/grub-setup.c (setup): Fix partition handling and blocklist
11049 check.
11050
ee520775
VS
110512012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11052
11053 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
11054 redundant buggy overlap check.
11055
16fc9293
VS
110562012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11057
11058 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
11059 and grub-mknetdir.
11060
9bab65c4
VS
110612012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11062
11063 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11064 kh.loadflags on pre-2.00 kernels.
11065
3c491b47
VS
110662012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11067
11068 Terminate UNDI and PXE before launching the payload to avoid problems
11069 with DMA.
11070
11071 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11072 (grub_loader_flags): ... this. All users updated.
11073 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11074 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11075 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11076 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11077 function.
11078 (grub_pxe_restore): Likewise.
11079 (fini_hnd): New var.
11080 (GRUB_MOD_INIT): Register shutdown hook.
11081 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11082 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11083 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11084 (grub_loader_set): Rename second argument to flags.
11085
851ffada
VS
110862012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11087
11088 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11089 written bytes.
11090 (grub_get_num_of_utf8_bytes): New function.
11091 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11092 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11093 executing it.
11094 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11095 (grub_ucs4_to_utf8): Change return type.
11096
491c57a8
VS
110972012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11098
11099 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11100 warning.
851ffada
VS
11101 * grub-core/fs/bfs.c (hop_level): Likewise.
11102 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 11103
756773df
VS
111042012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11105
11106 * grub-core/lib/adler32.c: Recode due to license unclearness.
11107
fd556a96
VS
111082012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11109
11110 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11111 (test_header): Likewise.
11112
9f9d3f69
VS
111132012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 Fix --help formatting.
11116
11117 * util/grub-mkconfig_lib.in (print_option_help): New function.
11118 (grub_fmt): Likewise.
11119 * util/grub-install.in: Use print_option_help and grub_fmt.
11120 * util/grub-kbdcomp.in: Likewise.
11121 * util/grub-mkconfig.in: Likewise.
11122 * util/grub-mknetdir.in: Likewise.
11123 * util/grub-mkrescue.in: Likewise.
11124 * util/grub-mkstandalone.in: Likewise.
11125 * util/grub-reboot.in: Likewise.
11126 * util/grub-set-default.in: Likewise.
11127 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11128
561ec77e
VS
111292012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11130
11131 * linguas.sh: Remove autogenerated *.po.
11132
7ec2b021
VS
111332012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11134
11135 * po/README: Move language fetcing to ...
11136 * linguas.sh: ... here.
11137 * po/README: Point to linguas.sh.
11138
a88f3270
VS
111392012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11140
11141 * po/README: Exclude ko.po due to disclaimer problems.
11142
d61357ce
VS
111432012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11144
11145 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11146 len = 0.
11147 (grub_gettext_translate_real): Handle 0th string.
11148 (grub_gettext_translate): Ensure that "" isn't translated.
11149
505e41dc
VS
111502012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11151
11152 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11153 TRANSLATORS comment.
11154 (grub_diskfilter_print_partmap): Propagate changing of error into
11155 warning.
11156
e44092db
VS
111572012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11158
11159 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11160 to uint64_t to prevent overflow.
11161 (grub_diskfilter_lv): Increase start_extent and extent_count
11162 to uint64_t to prevent overflow.
11163
9b83956a
VS
111642012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 * configure.ac: Increase version.
11167
da0d5b3f
VS
111682012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11169
11170 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11171
11172 * po/Rules-translit: New file.
11173 * po/arabic.sed: Likewise.
11174 * po/cyrillic.sed: Likewise.
11175 * po/greek.sed: Likewise.
11176 * po/hebrew.sed: Likewise.
11177 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11178 * po/Makefile.in.in: Add extra_dist4.
11179
ac66b453
VS
111802012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11181
11182 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11183
11184 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11185 modify names. Introduce MODE_BIGENDIAN.
11186 * grub-core/fs/minix_be.c: New file.
11187 * grub-core/fs/minix2_be.c: Likewise
11188 * grub-core/fs/minix3_be.c: Likewise.
11189 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11190 minix3_be.
11191 * grub-core/Makefile.core.def (minix_be): New module.
11192 (minix2_be): Likewise.
11193 (minix3_be): Likewise.
11194
111952012-04-01 Felix <email@hamburg.de>
11196
11197 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11198 (devs): Add MBP 2011.
11199
0a2d5a82
VS
112002012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11201
11202 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11203
d1625889
VS
112042012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11205
11206 * grub-core/normal/cmdline.c (print_completion): New field
11207 prompt_len.
11208 (grub_cmdline_get): Handle width properly.
11209
6d36a236
VS
112102012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11211
11212 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11213
9576977e
VS
112142012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11215
11216 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 11217 after 29th of February.
9576977e 11218
d73ff15d
VS
112192012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11220
11221 Fix exfat endianness handling.
11222
11223 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11224 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11225 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11226 Byte-swap utf16 when necessary.
11227 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11228
bbb39a45
AB
112292012-03-31 Anton Blanchard <anton@samba.org>
112302012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11231
11232 Fix btrfs endianness handling.
11233
11234 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11235 (lower_bound): Make root uint64_t. Use root in le.
11236 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11237 (find_path): Fix template key init.
11238 (grub_btrfs_dir): Fix mtime byteswap.
11239 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11240
354e0af7
VS
112412012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11242
11243 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11244 recursion_depth. Break infinite resursions. All users updated.
11245
4e75f21c
VS
112462012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11247
11248 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11249 after free.
11250 Reported by: Peter Jones.
11251
25581802
AB
112522012-03-31 Anton Blanchard <anton@samba.org>
11253
11254 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11255 8 bit values.
11256
08fbf92e
VS
112572012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11258
11259 * util/grub-install.in: Fix nvram call for PreP.
11260
5d1182a6
VS
112612012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11262
11263 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11264 the error when some elements are missing into a warning.
11265
3f8cdd90
VS
112662012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11267
11268 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11269
51006716
CW
112702012-03-28 Colin Watson <cjwatson@ubuntu.com>
11271
11272 * docs/grub.texi (Invoking grub-probe): New section.
11273 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11274
e1bd676b
VS
112752012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11276
11277 Fix tab and wide character handling in editor and menu.
11278
11279 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11280 agglomerate control characters with combining marks.
11281 (bidi_line_wrap): Allow break on tab.
11282 (grub_unicode_get_comb_start): New function.
11283 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11284 and tab correctly.
11285 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11286 with a space.
11287 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11288 fixed_tab_size. All users updated.
11289 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11290 (grub_term_getcharwidth): Handle \t.
11291 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11292 and copy.
11293
22e6a774
VS
112942012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11295
11296 Handle big-endian mdraid.
11297
11298 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11299 * grub-core/Makefile.core.def (mdraid09_be): New module.
11300 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11301 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11302 * grub-core/disk/mdraid_linux_be.c: New file.
11303
3c0eae66
VS
113042012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11305
11306 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11307
b6cf74c9
VS
113082012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11309
11310 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11311 missing quotes which caused confusion among translators.
11312
83c93b9c
VS
113132012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11314
11315 * util/grub-mkconfig_lib.in: Fix typo.
11316
ac6fd218
VS
113172012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11318
11319 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11320 spaces.
11321 * tests/grub_script_leading_whitespace.in: New file.
11322 * Makefile.util.def (grub_script_leading_whitespace): New test.
11323
ba287dd8
VS
113242012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11325
11326 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11327 to work.
11328
d2d58d0a
VS
113292012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11330
11331 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11332 starts with control character.
11333
0382d9bb
VS
113342012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11335
11336 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11337 overflow.
11338 (grub_gdb_outbuf): Likewise.
11339
d83ff9f9
VS
113402012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11341
11342 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11343 zero terminator. Fixes a crash.
11344
2282da4a
VS
113452012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11346
11347 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11348 beyond 4 GiB.
11349 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11350 images independently of preffered adderss field.
11351
0ae4f0bd
VS
113522012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11353
11354 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11355 * grub-core/commands/regexp.c: Likewise.
11356 * grub-core/loader/i386/linux.c: Likewise.
11357 * grub-core/partmap/msdos.c: Likewise.
11358 * grub-core/script/execute.c: Likewise.
11359 * grub-core/term/gfxterm.c: Likewise.
11360
546fbe9b
VS
113612012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11362
11363 Add variable parsing in $"..." and fix several mismatches with bash.
11364
11365 * Makefile.util.def (grub_script_gettext): New test.
11366 * grub-core/script/execute.c (parse_string): New function.
11367 (gettext_append): Likewise.
11368 (grub_script_arglist_to_argv): Use gettext_append.
11369 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11370 * tests/grub_script_gettext.in: New file.
11371
9fdb2d7b
VS
113722012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11373
11374 Fix handling of leading spaces in scripts.
11375
11376 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11377 spaces.
11378 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11379 other than skipping \r. All users updated.
11380 * tests/grub_script_echo1.in: Add space-related tests.
11381 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11382
1a1ac4f6
VS
113832012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11384
11385 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11386
b63d89b6
VS
113872012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11388
11389 * configure.ac: Bump up the version to beta2.
11390
17f38c0f
VS
113912012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11392
11393 Fix gettext reload bugs (e.g. inability to disable gettext
11394 once enabled).
11395
11396 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11397 main_context and secondary_context. All functions updated.
11398 (grub_gettext_translate): Rename to ...
11399 (grub_gettext_translate_real): ... this. Return NULL on failed
11400 translate.
11401 (grub_gettext_translate): Handle secondary context.
11402 (grub_gettext_delete_list): Close file and zero-out the context.
11403 (grub_mofile_open): Don't call grub_gettext_delete_list.
11404 Don't close file.
11405 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11406 if locale="" to avoid pointless error message.
11407 (grub_gettext_env_write_lang): Update lang even if load fails.
11408 Handle secondary context.
11409 (grub_gettext_reread_prefix): New function.
11410 (read_main): Likewise.
11411 (read_secondary): Likewise.
11412 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11413 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11414 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11415 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11416
8e56f870
VS
114172012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11418
11419 * configure.ac: Decrease warning level to avoid spurious warnings and
11420 to be able to compile with GCC 4.2.
11421 * Makefile.util.def: Remove -Wno-error=logical-op.
11422
82f6d455
WB
114232012-03-10 William Bittner <william.bittner@gmail.com>
11424
11425 * util/import_unicode.py: Add missing brackets around string for
11426 python 3 support.
11427
1ecd61a4
VS
114282012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11429
11430 Fix efi chainloader on network root.
11431
11432 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11433 network devices.
11434 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11435 New function.
11436
14361ee8
VS
114372012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11438
11439 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11440 unused show_text member.
11441 * docs/grub.texi: Document "text" property.
11442
922aabf3
VS
114432012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11444
11445 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11446 in dprintf.
11447
ec316771
VS
114482012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11449
11450 Fix IMSM handling on Fedora.
11451
11452 * util/getroot.c (grub_util_is_imsm): New function.
11453 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11454
0f021838
VS
114552012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11456
11457 * Makefile.am: Strip gold section.
11458 * conf/Makefile.common: Likewise.
11459 * gentpl.py: Likewise.
11460 * grub-core/Makefile.core.def: Likewise.
11461 * grub-core/genmod.sh.in: Likewise.
11462
1039c8eb
VS
114632012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11464
11465 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11466 * util/grub.d/20_linux_xen.in: Likewise.
11467 Based on Debian patch.
11468
6dd412cd
VS
114692012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11470
11471 * util/grub.d/10_linux.in: Fix syntax error resulting in
11472 Richard Laager's patch.
11473 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11474
3fd8bae5
VS
114752012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11476
11477 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11478 dependencies.
11479
7eea1671
RL
114802012-03-10 Richard Laager <rlaager@wiktel.com>
11481
11482 * util/grub.d/10_linux.in: Fix ZFS root passing.
11483
e8e0566b
VS
114842012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11485
11486 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11487 * grub-core/commands/xnu_uuid.c: Likewise.
11488 * grub-core/loader/efi/appleloader.c: Likewise.
11489 * grub-core/script/execute.c: Likewise.
11490 * grub-core/script/main.c: Likewise.
11491 * util/grub-mkfont.c: Likewise.
11492
1acc5b1f
VS
114932012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11494
11495 * util/grub-mkfont.c (options): Use more appropriate "select" that
11496 "set" for face index.
11497
35d70620
VS
114982012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11499
11500 * util/grub-editenv.c (options): Gettextize command summaries.
11501
c9eb96b5
VS
115022012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11503
11504 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11505 "out of memory" error messagge.
11506
1f493136
VS
115072012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11508
11509 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11510 of diskfilter for diskfilter on diskfilter support.
11511
6d790129
VS
115122012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11513
11514 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11515
005f46c9
VS
115162012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11517
11518 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11519 themes/starfield.
11520
c8f778a0
VS
115212012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11522
11523 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11524
de1e64eb
VS
115252012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11526
11527 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11528
c6d54211
VS
115292012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11530
11531 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11532 of error message.
11533
dd390777
VS
115342012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11535
11536 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11537
5fd1c522
VS
115382012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11539
11540 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11541 message.
c6d54211 11542 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 11543
fae01f6c
VS
115442012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11545
11546 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11547 Gettextize.
11548 * util/grub-mount.c (options): Likewise.
11549
292fdaff
VS
115502012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11553 gettextize.
11554 * grub-core/commands/search_wrap.c (options): Likewise.
11555
ecdbae77
VS
115562012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11557
11558 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11559
52bfedfa
VS
115602012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11561
11562 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11563 size calculation.
11564 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11565 none is known.
11566
55b20e58
VS
115672012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11568
11569 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11570 "temporary" since it's used in identifier and is limited in space.
11571
fda9d101
VS
115722012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11573
11574 * po/POTFILES.in: Regenerate. Include *.h since they contain
11575 translatable strings as well.
11576
6a0295e2
VS
115772012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11578
11579 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11580 byte-swap on big-endian.
11581 Reported by: Lennart Sorensen
11582
807fb77c
VS
115832012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11584
11585 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11586 (allocate_pages): Improve dprintf.
11587 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11588 code32_start. Fill code32_start and kernel_alignment in params.
11589 (grub_cmd_initrd): Use prot_init_space.
11590
61ac50ba
VS
115912012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11592
11593 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11594
abdd26dd
VS
115952012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11596
11597 * util/grub-install.in: Add missing dot at the end of sentence.
11598
6e69da9c
VS
115992012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11600
11601 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11602 * grub-core/commands/videotest.c: Likewise.
11603 * grub-core/loader/i386/linux.c: Likewise.
11604
4a929343
VS
116052012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11606
11607 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11608 sentence.
11609 Reported by: Milo Casagrande.
11610
bb51c6c6
VS
116112012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11612
11613 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11614 * grub-core/commands/gptsync.c: Likewise.
11615 * grub-core/commands/hashsum.c: Likewise.
11616 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11617 * grub-core/commands/legacycfg.c: Likewise.
11618 * grub-core/io/gzio.c: Likewise.
11619 * grub-core/net/net.c: Likewise.
11620 * grub-core/term/gfxterm.c: Likewise.
11621 * grub-core/term/terminfo.c: Likewise.
11622 * grub-core/tests/test_blockarg.c: Likewise.
11623 * grub-core/video/video.c: Likewise.
11624 * util/grub-install.in: Likewise.
11625 * util/grub-mkfont.c: Likewise.
11626
b2b149cb
VS
116272012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11628
11629 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11630
c7c080ad
VS
116312012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11632
11633 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 11634 Reported by: David Prévot.
c7c080ad 11635
f2e243c0
VS
116362012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11637
11638 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11639 description.
11640
09963c76
VS
116412012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11642
11643 * util/grub-script-check.c (main): Fix a syntax error message which was
11644 unclear.
11645
a50514a8
VS
116462012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11647
11648 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11649
4650daec
VS
116502012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11651
11652 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11653 messages.
11654
116552012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
11656
11657 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11658 without argument.
11659 * util/grub-mount.c (options): Likewise.
11660
bbc5a342
VS
116612012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11662
11663 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11664
ef292a87
VS
116652012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11666
11667 * grub-core/net/http.c: Add TRANSLATORS comments.
11668 * grub-core/normal/cmdline.c: Likewise.
11669 * grub-core/normal/misc.c: Likewise.
11670 * grub-core/partmap/msdos.c: Likewise.
11671 * grub-core/parttool/msdospart.c: Likewise.
11672 * grub-core/script/execute.c: Likewise.
11673 * grub-core/script/main.c: Likewise.
11674 * grub-core/term/terminfo.c: Likewise.
11675 * grub-core/video/bitmap.c: Likewise.
11676 * util/grub-install.in: Likewise.
11677 * util/grub-mkimage.c: Likewise.
11678 * util/grub-mklayout.c: Likewise.
11679 * util/grub-setup.c: Likewise.
11680
0fc19bd0
VS
116812012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11682
11683 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11684 with similar messages in grub-fstest.
11685
d95862ef
VS
116862012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11687
11688 * util/grub-install.in: Unify "option requires an argument" message
11689 with similar messages in other files.
11690 * util/grub-mkconfig.in: Likewise.
11691
b7308f90
VS
116922012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11693
11694 * util/grub-set-default.in: Replace printf with gettext_printf (the
11695 string in in question is already translated from grub-reboot)
11696
559dc587
VS
116972012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11698
11699 * configure.ac: Bump up the version to beta1.
11700
1a11761f
VS
117012012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11702
11703 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11704 case when min_align = 0.
11705
24539abd
VS
117062012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11709 and fix a case when line_start overflows.
11710
32bd735b
VS
117112012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 * util/grub-reboot.in (usage): Mention id posibility.
11714 * util/grub-set-default.in (usage): Likewise.
11715
1a2fd1e6
VS
117162012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11717
11718 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11719 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11720 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11721 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11722 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11723 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11724 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11725
90eeab76
VS
117262012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11727
11728 * grub-core/commands/menuentry.c (options): Remove
11729 GRUB_ARG_OPTION_REPEATABLE.
11730 Reported by: Andreas Vogel
11731
5ad1be82
AV
117322012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11733
11734 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11735
cb055286
HE
117362012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11737
11738 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11739 error.
11740
93b1cd79
VS
117412012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11742
11743 Use sort -V by the idea of Georgi Georgiev.
11744
11745 * util/grub-mkconfig_lib.in (version_sort): New function.
11746 (version_test_numeric): Use version_sort.
11747
0cdc126c
VS
117482012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11749
11750 Use submenus in grub-mkconfig.
11751
11752 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11753 * util/grub-mkconfig_lib.in (grub_quote): New function.
11754 (gettext_printf): Use gettext and not gettext_quoted to fix several
11755 messages.
11756 * util/grub.d/10_hurd.in: Use submenus.
11757 * util/grub.d/10_kfreebsd.in: Likewise.
11758 * util/grub.d/10_linux.in: Likewise.
11759 * util/grub.d/10_netbsd.in: Likewise.
11760 * util/grub.d/20_linux_xen.in: Likewise.
11761 * util/grub.d/30_os-prober.in: Likewise.
11762 * util/grub.d/10_illumos.in: Add missing quoting.
11763 * util/grub.d/10_windows.in: Likewise.
11764
d9bef9bc
VS
117652012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11766
11767 Fix menu title instability bug.
11768
11769 * grub-core/commands/menuentry.c (options): New option --id.
11770 (grub_normal_add_menu_entry): New argument id. All users updated.
11771 (grub_cmd_menuentry): Handle --id.
11772 (grub_menu_init): Accept unknown arguments.
11773 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11774 feature_menuentry_options.
11775 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11776 saved_entry.
11777 (get_entry_number): Match with id as well.
11778 * include/grub/menu.h (grub_menu_entry): New member id.
11779 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11780 * util/grub.d/00_header.in: Define menuentry_id_option.
11781 * util/grub.d/10_hurd.in: Define id.
11782 * util/grub.d/10_illumos.in: Likewise.
11783 * util/grub.d/10_kfreebsd.in: Likewise.
11784 * util/grub.d/10_linux.in: Likewise.
11785 * util/grub.d/10_netbsd.in: Likewise.
11786 * util/grub.d/10_windows.in: Likewise.
11787 * util/grub.d/20_linux_xen.in: Likewise.
11788 * util/grub.d/30_os-prober.in: Likewise.
11789
117902012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
11791
11792 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11793 "scope" with "body".
11794
7c8d0ce7
VS
117952012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11796
11797 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11798 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11799 prot_size and prot_file_size.
11800
49de079b
VS
118012012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11802
11803 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11804 All users updated. If easily=1 require raid-5/-6 to be full.
11805 (is_node_readable): Likewise.
11806 (scan_devices): Scan incomplete but readable LVs at the end.
11807 (grub_diskfilter_memberlist): Pull missing devices.
11808 (insert_array): Skip scanning until device is complete or scan is
11809 done otherwise.
11810 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11811 check.
11812 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11813 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11814
aff05d45
MG
118152012-03-03 Matthew Garrett <mjg@redhat.com>
118162012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11817
11818 Avoid EFI boot services when loading Linux.
11819
11820 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11821 avoid_efi_bootservices. All users updated.
11822 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11823 argument avoid_efi_bootservices. All users updated.
11824 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11825 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11826 align, min_align, relocatable, prefered_address. All users updated.
11827 Allocate avoiding boot services if kernel is relocatable.
11828 (grub_cmd_linux): Check if kernel is relocatable.
11829 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11830 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11831 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11832 avoid_efi_boot_services.
11833 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11834 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11835 (linux_kernel_params): Likewise.
11836
3935dde2
MG
118372012-03-03 Matthew Garrett <mjg@redhat.com>
118382012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11839
11840 Use EDID on EFI.
11841
11842 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11843 datasize_out.
11844 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11845 modes. Set gop_handle.
11846 (grub_video_gop_get_edid): New function.
11847 (grub_gop_get_preferred_mode): Likewise.
11848 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11849 (grub_video_efi_gop_adapter): Set .get_edid.
11850 * include/grub/efi/edid.h: New file.
11851 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11852
32107ec0
VS
118532012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11854
11855 * util/grub-install.in: Load efivars unconditionally.
11856
e70a2c50
VS
118572012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11858
11859 * po/Rules-piglatin: Change suffix from .po-update-en to
11860 .po-update-en-piglatin.
11861
8f9cace1
VS
118622012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11863
11864 Add a pig farm.
11865
11866 * po/piglatin.sed: New file.
11867 * po/en@piglatin.header: Likewise.
11868 * po/Rules-piglatin: Likewise.
11869 * po/README: Add en@piglatin to autogenerated languages.
11870
8f95d002
VS
118712012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11872
11873 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11874 "Command for ...".
11875 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11876 "Check" since we don't check anything.
11877 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11878 is 64-bit one.
11879 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11880 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11881 (grub_md_sha512_real): Likewise.
11882
805a8dcc
VS
118832012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11884
11885 * grub-core/commands/gptsync.c: Fix typographic quoting.
11886 * grub-core/commands/ieee1275/suspend.c: Likewise.
11887 * grub-core/commands/parttool.c: Likewise.
11888 * grub-core/commands/search_wrap.c: Likewise.
11889 * grub-core/commands/videoinfo.c: Likewise.
11890 * grub-core/gfxmenu/gui_label.c: Likewise.
11891 * grub-core/hello/hello.c: Likewise.
11892 * grub-core/kern/emu/main.c: Likewise.
11893 * grub-core/net/net.c: Likewise.
11894 * grub-core/normal/menu.c: Likewise.
11895 * grub-core/normal/menu_text.c: Likewise.
11896 * grub-core/normal/misc.c: Likewise.
11897 * util/grub-editenv.c: Likewise.
11898 * util/grub-install.in: Likewise.
11899 * util/grub-kbdcomp.in: Likewise.
11900 * util/grub-mkconfig.in: Likewise.
11901 * util/grub-mknetdir.in: Likewise.
11902 * util/grub-mkrescue.in: Likewise.
11903 * util/grub-mkstandalone.in: Likewise.
11904 * util/grub-reboot.in: Likewise.
11905 * util/grub-set-default.in: Likewise.
11906 * util/grub-setup.c: Likewise.
11907 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11908
40211ab8
VS
119092012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11910
11911 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11912 * grub-core/commands/keystatus.c: Likewise.
11913 * grub-core/commands/loadenv.c: Likewise.
11914 * grub-core/commands/probe.c: Likewise.
11915 * grub-core/commands/regexp.c: Likewise.
11916 * grub-core/commands/true.c: Likewise.
11917 * grub-core/commands/videoinfo.c: Likewise.
11918 * grub-core/disk/cryptodisk.c: Likewise.
11919 * grub-core/disk/ldm.c: Likewise.
11920 * grub-core/disk/loopback.c: Likewise.
11921 * grub-core/disk/luks.c: Likewise.
11922 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11923 * grub-core/kern/disk.c: Likewise.
11924 * grub-core/kern/emu/hostdisk.c: Likewise.
11925
0c7d99c7
VS
119262012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11927
11928 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11929 * util/grub-install.in: Add missing quote in the comment.
11930
e7d2559b
VS
119312012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11932
11933 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11934 * grub-core/commands/lsmmap.c: Likewise.
11935 * grub-core/commands/minicmd.c: Likewise.
11936 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11937 * grub-core/commands/regexp.c: Likewise.
11938 * grub-core/gdb/gdb.c: Likewise.
11939 * grub-core/term/gfxterm.c: Likewise.
11940 * util/grub-mkconfig.in: Likewise.
11941 * util/grub-mkfont.c: Likewise.
11942 * util/grub-mklayout.c: Likewise.
11943 * util/grub-mknetdir.in: Likewise.
11944 * util/grub-mkrescue.in: Likewise.
11945 * util/grub.d/30_os-prober.in: Likewise.
11946
49ce9e50
VS
119472012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11948
11949 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11950 with "Direct color" and "Packed" with "Packed pixel".
11951 (grub_cmd_videoinfo): Simplify legend.
11952
e4b791fa
VS
119532012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11954
11955 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11956 absolutely unclear error message.
11957
fd1265cb
VS
119582012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11959
11960 * util/grub-mkstandalone.in: Remove confusing leftover print.
11961
8822a8a0
VS
119622012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11963
11964 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11965 comments.
11966 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11967 (GRUB_MOD_INIT): Likewise.
11968 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11969 VGA mode.
11970 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11971 comments.
11972 * util/grub-install.in (usage): Likewise.
11973 Spell ID in whole letters.
11974 Add missing ending dot.
11975 Quote variables.
11976 * util/grub-reboot.in: Fix capitalisation.
11977 * util/grub-set-default.in: Likewise.
11978
937fd0cc
VS
119792012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11980
11981 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11982 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11983 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11984 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11985 Disable -Werror for -Wdeprecated-declarations.
11986 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11987 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11988 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11989 (grub_util_get_grub_dev): Make luks handling dependent on
11990 HAVE_DEVICE_MAPPER and not __linux__.
11991 (get_win32_path): Fix format security.
11992 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11993 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11994 Don't try grub_find_zpool_from_dir.
11995 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11996 #ifdef-out paresdir.
11997
1bab1ae3
VS
119982012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11999
12000 * util/grub-pe2elf.c (usage): Add missing noreturn.
12001 (write_section_data): Rename name to shname to avoid shadowing.
12002 (write_symbol_table): Rename name to symname to avoid shadowing.
12003 Fix write_reloc_section call.
12004
ef023e42
VS
120052012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12006
12007 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
12008 to ensure that it's after the last byte of .text.
12009
48afcb75
VS
120102012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12011
12012 * util/ieee1275/ofpath.c (my_isdigit): New function.
12013 (trailing_digits): Use my_isdigit.
12014 (strip_trailing_digits): Likewise.
12015
88d51eff
VS
120162012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12017
12018 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
12019 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
12020
17edc2ba
VS
120212012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12022
12023 * grub-core/kern/i386/pc/startup.S: Define __start.
12024
ad5518d7
VS
120252012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12026
12027 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
12028 strip already transforms he format.
12029
9e95e1bf
VS
120302012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
12033
9cc3ee5c
VS
120342012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12035
12036 * util/grub-install.in: Add missing gettext init.
12037 * util/grub-kbdcomp.in: Likewise.
12038 * util/grub-mkconfig.in: Likewise.
12039 * util/grub-mknetdir.in: Likewise.
12040 * util/grub-mkrescue.in: Likewise.
12041 * util/grub-mkstandalone.in: Likewise.
12042 * util/grub-reboot.in: Likewise.
12043 * util/grub-set-default.in: Likewise.
12044 * util/grub.d/00_header.in: Likewise.
12045 * util/grub.d/10_hurd.in: Likewise.
12046 * util/grub.d/10_windows.in: Likewise.
12047 * util/grub.d/30_os-prober.in: Likewise.
12048 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12049
49e08a06
VS
120502012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12051
12052 * po/Rules-swiss: Fix header comment.
12053
3809cb41
AV
120542012-02-29 Andreas Vogel <anvoit>
12055
12056 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
12057 resulted in leak of arguments.
12058
fa6ec573
VS
120592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12060
12061 * grub-core/boot/i386/pc/startup_raw.S: Use separate
12062 reed_solomon_size const definition instead of computing it since
12063 Apple assembler doesn't support the later.
12064
22899b9c
VS
120652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12066
12067 * gentpl.py (kernel): Rewrite Apple part.
12068
a132afc3
VS
120692012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12070
12071 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12072
9d742bd4
VS
120732012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12074
12075 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12076 ELF section gap.
12077 (load_image): Likewise.
12078
f04a9a21
VS
120792012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12080
12081 * configure.ac: Fix a typo in previous commit.
12082
46cf439c
VS
120832012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12084
12085 Don't add -Wl,-N on Apple platform.
12086
12087 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12088 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12089
c4c48c54
VS
120902012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12091
12092 * grub-core/Makefile.core.def (lzma_decompress): Use
12093 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12094
31a12124
VS
120952012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12096
12097 * grub-core/genmod.sh.in: Rewrite the Apple part.
12098
4f3aa1af
VS
120992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12100
12101 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12102 comparison.
12103
7bd8b0c7
VS
121042012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12105
12106 * acinclude.m4 (grub_CHECK_PIC): New test.
12107 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12108
97304d7c
VS
121092012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12110
12111 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12112 to avoid the warning.
12113
fb883812
VS
121142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12115
12116 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12117 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12118 after. All users updated.
12119
a121c964
VS
121202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12121
12122 Use the common size routine in hostfs so we can read disks as well.
12123
12124 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12125 (grub_util_get_fd_size): ... this. Return size in bytes.
12126 All users updated.
12127 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12128 grub_util_get_fd_size.
12129
c66d6410
VS
121302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12131
12132 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12133 Add blocksize retrieval.
12134
dfc8aeb0
VS
121352012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12136
12137 * configure.ac: Restore CFLAGS after efiemu check.
12138
403e25a5
VS
121392012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12140
12141 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12142 Apple bug.
12143
382775d1
VS
121442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12145
12146 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12147
6fd4e6e4
VS
121482012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12149
12150 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12151 (grub_cmd_halt): Likewise.
12152
bea359d6
VS
121532012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12154
12155 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12156 for local arithmetics.
12157 Break %sp init into 2 instructions.
12158 Add 0 byte at the end.
12159
32eb6ee1
VS
121602012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12161
12162 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12163 before loops.
12164
e8377389
VS
121652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12166
12167 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12168 for context.
12169
8cb17de7
VS
121702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12171
12172 * grub-core/disk/ldm.c (make_vg): Init part.name.
12173 (grub_ldm_detect): Silence spurious warning.
12174 (grub_util_is_ldm): Likewise.
12175
595717e6
VS
121762012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12177
12178 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12179 sane value to avoid a spurious warning.
12180
c4b7e588
VS
121812012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12182
12183 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12184 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12185
59824957
VS
121862012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12187
12188 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12189 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12190
70115b99
VS
121912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12192
12193 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12194 hardcoding the relevant info.
12195
56733740
VS
121962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12197
12198 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12199 missing const qualifiers.
12200 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12201
43481481
VS
122022012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12203
12204 * util/getroot.c [__APPLE__]: Add missing includes.
12205 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12206
3cb38f01
VS
122072012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12208
12209 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12210
d9dbf11e
VS
122112012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12212
12213 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12214 avoid conflicts.
12215
0c42a45d
VS
122162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12217
12218 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12219
46c34eb0
VS
122202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12221
12222 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12223 and grub_file_close call.
12224
99ce1597
VS
122252012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12226
12227 Add LZSS Mach-O support (needed for new xnu kernelcache).
12228
12229 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12230 * grub-core/loader/lzss.c: New file.
12231 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12232 on Mach-O open failure.
12233 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12234 Don't free cmdsXX in uncompressedXX is set.
12235 (grub_macho_file): Init new fields.
12236 New argument is_64bit. All users updated.
12237 Handle compressed. Error out if no suitable architecture is found.
12238 Don't close file.
12239 (grub_macho_open): New argument is_64bit. All users updated.
12240 * grub-core/loader/macho32.c: Add defines for new fields.
12241 * grub-core/loader/macho64.c: Likewise.
12242 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12243 (grub_macho_parse): Handle compressed.
12244 Defer actual processing if compressed.
12245 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12246 "filename". All users updated.
12247 (grub_macho_size): New argument "filename". All users updated.
12248 (grub_macho_get_entry_point): Likewise.
12249 (grub_macho_load): Handle compressed.
12250 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12251 (GRUB_MACHO_LZSS_OFFSET): New define.
12252 (grub_decompress_lzss): New proto.
12253 * include/grub/machoload.h (grub_macho_file): New fields to handle
12254 compressed.
12255 (grub_macho_contains_macho64): Remove proto.
12256 (grub_macho_contains_macho32): Likewise.
12257 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12258
ebd17d6f
VS
122592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12260
12261 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12262
2702b4e4
VS
122632012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12264
12265 Fix make dist.
12266
12267 * Makefile.am (starfield_theme_files): New var.
12268 (starfield_DATA): Use starfield_theme_files.
12269 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12270 Add bootcheck-related files.
12271 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12272 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12273 and font_char_metrics.txt.
12274 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12275 (setjmp): Add lib/ia64/longjmp.S.
12276 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12277 * po/POTFILES.in: Regenerate.
12278 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12279 DISTFILES.common.extra1.
12280 * util/devicemap.c: Removed.
12281 * grub-core/lib/i386/relocator_backward.S: Likewise.
12282 * util/import_gcry.py: Remove unused files. Add extra_dist for
12283 ChangeLog.
12284
cf1adfdf
VS
122852012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12286
12287 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12288 grub_gettext_delete_list before changing grub_gettext_max to avoid
12289 running out of array bounds.
12290
122912012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
12292
12293 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12294 grub_vga_text_init/grub_vga_text_fini.
12295
cf1adfdf 122962012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
12297
12298 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12299
541d92e9
VS
123002012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 * configure.ac: Bump to 2.00~beta0.
12303
7931dddf
VS
123042012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12305
12306 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12307 missing initialisation.
12308
f1b16fa3
VS
123092012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12310
12311 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12312
83ddae23
VS
123132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12314
12315 Support v2 xnu boot arguments.
12316
12317 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12318 New argument fsbfreq_out.
12319 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12320 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12321 be used.
12322 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12323 darwin_version.
12324 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12325 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12326 (grub_xnu_boot_params): Rename to ...
12327 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12328 (grub_xnu_boot_params_v2): New struct.
12329
dc693fe6
VS
123302012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12331
12332 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12333 zeroing of CRC field before computing CRC.
12334
5a6e39c2
VS
123352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12336
12337 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12338 Change order of allocations to decrease fragmentation.
12339
6c21f5d7
VS
123402012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12341
12342 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12343
cfe456dc
CW
123442012-02-27 Colin Watson <cjwatson@ubuntu.com>
12345
12346 Use write-combining MTRR to speed up video with buggy BIOSes.
12347
12348 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12349 (cpuid): New define.
12350 (rdmsr): Likewise.
12351 (wrmsr): Likewise.
12352 (mtrr_base): Likewise.
12353 (mtrr_mask): Likewise.
12354 (grub_vbe_enable_mtrr_entry): New function.
12355 (grub_vbe_enable_mtrr): Likewise.
12356 (grub_vbe_disable_mtrr): Likewise.
12357 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12358 control off to BIOS.
12359 (grub_video_vbe_init): Fill mtrr.
12360 (grub_video_vbe_fini): Disable mtrr.
12361 (grub_video_vbe_get_info_and_fini): Likewise.
12362 (grub_video_vbe_setup): Enable mtrr.
12363
e3c78337
CW
123642012-02-27 Colin Watson <cjwatson@ubuntu.com>
12365
12366 * include/grub/partition.h (grub_partition_map): Change prototype of
12367 embed to take a maximum value for nsectors.
12368 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12369 * include/grub/fs.h (grub_fs): Likewise.
12370 * grub-core/partmap/msdos.c (embed_signatures): New array.
12371 (pc_partition_map_embed): Check for and avoid sectors matching any
12372 of the signatures in embed_signatures, up to max_nsectors.
12373 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12374 returned sector map to max_nsectors.
12375 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12376 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12377 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12378 * util/grub-setup.c (setup): Allow for the embedding area being
12379 split into multiple blocklists. Tell dest_partmap->embed the
12380 maximum number of sectors we care about.
12381
123822012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12383
12384 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12385 Specify blocklist_install and reserver_first_sector for all fs.
12386 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12387 blocklists.
12388
984b973f
VS
123892012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12390
12391 * util/grub-install.in: Clarify strings.
12392 Fix source dir check.
12393
f122e0d6
RL
123942012-02-27 Richard Laager <rlaager@wiktel.com>
12395
12396 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12397 "zfs" and "fuse.zfs" as synonyms.
12398
071114bb
VS
123992012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12400
12401 * configure.ac: Put platform and target_cpu substitutions back since
12402 they are used for directories.
12403
817e6abc
RL
124042012-02-27 Richard Laager <rlaager@wiktel.com>
124052012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12406
12407 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12408 * util/grub.d/20_linux_xen.in: Likewise.
12409
897b7419
RL
124102012-02-27 Richard Laager <rlaager@wiktel.com>
12411
12412 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12413 with full paths.
12414
a414bd15
RL
124152012-02-27 Richard Laager <rlaager@wiktel.com>
12416
12417 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12418 unescape.
12419
30ac48c4
VS
124202012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12421
12422 Don't use insecure popen in getroot.
12423
12424 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12425 (exec_pipe): ... here.
12426 (find_root_devices_from_poolname): Use exec_pipe.
12427
53f13848
VS
124282012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12429
12430 Remove platform and target_cpu replacement.
12431
12432 * configure.ac: Remove platform and target_cpu substitutions.
12433 * tests/util/grub-shell.in: Use modinfo.
12434 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12435 explicitly.
12436
90cb2803
VS
124372012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12438
12439 Autodetect platform in grub-install but allow override.
12440
12441 * util/grub-install.in: Autodetect platform. Support --target and
12442 --directory. Read platform from modinfo.sh.
12443
b9136427
VS
124442012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12445
12446 Support btrfs multi-volume probe.
12447
12448 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12449 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12450 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12451 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12452 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12453 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12454 grub_find_root_devices_from_btrfs if on btrfs.
12455
c36e5cd1
VS
124562012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12457
12458 Remove any awareness of *.c util files about target.
12459
12460 * Makefile.util.def (grub-setup): Split to ...
12461 (grub-bios-setup): ... and this.
12462 (grub-sparc64-setup): ... and this.
12463 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12464 * docs/man/grub-setup.h2m: Split into ...
12465 * docs/man/grub-sparc64-setup.h2m: ... this.
12466 * docs/man/grub-bios-setup.h2m: ... and this.
12467 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12468 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12469 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12470 (grub_target_addr_t): Remove.
12471 (grub_target_size_t): Remove.
12472 (grub_target_ssize_t): Remove.
12473 * util/grub-install.in: Use new grub-*-setup.
12474 * util/grub-mkimagexx.c (Elf_Word): New define.
12475 (Elf_Half): Likewise.
12476 (Elf_Section): Likewise.
12477 (ELF_ST_TYPE): Likewise.
12478 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12479 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12480
584b2f8a
VS
124812012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12482
12483 Replace grub_target_addr with more appropriate types.
12484
12485 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12486 grub_target_addr with grub_addr.
12487 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12488 grub_target_addr with grub_port.
12489 (grub_cmd_write): Likewise.
12490 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12491 grub_target_addr with grub_addr.
12492 (grub_cmd_write): Likewise.
12493 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12494
5a0dc6fb
VS
124952012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12496
12497 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12498 const qualifier for vendor_guid.
12499
786aff6e
VS
125002012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12501
12502 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12503 const qualifier.
12504 (efiemu_memequal): Likewise.
12505 (find_variable): Likewise.
12506
49017b17
VS
125072012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12508
12509 Fix missing console prototype on qemu-mips.
12510
12511 * include/grub/mips/qemu_mips/console.h: New file.
12512
c5988629
MG
125132012-02-27 Matthew Garrett <mjg@redhat.com>
125142012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12515
12516 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12517 * include/grub/efi/efi.h: Likewise.
12518 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12519 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12520 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12521 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12522 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12523 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12524
e33f8d69
MG
125252012-02-27 Matthew Garrett <mjg@redhat.com>
12526
12527 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12528
fb312cd9
VS
125292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12530
12531 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12532 error.
12533
7134247c
VS
125342012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12535
12536 * configure.ac: Remove inappropriate use of program_transform_name
12537 on grubdir and bootdir but allow explicit specification of those
12538 variables.
12539
6a313124
VS
125402012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12541
12542 * util/grub-mknetdir.in (grub_prefix): Removed.
12543 (subdir): Use @bootdirname@ and @grubdirname@.
12544
2311c5ca
VS
125452012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12546
12547 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12548
7d5d60f7
VS
125492012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12550
12551 * po/POTFILES.in: Regenerated.
12552
8151bc82
VS
125532012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12554
12555 Remove improper use of program_transform_name on pkglibrootdir.
12556
12557 * configure.ac (pkglibrootdir): Removed.
12558 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12559 * util/grub-mkimage.c: Likewise.
12560
b4a6a533
VS
125612012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12562
12563 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12564 warning.
12565
668f304f
VS
125662012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12567
12568 * util/grub-install.in: Use file identifier if no UUID is available
12569 or user explicitly prompted for it.
12570
665f2341
NP
125712012-02-27 Navdeep Parhar <nparhar@gmail.com>
12572
12573 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12574 (freebsd_get_zfs): New function.
12575 (grub_freebsd_boot): Pass zfs UUID.
12576 (grub_cmd_freebsd): Set zfs UUID.
12577
8151bc82 125782012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
12579
12580 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12581 pkglibrootdir.
12582
e4c498a1
MG
125832012-02-27 Mike Gilbert <floppym@gentoo.org>
12584
12585 Add configure flag to control libzfs integration.
12586
12587 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12588
1e9a9a3f
VS
125892012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12590
12591 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12592 device.
12593 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12594 small devices.
12595
036985b8
VS
125962012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12597
12598 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12599 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12600 be used on non-modules.
12601
12602 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12603 Rename to grub_boot_init.
12604 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12605 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12606 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12607 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12608 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12609 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12610 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12611 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12612 includes.
12613 (grub_machine_init): Remove empty inits.
12614 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12615 includes.
12616 (grub_machine_init): Remove empty inits.
12617 * grub-core/term/arc/console.c: Remove explicit proto.
12618 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12619 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12620 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12621 grub_at_keyboard_fini.
12622 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12623 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12624 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12625 grub_gfxterm_fini.
12626 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12627 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12628 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12629 grub_vgatext_fini.
12630 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12631 * grub-core/term/serial.c (GRUB_MOD_INIT)
12632 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12633 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12634 grub_serial_fini.
12635 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12636 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12637 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12638 grub_terminfo_fini.
12639 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12640 (GRUB_MOD_FINI): Likewise.
12641 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12642 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12643 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12644 grub_video_radeon_fuloong2e_fini.
12645 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12646 [LOONGSON]: Rename to grub_video_sis315pro_init.
12647 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12648 grub_video_sis315pro_fini.
12649 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12650 [LOONGSON]: Rename to grub_video_sm712_init.
12651 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12652 grub_video_sm712_fini.
12653 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12654 (grub_at_keyboard_fini): Likewise.
12655 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12656 Don't declare grub_{modname}_init.
12657 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12658 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12659 New proto.
12660 (grub_keylayouts_fini) [!EMU]: Likewise.
12661 * include/grub/serial.h (grub_serial_init) [!EMU]:
12662 New proto.
12663 (grub_serial_fini) [!EMU]: Likewise.
12664 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12665 New proto.
12666 (grub_terminfo_fini) [!EMU]: Likewise.
12667 * include/grub/video.h (grub_font_init) [!EMU]:
12668 New proto.
12669 (grub_font_fini) [!EMU]: Likewise.
12670 (grub_gfxterm_init) [!EMU]: Likewise.
12671 (grub_gfxterm_fini) [!EMU]: Likewise.
12672 (grub_video_sm712_init) [!EMU]: Likewise.
12673 (grub_video_sm712_fini) [!EMU]: Likewise.
12674 (grub_video_sis315pro_init) [!EMU]: Likewise.
12675 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12676 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12677 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12678
d5534665
VS
126792012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12680
12681 Make nand a prefix for nand devices.
12682
12683 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12684
10133b5f
VS
126852012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12686
12687 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12688 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12689
8e307a62
VS
126902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12691
12692 * include/grub/env.h (grub_env_find): Remove prototype.
12693 * grub-core/kern/env.c (grub_env_find): Make static.
12694 (grub_env_set): Remove useless set.
12695
a4c65f34
VS
126962012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12697
12698 * grub-core/kern/i386/realmode.S: Remove useless align.
12699
d87893d5
VS
127002012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12701
12702 * include/grub/dl.h (grub_dl_load_file): Don't export.
12703
50159add
VS
127042012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12705
12706 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12707 grub_dprintf.
12708
b2582b84
VS
127092012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12710
12711 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12712 grub_errors.
12713 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12714 not reloading whole superblock but only the part which is really needed.
12715 Remove useless grub_errors.
12716 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12717 grub_errors.
12718
e2a83395
VS
127192012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12720
12721 Don't export grub_get_rtc.
12722
12723 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12724 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12725
e7d2a906
VS
127262012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12727
12728 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12729
6cf1363b
VS
127302012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12731
12732 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 12733 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 12734
eece3349
VS
127352012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12736
12737 Remove prio_list.
12738
12739 * include/grub/list.h (grub_prio_list): Removed.
12740 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12741 GRUB_COMMAND_PRIO_MASK.
12742 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12743 GRUB_COMMAND_FLAG_ACTIVE.
12744 (grub_prio_list_insert): Removed.
12745 (grub_prio_list_remove): Likewise.
12746 (GRUB_AS_PRIO_LIST): Likewise.
12747 (GRUB_AS_PRIO_LIST_P): Likewise.
12748 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12749 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12750 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12751 * grub-core/kern/command.c (grub_register_command_prio): Inline
12752 the prio_list code.
12753 (grub_unregister_command): Likewise.
12754
94f064b4
VS
127552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12756
12757 Fix interrupt mixup from previous commit.
12758
12759 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12760 (grub_realidt): New var.
12761 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12762 Load idt.
12763 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12764 New declaration.
12765 (grub_relocator16_boot): Set grub_relocator16_idt.
12766 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12767 (LOCAL(realidt)): ... this.
12768 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12769 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12770 (grub_realidt): New variable.
12771
27317084
VS
127722012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12773
12774 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12775 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12776 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12777 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12778 Gettextize.
12779 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12780 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12781 * po/POTFILES.in: Regenerate.
12782
47b40053
VS
127832012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12784
12785 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12786 errors.
12787
2b343101
VS
127882012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12789
12790 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12791 \0.
12792 (add_length): Likewise.
12793
ff27c3dd
LK
127942012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
127952012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12796
12797 GDB serial and backtrace support.
12798
12799 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12800 (prot_to_real): Likewise.
12801 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12802 * grub-core/Makefile.core.def (backtrace): New module.
12803 (gdb): Likewise.
12804 * grub-core/gdb/cstub.c: New file.
12805 * grub-core/gdb/gdb.c: Likewise.
12806 * grub-core/gdb/i386/idt.c: Likewise.
12807 * grub-core/gdb/i386/machdep.S: Likewise.
12808 * grub-core/gdb/i386/signal.c: Likewise.
12809 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 12810 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
12811 * include/grub/backtrace.h: Likewise.
12812 * include/grub/gdb.h: Likewise.
12813 * include/grub/i386/gdb.h: Likewise.
12814
128152012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
12816
12817 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12818 New function.
12819 (add_length): Likewise.
12820 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12821 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12822 proto.
12823 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12824 __argp_get_display_len.
12825
ff27c3dd 128262012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
12827
12828 $"..." support in scripts.
12829
12830 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12831 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12832 * grub-core/script/yylex.l: Likewise.
12833 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12834 value.
12835
ff27c3dd 128362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
12837
12838 * gentpl.py: Remove obsolete pkglib_DATA handling.
12839
ff27c3dd 128402012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
12841
12842 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12843 mailing list.
12844
12845 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12846 * util/grub-kbdcomp.in: Likewise.
12847 * util/grub-mkconfig.in: Likewise.
12848 * util/grub-mkconfig_lib.in: Likewise.
12849 * util/grub-mknetdir.in: Likewise.
12850 * util/grub-mkrescue.in: Likewise.
12851 * util/grub-mkstandalone.in: Likewise.
12852 * util/grub-reboot.in: Likewise.
12853 * util/grub-set-default.in: Likewise.
12854 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12855
ff27c3dd 128562012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
12857
12858 Remove GRUB_PREFIX.
12859
12860 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12861 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12862 used for backward compatibility.
12863
ff27c3dd 128642012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
12865
12866 Add new all_video module.
12867
12868 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12869 * grub-core/Makefile.core.def (all_video): New module.
12870 * grub-core/genmoddep.awk: Generate dependency of all_video from
12871 video.lst.
12872 * grub-core/lib/fake_module.c: New file.
12873 * grub-core/normal/main.c (features): Add feature_all_video_module.
12874 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12875 don't do explicit search again.
47454da5 12876 insmod all_video in load_video if available.
22c7ce85 12877
ff27c3dd 128782012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
12879
12880 Another round of string clarification and adding TRANSLATORS comments.
12881
ff27c3dd 128822012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
12883
12884 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12885
ff27c3dd 128862012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
12887
12888 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12889 to grub_ssize_t.
12890 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12891 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12892
ff27c3dd 128932012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
12894
12895 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12896 trailing newline implicitly. All users updated.
12897
ff27c3dd 128982012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
12899
12900 Implement serial on IEEE1275 and EFI.
12901
12902 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12903 on emu. Mention arc and emu as the only platforms without serial
12904 support.
12905 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12906 ieee1275 platforms.
12907 * grub-core/term/efi/serial.c: New file.
12908 * grub-core/term/ieee1275/serial.c: Likewise.
12909 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12910 specification if no ns8250 driver is available.
12911 (grub_cmd_serial): Likewise.
12912 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12913 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12914 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12915 (grub_efi_parity_type_t): New type.
12916 (grub_efi_stop_bits_t): Likewise.
12917 (grub_efi_serial_io_interface): New struct.
12918 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12919 available for all interfaces.
12920 Add EFI and IEEE1275 fields.
12921 (grub_ofserial_init): New proto.
12922 (grub_efiserial_init): Likeiwse.
12923 * util/grub.d/00_header.in: Don't check for the presence of serial
12924 module.
12925
ff27c3dd 129262012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
12927
12928 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12929 name as if it was an alias.
12930
114076ef
VS
129312012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12932
12933 * grub-core/commands/lsacpi.c (options): Fix typo.
12934
6a656b0e
VS
129352012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12936
12937 Convert grub-emu to argp.
12938
12939 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12940 emu.
12941 * util/argp_common.c: Rename to ...
12942 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12943 Add missing includes.
12944 * grub-core/kern/emu/main.c: Convert to argp.
12945 * po/POTFILES.in: Regenerate.
12946 * util/grub-install.in (usage): Make first letter lowcase in messages
12947 for uniformity.
12948 * util/grub-setup.c (options): Likewise.
12949
1e3f8ae8
VS
129502012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12951
12952 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12953 Put back accidently commented-out code.
12954
ed167a80
VS
129552012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12956
12957 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12958 loop check using Brent algorithm.
12959 (grub_hfsplus_btree_search): Likewise.
12960
6753c0ec
VS
129612012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12962
12963 * util/grub-install.in: Fix usage of wrong device for PreP install.
12964
4e27343f
VS
129652012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12966
12967 * conf/Makefile.common (CFLAGS_GNULIB): Add
12968 -Wno-unsafe-loop-optimizations.
12969 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12970 on tools.
12971 * grub-core/commands/legacycfg.c: Add pragma to skip
12972 -Wunsafe-loop-optimizations.
12973 (check_password_md5_real): Fix loop counter type.
12974 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12975 reading.
12976 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12977 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12978 loop condition.
12979 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12980 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12981 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12982 condition.
12983 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12984 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12985 avoid possible infinite loops.
12986 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12987 and -Wunsafe-loop-optimizations.
12988 * grub-core/script/yylex.l: Likewise.
12989 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12990 (print_glyphs): Avoid infinite loops.
12991 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12992
697f18b0
GS
129932012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12994
12995 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12996 to avoid infinite loop.
12997 (disp_acpi_rsdt_table): Likewise.
12998
274416e8
VS
129992012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13000
13001 * grub-core/font/font.c (grub_font_load): Add support for default
13002 path for fonts ($prefix/fonts).
13003 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
13004 for checking if string is a path.
13005 * grub-core/normal/main.c (features): Add feature_default_font_path.
13006 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
13007 * util/grub.d/00_header.in: Use default directory if possible.
13008 * util/grub-install.in: Install unicode.pf2.
13009
b3e08622
VS
130102012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13011
13012 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
13013 * po/Rules-swiss: New file.
13014 * po/swiss.sed: Likewise.
13015
fe42ce09
VS
130162012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13017
13018 * grub-core/fs/btrfs.c (find_device): Fix typos.
13019 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
13020 * util/grub-mkrelpath.c (argp_parser): Likewise.
13021 Reported by: Yuri Chornoivan.
13022
72f1d065
DO
130232012-02-23 Dalet Omega <daletomega@gmail.com>
13024
13025 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
13026 for usual informative messages.
13027
c5884973
DO
130282012-02-23 Dalet Omega <daletomega@gmail.com>
13029
13030 Starfield theme.
13031
13032 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
13033 * conf/Makefile.common: Define starfielddir.
13034 * configure.ac: Configure starfield.
13035 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
13036 * themes/starfield/README: Likewise.
13037 * themes/starfield/blob_w.png: Likewise.
13038 * themes/starfield/boot_menu_c.png: Likewise.
13039 * themes/starfield/boot_menu_e.png: Likewise.
13040 * themes/starfield/boot_menu_n.png: Likewise.
13041 * themes/starfield/boot_menu_ne.png: Likewise.
13042 * themes/starfield/boot_menu_nw.png: Likewise.
13043 * themes/starfield/boot_menu_s.png: Likewise.
13044 * themes/starfield/boot_menu_se.png: Likewise.
13045 * themes/starfield/boot_menu_sw.png: Likewise.
13046 * themes/starfield/boot_menu_w.png: Likewise.
13047 * themes/starfield/slider_c.png: Likewise.
13048 * themes/starfield/slider_n.png: Likewise.
13049 * themes/starfield/slider_s.png: Likewise.
13050 * themes/starfield/src/blob_nw.xcf: Likewise.
13051 * themes/starfield/src/bootmenu/: Likewise.
13052 * themes/starfield/src/bootmenu/center.xcf: Likewise.
13053 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
13054 * themes/starfield/src/bootmenu/side.xcf: Likewise.
13055 * themes/starfield/src/slider_c.xcf: Likewise.
13056 * themes/starfield/src/slider_n.xcf: Likewise.
13057 * themes/starfield/src/slider_s.xcf: Likewise.
13058 * themes/starfield/src/terminalbox/: Likewise.
13059 * themes/starfield/src/terminalbox/center.xcf: Likewise.
13060 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
13061 * themes/starfield/src/terminalbox/side.xcf: Likewise.
13062 * themes/starfield/starfield.png: Likewise.
13063 * themes/starfield/terminal_box_c.png: Likewise.
13064 * themes/starfield/terminal_box_e.png: Likewise.
13065 * themes/starfield/terminal_box_n.png: Likewise.
13066 * themes/starfield/terminal_box_ne.png: Likewise.
13067 * themes/starfield/terminal_box_nw.png: Likewise.
13068 * themes/starfield/terminal_box_s.png: Likewise.
13069 * themes/starfield/terminal_box_se.png: Likewise.
13070 * themes/starfield/terminal_box_sw.png: Likewise.
13071 * themes/starfield/terminal_box_w.png: Likewise.
13072 * themes/starfield/theme.txt: Likewise.
13073
17d73325
VS
130742012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13075
13076 * util/grub.d/00_header.in: Add missing export theme.
13077
dbebaf92
VS
130782012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13079
13080 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13081 already included.
13082 Reported by: Eren D.
13083
3d68bffb
VS
130842012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13085
13086 * conf/Makefile.common (grubdatadir): Removed.
13087 (Makefile.am): Move eveything grubdata to pkgdata.
13088
4b59234d
VS
130892012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13090
13091 * grub-core/commands/acpihalt.c (get_sleep_type):
13092 Remove unused variable.
13093
463dcadc
VS
130942012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13095
13096 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13097 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13098 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13099 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13100 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13101 i18n with gettext no-op.
13102 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13103 GRUB_ACPI_OPCODE_STRING_CONST.
13104 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13105 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13106
e5b90c82
VS
131072012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13108
13109 * po/POTFILES.in: Regenerate.
13110
2a704ca9
VS
131112012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13112
13113 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13114 -Wno-error=missing-noreturn.
13115
84f9d341
VS
131162012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13117
13118 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13119 condition to avoid possibly infinite loops.
13120 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13121 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13122
d46683f9
VS
131232012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13124
13125 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13126 condition to avoid possibly infinite loops.
13127
c44866b2
VS
131282012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13129
13130 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13131 on show_error.
13132
96790539
VS
131332012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13134
13135 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13136
1ba7e295
VS
131372012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13138
13139 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13140
21ffe8f1
VS
131412012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13142
13143 * util/bin2h.c (usage): Add missing attribute noreturn.
13144
0ccb6b3c
VS
131452012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13146
13147 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13148 if the size isn't divisible by 512.
13149
b00d7fb6
VS
131502012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13151
13152 Make list_push and list_remove functions rather than inline functions
13153 to decrease size and avoid aliasing violations.
13154
13155 * include/grub/list.h (grub_list_push): Move to ...
13156 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13157 * include/grub/list.h (grub_list_remove): Move to ...
13158 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13159
9d369087
VS
131602012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13161
13162 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13163 and -Wunused-result.
13164
af0250d9
VS
131652012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13166
13167 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13168 Reported by: Seth Goldberg
13169
aad32b14
VS
131702012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13171
13172 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13173
ac96441c
ST
131742012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13175
13176 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13177 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13178 command line.
13179 * docs/grub.texi (Simple configuration): Document
13180 GRUB_CMDLINE_GNUMACH.
13181
131822012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
13183
13184 * conf/Makefile.common (platform_SCRIPTS): New variable.
13185 (platform_PROGRAMS): Likewise.
13186 * gentpl.py: Mark *,module and *.image for install.
13187 * grub-core/gdb_grub.in: Add a notice of expected environment.
13188 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13189 (gmodule.pl): Likewise.
13190
ac96441c 131912012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
13192
13193 Replace grub_checkkey with grub_getkey_noblock.
13194
13195 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13196 (grub_getkey_noblock): ... this. All users updated.
13197
ac96441c 131982012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
13199
13200 * grub-core/kern/emu/console.c: Move to ...
13201 * grub-core/term/emu/console.c: ...here.
13202 (grub_ncurses_getkey): Fix return value if no key is detected.
13203
e51b5666
VS
132042012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13205
13206 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13207 (grub_unit_test_fini): Likewise.
13208 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13209
132102012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13211
13212 * include/grub/test.h (GRUB_UNIT_TEST)
13213
d9a62292
VS
132142012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13215
13216 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13217 Better error handling.
13218 (grub_script_return): Likewise.
13219 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13220
77c9182f
VS
132212012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13222
13223 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13224 rimplicit redifinition.
13225
edb13cf9
VS
132262012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13227
13228 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13229 GRUB.
13230
a9e9dc7c
VS
132312012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13232
13233 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13234 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13235 prompt here.
13236
b4ba8e02
VS
132372012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13238
13239 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13240 as GRUB_ERR_BUG. Don't malloc if no device is available.
13241
dded5540
VS
132422012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13243
13244 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13245 Mark calling with invalid term as GRUB_ERR_BUG.
13246
0cf69874
VS
132472012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13248
13249 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13250 packets rather than raising an error.
13251
59bfe502
VS
132522012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13253
13254 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13255 in if.
13256
db5fc596
VS
132572012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13260 diagnostic to dprintf.
13261 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13262
e4b7f404
VS
132632012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13264
13265 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13266 device name.
13267
e7b02f9e
VS
132682012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13269
13270 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13271 (grub_ntfs_iterate_dir): Likewise.
13272
0331e102
VS
132732012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13274
13275 Efiemu stylistic fixes and gettext.
13276
13277 * grub-core/efiemu/i386/loadcore32.c
13278 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13279 * grub-core/efiemu/i386/loadcore64.c
13280 (grub_arch_efiemu_relocate_symbols64): Likewise.
13281 * grub-core/efiemu/i386/pc/cfgtables.c
13282 (grub_machine_efiemu_init_tables): Likewise.
13283 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13284 (grub_efiemu_loadcore_initXX): Add a filename argument.
13285 All users updated.
13286 Improved error message.
13287 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13288 Add a filename argument.
13289 All users updated.
13290 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13291 Reclassify double relocation as GRUB_ERR_BUG.
13292
306fc074
VS
132932012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13294
13295 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13296 handling.
13297
794d8ef2
VS
132982012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13299
13300 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13301 on partition.
13302
133032012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
13304
13305 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13306
794d8ef2 133072012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
13308
13309 Improve string. Gettextize.
13310
78dde88e
VS
133112012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13312
13313 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13314 utils.
13315 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13316
4786a90f
VS
133172012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13318
13319 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13320 [GRUB_UTIL]: New function.
13321 (insert_array) [GRUB_UTIL]: Store partmaps.
13322 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13323 partmaps.
13324 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13325 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13326 (probe_abstraction): Print diskfilter and not raid.
13327 Reported by: Lennart Sorensen
13328
0b6225bd
VS
133292012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13330
13331 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13332 * util/grub-mkimagexx.c (MASK3): New define.
13333 (add_value_to_slot_20b): Use MASK3.
13334 (add_value_to_slot_21): Likewise.
13335 (relocate_addresses): Fix format specification.
13336 (load_image): Explicitly init symtab_section.
13337
b055f8f6
VS
133382012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13339
13340 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13341 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13342
b77c2fb7
VS
133432012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13344
13345 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13346 on powerpc.
13347 Reported by: Lennart Sorensen
13348
e3ec28ab
VS
133492012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13350
13351 * gentpl.py: Add missing license header.
13352 * docs/grub.texi: Update copyright year.
13353
c8d9ead6
GS
133542012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13355
13356 Source grub-mkconfig_lib from the build directory at build time.
13357 Suggested by: Vladimir Serbinenko.
13358
13359 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13360 * util/grub-install.in: Define pkgdatadir if not already set, and source
13361 grub-mkconfig_lib from there.
13362 * util/grub-kbdcomp.in: Likewise.
13363 * util/grub-mkconfig.in: Likewise.
13364 * util/grub-mknetdir.in: Likewise.
13365 * util/grub-mkrescue.in: Likewise.
13366 * util/grub-mkstandalone.in: Likewise.
13367 * util/grub-reboot.in: Likewise.
13368 * util/grub-set-default.in: Likewise.
13369 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13370
ebcecdf1
VS
133712012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13372
13373 Increase warning level.
13374
13375 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13376 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13377 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13378 (TARGET_CFLAGS): Likewise.
13379 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13380 * grub-core/Makefile.core.def (decompressor_xz): Add
13381 -Wno-unreachable-code.
13382 (normal): Add -Wno-redundant-decls.
13383 (xzio): Add -Wno-unreachable-code.
13384 (lzopio): Add -Wno-redundant-decls -Wno-error.
13385 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13386 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13387 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13388 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13389 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13390 * grub-core/kern/i386/coreboot/init.c: Add exception to
13391 -Wsuggest-attribute=noreturn.
13392 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13393 * grub-core/kern/ia64/dl_helper.c: Likewise.
13394 * grub-core/kern/mips/dl.c: Likewise.
13395 * grub-core/kern/sparc64/dl.c: Likewise.
13396 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13397 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13398 (memcmp): Likewise.
13399 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13400 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13401 * grub-core/loader/mips/linux.c: Likewise.
13402 * grub-core/loader/multiboot_elfxx.c: Likewise.
13403 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13404 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13405 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13406 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13407 fixme.
13408 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13409 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13410 Fix prototype.
13411
37bb97fe
VS
134122012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13413
13414 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13415 address.
13416
29a3550b
VS
134172012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13418
13419 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13420 Avoid improper use of strings.
13421 (grub_cmd_legacy_initrdnounzip): Likewise.
13422
dfdffd0d
VS
134232012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13424
13425 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13426 attribute.
13427 (grub_util_info): Likewise.
13428 (grub_util_error): Likewise.
13429
102fae4a
VS
134302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13431
13432 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13433 * util/grub-fstest.c (fstest): Likewise.
13434
7e94d044
VS
134352012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13436
13437 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13438 (grub_md_sha512_real): Likewise.
13439 (grub_util_get_geli_uuid): Likewise.
13440 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13441 (grub_util_biosdisk_open): Fix format specification.
13442 Respect format security.
13443 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13444 (xrealloc): Likewise.
13445 (xasprintf): Likewise.
13446
5ebd9769
VS
134472012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13448
13449 * util/import_gcry.py: Include grub/crypto.h in init.c.
13450
495fc8c1
VS
134512012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13452
13453 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13454 (generate_image): Make prefix a const char *.
13455 Fix format specifications. Respect format security.
13456 Avoid void * arithmetics.
13457 Avoid shadowing.
13458 (argp_parser): Remove unused variable. Respect format security.
13459 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13460 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13461 (count_funcs): Remove unused variable.
13462 (relocate_addresses): Fix format specification.
13463 Disable x86-64 with elf32. Remove unused variables.
13464 (add_fixup_entry): Avoid shadowing.
13465 (make_reloc_section): Fix format specification.
13466 Use assert.
13467 (locate_sections): Fix format specifications.
13468 (load_image): Avoid shadowing.
13469
043c2ea3
VS
134702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13471
13472 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13473 Fix format specifications. Respect format security.
13474 Don't translate already translated grub_errmsg.
13475 (argp_parser): Remove unused variable
13476
3ec65a81
VS
134772012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13478
13479 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13480
a4d9fe4a
VS
134812012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13484 (main): Likewise. Use xmalloc. Respect format security.
13485
15b81d49
VS
134862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13489 a const char *.
13490 (argp_parser): Remove unused variable.
13491
31731fc0
VS
134922012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13493
13494 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13495 (add_pixel): Make static.
13496 (add_font): Likewise.
13497 (write_string_section): Make name and str a const char *.
13498 (write_be16_section): Make name a const char *.
13499 (print_glyphs): Make static.
13500 (write_font_ascii_bitmap): Likewise.
13501 (write_font_width_spec): Likewise.
13502 (write_font_pf2): Likewise.
13503 (argp_parser): Remove unused variable.
13504 Respect format security.
13505 (main): Avoid shadowing. Respect format security.
13506
0809527b
VS
135072012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13508
13509 * util/grub-editenv.c (argp_parser): Make static.
13510 (create_envblk_file): Use xmalloc.
13511 (open_envblk_file): Likewise.
13512 Resepect format security.
13513 (set_variables): Respect format security.
13514
45b0c8b7
VS
135152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13516
13517 * util/getroot.c (grub_find_device): Respect format security.
13518 (get_mdadm_uuid): Remove unused variable.
13519 (grub_util_pull_device): Dont call gettext on already translated
13520 grub_errmsg.
13521 (find_system_device): Remove unused variable.
13522 (grub_util_get_grub_dev): Likewise.
13523 (grub_make_system_path_relative_to_its_root): Respect format security.
13524
1b024b4e
VS
135252012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13526
13527 * util/grub-fstest.c (execute_command): Make first argument
13528 a const char *.
13529 (read_file): Avoid shadowing.
13530 Reuse underlying error message if device open fails.
13531 (cmd_cmp): Respect format security.
13532 (root): Make const char *.
13533 (fstest): Remove args argument and use global copy.
13534 Respect format security.
13535 (argp_parser): Make static.
13536 (main): Make default_root const char *.
13537
5d1d4e28
VS
135382012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13539
13540 * util/grub-mount.c (root): Make const char *.
13541 (execute_command): Make first argument a const char *.
13542 (fuse_init): Respect format security.
13543 (argp_parser): Make static. Remove unused variable.
13544 (main): Make default_root a const char *.
13545 Respect format security.
13546
36eb7379
VS
135472012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13548
13549 * util/grub-probe.c (probe): Don't call gettext on already translated
13550 grub_errmsg.
13551 Remove unused variables.
13552 (argp_parser): Remove unused variable.
13553
76fb2ea9
VS
135542012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13555
13556 * util/grub-script-check.c (argp_parser): Remove unused variable.
13557 (main): Rename read to curread to avoid shadowing.
13558
56c98584
VS
135592012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13560
13561 * util/misc.c (grub_util_write_image_at): Fix format specification.
13562 (grub_util_write_image): Likewise.
13563 (grub_script_execute_argument_to_string): Removed (unused).
13564 (grub_script_execute_menuentry): Likewise.
13565 (grub_putchar): Likewise.
13566
164ebb48
VS
135672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13568
13569 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13570 (FUNCTION) [GRUB_UTIL]: Likewise.
13571 (VARIABLE) [GRUB_UTIL]: Likewise.
13572
44318d61
VS
135732012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13574
13575 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13576 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13577
31a26002
VS
135782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13579
13580 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13581 buffer.
13582
135832012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13584
13585 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13586 (LzmaEnc_SaveState): Removed (unused).
13587 (LzmaEnc_RestoreState): Likewise.
13588 (LzmaEnc_InitPriceTables): Made static.
13589 (LzmaEnc_Construct): Likewise.
13590 (LzmaEnc_FreeLits): Likewise.
13591 (LzmaEnc_Destruct): Likewise.
13592 (LzmaEnc_Init): Likewise.
13593 (LzmaEnc_InitPrices): Likewise.
13594 (LzmaEnc_Finish): Likewise.
13595 (LzmaEnc_PrepareForLzma2): Removed (unused).
13596 (LzmaEnc_MemPrepare): Likewise.
13597 (LzmaEnc_GetNumAvailableBytes): Likewise.
13598 (LzmaEnc_GetCurBuf): Likewise.
13599 (LzmaEnc_CodeOneMemBlock): Likewise.
13600
6fa67967
VS
136012012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13602
13603 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13604 (grub_util_ldm_embed): Likewise.
13605
9a7428e6
VS
136062012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13607
13608 * util/grub-editenv.c (print_var): Rename name to varname to
13609 avoid shadowing.
13610 (main): Rename index to curindex to avoid shadowing.
31a26002 13611 Make filename a const char *.
9a7428e6 13612
4f96abd1
VS
136132012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13614
13615 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13616 to arg_getline to avoid shadowing.
13617
44d10dad
VS
136182012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13619
13620 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13621 disk_ to avoid shadowing.
13622
340ba63e
VS
136232012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13624
13625 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13626 curindex to avoid shadowing.
13627 Make static.
13628 (MatchFinder_GetNumAvailableBytes): Make static.
13629
22965bce
VS
136302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13631
13632 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13633 avoid shadowing.
13634
7b5784d4
VS
136352012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13636
13637 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13638 argument from encrypt to do_encrypt to avoid shadowing.
13639
6f48ca01
VS
136402012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13641
13642 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13643 incorrect nesting of #if's.
13644
a4ea2dff
VS
136452012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13646
13647 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13648 checks which are always false on some platforms.
13649 (grub_cmd_lsacpi): Likewise.
13650 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13651 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13652 Likewise.
13653
def9fc1b
VS
136542012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13655
13656 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13657 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13658
a67b2a04
VS
136592012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13660
13661 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13662 re_dfa_t to avoid breaking alignment invariants.
13663 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13664 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13665
44c6828d
VS
136662012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13667
13668 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13669 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13670
bebe0dd0
VS
136712012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13672
13673 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13674 Fix declaration.
13675
a9cdb3cf
VS
136762012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13677
13678 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13679 conserve alignment invariants.
13680 (grub_ehci_ehcc_read16): Likewise.
13681 (grub_ehci_oper_read32): Likewise.
13682 (grub_ehci_oper_write32): Likewise.
13683 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13684 Conserve alignment invariants.
13685
ccc3b1b8
VS
136862012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13687
13688 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13689 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13690 declarations.
13691
987fbd95
VS
136922012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13693
13694 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13695 Remove unused variable.
13696
0df363f3
VS
136972012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13698
13699 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13700 Remove set in if.
13701
b2c0c4a6
VS
137022012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 * include/grub/net.h: Remove double declarations.
13705
690c531f
VS
137062012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13707
13708 Remove "payload" command in ia64 Linux loader since I couldn't
13709 find any evidence of it being used for anything.
13710 Replace "relocate" command with an environment variable
13711
13712 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13713 fields.
13714 (ia64_boot_payload): Removed.
13715 (last_payload): Likewise.
13716 (RELOCATE_OFF): Likewise.
13717 (RELOCATE_ON): Likewise.
13718 (RELOCATE_FORCE): Likewise.
13719 (relocate): Likewise.
13720 (free_pages): Don't free payloads.
13721 (grub_load_elf64): Use common error messages.
13722 Use "linux_relocate" variable.
13723 Increase the space after boot_params.
13724 (grub_cmd_payload): Removed.
13725 (grub_cmd_relocate): Likewise.
13726 (grub_cmd_fpswa): Improve messages.
13727 (cmd_payload): Removed.
13728 (cmd_relocate): Likewise.
13729 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13730 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13731
01783768
VS
137322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13733
13734 Convert UHCI to DMA framework.
13735
13736 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13737 (grub_uhci_pci_iter): Fill new members
13738 (grub_alloc_td): Use P2V and V2P functions.
13739 (grub_free_queue): Likewise.
13740 (grub_alloc_qh): Likewise.
13741 (grub_uhci_setup_transfer): Likewise.
13742 (grub_uhci_check_transfer): Likewise.
13743
43206939
VS
137442012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13745
13746 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13747 Remove assignment in if while on it.
13748
571e140e
VS
137492012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13750
13751 * util/grub-mkstandalone.in: Fix modules directory.
13752
a9d96eeb
VS
137532012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13754
13755 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13756 on i386-pc target.
13757 (argp_parser): Accept "auto" as compression specification.
13758
e4e37e8d
VS
137592012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13760
13761 Fix `help' with unloaded modules.
13762
13763 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13764 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13765 (grub_dyncmd_dispatcher): Small stylistic fix.
13766 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13767 explicit help is requested.
13768
e1ea3ade
VS
137692012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13770
13771 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13772 Explicitly init restart while on it.
13773
27556881
VS
137742012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13775
13776 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13777 uninited variable.
13778
d65f6b36
VS
137792012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13780
13781 * util/grub-mknetdir.in: Use . rather than source for POSIX
13782 compatibility.
13783
0a1e473c
VS
137842012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13785
13786 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13787
ce6647c8
VS
137882012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13789
13790 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13791 variable.
13792
66747894
VS
137932012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13794
13795 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13796 without quotes.
13797
71645f6e
VS
137982012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13799
13800 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13801
0e1c1f61
VS
138022012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13803
13804 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13805 iteration of partitions.
13806
9c4b5c13
VS
138072012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13808
13809 Improve gettext support. Stylistic fixes and error handling fixes while
13810 on it.
13811
215c90cb
VS
138122012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13813
13814 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13815 part. Instead setup the correct stack in RM.
13816 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13817 for stack.
13818 * include/grub/i386/relocator_private.h: New file.
13819
b5c1f9bf
VS
138202012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13821
13822 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13823 argument.
13824 * util/grub-fstest.c (options): Add missing DEVICE part.
13825
b525fd83
VS
138262012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13827
13828 Clarify and unify messages.
13829
13830 * grub-core/commands/hashsum.c (options): Unify messages.
13831 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13832 literal-only message as translatable.
13833 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13834 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13835 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13836 commands.
13837 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13838 key, not the key used to unlock. Clarify what it's used for.
13839 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13840 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13841 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13842 * util/grub-editenv.c (options): Unify "verbose" message.
13843 * util/grub-fstest.c (read_file): Unify error message.
13844 (fstest): Add quotes around commands.
13845 (options): Unify "verbose" message.
13846 * util/grub-install.in: Add quotes around variable name.
13847 * util/grub-kbdcomp.in: Unify error message.
13848 * util/grub-mkfont.c (main): Likewise.
13849 * util/grub-mkrescue.in: Likewise.
13850 * util/grub-mklayout.c (options): Unify "verbose" message.
13851 * util/grub-mkstandalone.in: Unify help and verbose messages.
13852 * util/grub-mount.c (options): Unify "verbose" message.
13853 * util/grub-probe.c (options): Likewise.
13854 * util/grub-script-check.c (options): Likewise.
13855 * util/grub-setup.c (setup): Unify no-terminator message.
13856 (options): Use DEVICE and not DEV.
13857 Unify "verbose" message.
13858 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13859
0ae70393
VS
138602012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 Improve and unify messages.
13863
13864 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13865 name. All users updated.
13866 Print filename in error.
13867 (read_device_map): Print filename in error.
13868 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13869 (grub_util_get_os_disk): Likewise.
13870 (grub_util_biosdisk_get_grub_dev): Likewise.
13871 (grub_util_check_block_device): Likewise.
13872 (grub_util_check_char_device): Likewise.
13873 (grub_make_system_path_relative_to_its_root): Likewise.
13874 * util/grub-editenv.c (create_envblk_file): Likewise.
13875 (open_envblk_file): Likewise.
13876 (write_envblk): Likewise.
13877 * util/grub-fstest.c (cmd_cp): Likewise.
13878 (cmd_cat): Likewise.
13879 (cmd_cmp): Likewise.
13880 * util/grub-menulst2cfg.c (main): Likewise.
13881 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13882 (write_font_width_spec): Likewise.
13883 (write_font_pf2): Likewise.
13884 * util/grub-mkimage.c (generate_image): New argument outname.
13885 All users updated.
13886 Remove unreacheable message.
13887 (options): Unify messages.
13888 (help_filter): Likewise.
13889 * util/grub-mklayout.c (usage): Removed (unused).
13890 (main): Print filename in error.
13891 * util/grub-mkrescue.in: Fix wrong quoting.
13892 * util/grub-setup.c (setup): Print filename in error.
13893 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13894 (check_sas): Likewise.
13895 * util/misc.c (grub_util_get_fp_size): Removed.
13896 (grub_util_get_image_size): Print filename in error.
13897 (grub_util_read_at): Removed.
13898 (grub_util_read_image): Print filename in error.
13899 (grub_util_load_image): Likewise.
13900 (grub_util_write_image_at): New argument filename. All users updated.
13901 Print filename in error.
13902 (grub_util_write_image): New argument filename. All users updated.
13903 Print filename in error.
13904 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13905 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13906
0a96117d
VS
139072012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13908
13909 * grub-core/Makefile.core.def (pxechain): New module.
13910 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13911 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13912 function.
13913 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13914 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13915
aca002f7
VS
139162012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13917
13918 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13919 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13920 * include/grub/err.h (grub_error_saved): New struct.
13921 (grub_errmsg): Make array size explicit.
13922 * include/grub/misc.h (grub_error_save): New function.
13923 (grub_error_load): Likewise.
13924 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13925 (grub_error_push): Update `errno' member name.
13926 (grub_error_pop): Likewise
13927 * grub-core/net/tftp.c (tftp_data): New member save_err.
13928 (tftp_receive): Save error.
13929 (tftp_open): Restore error.
13930
a51dab13
VS
139312012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13932
13933 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13934 to real mode down to execute A20-related code in protected mode as
13935 intended.
13936
eb6e6649
GS
139372012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13938
13939 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13940 NULL when the argument `level' has an unexpected value.
13941
92cd0f6e
VS
139422012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13943
13944 Move platform-dependent files from $prefix to $prefix/$platform.
13945
13946 * config.h.in (GRUB_TARGET_CPU): New definition.
13947 (GRUB_PLATFORM): Likewise.
13948 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13949 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13950 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13951 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13952 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13953 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13954 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13955 * grub-core/normal/term.c (read_terminal_list): Likewise.
13956 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13957 $prefix/locale.
13958 (grub_gettext_init_ext): Likewise.
13959 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13960 grub_platform.
13961 * util/grub-install.in: Update directories.
13962 * util/grub-mknetdir.in: Likewise.
13963 * util/grub-mkrescue.in: Likewise.
13964
db606889
VS
139652012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13966
13967 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13968 grub_error framework. All users updated.
13969
c39992a4
VS
139702012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13971
13972 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13973 lists (by always binsearching), improve caching (cache strings
13974 used for binsearch, not only results), improve
13975 maintainability (by using more structured binary search) and correct
13976 error handling.
13977
1e5ec32f
VS
139782012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13979
13980 * grub-core/script/execute.c (grub_script_return): Fix warning.
13981
ac576cde
VS
139822012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13983
13984 * grub-core/script/execute.c (grub_script_return): Fix potential
13985 NULL-dereference.
13986 Reported by: Jim Meyering.
13987
498453f6
VS
139882012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13989
13990 * po/POTFILES.in: Regenerate.
13991 * util/grub-install.in: Gettextize the strings missed in first pass.
13992
8be63f2e
VS
139932012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13994
13995 * Makefile.util.def (grub-mkdevicemap): Removed.
13996 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13997 * include/grub/util/deviceiter.h: Removed.
13998 * util/deviceiter.c: Likewise.
13999 * util/getroot.c (grub_util_get_os_disk): New function.
14000 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
14001 replacement for EFI.
14002 * util/grub-mkdevicemap.c: Removed.
14003 * util/grub-probe.c (probe): Handle PRINT_DISK.
14004 (argp_parser): Handle -t disk.
14005
8e1e4e39
VS
140062012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14007
14008 * util/grub-mkfont.c: Migrate to argp.
14009 * util/grub-mklayout.c: Likewise.
14010 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14011 * util/grub-mkrelpath.c: Likewise.
14012 * util/grub-probe.c: Likewise.
14013 * util/grub-script-check.c: Likewise.
14014
4459819a
VS
140152012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14016
14017 * util/grub-reboot.in: Add missing datarootdir.
14018 Add missing newline.
14019 * util/grub-set-default.in: Add missing datarootdir.
14020 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
14021 * util/grub-mkrescue.in: Likewise.
14022
f65741c7
VS
140232012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14024
14025 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
14026
c1a33466
VS
140272012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14028
14029 * util/grub-kbdcomp.in: Add decent help and gettextize.
14030 * docs/man/grub-kbdcomp.h2m: New file.
14031
c76899a0
VS
140322012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14033
14034 Migrate grub-mkimage.c to argp.
14035
14036 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
14037 (grub-setup): Likewise.
14038 * util/grub-setup.c (print_version): Move to ...
14039 * util/argp_common.c (print_version): ... here.
14040 * util/grub-setup.c (argp_program_version_hook): Move to ...
14041 * util/argp_common.c (argp_program_version_hook): ... here.
14042 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
14043 safety.
14044 * util/grub-mkimage.c (main): Migrate to argp.
14045
57db0757
VS
140462012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14047
14048 * util/grub-mkrescue.in: Use same message as
14049 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
14050 for better translations.
14051
18534ad9
VS
140522012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14053
14054 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
14055 options with generic grub-mkrescue.in with the goal of future
14056 merge.
14057
c84ba308
VS
140582012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14059
14060 * grub-core/kern/mm.c: Add missing include of i18n.h
14061 * grub-core/lib/relocator.c: Likewise.
14062
347998c2
VS
140632012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14064
14065 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14066 error.
14067 (allocate_pages): Check return value.
14068 Replace fatal with error.
14069 (grub_linux_boot): Replace printf with dprintf.
14070 Check find_mmap_size return value.
14071 Replace fatal with error.
14072 Don't call grub_machine_fini.
14073 (grub_load_elf64): Replace printf with dprintf.
14074 (grub_cmd_linux): Likewise.
14075 (grub_cmd_initrd): Likewise.
14076 (grub_cmd_payload): Likewise.
14077
c779226e
VS
140782012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14079
14080 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14081 message.
14082 * grub-core/video/radeon_fuloong2e.c
14083 (grub_video_radeon_fuloong2e_setup): Likewise.
14084 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14085 * grub-core/video/video.c (grub_video_set_mode): Don't override
14086 standard out of memory message.
14087
dc87d45a
GS
140882012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14089
14090 NetBSD disk wedge support.
14091
14092 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14093 [__NetBSD__]: Handle NetBSD disk wedges.
14094 * util/getroot.c (convert_system_partition_to_system_disk)
14095 [__NetBSD__]: Likewise.
14096
055f856f
MW
140972012-02-03 Mark Wooding <mdw@distorted.org.uk>
14098
14099 * util/grub-mkconfig.in: Use umask rather than chmod to create
14100 grub.cfg.new to avoid insecure grub.cfg.
14101
4a9f8346
VS
141022012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14103
14104 * grub-core/commands/ls.c: Gettextize.
14105 * grub-core/commands/setpci.c: Likewise.
14106 * grub-core/commands/videotest.c: Likewise.
14107 * grub-core/disk/geli.c: Likewise.
14108 * grub-core/kern/mm.c: Likewise.
14109 * grub-core/lib/relocator.c: Likewise.
14110 * grub-core/loader/efi/appleloader.c: Likewise.
14111 * grub-core/loader/i386/xnu.c: Likewise.
14112 * grub-core/loader/ia64/efi/linux.c: Likewise.
14113 * grub-core/loader/xnu.c: Likewise.
14114 * grub-core/net/dns.c: Likewise.
14115 * grub-core/net/net.c: Likewise.
14116 * grub-core/script/lexer.c: Likewise.
14117 * grub-core/script/parser.y: Likewise.
14118 * grub-core/script/yylex.l: Likewise.
14119 * util/getroot.c: Likewise.
14120 * util/grub-setup.c: Likewise.
14121
a646a366
VS
141222012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14123
14124 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14125 number.
14126
54e2be26
VS
141272012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14128
14129 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14130
f7c71e68
VS
141312012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14132
14133 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14134 macro.
14135 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14136 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14137
a32d5c71
VS
141382012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14139
14140 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14141 * util/grub-install.in: Gettextize.
14142 * util/grub-mkconfig.in: Likewise.
14143 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14144 if not available.
14145 (grub_warn): Gettextize.
14146 * util/grub-mknetdir.in: Gettextize.
14147 * util/grub-mkrescue.in: Likewise.
14148 * util/grub-mkstandalone.in: Likewise.
14149 * util/grub-reboot.in: Likewise.
14150 * util/grub-set-default.in: Likewise.
14151 * util/grub.d/00_header.in: Likewise.
14152 * util/grub.d/10_hurd.in: Likewise.
14153 * util/grub.d/10_kfreebsd.in: Likewise.
14154 * util/grub.d/10_linux.in: Likewise.
14155 * util/grub.d/10_netbsd.in: Likewise.
14156 * util/grub.d/10_windows.in: Likewise.
14157 * util/grub.d/20_linux_xen.in: Likewise.
14158 * util/grub.d/30_os-prober.in: Likewise.
14159 * po/POTFILES-shell.in: Regenerate.
14160
69edd81a
RL
141612012-02-03 Richard Laager <rlaager@wiktel.com>
14162
14163 * util/grub-mkimage.c (main): Fix format-security warning.
14164 * util/grub-mkrelpath.c (main): Likewise.
14165 * util/grub-probe.c (main): Likewise.
14166
65f08dbf
RL
141672012-02-03 Richard Laager <rlaager@wiktel.com>
14168
14169 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14170 failure.
14171 Put back lost PRINT_DRIVE.
14172
e9084abe
RL
141732012-02-03 Richard Laager <rlaager@wiktel.com>
14174
14175 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14176 (grub_guess_root_devices): Replace strlen with sizeof.
14177 Avoid crash.
14178 (find_root_devices_from_poolname): Remove unused variable.
14179 Handle raidzN.
14180
cf5f7ee7
VS
141812012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14182
14183 Support install on multi-device filesystems.
14184
14185 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14186 (grub_guess_root_devices): ...this. Return char **. All users updated.
14187 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14188 Removed.
14189 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14190 (find_root_devices_from_poolname): ... here.
14191 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14192 Support zfs-fuse.
14193 (grub_guess_root_device): Rename to ...
14194 (grub_guess_root_devices): ... this. Return char **. All users updated.
14195 * util/grub-install.in: Handle multi-device filesystems.
14196 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14197 argument. All users updated.
14198 Handle multi-device filesystems.
14199 Use 'delim' as separator.
14200 Remove device check to allow filesystems on file.
14201 (main): Support -0 argument. Handle multi-device.
14202 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14203 Fix a cross-device check while on it.
14204 (arguments): Remove root_dev.
14205 (argp_parser): Remove -r.
14206 (main): Remove root_dev.
14207
2f53a9ed
VS
142082012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14209
14210 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14211
17e1d934
VS
142122012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14213
14214 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14215 symbol.
14216 Reported by: NODA, Kai <nodakai>.
14217
d3e3fab5
VS
142182012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14219
14220 Fix ehci on amd64.
14221
14222 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14223 pointers.
14224 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14225 (grub_ehci_setup_qh): Likewise.
14226 (grub_ehci_find_qh): Likewise.
14227 (grub_ehci_transaction): Likewise.
14228 (grub_ehci_setup_transfer): Likewise.
14229 (grub_ehci_check_transfer): Likewise.
14230 (grub_ehci_portstatus): Likewise.
14231 (grub_ehci_detect_dev): Likewise.
14232 (grub_ehci_transfer_controller_data): New field td_last_phys.
14233 (grub_ehci_setup_transfer): Fill td_last_phys.
14234 (grub_ehci_check_transfer): Use td_last_phys.
14235
3008675b
SG
142362012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14237
14238 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14239 if no submenu is present.
14240
fc9b5652
AN
142412012-02-01 Aleš Nesrsta <starous@volny.cz>
14242
14243 CBI support.
14244
14245 * include/grub/usb.h (grub_usbms_protocol_t): New values
14246 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14247 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14248 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14249 (grub_usbms_dev): Add subclass, protocol and intrpt.
14250 Remove in_maxsz and out_maxsz.
14251 (grub_usbms_reset): Rename to ...
14252 (grub_usbms_bo_reset): .. this.
14253 (grub_usbms_cbi_cmd): New function.
14254 (grub_usbms_cbi_reset): Likewise.
14255 (grub_usbms_reset): Likewise.
14256 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14257 (grub_usbms_transfer): Rename to ...
14258 (grub_usbms_transfer_bo): ... this.
14259 (grub_usbms_transfer_cbi): Likewise.
14260 (grub_usbms_transfer): Likewise.
14261
a2b81d53
AN
142622012-02-01 Aleš Nesrsta <starous@volny.cz>
142632012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14264
14265 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14266 the support for the CS5536 modification thereos and few bugfixes.
14267
14268 * grub-core/Makefile.core.def (ehci): New module.
14269 * grub-core/bus/usb/ehci.c: New file.
14270 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14271 port and hubaddr. All users updated.
14272 Save port and hubaddr into dev structure.
14273 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14274 define.
14275 * include/grub/pci.h (grub_dma_phys2virt): New function.
14276 (grub_dma_virt2phys): Likewise.
14277 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14278
b1d51f02
VS
142792012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14280
14281 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14282 check as some mkfs implementations omit it.
14283
fc694106
VS
142842012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14285
14286 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14287
6c0920e3
VS
142882012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14289
14290 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14291 Add new member volname2.
14292 (grub_jfs_label): Use volname2 if available.
14293
d1a46f9a
VS
142942012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14295
14296 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14297 over last_mounted as seen in image generated by mkfs.nilfs2.
14298 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14299
dec8ed14
VS
143002012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14301
14302 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14303 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14304 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14305
7397c69b
VS
143062012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14307
14308 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14309 over the sector.
14310
b3fe42ad
VS
143112012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14312
14313 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14314 subvolume name (by removing a bogus and useless check).
14315
10476bb0
VS
143162012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14317
14318 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14319 sizeof while on it.
14320
9c08ad87
VS
143212012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14322
14323 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14324 (grub_scsi_read_capacity10): ... this.
14325 (grub_scsi_read_capacity16): New function.
14326 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14327 0xffffffff.
14328 Fix off-by-one error.
14329 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14330 64-bit unsigned.
14331 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14332 (grub_scsi_read_capacity10): ... this.
14333 (grub_scsi_read_capacity_data): Rename to ...
14334 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14335 (grub_scsi_read_capacity16): New struct.
14336 (grub_scsi_read_capacity16_data): Likewise.
14337 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14338 grub_scsi_cmd_read_capacity10.
14339 New command grub_scsi_cmd_read_capacity16.
14340
bc8d0f45
VS
143412012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14342
14343 SCSI >2TiB support.
14344
14345 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14346 (grub_scsi_write16): Likewise.
14347 (grub_scsi_read): Use read16 when necessary.
14348 (grub_scsi_write): Likewise.
14349 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14350 (grub_scsi_write16): Likewise.
14351 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14352
cc774926
VS
143532012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14354
14355 SCSI write support (for usbms mainly).
14356
14357 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14358 a const pointer.
14359 (grub_scsi_write): Implement.
14360 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14361
67639fd7
VS
143622012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14363
14364 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14365 variable.
14366
9079d3ed
VS
143672012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14368
14369 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14370
c6a6f204
VS
143712012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14372
14373 * po/POTFILES.in: Regenerate.
14374
ecbf8cd1
VS
143752012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14376
14377 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14378 with grub_printf to avoid unnecessary fatal failure.
14379
0b3b3b38
VS
143802012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14381
14382 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14383 (INT_MAX): Likewise.
14384 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14385 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14386 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14387 (strcpy): Likewise.
14388 (strstr): Likewise.
14389 (strchr): Likewise.
14390 (strncpy): Likewise.
14391 (strcat): Likewise.
14392 (strncat): Likewise.
14393 (strcoll): Likewise.
14394 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14395 (GRUB_INT_MAX): Likewise.
14396
db7337a3
VS
143972012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14398
14399 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14400 unexpected error.
14401 (optimize_utf8): Likewise.
14402 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14403
f37c87e1
VS
144042012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14405
14406 * grub-core/boot/i386/pc/lnxboot.S: Use
14407 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14408 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14409 location.
14410 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14411 definition.
14412 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14413
63fe43f3
VS
144142012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14415
14416 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14417 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14418 now to avoid double free.
14419 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14420 hostdisk.
14421 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14422 * util/grub-probe.c (escape_of_path): Always return a new copy.
14423 (print_full_name): Escape path.
14424 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14425 Fix hints on abstractions.
14426
ebe2c961
VS
144272012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14428
14429 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14430 Don't add "root" line if no compatibility hont is available.
14431 Suggested by: Seth Goldberg.
14432
2b5336a2
VS
144332012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14434
14435 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14436 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14437 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14438 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14439
74310bd8
VS
144402012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14441
14442 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14443
c30582ba
VS
144442012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14445
14446 * util/grub-pe2elf.c (ehdr): Make static.
14447 (shdr): Likewise.
14448 (num_sections): Likewise.
14449 (offset): Likewise.
14450
5f47782c
VS
144512012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14452
14453 Eliminate ofpath limits and possible overflows.
14454
14455 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14456 (OF_PATH_MAX): Removed.
14457 (MAX_DISK_CAT): New const.
14458 (find_obppath): Use allocated rather than preallocated buffer.
14459 Return result. Argument of_path removed. All users updated.
14460 Add missing fdstat.
14461 (xrealpath): New function.
14462 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14463 Allocate rather than use preallocated buffer. All users updated.
14464 (__of_path_common): Use allocated rather than preallocatecd buffer.
14465 Return result. Argument of_path removed. All users updated.
14466 (vendor_is_ATA): Read only needed part form the file.
14467 (check_sas): Allocate depending on contents rather than fixed.
14468 (main) [STANDALONE]: Handle NULL result.
14469
f990cbf9
VS
144702012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14471
14472 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14473
9c6e84b8
VS
144742012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14475
14476 Cryptodisk write support.
14477
14478 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14479 (grub_cryptodisk_decrypt): Moved logic to ...
14480 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14481 (grub_cryptodisk_write): Implement.
14482 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14483 (grub_util_fd_write): ... this. Make global.
14484 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14485
87cf9744
VS
144862012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14487
14488 * include/grub/list.h (grub_list_remove): Don't crash if element is
14489 removed twice.
14490
ca8c0baf
VS
144912012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14492
14493 Rename ofconsole to console.
14494
14495 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14496 as sysnonym to console.
14497 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14498 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14499 Rename grub_ofconsole_ to grub_console_. All users updated
14500 (grub_console_term_output): Rename "ofconsole" to "console".
14501 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14502 as "console".
14503
64c8b8f6
VS
145042012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14505
14506 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14507 handling.
14508 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14509 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14510 GRUB_DISK_DEVICE_FILE_ID.
14511
f6c434d5
VS
145122012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14513
14514 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14515 and improve performance.
14516
5858b42d
VS
145172012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14518
14519 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14520 missing ieee1275/ prefix on whole disk.
14521
4ed3c26b
VS
145222012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14523
14524 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14525 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14526
df71143e
VS
145272012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14528
14529 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14530
076e7c0f
VS
145312012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14532
14533 Merge common RAID and LVM logic to an abstract diskfilter.
14534 Add LDM support using the same framework.
14535
14536 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14537 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14538 (libgrubmods): Remove grub-core/disk/raid.c and
14539 grub-core/partmap/gpt.c.
14540 * grub-core/Makefile.core.def (ldm): New module.
14541 (raid): Renamed to diskfilter. All users updated.
14542 * grub-core/disk/raid.c: Moved to ...
14543 * grub-core/disk/diskfilter.c: ... here.
14544 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14545 (lv_num): New var.
14546 (find_array): Renamed to ...
14547 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14548 (grub_is_array_readable): Renamed to ...
14549 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14550 (insert_array): New argument id.
14551 (is_node_readable): New function.
14552 (scan_device): Rename to ...
14553 (scan_disk): .. this. Restrict to one disk.
14554 (scan_devices): New function.
14555 (grub_diskfilter_iterate): Support multi-LV.
14556 Skip invisible and nameless LVs.
14557 (grub_diskfilter_memberlist): Support multi-LV.
14558 (grub_diskfilter_read_node): New function.
14559 (grub_raid_read): Most of logic moved to ...
14560 (read_segment): ... here
14561 (read_lv): New function.
14562 (grub_diskfilter_get_vg_by_uuid): New function.
14563 (grub_diskfilter_make_raid): Likewise.
14564 * grub-core/disk/ldm.c: New file.
14565 * grub-core/disk/lvm.c (vg_list): Removed.
14566 (lv_count): Likewise.
14567 (scan_depth): Likewise.
14568 (is_lv_readable): Likewise.
14569 (grub_lvm_getvalue): Advance pointer past the number.
14570 (find_lv): Removed.
14571 (do_lvm_scan): Refactored into ...
14572 (grub_lvm_detect): ... this. Support raid.
14573 (grub_lvm_iterate): Removed.
14574 (grub_lvm_memberlist): Likewise.
14575 (grub_lvm_open): Likewise.
14576 (grub_lvm_close): Likewise.
14577 (read_lv): Likewise.
14578 (read_node): Likewise.
14579 (is_node_readable): Likewise.
14580 (is_lv_readable): Likewise.
14581 (grub_lvm_read): Likewise.
14582 (grub_lvm_write): Likewise.
14583 (grub_lvm_dev): Use diskfilter
14584 (GRUB_MOD_INIT): Likewise.
14585 (GRUB_MOD_FINI): Likewise.
14586 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14587 new interface.
14588 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14589 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14590 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14591 grub_diskfilter_read_node.
14592 Fix a bug with xor.
14593 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14594 grub_diskfilter_read_node.
14595 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14596 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14597 (grub_disk_dev_iterate): Move from here...
14598 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14599 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14600 Make global.
14601 (grub_hostdisk_find_partition_start): Likewise.
14602 (grub_hostdisk_os_dev_to_grub_drive): New function.
14603 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14604 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14605 * util/getroot.c (make_device_name): ... here.
14606 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14607 Move to ...
14608 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14609 * grub-core/kern/emu/hostdisk.c
14610 (convert_system_partition_to_system_disk): Move to ...
14611 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14612 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14613 * util/getroot.c (device_is_wholedisk): ... here.
14614 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14615 * util/getroot.c (find_system_device): ... here.
14616 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14617 Move to ...
14618 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14619 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14620 Move to ...
14621 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14622 Handle LDM.
14623 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14624 Move to ...
14625 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14626 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14627 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14628 DISKFILTER.
14629 * include/grub/raid.h: Renamed to ...
14630 * include/grub/diskfilter.h: ... this.
14631 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14632 (GRUB_RAID_LAYOUT_*): Make into array.
14633 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14634 (grub_diskfilter_vg): New struct.
14635 (grub_diskfilter_pv_id): Likewise.
14636 (grub_raid_member): Removed.
14637 (grub_raid_array): Likewise.
14638 (grub_diskfilter_pv): New struct.
14639 (grub_diskfilter_lv): Likewise.
14640 (grub_diskfilter_segment): Likewise.
14641 (grub_diskfilter_node): Likewise.
14642 (grub_diskfilter_get_vg_by_uuid): New proto.
14643 (grub_raid_register): Inline.
14644 (grub_diskfilter_unregister): Likewise.
14645 (grub_diskfilter_make_raid): New proto.
14646 (grub_diskfilter_vg_register): Likewise.
14647 (grub_diskfilter_read_node): Likewise.
14648 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14649 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14650 (grub_util_is_ldm): Likewise.
14651 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14652 (grub_hostdisk_find_partition_start): Likewise.
14653 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14654 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14655 New definition.
14656 (grub_gpt_partition_map_iterate): New proto.
14657 * include/grub/lvm.h (grub_lvm_vg): Removed.
14658 (grub_lvm_pv): Likewise.
14659 (grub_lvm_lv): Likewise.
14660 (grub_lvm_segment): Likewise.
14661 (grub_lvm_node): Likewise.
14662 * util/getroot.c [...]
14663 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14664 (probe_abstraction): Likewise.
14665 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14666 (main): Remove dead logic.
14667
8a7f9b9c
VS
146682012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14669
14670 Simplify root device discover and don't fail when trying to open
14671 incorrect devices.
14672
14673 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14674 function.
14675 (get_diskname_from_path): Likewise.
14676 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14677 of iterating.
14678
30545b85
VS
146792012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14680
14681 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14682
28ea58cf
VS
146832012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14684
14685 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14686 pastthe end.
14687
692dabca
VS
146882012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14689
14690 * util/grub-install.in: Add missing \.
14691 Reported by: gentoofan
14692
f6e4ea70
VS
146932012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14694
14695 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14696 (direct_read): Use correct compressed size.
14697 (grub_squash_read_data): Likewise.
14698
146992012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
14700
14701 * docs/grub.texi (Platform limitations): New section.
14702 (Platform-specific operations): Likewise.
14703 * docs/grub-dev.texi (Porting): Likewise.
14704
76261110
VS
147052012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14706
14707 IEEE1275 disk write support.
14708
14709 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14710 const void *.
14711 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14712 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14713 and seek loginc to ...
14714 (grub_ofdisk_prepare): ... here.
14715 (grub_ofdisk_write): Implement.
14716
fc36d603
VS
147172012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14718
14719 ARC disk write support.
14720
14721 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14722 (reopen): New argument writable. All users updated.
14723 Handle required access mode.
14724 (grub_arcdisk_write): Implement.
14725 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14726 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14727
e06c2e7a
VS
147282012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14729
14730 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14731 (read_sblock): Don't attempt to read superblocks outside the disk size.
14732
ff447958
VS
147332012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14734
14735 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14736 first superblock to find the second one when possible.
14737
9e88df39
VS
147382012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14739
14740 * util/grub-install.in: Fix an ARC bug.
14741 Print a warning if no platform-specific setup is available.
14742
bb26e4ff
VS
147432012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14744
14745 Use static allocation rather than scratch pointer in reed_solomon.
14746 It decreases its size significantly and avoids a variable in .text.
14747
14748 * grub-core/lib/reed_solomon.c (scratch): Removed.
14749 (chosenstat): New const or static array.
14750 (sigma): Likewise.
14751 (errpot): Likewise.
14752 (errpos): Likewise.
14753 (sy): Likewise.
14754 (mstat): Likewise.
14755 (errvals): Likewise.
14756 (eqstat): Likewise.
14757 (pol_evaluate): Replace x with log_x argument. All users updated.
14758 (syndroms): Removed.
14759 (gauss_solve): Use statically allocated arrays.
14760 (rs_recover): Likewise.
14761 Calculate syndroms directly.
14762 (decode_block): Use statically allocated arrays.
14763 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14764 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14765
2e13ede5
VS
147662012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14767
14768 Eliminate fixed limit on reed solomon decoder length.
14769
14770 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14771 rather than hardcoding the address.
14772 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14773 no_reed_solomon_length.
14774 Move gate_a20 to no-reed-solomon part.
14775 Don't force a particular size of no reed-solomon part.
14776 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14777 Removed.
14778 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14779 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14780
f8a9ab12
VS
147812012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14782
14783 * grub-core/commands/wildcard.c (match_files): Handle filenames
14784 without explicit device.
14785 (wildcard_expand): Don't add explicit device if not already present.
14786 * tests/grub_script_echo1.in: Add a new expansion test.
14787
87edb894
VS
147882012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14789
14790 Replace single-linked with double-linked lists. It results in more
14791 compact and more efficient code.
14792
14793 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14794 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14795 (grub_list_remove): Moved from here ...
14796 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14797 (grub_prio_list_insert): Set prev.
14798 * include/grub/list.h (grub_list): Add prev. All users updated.
14799
48b391e9
VS
148002012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14801
14802 Handle newer autotools. Add some missing quotes while on it.
14803
14804 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14805 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14806 (pkgdata_DATA): ... here.
14807 * Makefile.util.def (update-grub_lib): Removed.
14808 * conf/Makefile.common (pkglib_DATA): Removed.
14809 (pkglib_SCRIPTS): Likewise.
14810 (pkgdata_DATA): New variable.
14811 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14812 needed.
14813 Add missing quotes.
14814 Remove unused variable while on it.
14815 * tests/util/grub-shell.in: Likewise.
14816 * util/grub-install.in: Likewise.
14817 * util/grub-mkconfig.in: Likewise.
14818 * util/grub-mknetdir.in: Likewise.
14819 * util/grub-mkrescue.in: Likewise.
14820 * util/grub-mkstandalone.in: Likewise.
14821 * util/grub.d/00_header.in: Likewise.
14822 * util/grub.d/10_hurd.in: Likewise.
14823 * util/grub.d/10_illumos.in: Likewise.
14824 * util/grub.d/10_kfreebsd.in: Likewise.
14825 * util/grub.d/10_linux.in: Likewise.
14826 * util/grub.d/10_netbsd.in: Likewise.
14827 * util/grub.d/10_windows.in: Likewise.
14828 * util/grub.d/20_linux_xen.in: Likewise.
14829 * util/grub.d/30_os-prober.in: Likewise.
14830 * util/update-grub_lib.in: Removed.
14831
148322012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
14833
14834 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14835 a workaround for intel problem.
14836
66832792
PRP
148372012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
148382012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
148392012-01-23 pfsmorigo
14840
14841 * util/grub-install.in: Support dd'in into PreP partition.
14842 * util/grub-probe.c (probe): Support discovering partition type.
14843 (main): Support -t msdos_parttype.
14844
7816a17e
VS
148452012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14846
14847 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14848 infinite recursion using counter.
14849 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14850 init to skip it if the magic check fails.
14851 (dec_stream_header): Init s->crc32.
14852
8f9d3a8c
ZB
148532012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
148542012-01-22 Zachary Bedell <pendorbound@gmail.com>
148552012-01-22 Richard Laager <rlaager@wiktel.com>
14856
14857 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14858 All users updated.
14859 (find_bestub): Determine correct size.
14860 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14861 (scan_disk): Align the size down.
14862 Call check pool before find_bestub to have ashift.
14863
b055dd32
VS
148642012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14865
14866 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14867 dprintf in no-malloc zone.
14868
d779e9bd
ML
148692012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14870
14871 * configure.ac: Add back in test for limits.h.
14872
b508af69
VS
148732012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14874
14875 Support 4K-sector NTFS.
14876
14877 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14878 (grub_ntfs_data): Remove blocksize.
14879 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14880 Remove data argument. All users updated.
14881
dad9c8b5
VS
148822012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14883
14884 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14885 being in .text to avoid dprel references.
14886 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14887 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14888 (grub_arch_highmemsize): Likewise.
14889 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14890 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14891 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14892
d43a777e
VS
148932012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14894
14895 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14896
14897 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14898 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14899
34e4208f
VS
149002012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14901
14902 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14903 GRUB_UTIL.
14904 (grub_set_datetime_cmos): Likewise.
14905
3ec0fc1c
VS
149062012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14907
14908 Make XZ compression parameters dependent on target and not host CPU.
14909
14910 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14911 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14912
22489834
VS
149132012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14914
14915 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14916 set but not used variable.
14917
8502fbca
VS
149182012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14919
14920 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14921 created when no uuid support is compiled into mkfs.reiser.
14922
76df2068
VS
149232012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14924
14925 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14926 (utf8_to_macroman): Do the opposite.
14927 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14928
64e3f8f6
VS
149292012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14930
14931 * configure.ac: Refise build qemu_mips w/o unifont.
14932
9c271078
VS
149332012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14934
14935 Eliminate grub_min/grub_max prone to overflow usage.
14936
14937 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14938 (poll_nonroot_hub): Likewise.
14939 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14940 (grub_affs_label): Likewise.
14941 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14942 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14943 (grub_hfs_label): Likewise.
14944 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14945 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14946 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14947 (zap_leaf_array_get): Likewise.
14948 (dnode_get_path): Likewise.
14949 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14950 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14951 * grub-core/script/execute.c (grub_script_break): Likewise.
14952 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14953 grub_max.
14954 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14955 * include/grub/misc.h (grub_min): Removed.
14956 (grub_max): Likewise.
14957
80662dbc
VS
149582012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14959
14960 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14961 direct.inode = 0.
14962
e6da1467
VS
149632012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14964
14965 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14966
b1ac4cb1
VS
149672012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14968
14969 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14970
b4bf7c3b
VS
149712012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14972
14973 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14974 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14975
8ee1101a
VS
149762012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14977
14978 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14979 rather than a hack for grub_strncasemap.
14980
149812012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14982
14983 Support multiple initrds
14984 Note: part of this was accidently committed in r3739.
14985
14986 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14987 initrd.
14988 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14989 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14990 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14991 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14992 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14993
4d1e2bc9
VS
149942012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14995
14996 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14997 disks with unknown size.
14998 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14999
75b49ebe
VS
150002012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15001
15002 Remove defines pertaining to arbitrary limits not affecting GRUB
15003 anymore.
15004
15005 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
15006 (EXT2_MAX_SYMLINKCNT): Likewise.
15007 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
15008 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
15009 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
15010 (GRUB_PXE_MAX_BLKSIZE): Likewise.
15011 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
15012 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
15013 (DN_MAX_OBJECT_SHIFT): Likewise.
15014 (DN_MAX_OFFSET_SHIFT): Likewise.
15015 (DN_MAX_OBJECT): Likewise.
15016 (DNODES_PER_LEVEL_SHIFT): Likewise.
15017 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
15018 (SPA_MAXBLOCKSIZE): Likewise.
15019 (SPA_BLOCKSIZES): Likewise.
15020 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
15021 (MZAP_MAX_BLKSZ): Likewise.
15022
74a1dce7
VS
150232012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15024
15025 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
15026 handle NULL appropriately.
15027 Remove MIN.
15028
30c7d3ce
VS
150292012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15030
15031 Fix efiemu.
15032
15033 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
15034 cpu/types.h.
15035 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
15036 * configure.ac: Fix efiemu check.
15037
3c76ea0c
VS
150382012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15039
15040 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
15041 grub_probe.
15042 Reported by: adamwill
15043
7e532280
SG
150442012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
15045
15046 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
15047
30492374
VS
150482012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15049
15050 Fix handling of wide characters in gfxterm.
15051
15052 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
15053 (clear_char): Likewise.
15054 (paint_char): Skip code == NULL chars.
15055 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
15056
e70cb72f
VS
150572012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15058
15059 * grub-core/normal/charset.c: Move comment to right place.
15060
5c827cf9
VS
150612012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15062
15063 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15064 (GRUB_AFFS_FLAG_FFS): Put back where it was.
15065 (grub_affs_mount): Revert the correct version checking.
15066
53603892
VS
150672012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15068
15069 * docs/grub.texi (Unicode): Mention several other unsupported features.
15070
ff094b9b
VS
150712011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15072
15073 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15074 case statements as compile-time one.
15075 (direct_read): Prevent spurious warnings.
15076 (grub_squash_read_data): Likewise.
15077
c029da8a
VS
150782011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15079
15080 Various squash4 fixes and LZO and XZ support.
15081
15082 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15083 Add xzembed source files.
15084 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15085 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15086 (grub_squash_inode): New subtype long_dir.
15087 (SQUASH_TYPE_LONG_DIR): New inode type.
15088 (COMPRESSION): New enum.
15089 (XZBUFSIZ): New const.
15090 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15091 (read_chunk): Use data->decompress.
15092 (zlib_decompress): New function.
15093 (lzo_decompress): Likewise.
15094 (xz_decompress): Likewise.
15095 (squash_mount): Set new data fields.
15096 (grub_squash_iterate_dir): Handle long dir.
15097 (squash_unmount): Free xzdec and xzbuf.
15098 (grub_squash_open): Check ino type.
15099 (direct_read): Stylistic fixes. Use data->decompress.
15100 (grub_squash_read_data): Likewise.
15101 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15102 (get_byte): Likewise.
15103 (grub_zlib_disk_read): Removed.
15104 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15105 (GRUB_POSIX_BOOL_DEFINED): New define.
15106 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15107 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15108 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15109 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15110
7a45a539
VS
151112011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15112
15113 Don't override more informative errors.
15114
15115 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15116 * grub-core/font/font.c (open_section): Likewise.
15117 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15118 filename. Don't override errors.
15119 (grub_cmd_openbsd_ramdisk): Don't override errors.
15120 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15121 (grub_cmd_initrd): Likewise.
15122 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15123 (grub_cmd_initrd): Likewise.
15124 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15125 (grub_cmd_linux): Likewise.
15126 (grub_cmd_initrd): Likewise.
15127 (grub_cmd_payload): Likewise.
15128 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15129 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15130 (grub_cmd_module): Likewise.
15131 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15132 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15133 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15134 (grub_cmd_xnu_mkext): Likewise.
15135 (grub_cmd_xnu_ramdisk): Likewise.
15136 (grub_xnu_check_os_bundle_required): Likewise.
15137 (grub_xnu_load_kext_from_dir): Likewise.
15138 (grub_cmd_xnu_kextdir): Likewise.
15139 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15140
b2d004db
VS
151412011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15142
15143 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15144 as 1024 in block size field. Found on one of my test images.
15145 Small optimisation while on it.
15146
ec000eac
VS
151472011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15148
15149 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15150 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15151 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15152 performance fixes while on it.
15153 (grub_sfs_close): Fix memory leak while on it.
15154 (grub_sfs_label): Convert Latin1 to UTF-8.
15155
f50e1165
VS
151562011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15157
15158 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15159 space to avoid overflows.
15160 (grub_hfs_label): Convert from macroman to UTF-8.
15161
2ae254de
VS
151622011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15165
0108f491
VS
151662011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15167
15168 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15169
f45f5f89
VS
151702011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15171
15172 * unicode: Import Unicode 6.0 data.
15173
4d8c4765
VS
151742011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15175
63fa8ef9
VS
15176 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15177 outside of range.
15178
151792011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15180
15181 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
15182
15183 * include/grub/charset.h (grub_getend): New function.
15184 * grub-core/script/function.c (grub_script_function_find): Use
15185 grub_getend.
15186 * grub-core/normal/completion.c (add_completion): Likewise.
15187
f3cb4a4e
VS
151882011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15189
15190 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15191 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15192 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15193 (GRUB_UNICODE_TAG_END): Likewise.
15194 (GRUB_UNICODE_LAST_VALID): Likewise.
15195
5da8dbc5
VS
151962011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15197
15198 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15199 len and make it smaller. All users updated.
15200 * util/import_unicode.py: Put length and not end character.
15201 Check length.
15202
8569f13d
VS
152032011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15204
15205 Make better Unicode-compliant and unify some UTF-8 code pathes.
15206
15207 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15208 valid character.
15209 (grub_is_valid_utf8): Use grub_utf8_process.
15210 Check resulting code range.
15211 (grub_utf8_to_ucs4): Use grub_utf8_process.
15212 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15213 valid character.
15214
cc4fddf5
VS
152152011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15216
15217 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15218
bbc47747
VS
152192011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15220
15221 * docs/grub.texi (Filesystems): Mention AFS.
15222
f63d6bf4
VS
152232011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15224
15225 * docs/grub.texi (Filesystems): Clarify restrictions.
15226 (Regexp): Mention non-Unicode regexp behaviour.
15227 (Other): Mention non-Unicode matching behaviour.
15228
74bbf0db
VS
152292011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15230
f63d6bf4 15231 Make HFS implementation use MacRoman.
74bbf0db
VS
15232
15233 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15234 (macroman): New const array.
15235 (macroman_to_utf8): New function.
15236 (utf8_to_macroman): Likewise.
15237 (grub_hfs_find_dir): Use utf8_to_macroman.
15238 (grub_hfs_dir): Use macroman_to_utf8.
15239 Set case_insensitive.
15240
4ea0316e
VS
152412011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15242
15243 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15244
d3c13cbd
VS
152452011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15246
15247 Integrate hints into autogeneration scripts.
15248
15249 * docs/grub.texi (Filesystems): Add a hostdisk example.
15250 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15251 (grub-probe): Add ofpath.
15252 * gentpl.py: Remove group nosparc64.
15253 * grub-core/commands/search.c (cache_entry): New struct.
15254 (cache): New var.
15255 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15256 * grub-core/commands/search_wrap.c (options): Add platform-specific
15257 hint options.
15258 (grub_cmd_search): Handle platform-specific hints.
15259 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15260 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15261 (grub_util_biosdisk_data): Likewise.
15262 (grub_util_biosdisk_open): Set device_map.
15263 (read_device_map): Handle "" as indication of no map.
15264 Set device_map.
15265 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15266 (grub_util_biosdisk_get_compatibility_hint): New function.
15267 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15268 * include/grub/emu/hostdisk.h
15269 (grub_util_biosdisk_get_compatibility_hint): New proto.
15270 * util/grub-install.in: Don't call grub-mkdevicemap.
15271 Add platform-specific hint to load.cfg.
15272 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15273 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15274 hints. Set root preliminary to compatibility hint, not to OS name.
15275 * util/grub-probe.c (PRINT_*): Add hints.
15276 (print): Make static.
15277 (escape_of_path): New function.
15278 (guess_bios_drive): Likewise.
15279 (guess_efi_drive): Likewise.
15280 (guess_baremetal_drive): Likewise.
15281 (print_full_name): Likewise.
15282 (probe): Handle hints.
15283 (main): Likewise.
15284 * util/ieee1275/devicemap.c: Removed.
15285 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15286 updated.
15287 (grub_util_devname_to_ofpath): Return NULL on failure.
15288
15289 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15290 resource leak.
15291 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15292
15293 * po/POTFILES.in: Regenerated.
15294
15295 Allow purely long options
15296
15297 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15298 (SHORT_ARG_USAGE): Likewise.
15299 (grub_arg_show_help): Compare opt with help_options.
15300 (parse_option): Receive opt as argument. If makes big simplificatons.
15301 All users updated
15302
00ce2df3
VS
153032011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15304
15305 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15306 Restructure to avoid warning.
15307
e77e325f
VS
153082011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15309
15310 * util/grub-install.in: Account for possible escaped comma in device
15311 name.
15312
165099ea
VS
153132011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15314
15315 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15316 channel.
15317
ce4a999d
VS
153182011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15319
15320 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15321 allocation and zero-setting.
15322 (grub_ieee1275_get_devname): Check that alias is complete.
15323
379586ad
VS
153242011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15325
15326 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15327 unaligned segments.
15328
9197b0ad
VS
153292011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15330
15331 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15332 prefix.
15333 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15334 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15335 Add ieee1275 prefix.
15336
edddb7f9
VS
153372011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15338
15339 * docs/grub.texi (Filesystems): Update.
15340
a1a8b1b9
VS
153412011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15342
15343 Support odc, newc and bigendian cpio formats.
15344
15345 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15346 * grub-core/Makefile.core.def (newc): New module.
15347 (odc): Likewise.
15348 (cpio_be): Likewise.
15349 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15350 (MAGIC): Likewise.
15351 (MAGIC2): Likewise.
15352 (head) [MODE_ODC]: Adapt for the format.
15353 (head) [MODE_NEWC]: Likewise.
15354 (head) [!MODE_*]: Write fields of interest as arrays.
15355 (MAGIC_USTAR): Removed.
15356 (read_number) [MODE_NEWC]: Change to hex.
15357 (read_number) [!MODE_*]: Parse binary arrays.
15358 (grub_cpio_find_file): Factor out the code for better structure and
15359 always use read_number.
15360 (grub_cpio_mount): Use MAGIC and MAGIC2.
15361 (grub_cpio_dir): Exit on first hook non-0 return.
15362 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15363 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15364 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15365 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15366 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15367 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15368 * grub-core/fs/newc.c: New file.
15369 * grub-core/fs/odc.c: Likewise.
15370 * grub-core/fs/cpio_be.c: Likewise.
15371
58eba9ee
VS
153722011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15373
15374 Fix handling of tar numbers occupying the whole field.
15375
15376 * grub-core/fs/cpio.c (read_number): New function.
15377 (grub_cpio_find_file): Use read_number instead of strtoull.
15378
a54a0e12
VS
153792011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15380
15381 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15382 occupying the whole field size.
15383
a6120aca
LA
153842011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15385
15386 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15387
a93964ce
VS
153882011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15389
15390 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15391
3ea1ca46
SG
153922011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15393
15394 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15395 TARGET_IMG_LDFLAGS.
15396
b87f7ef2
VS
153972011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15398
15399 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15400 (mountinfo_entry): Increase the field size to take escaping into
15401 account.
15402 (find_root_device_from_libzfs): Add one byte to size of strings for
15403 security.
15404
62092395
VS
154052011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15406
15407 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15408 an assert.
15409 * util/grub-setup.c (setup): Likewise.
15410
1f0b1a77
VS
154112011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15412
15413 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15414 _LzmaDecodeA.
15415
8eba9997
VS
154162011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15417
15418 * docs/grub.texi (Internationalisation): New section.
15419
dd0c91e9
VS
154202011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15421
15422 * docs/grub.texi (Loopback booting): New section.
15423
154242011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
15425
15426 * util/grub-mkstandalone.in: Fix minor typo errors.
15427
198e150a
VS
154282011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15429
15430 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15431
15432 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15433 net/icmp.c and net/icmp6.c.
15434 (http): New module.
15435 (priority_queue): Likewise.
15436 * grub-core/io/bufio.c: Rewritten.
15437 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15438 TYPE_WITH_CONFIGFILE_OPTION.
15439 (legacy_commands): Add bootp and dhcp.
15440 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15441 (grub_legacy_parse): Likewise.
15442 * grub-core/lib/priority_queue.c: New file.
15443 * grub-core/net/arp.c: Add missing license header.
15444 (arp_find_entry): Removed.
15445 (arp_find_entry): Likewise.
15446 (grub_net_arp_resolve): Rename to ...
15447 (grub_net_arp_send_request): ...this.
15448 (grub_net_arp_receive): New card argument.
15449 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15450 Set router and DNS server.
15451 (grub_net_configure_by_dhcp_ack): Handle routing information.
15452 (grub_cmd_bootp): Set checksum.
15453 (grub_bootp_init): Remove net_dhcp.
15454 * grub-core/net/dns.c: New file.
15455 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15456 completion.
15457 (get_card_packet): Handle allocation.
15458 (grub_efinet_findcards): Set mtu.
15459 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15460 (get_card_packet): Handle allocation.
15461 (emucard): Set mtu.
15462 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15463 (GRUB_MOD_INIT): Set mtu.
15464 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15465 mtu.
15466 (get_card_packet): Handle allocation.
15467 (grub_ofnet_findcards): Set mtu.
15468 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15469 assert.
15470 (grub_net_recv_ethernet_packet): Handle IPv6.
15471 * grub-core/net/http.c: New file.
15472 * grub-core/net/icmp.c: Likewise.
15473 * grub-core/net/icmp6.c: Likewise.
15474 * grub-core/net/ip.c (ip6addr): New type.
15475 (ip6hdr): Likewise.
15476 (reassemble): Likewise.
15477 (cmp): New function.
15478 (reassembles): New variable.
15479 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15480 (id): New variable.
15481 (send_fragmented): New function.
15482 (grub_net_send_ip_packet): Rename to ...
15483 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15484 Handle non-UDP.
15485 (grub_net_recv_ip_packets): Rename to ...
15486 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15487 (free_rsm): New function.
15488 (free_old_fragments): Likewise.
15489 (grub_net_recv_ip4_packets): New function.
15490 (grub_net_send_ip6_packet): Likewise.
15491 (grub_net_send_ip_packet): Likewise.
15492 (grub_net_recv_ip6_packets): Likewise.
15493 (grub_net_recv_ip_packets): Likewise.
15494 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15495 (LINK_LAYER_CACHE_SIZE): New const.
15496 (link_layer_find_entry): New function.
15497 (grub_net_link_layer_add_address): Likewise.
15498 (grub_net_link_layer_resolve_check): Likewise.
15499 (grub_net_link_layer_resolve): Likewise.
15500 (grub_net_ipv6_get_slaac): Likewise.
15501 (grub_net_ipv6_get_link_local): Likewise.
15502 (grub_cmd_ipv6_autoconf): Likewise.
15503 (parse_ip): Handle one number representation.
15504 (parse_ip6): New functoion.
15505 (match_net): Handle IPv6.
15506 (grub_net_resolve_address): Handle IPv6 and DNS.
15507 (grub_net_resolve_net_address): Handle IPv6.
15508 (route_cmp): New function.
15509 (grub_net_route_address): Find best route.
15510 (grub_net_addr_to_str): Handle IPv6.
15511 (grub_net_addr_cmp): New function.
15512 (grub_net_add_addr): Register local route.
15513 (print_net_address): Handle net address.
15514 (grub_net_poll_cards): Retransmit TCP.
15515 (grub_net_poll_cards_idle_real): Likewise.
15516 (have_ahead): New function.
15517 (grub_net_seek_real): Use underlying seek.
15518 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15519 * grub-core/net/tcp.c: New file.
15520 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15521 (cmp): New function.
15522 (ack): Likewise.
15523 (tftp_receive): Handle unordered input.
15524 (destroy_pq): New function.
15525 (tftp_close): Close pq.
15526 * grub-core/net/udp.c: Put missing license header.
15527 (grub_net_udp_socket): New function.
15528 (udp_socket_register): Likewise.
15529 (grub_net_udp_close): Likewise.
15530 (grub_net_recv_udp_packet): Check checksum.
15531 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15532 * include/grub/misc.h (grub_memchr): New function.
15533 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15534 (grub_net_card_driver): Return buf in recv.
15535 (grub_net_slaac_mac_list): New struct.
15536 (grub_network_level_protocol_id): Add ipv6.
15537 (grub_net_network_level_addr): Likewise.
15538 (grub_net_network_level_net_addr): Likewise.
15539 (grub_net_app_protocol): Add seek.
15540 (grub_net_socket): Removed.
15541 (grub_net_sockets): Likewise.
15542 (grub_net_socket_register): Likewise.
15543 (grub_net_socket_unregister): Likewise.
15544 (FOR_NET_SOCKETS): Likewise.
15545 (grub_net_add_addr): Add const.
15546 (GRUB_NET_BOOTP_*): New enum.
15547 (grub_net_addr_cmp): New proto.
15548 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15549 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15550 (grub_net_hwaddr_to_str): NEw proto.
15551 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15552 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15553 (grub_dns_init): New proto.
15554 (grub_dns_fini): Likewise.
15555 (grub_net_tcp_retransmit): Likewise.
15556 (grub_net_link_layer_add_address): Likewise.
15557 (grub_net_link_layer_resolve_check): Likewise.
15558 (grub_net_link_layer_resolve): Likewise.
15559 (grub_net_dns_lookup): Likewise.
15560 (grub_net_add_dns_server): Likewise.
15561 (grub_net_remove_dns_server): Likewise.
15562 (GRUB_NET_TRIES): New const.
15563 (GRUB_NET_INTERVAL): Likewise.
15564 * include/grub/net/arp.h: Mostly rewritten.
15565 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15566 * include/grub/net/ip.h: Mostly rewritten.
15567 * include/grub/net/netbuff.h: Indent.
15568 * include/grub/net/tcp.h: New file.
15569 * include/grub/net/udp.h: Mostly rewritten.
15570 * include/grub/priority_queue.h: New file.
15571 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15572 (grub_swap_bytes64_compile_time): Likewise.
15573 (grub_cpu_to_be16_compile_time): Likewise.
15574 (grub_cpu_to_be32_compile_time): Likewise.
15575 (grub_cpu_to_be64_compile_time): Likewise.
15576 (grub_be_to_cpu64_compile_time): Likewise.
15577
215c1800
VS
155782011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15579
15580 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15581 UINT_TO_PTR with cast.
15582
c17e546c
VS
155832011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15584
15585 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15586 don't use them.
15587
ff6b18b6
VS
155882011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15589
15590 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15591 already there.
15592
70ffcc93
VS
155932011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15594
15595 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15596 confusing ipxe.
15597
e5f4d260
VS
155982011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15599
15600 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15601 Add missing const attribute.
15602 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15603 Likewise.
15604 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15605 Likewise.
15606
8e54b4b7
VS
156072011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15608
15609 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15610 misaligned access.
15611 (serpent_setkey): Likewise.
15612 (serpent_encrypt_internal): Likewise.
15613 (serpent_decrypt_internal): Likewise.
15614 (serpent_encrypt): Don't put an alignment-increasing cast.
15615 (serpent_decrypt): Likewise.
15616 (serpent_test): Likewise.
15617
813c0a2b
VS
156182011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15619
15620 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15621
f2b60fbd
VS
156222011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15623
15624 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15625
15626 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15627 grub_addr_t casts.
15628 (PTR_TO_UINT64): Likewise.
15629 (PTR_TO_UINT32): Likewise.
15630
5ef5c511
VS
156312011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15632
15633 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15634 because of stack.
15635 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15636 limit.
15637
c476e6df
VS
156382011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15639
15640 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15641 text_width > available width a bit more gracefully.
15642
384ad7cc
VS
156432011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15644
15645 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15646 current address calculation.
15647
96f8caf8
VS
156482011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15651 stack.
15652 (encode_block): Likewise.
15653
276b7a8b
VS
156542011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15655
15656 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15657 certainety.
15658
e3fd394a
VS
156592011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15660
15661 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15662 non-RS part to avoid RS messing with GDT.
15663 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15664 Increase to suit in realmode routines.
15665
156662011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15667
15668 * grub-core/kern/i386/realmode.S: Increase alignment.
15669 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15670
ee9c2e7a
VS
156712011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15672
15673 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15674 be deterministic.
15675 (syndroms): Compute 0 syndrom.
15676 (rs_recover): Use 0 syndrom.
15677
7a7f7cc9
VS
156782011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15679
15680 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15681
a14b16d1
VS
156822011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15683
15684 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15685 brackets.
15686
9f59e9fc
VS
156872011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15688
ca1b552c
VS
15689 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15690 account.
15691 (get_top_pad): Likewise.
15692 (get_right_pad): Likewise.
15693 (get_bottom_pad): Likewise.
15694
156952011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15696
15697 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 15698
e739d698
VS
156992011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15700
15701 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15702 attribute as the structure isn't guaranteed to be properly aligned.
15703 (grub_efi_pci_device_path): Likewise.
15704 (grub_efi_pccard_device_path): Likewise.
15705 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15706 specify the size of `memory_type'.
15707 (grub_efi_vendor_device_path): Likewise.
15708 (grub_efi_controller_device_path): Likewise.
15709 (grub_efi_acpi_device_path): Likewise.
15710 (grub_efi_expanded_acpi_device_path): Likewise.
15711 (grub_efi_atapi_device_path): Likewise.
15712 (grub_efi_scsi_device_path): Likewise.
15713 (grub_efi_fibre_channel_device_path): Likewise.
15714 (grub_efi_1394_device_path): Likewise.
15715 (grub_efi_usb_device_path): Likewise.
15716 (grub_efi_usb_class_device_path): Likewise.
15717 (grub_efi_i2o_device_path): Likewise.
15718 (grub_efi_mac_address_device_path): Likewise.
15719 (grub_efi_ipv4_device_path): Likewise.
15720 (grub_efi_ipv6_device_path): Likewise.
15721 (grub_efi_infiniband_device_path): Likewise.
15722 (grub_efi_uart_device_path): Likewise.
15723 (grub_efi_vendor_messaging_device_path): Likewise.
15724 (grub_efi_hard_drive_device_path): Likewise.
15725 (grub_efi_cdrom_device_path): Likewise.
15726 (grub_efi_vendor_media_device_path): Likewise.
15727 (grub_efi_file_path_device_path): Likewise.
15728 (grub_efi_protocol_device_path): Likewise.
15729 (grub_efi_piwg_device_path): Likewise.
15730 (grub_efi_bios_device_path): Likewise.
15731
cb8f88ea
VS
157322011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15733
15734 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15735 (grub_ucs4_to_utf8_alloc): Likewise.
15736 (grub_ucs4_to_utf8): Likewise.
15737 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15738 (grub_ucs4_to_utf8_alloc): Likewise.
15739
309e5352
VS
157402011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15741
15742 AFFS never uses unicode.
15743
15744 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15745 (grub_latin1_to_utf8): New inline function.
15746 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15747
e7987e1b
VS
157482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15749
15750 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15751 overflow.
15752
efc2616e
VS
157532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15754
15755 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15756 (grub_squash_dirent_header): Likewise.
15757 (read_chunk): Don't double swap.
15758 (grub_squash_iterate_dir): Fix swap sizes.
15759
3c349f5a
VS
157602011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15761
15762 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15763
b453412d
VS
157642011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15765
15766 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15767 (grub_hfs_iterate_dir): Likewise.
15768
12e9d4d1
VS
157692011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15770
15771 Fix video on platforms where unaligned access is forbidden.
15772 Make several optimisations while on it.
15773
15774 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15775 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15776 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15777 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15778 Disable.
15779 (grub_video_fbblit_replace_16bit_1bit):
15780 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15781 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15782 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15783 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15784 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15785 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15786 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15787 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15788 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15789 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15790 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15791 (grub_video_fbblit_replace_index_RGB888): Likewise.
15792 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15793 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15794 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15795 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15796 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15797 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15798 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15799 Disable.
15800 (grub_video_fbblit_blend_XXX565_1bit):
15801 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15802 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15803 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15804 void *.
15805 * grub-core/video/fb/video_fb.c (common_blitter)
15806 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15807 (grub_video_fb_create_render_target_from_pointer)
15808 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15809 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15810 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15811 definition.
15812 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15813
ace96609
VS
158142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15815
15816 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15817 HH22 and HM10 relocations.
15818
fd261d73
VS
158192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15820
15821 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15822
e59b7857
VS
158232011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15824
15825 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15826 allocation succeeded.
15827
9b4baaa4
VS
158282011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15829
15830 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15831 argument a u8 pointer. All users updated.
15832 Handle unaligned buffers.
15833
dc713193
VS
158342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15835
15836 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15837 add_part to workaround compiler bug.
15838
30dd48c2
VS
158392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15840
15841 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15842
0c6087a8
VS
158432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15844
15845 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15846 Reserve alignment invariants.
15847 (grub_multiboot_load): Likewise.
15848 (retrieve_video_parameters): Likewise.
15849 (grub_multiboot_make_mbi): Likewise.
15850
c2e77777
VS
158512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15852
15853 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15854 incorrect pointer.
15855
b70b6d11
VS
158562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15857
15858 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15859 (grub_pata_pio_write): Likewise.
15860
02a2bf83
VS
158612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15862
15863 Add noreturn attributes and remove unreachable code.
15864
15865 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15866 code.
15867 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15868 code. Mark as noreturn.
15869 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15870 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15871 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15872 unreachable code.
15873 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15874 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15875 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15876 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15877 * include/grub/kernel.h (grub_main): Mark as noreturn.
15878 * include/grub/reader.h (grub_rescue_run): Likewise.
15879
2019d09e
VS
158802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15881
15882 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15883 redundant declaration.
15884
d1c501ee
VS
158852011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15886
15887 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15888 redundant declaration.
15889 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15890
61664420
VS
158912011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15892
15893 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15894 to ensure alignment.
15895 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15896 alignment. Ensure tmp alignment.
15897 (grub_cmd_hdparm): Ensure buf alignment.
15898 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15899 to ensure alignment.
15900 (grub_ata_dumpinfo): Ensure text alignment.
15901 (grub_atapi_identify): Preserve alignment invariant.
15902 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15903
0d51ee20
VS
159042011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15905
15906 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15907 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15908 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15909 * include/grub/misc.h (grub_reboot)
15910 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15911 (grub_halt) [__mips__]: Likewise.
15912
753ef8c1
VS
159132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15914
15915 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15916 Remove redundant declaration.
15917 (grub_mmap_get_post64): Likewise.
15918 (grub_mmap_get_upper): Likewise.
15919 (grub_mmap_get_lower): Likewise.
15920
85c85365
VS
159212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15922
15923 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15924 uint32_t * to ensure alignment.
15925 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15926
a23f2cc4
VS
159272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15928
93018f64
VS
15929 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15930 uint16_t * to ensure alignment.
15931 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15932 alignment.
15933
159342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15935
15936 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
15937 to ensure alignment.
15938 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15939
58acccd6
VS
159402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15941
15942 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15943 Handle unaligned pointers.
15944 (u32at): Likewise.
15945 (u64at): Likewise.
15946 (fixup): Use byte access instead of v16at.
15947 (find_attr): Fix imporper usage of v32at.
15948 (read_data): Likewise.
15949 (list_file): Handle byte-swapping and unaligned strings.
15950 (grub_ntfs_label): Likewise.
15951
9b05cad7
VS
159522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15953
15954 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15955 as it's not necessarily aligned.
15956
b3950b84
VS
159572011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15958
15959 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15960 redundant declaration.
15961 (grub_serial_init): Likewise.
15962 (grub_terminfo_init): Likewise.
15963
fcd232b7
VS
159642011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15965
15966 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15967 function.
15968 (ZAP_HASH_IDX): Likewise.
15969 (ZAP_LEAF_HASH_SHIFT): Likewise.
15970 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15971 (LEAF_HASH): Likewise.
15972 (ZAP_LEAF_NUMCHUNKS): Likewise.
15973 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15974 alignment invariants. Return pointer. All users updated.
15975 (ZAP_LEAF_ENTRY): Make into inline function.
15976 (NBBY): Removed.
15977 (xor): LIkewise.
15978 (xor_out): Use grub_crypto_xor.
15979 (dnode_get_path): Use grub_get_unaligned.
15980 (nvlist_find_value): Likewise.
15981 (grub_zfs_nvlist_lookup_uint64): Likewise.
15982 (grub_zfs_nvlist_lookup_string): Likewise.
15983 (get_nvlist_size): Likewise.
15984 (grub_zfs_open): Likewise.
15985 (fill_fs_info): Likewise.
15986 (grub_zfs_dir): Likewise.
15987 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15988 alignment invariants.
15989 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15990 necessarily aligned.
15991
f138623a
VS
159922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15993
15994 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15995
564840dc
VS
159962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15997
15998 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15999 arithmetic to conserve alignment invariants.
16000
9b40df20
VS
160012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16002
16003 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
16004 redundant declaration.
16005 (grub_efiemu_mm_obtain_request): Likewise.
16006 (grub_efiemu_prepare): Likewise.
16007
d1c930f9
VS
160082011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16009
16010 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
16011 to match types.
16012
4c5f3056
VS
160132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16014
16015 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
16016 case of aunaligned recptr.
16017 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
16018 alignment.
16019 (grub_hfsplus_btree_search): Handle unaligned index.
16020
728cba91
VS
160212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16022
16023 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
16024 to get freetag and skip.
16025
eb561f31
VS
160262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16027
16028 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
16029 array.
16030 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
16031 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
16032
20993fbb
VS
160332011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16034
16035 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
16036 name for checksum and fix allocation algorithm.
16037
1f313b94
VS
160382011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16039
16040 * include/grub/types.h (grub_properly_aligned_t): New type.
16041 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
16042 (grub_get_unaligned16): Add explicit casts.
16043 (grub_get_unaligned32): Likewise.
16044 (grub_get_unaligned64): Likewise.
16045 (grub_set_unaligned16): New function.
16046 (grub_set_unaligned32): Likewise.
16047
47ae27ec
VS
160482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16049
16050 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16051
78c2cd1c
VS
160522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16053
16054 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
16055 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
16056 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
16057
53072f9b
VS
160582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16059
16060 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16061 conditionals.
16062
055dc239
VS
160632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16064
16065 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16066 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16067
496bd074
VS
160682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16069
16070 Unify and improve RAID and crypto xor.
16071
16072 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16073 changed to grub_crypto_xor
16074 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16075 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16076 Use bigger types when possible.
16077
ef6e4335
VS
160782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16079
16080 * grub-core/disk/raid.c (scan_devices): Fix condition.
16081
5d048bf2
VS
160822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16083
16084 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16085 Make name a const ptr.
16086
ee533335
VS
160872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16088
16089 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16090 first argument a const pointer.
16091 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16092 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16093 proto.
16094 (grub_children_iterate): Likewise.
16095 (grub_machine_mmap_iterate): Remove redundant declaration.
16096
cc8f3668
VS
160972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16098
16099 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16100 (grub_cmd_acpi) [!x86]: Disable EBDA.
16101
c5fc563a
VS
161022011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16103
16104 Enable UTF8 in gnulib regexp.
16105
16106 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16107 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16108 (isupper): Use grub_isupper.
16109 (isascii): New inline function.
16110 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16111 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16112 * grub-core/normal/charset.c (grub_utf8_process): New function.
16113 (grub_utf8_to_utf16): Use grub_utf8_process.
16114 (grub_encode_utf8_character): New function.
16115 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16116 * include/grub/charset.h (grub_utf8_process): New declaration.
16117 (grub_encode_utf8_character): Likewise.
16118 * include/grub/misc.h (grub_islower): New inline function.
16119 (grub_isupper): Likewise.
16120 (grub_strchrsub): Moved down to fix the definitions.
16121
0af2346f
VS
161222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16123
16124 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16125 specification.
16126
74dbd244
VS
161272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16128
16129 * include/grub/loader.h (grub_loader_register_preboot_hook):
16130 Use struct preboot * and not void * for handle. All users updated.
16131 (grub_loader_unregister_preboot_hook): Likewise.
16132
1bc8f60d
VS
161332011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16134
16135 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16136 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16137 UTF-16-BE. All users updated.
16138 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16139 (grub_hfsplus_iterate_dir): Likewise.
16140 (grub_hfsplus_label): Likewise.
16141
48d6e456
VS
161422011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16143
16144 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16145
bf3a3857
VS
161462011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16147
16148 Add missing const qualifiers.
16149
16150 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16151 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16152 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16153 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16154 (grub_lvm_check_flag): Likewise.
16155 * grub-core/efiemu/i386/coredetect.c
16156 (grub_efiemu_get_default_core_name): Likewise
16157 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16158 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16159 * grub-core/fs/ntfs.c (fixup): Likewise.
16160 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16161 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16162 (fzap_lookup): Likewise.
16163 (zap_lookup): Likewise.
16164 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16165 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16166 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16167 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16168 (grub_freebsd_add_meta_module): Likewise.
16169 (grub_cmd_freebsd_module): Likewise.
16170 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16171 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16172 (grub_xnu_writetree_get_size): Likewise.
16173 (grub_xnu_writetree_toheap_real): Likewise.
16174 (grub_xnu_find_key): Likewise.
16175 (grub_xnu_create_key): Likewise.
16176 (grub_xnu_create_value): Likewise.
16177 (grub_xnu_register_memory): Likewise.
16178 (grub_xnu_check_os_bundle_required): Likewise.
16179 (grub_xnu_scan_dir_for_kexts): Likewise.
16180 (grub_xnu_load_kext_from_dir): Likewise.
16181 * grub-core/normal/color.c (color_list): Likewise.
16182 * grub-core/normal/completion.c (current_word): Likewise.
16183 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16184 * grub-core/term/serial.c (grub_serial_find): Likewise.
16185 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16186 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16187 Likewise.
16188 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16189 (grub_freebsd_add_meta_module): Likewise.
16190 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16191 * include/grub/net.h (grub_net_card_driver): Likewise.
16192 (grub_net_card): Likewise.
16193 (grub_net_app_protocol): Likewise.
16194 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16195 * include/grub/serial.h (grub_serial_find): Likewise.
16196 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16197 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16198 (grub_xnu_create_value): Likewise.
16199 (grub_xnu_find_key): Likewise.
16200 (grub_xnu_scan_dir_for_kexts): Likewise.
16201 (grub_xnu_load_kext_from_dir): Likewise.
16202
16203 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16204 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16205 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16206 Moved from here ...
16207 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16208
112b4837
CW
162092011-11-28 Colin Watson <cjwatson@ubuntu.com>
16210
16211 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16212
49e891ac
VS
162132011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16214
16215 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16216 (read_device): Fix size calculation.
16217
fd258e5c
RM
162182011-11-25 Robert Millan <rmh@gnu.org>
16219
16220 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16221 (find_root_device_from_libzfs): Add zpool output parser to be used
16222 as fallback when libzfs isn't available.
16223
78845dc2
SG
162242011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16225
16226 * po/Makefile.in.in: Add missing escape-continuation.
16227
adac5211
VS
162282011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16229
16230 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16231
10b64f1c
VS
162322011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16233
16234 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16235
bb416954
VS
162362011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16237
16238 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16239
bdfe9eeb
VS
162402011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16241
16242 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16243
581ffa8a
VS
162442011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16245
16246 * grub-core/lib/adler32.c: Add missing license specification.
16247 * grub-core/lib/crc64.c: Likewise.
16248 * grub-core/loader/i386/pc/plan9.c: Likewise.
16249 * grub-core/partmap/plan.c: Likewise.
16250
2536cf64
LK
162512011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16252
16253 Add facility to debug GRUB with gdb under qemu.
16254
16255 * grub-core/gdb_grub.in: New file.
16256 * grub-core/gmodule.pl.in: Likewise.
16257 * grub-core/Makefile.core.def (gmodule.pl): New script.
16258 (gdb_grub): Likewise.
16259
bc108a4a
VS
162602011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16261
16262 * util/grub-mount.c (argp_parser): Accept relative pathes.
16263 * util/grub-fstest.c (argp_parser): Likewise.
16264
111c1778
VS
162652011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16266
16267 Plan9 support.
16268
16269 * Makefile.util.def (libgrubmods): Add
16270 grub-core/partmap/plan.c.
16271 * docs/grub.texi: Notice Plan9 support.
16272 * grub-core/Makefile.core.def (plan9): New module.
16273 (part_plan): Likewise.
16274 * grub-core/loader/i386/pc/plan9.c: New file.
16275 * grub-core/partmap/plan.c: Likewise.
16276 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16277 define.
16278 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16279 * include/grub/mm.h (grub_extend_alloc): New inline function.
16280
c30be3b6
VS
162812011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16282
16283 Make Reed-Solomon faster by using power of generator representation of
16284 GF(256)*.
16285
16286 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16287 (gf_double_t): Likewise.
16288 (gf_invert): Removed.
16289 (gf_powx): New array.
16290 (gf_powx_inv): Likewise.
16291 (scratch): Move higher.
16292 (gf_reduce): Removed.
16293 (gf_mul): Use powx.
16294 (gf_invert): Likewise.
16295 (init_inverts): Replaced with ...
16296 (init_powx): ...this. All users updated.
16297 (pol_evaluate): Replace multiplications with additions.
16298 (rs_encode): Likewise.
16299 (gauss_eliminate): Call gf_invert.
16300 (grub_reed_solomon_add_redundancy): Call init_powx.
16301 (grub_reed_solomon_recover): Call init_powx unconditionally.
16302
fa5aeffc
VS
163032011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16304
16305 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16306
a346b81c
VS
163072011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16308
16309 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16310 disk->partiton for safety.
16311
d89ee414
VS
163122011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16313
16314 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16315 Fix a memory leak.
16316 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16317
91ee7b6d
VS
163182011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16319
16320 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16321
91e5a33d
VS
163222011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16323
16324 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16325
9edd7be2
VS
163262011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16327
16328 Fix spaces handling in proc/self/mountinfo.
16329
16330 * util/getroot.c (unescape): New function.
16331 (grub_find_root_device_from_mountinfo): Use unescape.
16332
ba102053
VS
163332011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16334
16335 Support ZFS embedding.
16336
16337 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16338 (grub_zfs_fs): Register grub_zfs_embed.
16339
aa94b870
VS
163402011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16341
16342 Fix MIPS compilation.
16343
16344 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16345 * include/grub/offsets.h: Rename decompressor fields from
16346 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16347 * util/grub-mkimage.c (image_targets): Use new names.
16348
5fbdac14
VS
163492011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16350
16351 Defer multiboot device parsing until we're in compressed part.
16352
16353 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16354 bsd_part. setdevice has fallen into disuse.
16355 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16356 (bsd_part): Likewise.
16357 (boot_dev): New variable.
16358 (multiboot_trampoline): Don't parse multiboot device.
16359 Pass multiboot device in %edx.
16360 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16361 grub_boot_device.
16362 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16363 Likewise.
16364 * grub-core/kern/i386/pc/startup.S: Save edx.
16365 (grub_boot_drive): Removed.
16366 (grub_install_dos_part): Likewise.
16367 (grub_install_bsd_part): Likewise.
16368 (grub_boot_device): New variable.
16369 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16370 (grub_install_bsd_part): Likewise.
16371 (grub_boot_drive): Likewise.
16372 (grub_boot_device): New variable.
16373 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16374 Removed.
16375 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16376 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16377 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16378 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16379 * util/grub-install.in: Remove redundant condition.
16380
691cbb58
VS
163812011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16382
16383 Fix bug introduced by previous commit.
16384
16385 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16386
60240b8b
VS
163872011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16388
16389 Use decompressors framework on i386-pc. It increases core size
16390 by 46 bytes but improves compatibility and maintainability.
16391
16392 * grub-core/Makefile.core.def (lzma_decompress): New image.
16393 (kernel): Add i386_pc_ldflags.
16394 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16395 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16396 to real_to_prot, prot_to_real and device info.
16397 * include/grub/offsets.h: Renamed decompressor offsets.
16398 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16399 (image_target_desc): Remove raw_size and rename decompressor fields.
16400 (compress_kernel): Handle lzma.
16401 (generate_image): Handle decompressors on i386-pc.
16402
e9d3421c
VS
164032011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16404
16405 * configure.ac: Add -fno-asynchronous-unwind-tables.
16406
2b23074a
VS
164072011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16408
16409 Move assembly code to C by using intwrap. It increases core size
16410 by 88 bytes but improves compatibility and maintainability.
16411
16412 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16413 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16414 ... here. Translated to C.
16415 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16416 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16417 ... here. Translated to C.
16418 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16419 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16420 ... here. Translated to C.
16421 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16422 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16423 ... here. Translated to C.
16424 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16425 * grub-core/term/i386/pc/console.c (grub_console_cls):
16426 ... here. Translated to C.
16427 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16428 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16429 ... here. Translated to C.
16430 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16431 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16432 Translated to C.
16433 * grub-core/term/i386/pc/console.c (int10_9): New function.
16434 (grub_console_putchar): Likewise.
16435 * include/grub/i386/pc/console.h: Removed the not anymore shared
16436 functions.
16437
678f4b67
VS
164382011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16439
16440 Move grub_chainloader_real_boot out of the kernel.
16441
16442 * grub-core/Makefile.am: Remove machine/loader.h.
16443 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16444 Removed.
16445 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16446 variable.
16447 (grub_relocator16_keep_a20_enabled): Likewise.
16448 (grub_relocator16_boot): Fill new variables.
16449 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16450 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16451 relocator.
16452 (grub_chainloader_unload): Likewise.
16453 (grub_chainloader_cmd): Likewise.
16454 * include/grub/i386/pc/loader.h: Removed.
16455 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16456 and esi. All initialisers updated.
16457
4626edf6
VS
164582011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
164592011-11-12 Colin Watson <cjwatson@ubuntu.com>
16460
16461 * Makefile.util.def (grub-mount): New util.
16462 * .bzrignore: Add grub-mount.
16463 * configure.ac: Check for fuse and enable grub-mount if available.
16464 * docs/man/grub-mount.h2m: New file.
16465 * util/grub-mount.c: Likewise.
16466
10f0117b
VS
164672011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16468
16469 * grub-core/commands/efi/fixvideo.c: Gettextize.
16470 * grub-core/commands/hashsum.c: Likewise.
16471 * grub-core/commands/i386/cmostest.c: Likewise.
16472 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16473 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16474 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16475 * grub-core/commands/lsmmap.c: Likewise.
16476 * grub-core/commands/menuentry.c: Likewise.
16477 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16478 * grub-core/commands/setpci.c: Likewise.
16479 * grub-core/loader/i386/bsd.c: Likewise.
16480 * grub-core/loader/i386/linux.c: Likewise.
16481 * util/getroot.c: Likewise.
16482 * util/grub-editenv.c: Likewise.
16483 * util/grub-fstest.c: Likewise.
16484 * util/grub-mkfont.c: Likewise.
16485 * util/grub-mkimage.c: Likewise.
16486 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16487 * util/grub-pe2elf.c: Likewise.
16488 * util/grub-probe.c: Likewise.
16489 * util/grub-setup.c: Likewise.
16490 * util/ieee1275/ofpath.c: Likewise.
16491 * util/misc.c: Likewise.
16492 * util/raid.c: Likewise.
16493
566f779b
RM
164942011-11-11 Robert Millan <rmh@gnu.org>
16495
16496 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16497 __attribute__((unused)) from `os_dev', which *is* being used.
16498
b50787de
VS
164992011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16500
16501 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16502 forgotten define.
16503 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16504 GRUB_IA64_DL_GOT_ALIGN.
16505 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16506 GRUB_IA64_DL_TRAMP_ALIGN.
16507
119d11c8
VS
165082011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16509
16510 Replace grub_fatal with normal errors in i386 linux loader.
16511
16512 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16513 (allocate_pages): Check find_efi_mmap_size return value.
16514 (grub_e820_add_region): Return error.
16515 (grub_linux_boot): Check mmap return value.
16516
6e0632e2
VS
165172011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16518
16519 * grub-core/commands/acpihalt.c: Gettextized.
16520 * grub-core/commands/cacheinfo.c: Likewise.
16521 * grub-core/commands/cmp.c: Likewise.
16522 * grub-core/commands/efi/loadbios.c: Likewise.
16523 * grub-core/commands/gptsync.c: Likewise.
16524 * grub-core/commands/ieee1275/suspend.c: Likewise.
16525 * grub-core/commands/legacycfg.c: Likewise.
16526 * grub-core/commands/memrw.c: Likewise.
16527 * grub-core/commands/minicmd.c: Likewise.
16528 * grub-core/commands/parttool.c: Likewise.
16529 * grub-core/commands/time.c: Likewise.
16530 * grub-core/commands/videoinfo.c: Likewise.
16531 * grub-core/disk/geli.c: Likewise.
16532 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16533 * grub-core/disk/luks.c: Likewise.
16534 * grub-core/disk/lvm.c: Likewise.
16535 * grub-core/font/font_cmd.c: Likewise.
16536 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16537 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16538 * grub-core/gfxmenu/view.c: Likewise.
16539 * grub-core/kern/emu/hostdisk.c: Likewise.
16540 * grub-core/kern/emu/main.c: Likewise.
16541 * grub-core/kern/emu/misc.c: Likewise.
16542 * grub-core/kern/emu/mm.c: Likewise.
16543 * grub-core/kern/mips/arc/init.c: Likewise.
16544 * grub-core/kern/mips/loongson/init.c: Likewise.
16545 * grub-core/kern/partition.c: Likewise.
16546 * grub-core/lib/i386/halt.c: Likewise.
16547 * grub-core/lib/mips/arc/reboot.c: Likewise.
16548 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16549 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16550 * grub-core/loader/i386/xnu.c: Likewise.
16551 * grub-core/loader/multiboot.c: Likewise.
16552 * grub-core/net/bootp.c: Likewise.
16553 * grub-core/net/net.c: Likewise.
16554 * grub-core/normal/term.c: Likewise.
16555 * grub-core/partmap/bsdlabel.c: Likewise.
16556 * grub-core/parttool/msdospart.c: Likewise.
16557 * grub-core/term/gfxterm.c: Likewise.
16558 * grub-core/term/terminfo.c: Likewise.
16559 * grub-core/video/i386/pc/vbe.c: Likewise.
16560 * util/grub-menulst2cfg.c: Likewise.
16561 * util/grub-mkdevicemap.c: Likewise.
16562 * util/grub-mklayout.c: Likewise.
16563 * util/grub-mkrelpath.c: Likewise.
16564 * util/grub-script-check.c: Likewise.
16565 * util/ieee1275/grub-ofpathname.c: Likewise.
16566 * util/resolve.c: Likewise.
16567
073aa7a9
VS
165682011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16569
16570 Support %1$d syntax.
16571
16572 * tests/printf_unit_test.c: New file.
16573 * Makefile.util.def (printf_test): New test.
16574 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16575
c76b5417
VS
165762011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16577
16578 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16579 fix.
16580
df067ad1
VS
165812011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16582
16583 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16584 dprintf.
16585 * grub-core/font/font.c (grub_font_load): Likewise.
16586
5b289bc5
VS
165872011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16588
16589 * util/grub-macho2img.c: Add comment concerning gettext.
16590 * grub-core/lib/legacy_parse.c: Likewise.
16591
c1860f87
VS
165922011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16593
16594 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16595 (grub_xvasprintf): Likewise.
16596
d35d0d37
VS
165972011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16598
16599 Add const keyword to grub_env_get and gettextize week days.
16600
16601 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16602 (grub_read_hook_datetime): Return const char *.
16603 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16604 updated.
16605 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16606 Mark for gettext.
16607 (grub_get_weekday_name): Return const char *. Call gettext.
16608 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16609 char * and len as the argument. All users updated.
16610 (grub_script_argv_split_append): Receive const char *.
16611 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16612 * include/grub/env.h (grub_env_get): Likewise.
16613 (grub_env_read_hook_t): Return const char *.
16614 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16615 (grub_script_argv_split_append): Likewise.
16616
9aed8a71
VS
166172011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16618
16619 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16620
067fdf00
VS
166212011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16622
16623 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16624 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16625
a8bd9d39
VS
166262011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16627
16628 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16629 Fix prototype.
16630
f7ce5baf
VS
166312011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16632
16633 Fix mips compilation.
16634
16635 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16636 normal decoder.
16637 (hashes): Use in embed decoder as well (for sizes).
16638 (dec_stream_header): Fix embed decompressor logic.
16639 (dec_stream_footer): Likewise.
16640
9bb182f3
VS
166412011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16642
16643 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16644 an error and not a fatal on unrecognised relocation types.
16645
63a9e6f6
VS
166462011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16647
16648 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16649 Issue error rather than printf on unknown arguments.
16650
4c458569
VS
166512011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16652
16653 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16654 Make buf a const.
16655
e2d22baf
VS
166562011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16657
16658 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16659 Fix module name.
16660
53dc8590
VS
166612011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16662
16663 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16664 leftover debug printf.
16665
6c189294
VS
166662011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16669
f7688369
VS
166702011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16671
16672 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16673 A stylistic fix.
16674
11a775a3
VS
166752011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16676
16677 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16678
33f784e8
SL
166792011-11-10 Shea Levy <slevy@tieronedesign.com>
16680
16681 Allow all modules to perform serial IO
16682
16683 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16684 * include/grub/serial.h (grub_serial_port_configure): New inline
16685 function.
16686 (grub_serial_port_fetch): Likewise.
16687 (grub_serial_port_put): Likewise.
16688 (grub_serial_port_fini): Likewise.
16689 (grub_serial_find): New proto.
16690
f6276525
VS
166912011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16692
16693 Put symlink at the end of the node and fix a potential
16694 memory corruption.
16695
16696 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16697 Make symlink into an array.
16698 (set_rockridge): Set have_symlink and alloc_dirents.
16699 (grub_iso9660_read_symlink): Use new layout.
16700 (grub_iso9660_iterate_dir): Fix memory corruption.
16701 Use new layout.
16702 (grub_iso9660_dir): Set have_symlink.
16703 (grub_iso9660_open): Likewise.
16704
c3591189
VS
167052011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16706
16707 Remove local keyword.
16708
16709 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16710 (version_test_gt): Likewise.
16711 (version_find_latest): Likewise.
16712 (gettext_printf): Likewise.
16713 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16714
cb544caa
VS
167152011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16716
16717 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16718
45bd824d
VS
167192011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16720
16721 Fix ZFS memory and resource leaks.
16722
16723 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16724 All users updated.
16725 Free type on exit.
16726 (fill_vdev_info): New parameter inserted. All users updated.
16727 (check_pool_label): Likewise.
16728 (scan_disk): Likewise.
16729 (scan_devices): Close non-inserted disks.
16730 (fzap_iterate): Free l.
16731 (unmount_device): Free children descripto memory.
16732
ad9a2f44
VS
167332011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16734
16735 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16736 argument (access out of bounds).
16737
6b68db81
VS
167382011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16739
16740 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16741 >= 6 drives.
16742
28840fda
VS
167432011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16744
16745 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16746 Fix declaration.
16747
8a5a3a5b
VS
167482011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16749
16750 Fix several memory leaks.
16751
16752 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16753 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16754 (grub_cpio_dir): Likewise.
16755 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16756 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16757 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16758 (grub_romfs_label): Likewise.
16759 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16760 (squash_unmount): New function.
16761 (grub_squash_dir): Fix memory leak.
16762 (grub_squash_open): Likewise.
16763 (grub_squash_read): Likewise.
16764 (grub_squash_mtime): Likewise.
16765 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16766 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16767 * util/grub-fstest.c (fstest): Likewise.
16768
57b01250
VS
167692011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16770
16771 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16772 avoid accessing beyond the array.
16773
19e81ba7
VS
167742011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16775
16776 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16777
52b656c0
VS
167782011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16779
16780 Several AFFS fixes.
16781
16782 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16783 (GRUB_AFFS_FLAG_FFS): Removed.
16784 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16785 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16786 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16787 (grub_fshelp_node): Make block 32-bit.
16788 Add block_cache and last_block_cache.
16789 (grub_affs_read_block): Fill and use block cache.
16790 (grub_affs_read_file): Removed.
16791 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16792 boot block.
16793 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16794 safety.
16795 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16796 space.
16797 (grub_affs_close): Free block cache.
16798 (grub_affs_read): Use grub_fshelp_read_file directly.
16799
438a746a
VS
168002011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16801
16802 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16803 with no error set.
16804
49a45021
VS
168052011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16806
16807 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16808 used variable.
16809 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16810 Likewise.
16811
3ae17eb8
VS
168122011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16813
16814 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16815
16816 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16817 byteswap when needed.
16818
27610c38
VS
168192011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16820
16821 Fix FreeBSD compilation.
16822
16823 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16824 to avoid circular dependency.
16825 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16826 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16827 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16828
4a19b601
VS
168292011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16830
16831 Fix ZFS crypto error types.
16832
16833 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16834 (grub_gcm_decrypt): Likewise.
16835 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16836 from PBKDF2.
16837
958ee221
VS
168382011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16839
16840 Illumos support.
16841
16842 * Makefile.util.def (10_illumos): New script.
16843 * configure.ac: Set COND_HOST_ILLUMOS.
16844 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16845 Support Illumos calls.
16846 (find_partition_start) [__sun__]: Likewise.
16847 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16848 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16849 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16850 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16851 device.
16852 * util/grub-probe.c (probe) [__sun__]: Do character check.
16853 * util/grub.d/10_illumos.in: New file.
16854
cac14fb6
VS
168552011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16856
16857 Support escaped commas in hostdisk.
16858
16859 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16860 (find_grub_drive): Use unescape_cmp.
16861 (make_device_name): Escape commas.
16862
78e08dc3
VS
168632011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16864
16865 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16866
9f421dd1
VS
168672011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16868
16869 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16870 variable.
16871
ed64e9e2
VS
168722011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16873
16874 Support trampoline jumps on powerpc.
16875
16876 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16877 __ia64__ path.
16878 (grub_dl_load_segments): Set mod->sz.
16879 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16880 segments.
16881 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16882 (jump): Likewise.
16883 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16884 function.
16885 (trampoline): New struct.
16886 (trampoline_template): New const.
16887 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16888 * include/grub/dl.h (grub_dl): Add sz element.
16889 [__powerpc__]: Follow __ia64__.
16890 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16891 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16892 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16893 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16894
3084ede4
VS
168952011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16896
16897 ZFS crypto support.
16898
16899 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16900 * grub-core/Makefile.core.def (zfscrypt): New module.
16901 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16902 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16903 it. All users updated.
16904 (grub_zfs_decrypt): New var.
16905 (grub_zfs_load_key): Likewise.
16906 (zio_checksum_functions): Add SHA256+MAC.
16907 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16908 (zio_read): Handle encrypted blocks.
16909 (zap_verify): Remove incorrect check.
16910 (fzap_iterate): Handle non-standard fzap.
16911 (zap_iterate): Likewise.
16912 (zap_iterate_u64): New function.
16913 (dnode_get_fullpath): Load keys.
16914 * grub-core/fs/zfs/zfscrypt.c: New file.
16915 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16916 (grub_crypto_ecb_encrypt): Make input const.
16917 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16918 (grub_crypto_ecb_encrypt): Make input const.
16919 (GRUB_CIPHER_AES): New macro.
16920 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16921 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16922 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16923 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16924 prefix. All users updated.
16925 (grub_zfs_add_key): New proto.
16926 (grub_zfs_decrypt): Likewise.
16927 (grub_zfs_load_key): Likewise.
16928 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16929 * util/grub-fstest.c (options): Add -K option.
16930 (argp_parser): Likewise.
16931
b632b404
VS
169322011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16933
16934 Support zle compression on ZFS.
16935
16936 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16937 (decomp_table): Add zle.
16938 * include/grub/zfs/zio.h (zio_compress): Add zle.
16939
c7ba4f69
VS
169402011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16941
16942 Support BtrFS embedding.
16943
16944 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16945 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16946 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16947 * util/grub-setup.c (setup): Use fs embedding if available.
16948 Add additional sanity check.
16949
455377d9
VS
169502011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16951
16952 * util/grub-install.in: Fix condition for config_opt.
16953
c2fd16ca
VS
169542011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16955
16956 Support third redundancy strip on raidz3.
16957
16958 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16959 Return error on singularity. All users updated.
16960 (read_device): Don't stop on 3rd failure on raidz3.
16961
8622923b
VS
169622011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16963
16964 Support case-insensitive ZFS subvolumes.
16965
16966 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16967 All users updated.
16968 (zap_hash): Likewise.
16969 (name_cmp): New function.
16970 (zap_leaf_array_equal): New parameter case_insensitive.
16971 All users updated.
16972 (zap_leaf_lookup): Likewise.
16973 (fzap_lookup): Likewise.
16974 (zap_lookup): Likewise.
16975 (dnode_get_path): New parameter case_insensitive. Retrieve case
16976 sensitiviness of a volume. All users updated.
16977 (dnode_get_fullpath): New parameter case_insensitive.
16978 All users updated.
16979 (grub_zfs_dir): Set info.case_insensitiveness.
16980
95f2e860
VS
169812011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16982
16983 Support second redundancy strip on raidz(2,3).
16984
16985 * grub-core/fs/zfs/zfs.c (powx): New array.
16986 (powx_inv): Likewise.
16987 (poly): New const.
16988 (xor_out): New function.
16989 (gf_mul): Likewise.
16990 (recovery): Likewise.
16991 (read_device): Use second redundancy strip.
16992
11ee4389
VS
169932011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16994
16995 Use a power of generator representation of GF(256) multiplication group
16996 to save space time and complexity.
16997
16998 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16999 (raid6_table2): Likewise.
17000 (powx): New array.
17001 (powx_inv): Likewise.
17002 (poly): New const.
17003 (grub_raid_block_mul): Replace with ...
17004 (grub_raid_block_mulx): ...this.
17005 (grub_raid6_init_table): Rewritten.
17006 (grub_raid6_recover): Use power of generator representation.
17007
09e2763f
VS
170082011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17009
17010 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
17011 for the right device.
17012
8bec9a28
VS
170132011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17014
17015 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
17016 expected by grub-mkimage and it's more clear since there is no implicit
17017 padding.
17018
dbd3a32e
VS
170192011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17020
17021 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
17022 disk.
17023 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17024
182c872a
PMH
170252011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
17026
17027 * util/grub-mkrescue.in: Fix handling xorriso option.
17028
1e51cabd
VS
170292011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17030
17031 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
17032 NULL.
17033
9cc3581d 170342011-11-03 crocket <crockabiscuit@gmail.com>
17035
17036 * util/grub.d/10_linux.in: Add Slackware initrd naming.
17037
158dc1ea
VS
170382011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17039
17040 XZ CRC64 and SHA256 support.
17041
17042 * Makefile.util.def (libgrubmods): Add crc64.c.
17043 * grub-core/Makefile.core.def (crc64): New module.
17044 * grub-core/lib/crc64.c: New file.
17045 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
17046 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
17047 Fix the type.
17048 (MAX_HASH_SIZE): New define.
17049 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
17050 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
17051 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17052 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17053 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
17054 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
17055 Handle non-crc32 hashes.
17056 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
17057 (dec_stream_header): Handle non-crc32 hashes.
17058 (dec_stream_footer): Likewise.
17059 (dec_block_header): Likewise.
17060 (dec_main): Likewise.
17061 (xz_dec_init): Likewise.
17062 (xz_dec_reset): Likewise.
17063 (xz_dec_end): Likewise.
17064 * util/import_gcry.py: Add CRC64 line.
17065
9d9b3d2f
VS
170662011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17067
17068 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17069 as well.
17070
7d0ac931
VS
170712011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17072
17073 Make reiserfs label retrieval similar to other *_label functions.
17074
17075 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17076 (REISERFS_MAX_LABEL_LENGTH): Removed.
17077 (REISERFS_LABEL_OFFSET): Likewise.
17078 (grub_reiserfs_label): Rewritten.
17079
170802011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17081
17082 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17083 field.
17084
cf5ba824
VS
170852011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17086
17087 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17088
17744004
VS
170892011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17090
17091 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17092 drive failure on both raidz and raidz2.
17093
aca5aefc
VS
170942011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17095
17096 Fix RAIDZ(2) for >= 5 devices.
17097
17098 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17099 asize argument. All users updated.
17100
ce8ca56e
VS
171012011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17102
17103 Fix RAIDZ(2).
17104
17105 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17106 (fill_vdev_info_real): Set ashift.
17107 (read_device): Rewrite RAIDZ part based on reverse engineering.
17108
7c01e783
VS
171092011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17110
17111 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17112 don't report potentially unavialiable fields in debug output.
17113 (find_path): Fix double-free and memory leak.
17114
ce109e84
VS
171152011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17116
17117 Read label on UFS1.
17118
17119 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17120 (grub_ufs_fs): Always set .label.
17121
87661123
VS
171222011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17123
17124 Use shifts in UFS.
17125
17126 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17127 (grub_ufs_data): New field log2_blksz.
17128 (grub_ufs_read_file): Use shifts.
17129 (grub_ufs_mount): Check block size and logarithm it.
17130
46bc1dc2
VS
171312011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17132
17133 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17134 long symlinks.
17135
19ee2987
VS
171362011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17137
17138 Handle symlinks and long names on tar and cpio.
17139
17140 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17141 (ATTR_FILE): Likewise.
17142 (ATTR_DIR): Likewise.
17143 (ATTR_LNK): Likewise.
17144 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17145 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17146 L and K entries.
17147 (grub_cpio_mount): Zero-fill data.
17148 (handle_symlink): New function.
46bc1dc2
VS
17149 (grub_cpio_dir): Handle symlinks.
17150 (grub_cpio_open): Likewise.
17151 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 17152
c83a08d8
VS
171532011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17154
17155 Fix iso9660 filename limitations and fix memory leaks.
17156
17157 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17158 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17159
45cdd3ea
VS
171602011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17161
17162 Fix JFS file name length limitations.
17163
17164 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17165 (grub_jfs_diropen): Fix maximum filename length.
17166 (grub_jfs_getent): Fix filename length.
17167 (grub_jfs_lookup_symlink): Fix size checks.
17168
94ef05c2
VS
171692011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17170
17171 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17172 string.
17173
785ab8c7
VS
171742011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17175
eb0b6b45
VS
17176 Leverage BFS implementation to read AFS.
17177
17178 * Makefile.util.def (libgrubmods): Add afs.c.
17179 * grub-core/Makefile.core.def (afs): New module
17180 * grub-core/fs/afs.c: New file.
17181 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17182
171832011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17184
17185 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 17186
c4a1628f
VS
171872011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17188
17189 * grub-core/fs/bfs.c: Run indent.
17190
5825b379
VS
171912011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17192
17193 BFS implementation based on the specification.
17194
17195 * grub-core/fs/bfs.c: New file.
17196 * Makefile.util.def (libgrubmods): Add bfs.c.
17197 * grub-core/Makefile.core.def (bfs): New module.
17198
42b2a706
VS
171992011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17200
17201 * util/grub-fstest.c (cmd_cp): Clarify error message.
17202 (cmd_cmp): Likewise.
17203
61b99bfc
YB
172042011-10-30 Yves Blusseau <blusseau@zetam.org>
17205
17206 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17207 and befs_be.
17208
faba3d16
VS
172092011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17210
17211 Remove afs and befs because of copyright problem.
17212
17213 * grub-core/fs/afs.c: Removed.
17214 * grub-core/fs/afs_be.c: Removed.
17215 * grub-core/fs/befs.c: Removed.
17216 * grub-core/fs/befs_be.c: Removed.
17217 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17218 * grub-core/Makefile.core.def (afs): Removed.
17219 (afs_be): Likewise.
17220 (befs): Likewise.
17221 (befs_be): Likewise.
17222
c39224b0
VS
172232011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17224
17225 Prefer rockridge over Joliet.
17226
17227 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17228 to ...
17229 (set_rockridge): ... here.
17230 (grub_iso9660_mount): Check rockridge on the primary label when
17231 discovering. Ignore Joliet if Rockridge is present.
17232
e551115a
VS
172332011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17234
17235 Use shifts in nilfs2.
17236
17237 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17238 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17239 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17240 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17241 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17242 (grub_nilfs2_entries_per_block): Replaced with ...
17243 (grub_nilfs2_log_entries_per_block_log): ... this.
17244 (grub_nilfs2_blocks_per_group): Replaced with ...
17245 (grub_nilfs2_blocks_per_group_log): ... this.
17246 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17247 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17248 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17249 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17250 (grub_nilfs2_palloc_entry_offset): Replaced ...
17251 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17252 (grub_nilfs2_dat_translate): Use shifts.
17253 (grub_nilfs2_read_inode): Likewise.
17254 (GRUB_MOD_INIT): Ensure that logs are correct.
17255
564dd58c
VS
172562011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17257
17258 Use shifts in minix filesystem.
17259
17260 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17261 (GRUB_MINIX_ZONE2SECT): Likewise.
17262 (grub_minix_data): Replace block_size with log_block_size.
17263 (grub_minix_read_file): Use shifts.
17264 (grub_minix_mount): Check block size and take a logarithm.
17265
ed9ba06d
VS
172662011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17267
17268 Use shifts in squash4.
17269
17270 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17271 (squash_mount): Check block size and take logarithm.
17272 (direct_read): Use shifts.
17273
ad03fe76
VS
172742011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17275
17276 Correct befs block counting logic.
17277
17278 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17279 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17280 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17281 (grub_afs_read_inode): Use block_shift.
17282 (RANGE_SHIFT): New definition.
17283 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17284 unexpected conditions, use shifts and appropriate types.
17285 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17286
6563f63d
VS
172872011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17288
17289 * grub-core/disk/raid.c (scan_devices): Check partition.
17290 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17291
5b1ae25f
VS
172922011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17293
17294 Support BFS (befs) UUID.
17295
17296 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17297 (grub_afs_small_data_element_header): New struct.
17298 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17299 (grub_afs_read_attribute) [MODE_BFS]: New function.
17300 (grub_afs_iterate_dir): Allocate for complete inode.
17301 (grub_afs_mount): Likewise.
17302 (grub_afs_uuid) [MODE_BFS]: New function.
17303 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17304
f8d82408
VS
173052011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17306
17307 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17308 (zfs_unmount): Fix memory leak.
17309
5773fb64
VS
173102011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17311
17312 Support NTFS reparse points.
17313
17314 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17315 (symlink_descriptor): New struct.
17316 (grub_ntfs_read_symlink): New function.
17317 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17318 (grub_ntfs_open): Likewise.
17319
91c3fdde
VS
173202011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17321
17322 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17323
3be82e10
VS
173242011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17325
17326 fstest xnu_uuid subcommand.
17327
17328 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17329 grub-core/commands/xnu_uuid.c.
17330 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17331 (fstest): Handle xnu_uuid.
17332 (options): Document xnu_uuid.
17333 (argp_parser): Parse xnu_uuid.
17334
8e32442e
VS
173352011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17336
17337 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17338 -l argument. Add newline at the end if printing.
17339 (GRUB_MOD_INIT): Document -l.
17340
52a05075
VS
173412011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17342
17343 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17344
1869edb5
VS
173452011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17346
17347 ZFS multi-device and version 33 support.
17348
17349 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17350 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17351 (grub_zfs_data): Add multidev-ice-related fields.
17352 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17353 (dva_get_offset): Make dva const.
17354 (zfs_fetch_nvlist): New function.
17355 (fill_vdev_info_real): Likewise.
17356 (fill_vdev_info): Likewise.
17357 (check_pool_label): Likewise.
17358 (scan_disk): Likewise.
17359 (scan_devices): Likewise.
17360 (read_device): Likewise.
17361 (read_dva): Likewise.
17362 (zio_read_gang): Use read_dva.
17363 (zio_read_data): Likewise.
17364 (zap_leaf_lookup): Add missing endian conversion.
17365 (zap_verify): Add missing endian conversion. All users updated.
17366 (fzap_lookup): Likewise.
17367 (fzap_iterate): Likewise.
17368 (dnode_get_path): Handle SA bonus.
17369 (nvlist_find_value): Make input const. All users updated.
17370 (unmount_device): New function.
17371 (zfs_unmount): Use unmount_device.
17372 (zfs_mount): Use scan_disk.
17373 (zfs_mtime): New function.
17374 (grub_zfs_open): Handle system attributes.
17375 (fill_fs_info): Likewise.
17376 (grub_zfs_dir): Likewise.
17377 (grub_zfs_fs): Add mtime.
17378 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17379 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17380 (SA_MTIME_OFFSET): Likewise.
17381 (SA_SYMLINK_OFFSET): Likewise.
17382 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17383 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17384 (fstest): Support zfsinfo.
17385 (argp_parser): Likewise.
17386
186b4028
VS
173872011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17388
17389 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17390 error.
17391
173922011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
17393
17394 ZFS fixes.
17395
17396 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17397 sharing the same block. Iterate over correct number of indices.
17398 (dnode_get_path): Handle symlinks correctly.
17399
c0584900
VS
174002011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17401
17402 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17403
67e2bd71
VS
174042011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17405
17406 Read label on HFS+.
17407
17408 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17409 (grub_hfsplus_btree_search): Fix types.
17410 (grub_hfsplus_label): Implement.
17411
e9cc6b7b
VS
174122011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17413
17414 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17415
19832ddb
VS
174162011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17417
17418 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17419
66b40850
VS
174202011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17421
17422 Fix symlink handling on iso9660.
17423
17424 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17425 All users updated.
17426 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17427 (grub_iso9660_read_symlink): Moved most of code ...
17428 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17429
db821363
VS
174302011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17431
17432 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17433 Use union to avoid breaking strict-aliasing rules.
17434
e1211949
VS
174352011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17436
17437 Support multi-extent iso files.
17438
17439 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17440 Add node.
17441 (grub_fshelp_node): Revamp. All users updated.
17442 (FLAG_*): New enum.
17443 (read_node): New function.
17444 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17445 All users updated.
17446 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17447 (get_node_size): New function.
17448 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17449 entries.
17450 Fix memory leak on . and ..
17451 (grub_iso9660_read): Use read_node.
17452 (grub_iso9660_close): Free node.
17453
d4888031
VS
174542011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17455
17456 Fix tar 4G limit and handle paths containing dot.
17457
17458 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17459 (canonicalize): New function.
17460 (grub_cpio_find_file): Use canonicalize. Store offs in
17461 grub_disk_addr_t.
17462 (grub_cpio_dir): Use grub_disk_addr_t.
17463 (grub_cpio_open): Likewise.
17464
9f12e664
VS
174652011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17466
17467 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17468
17469 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17470 unused flags.
17471 (grub_squash_inode): Add long_file and block_size.
17472 (grub_squash_cache_inode): New struct.
17473 (grub_squash_dirent): Make types into enum.
17474 (SQUASH_TYPE_LONG_REGULAR): New type.
17475 (grub_squash_frag_desc): Add field size.
17476 (SQUASH_BLOCK_FLAGS): New enum.
17477 (grub_squash_data): Use grub_squash_cache_inode.
17478 (grub_fshelp_node): Make ino_chunk 64-bit.
17479 (read_chunk): Minor argument change. All users updated.
17480 (squash_mount): Use correct le_to_cpu.
17481 (grub_squash_open): Handle LONG_REGULAR.
17482 (direct_read): New function.
17483 (grub_squash_read_data): Handle blocks correctly.
17484
9f326fba
VS
174852011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17486
17487 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17488
f4d9b64b
VS
174892011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17490
17491 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17492
5bbd28b8
VS
174932011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17494
17495 Fix 2G limit on ZFS.
17496
17497 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17498 types.
17499 (uberblock_verify): Likewise.
17500 (dmu_read): Likewise.
17501 (grub_zfs_read): Likewise. Remove invalid cast.
17502
68c72069
VS
175032011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17504
17505 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17506 (grub_jfs_blkno): Fix incorrect shift.
17507 (grub_jfs_read_file): Use more appropriate types.
17508
6e536dc8
VS
175092011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17510
17511 Support triple indirect on minix2 and minix3.
17512
17513 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17514 Declare triple_indir_zone.
17515 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17516 indirect.
17517
e0864e7a
VS
175182011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17519
17520 Minix FS fixes.
17521
17522 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17523 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17524 Rename ctime to mtime. All users updated.
17525 (grub_minix_get_file_block): Fix types and double indirect computations.
17526
89481cab
VS
175272011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17528
17529 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17530 if no label is found.
17531 (grub_fat_iterate_dir): Fix file size type.
17532 (grub_fat_iterate_dir): Likewise.
17533
f646e143
VS
175342011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17535
17536 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17537 save some space.
17538 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17539 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17540
534d769e
VS
175412011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17542
17543 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17544
e084ba18
VS
175452011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17546
17547 * util/import_gcry.py: Accept space between # and include.
17548
3471ecdf
VS
175492011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17550
17551 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17552
124df5f6
VS
175532011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17554
17555 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17556
17557 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17558 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17559 yylex_strncpy.
17560 * grub-core/script/yylex.l: Add fine-grained #pragma.
17561
4defb8d5
VS
175622011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17563
17564 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17565 New inline function.
17566 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17567 Likewise.
17568 (memset) [GRUB_UTIL]: Likewise.
17569 (memcmp) [GRUB_UTIL]: Likewise.
17570
4e94ae65
VS
175712011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17572
17573 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17574 inline function rather than a define.
17575
18c575e5
VS
175762011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17577
17578 * util/grub-setup.c: Add missing include.
17579
f8bc22a8
VS
175802011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17581
17582 * util/ieee1275/grub-ofpathname.c: Add missing include.
17583
3ce69fc9
VS
175842011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17585
17586 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17587 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17588 Likewise.
17589
d1e293bb
VS
175902011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17591
17592 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17593 grub_memcmp usage.
17594
7a5c54a4
VS
175952011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17596
17597 * util/grub-install.in: Add datarootdir as per automake manual
17598 suggestion.
17599 * util/grub-mknetdir.in: Likewise.
17600
176012011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
17602
17603 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17604 suggestion.
17605 * util/grub.d/10_kfreebsd.in: Likewise.
17606 * util/grub.d/10_linux.in: Likewise.
17607 * util/grub.d/10_netbsd.in: Likewise.
17608 * util/grub.d/10_windows.in: Likewise.
17609 * util/grub.d/20_linux_xen.in: Likewise.
17610
766f7d08
VS
176112011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17612
17613 Remove redundant grub_kernel_image_size.
17614
17615 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17616 _edata and _start.
17617 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17618 the small code. It moves it only by few bytes but simplifies the code.
17619 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17620 _start.
17621 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17622 (grub_kernel_image_size): Removed.
17623 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17624 (grub_kernel_image_size): Removed.
17625 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17626 compiled with Apple toolchain.
17627 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17628 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17629 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17630 (grub_total_module_size): Likewise.
17631 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17632 Removed.
17633 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17634 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17635 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17636 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17637 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17638 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17639 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17640 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17641 Removed.
17642 (grub_total_module_size): Removed.
17643 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17644 (image_targets): Likewise.
17645 Set .compressed_size to no field on sparc.
17646 (generate_image): Remove kernel_image_size handling.
17647
fcf1d672
SJ
176482011-10-19 Szymon Janc <szymon@janc.net.pl>
17649
17650 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17651 NULL pointer dereference.
17652
de9c615e
VS
176532011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17654
17655 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17656 done with a dedicated section.
17657
17658 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17659 Ensure the correct position of boot_path.
17660 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17661 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17662 other fields.
17663 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17664 * include/grub/boot.h: Removed. All references removed.
17665 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17666 Removed.
17667 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17668
e55599dc
VS
176692011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17670
17671 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17672 name.
17673
36dd20ad
VS
176742011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17675
17676 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17677
f8f72eb8
VS
176782011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17679
17680 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17681 Don't add the bogus brackets.
17682
a374751b
VS
176832011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17684
17685 ExFAT support.
17686
17687 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17688 * grub-core/Makefile.core.def (exfat): New module.
17689 * grub-core/fs/exfat.c: New file.
17690 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17691 (GRUB_FAT_ATTR_*): Make into an enum.
17692 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17693 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17694 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17695 (GRUB_FAT_MAXFILE): Removed.
17696 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17697 (grub_current_fat_bpb_t): New type.
17698 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17699 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17700 (grub_fat_dir_node_t): New type.
17701 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17702 (fat_log2) [MODE_EXFAT]: Removed.
17703 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17704 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17705 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17706 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17707 (grub_fat_label) [MODE_EXFAT]: New function.
17708 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17709 reserved_first_sector to 0.
17710
544c2487
VS
177112011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17712
17713 Move grub_reboot out of the kernel.
17714
17715 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17716 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17717 * grub-core/lib/efi/reboot.c: ... here.
17718 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17719 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17720 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17721 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17722 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17723 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17724 * grub-core/lib/ieee1275/reboot.c: ... here.
17725 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17726 * grub-core/lib/mips/arc/reboot.c: ... here.
17727 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17728 * grub-core/lib/mips/loongson/reboot.c: ...here.
17729 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17730 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17731 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17732 * include/grub/i386/reboot.h: New file.
17733 * include/grub/mips/loongson/ec.h: Fix includes.
17734 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17735 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17736 * grub-core/lib/i386/reboot.c: New file.
17737
a97501d2
VS
177382011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17739
17740 Make grub_prefix into module to fix the arbitrary limit and save
17741 some space.
17742
17743 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17744 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17745 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17746 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17747 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17748 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17749 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17750 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17751 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17752 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17753 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17754 * include/grub/ia64/efi/kernel.h: Removed.
17755 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17756 (grub_prefix): Removed.
17757 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17758 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17759 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17760 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17761 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17762 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17763 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17764 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17765 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17766 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17767 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17768 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17769 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17770 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17771 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17772 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17773 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17774 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17775 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17776 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17777 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17778 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17779 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17780 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17781 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17782 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17783 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17784 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17785 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17786 from module.
17787 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17788 prefix_end.
17789 (image_targets): Likewise.
17790 (generate_image): Put prefix as a module.
17791
39705fad
VS
177922011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17793
17794 Replace grub_module_iterate with FOR_MODULES.
17795
17796 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17797 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17798 (grub_efi_modules_addr): ...this.
17799 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17800 (grub_efi_init): Set grub_modbase.
17801 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17802 (grub_modbase): New variable.
17803 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17804 (grub_modbase): New variable.
17805 (grub_machine_init): Set grub_modbase.
17806 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17807 (grub_modbase): New variable.
17808 (grub_machine_init): Set grub_modbase.
17809 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17810 (grub_modbase): New variable.
17811 (grub_machine_init): Set grub_modbase.
17812 * grub-core/kern/main.c (grub_module_iterate): Remove.
17813 (grub_modules_get_end): Use grub_modbase.
17814 (grub_load_modules): Use FOR_MODULES.
17815 (grub_load_config): Likewise.
17816 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17817 (grub_modbase): New variable.
17818 (grub_machine_init): Set grub_modbase.
17819 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17820 (grub_modbase): New variable.
17821 (grub_machine_init): Set grub_modbase.
17822 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17823 Removed.
17824 (grub_modbase): New variable.
17825 (grub_machine_init): Set grub_modbase.
17826 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17827 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17828 (grub_module_iterate): Likewise.
17829 (grub_modbase): New variable declaration.
17830 (FOR_MODULES): New macro.
17831
2afb7f6c
VS
178322011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17833
17834 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17835 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17836
366e34fa
VS
178372011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17838
17839 Fix few obvious type discrepancies.
17840
17841 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17842 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17843 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17844 variable.
17845 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17846 and connected types.
17847 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17848 offset.
17849 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17850 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17851 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17852 and connected types.
17853
177b960e
VS
178542011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17855
17856 Fix python 3.x incompatibilities.
17857
17858 * gentpl.py: Put brackets around print strings.
17859 * util/import_gcry.py: Open explicitly as utf-8.
17860 Use in instead of has_key.
17861
3b619ae1
VS
178622011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17863
17864 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17865 (GRUB_XFS_INO_AGBITS): Make into inline function.
17866 (GRUB_XFS_INO_INOINAG): Likewise.
17867 (GRUB_XFS_INO_AG): Likewise.
17868 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17869 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17870 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17871 (GRUB_XFS_EXTENT_SIZE): Likewise.
17872 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17873 (GRUB_XFS_NEXT_DIRENT): Likewise.
17874 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17875 (grub_xfs_read_file): Fix offset type.
17876
8bcebcb8
RM
178772011-10-15 Robert Millan <rmh@gnu.org>
17878
17879 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17880
0017e5ef
RM
178812011-10-15 Robert Millan <rmh@gnu.org>
17882
17883 Fix build problem on FreeBSD and GNU/kFreeBSD.
17884
17885 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17886
d8919552
VS
178872011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17888
17889 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17890
17891 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17892 types.
17893 (grub_hfsplus_btree_recoffset): Likewise.
17894 (grub_hfsplus_btree_recptr): Likewise.
17895 (grub_hfsplus_find_block): Likewise.
17896 (grub_hfsplus_btree_search): Likewise.
17897 (grub_hfsplus_read_block): Likewise.
17898 (grub_hfsplus_read_file): Likewise.
17899 (grub_hfsplus_mount): Likewise.
17900 (grub_hfsplus_btree_iterate_node): Likewise.
17901 (grub_hfsplus_btree_search): Likewise.
17902 (grub_hfsplus_iterate_dir): Likewise.
17903 (grub_hfsplus_read): A small code simplification.
17904
c81296b6
VS
179052011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17906
17907 * grub-core/kern/emu/hostdisk.c
17908 (convert_system_partition_to_system_disk): Don't assume that children
17909 of mapper nodes are mapper nodes.
17910
0eb8ffb1
VS
179112011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17912
17913 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17914 * include/grub/misc.h (grub_isxdigit): New function.
17915 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17916 switched to grub_isxdigit.
17917 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17918 number starting with a letter.
17919
a98f4a08
RM
179202011-10-09 Robert Millan <rmh@gnu.org>
17921
17922 LVM support for FreeBSD and GNU/kFreeBSD.
17923
17924 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17925 GNU/kFreeBSD.
17926 (LVM_DEV_MAPPER_STRING): Move from here ...
17927 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17928 * util/getroot.c: Include `<grub/util/lvm.h>'.
17929 (grub_util_get_dev_abstraction): Enable
17930 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17931 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17932 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17933 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17934 support it.
17935 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17936 GNU/kFreeBSD.
17937 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17938 when LVM abstraction is required for ${GRUB_DEVICE}.
17939
050e8e90
SJ
179402011-10-06 Szymon Janc <szymon@janc.net.pl>
17941
17942 Add support for LZO compression in GRUB:
17943 - import of minilzo library,
17944 - LZO decompression for btrfs,
17945 - lzop files decompression.
17946
17947 * grub-core/io/lzopio.c: New file.
17948 * grub-core/lib/adler32.c: Likewise.
17949 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17950 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17951 * grub-core/lib/minilzo/minilzo.c: Likewise.
17952 * grub-core/lib/minilzo/minilzo.h: Likewise.
17953 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17954 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17955 grub-core/lib/minilzo/minilzo.c to common.
17956 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17957 cflags in cppflags.
17958 * grub-core/Makefile.core.def (btrfs): Likewise.
17959 * grub-core/Makefile.core.def (lzopio): New module.
17960 (adler32): Likewise.
17961 * grub-core/fs/btrfs.c: Include minilzo.h.
17962 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17963 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17964 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17965 (grub_btrfs_lzo_decompress): New function.
17966 (grub_btrfs_extent_read): Add support for LZO compression type.
17967 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17968 (GRUB_USHRT_MAX): Likewise.
17969 (GRUB_UINT_MAX): Likewise.
17970 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17971 (UINT_MAX): Likewise.
17972 (CHAR_BIT): Likewise.
17973 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17974 grub-core/lib/posix_wrap/limits.h
17975 (UCHAR_MAX): Likewise.
17976 * include/grub/file.h (grub_file_filter_id): New compression filter
17977 GRUB_FILE_FILTER_LZOPIO.
17978 * include/grub/file.h (grub_file_filter_id): Set
17979 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17980 * include/grub/types.h (grub_get_unaligned16): New function.
17981 (grub_get_unaligned32): Likewise.
17982 (grub_get_unaligned64): Likewise.
17983 * util/import_gcry.py (cryptolist): Add adler32.
17984
0eb8ffb1
VS
179852011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17986
17987 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17988 in perspective decreases the complexity of build system and fixes
17989 compilation right now.
17990
ce79cc99 179912011-10-01 Ales Nesrsta <starous@volny.cz>
17992
17993 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17994 (fixed problem related to using UHCI with coreboot).
17995
8667a314
BC
179962011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17997
17998 * gentpl.py: Use Autogen macros so that the output template file
17999 (Makefile.tpl) size is reduced.
18000
fc5efcc0
MK
180012011-09-29 Mads Kiilerich <mads@kiilerich.com>
18002
18003 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
18004 extra_dist.
18005
d1ab689d
ML
180062011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18007
18008 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
18009 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
18010
c05de032
ML
180112011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18012
18013 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
18014 _fullpath.
18015
cca7ccd8
ML
180162011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18017
18018 Remove extra declaration of sleep for mingw32.
18019
18020 * util/misc.c (sleep) [__MINGW32__]: Removed.
18021 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
18022
e0b0dc83
GS
180232011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
18024
18025 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
18026 type and packname.
18027 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
18028 Resurrected.
18029 (NETBSD_BTINFO_BOOTWEDGE): New definition.
18030 (grub_netbsd_btinfo_bootwedge): New struct.
18031 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
18032 New function.
18033 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
18034
91a1a164
TH
180352011-09-28 Thomas Haller <thomas.haller@fen-net.de>
18036
18037 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
18038 loader.
18039
2ded951e
AB
180402011-09-28 Andreas Born <futur.andy@googlemail.com>
18041
18042 Fix incorrect identifiers in bash-completion.
18043
18044 * util/bash-completion.d/grub-completion.bash.in
18045 (_grub_mkpasswd-pbkdf2): Rename to ...
18046 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
18047 (_grub_script-check): Rename to ...
18048 (_grub_script_check): ... this. All users updated.
18049
69915030
VS
180502011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
18051
18052 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
18053 Return 0 if disk isn't biosdisk.
18054
20fd15f9
GS
180552011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18056
18057 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
18058 on NetBSD.
18059 * Makefile.util.def (grub-fstest): Likewise.
18060
1a7d7db9
GS
180612011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18062
18063 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18064 Get sector size from disk label.
18065
2221ab6c
CW
180662011-09-05 Colin Watson <cjwatson@ubuntu.com>
18067
18068 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18069 */README* as well as README*.
18070 Reported by: Axel Beckert.
18071
ca51c4a0
VS
180722011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18073
18074 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18075 case of less than 256 MiB of RAM.
18076
ab80f326
VS
180772011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18078
18079 * grub-core/commands/wildcard.c (make_regex): Handle @.
18080
4155e697
VS
180812011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18082
18083 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18084
ab178c08
SJ
180852011-08-21 Szymon Janc <szymon@janc.net.pl>
18086
18087 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18088 AC_LANG_CONFTEST macros.
18089
7dc3c686
SJ
180902011-08-20 Szymon Janc <szymon@janc.net.pl>
18091
18092 Add grub-fstest option to uncompress data for commands.
18093
18094 * util/grub-fstest.c (uncompress): New var.
18095 (options): New option -u.
18096
fe8d4a7b
SJ
180972011-08-20 Szymon Janc <szymon@janc.net.pl>
18098
18099 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18100 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18101
a5219af1
SJ
181022011-08-20 Szymon Janc <szymon@janc.net.pl>
18103
18104 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18105 file type was not recognized correctly (not gzip or corrupted).
18106
f87abff5
VS
181072011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18108
18109 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18110 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18111
d94497ea
VS
181122011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18113
18114 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18115 loongson.
18116 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18117 video_radeon_fuloong2e.
18118 * grub-core/video/radeon_fuloong2e.c: New file.
18119 * include/grub/video.h (grub_video_id_t): Add new ID
18120 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18121
0d1fd011
VS
181222011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18123
18124 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18125 define.
18126 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18127 that PRID matches the detected subplatform and reset the subplatform
18128 if it doesn't.
18129
84beb0ee
VS
181302011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18131
18132 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18133
1227c133
VS
181342011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18135
18136 Fix PCI iterating on functions >= 4.
18137
18138 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18139 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18140 Removed.
18141 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18142 (grub_pci_read): Fix bitmask.
18143 (grub_pci_read_word): Likewise.
18144 (grub_pci_read_byte): Likewise.
18145 (grub_pci_write): Likewise.
18146 (grub_pci_write_word): Likewise.
18147 (grub_pci_write_byte): Likewise.
18148
9594c689
VS
181492011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18150
18151 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18152 can still be specified in TARGET_CFLAGS)
18153
14a2562c
VS
181542011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18155
18156 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18157
18158 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18159 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18160 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18161 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18162 (FULOONG): Rename to ...
18163 (FULOONG2F): ... this. All users updated.
18164 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18165 (machtype_fuloong2f_str): ... this.
18166 (machtype_fuloong2e_str): New string.
18167 Check for machtype_fuloong2e_str.
18168 * grub-core/loader/mips/linux.c (loongson_machtypes)
18169 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18170 * grub-core/term/serial.c (loongson_defserial)
18171 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18172 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18173 loongson_defserial.
18174 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18175 Rename to ...
18176 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18177 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18178 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18179 to IMAGE_FULOONG2F_FLASH. All users updated.
18180 (image_targets): Rename images.
18181 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18182
b526cbb6
SJ
181832011-08-19 Szymon Janc <szymon@janc.net.pl>
18184
18185 Make enable of disk cache statistics code configurable.
18186
18187 * configure.ac: --enable-cache-stats added.
18188 * config.h.in (DISK_CACHE_STATS): New define.
18189 * grub-core/Makefile.core.def (cacheinfo): New command.
18190 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18191 * grub-core/commands/cacheinfo.c: New file.
18192 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18193 moved to cacheinfo.c.
18194 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18195 debug code.
18196 * include/grub/disk.h: Likewise.
18197
fb739ccd
SJ
181982011-08-19 Szymon Janc <szymon@janc.net.pl>
18199
18200 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18201 * grub-core/Makefile.am: Likewise.
18202
2bba8cfd
VS
182032011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18204
18205 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18206 non-zero pull.
18207
43526629
VS
182082011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18209
18210 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18211 All users updated.
18212 (grub_jfs_lookup_symlink): Use correct starting inode.
18213
5c144cc8
VS
182142011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18215
18216 * util/grub-setup.c (main): Add missing gcry initialisation.
18217
b1257f65
VS
182182011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18219
18220 Don't accept text modes on EFI when booting Linux.
18221
18222 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18223 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18224
828bc390
ML
182252011-08-15 Mario Limonciello <mario_limonciello@dell.com>
182262011-08-15 Colin Watson <cjwatson@ubuntu.com>
18227
18228 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18229 use of "/path/.." as in grub-install for EFI as well as handling
18230 symlinks correctly.
18231 Fixes Debian bug #637768.
18232
5f60ccac
CW
182332011-08-15 Colin Watson <cjwatson@ubuntu.com>
18234
18235 * util/grub-probe.c: Remove duplicate #include.
18236
6dc212f9
RM
182372011-08-10 Robert Millan <rmh@gnu.org>
18238
18239 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18240
18241 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18242 function.
18243 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18244 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18245
66816d85
RM
182462011-08-03 Robert Millan <rmh@gnu.org>
18247
18248 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18249 la_array as packed.
18250 Reported by: Zachary Bedell
18251
20168fca
CW
182522011-07-26 Colin Watson <cjwatson@ubuntu.com>
18253
18254 * configure.ac: The Loongson port requires grub-mkfont due to its
18255 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18256 be built.
18257
303b6246
CW
182582011-07-26 Colin Watson <cjwatson@ubuntu.com>
18259
18260 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18261 processing arguments (otherwise help2man fails when GRUB has not yet
18262 been installed).
18263
6795300e
VS
182642011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18265
41aa28ea
VS
18266 New script grub-mkstandalone.
18267
18268 * Makefile.util.def (grub-mkstandalone): New script.
18269 * docs/man/grub-mkstandalone.h2m: New file.
18270 * util/grub-mkstandalone.in: Likewise.
18271
182722011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18273
18274 Support ATA disks with 4K sectors.
6795300e
VS
18275
18276 * include/grub/ata.h (grub_ata): New member log_sector_size.
18277 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18278 (grub_ata_identify): Read sector size.
18279 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18280
92227597
VS
182812011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18282
18283 * util/grub-install.in: Don't use uhci outside of x86.
18284
c77069f5
VS
182852011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18286
18287 * util/grub-mkrescue.in: Add missing quotes.
18288
182892011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
18290
18291 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18292 dereference.
18293
583168a2
VS
182942011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18295
18296 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18297
6be1c01f
VS
182982011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18299
18300 * include/grub/video.h: add missing EXPORT_FUND on
18301 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18302
a1167439
VS
183032011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18304
18305 * include/grub/mips/kernel.h: Fix define conflict.
18306
bf66054f
VS
183072011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18308
18309 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18310 all four ways.
18311
8fc4fa45
CW
183122011-07-21 Colin Watson <cjwatson@ubuntu.com>
18313
18314 Preferred resolution detection for VBE.
18315
18316 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18317 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18318 the Flat Panel extension, in line with the X.org VESA driver.
18319 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18320 New function.
18321 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18322 (grub_vbe_bios_read_edid): Likewise.
18323 (grub_vbe_get_preferred_mode): Likewise.
18324 (grub_video_vbe_setup): When the mode is "auto", try to get the
18325 preferred mode from VBE, and use the largest mode that is no larger
18326 than the preferred mode (some BIOSes expose a preferred mode that is
18327 not in their mode list!). If this fails, fall back to 640x480 as a
18328 safe conservative choice.
18329 (grub_video_vbe_get_edid): New function.
18330 (grub_video_vbe_adapter): Add get_edid.
18331 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18332 (struct grub_video_adapter): Add get_edid.
18333 (grub_video_edid_checksum): Add prototype.
18334 (grub_video_edid_preferred_mode): Likewise.
18335 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18336 structure.
18337
18338 * grub-core/commands/videoinfo.c (print_edid): New function.
18339 (grub_cmd_videoinfo): Print EDID if available.
18340
18341 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18342 is more appropriate on a wider range of platforms than 640x480.
18343 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18344 documentation.
18345
ca5572a9
VS
183462011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18347
18348 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18349
e4bcf625
VS
183502011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18351
18352 * po/POTFILES.in: Regenerate.
18353
c4edd548
VS
183542011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18355
18356 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18357 incorrect memory usage.
18358
16a2bab0
VS
183592011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18360
18361 * util/grub-install.in: Source grub-mkconfig_lib.
18362
2e418de6
VS
183632011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18364
18365 Remove getroot.c from core on emu platform.
18366
18367 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18368 kern/emu/raid.c.
18369 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18370 useless.
18371 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18372 * util/getroot.c (get_win32_path): ... here.
18373 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18374 * util/getroot.c (fini_libzfs): ... here.
18375 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18376 * util/getroot.c (grub_get_libzfs_handle): ... here.
18377 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18378 Moved from here...
18379 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18380 * grub-core/kern/emu/misc.c
18381 (grub_make_system_path_relative_to_its_root): Moved from here...
18382 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18383 * grub-core/kern/emu/getroot.c: Moved from here ...
18384 * util/getroot.c: ... here. All users updated.
18385 * grub-core/kern/emu/raid.c: Moved from here ...
18386 * util/raid.c: ... here. All users updated.
18387
def9832a
VS
183882011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18389
18390 * po/POTFILES.in: Regenerate.
18391
cd8fe79a
VS
183922011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18393
18394 Fix compilation on GNU/Linux.
18395
18396 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18397 Disable geli.
18398 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18399 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18400 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18401
a251b719
VS
184022011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
184032011-07-07 Michael Gorven <michael@gorven.za.net>
184042011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18405
18406 LUKS and GELI support.
18407
18408 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18409 grub-core/disk/luks.c, grub-core/disk/geli.c,
18410 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18411 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18412 grub-core/lib/arg.c.
18413 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18414 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18415 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18416 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18417 (grub-bin2h): Add libgcry.a.
18418 (grub-mkimage): Likewise.
18419 (grub-mkrelpath): Likewise.
18420 (grub-script-check): Likewise.
18421 (grub-editenv): Likewise.
18422 (grub-mkpasswd-pbkdf2): Likewise.
18423 (grub-pe2elf): Likewise.
18424 (grub-fstest): Likewise.
18425 (grub-mkfont): Likewise.
18426 (grub-mkdevicemap): Likewise.
18427 (grub-probe): Likewise.
18428 (grub-ofpath): Likewise.
18429 (grub-mklayout): Likewise.
18430 (example_unit_test): Likewise.
18431 (grub-menulst2cfg): Likewise.
18432 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18433 * grub-core/Makefile.core.def (cryptodisk): New module.
18434 (luks): Likewise.
18435 (geli): Likewise.
18436 * grub-core/disk/AFSplitter.c: New file.
18437 * grub-core/disk/cryptodisk.c: Likewise.
18438 * grub-core/disk/geli.c: Likewise.
18439 * grub-core/disk/luks.c: Likewise.
18440 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18441 grub_util_is_lvm.
18442 (grub_util_get_dm_abstraction): New function.
18443 (grub_util_follow_gpart_up): Likewise.
18444 (grub_util_get_geom_abstraction): Likewise.
18445 (grub_util_get_dev_abstraction): Use new functions.
18446 (grub_util_pull_device): Pull GELI and LUKS.
18447 (grub_util_get_grub_dev): Handle LUKS and GELI.
18448 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18449 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18450 (follow_geom_up): Removed.
18451 (grub_util_fd_seek): New function.
18452 (open_device): Use grub_util_fd_seek.
18453 (nread): Rename to ..
18454 (grub_util_fd_read): ... this. All users updated.
18455 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18456 (grub_crypto_cbc_decrypt): Likewise.
18457 (grub_crypto_hmac_write): Likewise.
18458 (grub_crypto_hmac_buffer): Likewise.
18459 (grub_password_get): Extend to util.
18460 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18461 New member modname.
18462 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18463 * include/grub/cryptodisk.h: New file.
18464 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18465 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18466 LUKS and GELI.
18467 (grub_util_follow_gpart_up): New proto.
18468 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18469 (grub_util_fd_read): Likewise.
18470 (grub_cryptodisk_cheat_mount): Likewise.
18471 (grub_util_cryptodisk_print_uuid): Likewise.
18472 (grub_util_get_fd_sectors): Likewise.
18473 * util/grub-fstest.c (mount_crypt): New var.
18474 (fstest): Mount crypto if requested.
18475 (options): New option -C.
18476 (argp_parser): Parse -C.
18477 (main): Init and fini gcry.
18478 * util/grub-install.in: Support cryptodisk install.
18479 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18480 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18481 cryptodisk.
18482 (prepare_grub_to_access_device): Likewise.
18483 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18484 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18485 (probe_cryptodisk_uuid): New function.
18486 (probe_abstraction): Likewise.
18487 (probe): Use new functions.
18488 * util/import_gcry.py: Create Makefile.utilgcry.def.
18489 Add modname member.
18490
9bfdcbbc
VS
184912011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18492
18493 Lazy device scanning.
18494
18495 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18496 (grub-setup): Remove util/raid.c.
18497 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18498 * grub-core/disk/lvm.c (scan_depth): New variable.
18499 (grub_lvm_iterate): Rescan if necessary.
18500 (find_lv): New function based on grub_lvm_open.
18501 (grub_lvm_open): Use find_lv. Rescan on error.
18502 (is_node_readable): New function.
18503 (is_lv_readable): Likewise.
18504 (grub_lvm_scan_device): Skip already found disks.
18505 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18506 Stop if searched device is found and readable.
18507 * grub-core/disk/raid.c (inscnt): New variable.
18508 (scan_depth): Likewise.
18509 (scan_devices): New function based on grub_raid_register. Abort if
18510 looked for device is found.
18511 (grub_raid_iterate): Rescan if needed.
18512 (find_array): NEw function based on -grub_raid_open.
18513 (grub_raid_open): Use find_array and rescan.
18514 (insert_array): Set became_readable_at.
18515 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18516 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18517 New function.
18518 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18519 (grub_util_pull_device): New function.
18520 (grub_util_get_grub_dev): Call grub_util_pull_device.
18521 * util/raid.c: Moved to ..
18522 * grub-core/kern/emu/raid.c: ... here.
18523 (grub_util_raid_getmembers): New parameter "bootable".
18524 All users updated. Support 1.x.
18525 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18526 All users updated.
18527 * include/grub/disk.h (grub_disk_pull_t): New enum.
18528 (grub_disk_dev): Change iterate prototype.
18529 All users updated.
18530 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18531 New proto.
18532 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18533 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18534 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18535 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18536 All users updated.
18537 * include/grub/util/raid.h: Removed.
18538
1c358e59
VS
185392011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18540
18541 * po/POTFILES.in: Regenerate.
18542
abee94ed
VS
185432011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18544
18545 Unify sparc init with other ieee1275.
18546
18547 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18548 instead of kern/sparc64/ieee1275/init.c.
18549 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18550 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18551 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18552 grub/machine/kernel.h.
18553 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18554 (grub_claim_heap) [__sparc__]: Use sparc version.
18555 (grub_machine_init): Moved args parsing to
18556 (grub_parse_cmdline): ...this.
18557 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18558 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18559 New definition.
18560 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18561
18562 Move BOOTP to separate file.
18563
18564 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18565 * grub-core/net/net.c: Move all BOOTP functions to
18566 * grub-core/net/bootp.c: ... here.
18567
18568 Use frame interface on PXE.
18569
18570 * grub-core/Makefile.core.def (pxecmd): Removed.
18571 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18572 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18573 * grub-core/i386/pc/pxe.c: Moved from here ...
18574 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18575 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18576 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18577
18578 EFI network support.
18579
18580 * grub-core/Makefile.core.def (efinet): New module.
18581 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18582 here...
18583 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18584 All users updated.
18585 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18586 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18587 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18588 * grub-core/net/drivers/efi/efinet.c: New file.
18589 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18590 (grub_efi_net_config): New extern var.
18591
18592 Various cleanups and bugfixes.
18593
18594 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18595 error.
18596 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18597 disk declared as partition.
18598 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18599 leak on failure.
18600 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18601 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18602 (grub_debug_zalloc): Likewise.
18603 (grub_debug_realloc): Likewise.
18604 (grub_debug_memalign): Likewise.
18605 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18606 Check that target is IPv4.
18607 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18608 local-mac-address as fallback.
18609 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18610 memory leak.
18611 * grub-core/net/ip.c (ipchksum): Rename to ...
18612 (grub_net_ip_chksum): ... this. All users updated.
18613 (grub_net_recv_ip_packets): Special handling for DHCP.
18614 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18615
18616 Unify prefix handling
18617
18618 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18619 (grub_machine_get_bootlocation): ... this.
18620 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18621 (grub_machine_get_bootlocation): ... this.
18622 (grub_prefix): New variable.
18623 (prefix): Removed.
18624 (root_dev): New variable.
18625 (dir): Likewise.
18626 (main): Use new variables.
18627 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18628 Revamped into ...
18629 (grub_machine_get_bootlocation): ... this.
18630 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18631 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18632 (grub_machine_get_bootlocation): ... this.
18633 (grub_machine_set_prefix): Removed.
18634 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18635 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18636 Revamped into ...
18637 (grub_machine_get_bootlocation): ... this.
18638 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18639 (grub_set_prefix_and_root): ... this. All users updated.
18640 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18641 Revamped into ...
18642 (grub_machine_get_bootlocation): ... this.
18643 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18644 (grub_machine_get_bootlocation): New proto.
18645 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18646
18647 Less intrusive and more reliable seek on network implementation.
18648
18649 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18650 (grub_file_seek): Don't call grub_file_net_seek.
18651 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18652 (grub_net_fs_read_real): .. this.
18653 (grub_net_seek_real): Use net->offset.
18654 (grub_net_fs_read): Seek if necessary.
18655
18656 Unify IEEE1275 netwotk config with the other platforms.
18657
18658 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18659 New variable.
18660 (grub_machine_get_bootlocation): Support network.
18661 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18662 Support type and device parsing.
18663 (grub_ieee1275_get_device_type): New function.
18664 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18665 into ...
18666 (grub_ieee1275_net_config_real): ... this.
18667 (grub_ofnet_probecards): Removed.
18668 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18669 * include/grub/ieee1275/ofnet.h: Removed.
18670 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18671 extern var.
18672 (grub_ieee1275_get_device_type): New function.
18673
18674 Unify network device closing across platforms and make more robust.
18675
18676 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18677 grub_grubnet_fini.
18678 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18679 already.
18680 * grub-core/net/net.c (grub_net_network_level_interface_register):
18681 Update num_ifaces.
18682 (grub_net_card_unregister): Close all interfaces.
18683 (receive_packets): Don't poll if no iterfaces are registered.
18684 Open if necessary.
18685 (grub_net_fini_hw): New function.
18686 (grub_net_restore_hw): Likewise.
18687 (fini_hnd): New variable.
18688 (GRUB_MOD_INIT): Register preboot hook.
18689 (GRUB_MOD_FINI): Run and unregister preboot hook.
18690
18691 Poll network cards when idle.
18692
18693 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18694 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18695 * grub-core/net/net.c (receive_packets): Save last poll time.
18696 (grub_net_poll_cards_idle_real): New function.
18697 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18698 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18699 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18700
18701 Rename ofnet interfaces.
18702
18703 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18704 (grub_ofnet_findcards): Use ofnet_%s names.
18705
18706 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18707
18708 Cleanup socket opening.
18709
18710 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18711 (grub_net_fs_close): Likewise.
18712 (grub_net_fs_read_real): Use eof member.
18713 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18714 (+grub_net_udp_close): New inline function.
18715
18716 * include/grub/net/tftp.h: Moved to the top of ...
18717 * grub-core/net/tftp.c: ... here.
18718 * include/grub/net/ip.h: Moved mostly to the top of ...
18719 * grub-core/net/ip.c: ... here.
18720 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18721 * grub-core/net/ethernet.c: ... here.
18722
18723 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18724
18725 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18726 FS name.
18727
18728 * include/grub/net/ip.h (ipv4_ini): Removed.
18729 (ipv4_fini): Likewise.
18730
18731 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18732 (grub_net_send_ip_packets): Likewise.
18733
cf1337aa
VS
187342011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18735
18736 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18737 grub_read_cmos prototype.
18738
93c06ff9
VS
187392011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18740
18741 VGA text support in qemu-mips
18742
18743 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18744 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18745 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18746 text.
18747 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18748 * grub-core/kern/vga_init.c: ... this.
18749 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18750 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18751 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18752 Adjust.
18753 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18754 GRUB_MACHINE_PCI_IO_BASE.
18755
748ccabe
VS
187562011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18757
18758 MIPS qemu flash support.
18759
18760 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18761 magic.
18762 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18763 (grub_machine_init): Probe memory if its size isn't known.
18764 * util/grub-mkimage.c (image_targets): Add flash targets.
18765 (generate_image): Handle flash targets.
18766
d7345994
VS
187672011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18768
18769 MIPS qemu at_keyboard support.
18770
18771 * gentpl.py (videoinkernel): Add qemu-mips.
18772 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18773 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18774 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18775 modules.
18776 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18777 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18778 * grub-core/term/serial.c (grub_serial_register)
18779 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18780
a07a81b3
VS
187812011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18782
18783 CMOS support on sparc.
18784
18785 * gentpl.py (cmos): Add powerpc and sparc.
18786 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18787 powerpc and sparc.
18788 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18789 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18790 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18791 grub_set_datetime_cmos.
18792 * grub-core/lib/ieee1275/cmos.c: New file.
18793 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18794 (find_rtc): Set no_ieee1275_rtc on error.
18795 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18796 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18797 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18798 fail. Move value to argument. All users updated
18799 (grub_cmos_write): Likewise.
18800 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18801 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18802 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18803 grub_get_datetime_cmos and grub_set_datetime_cmos.
18804
77546584
GS
188052011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18806
18807 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18808 sourcing grub-mkconfig_lib.
18809 * util/update-grub_lib.in: Likewise.
18810 * util/grub.d/00_header.in: Likewise.
18811 * util/grub.d/10_hurd.in: Likewise.
18812 * util/grub.d/10_kfreebsd.in: Likewise.
18813 * util/grub.d/10_linux.in: Likewise.
18814 * util/grub.d/10_netbsd.in: Likewise.
18815 * util/grub.d/10_windows.in: Likewise.
18816 * util/grub.d/20_linux_xen.in: Likewise.
18817 * util/grub.d/30_os-prober.in: Likewise.
18818
54894791
CW
188192011-06-28 Colin Watson <cjwatson@ubuntu.com>
18820
18821 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18822 default_bg_color rather than black.
18823 (grub_gfxterm_fullscreen): Likewise.
18824 (grub_gfxterm_background_color_cmd): Save new background color in
18825 default_bg_color.
18826
8d5d8444
VS
188272011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18828
18829 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18830
5afeb5bd
VS
188312011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18832
18833 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18834 mismerge.
18835
ba7df45e
VS
188362011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18837
18838 Chainloading on coreboot support.
18839
18840 * grub-core/Makefile.core.def (chain): Add coreboot.
18841 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18842
d0b526b2
VS
188432011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18844
18845 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18846 if it happens.
18847
5ff1d945
VS
188482011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18849
18850 Implement time command.
18851
18852 * grub-core/Makefile.core.def (time): New module.
18853 * grub-core/commands/time.c: New file.
18854 * grub-core/script/parser.y: Remove "time" keyword.
18855 * grub-core/script/yylex.l: Likewise.
18856
5ebaad7e
VS
188572011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18858
18859 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18860
bdea3798
VS
188612011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18862
18863 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18864 when handling leftovers.
18865
b28c5655
VS
188662011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18867
18868 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18869 so that help2man doesn't fail.
18870
b6f945dc
VS
188712011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18872
18873 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18874 type in pointers on sparc64.
18875 (get_card_packet): Likewise.
18876
f9b75e8a
CW
188772011-06-27 Colin Watson <cjwatson@ubuntu.com>
18878
18879 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18880 with `*'.
18881 (grub_cmd_videoinfo): Fetch current video mode.
18882
1e3d9b86
VS
188832011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18884
18885 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18886 because of underlying system restrictions.
18887
efff4b1c
VS
188882011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18889
18890 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18891 necessary.
18892
9fc9ce37
VS
188932011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18894
18895 Coreboot video support.
18896
18897 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18898 (vbe): Likewise.
18899 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18900 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18901 here ...
18902 * grub-core/kern/i386/int.S: ... here.
18903 * grub-core/video/i386/pc/vbe.c: Updated includes.
18904 * grub-core/video/i386/pc/vga.c: Likewise.
18905 * include/grub/i386/coreboot/memory.h
18906 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18907 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18908 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18909 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18910 Disable interrupts.
18911 * include/grub/i386/pc/vga.h: Removed. All users updated.
18912
41bec7fe
VS
189132011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18914
18915 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18916 definitions for dprintf.
18917 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18918
ca80309d
VS
189192011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18920
18921 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18922 prototype.
18923 (get_card_packet): Likewise.
18924
9e322ce8
YB
189252011-06-26 Yves Blusseau <blusseau@zetam.org>
18926
18927 Display the path of the file when file is not found
18928
18929 * grub-core/fs/fat.c: Display the filename when file is not found.
18930 * grub-core/fs/fshelp.c: Likewise.
18931 * grub-core/fs/hfs.c: Likewise.
18932 * grub-core/fs/jfs.c: Likewise.
18933 * grub-core/fs/minix.c: Likewise.
18934 * grub-core/fs/ufs.c: Likewise.
18935 * grub-core/fs/btrfs.c: Likewise.
18936 * grub-core/commands/i386/pc/play.c: Likewise.
18937
cbf597af
SJ
189382011-06-26 Szymon Janc <szymon@janc.net.pl>
18939
18940 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18941 pointer checks before calling grub_free().
18942 * grub-core/commands/wildcard.c (match_devices): Likewise.
18943 * grub-core/commands/wildcard.c (match_files): Likewise.
18944 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18945 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18946 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18947 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18948 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18949 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18950 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18951 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18952 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18953
6295b32f
P
189542011-06-25 Patrick <p55@mailinator.com>
18955
18956 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18957
77c0840b
VS
189582011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18959
18960 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18961 (grub_pxe_send): Likewise.
18962 (GRUB_MOD_INIT): Fix types.
18963
40ea05de
SJ
189642011-06-24 Szymon Janc <szymon@janc.net.pl>
18965
18966 * grub-core/io/xzio.c: Fix code style issues
18967
90162423
MRA
189682011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
189692011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
18970
18971 Network infrastructure.
18972 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18973
18974 * include/grub/net/arp.h: New file.
90162423
MRA
18975 * include/grub/net/device.h: Likewise.
18976 * include/grub/net/ethernet.h: Likewise.
18977 * include/grub/net/ip.h: Likewise.
18978 * include/grub/net/netbuff.h: Likewise.
18979 * include/grub/net/tftp.h: Likewise.
18980 * include/grub/net/udp.h: Likewise.
18981 * include/grub/ieee1275/ofnet.h: Likewise.
18982 * include/grub/emu/export.h: Likewise.
18983 * include/grub/net.h: Likewise.
18984 * grub-core/net/arp.c: Likewise.
18985 * grub-core/net/ethernet.c: Likewise.
18986 * grub-core/net/ip.c: Likewise.
18987 * grub-core/net/udp.c: Likewise.
18988 * grub-core/net/tftp.c: Likewise.
18989 * grub-core/net/netbuff.c: Likewise.
18990 * grub-core/net/net.c: Likewise.
18991 * grub-core/net/drivers/emu/emunet.c: Likewise.
18992 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18993 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18994 export.h.
18995 * grub-core/Makefile.core.def (net): New module.
18996 (tftp): Likewise.
18997 (ofnet): Likewise.
18998 (emunet): Likewise.
18999 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
19000 network protocols.
19001 * grub-core/kern/device.c (grub_net_open) : New variable.
19002 (grub_device_open): Handle network device.
19003 (grub_device_close): Likewise.
19004 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
19005 (grub_grubnet_fini): Likewise.
19006 (grub_file_seek): Seek in network device.
19007 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
19008 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
19009 network root.
19010 (grub_machine_fini): Call grub_grubnet_fini.
19011 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
19012 network.
19013 (grub_ieee1275_get_aliasdevname): New function.
19014 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19015 Add unofficial Solaris network info.
19016 (grub_multiboot_make_mbi): Likewise.
19017 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
19018 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
19019 * include/grub/device.h (grub_fs): Removed.
19020 * include/grub/err.h (grub_err_t): Add network-related values.
19021 * include/grub/i386/pc/pxe.h: Removed bootp parts.
19022 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
19023 (grub_ieee1275_get_aliasdevname): New proto.
19024 * include/grub/net.h: Rewritten.
423a1849 19025
031f22a0
VS
190262011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19027
19028 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
19029 names.
19030
4388ca72
VS
190312011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19032
19033 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
19034 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
19035 it truncates the output.
19036 Reported by: Ximin Luo.
19037
98e2f506
VS
190382011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19039
19040 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
19041
2a5e94d8
VS
190422011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19043
19044 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19045 partmap before abstraction.
19046
535c1910
AK
190472011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
19048
19049 * util/grub-mkconfig_lib.in: Add missing quotes.
19050
bc09e1a2
VS
190512011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19052
19053 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
19054 old method if mountinfo would return /dev/root and /dev/root doesn't
19055 exist.
19056
290766fb
VS
190572011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19058
19059 ZFS zlib support
19060
19061 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
19062 (decomp_table): Add zlib entries.
19063 (zio_read): USe 8 bits for compression function rather than 3.
19064 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19065
190662011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19067
19068 * grub-core/disk/ahci.c: Add missing license statements.
19069 * grub-core/fs/romfs.c: Likewise.
19070 * grub-core/lib/ia64/setjmp.S: Likewise.
19071 * grub-core/loader/i386/pc/freedos.c: Likewise.
19072 * grub-core/loader/ia64/efi/linux.c: Likewise.
19073 * grub-core/video/colors.c: Likewise.
19074 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19075
5ab3f48a
VS
190762011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19077
19078 AHCI support.
19079
19080 * grub-core/Makefile.core.def (ata_pthru): Removed.
19081 (ahci): New module.
19082 (pata): Likewise.
19083 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19084 on unload.
19085 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19086 readwrite.
19087 (grub_hdparm_do_check_powermode_cmd): Likewise.
19088 (grub_hdparm_do_smart_cmd): Likewise.
19089 (grub_hdparm_set_val_cmd): Likewise.
19090 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19091 * grub-core/disk/ahci.c: New file.
19092 * grub-core/disk/ata.c: Factor out the low-level part into ...
19093 * grub-core/disk/pata.c: ... here.
19094 * grub-core/disk/ata_pthru.c: Contents moved to ...
19095 * grub-core/disk/pata.c: ... here.
19096 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19097 (grub_scsi_iterate): Use grub_scsi_names.
19098 (grub_scsi_open): Likewise.
19099 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19100 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19101 (grub_ata_regs_t): New struct.
19102 (grub_disk_ata_pass_through_parms): Likewise.
19103 (grub_ata_device): Renamed to ...
19104 (grub_ata): ... this.
19105 (grub_ata_dev): New struct.
19106 Removed all low-level inline functions.
19107 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19108 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19109 iterate hooks and open. All users updated.
19110 * util/grub-install.in: Handle AHCI disk module.
19111
c31dc5f5
SJ
191122011-06-23 Szymon Janc <szymon@janc.net.pl>
19113
19114 Add support for DRI and RSTn markers in JPEG files.
19115
19116 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19117 (JPEG_MARKER_RST0): Likewise.
19118 (JPEG_MARKER_RST1): Likewise.
19119 (JPEG_MARKER_RST2): Likewise.
19120 (JPEG_MARKER_RST3): Likewise.
19121 (JPEG_MARKER_RST4): Likewise.
19122 (JPEG_MARKER_RST5): Likewise.
19123 (JPEG_MARKER_RST6): Likewise.
19124 (JPEG_MARKER_RST7): Likewise.
19125 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19126 (grub_jpeg_decode_dri): New function.
19127 (grub_jpeg_decode_sos): Move image data related part into
19128 grub_jpeg_decode_data function.
19129 (grub_jpeg_decode_data): New function.
19130 (grub_jpeg_reset): New function.
19131 (grub_jpeg_decode_jpeg): Handle new markers.
19132
fe12fd5b
VS
191332011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19134
19135 * util/ieee1275/ofpath.c (check_sas): Close fd.
19136 (main): Free of_path.
19137 Reported by: David Volgyes <dvolgyes>.
19138
03147f46
VS
191392011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19140
19141 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19142 Reported by: David Volgyes <dvolgyes>.
19143
cad3237f
VS
191442011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19145
19146 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19147 file after stat.
19148 Reported by: David Volgyes <dvolgyes>.
19149
13548d26
VS
191502011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19151
19152 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19153
19154 Reported by: David Volgyes <dvolgyes>.
19155
e061a1b5
VS
191562011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19157
19158 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19159 Prevent memory leak.
19160
1abe47dc
VS
191612011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19162
19163 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19164 (main): Close file.
e061a1b5 19165 Reported by: David Volgyes <dvolgyes>.
1abe47dc 19166
fbc62666
VS
191672011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19168
19169 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19170 to continue if allocation is failed.
19171
19172 Reported by: David Volgyes <dvolgyes>.
19173
e98c83e9
DV
191742011-06-23 David Volgyes <dvolgyes>
19175
19176 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19177 dereference.
19178
a199a8cd
VS
191792011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19180
19181 Fix spurious warning.
19182
19183 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19184 (acorn_partition_map_find): Use .bin member.
19185
e2d1dba0
VS
191862011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19187
19188 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19189 /dev/root as a valid device.
19190
8a5d6919
JM
191912011-06-23 Jim Meyering <meyering@redhat.com>
19192
e2d1dba0
VS
19193 Avoid NULL deref in grub_device_open.
19194
8a5d6919
JM
19195 * grub-core/kern/device.c (grub_device_open): Don't dereference
19196 a NULL pointer upon failed grub_env_get.
19197
f7db6f4a
VS
191982011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19199
19200 Support non-512B sectors and agglomerate reads.
19201
19202 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19203 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19204 (disk_io_guid): Removed.
19205 (make_devices): Locate solely by BlockIO.
19206 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19207 (grub_efidisk_read): Use read_blocks.
19208 (grub_efidisk_write): Use write_blocks.
19209 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19210 log_sector_size.
19211 (get_safe_sectors): Handle non-512B sectors.
19212 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19213 sectors.
19214 (grub_biosdisk_write): Handle non-512B sectors.
19215 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19216 (grub_scsi_read): Remove special non-512B block handling (now handled
19217 one level up).
19218 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19219 and do sanity checks.
19220 (grub_disk_adjust_range): Handle non-512B sectors.
19221 (transform_sector): New function.
19222 (grub_disk_read_small): Likewise.
19223 (grub_disk_read): Rewritten.
19224 (grub_disk_write): Handle non-512B sectors.
19225 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19226 log_sector_size.
19227 (open_device): Use log_sector_size.
19228 (grub_util_biosdisk_read): Likewise.
19229 (grub_util_biosdisk_write): Likewise.
19230 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19231 non-512B sectors.
19232 (pc_partition_map_embed): Likewise.
19233 * include/grub/disk.h (grub_disk): New field log_sector_size.
19234 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19235 (GRUB_DISK_CACHE_BITS): Increased to 6.
19236 * util/grub-fstest.c (fstest): New command testload.
19237 (argp_parser): Likewise.
19238
881ac815
RM
192392011-06-16 Robert Millan <rmh@gnu.org>
19240
19241 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19242 `ata' driver on kernel of FreeBSD 9.
19243
19244 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19245 (get_ataraid_disk_name): New functions.
19246 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19247 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19248 get_ataraid_disk_name() and get_ada_disk_name().
19249
1e9aef7d
CW
192502011-06-13 Colin Watson <cjwatson@ubuntu.com>
19251
19252 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19253 input format.
19254
351c7c8a
CW
192552011-05-29 Colin Watson <cjwatson@ubuntu.com>
19256
19257 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19258 `ftp.gnu.org' for `alpha.gnu.org'.
19259
6b4e6430
CW
192602011-05-27 Colin Watson <cjwatson@ubuntu.com>
19261
19262 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19263 partitions under /dev/disk/by-id/.
19264
c64db050
CW
192652011-05-27 Colin Watson <cjwatson@ubuntu.com>
19266
19267 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19268 after ten consecutive open failures. Scanning all the way up to
19269 10000 is excessive and can cause serious performance problems in
19270 some configurations.
19271 Fixes Ubuntu bug #787461.
19272
245f4aba
VS
192732011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19274
19275 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19276 opening new one.
19277
f767c929
VS
192782011-05-21 Colin Watson <cjwatson@ubuntu.com>
192792011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19280
19281 Don't stat devices unless we have to.
19282
19283 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19284 dir == /dev/mapper.
19285 (grub_guess_root_device): Use already known os_dev if possible.
19286 * grub-core/kern/emu/hostdisk.c
19287 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19288 if device is known to be a dm one.
19289
f35fa3a6
CW
192902011-05-20 Colin Watson <cjwatson@ubuntu.com>
19291
19292 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19293 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19294 Reported by: Pawel Tecza.
19295
9a79fcf2
VS
192962011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19297
19298 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19299 (lsefisystab): Likewise.
19300 (lssal): Likewise.
19301 (lsefimmap): Likewise.
19302 (hdparm): Enable on qemu-mips.
19303 (setjmp): Add ia64 nodist.
19304 (serial): Simplify tags.
19305
63e3eea9
CW
193062011-05-18 Colin Watson <cjwatson@ubuntu.com>
19307
19308 * Makefile.util.def (grub-ofpathname): Install manual page.
19309
09728256
CW
193102011-05-18 Colin Watson <cjwatson@ubuntu.com>
19311
19312 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19313
8b63a142
CW
193142011-05-18 Colin Watson <cjwatson@ubuntu.com>
19315
19316 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19317
e775d8ed
VS
193182011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19319
19320 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19321 into dprintf.
19322
bf947d36
VS
193232011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19324
19325 Use full 64-bit division.
19326
19327 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19328 (grub_divmod64): ... this.
19329 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19330 version.
19331
b84f26c5
CW
193322011-05-18 Colin Watson <cjwatson@ubuntu.com>
19333
19334 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19335 `source'.
19336
5626056f
CW
193372011-05-18 Colin Watson <cjwatson@ubuntu.com>
19338
19339 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19340 to avoid accidents when debugging with 'sh -x'.
19341 * grub-core/gensyminfo.sh.in: Likewise.
19342 * tests/example_scripted_test.in: Likewise.
19343 * tests/grub_cmd_regexp.in: Likewise.
19344 * tests/grub_script_blanklines.in: Likewise.
19345 * tests/grub_script_dollar.in: Likewise.
19346 * tests/grub_script_expansion.in: Likewise.
19347 * tests/grub_script_final_semicolon.in: Likewise.
19348 * tests/partmap_test.in: Likewise.
19349 * tests/util/grub-shell-tester.in: Likewise.
19350 * tests/util/grub-shell.in: Likewise.
19351
e2965f4a
CW
193522011-05-18 Colin Watson <cjwatson@ubuntu.com>
19353
19354 Move gfxmenu color handling to video, so that gfxterm can use it
19355 too.
19356
19357 * grub-core/gfxmenu/named_colors.c: Move to ...
19358 * grub-core/video/colors.c: ... here. Rename
19359 grub_gui_get_named_color to grub_video_get_named_color.
19360 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19361 * grub-core/video/colors.c (my_isxdigit): ... here.
19362 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19363 Move to ...
19364 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19365 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19366 to ...
19367 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19368
19369 * include/grub/gui.h (grub_gui_color_t): Move to ...
19370 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19371 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19372 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19373 * include/grub/gui.h (grub_gui_map_color): Move to ...
19374 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19375 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19376 to ...
19377 * include/grub/video.h (grub_video_get_named_color): ... here.
19378 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19379 * include/grub/video.h (grub_video_parse_color): ... here.
19380
19381 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19382 video/colors.c.
19383 (gfxmenu): Remove gfxmenu/named_colors.c.
19384 (video) [videomodules]: Add video/colors.c.
19385
19386 Add a background_color command.
19387
19388 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19389 function.
19390 (GRUB_MOD_INIT): Register background_color command.
19391 (GRUB_MOD_FINI): Unregister background_color command.
19392 (redraw_screen_rect): Allow blend/replace of text layer to be
19393 controlled independently from whether there is a background bitmap.
19394 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19395 changing bitmap.
19396
1e4b4390
VS
193972011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19398
26618ff0
VS
19399 Patch BPB in ntldr and chainloader --bpb.
19400
1e4b4390
VS
19401 * grub-core/fs/fat.c: Include grub/fat.h.
19402 (grub_fat_bpb): Moved to ...
19403 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19404 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19405 grub/ntfs.h.
19406 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19407 Moved from here...
19408 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19409 here.
19410 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19411 New function.
19412 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19413 (GRUB_MOD_INIT): Show --bpb.
19414 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19415 * grub-core/normal/main.c (features): New variable.
19416 (GRUB_MOD_INIT): Set feature_* variables.
19417 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19418 proto.
19419 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19420
cf02731e
VS
194212011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19422
19423 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19424 for cleanness.
19425
e3a1073f
VS
194262011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19427
19428 FreeDOS direct loading support.
19429
19430 * docs/grub.texi (Supported OS): Add FreeDOS.
19431 * grub-core/Makefile.core.def (freedos): New module.
19432 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19433 variable.
19434 (grub_relocator16_boot): Handle %ebx.
19435 * grub-core/lib/i386/relocator16.S: Likewise.
19436 * grub-core/loader/i386/pc/freedos.c: New file.
19437
05caa461
VS
194382011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19439
19440 Long Linux command line support.
19441
19442 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19443 (maximal_cmdline_size): New variable.
19444 (allocate_pages): Use maximal_cmdline_size.
19445 (grub_cmd_linux): Set and use maximal_cmdline_size.
19446 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19447 (allocate_pages): Use maximal_cmdline_size.
19448 (grub_cmd_linux): Set and use maximal_cmdline_size.
19449 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19450 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19451 and cmdline_size.
19452
a2491e23
VS
194532011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
194542011-05-18 Colin Watson <cjwatson@ubuntu.com>
19455
19456 Improve devmapper support
19457
19458 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19459 (grub_util_is_lvm): New function.
19460 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19461 than lvm if not dmraid.
19462 Handle mapped md nodes.
19463 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19464 (grub_util_device_is_mapped): ... this. Make always available. All users
19465 updated.
19466 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19467 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19468 dmraid nodes.
19469 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19470
6ad6223e
VS
194712011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19472
19473 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19474
19475 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19476 * grub-core/modinfo.sh.in: New file.
19477 * grub-core/Makefile.core.def (modinfo.sh): New script.
19478 * util/grub-mknetdir.in: Use modinfo.sh.
19479 * util/grub-mkrescue.in: Likewise.
19480
543a8f6e
VS
194812011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19482
19483 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19484 Fix potential usage of Elf32 instead of Elf64 when compiling on
19485 32-bit architecture. Add endianness macros while on it.
19486
4959e111
VS
194872011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19488
19489 Use mipsel- rather than mips- in directories involving mipsel ports to
19490 allow both endiannesses coexist.
19491
19492 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19493 mips. All conditions adjusted.
19494 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19495 variable.
19496 * util/grub-install.in: Adjust conditions to take renaming into account.
19497 * util/grub-mkimage.c (image_targets): Likewise. New target
19498 mips-qemu_mips-elf for bigendian mips.
19499
35341bbc
VS
195002011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19501
19502 Avoid unnecessary copying on MIPS.
19503
19504 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19505 early if src == dest.
19506 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19507 compression is none.
19508
b772baed
VS
195092011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19510
19511 Reduce memory footprint on SGI by putting modules before the kernel
19512 as opposed to after.
19513
19514 * grub-core/Makefile.core.def (kernel): Increase linking address.
19515 (none_decompress): Likewise.
19516 (xz_decompress): Likewise.
19517 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19518 address.
19519 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19520 layout change.
19521 (grub_arch_modules_addr): New function.
19522 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19523 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19524 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19525 here.
19526 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19527 (grub_total_modules_size): ... this. Make global.
19528 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19529 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19530 New definition.
19531 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19532 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19533 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19534 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19535 * util/grub-mkimage.c (image_target_desc): New flag
19536 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19537 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19538 (generate_image): Handle images with modules before kernel.
19539
566a1917
VS
195402011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19541
19542 Prevent potential loss of memory map by overwrite on qemu-mips.
19543
19544 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19545 Save ram size in $s4.
19546 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19547 All users changed to grub_arch_memsize.
19548 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19549 Loongson.
19550 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19551 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19552 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19553 external variable.
19554
5d420cd9
CW
195552011-05-17 Colin Watson <cjwatson@ubuntu.com>
19556
19557 * .bzrignore: Remove grub-dumpbios.
19558
d064b830
CW
195592011-05-17 Colin Watson <cjwatson@ubuntu.com>
19560
19561 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19562 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19563 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19564 existing options which append).
19565 * docs/grub.texi (Simple configuration): Document new options.
19566 Reported by: Ian Jackson. Fixes Debian bug #617538.
19567
3ca2b466
CW
195682011-05-17 Colin Watson <cjwatson@ubuntu.com>
19569
19570 * util/grub-fstest.c (cmd_cat): New function.
19571 (fstest): Handle CMD_CAT.
19572 (options): Add cat.
19573 (argp_parser): Handle cat.
19574
24c9143a
CW
195752011-05-17 Colin Watson <cjwatson@ubuntu.com>
19576
19577 * Makefile.util.def (grub-bin2h): Don't install.
19578 * docs/man/grub-bin2h.h2m: Remove.
19579
90f7ac19
VS
195802011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19581
19582 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19583 place.
19584
8d4a5178
VS
195852011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19586
19587 Reenable qemu-mips port.
19588
19589 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19590 Fix small arc bug while on it.
19591 * gentpl.py: Handle qemu_mips.
19592 * grub-core/Makefile.am: Likewise.
19593 * grub-core/Makefile.core.def: Likewise.
19594 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19595 inappropriate includes.
19596 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19597 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19598 * grub-core/kern/main.c (grub_modules_get_end)
19599 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19600 * grub-core/kern/mips/qemu-mips: Moved to ..
19601 * grub-core/kern/mips/qemu_mips: ... this.
19602 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19603 (grub_machine_init): Call terminfo_init and serial_init.
19604 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19605 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19606 New variable.
19607 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19608 parameter passing.
19609 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19610 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19611 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19612 * include/grub/mips/qemu_mips/cmos.h: New file.
19613 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19614 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19615 Removed.
19616 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19617 Use correct mips-style address.
19618 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19619 (GRUB_TICKS_PER_SECOND): Removed.
19620 (grub_get_rtc): Likewise.
19621 (grub_cpu_idle): Likewise.
19622 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19623 New definition.
19624 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19625 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19626 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19627 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19628 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19629 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19630 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19631 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19632
400b9371
VS
196332011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19634
19635 SGI ARCS port.
19636
19637 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19638 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19639 platforms.
19640 * configure.ac: New target mips-arc.
19641 * gentpl.py: Likewise.
19642 * grub-core/Makefile.am: Likewise.
19643 * grub-core/Makefile.core.def: Likewise.
19644 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19645 (none_decompress): Likewise.
19646 (lsdev): New module.
19647 (datetime): Use lib/arc/datetime.c on ARC.
19648 (part_dvh): New module.
19649 * grub-core/commands/arc/lsdev.c: New file.
19650 * grub-core/disk/arc/arcdisk.c: Likewise.
19651 * grub-core/kern/mips/arc/init.c: Likewise.
19652 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19653 aligned addresses.
19654 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19655 support.
19656 (grub_arch_dl_relocate_symbols): Likewise.
19657 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19658 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19659 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19660 platforms.
19661 * grub-core/lib/arc/datetime.c: New file.
19662 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19663 pci.h on non-loongson.
19664 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19665 (grub_linux_boot): Set unused registers to 0.
19666 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19667 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19668 * grub-core/mmap/mips/uppermem.c: ...here.
19669 * grub-core/partmap/dvh.c: New file.
19670 * grub-core/term/arc/console.c: Likewise.
19671 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19672 (grub_terminfo_set_current): Add terminal "arc".
19673 (grub_terminfo_readkey): Support ARC sequences.
19674 * include/grub/arc/arc.h: New file.
19675 * include/grub/arc/console.h: Likewise.
19676 * include/grub/disk.h (grub_disk_dev_id): Add
19677 GRUB_DISK_DEVICE_ARCDISK_ID.
19678 * include/grub/mips/arc/kernel.h: New file.
19679 * include/grub/mips/arc/memory.h: Likewise.
19680 * include/grub/mips/arc/time.h: Likewise.
19681 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19682 * include/grub/mips/kernel.h (grub_halt): ... here.
19683 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19684 here...
19685 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19686 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19687 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19688 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19689 proto.
19690 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19691 from here ...
19692 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19693 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19694 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19695 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19696 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19697 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19698 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19699 (grub_phys_addr_t): Moved from here ...
19700 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19701 (grub_vtop): Moved from here ...
19702 * include/grub/mips/memory.h (grub_vtop): ... here.
19703 (grub_map_memory): Moved from here ...
19704 * include/grub/mips/memory.h (grub_map_memory): ... here.
19705 (grub_unmap_memory): Moved from here ...
19706 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19707 (grub_machine_mmap_iterate): Moved from here ...
19708 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19709 (grub_mmap_get_lower): Moved from here ...
19710 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19711 (grub_mmap_get_upper): Moved from here ...
19712 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19713 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19714 here ...
19715 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19716 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19717 here ...
19718 * include/grub/mips/time.h (grub_get_rtc): ... here.
19719 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19720 here ...
19721 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19722 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19723 here ...
19724 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19725 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19726 definition.
19727 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19728 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19729 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19730 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19731 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19732 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19733 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19734 (GRUB_MACHINE_LINK_ADDR): Likewise.
19735 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19736 to 6.
19737 * util/grub-install.in: Run dvhtool on ARC.
19738 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 19739 (generate_image): Handle ECOFF output for mips-arc.
400b9371 19740
c8ecc840
VS
197412011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19742
19743 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19744 blocks.
19745
153a4b55
VS
197462011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19747
19748 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19749 after enabling port.
19750
ff44d107
VS
197512011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19752
19753 Skip incorrect USB devices.
19754
19755 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19756 configcnt == 0.
19757 * include/grub/usb.h (grub_usb_err_t): New enum value
19758 GRUB_USB_ERR_BADDEVICE.
19759
638dbe4f
VS
197602011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19761
19762 Fuloong video init support.
19763
19764 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19765 well.
19766 (grub_vga_read_arx): New function.
19767 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19768 definition.
19769 (framebuffer): New members io, mmioptr and mmiobase.
19770 (read_sis_cmd): New function.
19771 (write_sis_cmd): Likewise.
19772 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19773 rather than 640x400.
19774 * grub-core/video/sis315_init.c: New file.
19775
c3fc520c
VS
197762011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19777
19778 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19779 non-loongson.
19780 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19781 to grub_dl_register_symbol.
19782
67b1e5c9
VS
197832011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19784
19785 Fix compilation errors.
19786
19787 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19788 potentially unused.
19789 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19790 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19791 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19792 to loongson machines.
19793
b756f75f
VS
197942011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19795
19796 Several FS mtime support.
19797
19798 * grub-core/fs/affs.c (grub_affs_time): New struct.
19799 (grub_affs_file): New field mtime.
19800 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19801 type. Removed 'size'. New field 'di'. All users updated.
19802 (grub_affs_mount): Simplify checsum checking.
19803 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19804 (grub_affs_dir): Handle mtime.
19805 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19806 (grub_cpio_dir): Likewise.
19807 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19808 (grub_hfs_filerec): New field mtime.
19809 (grub_hfs_dir): Handle mtime.
19810 (grub_hfs_mtime): New function.
19811 (grub_hfs_fs): Register grub_hfs_mtime.
19812 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19813 (grub_iso9660_dir): New field mtime.
19814 (grub_fshelp_node): New field dirent.
19815 (iso9660_to_unixtime): New function.
19816 (iso9660_to_unixtime2): Likewise.
19817 (grub_iso9660_read_symlink): Use node->dirent.
19818 (grub_iso9660_iterate_dir): Likewise.
19819 (grub_iso9660_dir): Set mtime.
19820 (grub_iso9660_mtime): New function.
19821 (grub_iso9660_fs): Register grub_iso9660_mtime.
19822 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19823 (grub_jfs_inode): New fields atime, ctime and mtime.
19824 (grub_jfs_dir): Set mtime.
19825 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19826 * grub-core/fs/ntfs.c (list_file): Set mtime.
19827 (grub_ntfs_dir): Likewise.
19828 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19829 (grub_reiserfs_iterate_dir): Set mtime.
19830 (grub_reiserfs_dir): Likewise.
19831 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19832 (grub_fshelp_node): Likewise.
19833 (grub_sfs_iterate_dir): Set mtime.
19834 (grub_sfs_dir): Likewise.
19835 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19836 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19837 (grub_xfs_inode): New fields atime, mtime, ctime.
19838 (grub_xfs_dir): Set mtime.
19839 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19840 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19841 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19842
19843 Support UDF symlinks.
19844
19845 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19846 (grub_ufs_read_symlink): New function. All users updated.
19847
19848 Check amiga partmap checksum.
19849
19850 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19851 (grub_amiga_partition): Likewise.
19852 (amiga_partition_map_checksum): New function.
19853 (amiga_partition_map_iterate): Check checksum.
19854
5470225d
VS
198552011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19856
19857 ROMFS support.
19858
19859 * Makefile.util.def (libgrubmods.a): Add romfs.
19860 * grub-core/Makefile.core.def (romfs): New module.
19861 * grub-core/fs/romfs.c: New file.
19862
d4680a35
VS
198632011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19864
19865 Squashfs v4 support.
19866
19867 * Makefile.util.def (libgrubmods.a): Add squash4.
19868 * grub-core/Makefile.core.def (squash4): New module.
19869 * grub-core/fs/squash4.c: New file.
19870 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19871 disk_input_start, disk_input.
19872 (get_byte): Handle disk_input.
19873 (grub_zlib_disk_read): New function.
19874 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19875
bcb18e74
FZ
198762011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
198772011-05-15 Feiran Zheng <famcool@gmail.com>
19878
19879 * Makefile.util.def (libgrubmods.a): Add minix3.
19880 * grub-core/Makefile.core.def (minix3): New module.
19881 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19882 (GRUB_MINIX_BSIZE): Removed.
19883 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19884 (grub_minix_ino_t): New type.
19885 (grub_minix_le_to_cpu_ino): New macro.
19886 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19887 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19888 (grub_minix_data): New field block_size.
19889 (grub_minix_read_file): Handle 64-bit correctly.
19890 * grub-core/fs/minix3.c: New file.
19891
32297d5f
TG
198922011-05-15 Tristan Gingold <gingold@free.fr>
198932011-05-15 Robert Millan <rmh.grub@aybabtu.com>
198942011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19895
19896 IA64 support.
19897
19898 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19899 * configure.ac: Add ia64-efi target.
19900 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19901 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19902 * gentpl.py: Add ia64_efi platform.
19903 Rename x86_efi to efi and Add ia64-efi. All users updated.
19904 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19905 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19906 Remove kern/generic/rtc_get_time_ms.c on EFI.
19907 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19908 kern/ia64/dl_helper.c on ia64-efi.
19909 Add kern/emu/cache.c on emu.
19910 (linux): Use on loader/ia64/efi/linux.c on ia64.
19911 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19912 whether symbol is a function.
19913 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19914 (grub_symbol): New field 'isfunc'.
19915 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19916 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19917 (grub_dl_load_segments): Place all sections into the same region.
19918 [__ia64__]: Create trampolines and got.
19919 [GRUB_MACHINE_EMU]: Call mprotect.
19920 (grub_dl_resolve_symbols): Resolve symbol type as well.
19921 [__ia64__]: Create function descriptors.
19922 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19923 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19924 (grub_get_rtc): New function.
19925 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19926 * grub-core/kern/emu/cache.S: Renamed to ...
19927 * grub-core/kern/emu/cache_s.S: ... this.
19928 [__ia64__]: Add a nop.
19929 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19930 [__ia64__]: New function.
19931 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19932 * grub-core/kern/ia64/dl.c: New file.
19933 * grub-core/kern/ia64/dl_helper.c: Likewise.
19934 * grub-core/kern/ia64/efi/init.c: New file.
19935 * grub-core/kern/ia64/efi/startup.S: Likewise.
19936 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19937 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19938 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19939 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19940 * grub-core/loader/ia64/efi/linux.c: New file.
19941 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19942 (GRUB_MOD_DEP): Likewise.
19943 (grub_dl) [__ia64__]: New fields got and tramp.
19944 (grub_dl): New field 'base'.
19945 (grub_dl_register_symbol): New argument isfunc. All users updated.
19946 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19947 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19948 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19949 (grub_ia64_dl_get_tramp_got_size): New proto.
19950 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19951 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19952 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19953 * include/grub/efi/api.h: Skip call wrappers on ia64.
19954 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19955 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19956 * include/grub/elf.h (ELF_ST_INFO): New definition.
19957 * include/grub/ia64/efi/kernel.h: New file.
19958 * include/grub/ia64/efi/memory.h: Likewise.
19959 * include/grub/ia64/efi/time.h: Likewise.
19960 * include/grub/ia64/kernel.h: Likewise.
19961 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19962 * include/grub/ia64/time.h: New file.
19963 * include/grub/ia64/types.h: Likewise.
19964 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19965 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19966 New protos.
19967 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19968 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19969 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19970 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19971 All users updated.
19972 (EFI64_HEADER_SIZE): New definition. All users updated.
19973 (image_targets): Add ia64-efi.
19974 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19975 jumpers_addr. All users updated.
19976 Create function descriptors.
19977 (count_funcs): New function.
19978 (unaligned_uint32): New struct.
19979 (MASK20): New definition.
19980 (MASK19): Likewise.
19981 (MASKF21): Likewise.
19982 (add_value_to_slot_20b): New function.
19983 (add_value_to_slot_21_real): Likewise.
19984 (add_value_to_slot_21): Likewise.
19985 (ia64_kernel_trampoline): New struct.
19986 (nopm): New variable.
19987 (jump): Likewise.
19988 (make_trampoline): New function.
19989 (relocate_addresses): Handle ia64.
19990 (make_reloc_section): Likewise.
19991 (load_image): Likewise.
19992
983b414d
VS
199932011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19994
19995 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19996 warning. Move variables before code while on it.
19997
5d063cdc
VS
199982011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19999
20000 Fuloong support.
20001
20002 * configure.ac: Rename yeeloong platform to loongson. All users updated.
20003 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
20004 * grub-core/boot/mips/loongson/fuloong.S: New file.
20005 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
20006 Explicitly init CS5536.
20007 [FULOONG]: Don't use serial until CS5536 is available.
20008 Set GPIO based on dumps.
20009 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
20010 [FULOONG]: Handle GPIO and memory controller differences.
20011 Parse machine type in $a2.
20012 * grub-core/boot/mips/startup_raw.S: Determine and save the
20013 architecture.
20014 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
20015 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
20016 init on architecture type.
20017 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
20018 SIS315E. Don't init at_keyboard on fuloong.
20019 (grub_halt): Support Fuloong.
20020 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
20021 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
20022 (loongson_machtypes): New array.
20023 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
20024 type.
20025 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
20026 config. All users updated. Handle CS5536 serial.
20027 * grub-core/term/serial.c (grub_serial_register): Conditionalise
20028 default port on machine type. Register serial as inactive.
20029 * grub-core/video/sis315pro.c: New file.
20030 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
20031 definition.
20032 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
20033 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
20034 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
20035 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
20036 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
20037 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
20038 to ...
20039 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
20040 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
20041 definition.
20042 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
20043 (grub_arch_machine): New extern var.
20044 * include/grub/mips/loongson/serial.h
20045 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
20046 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
20047 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
20048 (GRUB_MACHINE_SERIAL_PORT0): ... this.
20049 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
20050 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
20051 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
20052 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
20053 * include/grub/term.h (grub_term_register_input_inactive): New inline
20054 function.
20055 (grub_term_register_output_inactive): Likewise.
20056 * include/grub/video.h (grub_video_driver_id): New value
20057 GRUB_VIDEO_DRIVER_SIS315PRO.
20058 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
20059 New field "names". All users updated.
20060 New field value IMAGE_FULOONG_FLASH.
20061 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20062
6ada82d1
JU
200632011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
20064
20065 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20066 and add some clarification.
20067
90c571a4
VS
200682011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20069
20070 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20071 platforms if kernel is compressed.
20072
de04eecf
VS
200732011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20074
20075 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20076 unused modules since currently referrence counter isn't reliable and
20077 there isn't much memory to recover there anyway.
20078
57688121
VS
200792011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20080
20081 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20082 rather than resetting it to allow modules to reference themselves
20083 in init.
20084
3d2c7e35
VS
200852011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20086
20087 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20088 counter on dependencies since grub_dl_unref already handles this.
20089
b25db218
VS
200902011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20091
20092 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20093 on error if not already done.
20094
25a45338
VS
200952011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20096
20097 Fix few potential memory misusage.
20098
20099 * grub-core/font/font.c (load_font_index): Don't free char_index to
20100 avoid double free.
b25db218
VS
20101 (grub_font_load): Zero-fill font at alloc for safety.
20102 Close file on error.
20103 (free_font): Free bmp_idx.
25a45338 20104
0cac83df
VS
201052011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20106
20107 * docs/grub.texi (Installation): Fix several outdated claims.
20108
2217a143
VS
201092011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20110
20111 Handle module_license on windows.
20112
20113 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20114 sections shifted.
20115 (insert_string): Make argument const char * instead of char *.
20116 (write_section_data): Handle long section names.
20117 Handle module_license.
20118
d4de6b01
VS
201192011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20120
20121 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20122 handle class-free menuentries.
20123 (grub_normal_add_menu_entry): Add a check to be sure.
20124
4c2a3b43
VS
201252011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20126
20127 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20128 PgUp and PgDown.
20129
85c6210f
VS
201302011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20131
20132 * configure.ac: Bump version to 1.99.
20133
36084912
VS
201342011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20135
20136 Give ATA device a bit more time on first try in order to allow disks
20137 to spin up.
20138
20139 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20140 if dev->present is 1. Reset dev->present on failure.
20141 (grub_ata_device_initialize): Set dev->present to 1.
20142 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20143 (grub_ata_device): New member 'present'.
20144
bda0e219
VS
201452011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20146
20147 * util/grub-mkimage.c (generate_image): Update hash.
20148
19e1c41b
VS
201492011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20150
20151 Flush caches on DMA memory.
20152
20153 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20154 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20155 (grub_dma_free): Likewise.
20156 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20157
91bbcc0c
VS
201582011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20159
20160 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20161 to avoid asm treating ld and sd as macros.
20162
60ddfad3
VS
201632011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20164
20165 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20166 decompressor.
20167
a298aa04
VS
201682011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20169
20170 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20171 grub_decompress_core since later would fail if grub_decompress_core
20172 is too far.
20173
9b44feca
VS
201742011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20175
20176 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20177 R_MIPS_JALR since it's used by newer compiler.
20178
56dbe7b4
VS
201792011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20180
20181 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20182
52856af2
VS
201832011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20184
20185 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20186 file_path to 0 for surety.
20187 (grub_chainloader_boot): Set exit_data to NULL.
20188 Unset the loader once done.
20189 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20190
9c9bfc6d
VS
201912011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20192
20193 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20194 unknown key into a dprintf.
20195
dd94a3df
VS
201962011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20197
20198 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20199 on first non-existant partition.
20200
fa68d99c
VS
202012011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20202
20203 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20204 openning fails.
20205 Reported by: Mark Korenberg.
20206
157effb7
VS
202072011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20208
20209 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20210 overflow.
20211
ea75312f
VS
202122011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20213
20214 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20215 before closing to ensure that it will be readable by grub-setup.
20216
072b5d31
VS
202172011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20218
20219 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20220 (devpath_1): Use MAKE_PIWG_PATH.
20221 (devpath_2): Likewise.
20222 (devpath_3): Likewise.
20223 (devpath_4): Likewise.
20224 (devpath_5): Likewise.
20225 (devpath_6): Likewise.
20226
20227 The appleldr.mod was checked that to be binary identical to previous
20228 version.
20229
7fae0051
Z
202302011-05-05 Zach <mikezackles>
20231
20232 Support 2010 Macbooks.
20233
20234 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20235 (devs): Add devpath_6.
20236
7c515bee
VS
202372011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20238
20239 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20240 /dev/random. /dev/urandom is good enough for our purposes (salting).
20241
ed660bd8
VS
202422011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20243
20244 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20245
ee5614b7
VS
202462011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20247
20248 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20249 hexadecimal.
20250
664889a6
VS
202512011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20252
20253 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20254 and not 0 on failure.
20255
bd405bbc
CW
202562011-05-03 Colin Watson <cjwatson@ubuntu.com>
20257
20258 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20259 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20260 disk; otherwise grub_fs_probe will not fall back to the next
20261 filesystem.
20262 (grub_pxefs_open): Likewise, for consistency.
20263 Reported and tested by: Ezekiel Grave.
20264
4ebff753
CW
202652011-05-03 Colin Watson <cjwatson@ubuntu.com>
20266
20267 * tests/partmap_test.in: Don't hardcode path to parted.
20268 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20269
8f942553
CW
202702011-05-01 Colin Watson <cjwatson@ubuntu.com>
20271
20272 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20273 of `ls' to find out which devices are available.
20274
3c62402d
VS
202752011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20276
20277 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20278 than source address for efi mmap buffer.
20279
723f63f2
VS
202802011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20281
20282 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20283 wrong action on non-detecting the magic.
20284
68797f92
VS
202852011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20286
20287 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20288 already supplied by another part of the module (fixes compilation on
20289 FreeBSD).
20290
6be8715d
VS
202912011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20292
20293 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20294 match the one used by mdadm.
20295
e91dba5b
CW
202962011-04-21 Colin Watson <cjwatson@ubuntu.com>
20297
20298 * po/README: Add instructions for creating po/LINGUAS.
20299
c85140b3
CW
203002011-04-21 Colin Watson <cjwatson@ubuntu.com>
20301
20302 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20303 #551428.
20304
20305 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20306 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20307 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20308 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20309 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20310 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20311 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20312 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20313 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20314 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20315 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20316 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20317 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20318 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20319 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20320 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20321 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20322 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20323 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20324 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20325 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20326 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20327
92051871
CW
203282011-04-21 Colin Watson <cjwatson@ubuntu.com>
20329
20330 * grub-core/kern/emu/getroot.c
20331 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20332 test that was incorrectly reintroduced in r3214.
20333 Reported by: Ian Dall. Fixes Savannah bug #33133.
20334
b13f79a4
CW
203352011-04-21 Colin Watson <cjwatson@ubuntu.com>
20336
20337 Fix stack pointer handling in 16-bit relocator.
20338
20339 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20340 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20341 Fixes Ubuntu bug #683904.
20342
9b710a88
VS
203432011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20344
20345 * configure.ac: Bump version to 1.99~rc2.
20346
d97e7b59
VS
203472011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20348
20349 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20350 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20351 * grub-core/lib/x86_64/setjmp.S: Likewise.
20352 * grub-core/lib/mips/setjmp.S: Likewise.
20353 * grub-core/lib/powerpc/setjmp.S: Likewise.
20354 * grub-core/lib/sparc64/setjmp.S: Likewise.
20355
0624551c
VS
203562011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20357
20358 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20359 * grub-core/lib/efi/datetime.c: Likewise.
20360
e8f28d4c
VS
203612011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20362
20363 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20364 New function.
20365 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20366 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20367 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20368
bba79a15
VS
203692011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20370
20371 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20372 bitmap.
20373 (grub_gfxterm_term_init): Likewise.
20374
abc474ef
VS
203752011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20376
20377 Take into account the decorations the computing menu entry width.
20378
20379 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20380 (grub_gfxmenu_create_box): Register get_border_width.
20381 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20382 if available.
20383 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20384 get_border_width.
20385
e74b3947
EP
203862011-04-18 Endres Puschner <code@e7p.de>
20387
20388 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20389 Don't skip first class.
20390
34faa595
VS
203912011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20392
20393 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20394 chunks.
20395 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20396
93a777e3
VS
203972011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20398
20399 Complete 64-bit division support.
20400
20401 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20402 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20403 * include/grub/misc.h (grub_divmod64): Rename to ...
20404 (grub_divmod64_full): ... this.
20405 (grub_divmod64): New inline function.
20406
a5102d94
VS
204072011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20408
20409 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20410
f3fb7b36
VS
204112011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20412
20413 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20414 performing the necessary test.
20415
9ac718b0
VS
204162011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20417
20418 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20419 (kfreebsd.elf): Likewise.
20420 (pc-chainloader.elf): Likewise.
20421 (ntldr.elf): Likewise.
20422
50d2cc5a
VS
204232011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20424
20425 Identify RAID by its UUID rather than (guessed) name.
20426
20427 * grub-core/disk/raid.c (ascii2hex): New function.
20428 (grub_raid_open): Accept mduuid/%s specification.
20429 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20430 (get_mdadm_uuid): ... this.
20431 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20432
e03f7bea
VS
204332011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20434
20435 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20436 to negative size.
20437
e74c3112
CW
204382011-04-13 Colin Watson <cjwatson@ubuntu.com>
20439
20440 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20441 btrfs subvolume.
20442 * util/grub.d/20_linux_xen.in: Likewise.
20443
78fa584f
CW
204442011-04-13 Colin Watson <cjwatson@ubuntu.com>
20445
20446 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20447 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20448
20449 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20450 Build a list of relevant visible mounts using the mnt_id and
20451 parent_mnt_id fields, and then scan that list at the end.
20452
9d5f8162
CW
204532011-04-12 Colin Watson <cjwatson@ubuntu.com>
20454
20455 * docs/grub.texi (normal): New section.
20456 (normal_exit): New section.
20457 (Embedded configuration): Add reference to normal.
20458 (GRUB only offers a rescue shell): Likewise.
20459 * docs/grub-dev.texi (Error Handling): Fix typo.
20460
09a9d66f
CW
204612011-04-12 Colin Watson <cjwatson@ubuntu.com>
20462
20463 * NEWS: Drop obsolete entry about probe-only btrfs support.
20464
0c676933
CW
204652011-04-12 Colin Watson <cjwatson@ubuntu.com>
20466
20467 * util/import_gcry.py: Fix typo.
20468
ec9f5e0d
VS
204692011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20470
20471 * NEWS: Add btrfs support.
20472
fe6b2cba
VS
204732011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
204742011-04-11 Colin Watson <cjwatson@ubuntu.com>
20475
20476 BtrFS support. Written by me (Vladimir) with important bugfixes and
20477 even more important testing by Colin.
20478
20479 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20480 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20481 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20482 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20483 mem_input_off and mem_input. All users updated to accept in-RAM input.
20484 (gzio_seek): New function.
20485 (test_zlib_header): Likewise.
20486 (grub_gzio_read): Likewise.
20487 (grub_zlib_decompress): Likewise.
20488 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20489 Accept partial and non-virtual mounts.
20490 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20491 avoid receiving /dev/dm-X as device.
20492 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20493 Handle bind and partial mounts.
20494 * grub-core/lib/crc.c: New file.
20495 * include/grub/deflate.h: Likewise.
20496 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20497 proto.
20498 * include/grub/lib/crc.h: New file.
20499
e745cf0c
VS
205002011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20501
20502 Implement automatic module license checking according to new GNU
20503 guidelines.
20504
20505 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20506 (grub_dl_load_core): Use grub_dl_check_license.
20507 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20508 (GRUB_MOD_LICENSE): Likewise.
20509 (GRUB_MOD_DUAL_LICENSE): Likewise.
20510 All modules updated.
20511
2a9bc016
CW
205122011-04-11 Colin Watson <cjwatson@ubuntu.com>
20513
20514 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20515 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20516 loaders.
20517 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20518
8a3bc88e
VS
205192011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20520
20521 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20522
af869a4a
VS
205232011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20524
20525 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20526 failed.
20527
9ee8d94f
VS
205282011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20529
20530 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20531 parenthesis in the middle of the filename.
20532
b01abe3e
VS
205332011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20534
20535 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20536 rather than trying to put initrd way too high.
20537 Reported by: Ryan Lortie <desrt@desrt.ca>
20538
335bda1e
VS
205392011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20540
20541 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20542 improperly removed string.
20543
5ca1a64d
VS
205442011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20545
20546 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20547 is_disk.
20548 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20549 (open_device) Likewise.
20550 (grub_util_biosdisk_close): Likewise.
d8ce9995 20551 Reported by: Mark Korenberg.
5ca1a64d 20552
cbac5b1e
AK
205532011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20554
20555 * util/grub-mkconfig_lib.in: Add missing quotes.
20556
088cdb65
CW
205572011-04-10 Colin Watson <cjwatson@ubuntu.com>
20558
20559 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20560 is NULL.
20561
8b8a81fa
VS
205622011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20563
20564 Dynamically count the number of lines for the lower banner.
20565
20566 * grub-core/normal/menu_entry.c (per_term_screen): New member
20567 num_entries.
20568 (print_down): Use num_entries.
20569 (update_screen): Likewise.
20570 (grub_menu_entry_run): Set num_entries.
20571 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20572 num_entries.
20573 (grub_print_message_indented): Move real part to ...
20574 (grub_print_message_indented_real): ... here. Additional argument
20575 dry_run.
20576 (draw_border): Additional argument num_entries.
20577 (print_message): Additional argument dry_run.
20578 (print_entries): Receive menu viewer data.
20579 (grub_menu_init_page): New argment num_entries.
20580 (menu_text_set_chosen_entry): Use num_entries.
20581 (grub_menu_try_text): Likewise.
20582 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20583 All users updated.
20584 (grub_ucs4_count_lines): New function.
20585 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20586 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20587 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20588 (grub_term_border_height): Likewise.
20589 (grub_term_num_entries): Likewise.
20590
277f955b
VS
205912011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20592
20593 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20594 Remove now unused string.
20595
536ce85a
CW
205962011-04-09 Colin Watson <cjwatson@ubuntu.com>
20597
20598 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20599 build system.
20600 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20601
20602 (Comment): Fix typo.
20603 (Getting started): General copy-editing.
20604 (Typical Development Experience): Likewise.
20605 (Error Handling): Likewise.
20606 (Video API): Likewise.
20607
2cf09e32
CW
206082011-04-09 Colin Watson <cjwatson@ubuntu.com>
20609
20610 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20611 throughout.
20612
1ec652f4
VS
206132011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20614
20615 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20616 directory.
20617
2c583728
CW
206182011-04-08 Colin Watson <cjwatson@ubuntu.com>
20619
20620 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20621 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20622 "development".
20623
d7a565e9
VS
206242011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20625
20626 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20627 grub_strcpy since the lines aren't necessarily 0-terminated.
20628
7c2e4909
VS
206292011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20630
20631 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20632 root on legacy.
20633
34c09785
VS
206342011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20635
20636 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20637 (GRUB_MOD_INIT): DEVICE isn't optional.
20638
6a6f8058
VS
206392011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20640
20641 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20642 word on new line if it's too long anyway. Fixes a hang.
20643
2e335e90
VS
206442011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20645
20646 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20647 const.
20648 * util/grub-setup.c (main): Reuse md device name if available.
20649 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20650 not GRUB name as argument.
20651 Based on patch by: Florian Wagner <fwagner>.
20652
10a7a867
VS
206532011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20654
20655 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20656 Place mbi on low memory for better compatibility.
20657
7a3d6cd9
VS
206582011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20659
20660 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20661
18dd6b47
VS
206622011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
206632011-04-08 Colin Watson <cjwatson@ubuntu.com>
20664
20665 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 20666 * conf/Makefile.common: Likewise.
18dd6b47 20667
3c0e3f14
VS
206682011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20669
f7148863
VS
20670 * grub-core/normal/menu.c: Add missing include.
20671
206722011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20673
20674 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 20675
6d1fa41f
MZ
206762011-04-08 Martin Zuther <mzuther@mzuther.de>
20677
20678 * util/grub-mkconfig.in: Ignore emacsen backup.
20679
478182a8
VS
206802011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20681
20682 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20683 on open.
20684 (grub_util_biosdisk_close): Likewise.
20685
72a89a54
VS
206862011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20687
20688 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20689 const attribute and use grub_isdigit.
20690
b5ebecfa
A
206912011-04-06 Andrey <dev_null@ukr.net>
20692
20693 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20694 gcc warning.
20695
7755f66e
VS
206962011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20697
20698 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20699 useful grub_dprintf's.
20700
461121ff
VS
207012011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20702
20703 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20704
2a961775
VS
207052011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20706
20707 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20708
adf594cc
VS
207092011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20710
20711 Output errors if theme loading failed.
20712
20713 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20714 grub_gfxterm_fullscreen on error paths to ...
20715 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20716 theme loading error.
20717
665900a3
VS
207182011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20719
20720 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20721 space for older compilers.
20722 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20723
a562b479
VS
207242011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20725
20726 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20727 and report them as not RAID members since they are useless for GRUB.
20728 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20729
850e9373
VS
207302011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20731
20732 Increase LVM implementation robustness in order not to crash on
20733 configurations like pvmove. Previously code assumed that in some places
20734 only lvs or only pvs are used whereas it seems that they are used
20735 interchangeably.
20736
20737 * grub-core/disk/lvm.c (read_node): New function.
20738 (read_lv): Use read_node.
20739 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20740 Match volumes only at the end when all lvs are found. Take both
20741 pvs (first) and lvs (second) into account.
20742 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20743 mirror_* into node_*. All users updated.
20744 (grub_lvm_stripe): Merge this ...
20745 (grub_lvm_mirror): ... and this ...
20746 (grub_lvm_node): ... into this. All users updated.
20747
6f332153
VS
207482011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20749
20750 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20751 of function to allow further scanning for LVMs.
20752
829ea451
VS
207532011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20754
20755 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20756 on failed seek as it breaks open fd reusage.
20757
09ceb9a5
VS
207582011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20759
20760 * util/grub-install.in: Add a recommendation to use --recheck before
20761 reporting bugs.
20762
67e11623
VS
207632011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20764
20765 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20766 are obtained.
20767
caee5efd
VS
207682011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20769
20770 GRUB developper manual based on existing Internals section and
20771 contributions by the various authors with active copyright assignment.
20772
20773 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20774 * docs/font_char_metrics.png: New file.
20775 * docs/font_char_metrics.txt: Likewise.
20776 * docs/grub-dev.texi: Likewise.
20777 * docs/grub.texi (Internals): Move from here ...
20778 * docs/grub-dev.texi: ... here.
20779
2cccc747
CW
207802011-04-01 Colin Watson <cjwatson@ubuntu.com>
20781
20782 Store the loopback device as data on loopback grub_disk structures,
20783 rather than the file it points to. This fixes use of freed memory
20784 if an existing loopback device is replaced.
20785
20786 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20787 disk->data, not dev->file.
20788 (grub_loopback_read): Adjust file assignment to match.
20789 Fixes Ubuntu bug #742967.
20790
186ae367
CW
207912011-04-01 Colin Watson <cjwatson@ubuntu.com>
20792
20793 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20794 when replacing an existing device.
20795
cfed2ad0
VS
207962011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20797
20798 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20799 memory corruptions.
20800
20801 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20802 unsigned.
20803 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20804 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20805 (grub_jfs_read_inode): Likewise.
20806 (grub_jfs_opendir): Likewise. Remove now useless casts.
20807 (grub_jfs_getent): Likewise.
20808 Make ino a grub_uint32_t rather than int.
20809 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20810 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20811 division and module with bit operations.
20812 (grub_jfs_find_file): Make ino a grub_uint32_t.
20813 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20814
05d2ed32
CW
208152011-04-01 Colin Watson <cjwatson@ubuntu.com>
20816
20817 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20818 warning. (This was in fact always initialised before use, but GCC
20819 wasn't smart enough to prove that.)
20820 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20821
91dc6073
VS
208222011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20823
20824 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20825 stack alignment.
20826 (efi_wrap_1): Likewise.
20827 (efi_wrap_2): Likewise.
20828 (efi_wrap_3): Likewise.
20829 (efi_wrap_4): Likewise.
20830 (efi_wrap_5): Likewise.
20831 (efi_wrap_6): Likewise.
20832 (efi_wrap_10): Likewise.
20833 Based on information by: Red Hat/Peter Jones.
20834
a8afc1d1
CW
208352011-03-31 Colin Watson <cjwatson@ubuntu.com>
20836
20837 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20838 set-but-not-used variable.
20839
a826cc7d
CW
208402011-03-31 Colin Watson <cjwatson@ubuntu.com>
20841
20842 * docs/grub.texi (Simple configuration): Be more explicit about
20843 GRUB_DEFAULT, and add an example.
20844 Reported by: Leslie Rhorer.
20845
875b67ba
CW
208462011-03-30 Colin Watson <cjwatson@ubuntu.com>
20847
20848 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20849 shell".
20850
fd7cd914
AS
208512011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20852
20853 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20854 * util/grub.d/20_linux_xen.in: Likewise.
20855
090b1b6a
VS
208562011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20857
20858 * util/grub.d/10_linux.in: Try alternative config filenames where
20859 we parse config file.
20860 * util/grub.d/20_linux_xen.in: Likewise.
20861
baad885c
AS
208622011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20863
20864 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20865 * util/grub.d/20_linux_xen.in: Likewise.
20866
241e41f5
VS
208672011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20868
20869 * grub-core/disk/raid.c (insert_array): Add few potentially
20870 useful grub_util_info.
20871 (grub_raid_register): Likewise.
20872
56445fb2
VS
208732011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20874
20875 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20876 Preserve partition number in mdadm code path.
20877
c871b1c6
VS
208782011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20879
20880 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20881 few potentially useful grub_util_info.
20882
5e631b4f
CW
208832011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20884
20885 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20886
2d5d0333
CW
208872011-03-30 Colin Watson <cjwatson@ubuntu.com>
20888
20889 * docs/grub.texi (default): Use @example rather than nested
20890 itemized lists to avoid breaking gendocs.
20891
3d7ed04e
CW
208922011-03-30 Colin Watson <cjwatson@ubuntu.com>
20893
20894 * docs/grub.texi (Future): Update.
20895
abf04200 208962011-03-30 Colin Watson <cjwatson@ubuntu.com>
20897
20898 * docs/grub.texi (Environment): New chapter.
20899 (Changes from GRUB Legacy): Link to "Environment block" section for
20900 details of limitations.
20901 (Simple configuration): Likewise. Link to documentation of gfxmode
20902 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20903 respectively.
20904 (Shell-like scripting): Note that normal variables are stored in the
20905 environment.
20906 (gettext): Link to documentation of lang and locale_dir.
20907 (list_env): New section.
20908 (load_env): New section.
20909 (save_env): New section.
20910
20911 (Reporting bugs): Fix typo.
20912
e1ad0edd
VS
209132011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20914
20915 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20916 the example.
20917
5d803174
VS
209182011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20919
20920 * grub-core/term/at_keyboard.c (set_scancodes)
20921 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20922
2a2da1d0
CW
209232011-03-30 Colin Watson <cjwatson@ubuntu.com>
20924
20925 * docs/grub.texi (Menu-specific commands): Remove some semantics
20926 that were true in GRUB Legacy but not in GRUB 2.
20927 (submenu): New section.
20928 (false): New section.
20929 (read): New section.
20930 (true): New section.
20931
a7527639
CW
209322011-03-30 Colin Watson <cjwatson@ubuntu.com>
20933
20934 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20935
209362011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
20937
20938 * docs/grub.texi (Simple configuration): Explain some of the
20939 current limitations of grub-mkconfig.
8a748df2 20940 Reported by: Leslie Rhorer.
e30af029 20941
fc858482
VS
209422011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20943
20944 Old macs search for boot.efi rather than for bootia32.efi.
20945
20946 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20947 * util/grub-mkrescue.in: Likewise.
20948 Suggested by: Peter Jones.
20949
e1eb511d
VS
209502011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20951
20952 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20953
70e75364
VS
209542011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20955
20956 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20957 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20958 (grub_lvm_mirror): New struct.
20959 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20960 (grub_lvm_iterate): Iterate only visible volumes.
20961 (grub_lvm_read): Factor out to ..
20962 (read_lv): ... this. Support mirrors.
20963 (grub_lvm_read): New wrapper function.
20964 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20965 stripped or mirrored.
20966
fc18f6a3
VS
209672011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20968
20969 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20970
5c650f4c
CW
209712011-03-29 Colin Watson <cjwatson@ubuntu.com>
20972
20973 * docs/grub.texi (loopback): New section.
20974
61d7156b
CW
209752011-03-29 Colin Watson <cjwatson@ubuntu.com>
20976
20977 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20978 removed -p option.
20979
994b8264
CW
209802011-03-29 Colin Watson <cjwatson@ubuntu.com>
20981
20982 * docs/grub.texi (BIOS installation): New section, partly based on
20983 previous text in other sections.
20984 (Installing GRUB using grub-install): Replace BIOS discussion with a
20985 cross-reference.
20986 (Images): Likewise.
20987
9e4d19e0
VS
209882011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20989
20990 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20991 [HAVE_DIOCGDINFO]: Add safety checks.
20992
a307c0b2
VS
209932011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20994
20995 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20996 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20997
b4db4f39
CW
209982011-03-29 Colin Watson <cjwatson@ubuntu.com>
20999
21000 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
21001 real_sb->size is zero (e.g. RAID-0), get the disk size from
21002 real_sb->data_size instead.
21003 Fixes Ubuntu bug #743136.
21004
35e5f84c
VS
210052011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21006
21007 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
21008 printf clauses for printing size and start.
21009
d2e29d81
VS
210102011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21011
21012 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
21013 Reported and tested by: Timothy Nikkel.
21014
ed5587af
VS
210152011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21016
21017 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
21018 (dirty_region_add_real): ... this.
21019 (dirty_region_add): Don't discard margin refresh when performing
21020 scheduled repaint.
21021
a1dc717c
VS
210222011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21023
21024 * grub-core/lib/relocator.c (allocate_regstart)
21025 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
21026 terminals are capabple of malloc-free operation.
21027 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21028 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21029
9f3677d3
VS
210302011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
21031
21032 * util/grub-setup.c: Copy the partition table zone if floppy support
21033 is disabled, even if no partition table is found.
21034
21035 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
21036 during POST if an invalid partition table is contained in the PBR
21037 of the active partition when GRUB is installed to a partition.
21038
24148725
CW
210392011-03-28 Colin Watson <cjwatson@debian.org>
21040
21041 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
21042 comment.
21043
f329eda7
CW
210442011-03-28 Colin Watson <cjwatson@debian.org>
21045
21046 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
21047 to be specific about what kind of RAID device we're scanning for.
21048
c482ad98
SG
210492011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
21050
21051 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
21052 return freed string.
21053
5ee04984
VS
210542011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21055
21056 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
21057
f4727da9
VS
210582011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21059
21060 Use libgeom on FreeBSD to detect partitions.
21061
21062 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21063 (grub-mkrelpath): Likewise.
21064 (grub-script-check): Likewise.
21065 (grub-editenv): Likewise.
21066 (grub-mkpasswd-pbkdf2): Likewise.
21067 (grub-fstest): Likewise.
21068 (grub-mkfont): Likewise.
21069 (grub-mkdevicemap): Likewise.
21070 (grub-probe): Likewise.
21071 (grub-setup): Likewise.
21072 (grub-ofpathname): Likewise.
21073 (grub-mklayout): Likewise.
21074 (example_unit_test): Likewise.
21075 (grub-menulst2cfg): Likewise.
21076 * grub-core/Makefile.core.def (grub-emu): Likewise.
21077 (grub-emu-lite): Likewise.
21078 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21079 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21080 define HAVE_DIOCGDINFO.
21081 (follow_geom_up) [FreeBSD]: New function.
21082 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21083 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21084 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21085 unconditionally of HAVE_DIOCGDINFO.
21086
82fe6c75
VS
210872011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21088
21089 Fix FreeBSD compilation problem.
21090
21091 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21092 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21093
4c6c9431
CW
210942011-03-24 Colin Watson <cjwatson@ubuntu.com>
21095
21096 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21097 Switch back to page zero before loading a kernel, since some kernel
21098 drivers expect that.
21099 Thanks to: Felix Kuehling.
21100
c7064d94
VS
211012011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21102
21103 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21104 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21105 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21106
3f71cded
VS
211072011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21108
21109 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21110 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21111
ef6de21a
VS
211122011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21113
21114 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21115 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21116 malloc is disabled.
21117
8bc66a2c
VS
211182011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21119
21120 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21121 for modules headers when counting the needed allocation size.
21122
5657722c
VS
211232011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21124
21125 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21126 if no ASCII character is found to prevent crash.
21127
41a85f55
AK
211282011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21129
21130 * grub-core/video/bitmap.c (match_extension): Ignore case.
21131
59e1e5f1
VS
211322011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21133
21134 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21135
bd4d051a
VS
211362011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21137
21138 * grub-core/script/parser.y: Declare "time" as valid argument.
21139
bae7fcc1
PJ
211402011-03-23 Peter Jones <pjones@redhat.com>
21141
21142 Fix incorrect assert failure reporting.
21143
21144 * grub-core/tests/example_functional_test.c (example_test): Add
21145 a failure comment.
21146 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21147 (failure_start): ...this. Check that malloc succeeded.
21148 Don't call xvasprintf. Return failure struct.
21149 (failure_append_vtext): New function.
21150 (failure_append_text): Likewise.
21151 (add_failure): Likewise.
21152 (grub_test_assert_helper): Likewise.
21153 * include/grub/test.h (grub_test_assert_helper): New declaration.
21154 (grub_test_assert): Macro rewritten.
21155
537dc9be
VS
211562011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21157
21158 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21159
fa3e01bf
VS
211602011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21161
21162 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21163
b1d28404
VS
211642011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21165
21166 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21167 into GRUB-style one.
21168
2e3e2e09
VS
211692011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21170
21171 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21172 error and not grub_errno.
21173 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21174
ed57e557
VS
211752011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21176
21177 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21178 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21179
d1611f01
VS
211802011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21181
21182 * grub-core/efiemu/i386/pc/cfgtables.c
21183 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21184 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21185 (grub_xnu_unlock): Likewise.
21186 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21187
7d4e39d6
VS
211882011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21189
21190 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21191 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21192 * grub-core/commands/hashsum.c (aliases): Likewise.
21193 * grub-core/commands/setpci.c (pci_registers): Likewise.
21194 * grub-core/disk/usbms.c (attach_hook): Likewise.
21195 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21196 (zio_checksum_table): Likewise.
21197 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21198 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21199 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21200 * grub-core/lib/relocator.c (leftovers): Likewise.
21201 (extra_blocks): Likewise.
21202 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21203 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21204 (modules_last): Likewise.
21205 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21206 (devices): Likewise.
21207 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21208 (modules_last): Likewise.
21209 * grub-core/normal/auth.c (users): Likewise.
21210 * grub-core/normal/context.c (initial_menu): Likewise.
21211 (current_menu): Likewise.
21212 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21213 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21214 (grub_serial_terminfo_input_template): Likewise.
21215 (grub_serial_terminfo_output_template): Likewise.
21216 (grub_serial_terminfo_input): Likewise.
21217 (grub_serial_terminfo_output): Likewise.
21218 (registered): Likewise.
21219 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21220
40fc4659
VS
212212011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21222
21223 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21224 grub_video_mode_type_t.
21225 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21226 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21227 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21228
2da48d28
VS
212292011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21230
21231 * util/grub-install.in: Correct the x86-64 name as x86_64.
21232
9b43bf39
CW
212332011-03-11 Colin Watson <cjwatson@ubuntu.com>
21234
21235 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21236 initial chunk read from the kernel always includes GRUB's multiboot
21237 header, which is now outside the first sector.
21238
be1a7ce0
CW
212392011-03-09 Colin Watson <cjwatson@ubuntu.com>
21240
21241 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21242 cached mmap_size, so that this works correctly when called multiple
21243 times.
21244 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21245
83a3c48d
CW
212462011-03-09 Colin Watson <cjwatson@ubuntu.com>
21247
21248 * docs/grub.texi (Simple configuration): Tidy up formatting.
21249
57d75699
SJ
212502011-03-07 Szymon Janc <szymon@janc.net.pl>
21251
21252 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21253 Set-but-not-used variable removed.
21254
028501a0
VS
212552011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21256
21257 Workaround yet another IEEE1275 bug.
21258
21259 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21260 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21261 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21262 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21263 is set.
21264 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21265 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21266
d998657d
VS
212672011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21268
21269 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21270 error.
21271
fee7cdd4
CW
212722011-02-11 Colin Watson <cjwatson@ubuntu.com>
21273
21274 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21275 empty, since in that case we can only generate either nothing or a
21276 syntactically invalid configuration file.
21277 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21278
97286eb5
CW
212792011-02-09 Colin Watson <cjwatson@ubuntu.com>
21280
21281 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21282 (Making a GRUB bootable CD-ROM): Likewise.
21283 (Invoking grub-mkrescue): New section.
21284 Reported by: Yann Dirson. Fixes Debian bug #612585.
21285
22b28eb3
CW
212862011-02-09 Colin Watson <cjwatson@ubuntu.com>
21287
21288 * util/grub-install.in: Remove unnecessary brackets from tr
21289 arguments.
21290 * util/grub.d/10_hurd.in: Likewise.
21291 * util/grub.d/10_kfreebsd.in: Likewise.
21292 * util/grub.d/10_linux.in: Likewise.
21293 * util/grub.d/20_linux_xen.in: Likewise.
21294 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21295
7e735e43
CW
212962011-02-08 Colin Watson <cjwatson@ubuntu.com>
21297
21298 * include/grub/file.h (not_easly_seekable): Rename to ...
21299 (not_easily_seekable): ... this. Update all users.
21300
800f1881
CW
213012011-01-28 Colin Watson <cjwatson@ubuntu.com>
21302
21303 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21304 grub-mkrescue.
21305
3281d3d6
VS
213062011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21307
21308 * util/grub-mkimage.c (generate_image): Refuse to create the images
21309 bigger than the actual flash (512K) in Loongson machines. 512K is also
21310 the biggest chip supported by them.
21311
3533413c
VS
213122011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21313
21314 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21315
73ae4f4f
VS
213162011-01-22 Anthony DeRobertis <anthony@derobert.net>
21317
21318 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21319 super_offset field.
21320
37f4f608
VS
213212011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21322
21323 * util/grub-install.in: Ignore install device on platforms
21324 where it doesn't make sense. Always use UUIDs except on pc, efi and
21325 sparc64.
21326 Reported by: Daniel Kahn Gillmor.
21327
03a4ccb5
VS
213282011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21329
21330 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21331
ffc8f4d8
VS
213322011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21333
21334 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21335 (iterate_real): Don't rely on partition being non-NULL.
21336
80f23be7
VS
213372011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21338
21339 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21340 supported platforms. Put a compile time assert for this rather than
21341 generate a warning with 32-bit shift.
21342
5d4f4dd5
VS
213432011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21344
21345 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21346 logical expression more readable.
21347
e489601a
VS
213482011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21349
21350 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21351 even if some elements have a name.
21352 Reported by: Alexander GQ Gerasiov.
21353
96e0a6ea
CW
213542011-01-22 Colin Watson <cjwatson@ubuntu.com>
21355
21356 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21357 path unreadable if `grub-probe -t abstraction' fails, for example if
21358 memberlist fails on an LVM volume group.
21359 Reported by: Darius Jahandarie.
21360
81431e2b
CW
213612011-01-22 Colin Watson <cjwatson@ubuntu.com>
21362
21363 * docs/grub.texi (Simple configuration): Document
21364 GRUB_PRELOAD_MODULES.
21365
5e79d66a
CW
213662011-01-17 Colin Watson <cjwatson@ubuntu.com>
21367
21368 * .bzrignore: Remove nonexistent grub-pbkdf2.
21369
646ada34
VS
213702011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21371
21372 * configure.ac: Bump version to 1.99~rc1.
21373
04360337
VS
213742011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21375
21376 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21377 for safety.
21378
46c9db88
VS
213792011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21380
21381 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21382 module.
21383
213842011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
21385
21386 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21387
4fbf1852
VS
213882011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21389
21390 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21391 diskdevid.
21392
f1632d4d
VS
213932011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21394
21395 Fix compilation on cygwin.
21396
21397 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21398 -R .drectve on cygwin.
21399 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21400 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21401 (COND_CYGWIN): New condition.
21402 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21403 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21404 not @TARGET_OBJ2ELF@.
21405 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21406 type to determine whether aux is to be used.
21407
0b5e127b
VS
214082011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21409
21410 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21411 realpath'ed device string.
21412 Handle floppy (somewhat).
21413 Issue error in unknown case rather than garbage.
21414 Reported by: Axel Beckert.
21415
173b71e9
VS
214162011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21417
21418 * util/grub.d/00_header.in (load_video): Handle the case when no video
21419 drivers available.
21420 Thanks to: Axel Beckert.
21421
f8f479db
VS
214222011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21423
21424 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21425 variable. Fixes problem on big endian platforms.
21426
8fc0a245
VS
214272011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21428
21429 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21430 It doesn't work well there.
21431
b8494fbe
VS
214322011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21433
21434 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21435 warning.
21436 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21437 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21438 counter.
21439
b44a558c
VS
214402011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21441
21442 Use alias->path rather than buggy "canon".
21443
21444 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21445 (ofdisk_hash_add): New argument curcan. All users updated.
21446
51fa856c
CW
214472011-01-11 Colin Watson <cjwatson@ubuntu.com>
21448
21449 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21450
9da068a5
VS
214512011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21452
21453 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21454 loadmask before doing any calculations. Use correct type for offset.
21455 (grub_linux_load64): Likewise.
21456
86205c94
CW
214572011-01-11 Colin Watson <cjwatson@ubuntu.com>
21458
21459 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21460 with NULL.
21461 (console_grub_equivalences_unshift): Likewise.
21462 Reported by: Daniel Dehennin.
21463
4531a206
VS
214642011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21465
21466 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21467 (set_env_limn_ro): Likewise.
21468 (GRUB_MOD_INIT): Likewise.
21469 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21470 ARRAY_SIZE while on it.
21471 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21472 * grub-core/normal/context.c (grub_env_export): Move from here ...
21473 * grub-core/kern/env.c (grub_env_export): ... here.
21474 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21475 prefix.
21476 * grub-core/kern/main.c (grub_main): Export root and prefix.
21477 * include/grub/env.h (grub_env_export): Export.
21478 Reported by: Seth Goldberg.
21479
45146057
VS
214802011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21481
21482 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21483 Take into account space used by ELF sections and multiboot palette.
21484 Reported by: Grégoire Sutre.
21485
f093110b
VS
214862011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21487
21488 * BUGS: New file.
21489
3395fe52
VS
214902011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21491
21492 Pass more appropriate video id to Linux.
21493
21494 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21495 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21496 fill have_vga.
21497 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21498 shift params->lfb_size.
21499 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21500
c2fa6cbb
VS
215012011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21502
21503 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21504
b3ff6ff0
VS
215052011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21506
21507 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21508 separator and pass bootpath/devid even if only one of them is available.
21509 Reported by: Seth Goldberg.
21510
ae67942e
VS
215112011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21512
21513 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21514 implementations bug on them.
21515
21516 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21517 memory.
21518 (filter_memory_map): Likewise.
21519
d570097a
VS
215202011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21521
21522 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21523 Reported by: nebuchadnezzar.
21524
a508e776
VS
215252011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21526
21527 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21528 Reported by: nebuchadnezzar.
21529
dcb883b1
VS
215302011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21531
21532 Submenu default support.
21533
21534 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21535 auto_boot. All users updated.
21536 Declared static.
21537 Handle chosen and default with submenus.
21538 (grub_menu_execute_with_fallback): Declared static.
21539 Don't notify failure if autobooted. Upper level does it.
21540 (menuentry_eq): New function.
21541 (get_entry_number): Use menuentry_eq.
21542 (show_menu): New parameter "autobooted". All users updated.
21543 (grub_show_menu): Likewise.
21544 * include/grub/normal.h (grub_show_menu): Likewise.
21545 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21546 (grub_menu_execute_with_fallback): Likewise.
21547
6fef99b4
VS
215482011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21549
21550 * util/grub-mklayout.c (usage): Update help text.
21551
47a77af5
VS
215522011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21553
21554 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21555
ce6bb3ee
VS
215562011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21557
21558 * util/grub-menulst2cfg.c (main): Trim the line.
21559
db87be2a
VS
215602011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21561
21562 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21563 (grub_machine_init): Don't check amount of low memory as reportedly
21564 INT 12h can be broken and if low memory is too low we wouldn't have
21565 gotten into grub_machine_init anyway.
21566
c49849cc
VS
215672011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21568
21569 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21570 (grub_machine_mmap_iterate): Take low memory into account
21571
b1969b30
VS
215722011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21573
21574 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21575 badfs.
21576 Reported by: TiCPU.
21577
cf0eaf13
VS
215782011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21579
21580 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21581 members errors.
21582
1f060f39
GS
215832011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21584
21585 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21586 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21587
a21e5672
GS
215882011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21589
21590 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21591 openbsd and netbsd types being in part_bsd module.
21592
c88172fa
VS
215932011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21594
21595 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21596 (_FILE_OFFSET_BITS): Likewise.
21597 Reported by: Seth Goldberg.
21598
53798c4b
GS
215992011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21600
21601 * configure.ac: Check for libdevmapper header.
21602
e7121b69
VS
216032011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21604
21605 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21606 avoid aliasing.
21607 (fzap_lookup): Likewise.
21608 (dnode_get): Likewise.
21609 (make_mdn): Likewise.
21610 (zfs_mount): Likewise.
21611 (fzap_iterate): Use temporary pointer to avoid aliasing.
21612 (grub_zfs_read): Likewise.
21613 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21614 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21615 pointers to avoid aliasing.
21616 (grub_cmd_xnu_kernel64): Likewise.
21617 (grub_xnu_load_driver): Likewise.
21618
fc836af9
VS
216192011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21620
21621 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21622 aliasing warning.
21623 (grub_cmd_terminal_output): Likewise.
21624 Reported and tested by: Grégoire Sutre.
21625
f9f37648
VS
216262011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21627
21628 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21629 warning.
21630 Reported and tested by: Grégoire Sutre.
21631
ec1dfd63
VS
216322011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21633
21634 * configure.ac: Do CPU substitution even if it's specified explicitly.
21635 Reported and tested by: Alain Greppin.
21636
9462775a
VS
216372011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21638
21639 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21640 Reported and tested by: Alain Greppin.
21641
0fd48e35
VS
216422011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21643
21644 Satisfy some bison versions need for inttypes.h.
21645
21646 * grub-core/lib/posix_wrap/inttypes.h: New file.
21647 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21648 (int16_t): Likewise.
21649 (int32_t): Likewise.
21650 (int64_t): Likewise.
21651 Reported and tested by: Alain Greppin.
21652
43f1bc83
VS
216532011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21654
21655 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21656 Silence spurious warning.
21657 Reported and tested by: Alain Greppin.
21658
64d1f041
SJ
216592011-01-07 Szymon Janc <szymon@janc.net.pl>
21660
21661 * docs/grub.texi (Support automatic decompression): Update with xz
21662 decompression support.
21663
25953e10
SJ
216642011-01-07 Szymon Janc <szymon@janc.net.pl>
21665
21666 Improve loaders' kernel command line handling.
21667
21668 * grub-core/lib/cmdline.c: New file.
21669 * include/grub/lib/cmdline.h: Likewise.
21670 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21671 grub_create_loader_cmdline to create kernel command line.
21672 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21673 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21674 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21675 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21676 (linux): Add lib/cmdline.c on common.
21677
e72d259f
VS
216782011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21679
21680 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21681 inopos might be unaligned.
21682
c0cf26da
VS
216832011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21684
21685 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21686 endian transformations.
21687 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21688 Based on report by: Doug Nazar.
21689
0ca09e6c
DN
216902011-01-07 Doug Nazar <nazard.michi@gmail.com>
21691
21692 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21693 array->members[i].start_sector.
21694 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21695
014b6806
VS
216962011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21697
21698 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21699 Reported and tested by: Grégoire Sutre.
21700
415502c2
CW
217012011-01-06 Colin Watson <cjwatson@ubuntu.com>
21702
21703 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21704 avoid causing test failures by clearing the screen.
21705
71b6a2b7
CW
217062011-01-06 Colin Watson <cjwatson@ubuntu.com>
21707
21708 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21709 Fix prefix check to handle the case where dir ends with a slash
21710 (most significantly, "/" itself).
21711 Reported by: Michael Vogt.
21712
b3f8d28a
VS
217132011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21714
21715 Run terminfo_cls on initing terminfo output to clear the screen and
21716 move the cursor to (0,0).
21717
21718 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21719 Call grub_terminfo_output_init.
21720 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21721 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21722 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21723
4c3e4f37
VS
217242011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21725
21726 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21727 only when needed.
21728
488f71f1
VS
217292011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21730
21731 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21732 CTRL.
21733
18a38098
VS
217342011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21735
21736 The E820 type 5 is BADRAM, not EXEC_CODE.
21737
21738 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21739 (GRUB_E820_BADRAM): New define.
21740 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21741 into reserved. Propagate BADRAM.
21742 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21743 (GRUB_E820_BADRAM): New define.
21744
9eae2084
VS
217452011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21746
21747 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21748 Ignore the memory post-4G.
21749 (grub_relocator_firmware_alloc_region): Additional debug statement.
21750
ebc71d28
VS
217512011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21752
21753 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21754 names.
21755 Reported by: David Pravec.
21756
446fa400
VS
217572011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21758
21759 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21760 BIOSes.
21761
a0159f37
VS
217622011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21763
21764 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21765 Prevent overflow.
21766 (grub_reed_solomon_recover): Likewise.
21767
e5146ca1
VS
217682011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21769
21770 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21771
217722011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
21773
21774 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21775 variable.
21776
5b1bdf12
CW
217772011-01-04 Colin Watson <cjwatson@ubuntu.com>
21778
21779 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21780 descriptions of extract_legacy_entries_source and
21781 extract_legacy_entries_configfile.
21782 Reported by: Seung Soo, Ha.
21783
99d925aa
CW
217842011-01-03 Colin Watson <cjwatson@ubuntu.com>
21785
21786 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21787 on devices that do not implement function 0.
21788
4af0504b
DV
217892011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21790
21791 * grub-core/fs/hfsplus.c: Make parent unsigned.
21792 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21793 overflows.
21794 (grub_hfsplus_cmp_extkey): Likewise
21795
469ee10a
VS
217962011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21797
21798 * util/grub-install.in: Correctly use bootloader_id and not
21799 GRUB_DISTRIBUTOR on efibootmgr line.
21800
323a8e9c
VS
218012011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21802
21803 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21804
1b394975
IC
218052010-12-31 Ian Campbell <ijc@hellion.org.uk>
21806
21807 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21808 Xen and reorder menu item wording to make it clearer that this entry
21809 will launch Xen. Print separate messages when loading Xen and
21810 Linux.
21811
275bff5f
VS
218122010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21813
21814 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21815 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21816 loop in case of incorrect amiga partmap.
21817
307806cb
VS
218182010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21819
21820 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21821 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21822 Reported by:EHeM.
21823
b12b923e
VS
218242010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21825
21826 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21827 spurious warning.
21828 Reported by: crocket
21829
14b48a19
VS
218302010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21831
21832 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21833 Preload EFIemu.
21834 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21835
693db2df
VS
218362010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21837
21838 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21839 is loaded
21840 (grub_cmd_xnu_kextdir): Likewise.
21841 (grub_cmd_xnu_splash): Likewise.
21842
c7638645
VS
218432010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21844
21845 Avoid using Reed-Solomon with 0 redundancy.
21846
21847 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21848 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21849 or 0 redundancy.
21850 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21851 (grub_reed_solomon_recover): Likewise.
21852
25dd4780
VS
218532010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21854
21855 Don't use disk subsystem in freebsd_boot.
21856
21857 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21858 (freebsd_biosdev): Likewise.
21859 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21860 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21861
0b2db943
VS
218622010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21863
21864 Handling of files of unknown size is currently limited. They can't be
21865 used e.g. for initrd or modules. Moreover gzip handling of not
21866 easily seekable files is buggy. Disable unknown file size for now. May
21867 be inefficient but works.
21868
21869 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21870 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21871
5c408d0f
MP
218722010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21873
21874 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21875 floppy probe.
21876
190a011a
JD
218772010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21878
21879 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21880
022d01b8
SL
218812010-12-25 Shea Levy <shlevy>
21882
21883 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21884
c4855fdc
VS
218852010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21886
21887 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21888 Windows Server 2008.
21889 Reported by: Devin Giddings.
21890
0354b867
VS
218912010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21892
21893 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21894 writing an error message because of async power management.
21895 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21896 (grub_reboot): Likewise.
21897
ab66c69f
JU
218982010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21899
21900 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21901 keep unit tests from failing when they shouldn't.
21902
1426ef35
CW
219032010-12-21 Colin Watson <cjwatson@ubuntu.com>
21904
21905 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21906 previous patch increased the size of the RS code by 20 bytes (at
21907 least with gcc-4.4), so increase this by 20 bytes to match.
21908 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21909
20641b6b
CW
219102010-12-21 Colin Watson <cjwatson@ubuntu.com>
21911
21912 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21913 scratch area. Make sure to initialise chosen in standalone mode as
21914 well as non-standalone.
21915 Reported by: Robert Hooker and Andy Whitcroft.
21916 Tested by: Andy Whitcroft.
21917
d060ad60
CW
219182010-12-21 Colin Watson <cjwatson@ubuntu.com>
21919
21920 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21921 constructing a new unescaped string and passing it to grub_xputs in
21922 one go, rather than passing characters to grub_printf one at a time.
21923
b889cfad
CW
219242010-12-21 Colin Watson <cjwatson@ubuntu.com>
21925
21926 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21927 initialising utf16.
21928
4e01b6c8
CW
219292010-12-21 Colin Watson <cjwatson@ubuntu.com>
21930
21931 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21932 comment. Add an extra layer of quotation, requiring the output of
21933 this function to be used in a printf format string.
21934 (gettext_printf): New function.
21935 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21936 Extract translatable strings from here-documents and use a temporary
21937 variable instead, so that xgettext can find them.
21938 * util/grub.d/10_kfreebsd.in: Likewise.
21939 * util/grub.d/10_linux.in: Likewise.
21940 * util/grub.d/20_linux_xen.in: Likewise.
21941
21942 * po/grub.d.sed: New file.
21943 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21944 arguments. Set c-format flags on all strings extracted from
21945 util/grub.d/ (xgettext refuses to include these itself for strings
21946 it extracted from a shell file, but these really are c-format).
21947
5318fe98
VS
219482010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21949
21950 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21951 Avoid next pointing to nowhere.
21952
6c85b743
VS
219532010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21954
21955 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21956 rather than assuming than rootblock is exactly in the middle.
21957 (grub_affs_label): Likewise.
21958
a2a08a35
VS
219592010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21960
21961 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21962 reserved_first_sector to 0.
21963 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21964 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21965 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21966
7059d1ec
VS
219672010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21968
21969 Fix handling of UTF-16 UDF labels.
21970
21971 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21972 (read_string): .. here.
21973 (grub_udf_label): Use read_string.
21974
30aff4cb
BC
219752010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21976
21977 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21978 editor under argument scope.
21979 Reported by: Jordan Uggla
21980
5cf86f4b
VS
219812010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21982
21983 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21984
32570200
CW
219852010-12-18 Colin Watson <cjwatson@ubuntu.com>
21986
21987 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21988 line, and other keys scroll an entire page (previous handling was
21989 for \r and \n to scroll a page and other keys to scroll two lines).
21990
e1dffcf2
VS
219912010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21992
21993 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21994 Set ptrdest to correct get_physical_target_address rather than
21995 incorrect get_virtual_current_address.
21996
b04298cf 219972010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21998
21999 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
22000 correct cat to grub_uint8_t * rather than grub_uint32_t *.
22001
5367ecd3
CW
220022010-12-10 Colin Watson <cjwatson@ubuntu.com>
22003
22004 * .bzrignore: Ignore grub-core/rs_decoder.S.
22005
1fb430f8
CW
220062010-12-10 Colin Watson <cjwatson@ubuntu.com>
22007
22008 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
22009 .mo/.mo.gz opening sequence to ...
22010 (grub_mofile_open_lang): ... here.
22011 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
22012 * util/grub.d/00_header.in (grub_lang): Include country part of
22013 locale.
22014 Reported by: Mario Limonciello.
22015
a94a6671
RM
220162010-12-09 Robert Millan <rmh@gnu.org>
22017
22018 * NEWS: Document addition of ZFS support.
22019
24b7938b
CW
220202010-12-04 Colin Watson <cjwatson@ubuntu.com>
22021
22022 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
22023 rather than `/ 2', as the latter requires -Wa,--divide which would
22024 require bumping our minimum binutils version.
22025
bddc3ef6
BC
220262010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
22027
22028 * util/grub-script-check.c (main): Print script line number on
22029 error.
22030
bf78d5b2
RM
220312010-12-01 Robert Millan <rmh@gnu.org>
22032
22033 * grub-core/fs/zfs/zfs.c: New file.
22034 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
22035 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
22036 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
22037 * grub-core/fs/zfs/zfsinfo.c: Likewise.
22038
22039 * include/grub/zfs/dmu.h: Likewise.
22040 * include/grub/zfs/dmu_objset.h: Likewise.
22041 * include/grub/zfs/dnode.h: Likewise.
22042 * include/grub/zfs/dsl_dataset.h: Likewise.
22043 * include/grub/zfs/dsl_dir.h: Likewise.
22044 * include/grub/zfs/sa_impl.h: Likewise.
22045 * include/grub/zfs/spa.h: Likewise.
22046 * include/grub/zfs/uberblock_impl.h: Likewise.
22047 * include/grub/zfs/vdev_impl.h: Likewise.
22048 * include/grub/zfs/zap_impl.h: Likewise.
22049 * include/grub/zfs/zap_leaf.h: Likewise.
22050 * include/grub/zfs/zfs.h: Likewise.
22051 * include/grub/zfs/zfs_acl.h: Likewise.
22052 * include/grub/zfs/zfs_znode.h: Likewise.
22053 * include/grub/zfs/zil.h: Likewise.
22054 * include/grub/zfs/zio.h: Likewise.
22055 * include/grub/zfs/zio_checksum.h: Likewise.
22056
22057 * Makefile.util.def: Build ZFS into libgrubmods.
22058 * grub-core/Makefile.core.def: Build zfs.mod.
22059
3f0f3831
SJ
220602010-11-30 Szymon Janc <szymon@janc.net.pl>
22061
22062 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22063 variable.
22064 * grub-core/commands/wildcard.c (match_files): Likewise.
22065
3a4253b2
RM
220662010-11-30 Robert Millan <rmh@gnu.org>
22067
22068 * grub-core/loader/i386/bsd.c
22069 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22070 whether kernel is loaded using grub_loader_is_loaded(), rather
22071 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22072 certain error conditions.
22073
8c317b27
RM
220742010-11-30 Robert Millan <rmh@gnu.org>
22075
c5c9cd3e
RM
22076 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22077 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 22078
49d3ab46
VS
220792010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22080
22081 Avoid using tricks for initialising endian variables.
22082
22083 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22084 Make const.
22085 (GRUB_MOD_INIT): Don't byte-swap.
22086 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22087 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22088 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22089 (grub_swap_bytes32_compile_time): Likewise.
22090 (grub_cpu_to_le32_compile_time): Likewise.
22091 (grub_cpu_to_le16_compile_time): Likewise.
22092
f420a804
VS
220932010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22094
22095 * util/grub-setup.c (setup): Stop recommending --force. People who
22096 understand the dangers of blocklists are able to find this option
22097 anyway and the ones who don't shouldn't use it anyway.
22098
4e7db17b
RM
220992010-11-26 Robert Millan <rmh@gnu.org>
22100
22101 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22102 Update all users.
22103
9be57a0d
CW
221042010-11-26 Colin Watson <cjwatson@ubuntu.com>
22105
22106 Fix LVM-on-RAID probing.
22107
22108 * util/grub-probe.c (probe): Remember which disk was detected as
22109 RAID (perhaps an LVM physical volume). Use that disk's raidname
22110 rather than that of the top-level disk.
22111
2c7859b3 221122010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 22113
d7647bb6
BC
22114 Fix cmdline argument quotes for setparams command of menuentry
22115 definitions.
7e623b0d
BC
22116
22117 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22118 quotes for arguments.
f866fe80 22119 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 22120 grub_strchrsub function instead.
f866fe80 22121
7955bea0 22122 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 22123
74f72a64
CW
221242010-11-24 Colin Watson <cjwatson@ubuntu.com>
22125
22126 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22127 effort by skipping "." and ".." entries up-front.
22128 Suggested by: Michael Lazarev.
22129
5a407278
CW
221302010-11-24 Colin Watson <cjwatson@ubuntu.com>
22131
22132 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22133 ldflags to ldadd, to fix link line ordering.
22134 (none_decompress): Likewise.
22135
3030d8ec
CW
221362010-11-24 Colin Watson <cjwatson@ubuntu.com>
22137
22138 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22139 platforms.
22140 (grub-emu-lite): Remove kern/emu/cache.S.
22141
b7fbac12
CW
221422010-11-23 Colin Watson <cjwatson@ubuntu.com>
22143
22144 * util/deviceiter.c (compare_devices): If the by-id link for a
22145 device couldn't be resolved, fall back to sorting by the by-id link
22146 rather than segfaulting.
22147 Reported and tested by: Daniel Mierswa.
22148
5225f328
CW
221492010-11-23 Colin Watson <cjwatson@ubuntu.com>
22150
22151 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22152 ldflags, to fix link line ordering.
22153
038b3ce8
CW
221542010-11-23 Colin Watson <cjwatson@ubuntu.com>
22155
22156 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22157 linkers are picky about this.
22158
bf16e98e
CW
221592010-11-23 Colin Watson <cjwatson@ubuntu.com>
22160
22161 * grub-core/Makefile.am (command.lst): Adjust sed expression
22162 ordering so that extended and priority commands aren't treated as
22163 ordinary commands.
22164
7242bab6
CW
221652010-11-23 Colin Watson <cjwatson@ubuntu.com>
22166
22167 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22168 Remove byte-swapping function calls, which are not valid in
22169 structure initialisers.
22170 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22171 non-const.
22172 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22173 grub_gpt_partition_type_bios_boot.
22174
14e8b279
CW
221752010-11-22 Colin Watson <cjwatson@ubuntu.com>
22176
22177 Fix test program build on GNU/kFreeBSD.
22178
22179 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22180 $(LIBNVPAIR)' library dependencies.
22181
e6f63338 221822010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
22183
22184 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22185
cf8ffc38
CW
221862010-11-22 Colin Watson <cjwatson@ubuntu.com>
22187
22188 * util/grub-install.in: Remove excessive quoting that broke
22189 installations to RAID devices.
22190
7f8b0fd7
VS
221912010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22192
22193 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22194 bootloader version instead of 0.
22195
dfd240b1
VS
221962010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22197
22198 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22199 warning.
22200
7b61e609
VS
222012010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22202
22203 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22204 retrieve the metadat sector if size isn't known.
22205 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22206
9dfe92d0
RM
222072010-11-18 Robert Millan <rmh@gnu.org>
22208
22209 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22210 with grub_memcmp().
22211
41cc919e
VS
222122010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22213
22214 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22215 arrow.
22216 Reported by: Jordan Uggla.
22217
1afcc914
VS
222182010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22219
22220 Make better UTF compliant.
22221
22222 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22223 sequences as incorrect.
22224 (grub_is_valid_utf8): Likewise.
22225 (grub_utf8_to_ucs4): Likewise.
22226 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22227 (grub_ucs4_to_utf8_alloc): Likewise.
22228 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22229
f1808884
VS
222302010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22231
22232 Make legacy_source behave like source.
22233
22234 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22235 grub_show_menu.
22236 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22237
24ec575b
CW
222382010-11-16 Colin Watson <cjwatson@debian.org>
22239
22240 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22241 (-Wunused implies -Wunused-parameter, but not vice versa).
22242
72b7c7aa
CW
222432010-11-16 Colin Watson <cjwatson@ubuntu.com>
22244
22245 * configure.ac: Make error messages less confusing by testing for
22246 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22247 accepted, but produces a diagnostic if something else is wrong).
22248
e98937aa
VS
222492010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22250
22251 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22252 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22253 (now unused).
22254 (grub_keyboard_controller_init)
22255 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22256 read the initial state since controller isn't inited yet.
22257
f6bbabc3
VS
222582010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22259
22260 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22261 allocate_regbeg may need to create new chunk header.
22262
22e7dbb2
VS
222632010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22264
22265 Fix quoting in legacy parser.
22266
22267 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22268 single quotes.
22269 (grub_legacy_parse): Likewise.
22270 Reported by: Jordan Uggla.
22271 Tested by: Jordan Uggla.
22272
03f80960
VS
222732010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22274
22275 Don't add -lgcc on i386 and x86_64.
22276
22277 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22278 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22279 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22280
779dc15b
VS
222812010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22282
22283 * configure.ac: Add -Wno-trampolines when supported.
22284
d20a3b37
MV
222852010-11-14 Modestas Vainius <modax@debian.org>
22286
22287 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22288 fakeraid.
22289
e5360933
GC
222902010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22291
22292 Add generic logical block size support for UDF.
22293
22294 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22295 (GRUB_UDF_BLKSZ): Removed.
22296 (struct grub_udf_data): New field "lbshift" to hold the logical block
22297 size of the file system in log2 format. All users updated.
22298 (sblocklist): Change type to unsigned.
22299 (grub_udf_mount): Change type of "sblklist" to unsigned.
22300 Move AVDP search before VRS recognition, because the latter requires
22301 knowledge of the logical block size, which is detected during the
22302 former.
22303 Detect and validate logical block size during AVDP search, adding
22304 support for block sizes 512, 1024 and 4096.
22305 Make VRS recognition independent of block size.
22306
cb0229c5
GC
223072010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22308
22309 Properly handle deleted files on UDF.
22310
22311 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22312 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22313 set.
22314
406858a8
GC
223152010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22316
22317 Support reading files larger than 2 GiB.
22318
22319 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22320 "offset" to grub_off_t.
22321 (grub_udf_read_file): Likewise for parameter "pos".
22322
130da6a7
VS
223232010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22324
22325 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22326 unavailable.
22327 (Simple configuration): Refer to Changes from GRUB Legacy about
22328 save_env availability.
22329
65e93f6b
VS
223302010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22331
22332 * util/grub-install.in: Ignore empty partition table detection
22333 instead of trying to include part_ module.
22334
1fd08bf1
VS
223352010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22336
22337 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22338 LVM on RAID support.
22339
de1a024f
VS
223402010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22341
22342 Properly define WORDS_BIGENDIAN in wrapped environments.
22343
22344 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22345 definition.
22346 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22347
22348 Reported by: Manoel Rebelo Abranches.
22349 Tested by: Manoel Rebelo Abranches.
22350
bc5dd0b9
VS
223512010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22352
22353 * util/grub-mkconfig.in: Fix quoting.
22354
58c184be
VS
223552010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22356
22357 Support big ext2 files.
22358
22359 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22360 (grub_ext2_read_block): Support triple indirect blocks.
22361 (grub_ext2_read_file): Use 64-bit types and read size_high.
22362 (grub_ext2_open): Read size_high.
22363 Reported by: Ximin Luo.
22364 Tested by: Manoel Rebelo Abranches.
22365
5f0c02b3
VS
223662010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22367
22368 * util/grub-install.in: Handle filenames containing spaces.
22369 Reported by: Jordan Uggla.
22370 Tested by: Jordan Uggla.
22371
4417aae6
VS
223722010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22373
22374 * util/grub-mkconfig.in (grub_script_check): New variable.
22375 Use grub_script_check instead of grub-script-check.
22376 Reported by: Barry Jackson.
22377
7625a68e
VS
223782010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22379
22380 * docs/grub.texi (menu): Correct the order.
22381 Reported by: D. Hugh Redelmeier.
22382
10001ac5
VS
223832010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22384
22385 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22386 jump.
22387
9c4cf53b
MRA
223882010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22389
10001ac5
VS
22390 * include/grub/elfload.h (grub_elf32_size): New parameter.
22391 All users updated.
9c4cf53b
MRA
22392 Return maximum segments alignment.
22393 (grub_elf64_size): Likewise.
22394 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22395 Return maximum segments alignment.
22396 (grub_elf64_size): Likewise.
22397 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
22398 (grub_linux_claimmap_iterate): New function. Uses the
22399 "available" property in the "memory" node for memory allocation
22400 for kernel in the PowerPC loader.
9c4cf53b
MRA
22401 (grub_linux_load32): Correctly find linux entry point offset.
22402 (grub_linux_load64): Likewise.
22403
d2bf06bf
RM
224042010-11-07 Robert Millan <rmh@gnu.org>
22405
22406 On mips-yeeloong, build with -march=loongson2f when this flag is
22407 available (GCC >= 4.4).
22408 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22409 `-march=mips3'.
22410 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22411 or otherwise add -march=mips3.
22412
898c99a2
BC
224132010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22414
87220a68
BC
22415 Suppress shell expansion on echo '*' and echo "*" like cases.
22416 Reported by: Jordan Uggla.
898c99a2
BC
22417
22418 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22419 string arguments before shell expansion.
22420 * tests/grub_cmd_echo.in: New testcases.
22421
4f9b406a
RM
224222010-11-07 Robert Millan <rmh@gnu.org>
22423
22424 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22425 transition.
22426
80c6d25e
VS
224272010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22428
22429 * grub-core/kern/emu/hostdisk.c
22430 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22431
4a1a0153
VS
224322010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22433
22434 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22435 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22436 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22437
34706ddc
VS
224382010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22439
22440 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22441
6972dea9
VS
224422010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22443
22444 * util/grub-install.in: Replace useless recomendation to pass
22445 --modules with a recomendation to report a bug.
22446
9c693bd6
VS
224472010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22448
22449 Properly register serial terminfo.
22450 Reported by: Jordan Uggla
22451
22452 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22453 const.
22454 (grub_serial_terminfo_output_template): Likewise.
22455 (grub_cmd_serial): Register "serial" with terminfo.
22456 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22457 grub_serial_terminfo_output.
22458
6c9e4c0c
RM
224592010-11-05 Robert Millan <rmh@gnu.org>
22460
22461 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22462 needed).
22463
b9b3839f
RM
224642010-11-05 Robert Millan <rmh@gnu.org>
22465
22466 On Yeeloong, pass machine type information to Linux.
22467
22468 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22469 (LOONGSON_MACHTYPE): New macro, set to
22470 "machtype=lemote-yeeloong-2f-8.9inches".
22471 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22472 additional argument to Linux.
22473
1a3aaff4
RM
224742010-11-04 Robert Millan <rmh@gnu.org>
22475
22476 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22477 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22478 (its SATA disks are detected as slaveless IDE master drives on
22479 kFreeBSD).
22480 Reported by Carsten Aulbert.
22481
a75f4f62
CW
224822010-11-02 Colin Watson <cjwatson@ubuntu.com>
22483
22484 * util/bin2h.c (main): Fix spelling error in generated output.
22485
33b4b0c6
GS
224862010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22487
22488 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22489
2b36fbf4
VS
224902010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22491
22492 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22493 vga= option is supplied.
22494
74aaf558
VS
224952010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22496
22497 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22498 * util/grub.d/10_kfreebsd.in: Likewise.
22499 * util/grub.d/10_linux.in: Likewise.
22500 * util/grub.d/20_linux_xen.in: Likewise.
22501
6428dec3
VS
225022010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22503
22504 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22505 argument as an argument to no-argument option.
22506
f8729d98
VS
225072010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22508
22509 * util/grub.d/10_linux.in: Add missing load_video with explicit
22510 GRUB_GFXPAYLOAD_LINUX.
22511
89d68fa6
VS
225122010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22513
22514 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22515
3a1197cd
VS
225162010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22517
22518 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22519 elements with invlid index.
22520 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22521 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22522 members.
22523 * include/grub/raid.h (grub_raid_member): New struct.
22524 (grub_raid_array): Transform devices and start_sector into usage of
22525 grub_raid_member. All users updated
22526 (allocated_devs): New member.
22527
71574288
VS
225282010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22529
22530 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22531 is modified
22532
8d40ec65
BC
225332010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22534
22535 NetBSD build fix for getline function conflict from gnulib.
22536
22537 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22538 components that depend on gnulib headers.
22539 (libgrubmods.a): Renamed from earlier libgrub.a.
22540 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22541
95b9257e
VS
225422010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22543
22544 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22545 install rather than creating a broken install.
22546
26c53dc6
VS
225472010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22548
22549 * util/grub-setup.c (argp): Remove misleading example of installing to
22550 a partition.
22551
4171b3c5
VS
225522010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22553
22554 * util/grub-setup.c (setup): Clarify the error message.
22555
18568d18
VS
225562010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22557
22558 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22559
4f6a2e21
VS
225602010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22561
22562 * grub-core/kern/emu/misc.c
22563 (grub_make_system_path_relative_to_its_root)
22564 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22565
225662010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
22567
22568 * grub-core/kern/emu/misc.c
22569 (grub_make_system_path_relative_to_its_root): Revert r2882.
22570
e138c458
VS
225712010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22572
22573 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22574 useless field head. All users updated.
22575 (free_subchunk): Correct handling of IN_REGION subchunk.
22576
0cbcdf0e
CW
225772010-10-22 Colin Watson <cjwatson@ubuntu.com>
22578
22579 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22580 (Supported kernels): Likewise.
22581
b65ea155
GS
225822010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22583
22584 Make mktemp invocations portable.
22585
22586 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22587 exit if mktemp fails.
22588 * tests/grub_script_blockarg.in: Likewise.
22589 * tests/partmap_test.in: Likewise.
22590 * tests/util/grub-shell-tester.in: Likewise.
22591 * tests/util/grub-shell.in: Likewise.
22592 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22593 * Makefile.am: Likewise, and chain shell commands with `&&'
22594 instead of ';'.
22595 * util/grub-mkrescue.in: Use the same explicit template as above, and
22596 exit if mktemp fails.
22597
05f43cdd
BC
225982010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22599
22600 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22601 Linux kernel, reported by Dennis Schridde.
22602
800e6a9b
SJ
226032010-10-17 Szymon Janc <szymon@janc.net.pl>
22604
22605 * grub-core/normal/auth.c (grub_auth_check_authentication):
22606 Set-but-not-used variable removed.
22607
d82df574
VS
226082010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22609
22610 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22611 32-bit linux protocol.
22612
7bced458
VS
226132010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22614
22615 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22616 cursor shape for sanity.
22617
5b027690
VS
226182010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22619
22620 * docs/grub.texi (Installation): Document buggy BIOS install.
22621
ba5f65cf
VS
226222010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22623
22624 * docs/grub.texi (Installation): Indent.
22625
fdf2ec9c
VS
226262010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22627
22628 * util/grub-setup.c (setup): New parameter allow_floppy.
22629 (arguments): New member allow_floppy.
22630 (argp_parser): Handle --allow-floppy.
22631 (main): Pass allow_floppy.
22632 * util/grub-install.in: New option --allow-floppy passed though to
22633 grub-setup.
22634
861dfd4c
VS
226352010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22636
22637 * util/grub-install.in: Handle partitionless disks.
22638
f77a8c24
VS
226392010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22640
22641 * util/grub-setup.c (setup): Don't clean blocklists before readability
22642 verfification.
22643
27d9ee32
VS
226442010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22645
22646 * docs/grub.texi (Installation): Document embedding zone. Remove
22647 obsolete grub-install example.
22648
6bdda8f8
SJ
226492010-10-16 Szymon Janc <szymon@janc.net.pl>
22650
22651 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22652 Set-but-not-used variable ifdef'ed.
22653 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22654 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22655 variable removed.
22656 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22657 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22658 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22659 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22660 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22661 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22662 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22663 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22664 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22665 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22666 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22667 Likewise.
22668
e19b016b
VS
226692010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22670
22671 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22672 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22673 enum value.
22674
6c8d3002
VS
226752010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22676
22677 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22678 synonym to _S5_. Needed for some DSDTs.
22679
c32b51c9
VS
226802010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22681
22682 Userspace ACPI parser debugging.
22683
22684 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22685 headers and add relevant defines. Don't include standard headers.
22686 (main) [GRUB_DSDT_TEST]: New function.
22687 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22688 Don't declare functions.
22689
fbfbeb39
VS
226902010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22691
22692 Remove dead grub_efi_mm_fini.
22693
22694 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22695 (ALLOCATED_PAGES_SIZE): Likewise.
22696 (MAX_ALLOCATED_PAGES): Likewise.
22697 (allocated_pages): Likewise.
22698 (grub_efi_allocate_pages): Don't record allocated pages.
22699 (grub_efi_free_pages): Likewise.
22700 (grub_efi_mm_init): Likewise.
22701 (grub_efi_mm_fini): Removed.
22702
65f7ed7c
VS
227032010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22704
22705 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22706 (grub_efi_mm_init): Take into account the memory map size increase.
22707
24977b44
VS
227082010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22709
22710 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22711 (serial_hw_put): Wait based on real time rather than port reads. Don't
22712 roken ports.
22713 * include/grub/serial.h (grub_serial_port): New field broken.
22714
1eb01cd2
RM
227152010-10-16 Robert Millan <rmh@gnu.org>
22716
22717 * grub-core/kern/emu/misc.c
22718 (grub_make_system_path_relative_to_its_root): Fix premature return
22719 when processing non-root ZFS filesystems.
5f8b440b 22720 Reported by Sergio Talens-Oliag.
1eb01cd2 22721
2d5fed60
RM
227222010-10-15 Robert Millan <rmh@gnu.org>
22723
22724 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22725 guarantee compressed ones are processed first.
22726
d0f4c1ea
VS
227272010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22728
22729 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22730 grub_efiemu_autocore.
22731
d87c681f
VS
227322010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22733
22734 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22735 rather than 0x1b.
22736 (grub_console_getkey): Use correct jae opcode rather than ja.
22737
219b3564
RM
227382010-10-12 Robert Millan <rmh@gnu.org>
22739
22740 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22741 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22742 variable. All references updated.
22743
22744 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22745
20c6bb7e
VS
227462010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22747
22748 Correctly distinguish mdraid flavours.
22749
22750 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22751 (insert_array): New argument raid.
22752 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22753 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22754 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22755
74baff84
VS
227562010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22757
22758 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22759 handling of special keys.
22760
3ef068df 227612010-10-02 Aleš Nesrsta <starous@volny.cz>
22762
c7980ad9
VS
22763 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22764 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 22765
a9455194 227662010-10-02 Aleš Nesrsta <starous@volny.cz>
22767
c7980ad9
VS
22768 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22769 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22770 users updated.
a9455194 22771 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 22772 Use right endpoint when querying descriptor.
a9455194 22773
441cfe65
VS
227742010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22775
22776 Clear out 0x80 color bit on EFI.
22777 Tested by: decoder
22778 Reported by: decoder and meta tech.
22779
22780 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22781 (grub_console_setcolorstate): Clear out 0x80 bit.
22782 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22783 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22784 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22785
bf26bcc4
VS
227862010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22787
22788 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22789 Set to "auto".
22790
6e3c515d
VS
227912010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22792
22793 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22794 mo_file after freeing.
22795
e6d983ba
VS
227962010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22797
22798 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22799
74ccb5b5
VS
228002010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22801
22802 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22803 flags.
22804
17821956
VS
228052010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22806
22807 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22808 usage.
22809
ee74fa48
VS
228102010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22811
22812 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22813
22814 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22815 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22816 and terminfo.h when needed.
22817 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22818 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22819 (terminfo): Enable only on terminfokernel.
22820 (extcmd): Likewise.
22821 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22822 * include/grub/lib/arg.h: Likewise.
22823 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22824 incorrect usage of ->.
22825
aa438e68
VS
228262010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22827
22828 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22829 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22830
57994012
VS
228312010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22832
22833 Fix coreboot compilation.
22834
22835 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22836 Take VBE info into account even if only text is supported.
22837 (fill_vbe_info): Take into account the case when only VGA text
22838 is supported.
22839 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22840 on coreboot, multiboot and qemu.
22841
2a406611
VS
228422010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22843
22844 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22845 debug messages.
22846 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22847
d33613fc
VS
228482010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22849
22850 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22851 parameters.
22852
44a1b432
VS
228532010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22854
22855 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22856 if they were BSD-style.
22857
edde54e6
VS
228582010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22859
22860 * grub-core/boot/i386/pc/lnxboot.S: Replace
22861 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22862 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22863
b65830fa
VS
228642010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22865
22866 Write embedding zone using Reed-Solomon.
22867
22868 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22869 * grub-core/Makefile.am (rs_decoder.S): New target.
22870 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22871 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22872 (multiboot): Move to RS part.
22873 (post_reed_solomon): New label.
22874 (grub_boot_drive): Move to non-RS part since it's modified in memory
22875 on boot.
22876 Include rs_decoder.S.
22877 * grub-core/lib/reed_solomon.c: New file.
22878 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22879 New definition.
22880 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22881 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22882 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22883 * include/grub/partition.h (grub_partition_map): Change prototype of
22884 embed to allow returning additional sectors.
22885 * include/grub/reed_solomon.h: New file.
22886 * util/grub-setup.c (setup): Handle Reed-Solomon.
22887
0b4b227f
CW
228882010-09-28 Colin Watson <cjwatson@ubuntu.com>
22889
22890 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22891 i386 and x86-64 definedness tests.
22892
f772623b
YB
228932010-09-27 Yves Blusseau <blusseau@zetam.org>
22894
22895 Fix generation of kernel_syms.lst
22896
22897 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22898 ASM_PREFIX
22899
8e57a6ca
RM
229002010-09-26 Robert Millan <rmh@gnu.org>
22901
22902 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22903
22904 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22905 the pool is an array of devices, iterate through it and return the
22906 first device that passes a stat() test (instead of blindly returning
22907 the first one).
22908
f9130836
RM
229092010-09-26 Robert Millan <rmh@gnu.org>
22910
22911 Build fixes for GNU/kFreeBSD.
22912
22913 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22914 to programs that require ZFS conversion.
22915 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22916 kernels that don't have FLOPPY_MAJOR.
22917
96510faf
BC
229182010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22919
22920 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22921
449333eb
BC
229222010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22923
22924 Fix grub-emu build.
22925
22926 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22927 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22928 mdraid09 and mdraid1x.
22929
e1fd1939
CW
229302010-09-24 Colin Watson <cjwatson@ubuntu.com>
22931
22932 Re-enable grub-extras.
22933
22934 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22935 avoid confusing Automake. Run autogen only twice, once for the top
22936 level and once for grub-core. Add Makefile.util.def and
22937 Makefile.core.def from extra modules to the appropriate autogen
22938 invocations. If Makefile.common exists in an extra module, include
22939 it in both Makefile.util.am and grub-core/Makefile.core.am;
22940 similarly, include any Makefile.util.common file in Makefile.util.am
22941 and any Makefile.core.common file in grub-core/Makefile.core.am.
22942 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22943 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22944 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22945 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22946
22947 * gentpl.py (gvar_add): Turn GVARS into a set.
22948 (global_variable_initializers): Sort global variables on output.
22949 (vars_init): New function.
22950 (first_time): Likewise.
22951 (library): Ensure that non-global variable initialisations are
22952 emitted before the first time we emit code for a library block.
22953 Append to variables rather than setting them. Only emit
22954 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22955 each conditional path.
22956 (program): installdir() emits an Autogen macro, so must be passed to
22957 var_add rather than gvar_add.
22958 (data): Likewise.
22959 (script): Likewise.
22960 (rules): New function, centralising handling for different target
22961 types. Set up Guile association lists for first_time and vars_init,
22962 and send most output to a diversion so that variable initialisations
22963 can be emitted first.
22964 (module_rules): Use new rules function.
22965 (kernel_rules): Likewise.
22966 (image_rules): Likewise.
22967 (library_rules): Likewise.
22968 (program_rules): Likewise.
22969 (script_rules): Likewise.
22970 (data_rules): Likewise.
22971
22972 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22973
22974 * .bzrignore: Add contrib and grub-core/contrib. Remove
22975 grub-core/Makefile.gcry.am.
22976
1d12cf29
YB
229772010-09-24 Yves Blusseau <blusseau@zetam.org>
22978
22979 * grub-core/lib/LzFind.c: Add missing include.
22980 * grub-core/lib/LzmaEnc.c: Likewise.
22981 * grub-core/script/lexer.c: Likewise.
22982 * grub-core/script/yylex.l: Likewise.
22983 * util/grub-macho2img.c: Likewise.
22984 * util/grub-menulst2cfg.c: Likewise.
22985 * util/grub-mklayout.c: Likewise.
22986 * util/grub-mkpasswd-pbkdf2.c
22987 * util/grub-mkrelpath.c: Likewise.
22988 * util/resolve.c: Likewise.
22989
dd363028
BC
229902010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22991
22992 * Makefile.util.def (example_unit_test): Add
22993 grub-core/gnulib/libgnu.a.
22994
f5a109e2
GS
229952010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22996
22997 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22998
6d0fa83c
VS
229992010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
23000
23001 Support xz compression on yeeloong.
23002
23003 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
23004 * configure.ac: Check for LZMA.
23005 * grub-core/Makefile.core.def (xz_decompress): New target.
23006 (none_decompress): Likewise.
23007 * grub-core/boot/decompressor/minilib.c: New file.
23008 * grub-core/boot/decompressor/none.c: Likewise.
23009 * grub-core/boot/decompressor/xz.c: Likewise.
23010 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
23011 * grub-core/kern/mips/cache_flush.S: Likewise.
23012 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
23013 * grub-core/kern/mips/startup.S: Move first stage to ...
23014 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
23015 nomacro.
23016 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
23017 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
23018 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
23019 Allocate statically.
23020 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
23021 Allocate statically or use scratch. Don't check CRC32.
23022 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
23023 Allocate statically. Don't check CRC32.
23024 * include/grub/decompressor.h: New file.
23025 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
23026 Removed.
23027 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
23028 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
23029 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
23030 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
23031 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
23032 * util/grub-mkimage.c (grub_compression_t): New type.
23033 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
23034 (image_target_desc): New field default_compression.
23035 (image_targets): Adjust yeeloong targets.
23036 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
23037 (compress_kernel): New parameter comp.
23038 (generate_image): Likewise. Handle new compression case.
23039 (options): New option --compression
23040 (help): Likewise.
23041 (main): Handle new option.
23042
1b655af6
GS
230432010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
23044
23045 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
23046
8f03f0b5
CW
230472010-09-22 Colin Watson <cjwatson@ubuntu.com>
23048
23049 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
23050 typo in __i386__ conditional.
23051
7835dfd3
VS
230522010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23053
23054 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
23055 include.
23056
e255597e
VS
230572010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23058
6d0fa83c 23059 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
23060
23061 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
23062 new tags as supported.
23063 (acpiv2_size): New function.
23064 (grub_multiboot_get_mbi_size): Take new tags into account.
23065 (grub_multiboot_make_mbi): Add new tags.
23066 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 23067
6cc14051 230682010-09-21 Aleš Nesrsta <starous@volny.cz>
23069
23070 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23071 Added missing configuration of USB device.
23072
df7769d8
CW
230732010-09-21 Colin Watson <cjwatson@ubuntu.com>
23074
23075 * grub-core/normal/menu_entry.c (run): Make sure we always return
23076 a value.
23077
b031012d
CW
230782010-09-21 Colin Watson <cjwatson@ubuntu.com>
23079
23080 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23081 NumberOfPages is UINT64 according to the UEFI specification, not
23082 UINTN. Fix printf format.
23083
174de8f3
CW
230842010-09-21 Colin Watson <cjwatson@ubuntu.com>
23085
23086 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23087 `err' to grub_usb_err_t.
23088 Reported and tested by: KESHAV P.R.
23089
d7dbe923
CW
230902010-09-21 Colin Watson <cjwatson@ubuntu.com>
23091
23092 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23093 tpart non-const, so that we can assign to it. (Since this is a
23094 typedef, the constness refers to the pointer rather than what it
23095 points to.)
23096
8d5e2af3
CW
230972010-09-21 Colin Watson <cjwatson@ubuntu.com>
23098
23099 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23100 $(top_srcdir)/grub-core/gnulib as well as
23101 $(top_builddir)/grub-core/gnulib.
23102 Reported by: KESHAV P.R.
23103
5c527783
CW
231042010-09-21 Colin Watson <cjwatson@ubuntu.com>
23105
23106 * util/grub-install.in: Fix the bootloader ID option to be
23107 consistently --bootloader-id, not --bootloader_id.
23108 Reported by: KESHAV P.R.
23109
d309a16e
CW
231102010-09-21 Colin Watson <cjwatson@ubuntu.com>
23111
23112 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23113 check hash checksum." consistently translatable.
23114
b830cd16
YB
231152010-09-21 Yves Blusseau <blusseau@zetam.org>
23116
23117 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23118 $(top_builddir).
23119
c4fe27a8
CW
231202010-09-21 Colin Watson <cjwatson@ubuntu.com>
23121
23122 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23123 (GRUB_MOD_INIT): Register sha1sum command.
23124 (GRUB_MOD_FINI): Unregister sha1sum command.
23125
a4c1d277
YB
231262010-09-21 Yves Blusseau <blusseau@zetam.org>
23127
23128 Keep boot and grub directory names in sync with utils scripts
23129
23130 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23131 * config.h.in: Add previous macros.
23132 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23133 * util/grub-install.in: Use $bootdir and $grubdir variables.
23134
4eff79d2
CW
231352010-09-21 Colin Watson <cjwatson@ubuntu.com>
23136
23137 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23138 convert partition names to disk names if the new `convert' parameter
23139 is set.
23140 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23141 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23142 disk in its own right. This can happen with Xen disk images.
23143
934d7e44
YB
231442010-09-21 Yves Blusseau <blusseau@zetam.org>
23145
23146 * util/grub-editenv.c: Update strings to avoid warnings when generating
23147 grub.pot file.
23148 * util/grub-setup.c: Likewise.
934d7e44 23149
df3367cc
VS
231502010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23151
23152 * configure.ac: Change version to 1.99~beta0.
23153
77a94e98
VS
231542010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23155
23156 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23157 Add BADRAM.
23158 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23159 Likewise.
23160 * include/multiboot.h: Resynced with specification.
23161 * include/multiboot2.h: Likewise.
23162
269004c1
CW
231632010-09-21 Colin Watson <cjwatson@ubuntu.com>
23164
23165 Fix po directory handling.
23166
23167 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23168 * grub-core/gnulib/Makefile.am: Import gettext module.
23169 * m4/gnulib-cache.m4: Likewise.
23170 * m4/gnulib-comp.m4: Likewise.
23171 * m4/gettext.m4: New file, from gnulib.
23172 * m4/glibc2.m4: Likewise.
23173 * m4/iconv.m4: Likewise.
23174 * m4/intdiv0.m4: Likewise.
23175 * m4/intl.m4: Likewise.
23176 * m4/intldir.m4: Likewise.
23177 * m4/intlmacosx.m4: Likewise.
23178 * m4/intmax.m4: Likewise.
23179 * m4/inttypes-pri.m4: Likewise.
23180 * m4/lcmessage.m4: Likewise.
23181 * m4/lib-ld.m4: Likewise.
23182 * m4/lib-link.m4: Likewise.
23183 * m4/lib-prefix.m4: Likewise.
23184 * m4/lock.m4: Likewise.
23185 * m4/nls.m4: Likewise.
23186 * m4/po.m4: Likewise.
23187 * m4/printf-posix.m4: Likewise.
23188 * m4/progtest.m4: Likewise.
23189 * m4/threadlib.m4: Likewise.
23190 * m4/uintmax_t.m4: Likewise.
23191 * m4/visibility.m4: Likewise.
23192 * po/Makefile.am: Remove.
23193 * po/Makefile.in.in: New file, from gettext.
23194 ($(DOMAIN).pot-update): Support POTFILES-shell.
23195 * po/Makevars: New file.
23196 * po/POTFILES-shell: Rename to ...
23197 * po/POTFILES-shell.in: ... this. Update.
23198 * po/POTFILES: Rename to ...
23199 * po/POTFILES.in: ... this. Update.
23200 * po/Rules-quot: New file, from gettext.
23201 * po/boldquot.sed: Likewise.
23202 * po/en@boldquot.header: Likewise.
23203 * po/en@quot.header: Likewise.
23204 * po/insert-header.sin: Likewise.
23205 * po/quot.sed: Likewise.
23206 * po/remove-potcdate.sin: Likewise.
23207
3e0fa5d0
VS
232082010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23209
23210 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23211
ade9bd66
VS
232122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23213
23214 * util/grub.d/20_linux_xen.in: Use submenus.
23215
fc55cc4c
VS
232162010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23217
23218 Support submenus.
23219
23220 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23221 parameter submenu. All users updated.
23222 * grub-core/normal/main.c (free_menu): Rename to ...
23223 (grub_normal_free_menu): ... this. Made global.
23224 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23225 if requested.
23226 * grub-core/normal/menu_entry.c (screen): New field submenu.
23227 (make_screen): Set submenu.
23228 (run): Open new context if requested.
23229 * include/grub/menu.h (grub_menu_entry): New field submenu.
23230 * include/grub/normal.h (grub_normal_free_menu): New proto.
23231
600cedf7
VS
232322010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23233
23234 Menu entries extractor.
23235
23236 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23237 variants.
23238 (GRUB_MOD_INIT): Register new variants.
23239 (GRUB_MOD_FINI): Unregister new variants.
23240 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23241 into grub_cmd_legacy_source.
23242 (grub_cmd_legacy_source): Implement extractor variants.
23243 (GRUB_MOD_INIT): Register new variants.
23244 (GRUB_MOD_FINI): Unregister new variants.
23245 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23246 as an extractor.
23247 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23248 search as an extractor.
23249 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23250 test as an extractor.
23251 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23252 as an extractor.
23253 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23254 (grub_env_new_context): New function.
23255 (grub_env_context_open): Likewise.
23256 (grub_env_extractor_open): Likewise.
23257 (grub_env_extractor_close): Likewise.
23258 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23259 grub_extractor_level.
23260 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23261 * include/grub/env.h (grub_env_extractor_open): New proto.
23262 (grub_env_extractor_close): Likewise.
23263 * include/grub/normal.h (grub_extractor_level): New external variable.
23264
7bda3a87
VS
232652010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23266
23267 Make cutmem accept a region specification.
23268 Suggested by: Samuel Thibault
23269
23270 * grub-core/mmap/mmap.c (parsemem): New function.
23271 (grub_cmd_cutmem): Handle new arguments.
23272
2ea57f88
VS
232732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23274
23275 New command cutmem.
23276
23277 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23278 (GRUB_MOD_INIT): Register new command.
23279 (GRUB_MOD_FINI): Unregister new command.
23280
74342e31
VS
232812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23282
23283 Support some annoying BSD and Minix subpartitions.
23284
23285 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23286 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23287 Properly handle concatenation.
23288 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23289 * grub-core/normal/completion.c (iterate_partition): Likewise.
23290 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23291 contain partition. All users updated.
23292 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23293 struct.
23294 (grub_openbsdlabel_partition_map): Likewise.
23295 (bsdlabel_partition_map_iterate): Rename to ..
23296 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23297 (bsdlabel_partition_map_iterate): New function.
23298 (netopenbsdlabel_partition_map_iterate): Likewise.
23299 (netbsdlabel_partition_map_iterate): Likewise.
23300 (openbsdlabel_partition_map_iterate): Likewise.
23301 (GRUB_MOD_INIT): Register new partmaps.
23302 (GRUB_MOD_FINI): Unregister new partmaps.
23303 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23304 (grub_partition_msdos_iterate): ... this. All users updated.
23305 Don't support embedding other than in a minix partition.
23306 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23307 proto.
23308 * include/grub/partition.h (grub_partition): New field msdostype.
23309 * util/grub-install.in: Handle openbsd and netbsd types being in
23310 part_bsd module.
23311
1e8d555b
VS
233122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23313
23314 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23315
23316 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23317 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23318 (mdraid09): ... this.
23319 (mdraid1x): New module.
23320 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23321 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23322
899d8af4
VS
233232010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23324
23325 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23326 vsprintf.
23327
40901acd
CW
233282010-09-20 Colin Watson <cjwatson@ubuntu.com>
23329
23330 * grub-core/commands/efi/lsefimmap.c: Correct header.
23331 * NEWS: Update.
23332
dfe3b247
CW
233332010-09-20 Colin Watson <cjwatson@ubuntu.com>
23334
23335 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23336 as printf format strings; the translations might contain '%' which
23337 could cause a crash.
23338 (main): Likewise.
23339 * util/grub-fstest.c (argp_parser): Likewise.
23340 * util/grub-setup.c (argp_parser): Likewise.
23341 (main): Likewise.
23342
3286a4b4
VS
233432010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23344
23345 Use argp in grub-fstest.
23346
23347 * util/grub-fstest.c: Don't include getopt.h.
23348 Include argp.h.
23349 (root): New variable.
23350 (args_count): Likewise.
23351 (nparm): Likewise.
23352 (num_disks): Likewise.
23353 (images): Likewise.
23354 (cmd): Likewise.
23355 (debug_str): Likewise.
23356 (args): Likewise.
23357 (options): Transformed to argp.
23358 (usage): Removed.
23359 (main): Split argument parsing into ...
23360 (argp_parser): ... this. Changed to argp format.
23361 (argp): New variable.
23362 (main): Use argp_parse.
23363
3dccbe4b
TG
233642010-09-20 Tristan Gingold <gingold@free.fr>
233652010-09-20 Robert Millan <rmh.grub@aybabtu.com>
233662010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23367
23368 * grub-core/commands/efi/lsefimmap.c: New file.
23369 * grub-core/Makefile.core.def (lsefimmap): New module.
23370 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23371
38c259a7
VS
233722010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23373
23374 Pause the execution (10s max) if any errors are displayed so the user
23375 has a chance to see them.
23376
23377 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23378 (grub_print_error): Increment grub_err_printed_errors.
23379 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23380 execution if any errors were displayed.
23381 (show_menu): Remove old code for pause.
23382 * grub-core/normal/menu_entry.c (run): Likewise.
23383 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23384 users updated.
23385 (grub_normal_get_char_counter): Likewise.
23386 * include/grub/err.h (grub_err_printed_errors): New external variable.
23387 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23388
f218b09c
VS
233892010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23390
23391 Support multiboot VBE info.
23392
23393 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23394 Take VBE info into account.
23395 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23396 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23397 Call fill_vbe_info when appropriate.
23398 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23399 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23400 as supported.
23401 (grub_multiboot_get_mbi_size): Take new tags into account.
23402 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23403 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23404 Call fill_vbe_tag when appropriate.
23405 (grub_multiboot_make_mbi): Properly align tags.
23406 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23407 function.
23408 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23409 proto.
23410 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23411
a9cc5438
VS
234122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23413
23414 Suport manual terminal geometry specification.
23415
23416 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23417 Save state in grub_ofconsole_terminfo_output.
23418 (grub_ofconsole_term): Use grub_terminfo_getwh.
23419 (grub_ofconsole_getwh): Removed.
23420 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23421 (grub_serial_term): Use grub_terminfo_getwh.
23422 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23423 (options): New struct.
23424 (OPTION_*): New enum.
23425 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23426 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23427 width and height.
23428 (grub_terminfo_getwh): New proto.
23429 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23430
1a8fed20
VS
234312010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23432
23433 Handle legacy "terminal" command.
23434
23435 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23436 and FLAG_TERMINAL.
23437 (legacy_commands): Add terminal and title.
23438 (grub_legacy_parse): Handle terminal. Simplify title handling.
23439
41e9c57d
VS
234402010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23441
23442 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23443 parameters overflow.
23444
61c874c5
CW
234452010-09-20 Colin Watson <cjwatson@ubuntu.com>
23446
23447 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23448 widthspec.h.
23449
23450 * docs/grub.texi (Shell-like scripting): Document `!'.
23451 (Network): Simplify using new i386-pc-pxe format. Mention
23452 grub-mknetdir.
23453
23454 * NEWS: Update.
23455
943682b4
CW
234562010-09-20 Colin Watson <cjwatson@ubuntu.com>
23457
23458 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23459 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23460 when needed.
23461
6d3d698d
CW
234622010-09-20 Colin Watson <cjwatson@ubuntu.com>
23463
23464 * grub-core/commands/efi/lsefisystab.c: Correct header.
23465 * grub-core/commands/efi/lssal.c: Likewise.
23466 * grub-core/commands/testload.c: Likewise.
23467
c982589f
CW
234682010-09-20 Colin Watson <cjwatson@ubuntu.com>
23469
23470 * util/grub-mkrescue.in: Add explicit root argument to --set to
23471 prevent the UUID being interpreted as an argument to --set (matches
23472 previous change to prepare_grub_to_access_device).
23473
a63c31b6
CW
234742010-09-20 Colin Watson <cjwatson@ubuntu.com>
23475
23476 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23477 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23478 the verbosity of later #ifs.
23479 (find_partition_start): Define this function on FreeBSD too.
23480 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23481 function.
23482 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23483 on FreeBSD.
23484
6439b8ee
YB
234852010-09-20 Yves Blusseau <blusseau@zetam.org>
23486
23487 * util/grub-editenv.c: Use argp instead of getopt.
23488
c5930ec8
YB
234892010-09-20 Yves Blusseau <blusseau@zetam.org>
23490
23491 * util/grub-setup.c: Use argp instead of getopt.
23492
15c69261
YB
234932010-09-20 Yves Blusseau <blusseau@zetam.org>
23494
23495 Use gnulib-tool to create gnulib source files.
23496
23497 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23498 grub-core/gnulib directories
23499 * .bzignore: Add **/.deps and autogenerated gnulib files
23500 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23501 of gnulib macros, add grub-core/gnulib/Makefile
23502 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23503 include m4 directory to aclocal.
23504 * Makefile.util.def: Remove direct compilation of gnulib source files
23505 and use the new grub-core/gnulib/libgnu.a.
23506 * build-aux/config.rpath: move config.rpath from top directory to
23507 build-aux
23508 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23509 in gnulib headers
23510 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23511 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23512 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23513 header.
23514 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23515 string.
23516
e511c9f5
YB
235172010-09-20 Yves Blusseau <blusseau@zetam.org>
23518
23519 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23520 grub-core/genmod.sh and grub-core/gensyminfo.sh
23521
c2dede05
BC
235222010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23523
23524 Add a test for echo command options.
23525
23526 * tests/grub_cmd_echo.in: New test.
23527 * Makefile.util.def: Rules for new test.
23528
c55f5018
SJ
235292010-09-20 Szymon Janc <szymon@janc.net.pl>
23530
23531 Remove crc.mod and move crc command to hashsum.mod.
23532 Remove lib/crc.c - users updated to use gcrypt implementation.
23533
23534 * grub-core/commands/crc.c: Removed.
23535 * grub-core/Makefile.core.def (crc): Module removed.
23536 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23537 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23538 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23539 * grub-core/lib/crc.c: Removed.
23540 * include/grub/lib/crc.h: Removed.
23541 * Makefile.util.def (crc): Remove lib/crc.c
23542 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23543 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23544 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23545 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23546 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23547 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23548
e0337366
VS
235492010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23550
23551 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23552
742f9232
VS
235532010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23554
23555 Split config.h for util and core.
23556
23557 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23558 (ADDR32): Likewise.
23559 (DATA32): Likewise.
23560 (BSS_START_SYMBOL): Likewise.
23561 (END_SYMBOL): Likewise.
23562 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23563 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23564 * config.h.in: New file.
23565 * configure.ac: Use config-util.h as config define file.
23566 Rename MACHINE into GRUB_MACHINE. All users updated.
23567 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23568 updated.
23569 (NESTED_FUNC_ATTR): Likewise.
23570 Substitue new variables.
23571 (COND_HAVE_ASM_USCORE): New conditional.
23572 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23573 (kernel_syms.lst): Use ASM_PREFIX.
23574 * grub-core/kern/emu/console.c: Include config-util.h.
23575 * grub-core/kern/emu/misc.c: Likewise.
23576 * grub-core/kern/emu/mm.c: Likewise.
23577 * include/grub/emu/misc.h: Likewise.
23578 * include/grub/libgcc.h: Likewise.
23579
39feb0e8
VS
235802010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23581
23582 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23583 constants usage.
23584 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23585 Fix GRUB_TERM_KEY_* constants usage.
23586 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23587
9af6dac3
VS
235882010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23589
23590 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23591 print pointer.
23592 * grub-core/bus/usb/uhci.c: Remove empty define.
23593 (grub_uhci_check_transfer): Add missing cast.
23594 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23595 print pointer.
23596 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23597 PRIuGRUB_SIZE.
23598 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23599
d6d94820
VS
236002010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23601
23602 * grub-core/Makefile.core.def (legacycfg): Add
23603 lib/i386/pc/vesa_modes_table.c on emu.
23604
3572f2b6
BC
236052010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23606
23607 Reduce number of temporary files generated by build system.
23608
23609 * grub-core/gencmdlist.sh: Removed.
23610 * grub-core/genfslist.sh: Removed.
23611 * grub-core/genhandlerlist.sh: Removed.
23612 * grub-core/genmodsrc.sh: Removed.
23613 * grub-core/genpartmaplist.sh: Removed.
23614 * grub-core/genparttoollist.sh: Removed.
23615 * grub-core/gentermiinallist.sh: Removed.
23616 * grub-core/genvideolist.sh: Removed.
23617
23618 * grub-core/genmod.sh.in: New file.
23619 * grub-core/gensyminfo.sh.in: New file.
23620
23621 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23622 * conf/Makefile.extra-dist: Update with new files.
23623 * gentpl.py: Remove rules related to unnecessary temporary files.
23624 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23625 and und-* files.
23626 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23627 genmod.sh scripts.
23628 * grub-core/bus/usb/uhci.c: Remove empty #define.
23629 * grub-core/genmoddep.awk: Updated with new syminfo format.
23630 * util/bash-completion.d/Makefile.am: Add config.log to
23631 CLEANFILES.
23632
c836b030
YB
236332010-09-19 Yves Blusseau <blusseau@zetam.org>
23634
23635 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23636
2f4e8053
BC
236372010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23638
23639 * util/grub-mkconfig.in: Check the config script for syntax errors
23640 before saving.
23641
75831c34
CW
236422010-09-19 Colin Watson <cjwatson@ubuntu.com>
236432010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23644
23645 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23646 platforms.
23647 * util/grub-install.in: Add EFI and IEEE1275 support.
23648 * util/i386/efi/grub-install.in: Removed.
23649 * util/ieee1275/grub-install.in: Likewise.
23650
eaf41b25
VS
236512010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23652
23653 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23654 (grub_cmd_cmosclean): Likewise.
23655 (GRUB_MOD_INIT): Register command cmosclean.
23656 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23657 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23658
1a9130dd
CPE
236592010-09-18 Carles Pina i Estany <carles@pina.cat>
236602010-09-18 Aleš Nesrsta <starous@volny.cz>
236612010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23662
23663 Add keyboard layouts support.
23664
23665 * Makefile.util.def (grub-mklayout): New file.
23666 (grub-kbdcomp): New script.
23667 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23668 Add keyboard_layouts.h.
23669 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23670 commands/boot.c on yeeloong.
23671 (keylayouts): New module.
23672 * grub-core/bus/usb/ohci.c
23673 * grub-core/bus/usb/uhci.c
23674 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23675 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23676 (attach_root_port): Likewise.
23677 (poll_nonroot_hub): Likewise.
23678 (grub_usb_poll_devices): Likewise.
23679 (detach_device): Close transfer.
23680 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23681 function.
23682 (grub_usb_bulk_setup_readwrite): Likewise.
23683 (grub_usb_bulk_finish_readwrite): Likewise.
23684 * grub-core/commands/keylayouts.c: New file.
23685 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23686 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23687 aliases.
23688 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23689 support scancode 2.
23690 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23691 * include/grub/keyboard_layouts.h: New file.
23692 * util/grub-mklayout.c: New file.
23693 * util/grub-kbdcomp.in: Likewise.
23694
a1d84a5e
VS
236952010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23696
23697 Unify memory types.
23698
23699 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23700 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23701 types.
23702 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23703 (grub_upper_mem): Likewise.
23704 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23705 * include/grub/memory.h (grub_memory_type_t): New enum.
23706 All users updated.
23707
9696382e
VS
237082010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23709
23710 * grub-core/Makefile.core.def (lsapm): New module.
23711 * grub-core/commands/i386/pc/lsapm.c: New file.
23712 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23713 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23714 Likewise.
23715 * include/grub/i386/pc/apm.h: New file.
23716 * include/multiboot.h (multiboot_apm_info): New struct.
23717
237182010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23719
23720 GRUB-legacy configuration file support.
23721
23722 * Makefile.util.def (grub-menulst2cfg): New util.
23723 * docs/man/grub-menulst2cfg.h2m: New file.
23724 * grub-core/Makefile.core.def (legacycfg): New module.
23725 * grub-core/commands/legacycfg.c: New file.
23726 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23727 (grub_normal_add_menu_entry): ... this.
23728 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23729 (grub_normal_set_password): ...this.
23730 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23731 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23732 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23733 * grub-core/lib/legacy_parse.c: New file.
23734 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23735 * include/grub/i386/pc/vesa_modes_table.h: New file.
23736 * include/grub/legacy_parse.h: Likewise.
23737 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23738 * util/grub-menulst2cfg.c: New file.
23739
bf8d1338
CW
237402010-09-17 Colin Watson <cjwatson@ubuntu.com>
23741
23742 * grub-core/kern/emu/hostdisk.c
23743 (convert_system_partition_to_system_disk): Initialise node.
23744
9c0bad2e
CW
237452010-09-17 Colin Watson <cjwatson@ubuntu.com>
23746
23747 * grub-core/kern/emu/hostdisk.c
23748 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23749 leak.
23750 Reported and based on patch by: Modestas Vainius.
23751
a939d135
CW
237522010-09-17 Colin Watson <cjwatson@ubuntu.com>
23753
23754 Fix DM-RAID probing with recent versions of device-mapper udev
23755 rules.
23756
23757 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23758 canonicalise device paths under /dev/mapper/.
23759 (convert_system_partition_to_system_disk): Compare the
23760 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23761 path, since device nodes under /dev/mapper/ are often symlinks.
23762
0f7ee3c9
YB
237632010-09-17 Yves Blusseau <blusseau@zetam.org>
23764
23765 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23766
10854d0d
YB
237672010-09-16 Yves Blusseau <blusseau@zetam.org>
23768
23769 * configure.ac: Avoid some annoying error messages if freetype-config
23770 program is not found.
23771
108538d8
CW
237722010-09-16 Colin Watson <cjwatson@ubuntu.com>
23773
23774 Support RAID on virtio devices, and others.
23775
23776 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23777 Rename to ...
23778 [__MINGW32__] (grub_find_device): ... this.
23779 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23780 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23781 reasonable default if dir is NULL.
23782 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23783 ...
23784 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23785 (grub_guess_root_device): Update callers.
23786 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23787
23788 * util/raid.c (grub_util_getdiskname): Remove.
23789 (grub_util_raid_getmembers): Use grub_find_device rather than
23790 grub_util_getdiskname.
23791
e5bfc130
CW
237922010-09-16 Colin Watson <cjwatson@ubuntu.com>
23793
23794 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23795 needing to be compiled with serial support.
23796 (ls): Indicate that multiple files are accepted.
23797 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23798 indicate that multiple files are accepted.
23799
be458ae2
CW
238002010-09-16 Colin Watson <cjwatson@ubuntu.com>
23801
23802 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23803 libgrub_a_init.c, and util/bash-completion.d/grub.
23804
cb731b5e
VS
238052010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23806
23807 * util/grub-setup.c (setup): Fix incorrect container semantics.
23808
35139e8a
VS
238092010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23810
23811 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23812 misusage.
23813 Reported by: J. Nick Terry
23814
e50fca4a
VS
238152010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23816
23817 Move embedding routines to partmap sources files.
23818
23819 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23820 [GRUB_UTIL]: New variable.
23821 (gpt_partition_map_iterate): Set part.parent.
23822 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23823 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23824 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23825 New function.
23826 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23827 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23828 (grub_partition_map) [GRUB_UTIL]: New field embed.
23829 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23830 (setup): Use ->embed.
23831
f00478b7
VS
238322010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23833
23834 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23835 function.
23836 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23837 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23838
2b94e3ff
YB
238392010-09-15 Yves Blusseau <blusseau@zetam.org>
23840
23841 Add function to get completions from usage.
23842
23843 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23844 completions from usage. Use LC_ALL=C to get options properly.
23845
2e04a006
VS
238462010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23847
23848 * grub-core/gnulib/basename-lgpl.c: Imported.
23849 * grub-core/gnulib/basename.c: Likewise.
23850 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23851 * grub-core/gnulib/dirname.c: Likewise.
23852 * grub-core/gnulib/dirname.h: Likewise.
23853 * grub-core/gnulib/stripslash.c: Likewise.
23854
5dcdf93a
VS
238552010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23856
23857 * grub-core/gnulib/error.c: Resynced.
23858 * grub-core/gnulib/getopt.c: Likewise.
23859 * grub-core/gnulib/getopt_int.h: Likewise.
23860 * grub-core/gnulib/regex.h: Likewise.
23861 * grub-core/gnulib/regex_internal.c: Likewise.
23862 * grub-core/gnulib/regex_internal.h: Likewise.
23863
014f47b7
SJ
238642010-09-15 Szymon Janc <szymon@janc.net.pl>
23865
23866 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23867 CRC calculations and validity checks.
23868 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23869 calculations.
23870
dd521a4a
SJ
238712010-09-15 Szymon Janc <szymon@janc.net.pl>
23872
23873 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23874
79c4eeb9
VS
238752010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23876
23877 Fix incorrect echo options handling.
23878 Reported by: Yves Blusseau.
23879
23880 * include/grub/command.h (grub_command_flags_t): New flags
23881 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23882 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23883 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23884
ed80f7d5
VS
238852010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23886
23887 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23888 users updated.
23889 (GRUB_COMMAND_FLAG_MENU): Likewise.
23890 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23891 (GRUB_COMMAND_FLAG_TITLE): Removed.
23892 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23893 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23894 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23895 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23896 (grub_command_flags_t): New enum. All users updated.
23897
5fe7620a
SG
238982010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23899
23900 Fix solaris compilation.
23901
23902 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23903 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23904 (grub-emu-list): Likewise.
23905
545b752f
VS
239062010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23907
23908 Remove deprecated root command.
23909
23910 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23911 updated.
23912
6c1a338c
VS
239132010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23914
23915 * util/i386/pc/grub-setup.c: Merge this ...
23916 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23917 * util/grub-setup.c: ... into this.
23918 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23919 New struct.
23920
239212010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23922
23923 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23924 possible.
23925
d2ea4551
VS
239262010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23927
23928 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23929 allocate p.
23930
3c3b5040
VS
239312010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23932
23933 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23934 explicit root argument to set to prevent UUID to be interpreted as
23935 argument to set.
23936
b71c3fae
VS
239372010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23938
23939 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23940
275433e6
VS
239412010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23942
23943 Don't export grub_gate_a20.
23944
23945 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23946 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23947 to ...
23948 (grub_gate_a20): ... this. All users updated.
23949 * include/grub/i386/pc/init.h: Removed. All users updated.
23950
a5dbb1f1
VS
239512010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23952
23953 Create euro.pf2 which supports most European languages.
23954
23955 * Makefile.am (grubdata_DATA): Add euro.pf2.
23956 (euro.pf2): New target.
23957 (CLEANFILES): Add euro.pf2.
23958
62a747cb
VS
239592010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23960
23961 * configure.ac: Disable emu-usb by default to prevent inadvertent
23962 device takeover.
23963
608e43b1
VS
239642010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23965
23966 Disable usbserial on grub-emu since our libusb code isn't good enough
23967 yet.
23968
23969 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23970 (usbserial_pl2303): Likewise.
23971 (usbserial_ftdi): Likewise.
23972
94564f81
VS
239732010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23974
23975 * include/grub/disk.h (grub_disk): Remove has_partitions.
23976 All users updated.
23977 * disk/loopback.c (grub_loopback): Remove has_partitions.
23978 All users updated.
23979 (options): Remove partitions. All users updated.
23980 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23981 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23982 actual partition table is found.
23983
3352800b
VS
239842010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23985
23986 Remove readability checks (too many false negatives).
23987
23988 * util/grub-install.in: Remove readability checks.
23989 * util/grub-mkconfig.in: Likewise.
23990 * util/grub.d/10_hurd.in: Likewise.
23991 * util/grub.d/10_kfreebsd.in: Likewise.
23992 * util/grub.d/10_linux.in: Likewise.
23993 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23994 way.
23995
2419f17a
VS
239962010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23997
23998 Enable acpi shutdown on all ACPI platforms.
23999
24000 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
24001 on coreboo, multiboot and EFI.
24002 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
24003 (grub_acpi_halt): Likewise.
24004 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
24005 (grub_cmd_halt): Don't call grub_acpi_halt directly.
24006 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
24007 * grub-core/lib/i386/halt.c (grub_halt)
24008 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
24009
0575c7c3
VS
240102010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24011
24012 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
24013 context.
24014
54ac3cd1
VS
240152010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24016
24017 * grub-core/video/efi_gop.c: Fix over-80-chars line.
24018 * grub-core/video/efi_uga.c: Likewise.
24019
b2a30ac5
VS
240202010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24021
24022 Filter devaliases and never open same device twice.
24023
24024 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
24025 (last_ihandle): Likewise.
24026 (ofdisk_hash_ent): New member shortest.
24027 (ofdisk_hash_add): Add canonical path too.
24028 (scan): New function.
24029 (grub_ofdisk_iterate): Iterate over hashed entries.
24030 (compute_dev_path): Don't add :0.
24031 (grub_ofdisk_open): Don't really open the disk.
24032 (grub_ofdisk_close): Avoid closing unrelated disk.
24033 (grub_ofdisk_read): Implement reopen logic.
24034 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
24035 New function.
24036 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
24037 New proto.
24038
fb53b340
VS
240392010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24040
24041 Fix sparc64.
24042
24043 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
24044 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
24045 right address. Add sparc64_ieee1275_ldflags.
24046 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
24047 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
24048 to grub_host_to_target_addr
24049 (load_image): Likewise.
24050
f452b040
VS
240512010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24052
24053 * grub-core/normal/completion.c (complete_file): Handle device
24054 containing slash.
24055 Fix based on patch by Doug Nazar.
24056
9b5b2541
VS
240572010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24058
24059 grub-mknetdir script.
24060
24061 * Makefile.util.def (grub-mknetdir): New module.
24062 * tests/util/grub-shell.in: Support boot=net
24063 * util/grub-mknetdir.in: New file.
24064
9d2be652
VS
240652010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24066
24067 videoinfo on non-vbe.
24068
24069 * grub-core/Makefile.core.def (vbeinfo): Removed.
24070 (vbetest): Removed.
24071 (videoinfo): New module.
24072 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24073 * grub-core/commands/i386/pc/vbetest.c: Removed.
24074 * grub-core/commands/videoinfo.c: New file.
24075 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24076 specification.
24077 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24078 as vbetest.
24079 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24080 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24081 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24082 mode_number. New parameter mode. All users updated.
24083 (grub_video_gop_iterate): New function.
24084 (grub_video_efi_gop): New member iterate.
24085 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24086 (grub_vbe_set_video_mode): Remove setting useless fields.
24087 (vbe2videoinfo): New function.
24088 (grub_video_vbe_iterate): Likewise.
24089 (grub_video_vbe_setup): Use vbe2videoinfo.
24090 (grub_video_vbe_print_adapter_specific_info): New function.
24091 (grub_video_vbe_adapter): New fields iterate and
24092 print_adapter_specific_info.
24093 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24094 All users updated.
24095 (grub_video_mode_info): New field mode_number.
24096 (grub_video_adapter): New fields iterate and
24097 print_adapter_specific_info.
24098
179503f5
TG
240992010-09-13 Tristan Gingold <gingold@free.fr>
241002010-09-13 Robert Millan <rmh.grub@aybabtu.com>
241012010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24102
24103 * grub-core/commands/efi/lsefisystab.c: New file.
24104 * grub-core/commands/efi/lssal.c: Likewise.
24105 * grub-core/Makefile.core.def (lsacpi): New module.
24106 (lsefisystab): Likewise.
24107 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24108 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24109 (grub_efi_sal_system_table): New struct.
24110 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24111 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24112 (grub_efi_sal_system_table_platform_features): Likewise.
24113 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24114 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24115 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24116 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24117
cf9827de
VS
241182010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24119
24120 Support explicit user claim that a device is BIOS-visible.
24121
24122 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24123 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24124 * grub-core/kern/emu/hostdisk.c
24125 (convert_system_partition_to_system_disk): Support mdX.
24126 (find_system_device): New parameter add. All users updated.
24127 (grub_util_biosdisk_is_present): New function.
24128 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24129 proto.
24130
53f0eb1f
VS
241312010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24132
24133 Search hints support.
24134
24135 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24136 All users updated.
24137
b23ffd70
YB
241382010-09-13 Yves Blusseau <blusseau@zetam.org>
24139
24140 Bash completion script for util commands
24141
24142 * Makefile.am: Add util/bash-completion.d directory
24143 * configure.ac: Likewise.
24144 * util/bash-completion.d/Makefile.am: New file.
24145 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24146
d547dc28
VS
241472010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24148
24149 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24150 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24151 Reported by: Yves Blusseau.
24152
2fc8ccb9
VS
241532010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24154
24155 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24156 partition size and offset.
24157
d8a84076
VS
241582010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24159
24160 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24161
84fb3b3d
VS
241622010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24163
24164 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24165
768ec2e2
VS
241662010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24167
24168 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24169 (grub_xvasprintf): Likewise.
24170
4870900f
VS
241712010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24172
24173 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24174
faca6bec
VS
241752010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24176
24177 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24178 args ending with NULL.
24179
241802010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
24181
24182 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24183 pointer.
24184
3c70f225
SJ
241852010-09-11 Szymon Janc <szymon@janc.net.pl>
24186
24187 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24188
4df7996d
VS
241892010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24190
24191 Shutdown using ACPI.
24192
24193 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24194 * grub-core/commands/acpihalt.c: New file.
24195 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24196 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24197 (grub_acpi_halt): New proto.
24198 (GRUB_ACPI_SLP_EN): New const.
24199 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24200 (GRUB_ACPI_OPCODE_*): New enum.
24201 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24202
126b4c32
TG
242032010-09-11 Tristan Gingold <gingold@free.fr>
242042010-09-11 Robert Millan <rmh.grub@aybabtu.com>
242052010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24206
24207 * commands/lsacpi.c: New file.
24208 * grub-core/Makefile.core.def (lsacpi): New module.
24209 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24210 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24211 (grub_acpi_madt_entry_header): New struct.
24212 (grub_acpi_madt): Likewise.
24213 (grub_acpi_madt_entry_interrupt_override): Likewise.
24214 (grub_acpi_madt_entry_sapic): Likewise.
24215 (grub_acpi_madt_entry_lsapic): Likewise.
24216 (grub_acpi_madt_entry_platform_int_source): Likewise.
24217 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24218 (PRIuGRUB_UINT32_T): Likewise.
24219 (PRIxGRUB_UINT64_T): Likewise.
24220
1aa4fe88
VS
242212010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24222
24223 Implement loading palette on ieee1275_fb.
24224
24225 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24226 (have_setcolors): Likewise.
24227 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24228 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24229 (grub_video_ieee1275_set_palette): Implement.
24230
25761e13
VS
242312010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
242322010-09-11 Colin Watson <cjwatson@ubuntu.com>
24233
24234 * util/grub-install.in (grub_partition): New variable.
24235 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24236 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24237 Fixes a bug reported by Yves Blusseau.
24238
050abaea
VS
242392010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24240
24241 Fix emu on mipsel.
24242
24243 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24244 =grub_cpu_flush_cache on all mips and not only yeeloong.
24245 * configure.ac (COND_mips): New conditional.
24246 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24247 platforms.
24248 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24249 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24250 [GRUB_LINKER_HAVE_INIT]: New function.
24251 (grub_emu_post_init): Likewise.
24252 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24253 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24254 * include/grub/cache.h (_mips): Include mips/cache.h.
24255 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24256 LVM and RAID prototypes.
24257 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24258 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24259 function.
24260
5ed7d816
CW
242612010-09-10 Colin Watson <cjwatson@ubuntu.com>
24262
24263 * util/grub-install.in: Don't try to verify core.img until after
24264 running grub-mkimage to create it.
24265
90367e04
RM
242662010-09-10 Robert Millan <rmh@gnu.org>
24267
24268 * util/grub.d/10_hurd.in: Add misc readability checks.
24269 * util/grub.d/10_kfreebsd.in: Likewise.
24270 * util/grub.d/10_linux.in: Likewise.
24271
c452fa66
CW
242722010-09-10 Colin Watson <cjwatson@ubuntu.com>
24273
24274 * util/grub-install.in: ${imgext} won't be defined here until the
24275 install branch is merged. For the meantime, only verify core.img on
24276 i386-pc and sparc64-ieee1275 platforms.
24277
c38fe9f4
RM
242782010-09-10 Robert Millan <rmh@gnu.org>
24279
24280 Solaris support in grub_find_zpool_from_dir(). Thanks
24281 Seth Goldberg for referring to getextmntent() facility.
24282
24283 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24284 `sys/mkdev.h'.
24285 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24286 `<sys/mnttab.h>'.
24287 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24288 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24289 method for finding zpool name.
24290
905f7773
CW
242912010-09-10 Colin Watson <cjwatson@ubuntu.com>
24292
24293 grub-fstest needs the host and hostfs modules while other utilities
24294 actively require those modules to be absent, so grub-fstest needs
24295 its own initialisation and finalisation code.
24296
24297 * Makefile.am (grub_fstest.pp): New target.
24298 (grub_fstest_init.lst): Likewise.
24299 (grub_fstest_init.c): Likewise.
24300 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24301
fb90b546
RM
243022010-09-10 Robert Millan <rmh@gnu.org>
24303
24304 * configure.ac: Check for `struct statfs.f_fstypename' and
24305 `struct statfs.f_mntfromname'.
24306
24307 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24308 kFreeBSD-specific code.
24309
66d4bea5
RM
243102010-09-10 Robert Millan <rmh@gnu.org>
24311
24312 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24313 on ZFS. Now non-main filesystems are supported as / too.
24314
b6a690ee
CW
243152010-09-09 Colin Watson <cjwatson@ubuntu.com>
24316
24317 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24318 and grub-core/disk/host.c to ...
24319 (grub-fstest): ... here. Having the host disk implementation
24320 present confuses grub-probe and other utility programs.
24321
24322 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24323 when writing to a file, not when writing to stdout.
24324
8901b00c 243252010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24326
24327 * tests/partmap_test.in: New test for partitions.
24328 * Makefile.util.def: Rules for new test.
24329
7bf45fdd
RM
243302010-09-09 Robert Millan <rmh@gnu.org>
24331
24332 * util/grub-probe.c (probe): Fix a pair of unhandled error
24333 conditions.
24334
4dfbc574
RM
243352010-09-09 Robert Millan <rmh@gnu.org>
24336
24337 Basic Btrfs support (detection and UUID).
24338
24339 * grub-core/fs/btrfs.c: New file.
24340 * Makefile.util.def (library): Register btrfs.c.
24341 * grub-core/Makefile.core.def: Likewise.
24342
6b8e78ae
RM
243432010-09-08 Robert Millan <rmh@gnu.org>
24344
24345 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24346 with (optional) parameters to specify device and relative path.
24347 * util/grub-install.in: Use is_path_readable_by_grub() to
24348 verify readability of a few critical files.
24349 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24350 verify readability of grub.cfg.new.
24351
27f21a8b
VS
243522010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24353
24354 Split minix.mod into minix.mod and minix2.mod.
24355
24356 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24357 * grub-core/Makefile.core.def (minix2): New module.
24358 * grub-core/fs/minix.c: Use definitions instead of runtime version
24359 checking.
24360 * grub-core/fs/minix2.c: New file.
24361
c0e53ea5
YB
243622010-09-08 Yves Blusseau <blusseau@zetam.org>
24363
24364 Add new --boot-directory option to replace --root-directory
24365
24366 * util/grub-install.in: Add new --boot-directory option
24367 * util/grub-reboot.in: Likewise.
24368 * util/grub-set-default.in: Likewise.
24369
b9fe6ea2
YB
243702010-09-08 Yves Blusseau <blusseau@zetam.org>
24371
24372 * util/grub-mkconfig.in: Use new variable.
24373
d87aedff
YB
243742010-09-08 Yves Blusseau <blusseau@zetam.org>
24375
24376 * configure.ac: Define some useful variables.
24377
e55e8495
VS
243782010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24379
24380 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24381 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24382 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24383 Use terminfo and don't use cursor-on/cursor-off unless it's known
24384 to work.
24385 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24386 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24387
6fa6d675
CW
243882010-09-08 Colin Watson <cjwatson@ubuntu.com>
24389
24390 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24391 starts with "(,", fill the drive containing the loaded image in
24392 between those two characters, but expect that a full partition
24393 specification including partition map names will follow.
24394
92f2aef0
RM
243952010-09-08 Robert Millan <rmh@gnu.org>
24396
24397 * configure.ac: Remove `--enable-grub-fstest' option.
24398 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24399
24400 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24401 `grub-fstest' instead of `grub-probe' for readability verification.
24402 * util/grub-probe.c (probe): Remove readability verification kludge.
24403
99fd620d
RM
244042010-09-08 Robert Millan <rmh@gnu.org>
24405
24406 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24407 initializing `GRUB_FS'.
24408
058e30ac 244092010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24410
24411 Not command (!) support to GRUB script.
24412
24413 * tests/grub_script_not.in: New test.
24414 * Makefile.util.def: Rules for new test.
24415
24416 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24417 ! command as a special case.
24418 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24419
b61d05ed 244202010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24421
058e30ac 24422 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24423 grub_free.
b61d05ed 24424
4d69c786 244252010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24426
24427 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24428
aa3119c4 244292010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24430
24431 * docs/grub.texi (Shell-like scripting): Documentation for break,
24432 continue, shift and return commands.
24433
db0f7e3d
VS
244342010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24435
24436 Rename CD-ROM to cd on BIOS.
24437
24438 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24439 "cd".
24440 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24441
88b87c93
VS
244422010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24443
24444 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24445 * util/grub-probe.c (main): Likewise.
24446 * util/i386/pc/grub-setup.c (main): Likewise.
24447 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24448 Reported and debugged by: alexxy
24449
294f324d
VS
244502010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24451
24452 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24453 diagnostic info.
24454
d7ee3441
JS
244552010-09-05 Jo Shields <directhex@apebox.org>
24456
24457 * util/grub.d/30_os-prober.in: Add missing classes.
24458
d7e06c1f
VS
244592010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24460
24461 * docs/grub.texi (Theme file format): Document new position format.
24462
fc157e53
VS
244632010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24464
24465 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24466 a table. Use @code instead of @verbatim.
24467
506e9a1c
CB
244682010-09-05 Colin D Bennett <colin@gibibit.com>
24469
24470 Gfxmenu documentation.
24471
24472 * docs/grub.texi (Theme file format): New chapter.
24473
f0aff67c
SJ
244742010-09-05 Szymon Janc <szymon@janc.net.pl>
24475
24476 * grub-core/Makefile.core.def (xzio): New module.
24477 * grub-core/io/xzio.c: New file.
24478 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24479 * grub-core/lib/xzembed/xz_config.h: Likewise.
24480 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24481 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24482 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24483 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24484 * grub-core/lib/xzembed/xz_private.h: Likewise.
24485 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24486 * include/grub/file.h (grub_file_filter_id): New compression filter
24487 GRUB_FILE_FILTER_XZIO.
24488
82a85062
VS
244892010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24490
24491 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24492 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24493 size.
24494
3579415d
VS
244952010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24496
24497 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24498 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24499
5124ae6d
VS
245002010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24501
24502 Uncompressed checksum support.
24503
24504 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24505 (check_list): New parameter uncompress.
24506 (grub_cmd_hashsum): Handle --uncompress.
24507
9aadb3d1
VS
245082010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24509
24510 Reintroduce testload.
24511
24512 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24513 from here ...
24514 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24515 (GRUB_MOD_INIT): New function.
24516 (GRUB_MOD_FINI): Likewise.
24517 * grub-core/Makefile.core.def (testload): New module.
24518
a17792c3
SJ
245192010-09-05 Szymon Janc <szymon@janc.net.pl>
24520
24521 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24522 (uint8_t): New type.
24523 (uint16_t): Likewise.
24524 (uint32_t): Likewise.
24525 (uint64_t): Likewise.
24526
b81e40a3
SJ
245272010-09-05 Szymon Janc <szymon@janc.net.pl>
24528
24529 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24530
fc2ef117
VS
245312010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24532
24533 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24534 Made static.
24535 (grub_gzfile_open): Removed. All users updated.
24536 (GRUB_MOD_INIT): New function.
24537 (GRUB_MOD_FINI): Likewise.
24538 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24539 (grub_file_filters_enabled): Likewise.
24540 (grub_file_open): Handle filters.
24541 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24542 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24543 * include/grub/file.h (grub_file_filter_id_t): New type.
24544 (grub_file_filter_t): Likewise.
24545 (grub_file_filters_all): New extern variable.
24546 (grub_file_filters_enabled): Likewise.
24547 (grub_file_filter_register): New inline function.
24548 (grub_file_filter_unregister): Likewise.
24549 (grub_file_filter_disable): Likewise.
24550 (grub_file_filter_disable_compression): Likewise.
24551 * include/grub/gzio.h: Removed.
24552
35ee15e0
BC
245532010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24554
24555 Filename expansion support for wildcards in GRUB script.
24556
24557 * tests/grub_script_expansion.in: New test.
24558 * Makefile.util.def: Rule for new test.
24559
24560 * grub-core/commands/wildcard.c: New file, implements filename
24561 expansion support for GRUB script.
24562 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24563 * grub-core/script/argv.c: Cosmetic changes.
24564 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24565 Refactored to perform wildcard expansion on arguments.
24566 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24567 struct.
24568
24569 * tests/util/grub-shell.in: Fix quoting for read input.
24570
5f0c4aca
BC
245712010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24572
24573 Support for updating environment variables with matched substrings
24574 of regexp.
24575
24576 * tests/grub_cmd_regexp.in: New test.
24577 * Makefile.util.def: Rule for new test.
24578
24579 * grub-core/commands/regexp.c: New option -s to update environment
24580 variables with regexp matches.
24581
3759a35f
SJ
245822010-09-04 Szymon Janc <szymon@janc.net.pl>
24583
24584 * include/grub/file.h (grub_file): New member not_easly_seekable.
24585 (grub_file_seekable): New inline function.
24586 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24587 easily seekable.
24588 (grub_gzio_open): Set not_easly_seekable.
24589 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24590 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24591
ed8c6dec
BC
245922010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24593
24594 Support for options to appear multiple times on cmdline.
24595
24596 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24597 * grub-core/commands/extcmd.c: Support for repeatable option.
24598 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24599 repeatable option support.
24600
24601 Refactor menuentry into a regular command.
24602
24603 * grub-core/commands/menuentry.c: New file, menuentry command
24604 implementation.
24605 * grub-core/Makefile.core.def: Rule update for normal.mod.
24606 * grub-core/normal/main.c: Moved menuentry creation to
24607 grub-core/commands/menuentry.c.
24608 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24609 (grub_menu_execute_entry_real): Removed.
24610 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24611 function.
24612 (grub_script_execute_menuentry): Removed.
24613 * grub-core/script/parser.y (menuentry): Removed.
24614 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24615 * grub-core/script/yylex.l (menuentry): Removed.
24616 * include/grub/menu.h (grub_menu_init): New prototype.
24617 (grub_menu_fini): New prototype.
24618 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24619 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24620 (grub_script_execute_sourcecode): New prototype.
24621
dacd0cf0
BC
246222010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24623
24624 "return" command for GRUB script functions.
24625
24626 * tests/grub_script_return.in: New test.
24627 * Makefile.util.def: Rules for new test.
24628
24629 * grub-core/script/execute.c (grub_script_return): New function.
24630 * grub-core/script/main.c: Register/unregister return commaond.
24631 * include/grub/script_sh.h (grub_script_return): New prototype.
24632
52e72f9d
BC
246332010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24634
24635 "setparams" command to update positional parameters.
24636
24637 * tests/grub_script_setparams.in: New test.
24638 * Makefile.util.def: Rules for new test.
24639
24640 * grub-core/script/argv.c (grub_script_argv_make): New function.
24641 * grub-core/script/execute.c (replace_scope): New function.
24642 (grub_script_setparams): New function.
24643 * grub-core/script/lexer.c: Remove unused variables.
24644 * grub-core/script/main.c: Register/unregister setparams command.
24645 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24646 (grub_script_setparams): New prototype.
24647
25b60c91
BC
246482010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24649
24650 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24651 grub_free order.
24652
37e7bf68
BC
246532010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24654
24655 Support for passing block of commands as an argument to extcmds.
24656
24657 * Makefile.util.def: Rules for new test.
24658 * tests/grub_script_blockarg.in: New test.
24659 * grub-core/tests/test_blockarg.c: New file, block argument
24660 command used in the test.
24661
24662 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24663 (grub_register_extcmd_prio): New function prototype.
24664 (grub_extcmd_dispatcher): New function prototype.
24665 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24666 type.
24667 * include/grub/script_sh.h (struct grub_script): New members
24668 `children', `next_siblings' and `refcnt' for block arguments and
24669 reference counting.
24670 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24671 (grub_script_arg): New member `script' for block argument.
24672 (grub_script_argv): New member `script' for block argument.
24673 (grub_parser_param): New member `scripts' for block argument.
24674 (grub_script_mem_free): New extern function prototype.
24675 (grub_script_ref): New function prototype.
24676 (grub_script_unref): New function prototype.
24677
24678 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24679 extcmd form to support block arguments.
24680 * grub-core/script/argv.c: Block arguments support.
24681 * grub-core/script/execute.c: Likewise.
24682 * grub-core/script/lexer.c: Likewise.
24683 * grub-core/script/main.c: Likewise.
24684 * grub-core/script/script.c: Likewise.
24685 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24686 non-terminals.
24687
24688 * grub-core/commands/acpi.c: Update extcmd implementations with
24689 grub_extcmd_context_t.
24690 * grub-core/commands/cat.c: Likewise.
24691 * grub-core/commands/echo.c: Likewise.
24692 * grub-core/commands/extcmd.c: Likewise.
24693 * grub-core/commands/hashsum.c: Likewise.
24694 * grub-core/commands/hdparm.c: Likewise.
24695 * grub-core/commands/help.c: Likewise.
24696 * grub-core/commands/hexdump.c: Likewise.
24697 * grub-core/commands/i386/cpuid.c: Likewise.
24698 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24699 * grub-core/commands/i386/pc/halt.c: Likewise.
24700 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24701 * grub-core/commands/iorw.c: Likewise.
24702 * grub-core/commands/keystatus.c: Likewise.
24703 * grub-core/commands/loadenv.c: Likewise.
24704 * grub-core/commands/ls.c: Likewise.
24705 * grub-core/commands/lspci.c: Likewise.
24706 * grub-core/commands/memrw.c: Likewise.
24707 * grub-core/commands/probe.c: Likewise.
24708 * grub-core/commands/search_wrap.c: Likewise.
24709 * grub-core/commands/setpci.c: Likewise.
24710 * grub-core/commands/sleep.c: Likewise.
24711 * grub-core/disk/loopback.c: Likewise.
24712 * grub-core/hello/hello.c: Likewise.
24713 * grub-core/loader/i386/bsd.c: Likewise.
24714 * grub-core/loader/xnu.c: Likewise.
24715 * grub-core/term/gfxterm.c: Likewise.
24716 * grub-core/term/serial.c: Likewise.
24717 * grub-core/tests/lib/functional_test.c: Likewise.
24718
888d1500
BC
247192010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24720
24721 Multi-line quoted strings support.
24722
24723 * grub-core/script/lexer.c (append_newline): Removed.
24724 (grub_script_lexer_yywrap): Refactored.
24725 (grub_script_lexer_init): Refactored.
24726 * grub-core/script/yylex.l (yywrap): New function.
24727 (grub_lexer_resplit): New function.
24728 (grub_lexer_unput): New function.
24729 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24730 and resplit.
24731 * tests/grub_script_echo1.in: Added few more testcases.
24732
dda060dd
VS
247332010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24734
24735 * grub-core/kern/misc.c: Don't add abort alias in utils.
24736 Reported by: echoline.
24737
6556eba9
BC
247382010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24739
24740 Add missing files into "make dist" tarball for other platforms.
24741
24742 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24743 * conf/Makefile.common (dist_noinst_DATA): New variable.
24744 * conf/Makefile.extra-dist: Added missing make dist files.
24745 * grub-core/Makefile.core.def: Likewise.
24746
c8e7bf5f
VS
247472010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24748
24749 Compress grub_prefix.
24750
24751 * grub-core/boot/i386/pc/lnxboot.S: Use
24752 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24753 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24754 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24755 GRUB_MACHINE_PREFIX_END. All users updated.
24756 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24757 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24758 + 0x40.
24759 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24760 * util/grub-mkimage.c (image_target_desc): Change data_end to
24761 prefix_end. All users updated.
24762
a7c00cdb
VS
247632010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24764
24765 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24766 value.
24767 (grub_openbsd_boot): Likewise.
24768 (grub_netbsd_boot): Likewise.
24769 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24770 (grub_xnu_boot): Likewise.
24771
9f915872
VS
247722010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24773
24774 * configure.ac: Clean LIBS variable after tests.
24775
efa1bee7
CW
247762010-09-02 Colin Watson <cjwatson@ubuntu.com>
24777
24778 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24779
61d720e5
VS
247802010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24781
24782 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24783 echo if libdevmapper will be used.
24784
ef8e0ec8
IT
247852010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24786
24787 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24788 constant for the same file.
24789
03e261d8
VS
247902010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24791
24792 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24793
c2a4eba6
CW
247942010-09-02 Colin Watson <cjwatson@ubuntu.com>
24795
24796 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24797 grub-core/*.pp.
24798
9056cbf3
CW
247992010-09-02 Colin Watson <cjwatson@ubuntu.com>
24800
24801 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24802 required by the boot protocol.
24803
24804 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24805 ebp and edi members.
24806 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24807 state.ebp and state.edi.
24808 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24809 %ebp and %edi according to grub_relocator32_ebp and
24810 grub_relocator32_edi respectively.
24811 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24812 and state.edi.
24813
529cc99a
VS
248142010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24815
24816 Add i386-pc-pxe image target.
24817
24818 * util/grub-mkimage.c (image_target_desc): New enum value
24819 IMAGE_I386_PC_PXE.
24820 (image_targets): New target i386-pc-pxe.
24821 (generate_image): Handle i386-pc-pxe image.
24822
9a093920
VS
248232010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24824
24825 Fix grub_pxe_scan.
24826
24827 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24828 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24829 All users updated.
24830 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24831 (grub_pxe_pxenv): Correct type.
24832
f9cefc4e
CW
248332010-09-01 Colin Watson <cjwatson@ubuntu.com>
24834
24835 * NEWS: Document most of the important changes since 1.98.
24836
4066f57f
CW
248372010-09-01 Colin Watson <cjwatson@ubuntu.com>
24838
24839 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24840 generated manual page) a little.
24841
da2891f9
CW
248422010-09-01 Colin Watson <cjwatson@ubuntu.com>
24843
24844 * docs/grub.texi: Add myself as an author.
24845
ad717fae
VS
248462010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24847
24848 * Makefile.util.def (libgrub.a): Add missing sunpc.
24849 Reported by: Seth Goldberg.
24850
eefe8abd
VS
248512010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24852
24853 Interrupt wrapping and code simplifications.
24854
9494ef9a
VS
24855 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24856 x86_noieee1275 which are functionaly equivalent in this case.
24857 (grub-install): Make source on each platform explicit. Enable on
24858 all noemu.
24859 * gentpl.py (x86_efi_pc): Removed group.
24860 (x86_noefi): Likewise.
24861 (i386_noefi): Likewise.
24862 (x86_noieee1275): Likewise.
24863 (i386_noieee1275): Likewise.
24864 (i386_noefi_noieee1275): Likewise.
24865 (i386_pc_qemu_coreboot): Likewise.
24866 (i386_coreboot_multiboot): Likewise.
24867 (i386_pc_coreboot_multiboot_qemu): Likewise.
24868 (x86_noefi_mips): Likewise.
24869 (noieee1275): Likewise.
24870 (ieee1275_mips): Likewise.
24871 (noemu_noieee1275): Likewise.
24872 (cmos): New group.
24873 (usb): Likewise.
24874 (videoinkernel): Likewise.
24875 (videomodules): Likewise.
eefe8abd 24876 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
24877 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24878 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24879 include/grub/loader.h, include/grub/msdos_partition.h,
24880 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24881 include/grub/machine/console.h, include/grub/machine/vga.h,
24882 include/grub/machine/vbe.h, include/grub/machine/init.h,
24883 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24884 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 24885 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
24886 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24887 * grub-core/Makefile.core.def (kernel): Explicit the source for
24888 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24889 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24890 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24891 Use videoinkernel tag.
24892 (usb): Enable on all usb.
24893 (usbserial_common): Likewise.
24894 (usbserial_pl2303): Likewise.
24895 (usbserial_ftdi): Likewise.
24896 (uhci): Enable on all x86.
24897 (ohci): Enable on all pci.
24898 (cmostest): Enable on all CMOS.
24899 (acpi): Include commands/acpi.c on all platforms.
24900 (halt): Add relevant lib/*/halt.c.
24901 (hdparm): Enable on all pci.
24902 (lspci): Likewise.
24903 (usbtest): Enable on all usb.
24904 (ata): Enable on all pci.
24905 (ata_pthru): Likewise.
24906 (usbms): Enable on all usb.
24907 (usb_keyboard): Likewise.
24908 (font): Use tag videomodules.
24909 (bufio): Likewise.
24910 (datetime): Use tag cmos. Enable on all noemu.
24911 (mmap): Use tags common and x86.
24912 (gfxterm): Use tag videomodules.
24913 (bitmap): Likewise.
24914 (bitmap_scale): Likewise.
24915 (video_fb): Likewise.
24916 (video): Likewise.
24917 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24918 adjust padding accordingly. All users updated.
24919 (grub_ohci_transaction): Fix bad format specification.
24920 (GRUB_MOD_INIT): Add asserts for struct size.
24921 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24922 (grub_alloc_td): Likewise.
24923 (grub_free_queue): Likewise.
24924 (grub_uhci_transfer): Likewise.
24925 (grub_uhci_transaction): Fix bad format specification.
24926 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24927 (grub_usb_bulk_readwrite): Likewise.
24928 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24929 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24930 Made static.
24931 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24932 Made static.
24933 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24934 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24935 Transformed into C.
24936 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24937 Moved from here ...
24938 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24939 ... here. Transformed into C. Made static.
24940 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24941 Moved from here ...
24942 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24943 ... here. Transformed into C. Made static.
24944 * grub-core/kern/i386/pc/startup.S
24945 (grub_biosdisk_check_int13_extensions): Moved from here ...
24946 * grub-core/disk/i386/pc/biosdisk.c
24947 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24948 Made static.
24949 * grub-core/kern/i386/pc/startup.S
24950 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24951 * grub-core/disk/i386/pc/biosdisk.c
24952 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24953 Transformed into C. Made static.
24954 * grub-core/kern/i386/pc/startup.S
24955 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24956 * grub-core/disk/i386/pc/biosdisk.c
24957 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24958 Transformed into C. Made static.
24959 * grub-core/kern/i386/pc/startup.S
24960 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24961 * grub-core/disk/i386/pc/biosdisk.c
24962 (grub_biosdisk_get_diskinfo_standard): ... here.
24963 Transformed into C. Made static.
24964 * grub-core/kern/i386/pc/startup.S
24965 (grub_biosdisk_get_num_floppies): Moved from here ...
24966 * grub-core/disk/i386/pc/biosdisk.c
24967 (grub_biosdisk_get_num_floppies): ... here.
24968 Transformed into C. Made static.
24969 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24970 New function.
24971 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24972 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24973 Transformed into C. Made static.
24974 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24975 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24976 Transformed into C. Made static.
24977 * grub-core/kern/i386/ieee1275/init.c: Removed.
24978 * grub-core/kern/i386/misc.S: Likewise.
24979 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24980 Splitted from here ...
24981 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24982 Transformed into C. Made static. All users updated.
24983 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24984 Transformed into C. Made static. All users updated.
24985 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24986 Moved from here...
24987 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24988 Transformed into C. Made static. All users updated.
24989 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24990 Moved from here...
24991 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24992 Transformed into C. Made static. All users updated.
24993 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24994 Removed (replaced by C version).
24995 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24996 Moved from here...
24997 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24998 Transformed into C. Made static.
24999 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
25000 Moved from here...
25001 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
25002 ... here. Transformed into C.
25003 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
25004 Moved from here...
25005 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
25006 ... here. Transformed into C.
25007 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
25008 Moved from here...
25009 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
25010 ... here. Transformed into C. Made static.
25011 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
25012 Moved from here...
25013 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
25014 ... here. Transformed into C.
21ed554b
VS
25015 * grub-core/kern/i386/pc/startup.S
25016 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
25017 * grub-core/video/i386/pc/vbe.c
25018 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
25019 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
25020 Moved from here...
25021 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
25022 ... here. Transformed into C.
25023 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
25024 Moved from here...
25025 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
25026 ... here. Transformed into C.
25027 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
25028 Moved from here...
25029 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
25030 ... here. Transformed into C.
25031 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
25032 Moved from here...
25033 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
25034 ... here. Transformed into C.
25035 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
25036 Moved from here...
25037 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
25038 ... here. Transformed into C. Made static.
25039 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
25040 Moved from here...
25041 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
25042 ... here. Transformed into C. Made static.
25043 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
25044 Moved from here...
25045 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
25046 ... here. Transformed into C. Made static.
25047 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
25048 pxe_rm_entry as third argument.
25049 (grub_bios_interrupt): New function.
25050 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
25051 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
25052 of calling grub_stop.
25053 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
25054 * grub-core/lib/efi/halt.c (grub_halt): ...here.
25055 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
25056 * grub-core/lib/emu/halt.c (grub_halt): ... here.
25057 * grub-core/lib/i386/halt.c: Moved from here ...
25058 * grub-core/lib/i386/halt.c: ... here.
25059 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
25060 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
25061 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25062 grub_stop_floppy.
25063 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25064 * include/grub/i386/coreboot/init.h: Removed.
25065 * include/grub/i386/multiboot/init.h: Likewise.
25066 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25067 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25068 * include/grub/i386/pc/int.h: New file.
25069 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25070 (grub_pxe_scan): Removed.
25071 (grub_pxe_call): Update prototype.
25072 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25073 prototypes.
25074 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25075 * include/grub/i386/qemu/init.h: Removed.
25076 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25077 noreturn.
25078 (grub_halt): Likewise.
25079 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25080 (grub_reboot): Likewise.
25081 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25082 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
25083 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25084
215dd471
RM
250852010-08-30 Robert Millan <rmh@gnu.org>
25086
25087 * NEWS: Document addition of ZFS support in `grub-install' and
25088 `grub-mkconfig'.
25089
ebd65b82
BC
250902010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25091
25092 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25093 dprintf output.
25094
11721d19
VS
250952010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25096
25097 Remove leftover embedding of font objects.
25098
25099 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25100 * util/grub-install.in (font): Removed.
25101 * util/grub-mkimage.c (generate_image): Remove font support. All users
25102 updated.
25103
37837d4e
VS
251042010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25105
25106 Remove leftover embedding of font objects.
25107
25108 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25109 * util/grub-install.in (font): Removed.
25110 * util/grub-mkimage.c (generate_image): Remove font support. All users
25111 updated.
25112
b4c1aae0
VS
251132010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25114
25115 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 25116 Reported by: Ian Turner
b4c1aae0 25117
8920a08d
VS
251182010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25119
25120 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25121 timeout to avoid indefinite boot stalling.
25122
f21db033
VS
251232010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25124
25125 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25126 (grub_env_write_color_highlight): Likewise.
25127
9a9de209
VS
251282010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25129
25130 * grub-core/normal/term.c (print_more): Return to normal and not
25131 to standard state after printing "---MORE---".
25132
3dca01d7
VS
251332010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25134
25135 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25136 Mask out the bit 0x80 since it has other meaning that specifiing color.
25137
0b986c40
VS
251382010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25139
25140 New relocator. Allows for more kernel support and more straightforward
25141 loader writing.
25142
25143 * Makefile.am (BOOTTARGET): New variable.
25144 (QEMU32): Likewise.
25145 (linux.init.x86_64): New target.
25146 (linux.init.i386): Likewise.
25147 (multiboot.elf): Likewise.
25148 (kfreebsd.elf): Likewise.
25149 (kfreebsd.aout): Likewise.
25150 (pc-chainloader.elf): Likewise.
25151 (pc-chainloader.bin): Likewise.
25152 (ntldr.elf): Likewise.
25153 (ntldr.bin): Likewise.
25154 (multiboot2.elf): Likewise.
25155 (kfreebsd.init.x86_64): Likewise.
25156 (kfreebsd.init.i386): Likewise.
25157 (knetbsd.init.i386): Likewise.
25158 (kopenbsd.init.i386): Likewise.
25159 (knetbsd.init.x86_64): Likewise.
25160 (kopenbsd.init.x86_64): Likewise.
25161 (linux-initramfs.i386): Likewise.
25162 (linux-initramfs.x86_64): Likewise.
25163 (kfreebsd-mfsroot.i386.img): Likewise.
25164 (knetbsd.image.i386): Likewise.
25165 (kopenbsd.image.i386): Likewise.
25166 (kopenbsd.image.x86_64): Likewise.
25167 (knetbsd.miniroot-image.i386.img): Likewise.
25168 (kfreebsd-mfsroot.x86_64.img): Likewise.
25169 (knetbsd.image.x86_64): Likewise.
25170 (knetbsd.miniroot-image.x86_64.img): Likewise.
25171 (kfreebsd-mfsroot.i386.gz): Likewise.
25172 (bootcheck-kfreebsd-i386): Likewise.
25173 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25174 (bootcheck-kfreebsd-x86_64): Likewise.
25175 (knetbsd.miniroot-image.i386.gz): Likewise.
25176 (bootcheck-knetbsd-i386): Likewise.
25177 (bootcheck-kopenbsd-i386): Likewise.
25178 (bootcheck-kopenbsd-x86_64): Likewise.
25179 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25180 (bootcheck-knetbsd-x86_64): Likewise.
25181 (bootcheck-linux-i386): Likewise.
25182 (bootcheck-linux-x86_64): Likewise.
25183 (bootcheck-linux16-i386): Likewise.
25184 (bootcheck-linux16-x86_64): Likewise.
25185 (bootcheck-multiboot): Likewise.
25186 (bootcheck-multiboot2): Likewise.
25187 (bootcheck-kfreebsd-aout): Likewise.
25188 (bootcheck-pc-chainloader): Likewise.
25189 (bootcheck-ntldr): Likewise.
25190 (CLEANFILES): Add new targets.
25191 (BOOTCHECKS): New variable.
25192 (.PHONY): Add bootchecks.
25193 (SUCCESSFUL_BOOT_STRING): New variable.
25194 (BOOTCHECK_TIMEOUT): Likewise.
25195 (bootcheck): New target
25196 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25197 * configure.ac: Correct efiemu excuse.
25198 * docs/grub.texi (Supported kernels): New chapter.
25199 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25200 include/grub/mm_private.h. Simplify inclusion of
25201 include/grub/boot.h, include/grub/loader.h
25202 and include/grub/msdos_partition.h
25203 (KERNEL_HEADER_FILES) [i386_coreboot]:
25204 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25205 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25206 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25207 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25208 include/grub/machine/loader.h.
25209 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25210 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25211 extra_dist.
25212 (pci.mod): Enable on i386-multiboot.
25213 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25214 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25215 i386-qemu.
25216 (relocator.mod): Rewritten.
25217 (aout.mod): Enable on all x86.
25218 (bsd.mod): Likewise.
25219 (ntldr.mod): New module.
25220 (linux.mod): Use loader/i386/linux.c on all x86.
25221 (xnu.mod): Enable on all x86.
25222 (vga_text.mod): disable on EFI and QEMU.
25223 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25224 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25225 * grub-core/efiemu/loadcore.c: Likewise.
25226 * grub-core/efiemu/main.c: Likewise.
25227 (grub_efiemu_exit_boot_services): Removed.
25228 (grub_efiemu_finish_boot_services): Likewise.
25229 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25230 function.
25231 * grub-core/efiemu/i386/nocfgtables.c: New file.
25232 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25233 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25234 (grub_efi_finish_boot_services): Moved from here ...
25235 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25236 Fille finish memory map and related data.
25237 (finish_mmap_buf): New variable.
25238 (grub_efi_uintn_t finish_mmap_size): Likewise.
25239 (grub_efi_uintn_t finish_key): Likewise.
25240 (grub_efi_uintn_t finish_desc_size): Likewise.
25241 (grub_efi_uint32_t finish_desc_version): Likewise.
25242 (grub_efi_is_finished): Likewise.
25243 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25244 finished.
25245 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25246 (grub_elf64_phdr_iterate): Likewise.
25247 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25248 (grub_os_area_size): Likewise.
25249 (grub_machine_init): Don't reserve os area.
25250 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25251 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25252 * grub-core/kern/i386/loader.S: Removed.
25253 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25254 (grub_os_area_size): Likewise.
25255 (grub_machine_init): Don't reserve os area.
25256 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25257 Don't call grub_dl_unload_all.
25258 Don't include loader.S.
25259 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25260 Declare the memory after _end as available.
25261 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 25262 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 25263 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
25264 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25265 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25266 * include/grub/mm_private.h (grub_mm_header): ... here.
25267 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25268 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
25269 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25270 (grub_mm_region): ..here. Removed addr. Added pre_size.
25271 All users updated.
25272 * grub-core/kern/mm.c (base): Renamed to ...
25273 (grub_mm_base): ... this. Made global.
25274 (grub_real_malloc): Alloc from end of region.
25275 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25276 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25277 * grub-core/kern/powerpc/cache_flush.S: ... here.
25278 * grub-core/lib/efi/relocator.c: New file.
25279 * grub-core/lib/i386/relocator.c: Rewritten.
25280 * grub-core/lib/i386/relocator16.S: New file.
25281 * grub-core/lib/i386/relocator32.S: Likewise.
25282 * grub-core/lib/i386/relocator64.S: Likewise.
25283 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25284 * grub-core/lib/i386/relocator_common.S: New file.
25285 * grub-core/lib/ieee1275/relocator.c: Likewise.
25286 * grub-core/lib/mips/relocator.c: Rewritten.
25287 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25288 stylistic adjustments.
25289 * grub-core/lib/powerpc/relocator.c: New file.
25290 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25291 * grub-core/lib/relocator.c: Rewritten.
25292 * grub-core/lib/x86_64/relocator_asm.S: New file.
25293 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25294 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25295 (bsd_tag): New struct.
25296 (tags): New variable.
25297 (tags_last): Likewise.
25298 (netbsd_module): New struct.
25299 (netbsd_mods): New variable.
25300 (netbsd_mods_last): Likewise.
25301 (openbsd_opts): New parameter "serial".
25302 (OPENBSD_SERIAL_ARG): New definition.
25303 (netbsd_opts): New parameter "serial".
25304 (NETBSD_SERIAL_ARG): New definition.
25305 (grub_freebsd_add_meta): Reorganised into ...
25306 (grub_bsd_add_meta): ...this. All users updated.
25307 (grub_freebsd_add_mmap): Reorganised into ...
25308 (generate_e820_mmap): ...this...
25309 (grub_bsd_add_mmap): ...and this. All users updated.
25310 (grub_freebsd_list_modules): Use tags.
25311 (grub_netbsd_add_meta_module): New function.
25312 (grub_netbsd_list_modules): Likewise.
25313 (grub_freebsd_boot): Use relocator and finish EFI.
25314 (grub_openbsd_boot): Likewise.
25315 (grub_netbsd_setup_video): New function.
25316 (grub_netbsd_add_modules): Likewise.
25317 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25318 and finish EFI.
25319 (grub_bsd_unload): Unload tags.
25320 (grub_bsd_load_aout): Use relocator.
25321 (grub_bsd_elf32_size_hook): New function.
25322 (grub_bsd_elf32_hook): Use relocator.
25323 (grub_bsd_elf64_size_hook): New function.
25324 (grub_bsd_elf64_hook): Use relocator.
25325 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25326 (grub_bsd_load): Zero-out openbsd_ramdisk.
25327 (grub_bsd_load): Use relocator.
25328 (grub_cmd_openbsd): Support serial.
25329 (grub_cmd_netbsd): Support modules.
25330 (grub_cmd_freebsd_module): Use relocator.
25331 (grub_netbsd_module_load): New function.
25332 (grub_cmd_netbsd_module): Likewise.
25333 (grub_cmd_openbsd_ramdisk): Likewise.
25334 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25335 kopenbsd_ramdisk.
25336 (GRUB_MOD_FINI): Unregister new commands.
25337 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25338 (grub_freebsd_load_elfmodule_obj): Use relocator.
25339 (grub_freebsd_load_elfmodule): Likewise.
25340 (grub_freebsd_load_elf_meta): Likewise.
25341 (grub_netbsd_load_elf_meta): New function.
25342 (grub_openbsd_find_ramdisk): Likewise.
25343 * grub-core/loader/i386/bsd_helper.S: Removed.
25344 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25345 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25346 * grub-core/loader/i386/efi/linux.c: Likewise.
25347 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25348 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25349 (DEFAULT_VIDEO_MODE): Likewise.
25350 (real_mode_target): New variable.
25351 (prot_mode_target): Likewise.
25352 (initrd_mem_target): Likewise.
25353 (relocator): Likewise.
25354 (efi_mmap_buf): Likewise.
25355 (efi_mmap_size): Likewise.
25356 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25357 (free_pages): Use relocator.
25358 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25359 (grub_linux_setup_video): Return error.
25360 (grub_linux_trampoline_start): Removed.
25361 (grub_linux_trampoline_end): Likewise.
25362 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25363 andd video parameters depending on firmware.
25364 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25365 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25366 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25367 (grub_cmd_initrd): Use relocator.
25368 * grub-core/loader/i386/linux_trampoline.S: Removed.
25369 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25370 (elf_sec_entsize): Likewise.
25371 (elf_sec_shstrndx): Likewise.
25372 (elf_sections): Likewise.
25373 (grub_multiboot_load): Use relocator.
25374 (grub_multiboot_get_mbi_size): Account for sections.
25375 (grub_multiboot_make_mbi): Use relocator and support sections.
25376 (grub_multiboot_add_elfsyms): New function.
25377 (grub_multiboot_free_mbi): Free sections.
25378 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25379 (grub_linux_real_target): Likewise.
25380 (grub_linux_real_chunk): Likewise.
25381 (grub_linux16_prot_size): Likewise.
25382 (grub_linux16_boot): Use relocator.
25383 (grub_linux_unload): Unload relocator.
25384 (grub_cmd_linux): Use relocator.
25385 (grub_cmd_initrd): Likewise.
25386 * grub-core/loader/i386/pc/ntldr.c: New file.
25387 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25388 Don't try to guess CPU frequency.
25389 (grub_xnu_set_video): Stretch bitmap.
25390 (grub_xnu_boot): Use relocator.
25391 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25392 (grub_linux_unload): Free relocator.
25393 (grub_linux_load32): Use relocator.
25394 (grub_linux_load64): Likewise.
25395 (grub_cmd_initrd): Likewise.
25396 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25397 (grub_multiboot_unload): Unload relocator.
25398 (grub_cmd_multiboot): Use relocator.
25399 (grub_cmd_module): Likewise.
25400 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25401 Use relocator and support sections.
25402 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25403 (elf_sec_entsize): Likewise.
25404 (elf_sec_shstrndx): Likewise.
25405 (elf_sections): Likewise.
25406 (grub_multiboot_load): Use relocator.
25407 (grub_multiboot_get_mbi_size): Account for sections.
25408 (grub_multiboot_make_mbi): Use relocator and support sections.
25409 (grub_multiboot_add_elfsyms): New function.
25410 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25411 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25412 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25413 Prototype changed. All users updated.
25414 (grub_xnu_align_heap): Simplified.
25415 (grub_xnu_writetree_toheap): Likewise.
25416 (grub_xnu_unload): Unload relocator.
25417 (grub_cmd_xnu_kernel): Use relocator.
25418 (grub_cmd_xnu_kernel64): Likewise.
25419 (grub_xnu_register_memory): Simplified.
25420 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
25421 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25422 EFI is finished.
25423 (grub_console_checkkey): Likewise.
25424 (grub_console_getkey): Likewise.
25425 (grub_console_getwh): Likewise.
25426 (grub_console_getxy): Likewise.
25427 (grub_console_gotoxy): Likewise.
25428 (grub_console_cls): Likewise.
25429 (grub_console_setcolorstate): Likewise.
25430 (grub_console_setcursor): Likewise.
25431 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25432 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25433 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25434 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25435 * grub-core/tests/boot/kernel-8086.S: Likewise.
25436 * grub-core/tests/boot/kernel-i386.S: Likewise.
25437 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25438 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25439 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25440 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25441 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25442 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25443 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25444 * grub-core/tests/boot/linux.cfg: Likewise.
25445 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25446 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25447 * grub-core/tests/boot/linux16.cfg: Likewise.
25448 * grub-core/tests/boot/multiboot.cfg: Likewise.
25449 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25450 * grub-core/tests/boot/ntldr.cfg: Likewise.
25451 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25452 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25453 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25454 New definition.
25455 * include/grub/dl.h (grub_dl_unload_all): Removed.
25456 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25457 (grub_efi_finish_boot_services): Change prototype.
25458 (grub_efi_is_finished): New variable.
25459 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25460 Changed prototype.
25461 (grub_efiemu_finish_boot_services): Removed.
25462 (grub_machine_efiemu_init_tables): New prototype.
25463 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25464 (grub_elf64_phdr_iterate): Likewise.
25465 * include/grub/i386/bsd.h: Include relocator.h.
25466 (freebsd_tag_header): New struct.
25467 (grub_openbsd_bios_mmap): Removed.
25468 (grub_unix_real_boot): Removed.
25469 (grub_freebsd_load_elfmodule32): Changed prototype.
25470 (grub_freebsd_load_elfmodule_obj64): Likewise.
25471 (grub_freebsd_load_elf_meta32): Likewise.
25472 (grub_freebsd_load_elf_meta64): Likewise.
25473 (grub_freebsd_add_meta): Removed.
25474 (grub_netbsd_load_elf_meta32): New prototype.
25475 (grub_netbsd_load_elf_meta64): Likewise.
25476 (grub_bsd_add_meta): Likewise.
25477 (grub_openbsd_ramdisk_descriptor): New struct.
25478 (grub_openbsd_find_ramdisk32): New prototype.
25479 (grub_openbsd_find_ramdisk64): Likewise.
25480 * include/grub/i386/coreboot/loader.h: Removed.
25481 * include/grub/i386/efi/loader.h: Likewise.
25482 * include/grub/i386/ieee1275/loader.h: Likewise.
25483 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25484 to grub_uint32_t.
25485 * include/grub/i386/loader.h: Removed.
25486 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25487 value.
25488 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25489 (grub_phys_addr_t): New type.
25490 (grub_vtop): New inline function.
25491 (grub_map_memory): Likewise.
25492 (grub_unmap_memory): Likewise.
25493 * include/grub/i386/multiboot/loader.h: Removed.
25494 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25495 (NETBSD_BTINFO_CONSOLE): New definition.
25496 (NETBSD_BTINFO_SYMTAB): Likewise.
25497 (NETBSD_BTINFO_MODULES): Likewise.
25498 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25499 (grub_netbsd_bootinfo): New struct.
25500 (grub_netbsd_btinfo_common): Use explicit bitsize.
25501 (grub_netbsd_btinfo_mmap_entry): Removed.
25502 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25503 (grub_netbsd_btinfo_bootdisk): New struct.
25504 (grub_netbsd_btinfo_symtab): Likewise.
25505 (grub_netbsd_btinfo_serial): Likewise.
25506 (grub_netbsd_btinfo_modules): Likewise.
25507 (grub_netbsd_btinfo_framebuf): Likewise.
25508 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25509 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25510 Likewise.
25511 (grub_openbsd_bootargs): Use explicit bitsize.
25512 (grub_openbsd_bootarg_console): New struct.
25513 (GRUB_OPENBSD_COM_MAJOR): New definition.
25514 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25515 * include/grub/i386/pc/efiemu.h: Removed.
25516 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25517 * include/grub/i386/qemu/loader.h: Removed.
25518 * include/grub/i386/relocator.h: Rewritten.
25519 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25520 * include/grub/mips/memory.h: New file.
25521 * include/grub/mips/multiboot.h: Rewritten.
25522 * include/grub/mips/relocator.h: Rewritten.
25523 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25524 (grub_vtop): New function.
25525 (grub_map_memory): Likewise.
25526 (grub_unmap_memory): Likewise.
25527 * include/grub/misc.h (ALIGN_DOWN): New definition.
25528 * include/grub/mm.h (grub_mm_check_real): New proto.
25529 (GRUB_MM_CHECK): New definition.
25530 * include/grub/mm_private.h: New file.
25531 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25532 (grub_multiboot_get_mbi_size): Removed.
25533 (grub_multiboot_make_mbi): Change prottype.
25534 (grub_multiboot_set_accepts_video): New proto.
25535 (grub_multiboot_add_elfsyms): Likewise.
25536 (grub_multiboot_payload_eip): New variable.
25537 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25538 New prototype.
25539 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25540 New definition.
25541 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25542 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25543 * include/grub/powerpc/ieee1275/loader.h: Removed.
25544 * include/grub/powerpc/memory.h: New file.
25545 * include/grub/powerpc/relocator.h: Likewise.
25546 * include/grub/relocator.h: Likewise.
25547 * include/grub/relocator_private.h: Likewise.
25548 * include/grub/sparc64/ieee1275/loader.h: Removed.
25549 * include/grub/x86_64/memory.h: New file.
25550 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25551 (grub_xnu_heap_malloc): Likewise.
25552 (grub_xnu_heap_real_start): Removed.
25553 (grub_xnu_heap_start): Likewise.
25554 (grub_xnu_relocator): New variable.
25555 (grub_xnu_heap_target_start): Likewise.
25556 * tests/util/grub-shell.in: Support non-pc.
25557 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 25558
5303b85d
VS
255592010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25560
25561 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25562 on malloc error.
25563 (grub_bidi_logical_to_visual): Check that malloc succeded.
25564 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25565 puts.
25566 (grub_xputs_normal): Likewise.
25567
d768d159
VS
255682010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25569
25570 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25571 extra_dist.
25572
255732010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25574
25575 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25576
5bf84df4
VS
255772010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25578
25579 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25580
3626810e
VS
255812010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25582
25583 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25584 dprintf.
25585
a7363f53
BC
255862010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25587
25588 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25589
902f75f6
VS
255902010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25591
25592 * grub-core/normal/term.c (print_more): Fix a memory leak.
25593 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25594 (grub_xputs_normal): Likewise.
25595
3c707967
VS
255962010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25597
25598 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25599 the begining of the string
25600
2053cc07
VS
256012010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25602
25603 * grub-core/script/script.c (grub_script_parse): Free parsed on
25604 failure.
25605
46422ebf
VS
256062010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25607
25608 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25609 on failure.
25610
9e0fa3f6
VS
256112010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25612
25613 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25614 return.
25615
3393cf16
VS
256162010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25617
25618 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25619 (scroll_up): Fix a memory leak.
25620
b17540cb
VS
256212010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25622
25623 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25624 errors.
25625
67140446
VS
256262010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25627
25628 Handle USB pendrives exposed as floppies.
25629
25630 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25631 floppy.
25632 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25633 Check for partitions on all devices.
25634
e35e46fc
VS
256352010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25636
25637 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25638 (readkey): Likewise.
25639
d24c6190
BC
256402010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25641
25642 Multiple variable names support to "export" command.
25643
25644 * normal/context.c (grub_cmd_export): "export" command supports
25645 multiple variable names.
25646
04ddcc6a
ST
256472010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25648
25649 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25650 --target=drive output to Mach device name.
25651
0c8b61d8
BC
256522010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25653
25654 New Automake based build system for GRUB.
25655
25656 * ABOUT-NLS: New file.
25657 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25658 in Makefile.util.def file.
25659 * Makefile.util.def: New file. Autogen build definitions file for
25660 GRUB host utils.
25661 * conf/Makefile.common: New file. Common variables for GRUB host
25662 utils and target modules.
25663 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25664 * docs/Makefile.am: New file. Automake file for docs.
25665 * gentpl.py: New file. Python script to generate Autogen
25666 template.
25667 * grub-core/Makefile.am: New file. GRUB target modules' rules
25668 that doesn't fit in Makefile.core.def file.
25669 * grub-core/Makefile.core.def: New file. Autogen build
25670 definitions file for GRUB target modules.
25671 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25672 specific setjmp.S file.
25673 * po/Makefile.am: New file.
25674
25675 * .bzrignore: New ignores.
25676 * INSTALL: New requirements, without Ruby.
25677 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25678 * autogen.sh: Updated to invoke autogen as necessary.
25679 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25680 and defines for Automake conditionals.
25681 * geninit.sh: Refactoring.
25682
25683 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25684 necessary.
25685 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25686 New prototype.
25687
25688 * include/grub/test.h: Fix functional test modules' naming.
25689 * grub-core/tests/example_functional_test.c: Fix test module name.
25690
25691 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25692 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25693 * util/grub-editenv.c: Likewise.
25694 * util/grub-fstest.c: Likewise.
25695 * util/grub-mkdevicemap.c: Likewise.
25696 * util/grub-mkfont.c: Likewise.
25697 * util/grub-mkimage.c: Likewise.
25698 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25699 * util/grub-probe.c: Likewise.
25700 * util/grub-script-check.c: Likewise.
25701 * util/i386/pc/grub-setup.c: Likewise.
25702 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25703
25704 * tests/util/grub-shell.in: Fix override directory path.
25705 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25706 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25707
25708 * util/lvm.c: Update #includes.
25709 * util/raid.c: Likewise.
25710 * util/resolve.c: Likewise.
25711 * grub-core/bus/emu/pci.c: Likewise.
25712 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25713 * grub-core/lib/posix_wrap/string.h: Likewise.
25714 * grub-core/kern/emu/main.c: Likewise.
25715
25716 * grub-core/gensymlist.sh: New file. Script for generating kernel
25717 symbols file.
25718 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25719
25720 * grub-core/gentrigtables.c: Fix unused variable warnings.
25721
25722 * Makefile.in: Removed.
25723 * conf/any-emu.rmk: Removed.
25724 * conf/common.rmk: Removed.
25725 * conf/i386-coreboot.rmk: Removed.
25726 * conf/i386-efi.rmk: Removed.
25727 * conf/i386-ieee1275.rmk: Removed.
25728 * conf/i386-multiboot.rmk: Removed.
25729 * conf/i386-pc.rmk: Removed.
25730 * conf/i386-qemu.rmk: Removed.
25731 * conf/i386.rmk: Removed.
25732 * conf/mips-yeeloong.rmk: Removed.
25733 * conf/mips.rmk: Removed.
25734 * conf/powerpc-ieee1275.rmk: Removed.
25735 * conf/sparc64-ieee1275.rmk: Removed.
25736 * conf/tests.rmk: Removed.
25737 * conf/x86-efi.rmk: Removed.
25738 * conf/x86_64-efi.rmk: Removed.
25739 * gendistlist.sh: Removed.
25740 * geninitheader.sh: Removed.
25741 * genkernsyms.sh.in: Removed.
25742 * genmk.rb: Removed.
25743 * gensymlist.sh.in: Removed.
25744 * mkinstalldirs: Removed.
25745 * boot: Moved ...
25746 * grub-core/boot: ... to here.
25747 * bus: Moved ...
25748 * grub-core/bus: ... to here.
25749 * commands: Moved ...
25750 * grub-core/commands: ... to here.
25751 * disk: Moved ...
25752 * grub-core/disk: ... to here.
25753 * efiemu: Moved ...
25754 * grub-core/efiemu: ... to here.
25755 * font: Moved ...
25756 * grub-core/font: ... to here.
25757 * fs: Moved ...
25758 * grub-core/fs: ... to here.
25759 * gencmdlist.sh: Moved ...
25760 * grub-core/gencmdlist.sh: ... to here.
25761 * genemuinit.sh: Moved ...
25762 * grub-core/genemuinit.sh: ... to here.
25763 * genemuinitheader.sh: Moved ...
25764 * grub-core/genemuinitheader.sh: ... to here.
25765 * genfslist.sh: Moved ...
25766 * grub-core/genfslist.sh: ... to here.
25767 * genhandlerlist.sh: Moved ...
25768 * grub-core/genhandlerlist.sh: ... to here.
25769 * genmoddep.awk: Moved ...
25770 * grub-core/genmoddep.awk: ... to here.
25771 * genmodsrc.sh: Moved ...
25772 * grub-core/genmodsrc.sh: ... to here.
25773 * genpartmaplist.sh: Moved ...
25774 * grub-core/genpartmaplist.sh: ... to here.
25775 * genparttoollist.sh: Moved ...
25776 * grub-core/genparttoollist.sh: ... to here.
25777 * genterminallist.sh: Moved ...
25778 * grub-core/genterminallist.sh: ... to here.
25779 * gentrigtables.c: Moved ...
25780 * grub-core/gentrigtables.c: ... to here.
25781 * genvideolist.sh: Moved ...
25782 * grub-core/genvideolist.sh: ... to here.
25783 * gettext: Moved ...
25784 * grub-core/gettext: ... to here.
25785 * gfxmenu: Moved ...
25786 * grub-core/gfxmenu: ... to here.
25787 * gnulib: Moved ...
25788 * grub-core/gnulib: ... to here.
25789 * hello: Moved ...
25790 * grub-core/hello: ... to here.
25791 * hook: Moved ...
25792 * grub-core/hook: ... to here.
25793 * io: Moved ...
25794 * grub-core/io: ... to here.
25795 * kern: Moved ...
25796 * grub-core/kern: ... to here.
25797 * lib: Moved ...
25798 * grub-core/lib: ... to here.
25799 * loader: Moved ...
25800 * grub-core/loader: ... to here.
25801 * mmap: Moved ...
25802 * grub-core/mmap: ... to here.
25803 * normal: Moved ...
25804 * grub-core/normal: ... to here.
25805 * partmap: Moved ...
25806 * grub-core/partmap: ... to here.
25807 * parttool: Moved ...
25808 * grub-core/parttool: ... to here.
25809 * script: Moved ...
25810 * grub-core/script: ... to here.
25811 * term: Moved ...
25812 * grub-core/term: ... to here
25813 * tests/example_functional_test.c: Moved ...
25814 * grub-core/tests/example_functional_test.c: ... to here.
25815 * tests/lib/functional_test.c: Moved ...
25816 * grub-core/tests/lib/functional_test.c: ... to here.
25817 * tests/lib/test.c: Moved ...
25818 * grub-core/tests/lib/test.c: ... to here.
25819 * video: Moved ...
25820 * grub-core/video: ... to here.
25821
645586e6
BC
258222010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25823
25824 Replace --enable-grub-emu-modules with grub-emu-lite.
25825
25826 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25827 cache.S.
25828
25829 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25830 * kern/emu/full.c: New file. For grub-emu specific initialization.
25831 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25832 * kern/emu/main.c: Call initialization function grub_emu_init.
25833
25834 * Makefile.in: Include grub-emu-lite in install.
25835 * commands/parttool.c: Use grub_no_autoload to differentiate
25836 between grub-emu and grub-emu-lite.
25837 * include/grub/misc.h: New variable grub_no_autoload.
25838
25839 * conf/any-emu.rmk: New rules for grub-emu-lite.
25840 * configure.ac: Remove --enable-grub-emu-modules.
25841 * genmk.rb: Cleanup unnecessary rules.
25842 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25843
25844 * normal/main.c: Don't load list files on grub-emu-lite.
25845 * util/misc.c (grub_arch_sync_caches): Removed.
25846
f86a4030
CW
258472010-08-23 Colin Watson <cjwatson@ubuntu.com>
25848
25849 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25850 grub-mkimage rather than grub-mkelfimage.
25851 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25852
06776944
VS
258532010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25854
25855 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25856 a key after CapsLock or NumLock. It's just a qemu bug.
25857
df262419
VS
258582010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25859
25860 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25861 needed by libusb wrapper.
25862
b40ea81b
ST
258632010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25864
25865 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25866
dee50575
VS
258672010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25868
25869 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25870 --nounzip is passed.
25871
fb1d7b79
VS
258722010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25873
25874 USB hotunplugging and USB serial support.
25875
25876 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25877 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25878 (grub_uhci_transfer): Respect timeout and set *actual.
25879 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25880 non-standard length.
25881 (grub_usb_device_attach): Autoload modules.
25882 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25883 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25884 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25885 users updated.
25886 (grub_usb_add_hub): Fill nports and children.
25887 (attach_root_port): Receive hub instead of controller.
25888 All users updated. Fill hub->devices.
25889 (grub_usb_root_hub): Allocate hub->devices.
25890 (detach_device): New function.
25891 (poll_nonroot_hub): Fill children and detach devices.
25892 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25893 actual arguments. All users updated.
25894 (grub_usb_bulk_read_extended): New function.
25895 * bus/usb/serial/common.c: New file.
25896 * bus/usb/serial/ftdi.c: Likewise.
25897 * bus/usb/serial/pl2303.c: Likewise.
25898 * commands/terminal.c (handle_command): Support wildcard.
25899 * commands/usbtest.c: Output "Unknown" instead of empty string.
25900 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25901 (usbserial_common_mod_SOURCES): New variable.
25902 (usbserial_common_mod_CFLAGS): Likewise.
25903 (usbserial_common_mod_LDFLAGS): Likewise.
25904 (pkglib_MODULES): Add usbserial_pl2303.mod.
25905 (usbserial_pl2303_mod_SOURCES): New variable.
25906 (usbserial_pl2303_mod_CFLAGS): Likewise.
25907 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25908 (pkglib_MODULES): Add usbserial_ftdi.mod.
25909 (usbserial_ftdi_mod_SOURCES): New variable.
25910 (usbserial_ftdi_mod_CFLAGS): Likewise.
25911 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25912 (pkglib_MODULES): Add serial.mod.
25913 (serial_mod_SOURCES): New variable.
25914 (serial_mod_CFLAGS): Likewise.
25915 (serial_mod_LDFLAGS): Likewise.
25916 * conf/i386-pc.rmk: Likewise.
25917 * conf/mips-yeeloong.rmk: Likewise.
25918 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25919 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25920 * disk/usbms.c (first_available_slot): New variable.
25921 (grub_usbms_attach): Don't reuse free slots due to potential cache
25922 problems.
25923 * include/grub/serial.h: Moved to ..
25924 * include/grub/ns8250.h: ...this.
25925 * include/grub/serial.h: New file.
25926 * include/grub/term.h (grub_term_poll_usb): New variable.
25927 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25928 readkey. All users updated.
25929 (grub_terminfo_output_state): Pass term to put.
25930 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25931 (grub_usb_controller_dev): Add timeout and actual arguments to
25932 transfer. All users updated.
25933 (grub_usb_interface): New field detach_data.
25934 (grub_usb_device): New fields children and nports.
25935 (grub_usb_ep_type_t): New type.
25936 (grub_usb_get_ep_type): New function.
25937 (grub_usb_bulk_read_extended): Likewise.
25938 * include/grub/usbdesc.h (grub_usb_desc): New type.
25939 * include/grub/usbserial.h: New file.
25940 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25941 * kern/term.c (grub_term_poll_usb): New variable.
25942 (grub_getkey): Call grub_term_poll_usb if set.
25943 (grub_checkkey): Likewise.
25944 (grub_getkeystatus): Likewise.
25945 * term/serial.c: Moved controller-specific parts to ...
25946 * term/ns8250.c: ... here.
25947 * term/serial.c: Mostly rewritten.
25948 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25949 according to spec.
25950
21a313de
RM
259512010-08-20 Robert Millan <rmh@gnu.org>
25952
25953 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25954 a separate module and maybe other interesting combinations.
25955
25956 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25957 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25958 (kfreebsd_entry): Add generic filesystem module load routine.
25959 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25960
63c734a6
CW
259612010-08-20 Colin Watson <cjwatson@ubuntu.com>
25962
25963 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25964 "numcenter" (I misunderstood the purpose of this entry).
25965 * docs/grub.texi (sendkey): Likewise.
25966
c4d16542
CW
259672010-08-20 Colin Watson <cjwatson@ubuntu.com>
25968
25969 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25970 status flag options; simply omitting the option is equivalent and
25971 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25972 (keysym_table): Rename "num5numlock" to "numlock".
25973 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25974 can uniformly say that only the last of multiple `sendkey'
25975 invocations has any effect.
25976 * docs/grub.texi (sendkey): New section.
25977
93541d66
CW
259782010-08-19 Colin Watson <cjwatson@ubuntu.com>
25979
25980 * commands/i386/pc/sendkey.c (options): Fix three typos.
25981
b4ece5e1
VS
259822010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25983
25984 Implement sendkey support.
25985
25986 * commands/i386/pc/sendkey.c: New file.
25987 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25988 (sendkey_mod_SOURCES): New variable.
25989 (sendkey_mod_CFLAGS): Likewise.
25990 (sendkey_mod_LDFLAGS): Likewise.
25991
51f1f5af
CW
259922010-08-18 Colin Watson <cjwatson@ubuntu.com>
25993
25994 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25995 fix warnings from Autoconf.
25996
9da94e05
CW
259972010-08-18 Colin Watson <cjwatson@ubuntu.com>
25998
25999 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
26000 to avoid false positives with some assemblers that output things
26001 like "someprefix_func" as part of their output.
26002
729a0f2e
RM
260032010-08-15 Robert Millan <rmh@gnu.org>
26004
26005 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
26006 errors.
26007 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
26008 grub_get_libzfs_handle() errors.
26009
f3710e08
RM
260102010-08-14 Robert Millan <rmh@gnu.org>
26011
26012 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
26013 filesystem is not ZFS.
26014
7a3c13de
BC
260152010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26016
26017 Fix for misspelled color names defaulting to black/black (bug
26018 reported by Doug Nazar)
26019
26020 * include/grub/normal.h (grub_parse_color_name_pair): Add return
26021 status to prototype.
26022 * normal/color.c (grub_parse_color_name_pair): Return failure
26023 status.
26024 (grub_env_write_color_normal): Ignore bad color names.
26025 (grub_env_write_color_highlight): Likewise.
26026 * normal/main.c (GRUB_MOD_INIT): Set default color names.
26027
ab8ba50d
BC
260282010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26029
26030 "shift" command support to GRUB script.
26031
26032 * include/grub/script_sh.h (grub_script_shift): New prototype.
26033 * script/execute.c (grub_script_shift): New function.
26034 * script/main.c (grub_script_init): Register shift command.
26035 (grub_script_fini): Unregister shift command.
26036 * util/grub-script-check.c (grub_script_cmd_shift): New function.
26037
26038 * tests/grub_script_shift.in: New testcase.
26039 * conf/tests.rmk: Rules for new testcase.
26040
4d61999e
BC
260412010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26042
26043 "continue" command support to GRUB script.
26044
26045 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
26046 (grub_script_break): Continue support.
26047 * script/main.c (grub_script_init): Register continue command.
26048 (grub_script_fini): Unregister continue command.
26049
26050 * tests/grub_script_continue.in: New testcase.
26051 * conf/tests.rmk: Rules for new testcase.
26052
4df51e00
BC
260532010-08-12 BVK Chaitanya <bvk@dbook>
26054
26055 "break" command support to GRUB script.
26056
26057 * conf/common.rmk: Rule updates to grub-script-check.
26058 * include/grub/misc.h (grub_min): New function.
26059 * include/grub/script_sh.h (grub_script_init): New prototype.
26060 (grub_script_fini): New prototype.
26061 (grub_script_break): New prototype.
26062 * script/main.c (grub_script_init): New function.
26063 (grub_script_fini): New function.
26064 * script/execute.c (grub_script_break): New function.
26065 * normal/main.c: Calls to grub_script_{init,fini}.
26066 * util/grub-script-check.c (grub_script_break): New function.
26067
26068 * tests/grub_script_break.in: New testcase.
26069 * conf/tests.rmk: Rules for new test case.
26070
f12c8420
BC
260712010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26072
26073 Function parameters support to GRUB script.
26074
26075 * script/yylex.l (VARIABLE): Regular expression update.
26076 * script/function.c (grub_script_function_call): Moved ...
26077 * script/execute.c (grub_script_function_call): ... to here.
26078 (grub_script_execute_arglist_to_argv): Removed.
26079 (grub_script_arglist_to_argv): New function.
26080 * script/argv.c: New file.
26081 (grub_script_argv_free): New function.
26082 (grub_script_argv_next): Likewise.
26083 (grub_script_argv_append): Likewise.
26084 (grub_script_argv_split_append): Likewise.
26085 * include/grub/script_sh.h (grub_script_argv): New struct.
26086 (grub_script_argv_free): New function.
26087 (grub_script_argv_next): Likewise.
26088 (grub_script_argv_append): Likewise.
26089 (grub_script_argv_split_append): Likewise.
26090
26091 * conf/common.rmk (normal.mod): New source script/argv.c.
26092
26093 * tests/grub_script_echo1.in: More tests.
26094 * tests/grub_script_vars1.in: Likewise.
26095 * tests/grub_script_functions.in: New test case.
26096 * conf/tests.rmk: Rules for new testcase.
26097
8022b748
BC
260982010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26099
26100 Remove grub_script_cmdblock struct.
26101
26102 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26103 * script/parser.y: Likewise.
26104 * script/execute.c: Rename cmdblock suffix to cmdlist.
26105 * script/script.c: Likewise.
26106 * util/grub-script-check.c: Likewise.
26107
79a6ba61
YB
261082010-08-11 Yves Blusseau <blusseau@zetam.org>
26109
26110 * .bzrignore: add grub-macho2img
26111
d04b9414
VS
261122010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26113
26114 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26115
f947ab49
VS
261162010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26117
26118 Remove the dump of sm712 initialisation sequence.
26119
26120 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26121 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26122 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26123 (GRUB_VGA_CR_*): Added many registers.
26124 (GRUB_VGA_SR_*): Likewise.
26125 (GRUB_VGA_GR_*): Likewise.
26126 (grub_vga_write_arx): New function.
26127 (grub_video_hw_config): New struct.
26128 (grub_vga_set_geometry): New function.
26129 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26130 GRUB_PCI_CLASS_SUBCLASS_VGA.
26131 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26132 * video/sm712.c (grub_sm712_write_reg): New function
26133 (grub_sm712_read_reg): Likewise.
26134 (grub_sm712_sr_write): Likewise.
26135 (grub_sm712_gr_write): Likewise.
26136 (grub_sm712_cr_write): Likewise.
26137 (grub_sm712_write_arx): Likewise.
26138 (grub_sm712_cr_shadow_write): Likewise.
26139 (grub_sm712_write_dda_lookup): Likewise.
26140 (grub_video_sm712_setup): Initialise the video rather then
26141 blindly replay the dump.
26142 (main) [TEST]: Add a routine to be able to compile as standalone for
26143 tests.
26144 * video/sm712_init.c (sm712_init): Removed.
26145 (sm712_sr_seq1): New array.
26146 (sm712_sr_seq2): Likewise.
26147
f0206638
VS
261482010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26149
26150 * include/grub/vga.h: Add missing grub/pci.h include.
26151
2764da3b
YB
261522010-08-10 Yves Blusseau <blusseau@zetam.org>
26153
26154 * util/grub-macho2img.c (main): fix typo
26155
cf0c775e
VS
261562010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26157
26158 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26159 (grub_vga_gr_read): Likewise.
26160 (grub_vga_cr_write): Likewise.
26161 (grub_vga_cr_read): Likewise.
26162 (grub_vga_sr_write): Likewise.
26163 (grub_vga_sr_read): Likewise.
26164 (grub_vga_palette_read): Likewise.
26165 (grub_vga_palette_write): Likewise.
26166 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26167 (grub_sm712_sr_read): New function.
26168 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26169 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26170
07f360e9
RM
261712010-08-09 Robert Millan <rmh@gnu.org>
26172
26173 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26174 out unused variables on non-ZFS build.
26175
346c2072
RM
261762010-08-08 Robert Millan <rmh@gnu.org>
26177
26178 Fix path generation for sub-filesystems in ZFS.
26179
26180 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26181 missing slash.
26182
71175420
RM
261832010-08-08 Robert Millan <rmh@gnu.org>
26184
26185 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26186
0d8286f3
RM
261872010-08-08 Robert Millan <rmh@gnu.org>
26188
26189 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26190 exist, issue a proper error message (rely on `ls' for translated
26191 strings).
26192
55dd2924
RM
261932010-08-08 Robert Millan <rmh@gnu.org>
26194
26195 Fix grub-probe invocation.
26196
26197 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26198
d3dd9e80
RM
261992010-08-04 Robert Millan <rmh@gnu.org>
26200
26201 * configure.ac: Remove checks for getfsstat() and getmntany().
26202 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26203 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26204 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26205 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26206 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26207 function.
26208 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26209 via find_mount_point_from_dir() and getfsstat() / getmntany().
26210
0de22aa9
RM
262112010-08-04 Robert Millan <rmh@gnu.org>
26212
26213 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26214 (grub_find_zpool_from_mount_point): Merge into ...
26215 (grub_find_zpool_from_dir): ... this.
26216 * kern/emu/misc.c: Likewise.
26217
26218 * kern/emu/misc.c
26219 (grub_make_system_path_relative_to_its_root): Replace
26220 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26221 with grub_find_zpool_from_dir().
26222 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26223
62858144
RM
262242010-08-04 Robert Millan <rmh@gnu.org>
26225
26226 Support OpenSolaris in ZFS device resolution.
26227
26228 * configure.ac: Check for getmntany().
26229 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26230 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26231 support.
26232
9dd6fd50
RM
262332010-08-03 Robert Millan <rmh@gnu.org>
26234
26235 Fix grub-emu build.
26236
26237 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26238 * include/grub/emu/misc.h: ... here.
26239
26240 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26241 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26242
26243 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26244 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26245 (grub_get_libzfs_handle): Move to ...
26246 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26247 (grub_get_libzfs_handle): ... here.
26248
c9f7ff97
BC
262492010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26250
26251 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26252 as command name case.
26253
a870a783
CW
262542010-08-02 Colin Watson <cjwatson@ubuntu.com>
26255
26256 * disk/raid.c (insert_array): Select unique numbers for named arrays
26257 as well, for use as keys in the disk cache.
26258
c7db243b
RM
262592010-08-01 Robert Millan <rmh@gnu.org>
26260
26261 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26262 kFreeBSD device name, except on ZFS where the filesystem label is
26263 used.
26264 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26265 `/boot/zfs/zpool.cache'.
26266 Set mountfrom kernel variable using ${kfreebsd_device}.
26267
f7abdefb
RM
262682010-08-01 Robert Millan <rmh@gnu.org>
26269
26270 Make it even harder to use uninitialized `libzfs_handle' (and
26271 make the interface a bit simpler).
26272
26273 * include/grub/util/misc.h (grub_util_init_libzfs)
26274 (libzfs_handle): Remove.
26275 (grub_get_libzfs_handle): New prototype.
26276
26277 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26278 attribute.
26279 (grub_util_init_libzfs): Remove.
26280 (grub_get_libzfs_handle): New function.
26281
26282 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26283 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26284 accessing `libzfs_handle' directly.
26285
c882acc0
RM
262862010-08-01 Robert Millan <rmh@gnu.org>
26287
26288 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26289 (grub_find_zpool_from_mount_point): New function prototypes.
26290
26291 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26292 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26293
26294 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26295 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26296 `static' attribute.
26297
26298 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26299 finding zpool from mount point into ...
26300 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26301
26302 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26303 requested path is part of a ZFS pool, use
26304 grub_find_zpool_from_mount_point() to detect its filesystem name,
26305 and generate a path with `/fsname@path' syntax.
26306
8bfe31d8
CW
263072010-08-01 Colin Watson <cjwatson@ubuntu.com>
26308
26309 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26310 (void) rather than () so that this is a proper prototype.
26311
553df63d
VS
263122010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26313
26314 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26315
8687cf07
VS
263162010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26317
26318 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26319 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26320
ea9be8ea
CW
263212010-08-01 Colin Watson <cjwatson@ubuntu.com>
26322
26323 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26324
6eea041a
CW
263252010-08-01 Colin Watson <cjwatson@ubuntu.com>
26326
26327 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26328
2cfb45df
CW
263292010-08-01 Colin Watson <cjwatson@ubuntu.com>
26330
26331 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26332 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26333 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26334 disable gfxpayload.
26335 (Shell-like scripting): Add real content.
26336 (Serial terminal): Suggest `terminal_input serial; terminal_output
26337 serial' rather than putting the two commands on separate lines,
26338 since console input will be inoperative after the first command.
26339 (menuentry): Document --class, --users, and --hotkey options.
26340 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26341 Vladimir Serbinenko).
26342
7decd202
VS
263432010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
263442010-08-01 Colin Watson <cjwatson@ubuntu.com>
26345
26346 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26347
c882acc0
RM
263482010-08-01 Robert Millan <rmh@gnu.org>
26349
26350 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26351 (grub_find_zpool_from_mount_point): New function prototypes.
26352
26353 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26354 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26355
26356 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26357 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26358 `static' attribute.
26359
26360 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26361 finding zpool from mount point into ...
26362 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26363
26364 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26365 requested path is part of a ZFS pool, use
26366 grub_find_zpool_from_mount_point() to detect its filesystem name,
26367 and generate a path with `/fsname@path' syntax.
26368
deb0caa3
RM
263692010-08-01 Robert Millan <rmh@gnu.org>
26370
26371 Prevent accidental use of uninitialized libzfs_handle.
26372
26373 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26374 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26375 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26376
ce04ef47
CW
263772010-08-01 Colin Watson <cjwatson@ubuntu.com>
26378
26379 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26380 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26381
ebf53056
RM
263822010-08-01 Robert Millan <rmh@gnu.org>
26383
26384 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 26385
3710bb6b
RM
263862010-07-31 Robert Millan <rmh@gnu.org>
26387
26388 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26389
8072efeb
RM
263902010-07-31 Robert Millan <rmh@gnu.org>
26391
26392 * kern/emu/misc.c: Add missing license header.
26393
3169f4c7
RM
263942010-07-31 Robert Millan <rmh@gnu.org>
26395
26396 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26397
26398 * include/grub/util/libnvpair.h: Include `<config.h>'.
26399 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26400 declaring libnvpair prototypes ourselves.
26401 * include/grub/util/libzfs.h: Include `<config.h>'.
26402 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26403 declaring libzfs prototypes ourselves.
26404
26405 (libzfs_handle): Moved to ...
26406 * include/grub/util/misc.h (libzfs_handle): ... here.
26407 Include `<grub/util/libzfs.h>'.
26408
c9a00aee
RM
264092010-07-30 Robert Millan <rmh@gnu.org>
26410
26411 * include/grub/emu/misc.h: Add missing license header.
26412
a184f9c8
RM
264132010-07-30 Robert Millan <rmh@gnu.org>
26414
26415 Enable `grub-probe -t device' resolution on ZFS.
26416
26417 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26418 * include/grub/util/libnvpair.h: New file.
26419 * include/grub/util/libzfs.h: New file.
26420
26421 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26422 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26423 `<grub/util/libnvpair.h>'.
26424 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26425
26426 (find_mount_point_from_dir): New static function.
26427 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26428 function.
26429 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26430 find_root_device_from_libzfs() before ressorting to find_root_device().
26431
26432 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26433 prototype.
26434 * util/misc.c: Include `<grub/util/libzfs.h>'.
26435 (grub_util_init_libzfs): New function.
26436 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26437 [HAVE_LIBZFS] (fini_libzfs): New static function.
26438 (grub_util_init_libzfs): New function.
26439 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26440
f7790cdd
RM
264412010-07-30 Robert Millan <rmh@gnu.org>
26442
26443 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26444 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26445 `warn_unused_result' attribute.
26446 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26447 (grub_xasprintf, grub_xvasprintf): Likewise.
26448 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26449
0806b63c
RM
264502010-07-29 Robert Millan <rmh@gnu.org>
26451
26452 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26453 (probe): Handle `PRINT_FS_LABEL'.
26454 (main): Handle `-t fs_label'.
26455
9f841f5c
RM
264562010-07-29 Robert Millan <rmh@gnu.org>
26457
26458 * configure.ac: Remove grub-mkisofs checks.
26459
46371121
VS
264602010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26461
26462 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26463 Reported by: Lennart Sorensen.
26464
264652010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26466
26467 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26468 prior to terminal_input/terminal_output separation. It's been over 1.5
26469 years and those versions weren't widely deployed.
26470
a9600892
CW
264712010-07-22 Colin Watson <cjwatson@ubuntu.com>
26472
26473 * disk/raid.c (insert_array): Don't count named arrays when looking
26474 for unused array numbers.
697e053c 26475 Reported and tested by: Michael Guntsche.
a9600892 26476
c03507df
CW
264772010-07-20 Colin Watson <cjwatson@ubuntu.com>
26478
26479 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26480 implementation of this so that grub-emu links again, with a note
26481 that this should support hotplugging in the future.
26482
b26f1c11
CW
264832010-07-20 Colin Watson <cjwatson@ubuntu.com>
26484
26485 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26486
efc9d7f1
CW
264872010-07-20 Colin Watson <cjwatson@ubuntu.com>
26488
26489 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26490 handle on failure.
26491 (grub_loopback_close): Remove empty function.
26492 (grub_loopback_dev): Remove close method.
26493
dd8ff5c9
CW
264942010-07-20 Colin Watson <cjwatson@ubuntu.com>
26495
26496 Disable EFI cursor when the EFI console becomes inactive.
26497
26498 * term/efi/console.c (grub_efi_console_init): New function.
26499 (grub_efi_console_fini): New function.
26500 (grub_console_term_output): Register init and fini methods.
26501
5e3bec67
VS
265022010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26503
26504 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26505 sh script.
26506
afaec079
VS
265072010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26508
26509 * disk/loopback.c (grub_loopback): Replace filename with file.
26510 (delete_loopback): Handle new semantics.
26511 (grub_cmd_loopback): Likewise.
26512 (grub_loopback_iterate): Likewise.
26513 (grub_loopback_close): Likewise.
26514
a6a11f3c
VS
265152010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26516
26517 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26518 with -p "".
26519 Reported by: Tito Keitel.
26520
64a638b0
VS
265212010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26522
26523 * docs/grub.texi (Naming convention): Document new naming convention.
26524
ab8ba957
VS
265252010-07-20 Vadim Solomin <vadic052@gmail.com>
265262010-07-20 Colin Watson <cjwatson@ubuntu.com>
26527
26528 Generate device.map in something closer to the old ordering.
26529
26530 * util/deviceiter.c (struct device): New declaration.
26531 (compare_file_names): Rename to ...
26532 (compare_devices): ... this. Sort by kernel name in preference to
26533 the stable by-id name, but keep the latter as a fallback comparison.
26534 Update header comment.
26535 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26536 of `struct device' rather than of plain file names.
26537
a29d6a4b
TF
265382010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26539
26540 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26541 on i386.
26542
39d824e8
VS
265432010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26544
26545 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26546 hardcoding size.
26547 (setv1table): Likewise.
26548
f058276b
FZ
265492010-07-20 Colin Watson <cjwatson@ubuntu.com>
26550
26551 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26552 removing the homehost if present.
26553 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26554 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26555 removing the homehost if present.
26556 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26557 if possible.
26558 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26559
26560 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26561 parameter. Set its pointer target to 0.
26562 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26563 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26564 `data_offset' value from the superblock for 1.x metadata.
26565 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26566 data on the device.
26567 (insert_array): Record the start sector of data on the device.
26568 (grub_raid_register): Pass start_sector parameters to
26569 grub_raid_list->detect and insert_array.
26570 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26571 member.
26572 (struct grub_raid): Add start_sector parameter to `detect'.
26573
26574 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26575 __attribute__ ((packed)), leaving a comment.
26576 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26577 (grub_mdraid_detect_09): ... here and ...
26578 (grub_mdraid_detect_1x): ... here.
26579
265802010-07-20 Peter Henn <peter.henn@web.de>
26581
26582 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26583 chunk size and disk size, which are already given as sector counts
26584 as distinct from the 0.90 units. Fetch the correct device number
26585 from the role table instead of using the table index.
26586
265872010-07-20 Felix Zielcke <fzielcke@z-51.de>
26588
26589 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26590 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26591 (WriteMostly1): New macro.
26592 Set array->name to NULL for metadata format 0.90. Add support for
26593 metadata 1.x. Fix some comments.
26594 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26595 few comments.
26596 * util/getroot.c (grub_util_get_grub_dev): Add support for
26597 /dev/md/name style devices.
26598
4b761da9
CW
265992010-07-20 Colin Watson <cjwatson@ubuntu.com>
26600
26601 * .bzrignore: Ignore 20_linux_xen.
26602
5771289a
CW
266032010-07-17 Colin Watson <cjwatson@ubuntu.com>
26604
26605 * util/import_unicode.py: Remove unnecessary imports.
26606
5dab68df
AN
266072010-07-17 Aleš Nesrsta <starous@volny.cz>
26608
26609 Hotplugging and USB hub support.
26610
26611 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26612 (grub_ohci): Likewise.
26613 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26614 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26615 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26616 (GRUB_OHCI_CTRL_EDS): Likewise.
26617 (GRUB_OHCI_BULK_EDS): Likewise.
26618 (GRUB_OHCI_TDS): Likewise.
26619 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26620 (grub_ohci_ed_phys2virt): New function.
26621 (grub_ohci_virt_to_phys): Likewise.
26622 (grub_ohci_td_phys2virt): Likewise.
26623 (grub_ohci_td_virt2phys): Likewise.
26624 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26625 attachment.
26626 (grub_ohci_find_ed): New function.
26627 (grub_ohci_alloc_td): Likewise.
26628 (grub_ohci_free_td): Likewise.
26629 (grub_ohci_free_tds): Likewise.
26630 (grub_ohci_transfer): Use previously allocated memory.
26631 (grub_ohci_portstatus): Reset status changed bit.
26632 (grub_ohci_detect_dev): Supply status changed.
26633 (grub_ohci_fini_hw): Free memory.
26634 (grub_ohci_restore_hw): Reallocate memory.
26635 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26636 Reset status change.
26637 (grub_uhci_detect_dev): Supply status_change.
26638 * bus/usb/usb.c (attach_hooks): New var.
26639 (grub_usb_device_attach): New function.
26640 (grub_usb_register_attach_hook_class): Likewise.
26641 (grub_usb_unregister_attach_hook_class): Likewise.
26642 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26643 (grub_usb_add_hub): Reset connection changed bit.
26644 (attach_root_port): New function.
26645 (grub_usb_root_hub): Likewise.
26646 (poll_nonroot_hub): Likewise.
26647 (grub_usb_poll_devices): Likewise.
26648 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26649 * disk/usbms.c (grub_usbms_open): Use device hooks.
26650 (grub_usbms_iterate) :Poll devices.
26651 (grub_usbms_finddevs): Split into ...
26652 (grub_usbms_attach): ... this ...
26653 (grub_usbms_attach): ... and this.
26654 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26655 in detect_dev.
26656 (grub_usb_interface): New fields attached and detach_hook.
26657 (grub_usb_attach_hook_class): New type.
26658 (grub_usb_attach_desc): New struct.
26659 (grub_usb_register_attach_hook_class): New function.
26660 (grub_usb_unregister_attach_hook_class): Likewise.
26661 (grub_usb_poll_devices): Likewise.
26662 (grub_usb_device_attach): Likewise.
26663 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26664 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26665
3222efaf
VS
266662010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26667
26668 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26669 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26670 delta determination style. Works with most NetBSD partitions too.
26671
139b714a
VS
266722010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26673
26674 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26675 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26676
986aad56
VS
266772010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26678
26679 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26680
99be513c
AB
266812010-07-14 Anton Blanchard <anton@samba.org>
26682
26683 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26684 ET_DYN files.
26685
18075f62
GS
266862010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26687
26688 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26689
8d9a5b15
GS
266902010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26691
26692 * kern/partition.c (grub_partition_check_containment): New function to
26693 check that a partition is physically contained in a parent. Since
26694 offsets are relative (and non-negative), this reduces to checking that
26695 the partition ends before its parent.
26696 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26697 (grub_partition_iterate): Likewise.
26698 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26699 comments.
26700 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26701 partitions that start before their parent, and add debug printfs.
26702
19563c25
CW
267032010-07-13 Colin Watson <cjwatson@ubuntu.com>
26704
26705 * Makefile.in (.SUFFIX): Spell correctly, as ...
26706 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26707 bare module name without `.mod', e.g. `test') tried to invoke a
26708 Modula-2 compiler.
26709
1a1f1e67
CW
267102010-07-13 Colin Watson <cjwatson@ubuntu.com>
26711
26712 * README: Point to the Info manual.
26713
811b0dca
JS
267142010-07-13 Jiro SEKIBA <jir@unicus.jp>
26715
26716 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26717 2nd superblock position from partition size.
26718
e4f4eafc
CW
267192010-07-10 Colin Watson <cjwatson@ubuntu.com>
26720
26721 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26722 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26723 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26724 outputs.
26725
4274c30f
VS
267262010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26727
26728 Restructure SCSI .id handling.
26729 Reported and tested by: Aleš Nesrsta.
26730
26731 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26732 (grub_atapi_dev): Changed .name to "ata". New field .id.
26733 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26734 (grub_usbms_dev): New field .id.
26735 * disk/scsi.c (grub_scsi_iterate): Generate name.
26736 (grub_scsi_open): Parse name.
26737 * include/grub/scsi.h (grub_make_scsi_id): New function.
26738 (grub_scsi_dev): Change iterate and open to number instead of naming
26739 busses. All users updated.
26740 (grub_scsi): Remove name. Add .bus.
26741
5bc24388
VS
267422010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26743
26744 * commands/help.c (grub_cmd_help): Fix a typo.
26745
249975ba
VS
267462010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26747
26748 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26749 Reported and tested by: Colin Watson.
26750
3eaac1a1
VS
267512010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26752
26753 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26754 in this context.
26755
becce1b1
VS
267562010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26757
26758 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26759
f7bf0918
CW
267602010-07-07 Colin Watson <cjwatson@ubuntu.com>
26761
26762 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26763 indentation.
26764
0b0f9620
CW
267652010-07-06 Colin Watson <cjwatson@ubuntu.com>
26766
26767 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26768 and disk/raid6_recover.c.
26769 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26770 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26771
1e545469
CW
267722010-07-06 Colin Watson <cjwatson@ubuntu.com>
26773
26774 * term/gfxterm.c (repaint_schedulded): Rename to ...
26775 (repaint_scheduled): ... this. Update all callers.
26776 (repaint_was_schedulded): Rename to ...
26777 (repaint_was_scheduled): ... this. Update all callers.
26778
5357687a
CW
267792010-07-06 Colin Watson <cjwatson@ubuntu.com>
26780
26781 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26782 which we expect to be handled by upper layers.
26783
29d7e783
BC
267842010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26785
26786 * bus/usb/usbhub.c: #include time.h header.
26787
37582066
CW
267882010-07-06 Colin Watson <cjwatson@ubuntu.com>
26789
26790 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26791 entry_name also for entries without stat blocks (e.g. ".."); fixes
26792 corruption of the first entry in a directory.
26793
c8c06953
CW
267942010-07-06 Colin Watson <cjwatson@ubuntu.com>
26795
26796 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26797 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26798 doesn't work otherwise.
26799
e75056f1
CW
268002010-07-05 Colin Watson <cjwatson@ubuntu.com>
26801
26802 * docs/grub.texi (Features): Update list of supported file systems.
26803 (GNU/Linux): Update for GRUB 2.
26804 (Serial terminal): Remove mention of --disable-serial, which was a
26805 GRUB Legacy configure option. Update instructions to use
26806 `terminal_input' and `terminal_output' rather than `terminal'.
26807 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26808 configuration' and `Installing GRUB using grub-install'.
26809 (Menu entry editor): Update for GRUB 2.
26810 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26811 Document new -a, -u, and -v options.
26812 (initrd): New section.
26813 (initrd16): New section.
26814 (linux): New section.
26815 (linux16): New section.
26816 (search): The `var' argument to `--set' is optional.
26817 (GRUB only offers a rescue shell): Go into a little more detail on
26818 drive ordering.
26819
5cf69151
CW
268202010-07-05 Colin Watson <cjwatson@ubuntu.com>
26821
26822 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26823
e3f90044
CW
268242010-07-05 Colin Watson <cjwatson@ubuntu.com>
26825
26826 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26827 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26828
38d8f4f3
CW
268292010-07-05 Colin Watson <cjwatson@ubuntu.com>
26830
26831 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26832 install_prefix, in line with install_dos_part and install_bsd_part.
26833 Add new prefix variable, which is copied to install_prefix after
26834 comparing core.img in memory with the one read from disk in the
26835 no-embedding case, and use that rather than overwriting
26836 install_prefix immediately when installing to a partition.
26837 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26838 Bicakci.
26839
57ebd41e
GS
268402010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26841
26842 * configure.ac: Avoid == in test command, it's not portable.
26843 * util/grub.d/30_os-prober.in: Likewise.
26844
cb7f64b2
CW
268452010-07-04 Colin Watson <cjwatson@ubuntu.com>
26846
26847 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26848
6b654bb0
GS
268492010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26850
26851 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26852 multiple (top-level) partmaps.
26853
72a2026d
VS
268542010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26855
26856 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 26857 Reported by: Tino Keitel.
72a2026d 26858
df3eb88f
VS
268592010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26860
26861 Bidi and diacritics support.
26862
26863 * Makefile.in (widthspec.bin): New target.
26864 (widthspec.h): Likewise.
26865 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26866 * autogen.sh: Generate unidata.c.
26867 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26868 * commands/ls.c (grub_ls_list_devices): Likewise.
26869 (grub_ls_list_files): Likewise.
26870 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26871 (grub_mini_cmd_lsmod): Likewise.
26872 * commands/read.c: Likewise.
26873 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26874 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26875 * lib/arg.c (grub_arg_show_help): Likewise.
26876 * lib/crypto.c (grub_password_get): Likewise.
26877 * normal/auth.c (grub_username_get): Likewise.
26878 * normal/misc.c (grub_normal_print_device_info): Likewise.
26879 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26880 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26881 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26882 (normal/charset.c_DEPENDENCIES): New variable.
26883 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26884 (pkglib_MODULES): Remove charset.mod.
26885 (charset_mod_SOURCES): Removed.
26886 (charset_mod_CFLAGS): Likewise.
26887 (charset_mod_LDFLAGS): Likewise.
26888 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26889 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26890 and term/tparm.c.
26891 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26892 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26893 (kernel_img_HEADERS): Add terminfo.h.
26894 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26895 Fill ->font. Reverse ascii bitmaps.
26896 (grub_font_get_xheight): New function.
26897 * font/font.c (grub_font_get_string_width): Moved from here ...
26898 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26899 * font/font.c (grub_font_draw_string): Moved from here ...
26900 * gfxmenu/font.c (grub_font_draw_string): ... here.
26901 * font/font.c (grub_font_dup_glyph): New function.
26902 (grub_font_blit_glyph): Likewise.
26903 (grub_font_blit_glyph_mirror): Likewise.
26904 (blit_comb): Likewise.
26905 (grub_font_construct_dry_run): Likewise.
26906 (grub_font_get_constructed_device_width): Likewise.
26907 (grub_font_construct_glyph): Likewise.
26908 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26909 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26910 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26911 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26912 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26913 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26914 (grub_font_get_xheight): New proto.
26915 (grub_font_get_constructed_device_width): Likewise.
26916 (grub_font_construct_glyph): Likewise.
26917 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26918 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26919 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26920 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26921 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26922 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26923 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26924 (grub_console_getcharwidth): Likewise.
26925 * include/grub/misc.h (grub_xputs): New proto.
26926 (grub_puts): Inlined.
26927 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26928 (grub_normal_get_line_counter): Removed.
26929 (grub_install_newline_hook): Likewise.
26930 (grub_normal_get_char_counter): New proto.
26931 (grub_normal_reset_more): Likewise.
26932 (grub_xputs_normal): Likewise.
26933 * include/grub/powerpc/ieee1275/console.h: Removed.
26934 * include/grub/sparc64/ieee1275/console.h: Likewise.
26935 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26936 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26937 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26938 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26939 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26940 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26941 (grub_term_input): Pass reference to self. All users updated.
26942 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26943 Pass reference to self. New fields normal_color, highlight_color and
26944 data. All users updated.
26945 (grub_putchar): Removed.
26946 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26947 (grub_unicode_estimate_width): New function.
26948 (grub_term_getcharwidth): Add defaults.
26949 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26950 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26951 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26952 (grub_cls): Remove EXPORT_FUNC.
26953 (grub_setcolorstate): Inline.
26954 (grub_newline_hook): Removed.
26955 * include/grub/terminfo.h: Rewritten. All users updated.
26956 * include/grub/unicode.h: New file.
26957 * include/grub/video.h (grub_video_signed_rect): New type.
26958 * kern/emu/console.c (grub_console_highlight_color): Removed.
26959 (grub_console_normal_color): Likewise.
26960 (grub_console_standard_color): Made static.
26961 (grub_ncurses_putchar): Remove mapping.
26962 (grub_ncurses_getcharwidth): Removed.
26963 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26964 (grub_ncurses_setcolor): Removed.
26965 (grub_ncurses_getcolor): Likewise.
26966 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26967 (grub_console_putchar): ... this.
26968 (grub_console_putchar): Handle argument difference.
26969 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26970 console_init_early and console_init_lately.
26971 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26972 * kern/misc.c (grub_puts): Removed.
26973 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26974 (grub_vsnprintf_real): Remove str = NULL support.
26975 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26976 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26977 * kern/term.c (grub_putcode): Renamed to ...
26978 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26979 (grub_putchar): Removed.
26980 (grub_xputs_dumb): New function.
26981 (grub_xputs): New variable.
26982 * lib/charset.c: Move from here ...
26983 * normal/charset.c: ... to here.
26984 (grub_ucs4_to_utf8): New function.
26985 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26986 (join_types): New variable.
26987 (unpack_join): New function.
26988 (bidi_types): New variable.
26989 (unpack_bidi): New function.
26990 (get_bidi_type): Likewise.
26991 (get_join_type): Likewise.
26992 (is_mirrored): Likewise.
26993 (grub_unicode_get_comb_type): Likewise.
26994 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26995 (is_type_after): Likewise.
26996 (grub_unicode_aglomerate_comb): Likewise.
26997 (bidi_line_wrap): Likewise.
26998 (grub_bidi_line_logical_to_visual): Likewise.
26999 (grub_bidi_logical_to_visual): Likewise.
27000 (grub_unicode_mirror_code): Likewise.
27001 (grub_unicode_shape_code): Likewise.
27002 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
27003 Don't use grub_putchar.
27004 * normal/main.c (grub_normal_init_page): Use grub_putcode.
27005 (grub_normal_reader_init): Likewise.
27006 (grub_xputs_saved): New variable.
27007 (GRUB_MOD_INIT): Set grub_xputs.
27008 (GRUB_MOD_FINI): Restore grub_xputs.
27009 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
27010 (menu_init): Avoid printing gfxmenu error.
27011 (show_menu): Use grub_normal_get_char_counter.
27012 * normal/menu_entry.c (update_screen): Fix out-of-array.
27013 (complete): Avoid NULL dereferencing.
27014 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
27015 * normal/menu_text.c (print_spaces): Removed.
27016 (grub_print_ucs4): Likewise.
27017 (grub_print_message_indented): Use grub_print_ucs4.
27018 (print_message): Use grub_putcode.
27019 (print_entry): Hanlde diacritics.
27020 * normal/term.c (term_state): New type.
27021 (grub_more_lines): Removed.
27022 (term_states): New variable.
27023 (grub_normal_line_counter): Renamed to ..
27024 (grub_normal_char_counter): ...this. All users updated.
27025 (grub_normal_get_line_counter): Renamed to ...
27026 (grub_normal_get_char_counter): ... this.
27027 (grub_normal_reset_more): New function.
27028 (process_newline): Removed.
27029 (print_more): New function.
27030 (grub_install_newline_hook): Removed.
27031 (map_code): New function.
27032 (grub_puts_terminal): Use grub_print_ucs4.
27033 (putglyph): New function.
27034 (putcode_real): Likewise.
27035 (grub_putcode): Use putcode_real.
27036 (get_maxwidth): New function.
27037 (get_startwidth): Likewise.
27038 (print_ucs4_terminal): Likewise.
27039 (find_term_state): Likewise.
27040 (put_glyphs_terminal): Likewise.
27041 (print_backlog): Likewise.
27042 (print_ucs4_real): Likewise.
27043 (grub_print_ucs4): Likewise.
27044 (grub_xputs_normal): Likewise.
27045 * term/efi/console.c (grub_console_putchar): Output diacritics.
27046 (grub_console_getcharwidth): Removed.
27047 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27048 * term/gfxterm.c (clear_char): Free chars.
27049 (scroll_up): Avoid leaking memory.
27050 (grub_gfxterm_putchar): Support diacritics.
27051 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27052 * term/i386/pc/console.c (grub_console_term_output): Declare as
27053 GRUB_TERM_CODE_TYPE_VGA.
27054 * term/i386/pc/vga.c (grub_vga_term): Declare as
27055 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
27056 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
27057 GRUB_TERM_CODE_TYPE_VGA.
27058 * term/i386/vga_common.c (map_char): Removed.
27059 (grub_console_putchar): Likewise.
27060 (grub_console_getcharwidth): Likewise.
27061 * term/ieee1275/ofconsole.c: Simplify using terminfo.
27062 (colors): Reordered to match terminfo.
27063 (grub_ofconsole_normal_color): Removed.
27064 (grub_ofconsole_writeesc): Likewise.
27065 (grub_ofconsole_highlight_color): Likewise.
27066 (grub_ofconsole_getcharwidth): Likewise.
27067 (grub_ofconsole_setcolorstate): Likewise.
27068 (grub_ofconsole_setcolor): Likewise.
27069 (grub_ofconsole_getcolor): Likewise.
27070 (grub_ofconsole_readkey): Renamed to ...
27071 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27072 key.
27073 (grub_ofconsole_checkkey): Removed.
27074 (grub_ofconsole_getkey): Likewise.
27075 (grub_ofconsole_getxy): Likewise.
27076 (grub_ofconsole_gotoxy): Likewise.
27077 (grub_ofconsole_cls): Likewise.
27078 (grub_ofconsole_refresh): Likewise.
27079 (grub_ofconsole_terminfo_input): New struct.
27080 (grub_ofconsole_terminfo_output): Likewise.
27081 (grub_ofconsole_term_input): Use terminfo.
27082 (grub_ofconsole_term_output): Likewise.
27083 (grub_console_init): Split into ...
27084 (grub_console_init_early): ...this and ...
27085 (grub_console_init_lately): ...this. Use terminfo.
27086 (grub_ofconsole_putchar): Renamed to ...
27087 (put): ... this. Remove mapping.
27088 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27089 * term/serial.c: Simplify using terminfo.
27090 (xpos): Removed.
27091 (ypos): Likewise.
27092 (keep_track): Likewise.
27093 (registered): Likewise.
27094 (input_buf): Likewise.
27095 (npending): Likewise.
27096 (serial_translate_key_sequence): Likewise.
27097 (fill_input_buf): Likewise.
27098 (grub_serial_checkkey): Likewise.
27099 (grub_serial_getkey): Likewise.
27100 (grub_serial_getxy): Likewise.
27101 (grub_serial_gotoxy): Likewise.
27102 (grub_serial_putchar): Likewise.
27103 (grub_serial_cls): Likewise.
27104 (grub_serial_setcolorstate): Likewise.
27105 (grub_serial_setcursor): Likewise.
27106 (serial_hw_init): Use serial_hw_fetch.
27107 (grub_serial_terminfo_input): New variable.
27108 (grub_serial_terminfo_output): Likewise.
27109 (grub_serial_term_input): Use terminfo.
27110 (grub_serial_term_output): Likewise.
27111 * term/terminfo.c (putstr): Use put.
27112 (grub_terminfo_all_free): New function
27113 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27114 (grub_terminfo_output_register): New function.
27115 (grub_terminfo_output_unregister): Likewise.
27116 (grub_terminfo_getxy): Likewise.
27117 (grub_terminfo_readkey): Likewise.
27118 (grub_terminfo_checkkey): Likewise.
27119 (grub_terminfo_getkey): Likewise.
27120 (grub_terminfo_input_init): Likewise.
27121 (print_terminfo): Likewise.
27122 (grub_cmd_terminfo): Handle encoding.
27123 (grub_terminfo_gotoxy): Track position.
27124 (grub_terminfo_cls): Likewise.
27125 (grub_terminfo_putchar): Likewise.
27126 (grub_terminfo_setcolorstate): Handle colors
27127 (grub_terminfo_cursor_on): This ...
27128 (grub_terminfo_cursor_off): ... and this merged into ...
27129 (grub_terminfo_setcursor): ... this.
27130 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27131 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27132 * unicode/BidiMirroring.txt: Likewise.
27133 * unicode/UnicodeData.txt: Likewise.
27134 * unicode/COPYING: Likewise.
27135 * util/grub-editenv.c (grub_putchar): Removed.
27136 (grub_xputs_real): New function.
27137 (grub_xputs): New variable.
27138 * util/grub-fstest.c (grub_putchar): Removed.
27139 (grub_xputs_real): New function.
27140 (grub_xputs): New variable.
27141 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27142 (grub_xputs_real): New function.
27143 (grub_xputs): New variable.
27144 * util/grub-probe.c (grub_putchar): Removed.
27145 (grub_xputs_real): New function.
27146 (grub_xputs): New variable.
27147 * util/grub-script-check.c (grub_putchar): Removed.
27148 (grub_xputs_real): New function.
27149 (grub_xputs): New variable.
27150 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27151 (grub_xputs_real): New function.
27152 (grub_xputs): New variable.
27153 * util/import_unicode.py: New file.
27154 * util/grub-mkfont.c (ft_errmsgs): New array.
27155 (grub_glyph_info): Make bitmap a pointer.
27156 (file_formats): New type WIDTH_SPEC.
27157 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27158 (options): Add width-spec.
27159 (help): Likewise.
27160 (add_char): Renamed to ...
27161 (add_glyph): ... this.
27162 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27163 (glyph_replace): New type.
27164 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27165 (add_char): New function.
27166 (add_subst): Likewise.
27167 (process_cursive): Likewise.
27168 (add_font): Handle GSUB.
27169 (write_font_width_spec): New function.
27170 (main): Sort glyphs.
27171 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27172 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27173 * kern/term.c (grub_cls): Moved from here...
27174 * normal/term.c (grub_cls): ... here.
27175
50f0bcda
CW
271762010-07-02 Colin Watson <cjwatson@ubuntu.com>
27177
27178 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27179 suitable for using within the format argument of printf when
27180 converting grub_size_t.
27181 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27182 "x" to convert grub_size_t arguments.
27183
40372103
VS
271842010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27185
27186 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27187 too long captions.
27188 (list_get_minimal_size): Take selection box into account.
27189
942a10c7
VS
271902010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27191
27192 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27193 NULL font.
27194
2bdb2892
CW
271952010-07-02 Colin Watson <cjwatson@ubuntu.com>
27196
27197 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27198 devices when iterating over /dev/disk/by-id; they will be handled
27199 later if appropriate, which they aren't always (e.g. LVM).
27200
e03ed6c1
CW
272012010-07-02 Colin Watson <cjwatson@ubuntu.com>
27202
27203 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27204 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27205 fails.
27206 (grub_halt): Likewise.
27207 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27208 reset-all fails.
27209 (grub_halt): Don't return, even if all of shut-down, power-off, and
27210 poweroff fail.
27211
47695765
CW
272122010-07-02 Colin Watson <cjwatson@ubuntu.com>
27213
27214 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27215 arguments, not three.
27216
507736c8
CW
272172010-07-02 Colin Watson <cjwatson@ubuntu.com>
27218
27219 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27220 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27221 LVM-on-RAID is handled correctly.
27222
e3c8cd37
CW
272232010-07-02 Colin Watson <cjwatson@ubuntu.com>
27224
27225 * docs/grub.texi (Changes from GRUB Legacy): New section.
27226 (Future): Fix typo.
27227
8d4a2fec
CW
272282010-07-02 Colin Watson <cjwatson@ubuntu.com>
27229
27230 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27231 grub.d/README accidentally ends up executable for one reason or
27232 another. Ignore it.
27233
1c4827be
VS
272342010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27235
27236 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27237 (gpt_partition_map_iterate): Support non-512B sectors.
27238
d9a0c941
VS
272392010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27240
27241 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27242 Tested by: Seth Goldberg.
27243
48f27e87
VS
272442010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27245
27246 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27247 Properly align mbi.
27248 Reported by: Seth Goldberg.
27249
b0c4f956
VS
272502010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27251
27252 * util/grub-mkrescue.in: Avoid module duplication.
27253
105a2e8c
SF
272542010-07-01 Sean Finney <seanius@seanius.net>
27255
27256 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27257
5944958c
SF
272582010-07-01 Sean Finney <seanius@seanius.net>
27259
27260 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27261
272622010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27263
27264 * disk/lvm.c (grub_lvm_checkvalue): New function.
27265 (grub_lvm_check_flag): Likewise.
27266
b79889ba
RM
272672010-07-01 Robert Millan <rmh@gnu.org>
27268
27269 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27270 Support 'p' as partition separator on kernel of FreeBSD (used
27271 with GPT labels).
27272 (grub_util_biosdisk_get_grub_dev): Likewise.
27273
ec1d04f1
VS
272742010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27275
27276 Yeeloong firmware port.
27277
27278 * boot/mips/yeeloong/fwstart.S: New file.
27279 * bus/cs5536.c (gpiodump): New const.
27280 (set_io_space): New function.
27281 (set_iod): Likewise.
27282 (set_p2d): Likewise.
27283 (grub_cs5536_init_geode): Likewise.
27284 * commands/mips/yeeloong/lsspd.c: New file.
27285 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27286 (serial_mod_SOURCES): New variable.
27287 (serial_mod_CFLAGS): Likewise.
27288 (serial_mod_LDFLAGS): Likewise.
27289 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27290 term/terminfo.c and term/tparm.c.
27291 (pkglib_IMAGES): Add fwstart.img.
27292 (fwstart_img_SOURCES): New variable.
27293 (fwstart_img_CFLAGS): Likewise.
27294 (fwstart_img_ASFLAGS): Likewise.
27295 (fwstart_img_LDFLAGS): Likewise.
27296 (fwstart_img_FORMAT): Likewise.
27297 (pkglib_MODULES): Add lsspd.mod.
27298 (lsspd_mod_SOURCES): New variable.
27299 (lsspd_mod_CFLAGS): Likewise.
27300 (lsspd_mod_LDFLAGS): Likewise.
27301 (pkglib_MODULES): Add halt.mod.
27302 (halt_mod_SOURCES): New variable.
27303 (halt_mod_CFLAGS): Likewise.
27304 (halt_mod_LDFLAGS): Likewise.
27305 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27306 (serial_mod_SOURCES): Removed.
27307 (serial_mod_CFLAGS): Likewise.
27308 (serial_mod_LDFLAGS): Likewise.
27309 * disk/ata.c (check_device): New function.
27310 (grub_ata_device_initialize): Use check_device.
27311 (grub_ata_iterate): Recheck devices.
27312 (grub_ata_open): Likewise.
27313 (grub_atapi_iterate): Likewise.
27314 (grub_atapi_open): Likewise.
27315 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27316 (GRUB_ATA_CH1_PORT1): Likewise.
27317 (GRUB_ATA_CH0_PORT2): Likewise.
27318 (GRUB_ATA_CH1_PORT2): Likewise.
27319 * include/grub/mips/loongson.h: New file.
27320 * include/grub/mips/yeeloong/ec.h: Likewise.
27321 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27322 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27323 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27324 * include/grub/misc.h (grub_halt): Declare as noreturn.
27325 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27326 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27327 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27328 (UART_ENABLE_DTRRTS): Likewise.
27329 (UART_ENABLE_MODEM): Removed.
27330 (UART_ENABLE_OUT2): New const.
27331 * include/grub/term.h (grub_term_register_input_active): New function.
27332 (grub_term_register_output_active): Likewise.
27333 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27334 argument.
27335 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27336 (init_pci): New function.
27337 (grub_machine_init): Execute platform init when firmware. Init serial.
27338 (grub_halt): Implement.
27339 (grub_exit): Likewise.
27340 (grub_reboot): Likewise.
27341 * term/serial.c (serial_hw_init): Update macros.
27342 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27343 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27344 (image_targets): New target mipsel-yeeloong-flash.
27345 (generate_image): Support IMAGE_YEELOONG_FLASH.
27346 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27347 (grub_video_sm712_setup): Init card.
27348 (grub_video_sm712_set_palette): Removed.
27349 * video/sm712_init.c: New file.
27350
ff4a70d2
CW
273512010-06-30 Colin Watson <cjwatson@ubuntu.com>
27352
27353 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27354 PATH when running help2man and then run it on the unadorned
27355 executable names, rather than passing $(builddir)/* paths to
27356 help2man. This avoids the build directory ending up in generated
27357 manual pages.
27358
1246efeb
CW
273592010-06-29 Colin Watson <cjwatson@ubuntu.com>
27360
27361 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27362 to avoid accidents when debugging with 'sh -x'.
27363 * util/grub-mkrescue.in: Likewise.
27364 * util/grub.d/00_header.in: Likewise.
27365 * util/grub.d/10_hurd.in: Likewise.
27366 * util/grub.d/10_kfreebsd.in: Likewise.
27367 * util/grub.d/10_linux.in: Likewise.
27368 * util/grub.d/10_netbsd.in: Likewise.
27369 * util/grub.d/10_windows.in: Likewise.
27370 * util/grub.d/20_linux_xen.in: Likewise.
27371 * util/grub.d/30_os-prober.in: Likewise.
27372 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27373
1ba9b889
CW
273742010-06-29 Colin Watson <cjwatson@ubuntu.com>
27375
27376 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27377 last character in the buffer.
27378 Reported by: Vladimir Serbinenko.
27379
dccaf99d
RM
273802010-06-29 Robert Millan <rmh@gnu.org>
27381
27382 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27383 (Command-line and menu entry commands): Document `badram' command.
27384
d500ed12
RM
273852010-06-28 Robert Millan <rmh@gnu.org>
27386
27387 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27388 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27389 command using ${GRUB_BADRAM} as parameter.
27390
20bc84a6
CW
273912010-06-28 Colin Watson <cjwatson@ubuntu.com>
27392
27393 * docs/grub.texi (Device map): New section.
27394 (Themes): New section (stub).
27395 * Makefile.in (docs/grub.info): The info documentation now builds
27396 without errors. Make sure it stays that way.
27397
4045dee1
VS
273982010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27399
27400 Use normal parser for menu entries.
27401 Reported by: Thomas Frauendorfer
27402
27403 * include/grub/parser.h (grub_parser_execute): Don't export.
27404 * normal/menu.c (grub_menu_execute_entry_real): New function.
27405 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27406
bca58c7b
CW
274072010-06-28 Colin Watson <cjwatson@ubuntu.com>
27408
27409 * docs/grub.texi (Embedded configuration): New section (replacing
27410 old "Preset Menu" stub).
27411 (Images): New section.
27412 (configfile): Note that any menu entries defined in `file' are shown
27413 immediately.
27414
dec53e63
JT
274152010-06-28 Josh Triplett <josh@joshtriplett.org>
27416
27417 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27418
c06e40f7
CW
274192010-06-28 Colin Watson <cjwatson@ubuntu.com>
27420
27421 * util/grub-install.in: Add --debug-image= option.
27422
cb88052b
CW
274232010-06-28 Colin Watson <cjwatson@ubuntu.com>
27424
27425 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27426 possible on Linux.
27427
27428 * util/deviceiter.c (check_device): Rename to ...
27429 (check_device_readable_unique): ... this. Update all callers.
27430 Maintain and check a list of which devices (by canonicalized name)
27431 have already been seen.
27432 (clear_seen_devices): New function.
27433 (compare_file_names) [__linux__]: New function.
27434 (grub_util_iterate_devices): Clear the list of seen devices on exit
27435 and (just in case) on entry.
27436 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27437 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27438 seen-devices list, superseded by general code in check_device.
27439
bbe34652
CW
274402010-06-28 Colin Watson <cjwatson@ubuntu.com>
27441
27442 * commands/cat.c (options): New variable.
27443 (grub_cmd_cat): Parse options. If the --dos option is given, print
27444 DOS-style "\r\n" line endings as simple newlines (Debian bug
27445 #586358).
27446 (GRUB_MOD_INIT): Use extcmd.
27447 (GRUB_MOD_FINI): Likewise.
27448 * docs/grub.texi (cat): Document --dos.
27449
412e09f3
VS
274502010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27451
27452 XEN with Linux grub-mkconfig support.
27453
27454 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27455 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27456 GRUB_CMDLINE_XEN_DEFAULT.
27457 * util/grub.d/20_linux_xen.in: New file.
27458
53f3ef38 274592010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
27460
27461 Initialise VGA video on qemu ourselves.
27462
27463 * boot/i386/qemu/boot.S: Don't call 0xc000.
27464 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27465 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27466 (kernel_img_HEADERS): Add pci.h.
27467 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27468 * configure.ac: Force unifont on qemu and yeeloong.
27469 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27470 (grub_vga_palette_write): Use correct register.
27471 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27472 Call grub_qemu_init_cirrus.
27473 * kern/i386/qemu/init.c: New file.
27474 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27475
27476 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27477
c75be4fb
PR
274782010-06-26 Pavel Roskin <proski@gnu.org>
27479
27480 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27481 13.
27482
d8034603
CW
274832010-06-26 Colin Watson <cjwatson@ubuntu.com>
27484
27485 * docs/grub.texi (Simple configuration): Explain that
27486 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27487 set to `true' to disable their respective recovery entries, not
27488 merely set.
27489
3fa06487
CW
274902010-06-26 Colin Watson <cjwatson@ubuntu.com>
27491
27492 Make the `source' command slightly faster.
27493
27494 * normal/main.c (grub_normal_execute): Don't re-read list files when
27495 nested.
27496
e9b29642
CW
274972010-06-23 Colin Watson <cjwatson@ubuntu.com>
27498
27499 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27500 field position and mask size to red fields from mode_info, not
27501 green.
27502 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27503 Remove redundant tag->common.framebuffer_type assignment.
27504 Reported by: Seth Goldberg.
27505
e726542f
CW
275062010-06-23 Colin Watson <cjwatson@ubuntu.com>
27507
27508 Sync up other versions of the Linux loader with Robert Millan's
27509 change of 2010-01-09, "Make loader output a bit more user-friendly".
27510
27511 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27512 grub_dprintf().
27513 (grub_cmd_linux): Likewise.
27514 (grub_cmd_initrd): Likewise.
27515 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27516 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27517
d6e98a17
CW
275182010-06-21 Colin Watson <cjwatson@ubuntu.com>
27519
27520 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27521 larger than MEMORY_MAP_SIZE.
27522
14d3f08e
BC
275232010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27524
27525 Fix parallel build.
27526
27527 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27528 dependency.
27529 * script/parser.y: #include grub_script.tab.h header.
27530
4f9613a3
VS
275312010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27532
27533 Support >3GiB and <16MiB RAM in i386-qemu.
27534
27535 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27536 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27537 (grub_lower_mem): Removed.
27538 (grub_upper_mem): Likewise.
27539 (mem_size): Made static.
27540 (above_4g): New variable.
27541 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27542 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27543 support.
27544
05e51879
VS
275452010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27546
27547 Cirrus 5446 and Bochs video cards support.
27548
27549 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27550 video_bochs.mod
27551 (video_cirrus_mod_SOURCES): New variable.
27552 (video_cirrus_mod_CFLAGS): Likewise.
27553 (video_cirrus_mod_LDFLAGS): Likewise.
27554 (video_bochs_mod_SOURCES): Likewise.
27555 (video_bochs_mod_CFLAGS): Likewise.
27556 (video_bochs_mod_LDFLAGS): Likewise.
27557 * include/grub/vga.h: New file.
27558 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27559 (grub_video_fb_set_page_t): New type.
27560 (grub_video_fb_setup): New prototype.
27561 (grub_video_fb_swap_buffers): Likewise.
27562 (grub_video_fb_get_info_and_fini): Likewise.
27563 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27564 (CRTC_DATA_PORT): Likewise.
27565 (CRTC_CURSOR): Likewise.
27566 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27567 (CRTC_CURSOR_ADDR_LOW): Likewise.
27568 (CRTC_CURSOR_DISABLE): Likewise.
27569 (update_cursor): Use grub_vga_cr_write.
27570 (grub_vga_text_setcursor): Likewise.
27571 * video/bochs.c: New file.
27572 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27573 (palette): Likewise.
27574 (palette_size): Likewise.
27575 (framebuffer): New variable.
27576 (grub_video_fb_init): Use 'framebuffer'.
27577 (grub_video_fb_fini): Likewise.
27578 (grub_video_fb_get_info): Likewise.
27579 (grub_video_fb_get_palette): Likewise.
27580 (grub_video_fb_set_palette): Likewise.
27581 (grub_video_fb_set_viewport): Likewise.
27582 (grub_video_fb_get_viewport): Likewise.
27583 (grub_video_fb_map_color): Likewise.
27584 (grub_video_fb_map_rgb): Likewise.
27585 (grub_video_fb_map_rgba): Likewise.
27586 (grub_video_fb_unmap_color): Likewise.
27587 (grub_video_fb_unmap_color_int): Likewise.
27588 (grub_video_fb_fill_rect): Likewise.
27589 (grub_video_fb_blit_bitmap): Likewise.
27590 (grub_video_fb_blit_render_target): Likewise.
27591 (grub_video_fb_scroll): Likewise.
27592 (grub_video_fb_create_render_target): Likewise.
27593 (grub_video_fb_doublebuf_blit_init): Likewise.
27594 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27595 (doublebuf_pageflipping_update_screen): New function.
27596 (doublebuf_pageflipping_init): Likewise.
27597 (grub_video_fb_setup): Likewise.
27598 (grub_video_fb_swap_buffers): Likewise.
27599 (grub_video_fb_get_info_and_fini): Likewise.
27600 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27601 All users updated.
27602 (doublebuf_pageflipping_commit): Restructured into ...
27603 (doublebuf_pageflipping_set_page): ... this.
27604 (doublebuf_pageflipping_update_screen): Removed.
27605 (doublebuf_pageflipping_init): Likewise.
27606 (double_buffering_init): Likewise.
27607 (grub_video_vbe_setup): Use grub_video_fb_setup.
27608 (grub_video_vbe_swap_buffers): Removed.
27609 (grub_video_vbe_set_active_render_target): Likewise.
27610 (grub_video_vbe_get_active_render_target): Likewise.
27611 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27612 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27613 grub_video_fb_set_active_render_target and
27614 grub_video_fb_get_active_render_target.
27615 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27616 (SEQUENCER_DATA_PORT): Likewise.
27617 (MAP_MASK_REGISTER): Likewise.
27618 (CRTC_ADDR_PORT): Likewise.
27619 (CRTC_DATA_PORT): Likewise.
27620 (START_ADDR_HIGH_REGISTER): Likewise.
27621 (START_ADDR_LOW_REGISTER): Likewise.
27622 (GRAPHICS_ADDR_PORT): Likewise.
27623 (GRAPHICS_DATA_PORT): Likewise.
27624 (READ_MAP_REGISTER): Likewise.
27625 (INPUT_STATUS1_REGISTER): Likewise.
27626 (INPUT_STATUS1_VERTR_BIT): Likewise.
27627 (get_map_mask): Use grub_vga_sr_read.
27628 (set_map_mask): Use grub_vga_sr_write.
27629 (set_read_map): Use grub_vga_gr_write.
27630 (set_start_address): Use grub_vga_cr_write.
27631 * video/sm712.c (framebuffer): Remove leftover fields.
27632
4321c64a
CW
276332010-06-20 Colin Watson <cjwatson@ubuntu.com>
27634
27635 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27636 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27637 instead. Replace the gfxterm backend check with a check that
27638 ${GRUB_PREFIX}/video.lst is non-empty.
27639 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27640 again.
27641 (load_video): New generated function. Call it before loading
27642 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27643 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27644 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27645 * docs/grub.texi (Simple configuration): Document
27646 GRUB_VIDEO_BACKEND.
27647
276482010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27649
27650 Use video functions in linux and xnu loaders.
27651
27652 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27653 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27654 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27655 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27656 loader/i386/pc/linux.c.
27657 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27658 (find_line_len): Removed.
27659 (find_framebuf): Likewise.
27660 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27661 * loader/i386/efi/xnu.c: Removed.
27662 * loader/i386/pc/xnu.c: Moved from here...
27663 * loader/i386/xnu.c: ...here.
27664
27665 Enable priorities in video drivers.
27666
27667 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27668 (grub_video_adapter): New field prio.
27669 (grub_video_register): Respect prio when inserting.
27670 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27671 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27672 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27673 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27674 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27675 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27676 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27677
27678 Fix SDL driver ID.
27679
27680 * include/grub/video.h (grub_video_driver_id_t): New value
27681 GRUB_VIDEO_DRIVER_SDL.
27682 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27683
7d24e434
CW
276842010-06-17 Colin Watson <cjwatson@ubuntu.com>
27685
27686 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27687 argument to printf.
27688 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27689
c88a83f6
CW
276902010-06-17 Colin Watson <cjwatson@ubuntu.com>
27691
27692 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27693 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27694
094dfb69
CW
276952010-06-17 Colin Watson <cjwatson@ubuntu.com>
27696
27697 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27698 directly, and recommend grub-install instead.
27699 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27700
2164da6b
CW
277012010-06-17 Colin Watson <cjwatson@ubuntu.com>
27702
27703 Fix i386-pc prefix handling with nested partitions (Debian bug
27704 #585068). Note that the case where the core image is booted using
27705 multiboot and relocated from its original location still requires
27706 more work.
27707
27708 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27709 with "(,", fill the boot drive in between those two characters, but
27710 expect that a full partition specification including partition map
27711 names will follow.
27712 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27713 specified, write a prefix without the drive name but including a
27714 full partition specification.
27715
044e2e60
CW
277162010-06-16 Colin Watson <cjwatson@ubuntu.com>
27717
27718 * util/grub-mkconfig.in: Ignore non-option arguments, for
27719 compatibility with older versions (before 2010-06-12) which did the
27720 same. In particular, this makes it easier to ship an update-grub
27721 wrapper which is compatible with that used with GRUB Legacy (Debian
27722 bug #586056).
27723
5591324f
GS
277242010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27725
27726 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27727 for manual page generation.
27728
662e24d5
GS
277292010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27730
27731 * po/POTFILES: Remove leftover commands/handler.c.
27732
8d70754e
CW
277332010-06-14 Colin Watson <cjwatson@ubuntu.com>
27734
27735 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27736 left this script non-functional.
27737
41160e2e
CW
277382010-06-14 Colin Watson <cjwatson@ubuntu.com>
27739
27740 * docs/man/grub-emu.h2m: New file.
27741
b5309cc1
CW
277422010-06-13 Colin Watson <cjwatson@ubuntu.com>
27743
27744 * docs/grub.texi (Commands): Document reduced command set in rescue
27745 mode.
27746 (cpuid): New section.
27747
fcb2d090
GS
277482010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27749
27750 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27751 new partition naming style.
27752 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27753
96e5c556
BC
277542010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27755
27756 Add "-o grub.iso" like cmdline options support.
27757
27758 * util/grub-install.in: Improve cmdline option parsing.
27759 * util/grub-mkconfig.in: Likewise.
27760 * util/grub-mkrescue.in: Likewise.
27761 * util/grub-reboot.in: Likewise.
27762 * util/grub-set-default.in: Likewise.
27763 * util/i386/efi/grub-install.in: Likewise.
27764 * util/ieee1275/grub-install.in: Likewise.
27765 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27766
c16be99b
CW
277672010-06-12 Colin Watson <cjwatson@ubuntu.com>
27768
27769 * .bzrignore: Ignore 41_custom.
27770
ce08a9fb
TS
277712010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27772
27773 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27774
7beac90c
CW
277752010-06-12 Colin Watson <cjwatson@ubuntu.com>
27776
27777 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27778 prototype declarations.
27779
27780 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27781 generating fs, partmap, and video lists.
27782 * include/grub/fs.h (grub_fs_register): Omit prototype if
27783 GRUB_LST_GENERATOR is defined.
27784 * include/grub/partition.h (grub_partition_map_register): Likewise.
27785 * include/grub/video.h (grub_video_register): Likewise.
27786
1c8f0f8d
JM
277872010-06-12 Javier Martín <lordhabbit@gmail.com>
27788
27789 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27790
a6085973
TS
277912010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27792
27793 * util/grub-mkrescue.in: Support --xorriso argument.
27794
25c56d29
VS
277952010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27796
27797 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27798 Suggested by: Thomas Schmitt.
27799
e03e4b24
VS
278002010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27801
27802 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27803 Suggested by: Thomas Schmitt.
27804
57711df6
VS
278052010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27806
27807 custom.cfg support.
27808
27809 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27810 * util/grub.d/41_custom.in: New file.
27811
ee62c427
CW
278122010-06-12 Colin Watson <cjwatson@ubuntu.com>
27813
27814 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27815 been merged back into normal.
27816
283af07a
CW
278172010-06-11 Colin Watson <cjwatson@ubuntu.com>
27818
27819 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27820 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27821
56a0d956
CW
278222010-06-11 Colin Watson <cjwatson@ubuntu.com>
27823
27824 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27825 when generating manual pages.
27826 * docs/man/grub-bin2h.h2m: New file.
27827 * docs/man/grub-editenv.h2m: New file.
27828 * docs/man/grub-fstest.h2m: New file.
27829 * docs/man/grub-install.h2m: New file.
27830 * docs/man/grub-macho2img.h2m: New file.
27831 * docs/man/grub-mkconfig.h2m: New file.
27832 * docs/man/grub-mkdevicemap.h2m: New file.
27833 * docs/man/grub-mkfont.h2m: New file.
27834 * docs/man/grub-mkimage.h2m: New file.
27835 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27836 * docs/man/grub-mkrelpath.h2m: New file.
27837 * docs/man/grub-mkrescue.h2m: New file.
27838 * docs/man/grub-ofpathname.h2m: New file.
27839 * docs/man/grub-pe2elf.h2m: New file.
27840 * docs/man/grub-probe.h2m: New file.
27841 * docs/man/grub-reboot.h2m: New file.
27842 * docs/man/grub-script-check.h2m: New file.
27843 * docs/man/grub-set-default.h2m: New file.
27844 * docs/man/grub-setup.h2m: New file.
27845
3a37e322
VS
278462010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27847
27848 Use FOR_* macros instead of *_iterate whenever possible.
27849
27850 * commands/handler.c: Removed.
27851 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27852 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27853 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27854 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27855 (grub_probe_SOURCES): Remove kern/parser.c.
27856 (util/grub-script-check.c_DEPENDENCIES): Removed.
27857 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27858 and grub_script_check_init.c.
27859 (grub_script_check_init.lst): Removed.
27860 (grub_script_check_init.h): Likewise.
27861 (grub_script_check_init.c): Likewise.
27862 (pkglib_MODULES): Remove handler.mod and sh.mod.
27863 (handler_mod_SOURCES): Removed.
27864 (handler_mod_CFLAGS): Likewise.
27865 (handler_mod_LDFLAGS): Likewise.
27866 (normal_mod_SOURCES): Remove normal/handler.c.
27867 Add script/main.c, script/script.c, script/execute.c,
27868 script/function.c, script/lexer.c, grub_script.tab.c
27869 and grub_script.yy.c.
27870 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27871 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27872 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27873 (grub_setup_SOURCES): Remove kern/parser.c.
27874 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27875 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27876 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27877 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27878 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27879 (grub_setup_SOURCES): Remove kern/parser.c.
27880 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27881 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27882 * include/grub/command.h (grub_command_iterate): Removed.
27883 (FOR_COMMANDS): New macro.
27884 * include/grub/dl.h (grub_dl): New member next.
27885 (grub_dl_iterate): Removed.
27886 (grub_dl_head): New variable declaration.
27887 (FOR_DL_MODULES): New macro.
27888 * include/grub/fs.h: Include list.h.
27889 (grub_fs): Make next first element.
27890 (grub_fs_list): New variable declaration.
27891 (grub_fs_register): Make inline.
27892 (grub_fs_unregister): Likewise.
27893 (grub_fs_iterate): Removed.
27894 (FOR_FILESYSTEMS): New macro.
27895 * include/grub/handler.h: Removed.
27896 * include/grub/list.h (grub_list_hook_t): Removed.
27897 (grub_list_test_t): Likewise.
27898 (grub_list_pop): Likewise.
27899 (grub_list_iterate): Likewise.
27900 (grub_list_insert): Likewise.
27901 (FOR_LIST_ELEMENTS): New macro.
27902 * include/grub/parser.h (grub_parser_class): Removed.
27903 (grub_parser_register): Likewise.
27904 (grub_parser_unregister): Likewise.
27905 (grub_parser_get_current): Likewise.
27906 (grub_parser_set_current): Likewise.
27907 (grub_register_rescue_parser): Likewise.
27908 (grub_rescue_parse_line): New function.
27909 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27910 * include/grub/script_sh.h (grub_script_function_list): New variable
27911 declaration.
27912 (FOR_SCRIPT_FUNCTIONS): New macro.
27913 (grub_script_function_iterate): Removed.
27914 (grub_normal_parse_line): New prototype.
27915 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27916 (FOR_DISABLED_TERM_INPUTS): Likewise.
27917 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27918 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27919 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27920 element.
27921 (grub_video_register): Inline.
27922 (grub_video_unregister): Likewise.
27923 (grub_video_adapter_list): New variable declaration.
27924 (grub_video_iterate): Removed.
27925 (FOR_VIDEO_ADAPTERS): New macro.
27926 * kern/dl.c (grub_dl_list): Removed. All users updated.
27927 (grub_dl_iterate): Removed.
27928 * kern/fs.c (grub_fs_list): Make global.
27929 (grub_fs_register): Removed.
27930 (grub_fs_unregister): Likewise.
27931 (grub_fs_iterate): Likewise.
27932 * kern/handler.c: Removed.
27933 * kern/list.c (grub_list_pop): Removed.
27934 (grub_list_iterate): Likewise.
27935 (grub_list_insert): Likewise.
27936 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27937 (grub_prio_list_insert): Don't use grub_list_insert.
27938 * kern/main.c (grub_register_rescue_parser): Don't call
27939 grub_register_rescue_parser.
27940 * kern/parser.c (grub_parser_class): Removed.
27941 (grub_parser_execute): Use grub_rescue_parse_line.
27942 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27943 (grub_rescue_parser): Removed.
27944 (grub_register_rescue_parser): Likewise.
27945 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27946 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27947 (grub_auth_check_authentication): Likewise.
27948 * normal/completion.c (iterate_command): Removed.
27949 (grub_normal_do_completion): Use FOR_COMMANDS.
27950 * normal/handler.c: Removed.
27951 * normal/main.c (read_config_file): Remove parser changing.
27952 (grub_normal_execute): Don't call read_handler_list.
27953 (grub_normal_read_line_real): Statically allocate prompt.
27954 (grub_cmdline_run): Use grub_normal_parse_line.
27955 (GRUB_MOD_FINI): Don't call free_handler_list.
27956 * normal/menu_entry.c (run): Likewise.
27957 * script/function.c (grub_script_function_list): Make global.
27958 (grub_script_function_iterate): Removed.
27959 * script/main.c (grub_normal_parse_line): Make global.
27960 (grub_sh_parser): Removed.
27961 (GRUB_MOD_INIT): Likewise.
27962 (GRUB_MOD_FINI): Likewise.
27963 * tests/lib/functional_test.c (grub_functional_test): Use
27964 FOR_LIST_ELEMENTS.
27965 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27966 (grub_test_run): Use FOR_LIST_ELEMENTS.
27967 * tests/lib/unit_test.c (main): Likewise.
27968 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27969 grub_list_pop.
27970 * util/grub-fstest.c (grub_term_input_class): Removed.
27971 (grub_term_output_class): Likewise.
27972 * util/grub-probe.c: Likewise.
27973 * util/i386/pc/grub-setup.c: Likewise.
27974 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27975 * util/grub-script-check.c (main): Don't call grub_init_all and
27976 grub_fini_all.
27977 * video/video.c (grub_video_adapter_list): Make global.
27978 (grub_video_register): Removed.
27979 (grub_video_unregister): Likewise.
27980 (grub_video_iterate): Likewise.
27981
6289c3a7
VS
279822010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27983
27984 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27985 reported by Henrique Ferreiro.
27986
91460247
RM
279872010-06-09 Robert Millan <rmh@gnu.org>
27988
27989 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27990 ones, when both are available.
27991
0ea7c4f9
GS
279922010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27993
27994 Make --version uniform and avoid hard-coded program name.
27995
27996 * util/grub-mkimage.c (main): Use `program_name' instead of
27997 hard-coded string.
27998 * util/i386/pc/grub-setup.c (main): Likewise.
27999 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
28000 * util/grub-install.in: Save the basename of $0 in $self, and use the
28001 latter in informational messages. Use the same format for --version
28002 as the binary programs.
28003 * util/grub-mkconfig.in: Likewise.
28004 * util/grub-mkrescue.in: Likewise.
28005 * util/grub-reboot.in: Likewise.
28006 * util/grub-set-default.in: Likewise.
28007 * util/i386/efi/grub-install.in: Likewise.
28008 * util/ieee1275/grub-install.in: Likewise.
28009 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
28010
e8a6f3b6
GS
280112010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28012
28013 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
28014 embedding area. Use <= instead of == when checking for non-emptiness.
28015
f4d095d7
GS
280162010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28017
28018 * configure.ac: Add `.' to the directories searched for unifont.
28019
50e532ca
CW
280202010-06-08 Colin Watson <cjwatson@ubuntu.com>
28021
28022 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
28023 grub_script.yy.h.
28024
d39f3dec
CW
280252010-06-08 Colin Watson <cjwatson@ubuntu.com>
28026
28027 * docs/grub.texi (History): Expand to cover GRUB 2.
28028 (Serial terminal): Refer to `terminal_input' and `terminal_output'
28029 commands, not `terminal'.
28030 (serial): Likewise.
28031 (terminal_input): New section.
28032 (terminal_output): New section.
28033 (uppermem): New section (stub).
28034 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
28035
6ef0ddb4
CW
280362010-06-08 Colin Watson <cjwatson@ubuntu.com>
28037
28038 * docs/grub.texi (Security): Menu entries are unrestricted by
28039 default, not restricted to superusers as I had previously thought.
28040 Reword to account for this.
28041
e0f4c438
CW
280422010-06-07 Colin Watson <cjwatson@ubuntu.com>
28043
28044 * kern/emu/misc.c (device_mapper_null_log): New function.
28045 (grub_device_mapper_supported): New function.
28046 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
28047 prototype.
28048 * kern/emu/hostdisk.c (find_partition_start): Check whether
28049 device-mapper is supported before trying to use it.
28050 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
28051
da908200
CW
280522010-06-07 Colin Watson <cjwatson@ubuntu.com>
28053
28054 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
28055 (File name syntax): Likewise.
28056 (help): --all is no longer supported in GRUB 2. Be more precise
28057 about pattern matching.
28058
fb55c3ac
CW
280592010-06-07 Colin Watson <cjwatson@ubuntu.com>
28060
28061 * normal/completion.c (grub_normal_do_completion): When completing
28062 arguments to "set" and the current word contains an equals sign,
28063 skip to after the equals sign before starting completion.
28064
258c2573
CW
280652010-06-07 Colin Watson <cjwatson@ubuntu.com>
28066
28067 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28068
ee75515e
CW
280692010-06-07 Colin Watson <cjwatson@ubuntu.com>
28070
28071 * docs/grub.texi (Network): New section.
28072 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28073 `(nd)' as in GRUB Legacy.
28074 (pxe_unload): New section.
28075
a6a700aa
CW
280762010-06-07 Colin Watson <cjwatson@ubuntu.com>
28077
28078 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28079 in the rescue shell, so recommend using `set' instead. Thanks,
28080 Jordan Uggla.
28081
4003dd38
CW
280822010-06-07 Colin Watson <cjwatson@ubuntu.com>
28083
28084 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28085 (password): New section.
28086 (password_pbkdf2): New section.
28087 (search): New section.
28088 (Security): New section.
28089 (Troubleshooting): New section, currently very incomplete.
28090 (Invoking grub-mkpasswd-pbkdf2): New section.
28091 (Internals): New section, currently very incomplete.
28092
e1cbcc40
CW
280932010-06-07 Colin Watson <cjwatson@ubuntu.com>
28094
28095 * util/grub.d/00_header.in: Add some more quoting (of
28096 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28097 work again.
28098 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28099
db8fa1ad
CW
281002010-06-07 Colin Watson <cjwatson@ubuntu.com>
28101
28102 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28103 to `count', fixing variable shadowing that broke the -c option.
28104
281052010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
28106
28107 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28108 in case they contain spaces.
28109
f28a9212
CW
281102010-06-04 Colin Watson <cjwatson@ubuntu.com>
28111
28112 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28113 "part_" to partmap module names, in line with grub-install.
28114 Reported by: Jindřich Makovička (Debian bug #584426).
28115
9cdfe32f
CW
281162010-06-04 Colin Watson <cjwatson@ubuntu.com>
28117
28118 * util/grub-mkimage.c: Make target-related error messages slightly
28119 more helpful; -O talks about "format". Explicitly point to the use
28120 of -O if no target is specified.
28121 Reported by: Didier Raboud (Debian bug #584415).
28122
795b593a
CW
281232010-06-03 Colin Watson <cjwatson@ubuntu.com>
28124
28125 * INSTALL: Document several build requirements for optional features
28126 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28127
9d9b5833
GS
281282010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28129
28130 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28131 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28132 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28133
0819fec8
CW
281342010-06-02 Colin Watson <cjwatson@ubuntu.com>
28135
28136 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28137 Thanks to Jordan Uggla for spotting this.
28138
49396b4f
VS
281392010-06-02 Aleš Nesrsta <starous@volny.cz>
28140
28141 Finally make USB usable.
28142
28143 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28144 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28145 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28146 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28147 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28148 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28149 (GRUB_OHCI_FSMPS): Likewise.
28150 (GRUB_OHCI_PERIODIC_START): Likewise.
28151 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28152 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28153 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28154 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28155 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28156 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28157 (grub_ohci_transaction): Likewise.
28158 (grub_ohci_transfer): Improve condition detection algorithms.
28159 Handle toggle property. Program the transactions correctly.
28160 Improve error handling. Various important fixups.
28161 (grub_ohci_portstatus): Put register writes in right order.
28162 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28163 (grub_uhci_transfer): Don't show "failed" message on success.
28164 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28165 array.
28166 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28167 determine its size.
28168 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28169 before initialization is completed. Use IN direction for empty
28170 transfers. Use last_trans and compute toggle.
28171 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28172 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28173 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28174 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28175 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28176 (grub_usb_device): Increase toggle to 256.
28177 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28178 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28179 GRUB_USBMS_SUBCLASS_SFF8070.
28180 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28181 (grub_scsi_inquiry): New member page and alloc_length.
28182 (grub_scsi_request_sense): New structure.
28183 (grub_scsi_request_sense_data): Likewise.
28184 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28185 control.
28186 * disk/scsi.c (grub_scsi_request_sense): New function.
28187 (grub_scsi_test_unit_ready): Likewise.
28188 (grub_scsi_inquiry): Fill new fields.
28189 (grub_scsi_read_capacity): Likewise.
28190 (grub_scsi_read10): Add request sense at the end.
28191 (grub_scsi_read12): Likewise.
28192 (grub_scsi_write10): Likewise.
28193 (grub_scsi_write12): Likewise.
28194 (grub_scsi_open): Add Test Unit Ready.
28195 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28196 Support additional subclasses. Con't clear halt yet. Activate the
28197 proper config. Calculate LUNs correctly.
28198 (grub_usbms_transfer): Various important fixups.
28199
282002010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28201
28202 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28203 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28204 (grub_ohci_fini_hw): New function.
28205 (grub_ohci_restore_hw): Likewise.
28206 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28207 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28208 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28209
282102010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28211
28212 Dedicated DMA allocations.
28213
28214 * bus/pci.c (grub_memalign_dma32): New function
28215 (grub_dma_free): Likewise.
28216 (grub_dma_get_virt): Likewise.
28217 (grub_dma_get_phys): Likewise.
28218 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28219 (grub_ohci_pci_iter): Use dma32_alloc.
28220 (grub_ohci_transfer): Likewise.
28221 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28222 (grub_usb_bulk_readwrite): Likewise.
28223 * include/grub/pci.h: Add declarations.
28224
282252010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28226
28227 CS5536 support.
28228
28229 * bus/cs5536.c: New file.
28230 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28231 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28232 (cs5536_mod_SOURCES): New variable.
28233 (cs5536_mod_CFLAGS): Likewise.
28234 (cs5536_mod_LDFLAGS): Likewise.
28235 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28236 machine/pci.h.
28237 (kernel_img_SOURCES): Add bus/cs5536.c.
28238 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28239 usb_keyboard.mod.
28240 (usb_mod_SOURCES): New variable.
28241 (usb_mod_CFLAGS): New variable.
28242 (usb_mod_LDFLAGS): New variable.
28243 (usbtest_mod_SOURCES): New variable.
28244 (usbtest_mod_CFLAGS): New variable.
28245 (usbtest_mod_LDFLAGS): New variable.
28246 (ohci_mod_SOURCES): New variable.
28247 (ohci_mod_CFLAGS): New variable.
28248 (ohci_mod_LDFLAGS): New variable.
28249 (usbms_mod_SOURCES): New variable.
28250 (usbms_mod_CFLAGS): New variable.
28251 (usbms_mod_LDFLAGS): New variable.
28252 (usb_keyboard_mod_SOURCES): New variable.
28253 (usb_keyboard_mod_CFLAGS): New variable.
28254 (usb_keyboard_mod_LDFLAGS): New variable.
28255 * include/grub/smbus.h: New file.
28256 * include/grub/cs5536.h: New file.
28257
0b35b2a9
CW
282582010-06-02 Colin Watson <cjwatson@ubuntu.com>
28259
28260 * util/grub.d/00_header.in: Add safety check to make sure that
28261 ${locale_dir} exists before trying to probe it.
28262
ca0afd5b
CW
282632010-06-02 Colin Watson <cjwatson@ubuntu.com>
28264
28265 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28266 per the GNU Coding Standards; this is now too obscure to be worth
28267 documenting.
28268 (QNX): Likewise.
28269 (chainloader): Remove cross-reference to `SCO UnixWare'.
28270
1c41aa78
CW
282712010-06-02 Colin Watson <cjwatson@ubuntu.com>
28272
28273 * docs/grub.texi (Chain-loading): New section.
28274 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28275 adjusted for GRUB 2.
28276 (SCO UnixWare): Likewise.
28277 (QNX): Likewise.
28278 (chainloader): Add reference to `Block list syntax'.
28279 (drivemap): New section.
28280 (parttool): New section.
28281
bb8ea0f5
CW
282822010-06-02 Colin Watson <cjwatson@ubuntu.com>
28283
28284 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28285 the grub shell'.
28286 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28287 (Installing GRUB using grub-install): Remove reference to the grub
28288 shell; mention `grub-mkimage' and `grub-setup' instead.
28289 (Invoking grub-install): Likewise.
28290 (Interface): Add reference to `Menu entry editor'.
28291 (serial): Remove `--device' option.
28292
288dd6ed
CW
282932010-06-02 Colin Watson <cjwatson@ubuntu.com>
28294
28295 * docs/grub.texi (Configuration): New section, documenting
28296 configuration file generation using grub-mkconfig. I've left a slot
28297 for documenting the full shell scripting format but have not yet
28298 started on writing that up.
28299 (Invoking grub-mkconfig): New section.
28300
34c9f0e9
CW
283012010-06-02 Colin Watson <cjwatson@ubuntu.com>
28302
28303 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28304 (GNU GRUB manual): Likewise.
28305 (General commands): Update description of `terminfo' for GRUB 2.
28306
9121567e
CW
283072010-06-02 Colin Watson <cjwatson@ubuntu.com>
28308
28309 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28310 (GRUB_MOD_INIT): Fix capitalisation.
28311 * docs/grub.texi (Command-line and menu entry commands): Document
28312 gettext and gptsync commands.
28313
ab631611
CW
283142010-06-02 Colin Watson <cjwatson@ubuntu.com>
28315
28316 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28317 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28318
bde4a9ac
CW
283192010-06-01 Colin Watson <cjwatson@ubuntu.com>
28320
28321 Add btrfs probing support, currently only in the single-device case.
28322
28323 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28324 function.
28325 (grub_guess_root_device): Call find_root_device_from_mountinfo
28326 before looking in /dev.
28327
b1d17e10
VS
283282010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28329
28330 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28331 GRUB_DISK_SIZE_UNKNOWN.
28332 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28333
dfbfe004
JS
283342010-05-31 Jiro SEKIBA <jir@unicus.jp>
28335
28336 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28337 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28338 corrupted or not synced properly.
28339
c2ffc8e9
VS
283402010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28341
28342 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28343 Reported by: Seth Goldberg.
28344
56293166
VS
283452010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28346
28347 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28348 addition of dest.
28349 Reported by: Seth Goldberg.
28350
7620e7de
VS
283512010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28352
28353 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28354 Reported by: Seth Goldberg.
28355
c837af3f
VS
283562010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28357
28358 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28359 64-bit address as signed on MIPS.
28360
c7c75cf4
CW
283612010-05-28 Colin Watson <cjwatson@ubuntu.com>
28362
28363 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28364 to the empty string.
28365
fa4b8490
BC
283662010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28367
28368 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28369
28370 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28371 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28372 * kern/misc.c (__enable_execute_stack): Disable on
28373 GRUB_MACHINE_EMU.
28374
a33075b9
CW
283752010-05-28 Colin Watson <cjwatson@ubuntu.com>
28376
28377 Make grub-probe work with symbolic links under /dev/mapper as well
28378 as with real block devices. The Linux world seems to be (at best)
28379 in transition here, and GRUB shouldn't get caught in the middle.
28380
28381 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28382 /dev/mapper.
28383
d8708134
CW
283842010-05-27 Colin Watson <cjwatson@ubuntu.com>
28385
28386 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28387 input files (in which case exit zero).
28388
db2102a0
CW
283892010-05-27 Colin Watson <cjwatson@ubuntu.com>
28390
28391 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28392 return NULL for various reasons even if it has a maximum-length
28393 buffer: for example, there might be a symlink loop, or the path
28394 might exceed PATH_MAX. If this happens, return NULL.
28395
5fdba519
RM
283962010-05-27 Robert Millan <rmh@gnu.org>
28397
28398 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28399 partmap module to handle cross-partmap setups.
28400 Reported by Orestes Mas. Gràcies!
28401
d1d368e4
CW
284022010-05-27 Colin Watson <cjwatson@ubuntu.com>
28403
28404 * util/grub-mkrescue.in: Initialise override_dir rather than
28405 assuming that it's unset or empty in the environment.
28406
95ac3c73
GS
284072010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28408
28409 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28410 variable index into p_index to suppress a warning with -Wshadow.
28411
7d8c0213
BC
284122010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28413
28414 * INSTALL: Added flex >= 2.5.35 requirement.
28415
db4d5813
VS
284162010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28417
28418 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28419
f24f4300
VS
284202010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28421
28422 cmostest support.
28423
28424 * commands/i386/cmostest.c: New file.
28425 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28426 (cmostest_mod_SOURCES): New variable.
28427 (cmostest_mod_CFLAGS): Likewise.
28428 (cmostest_mod_LDFLAGS): Likewise.
28429 * conf/i386-pc.rmk: Likewise.
28430 * docs/grub.texi (Vendor power-on keys): New section.
28431 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28432 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28433 and GRUB_BUTTON_CMOS_ADDRESS.
28434 * util/grub.d/00_header.in: Handle powering-on by separate button.
28435
ad603f61
VS
284362010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28437
28438 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28439 Removed drawing_scrollbar argument. All users updated
28440 Fixes #29792.
28441 Reported by Jo Shields
28442
3ecb080a
VS
284432010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28444
28445 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28446 buffer since gfxterm handles double repaint.
28447
5f2316c1
VS
284482010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28449
28450 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28451 * term/gfxterm.c (real_scroll): Likewise.
28452
9a25f885
VS
284532010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28454
28455 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28456 before calling BIOS.
28457
39fbb79a
VS
284582010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28459
28460 * include/grub/i18n.h: Always enable grub_gettext.
28461
228cfa97
VS
284622010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28463
28464 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28465 partition naming style.
28466
21717c8f
CW
284672010-05-21 Colin Watson <cjwatson@ubuntu.com>
28468
28469 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28470 not the first option.
28471
c0f48e65
CW
284722010-05-20 Colin Watson <cjwatson@ubuntu.com>
28473
28474 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28475
96779aec
CW
284762010-05-20 Colin Watson <cjwatson@ubuntu.com>
28477
28478 * util/misc.c: Move inclusion of <limits.h> to ...
28479 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28480
fa9d256e
GS
284812010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28482
28483 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28484 Fix merge error in NetBSD code.
28485 (find_partition_start) [__NetBSD__]: Likewise.
28486
123b7a85
BC
284872010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28488
28489 Fix grub-mkrescue usage unit testing.
28490
28491 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28492
74276c0d
CF
284932010-05-18 Christian Franke <franke@computer.org>
28494
28495 * util/grub.d/10_windows.in: Use path names instead of
28496 drive letters to prevent warning from Cygwin 1.7.
28497 Add drivemap command to menuentry if needed.
28498
c4f7b523
ST
284992010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28500
28501 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28502 gnumach and gnumach.gz.
28503
95b97950
VS
285042010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28505
28506 * include/grub/i18n.h (gettext): Inline instead of using #define.
28507 (grub_gettext): Likewise.
28508 (_): Likewise.
28509
01b8d2d7
VS
285102010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28511
28512 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28513 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28514 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28515 (main): Add a slash after pkglibdirroot.
28516
654e1d1e
VS
285172010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28518
28519 * util/grub-install.in: Add missing "in" keyword.
28520
26966aeb
VS
285212010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28522
28523 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28524 Reported by: Seth Goldberg.
28525
75006747
VS
285262010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28527
28528 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28529
74cbf5bd
CW
285302010-05-18 Colin Watson <cjwatson@ubuntu.com>
28531
28532 * configure.ac: Check for Linux device-mapper support.
28533
28534 * util/hostdisk.c (device_is_mapped): New function.
28535 (find_partition_start): New function, partly broken out from
28536 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28537 device-mapper support added.
28538 (linux_find_partition): Use find_partition_start.
28539 (convert_system_partition_to_system_disk): Add `st' argument.
28540 Support Linux /dev/mapper/* devices if device-mapper support is
28541 available; only DM-RAID devices are understood at present.
28542 (find_system_device): Add `st' argument. Pass it to
28543 convert_system_partition_to_system_disk.
28544 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28545 find_system_device and convert_system_partition_to_system_disk. Use
28546 find_partition_start.
28547
28548 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28549 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28550 * util/deviceiter.c [__linux__]: Define MINOR.
28551 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28552 * util/mkdevicemap.c (grub_putchar): New function.
28553 (grub_getkey): New function.
28554 (grub_refresh): New function.
28555 (main): Set debug=all if -v -v is used.
28556
355b51e9
CW
285572010-05-18 Colin Watson <cjwatson@ubuntu.com>
28558
28559 Fix build with non-GNU libcs.
28560
28561 * util/misc.c (canonicalize_file_name): Move to ...
28562 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28563 grub_make_system_path_relative_to_its_root.
28564
7fb5c25f
CW
285652010-05-18 Colin Watson <cjwatson@ubuntu.com>
28566
28567 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28568 we handle finding grub-mkimage. Default to finding grub-mkimage in
28569 ${bindir} with program_transform_name applied, and provide a
28570 --grub-mkimage option to override this.
28571
1d3293d6
VS
285722010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28573
28574 Remove grub-mkisofs.
28575
28576 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28577 (grub_mkisofs_SOURCES): Removed.
28578 (grub_mkisofs_CFLAGS): Removed.
28579 * util/mkisofs/defaults.h: Removed.
28580 * util/mkisofs/eltorito.c: Likewise.
28581 * util/mkisofs/exclude.h: Likewise.
28582 * util/mkisofs/hash.c: Likewise.
28583 * util/mkisofs/include/: Likewise.
28584 * util/mkisofs/include/fctldefs.h: Likewise.
28585 * util/mkisofs/include/mconfig.h: Likewise.
28586 * util/mkisofs/include/prototyp.h: Likewise.
28587 * util/mkisofs/include/statdefs.h: Likewise.
28588 * util/mkisofs/iso9660.h: Likewise.
28589 * util/mkisofs/joliet.c: Likewise.
28590 * util/mkisofs/match.c: Likewise.
28591 * util/mkisofs/match.h: Likewise.
28592 * util/mkisofs/mkisofs.c: Likewise.
28593 * util/mkisofs/mkisofs.h: Likewise.
28594 * util/mkisofs/msdos_partition.h: Likewise.
28595 * util/mkisofs/multi.c: Likewise.
28596 * util/mkisofs/name.c: Likewise.
28597 * util/mkisofs/rock.c: Likewise.
28598 * util/mkisofs/tree.c: Likewise.
28599 * util/mkisofs/write.c: Likewise.
28600
5dde9afe
VS
286012010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28602
28603 Unify grub-mkimage accross platforms.
28604
28605 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28606 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28607 (grub_mkelfimage_SOURCES): Removed.
28608 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28609 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28610 (bin_UTILITIES): Add grub-mkimage.
28611 (grub_mkimage_SOURCES): New variable.
28612 (kernel_img_HEADERS): Remove machine/kernel.h.
28613 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28614 (pkglib_PROGRAMS): Add kernel.img.
28615 (kernel_img_HEADERS): Add machine/kernel.h.
28616 (kernel_img_FORMAT): Removed.
28617 (bin_UTILITIES): Remove grub-mkimage.
28618 (grub_mkimage_SOURCES): Removed.
28619 (grub_mkimage_CFLAGS): Likewise.
28620 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28621 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28622 (pkglib_PROGRAMS): Add kernel.img.
28623 (bin_UTILITIES): Remove grub-mkimage.
28624 (grub_mkimage_SOURCES): Removed.
28625 (grub_mkimage_CFLAGS): Likewise.
28626 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28627 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28628 (pkglib_PROGRAMS): Add kernel.img.
28629 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28630 (pkglib_PROGRAMS): Add kernel.img.
28631 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28632 (grub_mkimage_SOURCES): Removed.
28633 (grub_mkimage_CFLAGS): Likewise.
28634 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28635 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28636 (pkglib_PROGRAMS): Add kernel.img.
28637 (bin_UTILITIES): Remove grub-mkimage.
28638 (grub_mkimage_SOURCES): Removed.
28639 (grub_mkimage_CFLAGS): Likewise.
28640 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28641 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28642 (grub_mkimage_SOURCES): Removed.
28643 (grub_mkimage_CFLAGS): Likewise.
28644 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28645 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28646 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28647 (grub_pe32_optional_header): ... this.
28648 (grub_pe64_optional_header): ... and this. All users updated.
28649 (GRUB_PE32_PE32_MAGIC): Split into ..
28650 (GRUB_PE32_PE32_MAGIC): .. this.
28651 (GRUB_PE32_PE64_MAGIC): .. and this.
28652 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28653 * include/grub/elf.h (PT_GNU_STACK): New definition.
28654 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28655 * include/grub/i386/efi/kernel.h: Likewise.
28656 * include/grub/i386/kernel.h: Likewise.
28657 * include/grub/i386/pc/kernel.h: Likewise.
28658 * include/grub/i386/qemu/boot.h: Likewise.
28659 * include/grub/mips/kernel.h: Likewise.
28660 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28661 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28662 * include/grub/powerpc/kernel.h: Likewise.
28663 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28664 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28665 * include/grub/sparc64/kernel.h: Likewise.
28666 * include/grub/x86_64/efi/kernel.h: Likewise.
28667 * include/grub/x86_64/kernel.h: Likewise.
28668 * include/grub/offsets.h: New file.
28669 * include/grub/kernel.h (grub_module_info): Split into ...
28670 (grub_module_info32): ... this.
28671 (grub_module_info64): ... and this.
28672 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28673 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28674 (grub_boot_blocklist): Moved from here ...
28675 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28676 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28677 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28678 * include/grub/types.h (grub_target_to_host16): Removed.
28679 (grub_target_to_host32): Likewise.
28680 (grub_target_to_host64): Likewise.
28681 (grub_host_to_target16): Likewise.
28682 (grub_host_to_target32): Likewise.
28683 (grub_host_to_target64): Likewise.
28684 (grub_host_to_target_addr): Likewise.
28685
28686 Support grub-mkrescue for efi, coreboot and qemu.
28687
28688 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28689 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28690 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28691 * util/grub-mkrawimage.c: Moved from here ...
28692 * util/grub-mkimage.c: ... here. All users updated.
28693 (ALIGN_ADDR): Use image_target.
28694 (TARGET_NO_FIELD): New const.
28695 (image_target_desc): New type.
28696 (image_targets): New array.
28697 (grub_target_to_host64): Use image_target.
28698 (grub_target_to_host32): Likewise.
28699 (grub_target_to_host16): Likewise.
28700 (grub_host_to_target64): Likewise.
28701 (grub_host_to_target32): Likewise.
28702 (grub_host_to_target16): Likewise.
28703 (grub_host_to_target_addr): Likewise.
28704 (generate_image): Handle multiimage.
28705 (main): Require -O parameter. All users updated.
28706 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28707 util/efi/grub-mkimage.c
28708 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28709 New option --rom-directory.
28710 Use xorriso.
28711 * util/i386/efi/grub-mkimage.c: Removed.
28712 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28713 (grub_target_to_host32): Likewise.
28714 (grub_target_to_host64): Likewise.
28715 (grub_host_to_target16): Likewise.
28716 (grub_host_to_target32): Likewise.
28717 (grub_host_to_target64): Likewise.
28718 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28719 (grub_target_to_host32): Likewise.
28720 (grub_target_to_host64): Likewise.
28721 (grub_host_to_target16): Likewise.
28722 (grub_host_to_target32): Likewise.
28723 (grub_host_to_target64): Likewise.
28724
f4fc97d0
BC
287252010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28726
28727 Source tree is reorganized for emu build.
28728
28729 * include/grub/util/console.h: Move from here...
28730 * include/grub/emu/console.h: ...to here.
28731 * include/grub/util/getroot.h: Move from here...
28732 * include/grub/emu/getroot.h: ...to here.
28733 * include/grub/util/hostdisk.h: Move from here...
28734 * include/grub/emu/hostdisk.h: ...to here.
28735 * util/console.c: Move from here...
28736 * kern/emu/console.c: ...to here.
28737 * util/getroot.c: Move from here...
28738 * kern/emu/getroot.c: ...to here.
28739 * util/grub-emu.c: Move from here...
28740 * kern/emu/main.c: ...to here.
28741 * util/hostdisk.c: Move from here...
28742 * kern/emu/hostdisk.c: ...to here.
28743 * util/hostfs.c: Move from here...
28744 * kern/emu/hostfs.c: ...to here.
28745 * util/mm.c: Move from here...
28746 * kern/emu/mm.c: ...to here.
28747 * util/pci.c: Move from here...
28748 * bus/emu/pci.c: ...to here.
28749 * util/sdl.c: Move from here...
28750 * video/emu/sdl.c: ...to here.
28751 * util/time.c: Move from here...
28752 * kern/emu/time.c: ...to here.
28753 * util/usb.c: Move from here...
28754 * bus/usb/emu/usb.c: ...to here.
28755
28756 * include/grub/emu/misc.h: New header for grub-emu functions.
28757 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28758
28759 * conf/any-emu.rmk: Rule updates for above renames.
28760 * conf/common.rmk: Likewise.
28761 * conf/i386-pc.rmk: Likewise.
28762 * conf/i386-qemu.rmk: Likewise.
28763 * conf/mips.rmk: Likewise.
28764 * conf/sparc64-ieee1275.rmk: Likewise.
28765 * conf/x86-efi.rmk: Likewise.
28766
28767 * disk/lvm.h: #include updates for above renames.
28768 * util/grub-mkrelpath.c: Likewise.
28769 * util/grub-probe.c: Likewise.
28770 * util/i386/pc/grub-setup.c: Likewise.
28771 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28772 * kern/emu/console.c: Likewise.
28773 * kern/emu/getroot.c: Likewise.
28774 * kern/emu/hostdisk.c: Likewise.
28775 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28776
28777 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28778 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28779 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28780 * util/misc.c: Remove grub-emu functions.
28781
cced9145
VS
287822010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28783
28784 Fix gfxmenu crash.
28785 Reported by: Thorsten Grützmacher.
28786
28787 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28788 timeout hook.
28789 (circprog_set_property): Register and unregister timeout hook.
28790 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28791 (label_destroy): Free template. and unregister hook.
28792 (label_set_state): New function.
28793 (label_set_property): Handle templates and hooks.
28794 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28795 timeout hook.
28796 (progress_bar_set_property): Register and unregister timeout hook.
28797 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28798 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28799 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28800 (update_timeout_visit): Removed.
28801 (update_timeouts): New function.
28802 (redraw_timeouts): Likewise.
28803 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28804 (grub_gfxmenu_clear_timeout): Likewise.
28805 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28806 (grub_gfxmenu_timeout_notify): Likewise.
28807 (grub_gfxmenu_timeout_notifications): New external variable.
28808 (grub_gfxmenu_timeout_register): New function.
28809 (grub_gfxmenu_timeout_unregister): Likewise.
28810
c6e5caab
VS
288112010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28812
28813 Transform (broken) vga terminal into (working) vga video driver.
28814
28815 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28816 video/i386/pc/vga.c.
28817 * include/grub/video.h (grub_video_driver_id):
28818 Add GRUB_VIDEO_DRIVER_VGA.
28819 * term/i386/pc/vga.c: Renamed to ...
28820 * video/i386/pc/vga.c: ...this
28821 (DEBUG_VGA): Removed.
28822 (CHAR_WIDTH): Likewise.
28823 (CHAR_HEIGHT): Likewise.
28824 (TEXT_WIDTH): Likewise.
28825 (TEXT_HEIGHT): Likewise.
28826 (DEFAULT_FG_COLOR): Likewise.
28827 (DEFAULT_BG_COLOR): Likewise.
28828 (colored_char): Likewise.
28829 (xpos): Likewise.
28830 (ypos): Likewise.
28831 (cursor_state): Likewise.
28832 (fg_color): Likewise.
28833 (bg_color): Likewise.
28834 (text_buf): Likewise.
28835 (page): Likewise.
28836 (font): Likewise.
28837 (framebuffer): New variable.
28838 (set_read_map): Disabled.
28839 (setup): New variable.
28840 (is_target): Likewise.
28841 (grub_vga_mod_init): Likewise.
28842 (grub_vga_mod_fini): Likewise.
28843 (check_vga_mem): Likewise.
28844 (write_char): Likewise.
28845 (write_cursor): Likewise.
28846 (scroll_up): Likewise.
28847 (grub_vga_putchar): Likewise.
28848 (grub_vga_getcharwidth): Likewise.
28849 (grub_vga_getwh): Likewise.
28850 (grub_vga_getxy): Likewise.
28851 (grub_vga_gotoxy): Likewise.
28852 (grub_vga_cls): Likewise.
28853 (grub_vga_setcolorstate): Likewise.
28854 (grub_vga_setcursor): Likewise.
28855 (grub_video_vga_init): New function.
28856 (grub_video_vga_setup): Likewise.
28857 (grub_video_vga_fini): Likewise.
28858 (update_target): Likewise.
28859 (grub_video_vga_blit_bitmap): Likewise.
28860 (grub_video_vga_blit_render_target): Likewise.
28861 (grub_video_vga_set_active_render_target): Likewise.
28862 (grub_video_vga_get_active_render_target): Likewise.
28863 (grub_video_vga_swap_buffers): Likewise.
28864 (grub_video_vga_set_palette): Likewise.
28865 (grub_video_vga_get_info_and_fini): Likewise.
28866 (grub_vga_term): Removed.
28867 (grub_video_vga_adapter): New variable.
28868 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28869 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28870
2bf61a98
VS
288712010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28872
28873 * video/readers/jpeg.c: Indented.
28874
09ddcd11
VS
288752010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28876
28877 Various jpeg cleanups.
28878
28879 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28880 (grub_jpeg_decode_quan_table): Use sizeof.
28881 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28882
e5507505
PH
288832010-05-05 Peter Hurley <No e-mail available> (tiny change)
28884
28885 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28886 tables. Ignore non-last ac bit.
28887 (grub_jpeg_decode_quan_table): Likewise.
28888
7e720a9b
VS
288892010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28890
28891 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28892 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28893 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28894 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28895 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28896 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28897
a7fc080b
VS
288982010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28899
28900 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28901 error.
28902
2bf6012d
VS
289032010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28904
28905 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28906
265d68cd
VS
289072010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28908
28909 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28910 condition.
28911
289122010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
28913
28914 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28915 part.
28916
265d68cd 289172010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
28918
28919 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28920 pointers.
28921
265d68cd 289222010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
28923
28924 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28925
d1b61374
CF
289262010-05-01 Christian Franke <franke@computer.org>
28927
28928 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28929 Remove broken Cygwin path conversion.
28930 * util/misc.c: [__CYGWIN__] Add include and define.
28931 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28932 for Cygwin 1.7.
28933 (make_system_path_relative_to_its_root): Simplify loop, replace early
28934 return by break.
28935 [__CYGWIN__] Add conversion to win32 path.
28936 Include "/" case in trailing slash removal.
28937
3558c6e9
VS
289382010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28939
28940 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28941 Reported by: Seth Goldberg
28942
f5f3ff93
VS
289432010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28944
28945 * commands/help.c (grub_cmd_help): Fix a typo.
28946 Reported by: Seth Goldberg
28947
d8b5cd40
VS
289482010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28949
28950 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28951 name and add N_.
28952 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28953 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28954 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28955 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28956 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28957 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28958 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28959 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28960 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28961 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28962 * normal/context.c (GRUB_MOD_INIT): Likewise.
28963 * normal/main.c (GRUB_MOD_INIT): Likewise.
28964 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28965 * term/serial.c (GRUB_MOD_INIT): Likewise.
28966 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28967
88c14915
VS
289682010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28969
28970 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28971 extra == 0.
28972
165134bc
VS
289732010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28974
28975 * commands/iorw.c: New file.
28976 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28977 (iorw_mod_SOURCES): New variable.
28978 (iorw_mod_CFLAGS): Likewise.
28979 (iorw_mod_LDFLAGS): Likewise.
28980
c5ac9b32
VS
289812010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28982
28983 Hotkey support
28984
28985 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28986 * normal/main.c (hotkey_aliases): New variable.
28987 (grub_normal_add_menu_entry): Parse "--hotkey".
28988 * normal/menu_text.c (run_menu): Handle hotkeys.
28989
ce60689c
VS
289902010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28991
28992 * kern/i386/coreboot/init.c (grub_machine_init): Call
28993 grub_machine_mmap_init on qemu.
28994
0359d006
VS
289952010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28996
28997 * boot/i386/qemu/boot.S: Add a missing .code16.
28998
7819a456
VS
289992010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29000
29001 Use LBIO on coreboot.
29002
29003 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
29004 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
29005 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
29006 New declaration.
29007 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
29008 grub_machine_mmap_init on coreboot.
29009 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
29010 GRUB_LINUXBIOS_MEMBER_LINK.
29011 (grub_machine_mmap_iterate): Fix declaration.
29012 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
29013
7210dca9
VS
290142010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29015
29016 Split coreboot and multiboot ports.
29017
29018 * conf/i386-multiboot.rmk: New file.
29019 * configure.ac: Add multiboot port.
29020 * include/grub/i386/multiboot/boot.h: New file.
29021 * include/grub/i386/multiboot/console.h: Likewise.
29022 * include/grub/i386/multiboot/init.h: Likewise.
29023 * include/grub/i386/multiboot/kernel.h: Likewise.
29024 * include/grub/i386/multiboot/loader.h: Likewise.
29025 * include/grub/i386/multiboot/memory.h: Likewise.
29026 * include/grub/i386/multiboot/serial.h: Likewise.
29027 * include/grub/i386/multiboot/time.h: Likewise.
29028 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
29029 * loader/multiboot.c: Likewise.
29030 * loader/multiboot_mbi2.c: Likewise.
29031 * util/grub-mkrescue.in: Generate multiboot rescue.
29032
6f8aaf68
VS
290332010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29034
3080f7a7
VS
29035 * kern/parser.c (grub_parser_execute): Cope with read-only config.
29036
290372010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29038
29039 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
29040
29041 * commands/terminal.c (abstract_terminal): New struct.
29042 (handle_command): New function. Based on grub_cmd_terminal_input.
29043 (grub_cmd_terminal_input): Use handle_command.
29044 (grub_cmd_terminal_output): Use handle_command.
29045
a8ebb841
BC
290462010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
29047
29048 Fix comment handling.
29049
29050 * tests/grub_script_comments.in: New testcase.
29051 * conf/tests.rmk: Rules for new testcase.
29052 * script/yylex.l: Updated flex rules.
29053
bb06ba08
ST
290542010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
29055
29056 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
29057 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
29058 if argc is 1.
bb06ba08 29059
cc9d2425
VS
290602010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
29061
29062 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29063 autogen issues.
29064
460d8402
CF
290652010-04-26 Christian Franke <franke@computer.org>
29066
29067 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29068 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29069 (grub_get_prefix): Remove function.
29070 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29071 make_system_path_relative_to_its_root ().
29072 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29073
553c01f9
CF
290742010-04-24 Christian Franke <franke@computer.org>
29075
29076 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29077 (kernel_img_LDFLAGS): Remove -static-libgcc.
29078
2aec1692
CF
290792010-04-24 Christian Franke <franke@computer.org>
29080
29081 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29082 and CHECK_END_SYMBOL if grub-emu is built.
29083 Unset TARGET_OBJ2ELF if grub-emu is built
29084 without module support.
29085
f67dc308
JS
290862010-04-24 Jiro SEKIBA <jir@unicus.jp>
29087
29088 Nilfs2 support.
29089
29090 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29091 (grub_fstest_SOURCES): Likewise.
29092 (pkglib_MODULES): Add nilfs2.mod.
29093 (nilfs2_mod_SOURCES): New variable.
29094 (nilfs2_mod_CFLAGS): Likewise.
29095 (nilfs2_mod_LDFLAGS): Likewise.
29096 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29097 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29098 * fs/nilfs2.c: New file.
29099
4ba8d354
VS
291002010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29101
29102 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29103 is not supported.
29104
0d2c20c6
GS
291052010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29106
29107 Add grub-mkconfig support for NetBSD.
29108
29109 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29110 * util/grub-mkconfig.in: export new NetBSD specific variables.
29111 * po/POTFILES-shell: added 10_netbsd.in.
29112 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29113
bc4a2d83
BC
291142010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29115
29116 Fix emu build with grub-emu-pci and grub-emu-modules.
29117
29118 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29119 functions.
29120 * include/grub/libpciaccess.h: New file.
29121 * conf/any-emu.rmk: Update kernel headers for emu build.
29122
f48c87aa
VS
291232010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29124
29125 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29126
18959385
VS
291272010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29128
29129 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29130
0037de3f
VS
291312010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29132
29133 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29134 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29135 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29136 util/ieee1275/ofpath.c.
29137 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29138 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29139 * include/grub/sparc64/ieee1275/boot.h
29140 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29141 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29142 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29143 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29144 const char *.
29145 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29146 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29147 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29148 install.
29149
38e55e90
GS
291502010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29151
29152 * util/grub-mkconfig.in: Corrected two == equality tests.
29153 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29154 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29155 expect a number appended to it.
29156 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29157 expects a number appended to it.
29158
a9e6ff28
VS
291592010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29160
29161 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29162
0b830b8f
VS
291632010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29164
29165 * util/hostdisk.c (make_device_name): Change to new partition naming.
29166
0973daeb
VS
291672010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29168
29169 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29170
460d8402 291712010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
29172
29173 * Makefile.in: Add missing localedir setting.
29174
0b456309
CW
291752010-04-14 Colin Watson <cjwatson@ubuntu.com>
29176
29177 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29178 mistake in r2156. Noticed by Anthony Fok.
29179
29180 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29181 @localedir@.
29182 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29183
08f46d62
BC
291842010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29185
29186 Fix a spurious, uninitialized variable warning.
29187
29188 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29189 Initialize variable, shdr.
29190 (grub_freebsd_load_elfmodule): Likewise.
29191 (grub_freebsd_load_elf_meta): Likewise.
29192
8c4a72d4
BC
291932010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29194
29195 Fix for escaped dollar in double quoted strings.
29196
29197 * script/yylex.l: Updated flex rules.
29198 * conf/tests.rmk: Rule for new testcase.
29199 * tests/grub_script_dollar.in: New testcase.
29200
ce44826e
CPE
292012010-04-13 Carles Pina i Estany <carles@pina.cat>
292022010-04-13 Colin Watson <cjwatson@ubuntu.com>
29203
29204 Enclose all translated strings in grub.cfg in single quotes, and
29205 escape them appropriately (Ubuntu bug #552921).
29206
29207 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29208 * util/grub.d/10_hurd.in: Use it.
29209 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29210 * util/grub.d/10_linux.in (linux_entry): Likewise.
29211
4b0cd8f8
VS
292122010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29213
29214 Fix cygwin compilation.
29215
29216 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29217 * include/grub/misc.h (__register_frame_info)
29218 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29219 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29220 * kern/misc.c (__register_frame_info)
29221 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29222 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29223
01fcf061
VS
292242010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29225
29226 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29227
5d04b11e
VS
292282010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29229
29230 Unify libgcc processing.
29231
29232 * Makefile.in (kernel_img_LDFLAGS): New variable.
29233 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29234 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29235 overwriting.
29236 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29237 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29238 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29239 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29240 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29241 overwriting. Remove -lgcc and -static-libgcc
29242 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29243 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29244 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29245 (kernel_img_LDFLAGS): Append instead of overwriting.
29246 Remove -lgcc and -static-libgcc
29247 * conf/sparc64-ieee1275.rmk: Likewise.
29248 * include/grub/powerpc/libgcc.h: Move to ...
29249 * include/grub/libgcc.h: .. this.
29250 * include/grub/libgcc.h: Don't export most of the function on x86.
29251 (__bswapsi2): New export.
29252 (__bswapdi2): Likewise.
29253 * include/grub/mips/libgcc.h: Removed.
29254 * include/grub/sparc64/libgcc.h: Likewise.
29255
b7f3ac29
VS
292562010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29257
29258 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29259 disk_info_msg (conflicts with gettexting into languages with cases).
29260
2c7031b1
GS
292612010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29262
29263 Add grub-probe support for NetBSD.
29264
29265 * util/getroot.c (find_root_device): Convert block device to
29266 character device on NetBSD.
29267 * util/probe.c (probe): Require character device on NetBSD.
29268 * util/hostdisk.c: NetBSD specific headers.
29269 (configure_device_driver): new function to tune device driver
29270 parameters (currently only for NetBSD floppy driver).
29271 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29272 via disklabel ioctl).
29273 (open_device): call configure_device_driver on NetBSD.
29274 (convert_system_partition_to_system_disk): NetBSD specific code.
29275 (device_is_wholedisk): Likewise.
29276 (grub_util_biosdisk_get_grub_dev): Likewise.
29277 (make_device_name): Fixed a typo in bsd_part_str.
29278 * configure.ac: check for opendisk() and getrawpartition() on
29279 NetBSD and set LIBUTIL.
29280 * Makefile.in: add LIBUTIL to LIBS.
29281
f516290c
BC
292822010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29283
29284 Documentation fix.
29285
29286 * util/grub-script-check.c: Better help message.
29287
d8dcc0df
BC
292882010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29289
29290 Fix FreeBSD build.
29291
29292 * configure.ac: Flex version check.
29293 * conf/common.rmk: Add -Wno-error to sh.mod.
29294 * script/yylex.l: Remove all #pragma.
29295
6734334a
VS
292962010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29297
29298 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29299 prototype.
29300 Reported by: Seth Goldberg.
29301
daea6abd
VS
293022010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29303
29304 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29305 Rename "module" to "module2".
29306 Reported by: Seth Goldberg.
29307
f2fd9d2b
VS
293082010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29309
29310 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29311 EXPORT_FUNC.
29312 Reported by: Seth Goldberg.
29313
be124579
VS
293142010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29315
29316 * lib/posix_wrap/locale.h: Add missing file.
29317 Reported by: Seth Goldberg.
29318
ef5da797
VS
293192010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29320
29321 grub-emu module load support.
29322
29323 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29324 NO_DYNAMIC_MODULES switched to this.
29325 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29326 (CFLAGS): Likewise.
29327 * conf/any-emu.rmk: Generate symlist.
29328 (kernel_img_HEADERS): Add util/datetime.h.
29329 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29330 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29331 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29332 kern/$(target_cpu)/cache.S.
29333 * configure.ac (grub-emu-modules): New option.
29334 * genmk.rb: Handle multiple source lists.
29335 * include/grub/sdl.h: New file.
29336 * include/grub/libusb.h: Likewise.
29337 * util/grub-emu.c (main): Hanle (host) root.
29338 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29339 GRUB_ERR_UNKNOWN_DEVICE.
29340 * util/misc.c: Move mm functions to ...
29341 * util/mm.c: ... here. All users updated.
29342
47822096
VS
293432010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29344
29345 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29346 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29347 missing files.
29348 (maintainer-clean): Remove libgcrypt-grub.
29349
5d7e7445
VS
293502010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29351
29352 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29353
25f4e252
EC
293542010-04-09 EFI Coder <eficoder@hotmail.com>
29355
29356 * normal/menu_text.c (print_message): Clean up the message and show
29357 the Fn information when on EFI
29358 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29359
027de555
VS
293602010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29361
29362 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29363 All users updated.
29364 * normal/crypto.c (read_crypto_list): Likewise.
29365 * normal/dyncmd.c (read_command_list): Likewise.
29366 * normal/term.c (read_terminal_list): Likewise.
29367 * normal/main.c (read_lists): Use explicit prefix.
29368 (read_lists_hook): Use read_lists.
29369 (grub_normal_execute): Likewise.
29370
47779711
VS
293712010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29372
29373 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29374 Reported by: Thomas Schmitt.
29375 Add -no-emul-boot to grub-mkisofs parameters.
29376
1118c32e
VS
293772010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29378
29379 * font/font.c: Indented.
29380
7d652447
BC
293812010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29382
29383 Elif support to GRUB script (by Deepak Vankadaru).
29384
29385 * tests/grub_script_if.in: New testcase.
29386 * conf/tests.rmk: Rule for new testcase.
29387 * script/parser.y: Grammar rules for elif.
29388
34bb22df
BC
293892010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29390
29391 While and until loops support to GRUB script.
29392
29393 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29394 (grub_script_create_cmdwhile): New function prototype.
29395 (grub_script_execute_cmdwhile): New function prototype.
29396 * script/execute.c (grub_script_execute_cmdwhile): New function.
29397 * script/parser.y (command): New commands.
29398 (whilecmd): New grammar rule.
29399 (untilcmd): New grammar rule.
29400 * script/script.c (grub_script_create_cmdwhile): New function.
29401 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29402 function.
29403
29404 * tests/grub_script_while1.in: New testcase.
29405 * conf/tests.rmk: Rule for new testcase.
29406
e215d8e0
VS
294072010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29408
29409 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29410 as *.jpg.
29411
d7c43ba1
MV
294122010-04-09 Mario Vazquez <mariovazq@gmail.com>
29413
29414 GRUB_BACKGROUND support.
29415
29416 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29417 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29418
d64795c0
VS
294192010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29420
29421 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 29422 Idea by: Mario Vazquez
d64795c0
VS
29423
29424 * util/grub.d/00_header.in: Load pf2 and image modules.
29425
f267f83a
VS
294262010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29427
29428 grub-mkconfig multiple terminal support.
29429
29430 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29431 * util/grub.d/00_header.in: Likewise.
29432
b7841ceb
VS
294332010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29434
29435 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29436 we use cd $(srcdir).
29437
df60998c
CW
294382010-04-08 Colin Watson <cjwatson@ubuntu.com>
29439
29440 * util/grub.d/10_linux.in: Only use the first word of
29441 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29442 spaces in GRUB_DISTRIBUTOR.
29443 * util/grub.d/10_kfreebsd.in: Likewise.
29444 * util/grub.d/10_hurd.in: Likewise.
29445
fa09c82e
BC
294462010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29447
14e18ae3 29448 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
29449
29450 * tests/util/grub-shell.in: Remove -serial stdio option.
29451
daf892b3
BC
294522010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29453
29454 POSIX header file wrappers.
29455
29456 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29457 equivalents.
29458 * lib/posix_wrap/ctype.h: Likewise.
29459 * lib/posix_wrap/errno.h: Likewise.
29460 * lib/posix_wrap/langinfo.h: Likewise.
29461 * lib/posix_wrap/limits.h: Likewise.
29462 * lib/posix_wrap/localcharset.h: Likewise.
29463 * lib/posix_wrap/stdint.h: Likewise.
29464 * lib/posix_wrap/stdio.h: Likewise.
29465 * lib/posix_wrap/stdlib.h: Likewise.
29466 * lib/posix_wrap/string.h: Likewise.
29467 * lib/posix_wrap/sys/types.h: Likewise.
29468 * lib/posix_wrap/unistd.h: Likewise.
29469 * lib/posix_wrap/wchar.h: Likewise.
29470 * lib/posix_wrap/wctype.h: Likewise.
29471 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29472 (grub_script.yy.h): Likewise.
29473 * script/yylex.l: Remove POSIX emulation #defines.
29474 * Makefile.in (POSIX_CFLAGS): New variable.
29475 (GNULIB_UTIL_CFLAGS): Likewise.
29476
29477 Regexp support.
29478
29479 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29480 (regexp_mod_SOURCES): New variable.
29481 (regexp_mod_CFLAGS): Likewise.
29482 (regexp_mod_LDFLAGS): Likewise.
29483 * commands/regexp.c: New file.
29484 * gnulib/regcomp.c: New file. Imported from gnulib.
29485 * gnulib/regex.c: Likewise.
29486 * gnulib/regex_internal.c: Likewise.
29487 * gnulib/regex_internal.h: Likewise.
29488 * gnulib/regexec.c: Likewise.
29489 * gnulib/regex.h: Likewise.
29490
974ac4f7
VS
294912010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29492
29493 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29494 unsupported video mode types.
29495
2622c3ff
VS
294962010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29497
29498 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29499
064cb524
VS
295002010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29501
29502 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29503 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29504
a8c3b552
VS
295052010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29506
29507 Remove unused grub_vga_get_font.
29508
29509 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29510 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29511
187bbe3d
GS
295122010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29513
29514 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29515 * include/grub/misc.h: Likewise.
29516
b9396631
GS
295172010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29518
29519 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29520 for which failure is fatal.
29521
50479feb
GS
295222010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29523
29524 * util/grub-install.in: Use mkdir -p to create grub directory.
29525 * util/i386/efi/grub-install.in: Likewise.
29526 * util/ieee1275/grub-install.in: Likewise.
29527
b1654fdf
GS
295282010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29529
29530 * Makefile.in (LEX): new variable.
29531
bd5a6415
GS
295322010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29533
29534 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29535 `=' and added double quotes on operands of this equality test.
29536
3db3a82b
VS
295372010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29538
29539 * Makefile.in (uninstall): Remove a leftover debug echo.
29540 Reported by: Grégoire Sutre
29541
38023412
VS
295422010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29543
29544 MIPS multiboot2 support.
29545
29546 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29547 (multiboot2_mod_SOURCES): New variable.
29548 (multiboot2_mod_CFLAGS): Likewise.
29549 (multiboot2_mod_LDFLAGS): Likewise.
29550 (multiboot2_mod_ASFLAGS): Likewise.
29551 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29552 definition.
29553 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29554 (MULTIBOOT_MBI_REGISTER): Likewise.
29555 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29556 (MULTIBOOT_ELF32_MACHINE): Likewise.
29557 (MULTIBOOT_ELF64_MACHINE): Likewise.
29558 * include/grub/mips/multiboot.h: New file.
29559 * include/grub/video.h (grub_video_driver_id): New type
29560 GRUB_VIDEO_DRIVER_SM712.
29561 (grub_video_get_info_and_fini): Export.
29562 (grub_video_get_palette): Likewise.
29563 (grub_video_get_driver_id): Likewise.
29564 * include/multiboot2.h: Resynced with spec.
29565 * loader/i386/multiboot.c: Moved from here ...
29566 * loader/multiboot.c: ... here. All users updated.
29567 (grub_multiboot_boot): Use platform-specific macros.
29568 * loader/i386/multiboot_elfxx.c: Moved from here ...
29569 * loader/multiboot_elfxx.c: ... here. All users updated.
29570 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29571 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29572 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29573
47674667
VS
295742010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29575
29576 Import gnulib argp module.
29577
29578 * gnulib/argp-ba.c: New file.
29579 * gnulib/argp-eexst.c: Likewise.
29580 * gnulib/argp-fmtstream.c: Likewise.
29581 * gnulib/argp-fmtstream.h: Likewise.
29582 * gnulib/argp-fs-xinl.c: Likewise.
29583 * gnulib/argp-help.c: Likewise.
29584 * gnulib/argp-namefrob.h: Likewise.
29585 * gnulib/argp-parse.c: Likewise.
29586 * gnulib/argp-pin.c: Likewise.
29587 * gnulib/argp-pv.c: Likewise.
29588 * gnulib/argp-pvh.c: Likewise.
29589 * gnulib/argp-version-etc.c: Likewise.
29590 * gnulib/argp-version-etc.h: Likewise.
29591 * gnulib/argp-xinl.c: Likewise.
29592 * gnulib/argp.h: Likewise.
29593
495442ed
VS
295942010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29595
29596 * kern/device.c (grub_device_iterate): Clear errors after failed
29597 opening device.
29598
f9fd65df
VS
295992010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29600
29601 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29602 returned by firmware.
29603
af09641e
VS
296042010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29605
29606 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29607 compilation on coreboot and qemu
29608
016883a5
VS
296092010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29610
29611 * include/multiboot2.h: Resync with spec.
29612
f97e1f7d
VS
296132010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29614
29615 Multiboot2 tag support
29616
29617 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29618 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29619 Remove loader/multiboot_loader.c.
29620 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29621 (grub_multiboot2_real_boot): Likewise.
29622 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29623 (grub_get_multiboot_mmap_count): New proto.
29624 (grub_fill_multiboot_mmap): Likewise.
29625 (grub_multiboot_set_video_mode): Likewise.
29626 (grub_multiboot_set_console): Likewise.
29627 (grub_multiboot_load): Likewise.
29628 (grub_multiboot_load_elf): Likewise.
29629 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29630 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29631 * include/multiboot.h: Resynced with specification.
29632 * include/multiboot2.h: Resynced with specification.
29633 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29634 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29635 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29636 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29637 users updated.
29638 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29639 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29640 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29641 Removed.
29642 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29643 Moved from here...
29644 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29645 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29646 Moved from here...
29647 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29648 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29649 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29650 All users updated.
29651 * loader/i386/multiboot_mbi2.c: New file.
29652
3506b90b
VS
296532010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29654
29655 Resync with gnulib.
29656
29657 * Makefile.in (GNULIB_CFLAGS): New variable.
29658 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29659 (grub_script_check_CFLAGS): New variable.
29660 * gnulib/alloca.h: Resync with gnulib.
29661 * gnulib/error.c: Likewise.
29662 * gnulib/error.h: Likewise.
29663 * gnulib/fnmatch.c: Likewise.
29664 * gnulib/fnmatch_loop.c: Likewise.
29665 * gnulib/getdelim.c: Likewise.
29666 * gnulib/getline.c: Likewise.
29667 * gnulib/getopt.c: Likewise.
29668 * gnulib/getopt1.c: Likewise.
29669 * gnulib/getopt_int.h: Likewise.
29670 * gnulib/gettext.h: Likewise.
29671 * gnulib/progname.c: Likewise.
29672 * gnulib/progname.h: Likewise.
29673
394a3120
GS
296742010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29675
29676 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29677 which is the case with --disabled-nls.
29678
29679 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29680 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29681 * util/misc.c: Likewise.
29682 * util/mkisofs/mkisofs.c: Likewise.
29683 * util/mkisofs/mkisofs.h: Likewise.
29684
969d1c78
VS
296852010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29686
29687 Simplify Apple CC support.
29688
29689 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29690 Add 0 byte at the end not to have a symbol with empty target.
29691 * mmap/i386/pc/mmap_helper.S: Likewise.
29692 * genmk.rb: Ignore errors 2030 and 2050.
29693 * kern/i386/pc/startup.S: Use LOCAL when possible.
29694
8d2977bb
BC
296952010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29696
29697 Testcase and the fix for final semicolon on cmdline.
29698
29699 * tests/grub_script_final_semicolon.in: New testcase.
29700 * conf/tests.rmk: Rules for the new testcase.
29701 * script/parser.y: Grammar fix.
29702
a7bd6915
BC
297032010-03-26 BVK Chaitanya <bvk@localhost>
29704
29705 Blank lines testcase for GRUB script.
29706
29707 * tests/grub_script_blanklines.in: New testcase.
29708 * conf/tests.rmk: Rules for the new testcase.
29709
e4ff6628
VS
297102010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29711
29712 Don't use __FILE__.
29713
29714 * genmk.rb: Add -DGRUB_FILE to all C targets.
29715 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29716 * include/grub/list.h: Likewise.
29717 * include/grub/misc.h: Likewise.
29718 * include/grub/mm.h: Likewise.
29719 * include/grub/test.h: Likewise.
29720 * kern/mm.c: Likewise.
29721 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29722
6a5cf6b6
VS
297232010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29724
29725 Sunpc partitions support.
29726
29727 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29728 (grub_fstest_SOURCES): Likewise.
29729 (pkglib_MODULES): Add part_sunpc.mod.
29730 (part_sunpc_mod_SOURCES): New variable.
29731 (part_sunpc_mod_CFLAGS): Likewise.
29732 (part_sunpc_mod_LDFLAGS): Likewise.
29733 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29734 * partmap/sunpc.c: New file.
29735
746d9045
BC
297362010-03-26 BVK Chaitanya <bvk@localhost>
29737
29738 For loop support to GRUB script.
29739
29740 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29741 (grub_script_create_cmdfor): New function prototype.
29742 (grub_script_execute_cmdfor): New function prototype.
29743 * script/execute.c (grub_script_execute_cmdfor): New function.
29744 * script/parser.y (command): New for command.
29745 (forcmd): New grammar rule.
29746 * script/script.c (grub_script_create_cmdfor): New function.
29747 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29748 function.
29749 * tests/grub_script_for1.in: New testcase.
29750 * conf/tests.rmk: Rules for new testcase.
29751
18486b18
VS
297522010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29753
29754 Nested partitions
29755
29756 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29757 'partition' is NULL, grub_partition_get_start already does that.
29758 * commands/loadenv.c (check_blocklists): Likewise.
29759 (write_blocklists): Likewise.
29760 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29761 (grub_fstest_SOURCES): Likewise.
29762 (pkglib_MODULES): Add part_bsd.mod.
29763 (part_bsd_mod_SOURCES): New variable.
29764 (part_bsd_mod_CFLAGS): Likewise.
29765 (part_bsd_mod_LDFLAGS): Likewise.
29766 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29767 (grub_emu_SOURCES): Likewise.
29768 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29769 * include/grub/bsdlabel.h: New file.
29770 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29771 'get_name'.
29772 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29773 (grub_partition_map_list): New variable.
29774 (grub_partition_map_register): Inline.
29775 (grub_partition_map_unregister): Likewise.
29776 (FOR_PARTITION_MAPS): New macro.
29777 (grub_partition_map_iterate): Removed.
29778 (grub_partition_get_start): Handle nested partitions.
29779 * include/grub/msdos_partition.h: Remove bsd-related entries.
29780 (grub_pc_partition): Remove.
29781 * kern/disk.c (grub_disk_close): Free partition data.
29782 (grub_disk_adjust_range): Handle nested partitions.
29783 * kern/partition.c (grub_partition_map_probe): New function.
29784 (grub_partition_probe): Parse name to number, handle subpartitions.
29785 (get_partmap): New function.
29786 (grub_partition_iterate): Handle subpartitions.
29787 (grub_partition_get_name): Likewise.
29788 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29789 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29790 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29791 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29792 Set 'number'.
29793 (acorn_partition_map_probe): Remove.
29794 (acorn_partition_map_get_name): Likewise.
29795 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29796 Set 'number'.
29797 Set 'index' to 0 since there can be only one partition entry per sector.
29798 (amiga_partition_map_probe): Remove.
29799 (amiga_partition_map_get_name): Likewise.
29800 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29801 Set 'number'.
29802 Set 'offset' and 'index' to real positions of partitions.
29803 (apple_partition_map_probe): Remove.
29804 (apple_partition_map_get_name): Likewise.
29805 * partmap/bsdlabel.c: New file.
29806 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29807 Set 'number'.
29808 Allocate 'data' so it can be correctly freed.
29809 Set 'index' to offset inside sector.
29810 (gpt_partition_map_probe): Remove.
29811 (gpt_partition_map_get_name): Likewise.
29812 * partmap/msdos.c (grub_partition_parse): Remove.
29813 (pc_partition_map_iterate): Don't force raw access.
29814 Set 'number'.
29815 Make 'ext_offset' a local variable.
29816 (pc_partition_map_probe): Remove.
29817 (pc_partition_map_get_name): Remove.
29818 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29819 Set 'number'.
29820 (sun_partition_map_probe): Remove.
29821 (sun_partition_map_get_name): Likewise.
29822 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29823 (grub_pcpart_type): Likewise.
29824 * util/hostdisk.c (open_device): Handle new numbering scheme.
29825 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29826 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29827 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29828 * util/grub-install.in: Insert all subpartition modules.
29829 * util/ieee1275/grub-install.in: Likewise.
29830
a3940f88
AG
298312010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29832
29833 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29834 grammar.
29835
21b99926 298362010-03-24 Colin Watson <cjwatson@ubuntu.com>
29837
29838 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29839
bed1d352
CW
298402010-03-21 Colin Watson <cjwatson@ubuntu.com>
29841
29842 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29843 match where 'make install' puts them.
29844 * util/i386/efi/grub-install.in: Likewise.
29845
c9f58427
CW
298462010-03-19 Colin Watson <cjwatson@ubuntu.com>
29847
29848 * .bzrignore: Add gentrigtables, grub-script-check,
29849 grub_script_check_init.c, grub_script_check_init.h, and
29850 trigtables.c.
29851
f84afb27
VS
298522010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29853
29854 * kern/parser.c: Indented.
29855
ed0e3d30
VS
298562010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29857
29858 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29859
0ea81d98
VS
298602010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29861
29862 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29863 alpha_mask_size == 0 case.
29864
0cdc2a09
BC
298652010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29866
29867 GRUB shell lexer and parser improvements.
29868
29869 * conf/any-emu.rmk: Build rule updates.
29870 * conf/common.rmk: Likewise.
29871 * conf/i386-coreboot.rmk: Likewise.
29872 * conf/i386-efi.rmk: Likewise.
29873 * conf/i386-ieee1275.rmk: Likewise.
29874 * conf/i386-pc.rmk: Likewise.
29875 * conf/powerpc-ieee1275.rmk: Likewise.
29876 * conf/x86_64-efi.rmk: Likewise.
29877
29878 * configure.ac: Configure check for flex.
29879
29880 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29881 types.
29882 (grub_lexer_param): Struct member updates.
29883 (grub_parser_param): Likewise.
29884 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29885 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29886 (grub_script_lexer_init): Prototype update.
29887 (grub_script_lexer_record_start): Likewise.
29888 (grub_script_lexer_record_stop): Likewise.
29889 (grub_script_lexer_yywrap): New function prototype.
29890 (grub_script_lexer_fini): Likewise.
29891 (grub_script_execute_argument_to_string): Removed by...
29892 (grub_script_execute_argument_to_argv): ...better version.
29893
29894 * script/execute.c (ROUND_UPTO): New macro.
29895 (grub_script_execute_cmdline): Out of memory fixes.
29896 (grub_script_execute_menuentry): Likewise.
29897 (grub_script_execute_argument_to_string): Removed. Update all
29898 users by...
29899 (grub_script_execute_argument_to_argv): ...better version.
29900 * script/function.c (grub_script_function_create): Use
29901 grub_script_execute_argument_to_argv instead of
29902 grub_script_execute_argument_to_string.
29903
29904 * script/lexer.c (check_varstate): Removed.
29905 (check_textstate): Removed.
29906 (grub_script_lexer_record_start): Likewise.
29907 (grub_script_lexer_record_stop): Likewise.
29908 (recordchar): Replaced with...
29909 (grub_script_lexer_record): ...new function.
29910 (nextchar): Removed.
29911 (grub_script_lexer_init): Rewritten.
29912 (grub_script_yylex): Rewritten.
29913 (append_newline): New function.
29914 (grub_script_lexer_yywrap): New function.
29915 (grub_script_lexer_fini): New function.
29916 (grub_script_yyerror): Sets error flag.
29917
29918 * script/yylex.l: New file.
29919 (grub_lexer_yyfree): Wrapper for flex yyffre.
29920 (grub_lexer_yyalloc): Likewise.
29921 (grub_lexer_yyrealloc): Likewise.
29922 * script/parser.y: Refactored.
29923
29924 * script/script.c (grub_script_arg_add): Out of memory fixes.
29925 (grub_script_add_arglist): Likewise.
29926 (grub_script_create_cmdline): Likewise.
29927 (grub_script_create_cmdmenu): Likewise.
29928 (grub_script_add_cmd): Likewise.
29929 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29930 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29931 unnecessary code.
29932
29933 * tests/grub_script_echo1.in: New testcase.
29934 * tests/grub_script_vars1.in: New testcase.
29935 * tests/grub_script_echo_keywords.in: New testcase.
29936
1d63a066
VS
299372010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29938
29939 Remove some redundancy in build system.
29940
29941 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29942 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29943 (TARGET_LDFLAGS): Add -nostdlib.
29944 (TARGET_IMG_LDFLAGS): Likewise.
29945 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29946 anything since mmap isn't available.
29947 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29948 Add util/time.c.
29949 (pkglib_MODULES): Remove reboot.mod.
29950 (reboot_mod_SOURCES): Removed.
29951 (reboot_mod_CFLAGS): Likewise.
29952 (reboot_mod_LDFLAGS): Likewise.
29953 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29954 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29955 (DEFSYMFILES): Add kernel_syms.lst.
29956 (kernel_img_HEADERS): Add common headers.
29957 (symlist.c): New target.
29958 (kernel_syms.lst): Likewise.
29959 (pkglib_MODULES): Add memdisk.mod.
29960 (memdisk_mod_SOURCES): New variable.
29961 (memdisk_mod_CFLAGS): Likewise.
29962 (memdisk_mod_LDFLAGS): Likewise.
29963 (pkglib_MODULES): Add reboot.mod.
29964 (reboot_mod_SOURCES): New variable.
29965 (reboot_mod_CFLAGS): Likewise.
29966 (reboot_mod_LDFLAGS): Likewise.
29967 (pkglib_MODULES): Add date.mod.
29968 (date_mod_SOURCES): New variable.
29969 (date_mod_CFLAGS): Likewise.
29970 (date_mod_LDFLAGS): Likewise.
29971 (pkglib_MODULES): Add datehook.mod.
29972 (datehook_mod_SOURCES): New variable.
29973 (datehook_mod_CFLAGS): Likewise.
29974 (datehook_mod_LDFLAGS): Likewise.
29975 (pkglib_MODULES): Add lsmmap.mod.
29976 (lsmmap_mod_SOURCES): New variable.
29977 (lsmmap_mod_CFLAGS): Likewise.
29978 (lsmmap_mod_LDFLAGS): Likewise.
29979 (pkglib_MODULES): Add boot.mod.
29980 (boot_mod_SOURCES): New variable.
29981 (boot_mod_CFLAGS): Likewise.
29982 (boot_mod_LDFLAGS): Likewise.
29983 * conf/i386-coreboot.rmk: Removed redundant parts.
29984 * conf/i386-ieee1275.rmk: Likewise.
29985 * conf/i386-pc.rmk: Likewise.
29986 * conf/mips-yeeloong.rmk: Likewise.
29987 * conf/mips.rmk: Likewise.
29988 * conf/powerpc-ieee1275.rmk: Likewise.
29989 * conf/sparc64-ieee1275.rmk: Likewise.
29990 * conf/x86_64-efi.rmk: Likewise.
29991 * conf/i386-coreboot.rmk: Moved qemu parts ..
29992 * conf/i386-qemu.rmk: ... here
29993 * conf/i386-efi.rmk: Moved common parts to...
29994 * conf/x86-efi.rmk: ... here.
29995 * conf/i386.rmk: Added modules common to all x86 variants.
29996 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29997 * disk/memdisk.c: Remove grub/machine/kernel.h.
29998 * gensymlist.sh.in: Include symbol.h.
29999 * hook/datehook.c: Correct module name.
30000 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
30001 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
30002 * include/grub/i386/efi/serial.h: New file.
30003 * include/grub/x86_64/efi/serial.h: Likewise.
30004 * util/time.c: Likewise.
30005 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
30006
463ac55f
CK
300072010-03-14 Colin King <colin.king@ubuntu.com>
300082010-03-14 Colin Watson <cjwatson@ubuntu.com>
30009
30010 Shrink the pre-partition-table part of boot.img by eight bytes.
30011
30012 * boot/i386/pc/boot.S (ERR): New macro.
30013 (chs_mode): Use ERR.
30014 (geometry_error): Likewise.
30015 (hd_probe_error): Remove. This is only used once, so we wrwite
30016 it inline instead.
30017 (read_error): Instead of printing read_error_string, just set up
30018 %si and fall through to ...
30019 (error_message): ... this new function, also used by ERR.
30020
08e46ede
CW
300212010-03-14 Colin Watson <cjwatson@ubuntu.com>
30022
30023 Speed up consecutive hostdisk operations on the same device.
30024
30025 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
30026 (grub_util_biosdisk_open): Initialise disk->data.
30027 (struct linux_partition_cache): New structure.
30028 (linux_find_partition): Cache partition start positions; these are
30029 expensive to compute on every read and write.
30030 (open_device): Cache open file descriptor in disk->data, so that we
30031 don't have to reopen it and flush the buffer cache for consecutive
30032 operations on the same device.
30033 (grub_util_biosdisk_close): New function.
30034 (grub_util_biosdisk_dev): Set `close' member.
30035
30036 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
30037 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
30038 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30039 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
30040 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
30041
4a6d2d06
VS
300422010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30043
30044 Compile parts of grub-emu as modules.
30045
30046 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
30047 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
30048 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
30049 (all-local): Add $(GRUB_EMU).
30050 (install-local): Install $(GRUB_EMU).
30051 (uninstall): Uninstall $(GRUB_EMU).
30052 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
30053 * kern/dl.c: Likewise.
30054 * commands/sleep.c: Not include machine/time.h.
30055 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
30056 (COMMON_CFLAGS): Likewise.
30057 (sbin_UTILITIES): Remove grub-emu.
30058 (grub_emu_SOURCES): Removed.
30059 (kernel_img_RELOCATABLE): New variable.
30060 (pkglib_PROGRAMS): Add kernel.img.
30061 (kernel_img_SOURCES): New variable
30062 (kernel_img_CFLAGS): Likewise.
30063 (kernel_img_LDFLAGS): Likewise.
30064 (TARGET_NO_STRIP): Likewise.
30065 (TARGET_NO_DYNAMIC_MODULES): Likewise.
30066 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30067 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30068 (grub-emu): New target.
30069 (GRUB_EMU): New variable.
30070 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30071 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30072 * loader/xnu.c: Likewise.
30073 * include/grub/pci.h: Likewise.
30074 * genemuinit.sh: New file.
30075 * genemuinitheader.sh: Likewise.
30076 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30077 Support TARGET_NO_DYNAMIC_MODULES.
30078 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30079 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30080 * disk/loopback.c: Likewise.
30081 * font/font_cmd.c: Likewise.
30082 * partmap/acorn.c: Likewise.
30083 * partmap/amiga.c: Likewise.
30084 * partmap/apple.c: Likewise.
30085 * partmap/gpt.c: Likewise.
30086 * partmap/msdos.c: Likewise.
30087 * partmap/sun.c: Likewise.
30088 * parttool/msdospart.c: Likewise.
30089 * term/gfxterm.c: Likewise.
30090 * video/bitmap.c: Likewise.
30091 * video/readers/jpeg.c: Likewise.
30092 * video/readers/png.c: Likewise.
30093 * video/readers/tga.c: Likewise.
30094 * video/video.c: Likewise.
30095 * util/grub-emu.c (read_command_list): Removed.
30096 (main): Don't call util_init_nls.
30097 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30098 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30099
91fdd2ed
VS
301002010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30101
30102 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30103 date.mod, datehook.mod.
30104 (datetime_mod_SOURCES): New variable.
30105 (datetime_mod_CFLAGS): Likewise.
30106 (datetime_mod_LDFLAGS): Likewise.
30107 (date_mod_SOURCES): Likewise.
30108 (date_mod_CFLAGS): Likewise.
30109 (date_mod_LDFLAGS): Likewise.
30110 (datehook_mod_SOURCES): Likewise.
30111 (datehook_mod_CFLAGS): Likewise.
30112 (datehook_mod_LDFLAGS): Likewise.
30113 * conf/sparc64-ieee1275.rmk: Likewise.
30114 * lib/ieee1275/datetime.c: New file.
30115
873ccae6
VS
301162010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30117
30118 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30119 (ieee1275_fb_mod_SOURCES): New variable.
30120 (ieee1275_fb_mod_CFLAGS): Likewise.
30121 (ieee1275_fb_mod_LDFLAGS): Likewise.
30122 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30123 New proto.
30124 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30125 (HEAP_MAX_ADDR): Likewise.
30126 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30127 type.
30128 Correct stop condition.
30129 (grub_ieee1275_devices_iterate): New function.
30130 * video/ieee1275.c: New file.
30131
601c97c0
VS
301322010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30133
30134 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30135
30136 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30137 as scratch.
30138 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30139 SCRATCH_PAD_DISKBOOT as scratch.
30140 (bootit): Pass Openfirmware pointer in %o4.
30141 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30142 of 0x200000.
30143 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30144 with util/grub-mkrawimage.c.
30145 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30146 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30147 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30148 (grub_aout_load) [GRUB_UTIL]: Likewise.
30149 * include/grub/kernel.h (grub_modules_get_end): New proto.
30150 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30151 (SCRATCH_PAD_BOOT): New definition.
30152 (SCRATCH_PAD_DISKBOOT): Likewise.
30153 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30154 * include/grub/sparc64/ieee1275/ieee1275.h
30155 (grub_ieee1275_original_stack): New variable
30156 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30157 New definition
30158 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30159 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30160 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30161 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30162 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30163 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30164 (grub_platform_image_format_t): New type.
30165 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30166 * kern/main.c (grub_modules_get_end)
30167 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30168 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30169 (codestart): Switch stacks.
30170 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30171 variable.
30172 (grub_heap_init): Use grub_modules_get_end.
30173 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30174 stack.
30175 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30176 (main): Likewise.
30177 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30178
d68b491e
TG
301792010-03-14 Thorsten Glaser <tg@mirbsd.org>
30180
30181 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30182
4e02ed50
MK
301832010-03-08 Matt Kraai <kraai@ftbfs.org>
30184
30185 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30186 bug #559005).
30187
1f15fc1e
VS
301882010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30189
30190 * genmoddep.awk: Output all missing symbols and not only first.
30191
fce5d8ff
VS
301922010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30193
30194 * NEWS: Put the date of 1.98 release.
30195
d1e8a02f
VS
301962010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30197
30198 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30199 ft2build.h.
30200
696fd607
VS
302012010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30202
30203 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30204 completition in the middle of string.
30205
33e2e6f3
VS
302062010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30207
30208 * util/grub-mkrescue.in: Use mktemp with explicit template.
30209
b1f6d291
VS
302102010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30211
30212 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30213
2ac227c7
VS
302142010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30215
30216 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30217 right pointer.
30218
8f9a632b
VS
302192010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30220
30221 Fix FreeBSD compilation.
30222
30223 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30224 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30225
60b03859
VS
302262010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30227
30228 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30229
48a5a769
VS
302302010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30231
30232 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30233
3ab4bd77
VS
302342010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30235
30236 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30237
d116e0d8
RM
302382010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30239
30240 Support relative image path in theme file.
30241
30242 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30243 (image_set_property): Handle theme_dir and relative path.
30244
c7ef54aa
VS
302452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30246
30247 * configure.ac: Alias amd64 to x86_64.
30248
fcee14ed
VS
302492010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30250
30251 * NEWS: mention multiboot on EFI.
30252
d0780363
VS
302532010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30254
30255 * kern/main.c (grub_load_modules): Handle errors from init functions of
30256 embeded modules.
30257
41168ea4
VS
302582010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30259
30260 * normal/autofs.c (autoload_fs_module): Handle errors.
30261
b54d93ac
VS
302622010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30263
30264 Disable linux.mod on qemu-mips since it's not functional and leads
30265 to compilation failure.
30266
30267 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30268 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30269 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30270 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30271 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30272 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30273 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30274 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30275 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30276 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30277 Reported by: BVK Chaitanya
30278
fc8345da
JU
302792010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30280
30281 * INSTALL: Add gettext as a dependency and add qemu to a new section
30282 "Prerequisites for make-check".
30283
4760f979
CF
302842010-03-04 Christian Franke <franke@computer.org>
30285
30286 * util/grub-pe2elf.c: Add missing include "progname.h".
30287
f209b5b2
VS
302882010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30289
30290 * normal/crypto.c (read_crypto_list): Fix a typo.
30291 Reported by: Seth Goldberg.
30292
b4b7be98
VS
302932010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30294
30295 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 30296 Reported by: Seth Goldberg.
b4b7be98 30297
c0ee0385
VS
302982010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30299
30300 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30301 ascii.bitmaps.
30302
a8efbf64
VS
303032010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30304
30305 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 30306 Reported by: Seth Goldberg.
a8efbf64 30307
08dcd913
VS
303082010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30309
30310 * util/i386/efi/grub-install.in: Copy gettext files.
30311
c4d0b332
VS
303122010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30313
30314 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30315
c6f2fe52
VS
303162010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30317
30318 Wait for user entry basing on presence of output rather than on errors.
30319
30320 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30321 (grub_install_newline_hook): Likewise.
30322 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30323 * normal/menu.c (show_menu): Check line_counter to determine presence
30324 of output.
30325 * normal/term.c (grub_normal_line_counter): New variable.
30326 (grub_normal_get_line_counter): New function.
30327 (grub_install_newline_hook): Likewise.
30328
5382b1e4
VS
303292010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30330
30331 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30332
5519963b
VS
303332010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30334
30335 * configure.ac: Update version to 1.98.
30336
72b28631
VS
303372010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30338
30339 * util/grub.d/10_linux.in (linux_entry): Don't default to
30340 gfxpayload=keep if Linux doesn't support video handover.
30341
c140a180
VS
303422010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30343
30344 Don't compile video modules on yeeloong since video subsystem is part
30345 of kernel.
30346
30347 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30348 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30349 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30350 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30351 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30352 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30353 * include/grub/bitmap_scale.h: Likewise.
30354 * include/grub/bufio.h: Likewise.
30355 * include/grub/font.h: Likewise.
30356 * include/grub/gfxterm.h: Likewise.
30357 * include/grub/video.h: Likewise.
30358 * include/grub/vbe.h: Don't include video_fb.h.
30359 * video/i386/pc/vbe.c: Include video_fb.h.
30360 * commands/i386/pc/vbetest.c: Include video.h.
30361
a0ca21c2
CW
303622010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30363
30364 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30365 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30366 default entry if GRUB_SAVEDEFAULT=true. This allows using
30367 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30368 saving a new default on every boot.
30369
4a8a763c
VS
303702010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30371
30372 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30373 * normal/term.c (read_terminal_list): Likewise.
30374 * normal/main.c (grub_normal_init_page): Likewise.
30375 (grub_normal_read_line_real): Likewise.
30376
607ffde2
VS
303772010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30378
30379 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30380 memory leak.
30381 Reported by: Seth Goldberg.
30382
2b8fa975
CW
303832010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30384
30385 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30386 duplicate declaration of `start'.
30387
618307dd
VS
303882010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30389
30390 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30391 filename.
30392 Reported by: Georgy Buranov
30393
7dd05b96 303942010-02-20 Carles Pina i Estany <carles@pina.cat>
30395
30396 * util/grub-mkrawimage.c (usage): Change string formatting to
30397 improve gettext.
30398
d1484a42
MRA
303992010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30400
30401 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30402 backspace keys.
30403
42b1d186
VS
304042010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30405
30406 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30407 Reported by: Michael Suchanek.
30408
304092010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
30410
30411 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30412 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30413
d9f31a41
VS
304142010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30415
30416 Remove any reference to non-free fonts.
30417
30418 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30419 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30420 uses non-free components.
30421 * font/font.c (grub_font_get_name): Remove example name.
30422 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30423 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30424 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30425 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30426
2793c71e
GB
304272010-02-16 Georgy Buranov <gburanov@gmail.com>
30428
30429 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30430
402e3779
VS
304312010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30432
30433 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30434 Double divisor.
30435 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30436 features.
30437 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30438
0dd1e0dd
VS
304392010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30440
30441 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30442
6fa7cfce
ST
304432010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30444
30445 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30446 * docs/grub.texi (Command-line and menu entry commands): Document play
30447 command.
30448
37c8483b
ST
304492010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30450
30451 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30452 parse arguments as inline tempo and notes. Move code for playing notes
30453 to...
30454 (play): ... new function.
30455
14da0fb7
ST
304562010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30457
30458 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30459 grub_uint16_t instead of short.
30460 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30461 disk from little endian to cpu endianness.
30462
04459e70
ST
304632010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30464
30465 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30466 GRUB_TICKS_PER_SECOND instead of 120.
30467
a0876943
VS
304682010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30469
30470 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30471 escape sequence after \e.
30472
e29f95dc
VS
304732010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30474
30475 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30476 non-ASCII characters.
30477
d27859b2
VS
304782010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30479
30480 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30481 set root in single quotes to prevent \, from being unescaped.
30482
bc028f2f
VS
304832010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30484
30485 Prevent unknown commands from stopping menuentry execution.
30486
30487 * script/execute.c (grub_script_execute_cmdline): Print error after
30488 unknown command.
30489
095f5f82
VS
304902010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30491
30492 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30493 Reported by: Pavel Pisa.
30494
8c717950
VS
304952010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30496
30497 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30498
904935c3
VS
304992010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30500
30501 Merge grub_ieee1275_map_physical into grub_map and rename to
30502 grub_ieee1275_map
30503
30504 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30505 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30506 Remove.
30507 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30508 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30509 necessary.
30510 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30511
5b59a4e3
VS
305122010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30513
30514 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30515 opening and not after.
30516
69e137e8
VS
305172010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30518
30519 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30520 constants.
30521
2c0fcc36
VS
305222010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30523
30524 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30525 (alloc_phys): Use ALIGN_UP instead of align_addr.
30526
8c6052ce
VS
305272010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30528
30529 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30530
17cec782
VS
305312010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30532
30533 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30534
e0128bbd
VS
305352010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30536
30537 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30538 verbose dprintf.
30539
ca62070b
VS
305402010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30541
30542 Fix over-4GiB seek on sparc64.
30543
30544 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30545 Replace pos_i and pos_lo with pos. All users updated.
30546 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30547 New constant.
30548 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30549 Likewise.
30550 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30551 and pos_lo.
30552
bdca2607
VS
305532010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30554
30555 * util/grub-mkrawimage.c (main): Call set_program_name.
30556
da278c4d
VS
305572010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30558
30559 Properly align 64-bit targets.
30560
30561 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30562 (generate_image): Use ALIGN_ADDR.
30563
b274d734
VS
305642010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30565
30566 Properly create cross-endian images.
30567
30568 * include/grub/types.h (grub_host_to_target_addr): New macro
30569 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30570
82da2062
VS
305712010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30572
30573 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30574
7cae4377
VS
305752010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30576
30577 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30578
30579 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30580 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30581 (grub_linux_boot): Divide by 64K when on VESA.
30582
65a533e7
VS
305832010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30584
30585 Support GRUB_GFXPAYLOAD_LINUX.
30586
30587 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30588 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30589
dd01d397
VS
305902010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30591
30592 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30593 to show messages instead of discarding them.
30594 Process errors after executing command and not before. Keep old method
30595 too as precaution.
30596
660960d6
VS
305972010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30598
30599 * configure.ac: Check for ft2build.h.
30600
62509f04
VS
306012010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30602
30603 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30604
473df63d
VS
306052010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30606
30607 * genkernsyms.sh.in: Use TARGET_CC.
30608
c98d2a13
CW
306092010-02-07 Colin Watson <cjwatson@ubuntu.com>
30610
30611 * NEWS: Update.
30612
6e14234c
VS
306132010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30614
30615 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
30616 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30617 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 30618
b255e9cf
YB
306192010-02-07 Yves Blusseau <blusseau@zetam.org>
30620
6e14234c 30621 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 30622
98e6959d
VS
306232010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30624
30625 Fix warnings in grub-emu when compiling with maximum warning options.
30626
30627 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30628 (grub_arch_modules_addr): Return 0 and not NULL.
30629 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 30630 (xstrdup): Use newstr instead of dup.
f88d801b
VS
30631 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30632 of disk to dsk to avoid shadowing.
74e4934e
VS
30633 (find_free_slot): Fix prototype.
30634 * util/getroot.c (grub_util_is_dmraid): Make static.
30635 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30636 Add missing prototype.
30637 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 30638
74e31b5c
VS
306392010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30640
30641 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30642 appropriately.
30643
6b2ad14b
VS
306442010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30645
30646 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30647 code out.
30648
8f891adc
VS
306492010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30650
30651 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30652 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30653 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30654 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30655 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30656 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30657
74b45184
VS
306582010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30659
30660 * include/grub/err.h (grub_err_printf): Don't export.
30661
a4bced77
VS
306622010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30663
30664 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30665
007d0695
VS
306662010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30667
30668 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30669 * kern/misc.c (grub_gettext_dummy): Make static.
30670
b6c0d9c2
VS
306712010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30672
30673 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30674 by non-valid ones.
30675 * kern/term.c (grub_putchar): Likewise.
30676
f51a90d0
VS
306772010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30678
30679 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30680 buggy hook call and memory leak.
30681
6846cec5
VS
306822010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30683
30684 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30685
468d69fe
VS
306862010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30687
30688 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30689
51906b8c
VS
306902010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30691
30692 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30693 modevar.
30694 Return grub_errno on allocation error.
30695
09706ce5
VS
306962010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30697
30698 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30699
911df80c
YB
307002010-02-06 Yves Blusseau <blusseau@zetam.org>
30701
30702 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30703 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30704
3746a6bc
VS
307052010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30706
30707 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30708 non-pxe disk.
30709 (grub_pxefs_open): Likewise.
30710
09706ce5
VS
307112010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30712
30713 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30714 * util/grub.d/10_kfreebsd.in: Likewise.
30715 * util/grub.d/10_linux.in: Likewise.
30716
7cc192d9
VS
307172010-02-06 Colin D Bennett <colin@gibibit.com>
30718
30719 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30720 (gfxmenu_mod_SOURCES): New variable.
30721 (gfxmenu_mod_CFLAGS): Likewise.
30722 (gfxmenu_mod_LDFLAGS): Likewise.
30723 * include/grub/term.h (grub_term_set_current_output): Declare
30724 argument as const.
30725 * docs/gfxmenu-theme-example.txt: New file.
30726 * gfxmenu/gfxmenu.c: Likewise.
30727 * gfxmenu/gui_box.c: Likewise.
30728 * gfxmenu/gui_canvas.c: Likewise.
30729 * gfxmenu/gui_circular_progress.c: Likewise.
30730 * gfxmenu/gui_image.c: Likewise.
30731 * gfxmenu/gui_label.c: Likewise.
30732 * gfxmenu/gui_list.c: Likewise.
30733 * gfxmenu/gui_progress_bar.c: Likewise.
30734 * gfxmenu/gui_string_util.c: Likewise.
30735 * gfxmenu/gui_util.c: Likewise.
30736 * gfxmenu/icon_manager.c: Likewise.
30737 * gfxmenu/model.c: Likewise.
30738 * gfxmenu/named_colors.c: Likewise.
30739 * gfxmenu/theme_loader.c: Likewise.
30740 * gfxmenu/view.c: Likewise.
30741 * gfxmenu/widget-box.c: Likewise.
30742 * include/grub/gfxmenu_model.h: Likewise.
30743 * include/grub/gfxmenu_view.h: Likewise.
30744 * include/grub/gfxwidgets.h: Likewise.
30745 * include/grub/gui.h: Likewise.
30746 * include/grub/gui_string_util.h: Likewise.
30747 * include/grub/icon_manager.h: Likewise.
30748
307492010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30750
30751 Agglomerate scrolling in gfxterm.
30752
30753 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30754 (grub_virtual_screen_setup): Initialise 'total_screen'.
30755 (write_char): Split to ...
30756 (paint_char): ... this ...
30757 (write_char): ... and this.
30758 (paint_char): Handle delayed scrolling.
30759 (draw_cursor): Likewise.
30760 (scroll_up): Split to ...
30761 (real_scroll): ... this ...
30762 (scroll_up): ... and this.
30763 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30764 characters.
30765 (grub_gfxterm_refresh): Call real_scroll.
30766
307672010-02-06 Colin D Bennett <colin@gibibit.com>
30768
30769 * include/grub/misc.h (grub_iscntrl): New inline function.
30770 (grub_isalnum): Likewise.
30771 (grub_strtol): Likewise.
30772
307732010-02-06 Colin D Bennett <colin@gibibit.com>
30774
30775 * normal/menu_text.c (get_entry_number): Move from here ...
30776 * normal/menu.c (get_entry_number): ... moved here.
30777 * include/grub/menu.h (grub_menu_get_default_entry_index):
30778 New prototype.
30779 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30780 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30781 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30782 (grub_menu_viewer_should_return): Likewise.
30783 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30784 * normal/menu_text.c (run_menu): Enable menu switching.
30785 * normal/menu_viewer.c (should_return): New variable.
30786 (menu_viewer_changed): Likewise.
30787 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30788 (grub_menu_viewer_should_return): New function.
30789 (menuviewer_write_hook): Likewise.
30790 (grub_menu_viewer_init): Likewise.
30791
307922010-02-06 Colin D Bennet <colin@gibibit.com>
307932010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30794
30795 Support for gfxterm in a window.
30796
30797 * include/grub/gfxterm.h: New file.
30798 * include/grub/video.h (struct grub_video_rect): New declaration.
30799 (grub_video_rect_t): Likewise.
30800 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30801 (refcount): New variable.
30802 (render_target): Likewise.
30803 (window): Likewise.
30804 (repaint_callback): Likewise.
30805 (grub_virtual_screen_setup): Use 'render_target'.
30806 (init_window): New function.
30807 (grub_gfxterm_init_window): Likewise.
30808 (grub_gfxterm_init): Check reference counter.
30809 Use init_window.
30810 (destroy_window): New function.
30811 (grub_gfxterm_destroy_window): Likewise.
30812 (grub_gfxterm_fini): Check reference counter.
30813 Use destroy_window.
30814 (redraw_screen_rect): Restore viewport.
30815 Use 'render_target' and 'window'.
30816 Call 'repaint_callback'.
30817 (write_char): Use 'render_target'.
30818 (draw_cursor): Likewise.
30819 (scroll_up): Restore viewport.
30820 Use 'render_target' and 'window'.
30821 Call 'repaint_callback'.
30822 (grub_gfxterm_cls): Likewise.
30823 (grub_gfxterm_refresh): Use 'window'.
30824 (grub_gfxterm_set_repaint_callback): New function.
30825 (grub_gfxterm_background_image_cmd): Use 'window'.
30826 (grub_gfxterm_get_term): New function.
30827 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30828
308292010-02-06 Colin D Bennett <colin@gibibit.com>
30830
30831 Bitmap scaling support.
30832
30833 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30834 (bitmap_scale_mod_SOURCES): New variable.
30835 (bitmap_scale_mod_CFLAGS): Likewise.
30836 (bitmap_scale_mod_LDFLAGS): Likewise.
30837 * include/grub/bitmap_scale.h: New file.
30838 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30839 (background_image_cmd_options): New variable.
30840 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30841 (cmd): Rename and change type to ...
30842 (background_image_cmd_handle): ... this. All users updated.
30843 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30844 * video/bitmap_scale.c: New file.
30845
308462010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30847
30848 SDL support.
30849
30850 * Makefile.in (LIBSDL): New variable.
30851 (enable_grub_emu_sdl): Likewise.
30852 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30853 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30854 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30855 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30856 * util/sdl.c: New file.
30857
308582010-02-06 Colin D Bennett <colin@gibibit.com>
308592010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30860
30861 Double buffering support.
30862
30863 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30864 * include/grub/video.h: Update comment.
30865 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30866 New type.
30867 (grub_video_fb_doublebuf_blit_init): New prototype.
30868 * term/gfxterm.c (scroll_up): Support double buffering.
30869 (grub_gfxterm_refresh): Likewise.
30870 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30871 (grub_video_fb_doublebuf_blit_init): Likewise.
30872 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30873 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30874 'displayed_page', 'render_page' and 'update_screen'.
30875 (grub_video_vbe_fini): Free offscreen buffer.
30876 (doublebuf_pageflipping_commit): New function.
30877 (doublebuf_pageflipping_update_screen): Likewise.
30878 (doublebuf_pageflipping_init): Likewise.
30879 (double_buffering_init): Likewise.
30880 (grub_video_vbe_setup): Enable doublebuffering.
30881 (grub_video_vbe_swap_buffers): Implement.
30882 (grub_video_vbe_set_active_render_target): Handle double buffering.
30883 (grub_video_vbe_get_active_render_target): Likewise.
30884 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30885 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30886 (grub_video_vbe_enable_double_buffering): Likewise.
30887 (grub_video_vbe_swap_buffers): Use update_screen.
30888 (grub_video_set_mode): Use double buffering.
30889
308902010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30891
30892 * maintainance/gentrigtables.py: Remove.
30893 * lib/trig.c: Likewise.
30894
30895 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30896
30897 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30898 `trigtables.c'.
30899 (trigtables.c): New rule.
30900 (gentrigtables): Likewise.
30901 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30902
309032010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30904
30905 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30906 integer constants.
30907
309082010-02-06 Colin D Bennet <colin@gibibit.com>
30909
30910 Trigonometry support.
30911
30912 * include/grub/trig.h: New file.
30913 * lib/trig.c: Likewise.
30914 * maintainance/gentrigtables.py: Likewise.
30915 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30916 (trig_mod_SOURCES): New variable.
30917 (trig_mod_CFLAGS): Likewise.
30918 (trig_mod_LDFLAGS): Likewise.
30919
5562834e
VS
309202010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30921
30922 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30923 disk devices.
30924
4f8528fc
VS
309252010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30926
30927 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30928 error.
30929
2b4068e9
VS
309302010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30931
30932 * util/hostdisk.c (open_device): Don't use partition device when reading
30933 before the partition.
30934 (grub_util_biosdisk_read): Don't read from partition and before the
30935 partition in single operation.
30936 (grub_util_biosdisk_write): Don't write to partition and before the
30937 partition in single operation.
30938
399f6e4d
TL
309392010-02-03 Torsten Landschoff <torsten@debian.org>
30940
30941 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30942 last sectors.
30943
996649b0
VS
309442010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30945
30946 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30947 CDROM reads.
30948 (grub_biosdisk_write): Refuse to write to CDROM.
30949
3b205d4d
VS
309502010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30951
30952 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30953
61e89d9d
VS
309542010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30955
30956 * font/font.c (find_glyph): Check that bmp_idx is available before
30957 using it.
30958 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30959 with (font == NULL).
30960
bf7fcba2
CS
309612010-01-28 Christian Schmitt <chris@ilovelinux.de>
30962
30963 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30964
f45d2663
BC
309652010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30966
30967 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30968 * util/grub-script-check.c (getline): Fix empty lines case.
30969
ec1444e6
RM
309702010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30971
30972 * Makefile.in (check): Exit with fail status when one of the tests
30973 fails.
30974 * tests/example_functional_test.c (example_test): Fix reversed assert.
30975 * tests/example_unit_test.c (example_test): Likewise.
30976
2e1cb9bb
CW
309772010-01-28 Colin Watson <cjwatson@ubuntu.com>
30978
30979 * util/grub.d/10_linux.in: This script does not use any of the
30980 contents of gettext.sh, only the external command `gettext', so stop
30981 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30982 the same prefix as GRUB.)
30983 * util/grub.d/10_kfreebsd.in: Likewise.
30984
63533ab0
VS
309852010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30986
30987 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30988 of the line.
30989
989e1f93
VS
309902010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30991
30992 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30993 last sectors.
30994
e709ebe2
VS
309952010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30996
30997 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30998 having a 4KiB and not 32KiB buffer size.
30999
27dea7ed
RM
310002010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31001
31002 * util/hostfs.c: Include `<errno.h>'.
31003 (grub_hostfs_read): Handle errors from fseeko() and fread().
31004
67667b9c
RM
310052010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31006
31007 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
31008 loop when using read hooks on files whose size isn't sector-aligned.
31009
c294d9d8
RM
310102010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31011
31012 Remove unused parameter.
31013
31014 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
31015 (grub_iso9660_open): Remove initialization of `data->length'.
31016
af75a9f1
RM
310172010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31018
31019 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
31020 memleak conditions.
31021
254e2ce5 310222010-01-27 Carles Pina i Estany <carles@pina.cat>
31023
31024 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
31025 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
31026
b510928c 310272010-01-26 Carles Pina i Estany <carles@pina.cat>
31028
31029 * util/bin2h.c (usage): Fix warning (space after backslash).
31030
aa2f9dd2 310312010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 31032
31033 * font/font.c: Include `grub/fontformat.h.
31034 Remove font file format constants.
31035 (grub_font_load): Use the new macros.
31036 * include/grub/fontformat.h: New file.
31037 * util/grub-mkfont.c: Include `grub/fontformat.c'.
31038 (write_font_pf2): Use the new macros.
31039
94e7e712
RM
310402010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31041
31042 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
31043 does.
31044
3973a59a
RM
310452010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31046
31047 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
31048
31049 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
31050 (_start): Macroify `0x7F'.
31051
31052 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
31053 (make_install_device): Use "(pxe)" as fallback prefix when booting
31054 via PXE.
31055
42e0cba3
GS
310562010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
31057
31058 * configure.ac: Reset LIBS after check for libgcc symbols.
31059
847effd8
CW
310602010-01-25 Colin Watson <cjwatson@ubuntu.com>
31061
31062 * util/hostdisk.c (open_device): Add trailing newline to debug
31063 message.
31064
ea4a7e35
GS
310652010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
31066
31067 * configure.ac: Check for `limits.h'.
31068 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31069
67951a53
RM
310702010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31071
31072 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31073 capitalize error strings.
31074
c273d4ce
ST
310752010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31076
31077 * util/grub.d/10_hurd.in: Add a recovery mode.
31078
69be5b74
VS
310792010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31080
31081 * configure.ac: Check for libgcc symbols with -nostdlib.
31082
fc9e5810
BC
310832010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31084
31085 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31086
4b358c0a
VS
310872010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31088
31089 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31090 stack since heap may be unavailable at that point.
31091 (grub_ofconsole_gotoxy): Likewise.
31092
454fcd1c
VS
310932010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31094
31095 * configure.ac: Check for _restgpr_14_x.
31096 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31097 and _savegpr_* prototypes.
31098
566863ca
RM
310992010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31100
31101 Use generic grub_reboot() for i386-efi.
31102
31103 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31104 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31105 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31106
bf86e59a
VS
311072010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31108
31109 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31110 presence of "prefix" variable as it breaks when normal.mod is
31111 embedded.
31112
d645e0f8
VS
311132010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31114
31115 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31116 stack since heap is unavailable at that point.
31117
f9ab2e25
VS
311182010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31119
31120 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31121 (grub_freebsd_bootinfo): Rewritten.
31122 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31123
01fc7054
VS
311242010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31125
31126 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31127
caab4fd6
RM
311282010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31129
31130 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31131 domain now.
31132
67eb1427
FZ
311332010-01-20 Felix Zielcke <fzielcke@z-51.de>
31134
31135 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31136 around for handling "/" to the correct fix. Fix a memory leak. Use
31137 xstrdup instead of strdup.
31138
a9ed4ff3
VS
311392010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31140
31141 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31142
311432010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
31144
31145 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31146
31147 * font/font.c (struct grub_font): New member 'bmp_idx'.
31148 (font_init): Initialise 'bmp_idx'.
31149 (load_font_index): Fill 'bmp_idx'.
31150 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31151
48209f4f
VS
311522010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31153
31154 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31155 unnecessary calls.
31156
9f0a4bb7
VS
311572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31158
31159 Move context handling out of the kernel.
31160
31161 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31162 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31163 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31164 * conf/i386-efi.rmk: Likewise.
31165 * conf/i386-ieee1275.rmk: Likewise.
31166 * conf/i386-pc.rmk: Likewise.
31167 * conf/powerpc-ieee1275.rmk: Likewise.
31168 * conf/sparc64-ieee1275.rmk: Likewise.
31169 * conf/x86_64-efi.rmk: Likewise.
31170 * include/grub/env.h: Include grub/menu.h.
31171 (grub_env_var_type): Removed.
31172 (grub_env_var): Replaced field 'type' with 'global'.
31173 (grub_env_find): New prototype.
31174 (grub_env_context_open): Remove EXPORT_FUNC.
31175 (grub_env_context_close): Likewise.
31176 (grub_env_export): Likewise.
31177 (grub_env_set_data_slot): Removed.
31178 (grub_env_get_data_slot): Likewise.
31179 (grub_env_unset_data_slot): Likewise.
31180 (grub_env_unset_menu): New prototype.
31181 (grub_env_set_menu): Likewise.
31182 (grub_env_get_menu): Likewise.
31183 * include/grub/env_private.h: New file.
31184 * include/grub/normal.h (grub_context_init): New prototype.
31185 (grub_context_fini): Likewise.
31186 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31187 * normal/context.c (grub_cmd_export): ... to here.
31188 * kern/env.c: Include env_private.h.
31189 (HASHSZ): Moved to include/grub/env_private.h.
31190 (grub_env_context): Likewise.
31191 (grub_env_sorted_var): Likewise.
31192 (current_context): Renamed from this ...
31193 (grub_current_context): ...to this. 'static' removed. All users updated.
31194 (grub_env_find): Removed 'static'.
31195 (grub_env_context_open): Moved to normal/context.c.
31196 (grub_env_context_close): Likewise.
31197 (grub_env_export): Likewise.
31198 (mangle_data_slot_name): Removed.
31199 (grub_env_set_data_slot): Likewise.
31200 (grub_env_get_data_slot): Likewise.
31201 (grub_env_unset_data_slot): Likewise.
31202 * kern/main.c (grub_set_root_dev): Don't export root.
31203 It will be done later.
31204 (grub_main): Don't export prefix.
31205 It will be done later.
31206 * normal/context.c: New file.
31207 * normal/main.c (free_menu): Use grub_env_unset_menu.
31208 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31209 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31210 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31211 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31212
8dd35b8c
VS
312132010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31214
31215 setpci support.
31216
31217 * commands/setpci.c: New file.
31218 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31219 (setpci_mod_SOURCES): New variable.
31220 (setpci_mod_CFLAGS): Likewise.
31221 (setpci_mod_LDFLAGS): Likewise.
31222
449193d5
VS
312232010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31224
31225 Byte-addressable PCI configuration space.
31226
31227 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31228 dword address.
31229 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31230 GRUB_PCI_REG_CACHELINE.
31231 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31232 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31233 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31234 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31235 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31236 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31237 grub_pci_make_address.
31238 (lock_rom_area): Likewise.
31239 * commands/lspci.c (grub_lspci_iter): Use macroses
31240 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31241 of grub_pci_make_address.
31242 * disk/ata.c (grub_ata_pciinit): Likewise.
31243 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31244 (GRUB_PCI_REG_VENDOR): Likewise.
31245 (GRUB_PCI_REG_DEVICE): Likewise.
31246 (GRUB_PCI_REG_COMMAND): Likewise.
31247 (GRUB_PCI_REG_STATUS): Likewise.
31248 (GRUB_PCI_REG_REVISION): Likewise.
31249 (GRUB_PCI_REG_CLASS): Likewise.
31250 (GRUB_PCI_REG_CACHELINE): Likewise.
31251 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31252 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31253 (GRUB_PCI_REG_BIST): Likewise.
31254 (GRUB_PCI_REG_ADDRESSES): Likewise.
31255 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31256 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31257 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31258 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31259 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31260 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31261 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31262 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31263 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31264 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31265 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31266 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31267 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31268 (GRUB_PCI_REG_MIN_GNT): Likewise.
31269 (GRUB_PCI_REG_MAX_LAT): Likewise.
31270 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31271 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31272 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 31273 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
31274 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31275 space.
31276
96d73208
RM
312772010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31278
31279 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31280 can be reliably determined to be supported.
31281
d4484482
RM
312822010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31283
31284 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31285 that VESA is supported.
31286 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31287 supported.
31288
00308ecf
VS
312892010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31290
31291 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31292
f66924a4
RM
312932010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31294
31295 * util/misc.c (make_system_path_relative_to_its_root): Work around
31296 special-casing of "/", as previous incarnation of this routine did.
31297
cbca0ada
VS
312982010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31299
31300 Fix any-emu compilation.
31301
31302 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31303 * grub_bin2h_SOURCES: New variable.
31304
34a66d99
RM
313052010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31306
31307 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31308
94fabf58
RM
313092010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31310
31311 * util/grub.d/00_header.in: Fix handling of locale_dir.
31312
02cf98ca
VS
313132010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31314
31315 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31316 as possible unifont location (Gentoo).
31317 Reported by: Alexander Brüning
31318
327dbcd7
VS
313192010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31320
31321 Don't try to generate lists for kernel.img.
31322
31323 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31324 (pkglib_MODULES): Remove kernel.img.
31325 (kernel_img_EXPORTS): Removed.
31326 (kernel_img_RELOCATABLE): New variable.
31327 * conf/x86_64-efi.rmk: Likewise.
31328 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31329
ca467290
VS
313302010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31331
31332 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31333 grub_xasprintf or grub_snprintf.
31334 (grub_vsprintf): Likewise.
31335 (grub_snprintf): New proto.
31336 (grub_vsnprintf): Likewise.
31337 (grub_xasprintf): Likewise.
31338 (grub_xvasprintf): Likewise.
31339 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31340 (grub_sprintf): Removed.
31341 (grub_vsnprintf): New function.
31342 (grub_snprintf): Likewise.
31343 (grub_xvasprintf): Likewise.
31344 (grub_xasprintf): Likewise.
31345 (grub_vsprintf): Renamed to ...
31346 (grub_vsnprintf_real): ...this. New argument max_len.
31347
aca655fd
BC
313482010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31349
31350 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31351 fix grub-script-check warning.
31352
7ee92c32
VS
313532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31354
31355 * include/grub/font.h (grub_font_load): Fix prototype.
31356
f80927ca
VS
313572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31358
31359 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31360
119c50ea
VS
313612010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31362
31363 * include/grub/x86_64/at_keyboard.h: New file.
31364
47d5f3c1
VS
313652010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31366
31367 * loader/mips/linux.c: Include missing grub/i18n.h.
31368
55ff5266
RM
313692009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31370
31371 * normal/menu.c (notify_execution_failure): Clarify error message.
31372
c893cc87
RM
313732009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31374
31375 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31376 return value (and revert all return statements). Update users.
31377
917dd370
CW
313782010-01-20 Dan Merillat <debian@dan.merillat.org>
31379
31380 * kern/device.c (grub_device_iterate): Allocate new part_ent
31381 structure based on sizeof (*p) rather than sizeof (p->next), to
31382 account for structure padding.
31383
31384 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31385 disk is NULL, which might happen for LVM physical volumes with no
31386 LVM signature.
31387
d4a4ee57
RM
313882009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31389
31390 * loader/mips/linux.c (grub_cmd_initrd)
31391 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31392
313932009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31394
31395 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31396 (grub_video_video_init, grub_video_bitmap_init)
31397 (grub_font_manager_init, grub_term_gfxterm_init)
31398 (grub_at_keyboard_init): New extern declarations.
31399 (grub_machine_init): Initialize gfxterm and at_keyboard.
31400
31401 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31402
31403 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31404 `gfxterm.mod' into core image.
31405
31406 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31407 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31408 (kernel_img_FORMAT): Copy to ...
31409
31410 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31411 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31412 (kernel_img_FORMAT): ... here, and ...
31413
31414 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31415 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31416 (kernel_img_FORMAT): ... here.
31417
31418 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31419 and input (at_keyboard) terminals in kernel.
31420 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31421
31422 (pkglib_MODULES): Remove `pci.mod'.
31423 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31424 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31425 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31426 (at_keyboard_mod_LDFLAGS): Remove variables.
31427
314282010-01-11 Felix Zielcke <fzielcke@z-51.de>
31429
31430 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31431
314322009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31433
31434 * include/grub/mips/libgcc.h: Only export symbols for functions
31435 that libgcc provides.
31436
314372009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31438
31439 MIPS support.
31440
31441 * bus/bonito.c: New file.
31442 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31443 GRUB_PCI_NUM_DEVICES.
31444 * term/i386/pc/serial.c: Move to ...
31445 * term/serial.c: ... here. All users updated.
31446 * util/i386/pc/grub-mkimage.c: Move to ...
31447 * util/grub-mkrawimage.c: ... here. All users updated.
31448 * term/i386/pc/at_keyboard.c: Move to ...
31449 * term/at_keyboard.c: ... here. All users updated.
31450 * conf/mips-qemu-mips.rmk: New file.
31451 * conf/mips-yeeloong.rmk: Likewise.
31452 * conf/mips.rmk: Likewise.
31453 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31454 mipsel-qemu-mips.
31455 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31456 to port addresses.
31457 (grub_ata_pciinit): Support CS5536.
31458 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31459 * font/font_cmd.c (loadfont_command): Open file before passing it to
31460 grub_font_load.
31461 (pseudo_file_read): New function.
31462 (pseudo_file_close): Likewise.
31463 (pseudo_fs): New structure.
31464 (load_font_module): New function.
31465 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31466 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31467 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31468 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31469 * include/grub/i386/at_keyboard.h: Split into ...
31470 * include/grub/at_keyboard.h: ... this ...
31471 * include/grub/i386/at_keyboard.h: ... and this.
31472 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31473 New prototype.
31474 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31475 updated.
31476 (grub_elf64_size): Likewise.
31477 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31478 filename.
31479 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31480 * include/grub/i386/coreboot/serial.h: Rewritten.
31481 * include/grub/i386/ieee1275/serial.h: Include
31482 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31483 * include/grub/i386/pc/serial.h: Moved from here ...
31484 * include/grub/serial.h: ... to here. All users updated.
31485 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31486 (GRUB_PCI_NUM_BUS): Likewise.
31487 (GRUB_PCI_NUM_DEVICES): Likewise.
31488 (grub_pci_device_map_range): Add missing volatile keyword.
31489 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31490 * include/grub/mips/at_keyboard.h: New file.
31491 * include/grub/mips/cache.h: Likewise.
31492 * include/grub/mips/io.h: Likewise.
31493 * include/grub/mips/kernel.h: Likewise.
31494 * include/grub/mips/libgcc.h: Likewise.
31495 * include/grub/mips/pci.h: Likewise.
31496 * include/grub/mips/qemu-mips/boot.h: Likewise.
31497 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31498 * include/grub/mips/qemu-mips/loader.h: Likewise.
31499 * include/grub/mips/qemu-mips/memory.h: Likewise.
31500 * include/grub/mips/qemu-mips/serial.h: Likewise.
31501 * include/grub/mips/qemu-mips/time.h: Likewise.
31502 * include/grub/mips/relocator.h: Likewise.
31503 * include/grub/mips/time.h: Likewise.
31504 * include/grub/mips/types.h: Likewise.
31505 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31506 * include/grub/mips/yeeloong/boot.h: Likewise.
31507 * include/grub/mips/yeeloong/kernel.h: Likewise.
31508 * include/grub/mips/yeeloong/loader.h: Likewise.
31509 * include/grub/mips/yeeloong/memory.h: Likewise.
31510 * include/grub/mips/yeeloong/pci.h: Likewise.
31511 * include/grub/mips/yeeloong/serial.h: Likewise.
31512 * include/grub/mips/yeeloong/time.h: Likewise.
31513 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31514 * kern/elf.c (grub_elf32_size): New parameter. All users
31515 updated.
31516 (grub_elf64_size): Likewise.
31517 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31518 Load modules before saying "Welcome to GRUB!".
31519 Call grub_refresh after saying "Welcome to GRUB!".
31520 * kern/mips/cache.S: New file.
31521 * kern/mips/cache_flush.S: Likewise.
31522 * kern/mips/dl.c: Likewise.
31523 * kern/mips/init.c: Likewise.
31524 * kern/mips/qemu-mips/init.c: Likewise.
31525 * kern/mips/startup.S: Likewise.
31526 * kern/mips/yeeloong/init.c: Likewise.
31527 * kern/term.c (grub_putcode): Handle NULL terminal.
31528 (grub_getcharwidth): Likewise.
31529 (grub_getkey): Likewise.
31530 (grub_checkkey): Likewise.
31531 (grub_getkeystatus): Likewise.
31532 (grub_getxy): Likewise.
31533 (grub_getwh): Likewise.
31534 (grub_gotoxy): Likewise.
31535 (grub_cls): Likewise.
31536 (grub_setcolorstate): Likewise.
31537 (grub_setcolor): Likewise.
31538 (grub_getcolor): Likewise.
31539 (grub_refresh): Likewise.
31540 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31541 (write_jump): Add hatch nop.
31542 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31543 * lib/mips/setjmp.S: New file.
31544 * loader/mips/linux.c: Likewise.
31545 * term/i386/pc/at_keyboard.c: Move from here ...
31546 * term/at_keyboard.c: ... to here.
31547 * term/i386/pc/serial.c: Moved from here ...
31548 * term/serial.c: ... to here. All users updated.
31549 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31550 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31551 (serial_translate_key_sequence): Avoid deadlock.
31552 (grub_serial_getkey): Handle backspace.
31553 (grub_serial_putchar): Fix newline handling.
31554 * util/i386/pc/grub-mkimage.c: Move from here ...
31555 * util/grub-mkrawimage.c: ... to here. All users updated.
31556 (generate_image): New parameters 'font_path' and 'format'.
31557 Support embedding font.
31558 Use grub_host_to_target* instead of grub_cpu_to_le*.
31559 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31560 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31561 (options): New option "--font".
31562 (usage): Likewise.
31563 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31564 (main): Handle "--font".
31565 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31566 (grub_virtual_screen_setup): Set bg_color_display.
31567 (redraw_screen_rect): Use bg_color_display instead of incorrect
31568 bg_color.
31569 (grub_gfxterm_cls): Likewise.
31570 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31571 Support embedding config file.
31572 (add_segments): Likewise.
31573 (options): New option "--config".
31574 (main): Handle "--config".
31575 * video/sm712.c: New file.
31576
25c2b5b3
RM
315772010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31578
31579 Fix parallel builds.
31580
31581 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31582 font.c depend on ascii.h).
31583
315842010-01-12 Carles Pina i Estany <carles@pina.cat>
31585
31586 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31587
315882010-01-11 Carles Pina i Estany <carles@pina.cat>
31589
31590 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31591 By default: disabled.
31592 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31593 parameter.
31594
315952010-01-10 Carles Pina i Estany <carles@pina.cat>
31596
31597 * font/font.c: Update copyright years.
31598 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31599
316002010-01-10 Carles Pina i Estany <carles@pina.cat>
31601
31602 * font/font.c: Include `ascii.h'.
31603 (ASCII_BITMAP_SIZE): New macro.
31604 (ascii_font_glyph): Define.
31605 (ascii_glyph_lookup): New function.
31606 (grub_font_get_string_width): Change comment. If glyph not found, use
31607 ascii_glyph_lookup.
31608 (grub_font_get_glyph_with_fallback): If glyph not available returns
31609 ascii_glyph_lookup.
31610 * util/grub-mkfont.c (file_formats): New enum.
31611 (options): Add `ascii-bitmaps' new option.
31612 (usage): Add `asii-bitmaps' new option.
31613 (write_font_ascii_bitmap): New function.
31614 (write_font): Rename to ...
31615 (write_font_p2): ... this. Remove print_glyphs call.
31616 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31617 used. Call print_glyphs.
31618 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31619
316202010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31621
31622 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31623 (grub_bin2h_SOURCES): New variable.
31624 * util/bin2h.c: New file.
31625
915fc1b8
VS
316262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31627
31628 * include/multiboot.h: Resynced with spec.
31629 * include/multiboot2.h: Likewise.
31630 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31631 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31632
9444b678
RM
316332010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31634
31635 * include/grub/term.h (grub_term_register_input,
31636 grub_term_register_output): Check return of terminal init()
31637 routines, and abort if errors are raised.
31638
31639 * commands/terminal.c: Update copyright year.
31640
cba98e8d
RM
316412010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31642
31643 * commands/terminal.c (grub_cmd_terminal_input)
31644 (grub_cmd_terminal_output): Check return of terminal init()
31645 routines, and abort if errors are raised.
31646
6f7db5d6
VS
316472010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31648
31649 * include/grub/i386/bsd.h: Fix include pathes.
31650
262bff8d
VS
316512010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31652
31653 Add missing *BSD copyright headers.
31654
31655 * include/grub/aout.h: Add BSD licence.
31656 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31657 * include/grub/i386/freebsd_linker.h: ... here,
31658 * include/grub/i386/freebsd_reboot.h: ... here,
31659 * include/grub/i386/netbsd_bootinfo.h: ... here,
31660 * include/grub/i386/netbsd_reboot.h: ... here,
31661 * include/grub/i386/openbsd_bootarg.h: ... here,
31662 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31663 licence to each file.
31664
b2cab848
RM
316652010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31666
31667 * acinclude.m4: Remove `nop' assembly instruction; it's not
31668 implemented by all architectures.
31669
2cb6be4b
RM
316702010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31671
31672 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31673 ELILO. This is no longer necessary.
31674
a2eaee15
BC
316752010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31676
31677 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31678
31679 * util/grub-script-check.c: grub-script-check tool.
31680 * conf/common.rmk: Make rules for grub-script-check.
31681
88d17012
RM
316822010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31683
31684 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31685 spotting it back in 2008. Shame on me for forgetting he did.
31686
31687 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31688
8040619d
RM
316892010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31690
31691 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31692 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31693 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31694 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31695 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31696 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31697
a0c2a0f6
RM
316982010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31699
31700 * include/grub/test.h: Add license header.
31701 * tests/example_functional_test.c: Likewise.
31702 * tests/example_unit_test.c: Likewise.
31703 * tests/lib/functional_test.c: Likewise.
31704 * tests/lib/test.c: Likewise.
31705 * tests/lib/unit_test.c: Likewise.
31706
b0b13907
VS
317072010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31708
31709 Use flag-based instead of hook-based video mode selection and "auto"
31710 keyword.
31711
31712 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31713 (grub_video_set_mode): Changed prototype. All users updated.
31714 (grub_video_check_mode_flag): New inline function.
31715 * video/video.c (parse_modespec): New function.
31716 (grub_video_set_mode): Parse flags and keywords.
31717
ea379330 317182010-01-17 Carles Pina i Estany <carles@pina.cat>
31719
31720 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31721 fprintf call.
31722
e15c215e
FZ
317232010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31724
31725 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31726
409ae1c9 317272010-01-16 Carles Pina i Estany <carles@pina.cat>
31728
31729 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31730 string.
31731 * util/grub-emu.c (usage): Likewise.
31732 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31733 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31734 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31735 * util/i386/pc/grub-setup.c (usage): Likewise.
31736
70a14d3d 317372010-01-16 Carles Pina i Estany <carles@pina.cat>
31738
31739 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31740 the message.
31741 (grub_util_info): Likewise.
31742 (grub_util_error): Likewise.
31743 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31744 and/or new lines in `grub_util_warna', `grub_util_info',
31745 `grub_util_error' calls.
31746 * util/getroot.c: Likewise.
31747 * util/grub-editenv.c: Likewise.
31748 * util/grub-emu.c: Likewise.
31749 * util/grub-fstest.c: Likewise.
31750 * util/grub-mkdevicemap.c: Likewise.
31751 * util/grub-mkfont.c: Likewise.
31752 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31753 * util/grub-mkrelpath.c: Likewise.
31754 * util/grub-pe2elf.c: Likewise.
31755 * util/grub-probe.c: Likewise.
31756 * util/hostdisk.c: Likewise.
31757 * util/i386/efi/grub-mkimage.c: Likewise.
31758 * util/i386/pc/grub-mkimage.c: Likewise.
31759 * util/i386/pc/grub-setup.c: Likewise.
31760 * util/ieee1275/ofpath.c: Likewise.
31761 * util/mkisofs/eltorito.c: Likewise.
31762 * util/mkisofs/rock.c: Likewise.
31763 * util/mkisofs/write.c: Likewise.
31764 * util/raid.c: Likewise.
31765 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31766 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31767
a0b766fc
VS
317682010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31769
31770 Enable multiboot on non-pc.
31771
31772 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31773 multiboot.mod and multiboot2.mod to ...
31774 * conf/i386.rmk (pkglib_MODULES): ... here.
31775 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31776 Moved to ...
31777 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31778 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31779 Moved to ...
31780 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31781 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31782 Moved to ...
31783 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31784 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31785 Moved to ...
31786 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31787 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31788 relocator.mod.
31789 (ata_mod_SOURCES): Removed.
31790 (ata_mod_CFLAGS): Likewise.
31791 (ata_mod_LDFLAGS): Likewise.
31792 (relocator_mod_SOURCES): Removed.
31793 (relocator_mod_CFLAGS): Likewise.
31794 (relocator_mod_ASFLAGS): Likewise.
31795 (relocator_mod_LDFLAGS): Likewise.
31796 Include i386.mk.
31797 * include/grub/x86_64/multiboot.h: New file.
31798 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31799 Terminate EFI.
31800
884ade56
VS
318012010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31802
31803 Video multiboot support.
31804
31805 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31806 New prototype.
31807 * include/multiboot.h: Resynced with multiboot specification.
31808 * include/multiboot2.h: Likewise.
31809 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31810 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31811 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31812 (HAS_VGA_TEXT): Likewise.
31813 (accepts_video): New variable.
31814 (grub_multiboot_set_accepts_video): New function.
31815 (grub_multiboot_get_mbi_size): Account for video structures.
31816 (set_video_mode): New function.
31817 (retrieve_video_parameters): Likewise.
31818 (grub_multiboot_make_mbi): Fill video fields.
31819
0d90e8a6
VS
318202010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31821
31822 Video driver ids.
31823
31824 * include/grub/video.h (grub_video_driver_id): New type.
31825 (grub_video_adapter): New member 'id'. All users updated.
31826 (grub_video_get_driver_id): New proto.
31827 * video/video.c (grub_video_get_driver_id): New function.
31828
5c71db1b 318292010-01-14 Carles Pina i Estany <carles@pina.cat>
31830
31831 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31832 `var=val'.
31833
cca15b52 318342010-01-14 Carles Pina i Estany <carles@pina.cat>
31835
31836 * normal/cmdline.c (print_completion): Gettextizze.
31837
c586fbb2 318382001-01-14 Carles Pina i Estany <carles@pina.cat>
31839
31840 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31841
ba2f6848 318422010-01-14 Carles Pina i Estany <carles@pina.cat>
31843
31844 * gettext/gettext.c (grub_gettext_translate): Push and pop
31845 grub_errno.
31846 (grub_gettext_delete_list): Change comment style.
31847 * kern/err.c (grub_error): Gettextizze.
31848 (grub_fatal): Gettextizze.
31849
0a46429a
RM
318502010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31851
31852 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31853 (grub_linux16_real_boot): ... this.
31854 * kern/i386/loader.S: Likewise.
31855 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31856 (grub_linux16_boot): New function. Switches to text mode and calls
31857 grub_linux16_real_boot().
31858
31859 * loader/i386/bsd.c: Include `<grub/video.h>'.
31860 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31861 text mode before calling grub_unix_real_boot().
31862
31863 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31864 (grub_multiboot_boot): Switch to text mode before calling
31865 grub_relocator32_boot().
31866
31867 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31868 (grub_chainloader_boot): Switch to text mode before calling
31869 grub_chainloader_real_boot().
31870
d6f93a66
RM
318712010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
318722010-01-05 Colin Watson <cjwatson@ubuntu.com>
31873
31874 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31875 non-empty value.
31876
318772010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
318782010-01-05 Colin Watson <cjwatson@ubuntu.com>
31879
31880 * util/grub.d/00_header.in: Define a "savedefault" function for use
31881 in menu entries.
31882 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31883
318842010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
318852010-01-05 Colin Watson <cjwatson@ubuntu.com>
31886
31887 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31888 saved_entry if boot_once is unset.
31889 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31890 previous saved entry (i.e. grub-reboot).
31891
318922009-12-08 Colin Watson <cjwatson@ubuntu.com>
31893
31894 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31895
318962009-12-08 Colin Watson <cjwatson@ubuntu.com>
31897
31898 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31899 `var=val'.
31900 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31901
319022009-12-08 Colin Watson <cjwatson@ubuntu.com>
31903
31904 * util/grub-reboot.in: Fix --version output.
31905 * util/grub-set-default.in: Likewise.
31906
319072009-12-08 Colin Watson <cjwatson@ubuntu.com>
31908
31909 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31910 blocks.
31911
319122009-12-08 Colin Watson <cjwatson@ubuntu.com>
31913
31914 * util/grub.d/00_header.in: Quote the value assigned to `default',
31915 in case it contains spaces.
31916
319172009-12-08 Colin Watson <cjwatson@ubuntu.com>
31918
31919 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31920 `save_default_entry' call from the macosx case to the linux case.
31921
319222009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
319232009-10-25 Colin Watson <cjwatson@ubuntu.com>
31924
31925 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31926 in `chosen' environment variable.
31927 * normal/menu_text.c (get_entry_number): Check if the variable
31928 matches the title of a menu entry.
31929 (run_menu): Pass menu to get_entry_number.
31930
31931 * util/grub-reboot.in: New file.
31932 * util/grub-set-default.in: New file.
31933 * conf/common.rmk (grub-reboot): New utility.
31934 (grub-set-default): New utility.
31935
31936 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31937 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31938 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31939 move it to `saved_entry' for the next boot. Load environment on
31940 initialisation.
31941 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31942 * util/grub.d/10_hurd.in: Likewise.
31943 * util/grub.d/10_linux.in (linux_entry): Likewise.
31944 * util/grub.d/10_windows.in: Likewise.
31945 * util/grub.d/30_os-prober.in: Likewise.
31946
31947 * util/grub-install.in: Create environment block.
31948 * util/i386/efi/grub-install.in: Likewise.
31949 * util/ieee1275/grub-install.in: Likewise.
31950 * util/sparc64/ieee1275/grub-install.in: Likewise.
31951
0934d184
BC
319522010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31953
31954 Unit testing framework for GRUB.
31955
31956 * Makefile.in: Test framework build rules for 'make check'.
31957 * conf/tests.rmk: Build rules for individual tests and framework.
31958
31959 * include/grub/test.h: Header file for whitebox tests.
31960 * tests/lib/functional_test.c: Framework support for whitebox
31961 functional tests.
31962 * tests/lib/test.c: Common whitebox testing code for unit and
31963 functional tests.
31964 * tests/lib/unit_test.c: Framework support for whitebox unit
31965 tests.
31966
31967 * tests/util/grub-shell-tester.in: Support utility for grub-script
31968 tests.
31969 * tests/util/grub-shell.in: Utility to execute grub-script
31970 commands in a Qemu instance.
31971
31972 * tests/example_functional_test.c: Example whitebox functional
31973 test.
31974 * tests/example_grub_script_test.in: Example grub-script test.
31975 * tests/example_scripted_test.in: Example scripted test.
31976 * tests/example_unit_test.c: Example whitebox unit test.
31977
9c4ffeeb
VS
319782010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31979
31980 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31981 Add loader/i386/multiboot_mbi.c.
31982 (multiboot2_mod_SOURCES): Likewise.
31983 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31984 (multiboot2_mod_SOURCES): Likewise.
31985 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31986 (grub_multiboot_make_mbi): Likewise.
31987 (grub_multiboot_free_mbi): Likewise.
31988 (grub_multiboot_init_mbi): Likewise.
31989 (grub_multiboot_add_module): Likewise.
31990 (grub_multiboot_set_bootdev): Likewise.
31991 * loader/i386/multiboot.c (mbi): Removed.
31992 (mbi_dest): Likewise.
31993 (alloc_mbi): New variable.
31994 (grub_multiboot_payload_size): Removed. All users updated.
31995 (grub_multiboot_pure_size): New variable.
31996 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31997 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31998 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31999 (grub_fill_multiboot_mmap): Likewise.
32000 (grub_multiboot_get_bootdev): Likewise.
32001 (grub_multiboot): Use multiboot_mbi functions.
32002 * loader/i386/multiboot_mbi.c: New file.
32003
17383dfe
VS
320042010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32005
32006 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
32007 it would result in module crash.
32008
c1f28820
VS
320092010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32010
32011 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
32012 (grub_ofconsole_getwh): Split to ...
32013 (grub_ofconsole_getwh): ... this.
32014 (grub_ofconsole_dimensions): ...and this.
32015 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
32016
58655a16
RM
320172010-01-13 Robert Millan <rmh.grub@aybabtu.com>
32018
32019 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
32020
10891398
VS
320212010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32022
32023 * loader/i386/pc/multiboot2.c: Removed stalled file.
32024
0b8a223c
VS
320252010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32026
32027 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
32028 Reported by: Grégoire Sutre
32029
92ab12b0
RM
320302010-01-11 Robert Millan <rmh.grub@aybabtu.com>
32031
32032 * util/misc.c (canonicalize_file_name): New function.
32033 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
32034 instead of realpath().
32035
a788afb6
CW
320362010-01-11 Colin Watson <cjwatson@ubuntu.com>
32037
32038 * util/grub-install.in (usage): Clarify meaning of --root-directory,
32039 and make it clearer that it's optional. Based on confusion
32040 witnessed on IRC.
32041
ffa8e3d2
VS
320422010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32043
32044 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
32045 in premature implicit newline.
32046
e9060a9d
VS
320472010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32048
32049 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
32050 which resulted in garbled command line at the end of screen.
32051
f0d0c0b7
RM
320522010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32053
32054 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
32055 initialization with similar approach as with other Linux loaders.
32056
0e60bae7
RM
320572010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32058
32059 Fix i386-ieee1275 build.
32060
32061 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
32062 and grub_term_height() for video_{width,height} initialization.
32063
320642010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
32065
32066 Fix grub-emu build.
32067
32068 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32069
cdb3f378
RM
320702010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
320712010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32072
32073 Support for multiple terminals.
32074
32075 * Makefile.in (pkglib_DATA): terminal.lst.
32076 (terminal.lst): New target.
32077 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32078 (GRUB_MOD_INIT(handler)): Likewise.
32079 (GRUB_MOD_FINI(handler)): Likewise.
32080 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32081 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32082 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32083 (grub_cmd_sleep): Use grub_term_save_pos.
32084 * commands/terminal.c: New file.
32085 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32086 commands/terminal.c and lib/charset.c.
32087 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32088 (pkglib_MODULES): Add terminal.mod.
32089 (terminal_mod_SOURCES): New variable.
32090 (terminal_mod_CFLAGS): Likewise.
32091 (terminal_mod_LDFLAGS): Likewise.
32092 * genhandlerlist.sh: Don't handle terminals.
32093 * genmk.rb: Generate terminal-*.lst.
32094 * genterminallist.sh: New file.
32095 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32096 (grub_is_valid_utf8): Likewise.
32097 (grub_utf8_to_ucs4_alloc): Likewise.
32098 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32099 (grub_menu_register_viewer): Changed argument.
32100 (grub_menu_try_text): New proto.
32101 (grub_gfxmenu_try_hook): New declaration.
32102 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32103 (grub_menu_init_page): Additional argument term.
32104 (grub_normal_init_page): Likewise.
32105 (grub_cmdline_get): Arguments simplified.
32106 (grub_utf8_to_ucs4_alloc): Removed.
32107 (grub_print_ucs4): Additional argument term.
32108 (grub_getstringwidth): Likewise.
32109 (grub_print_message_indented): Likewise.
32110 (grub_menu_text_register_instances): New proto.
32111 (grub_show_menu): Likewise.
32112 (read_terminal_list): Likewise.
32113 (grub_set_more): Likewise.
32114 * include/grub/parser.h: Include handler.h.
32115 * include/grub/reader.h: Rewritten.
32116 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32117 (GRUB_TERM_WIDTH): Changed to function.
32118 (GRUB_TERM_HEIGHT): Likewise.
32119 (GRUB_TERM_BORDER_WIDTH): Likewise.
32120 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32121 (GRUB_TERM_NUM_ENTRIES): Likewise.
32122 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32123 (GRUB_TERM_CURSOR_X): Likewise.
32124 (grub_term_input_class): Likewise.
32125 (grub_term_output_class): Likewise.
32126 (grub_term_outputs_disabled): New declaration.
32127 (grub_term_inputs_disabled): Likewise.
32128 (grub_term_outputs): Likewise.
32129 (grub_term_inputs): Likewise.
32130 (grub_term_register_input): Rewritten.
32131 (grub_term_register_output): Likewise.
32132 (grub_term_unregister_input): Likewise.
32133 (grub_term_unregister_output): Likewise.
32134 (FOR_ACTIVE_TERM_INPUTS): New macro.
32135 (FOR_DISABLED_TERM_INPUTS): Likewise.
32136 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32137 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32138 * include/grub/terminfo.h: Add oterm argument to all protypes.
32139 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32140 Use grub_rescue_run.
32141 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32142 All users updated.
32143 * kern/reader.c: Removed. All users updated.
32144 * kern/rescue_reader.c (grub_rescue_init): Removed.
32145 (grub_rescue_reader): Likewise.
32146 (grub_register_rescue_reader): Likewise.
32147 (grub_rescue_run): New function based on kern/reader.c.
32148 * kern/term.c: Adapted for multiterm.
32149 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32150 (grub_is_valid_utf8): Likewise.
32151 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32152 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32153 right terminal.
32154 * loader/i386/linux.c (grub_linux_boot): Likewise.
32155 * normal/auth.c (grub_username_get): New function.
32156 (grub_auth_check_authentication): Use grub_username_get.
32157 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32158 * normal/color.c: Adapt for multiterm.
32159 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32160 (grub_normal_init_page): Additional argument term.
32161 (read_lists): Call read_terminal_lists.
32162 (grub_enter_normal_mode): Call grub_cmdline_run.
32163 Handle grub_normal_exit_level.
32164 (grub_cmd_normal): Make reentrant.
32165 (grub_cmd_normal_exit): New function.
32166 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32167 * normal/menu.c: Adapt for multiterm.
32168 * normal/menu_entry.c: Likewise.
32169 * normal/menu_text.c: Likewise.
32170 * normal/menu_viewer.c: Removed. All users updated.
32171 * normal/term.c: New file.
32172 * util/console.c: Change order of includes to workaround a bug in
32173 ncurses headers.
32174 * term/terminfo.c: New argument oterm on all exported functions.
32175 All users updated.
32176 * util/grub-editenv.c (grub_term_input_class): Removed.
32177 (grub_term_output_class): Likewise.
32178
1a064917
RM
321792010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32180
32181 Make loader output a bit more user-friendly.
32182
32183 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32184 is being loaded. Likewise for the Hurd.
32185
32186 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32187 that kernel of FreeBSD ${version} is being loaded.
32188
32189 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32190 grub_dprintf().
32191 (grub_cmd_initrd): Likewise.
32192 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32193 that Linux ${version} is being loaded. Likewise for initrd.
32194
5ce0a83a 321952010-01-09 Carles Pina i Estany <carles@pina.cat>
32196
32197 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32198
809bbfeb 321992010-01-08 Carles Pina i Estany <carles@pina.cat>
32200
32201 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32202 (GRUB_MOD_INIT): Gettextizze.
32203 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32204 (GRUB_MOD_INIT): Gettextizze.
32205 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32206 (grub_cmd_linux): Capitalise Linux.
32207 (GRUB_MOD_INIT): Gettextizze.
32208 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32209 (grub_cmd_linux): Capitalise Linux.
32210 (GRUB_MOD_INIT): Gettextizze.
32211 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32212 (grub_cmd_linux): Capitalise Linux.
32213 (GRUB_MOD_INIT): Gettextizze.
32214 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32215 (GRUB_MOD_INIT): Gettextizze.
32216 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32217 (grub_cmd_linux): Capitalise Linux.
32218 (GRUB_MOD_INIT): Gettextizze.
32219 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32220 (grub_cpu_xnu_init): Gettextizze.
32221 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32222 (GRUB_MOD_INIT): Gettextizze.
32223 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32224 (GRUB_MOD_INIT): Gettextizze.
32225 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32226 (grub_linux_load64): Capitalise Linux.
32227 (GRUB_MOD_INIT): Gettextizze.
32228 * loader/xnu.c: Include `<grub/i18n.h>'.
32229 (GRUB_MOD_INIT): Gettextizze.
32230 * po/POTFILES: Add `loader/efi/appleloader.c',
32231 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32232 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32233 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32234 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32235 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32236 and `loader/xnu.c'.
32237
b394b2ca
RM
322382010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32239
32240 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32241
322422010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
32243
32244 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32245 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32246 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32247
bc8b32b3
RM
322482010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32249
32250 Reset Multiboot 2 support. New loader implements the draft in
32251 /branches/multiboot2 and shares as much code as possible with the
32252 production Multiboot 1 implementation.
32253
32254 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32255 * loader/multiboot2.c: Likewise.
32256 * loader/i386/multiboot_helper.S: Likewise.
32257 * include/multiboot2.h: Replace with latest version from the draft
32258 in /branches/multiboot2.
32259
32260 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32261 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32262 and `loader/multiboot2.c'.
32263 (pkglib_MODULES): Add `multiboot2.mod'.
32264 (multiboot2_mod_SOURCES): New variable.
32265 (multiboot2_mod_LDFLAGS): Likewise.
32266 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32267
32268 * conf/i386-pc.rmk: Likewise.
32269
32270 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32271 (multiboot_mod_SOURCES): Remove variable.
32272 (multiboot_mod_LDFLAGS): Likewise.
32273 (multiboot_mod_CFLAGS): Likewise.
32274
32275 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32276 `<multiboot2.h>' instead of `<multiboot.h>'.
32277 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32278 (MULTIBOOT_HEADER_MAGIC): New macros.
32279
32280 * loader/multiboot_loader.c (module_version_status): Remove variable.
32281 (find_multi_boot2_header): Remove function.
32282 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32283 logic. Always check for the Multiboot version we're compiling for.
32284 (grub_cmd_module_loader): Likewise.
32285 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32286 command instead of `multiboot'.
32287
5d2c52b8
RM
322882010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32289
32290 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32291 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32292 all users.
32293
53108d92
RM
322942010-01-07 Robert Millan <rmh.grub@aybabtu.com>
322952010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32296
32297 Fix breakage introduced with previous commit.
32298
32299 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32300 commands.
32301 * normal/handler.c (read_handler_list): Revert part of previous commit
32302 affecting this file.
32303 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32304 (grub_normal_execute): ... here.
32305
e2e936b2
RM
323062010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32307
32308 Merge prefix-redefinition-fix branch.
32309
32310 * normal/autofs.c (read_fs_list): Make function capable of being
32311 run multiple times, gracefuly replacing the previous data
32312 structures.
32313 * normal/dyncmd.c (read_command_list): Likewise.
32314 * normal/handler.c (read_handler_list): Likewise.
32315 * normal/main.c (read_lists): New function. Calls all the
32316 list reading functions.
32317 (grub_normal_execute): Use read_lists() instead of calling all
32318 list reading functions explicitly. Register read_lists() as a
32319 variable hook attached to ${prefix}.
32320
607a3701
VS
323212010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32322
32323 Merge crypto branch.
32324
32325 * Makefile.in (pkglib_DATA): Add crypto.lst.
32326 (crypto.lst): New target.
32327 * commands/hashsum.c: New file.
32328 * commands/password.c (check_password): Use grub_crypto_memcmp.
32329 * commands/password_pbkdf2.c: New file.
32330 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32331 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32332 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32333 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32334 -I$(srcdir)/lib/libgcrypt_wrap.
32335 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32336 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32337 password_pbkdf2.mod.
32338 (crypto_mod_SOURCES): New variable.
32339 (crypto_mod_CFLAGS): Likewise.
32340 (crypto_mod_LDFLAGS): Likewise.
32341 (hashsum_mod_SOURCES): New variable.
32342 (hashsum_mod_CFLAGS): Likewise.
32343 (hashsum_mod_LDFLAGS): Likewise.
32344 (pbkdf2_mod_SOURCES): New variable.
32345 (pbkdf2_mod_CFLAGS): Likewise.
32346 (pbkdf2_mod_LDFLAGS): Likewise.
32347 (password_pbkdf2_mod_SOURCES): New variable.
32348 (password_pbkdf2_mod_CFLAGS): Likewise.
32349 (password_pbkdf2_mod_LDFLAGS): Likewise.
32350 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32351 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32352 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32353 Include conf/gcry.rmk.
32354 * include/grub/auth.h: Rewritten.
32355 * include/grub/crypto.h: New file.
32356 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32357 * include/grub/normal.h (read_crypto_list): New prototype.
32358 * lib/crypto.c: New file.
32359 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32360 * lib/pbkdf2.c: Likewise.
32361 * normal/auth.c (grub_auth_strcmp): Removed.
32362 (grub_iswordseparator): Likewise.
32363 (grub_auth_strword): Likewise.
32364 (is_authenticated): Use grub_strword.
32365 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32366 and grub_strword. Pass entered password to authentication callback.
32367 * normal/crypto.c: New file.
32368 * normal/main.c: Call read_crypto_list.
32369 * util/grub-mkpasswd-pbkdf2.c: New file.
32370 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32371
42841caa
VS
323722010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32373
32374 Fix descent and ascent calculation.
32375
32376 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32377 (options): New option "asce".
32378 (usage): Likewise.
32379 (add_char): Ignore invalid glyphs for descent calculation.
32380 Calculate ascent from actual content.
32381 (print_glyphs): Use 'asce'.
32382 (write_font): Likewise. Allow ascent override.
32383 (main): Handle "asce" option.
32384
e7730de7 323852010-01-06 Carles Pina i Estany <carles@pina.cat>
32386
32387 * kern/err.c: Include `<grub/i18n.h>'.
32388 (grub_print_error): Add full stop. Gettextizze.
32389 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32390 (grub_bsd_load_elf): Capitalise ELF.
32391 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32392 (grub_cmd_freebsd_module): Likewise.
32393 (grub_cmd_freebsd_module_elf): Likewise.
32394 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32395
40e3a41f 323962010-01-06 Carles Pina i Estany <carles@pina.cat>
32397
32398 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32399 * commands/search_file.c (HELP_MESSAGE): New macro.
32400 * commands/search_label.c (HELP_MESSAGE): Likewise.
32401 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32402 * po/POTFILES: Add `commands/search_file.c',
32403 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32404 `commands/search.c'.
32405
83507e68
RM
324062010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32407
32408 * config.rpath: Update from Gnulib.
32409
465c787b
YB
324102010-01-05 Yves Blusseau <blusseau@zetam.org>
32411
32412 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32413
6581dd3a
YB
324142010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32415
32416 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32417
3bff18c5
CW
324182010-01-05 Colin Watson <cjwatson@ubuntu.com>
32419
32420 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32421 arguments to fread so that we get a return value in bytes, rather
32422 than something that will normally be rounded down to 0.
32423 Adjust error handling to avoid producing garbage when size_t is not
32424 the same size as long long.
32425
a1368118
CW
324262010-01-05 Colin Watson <cjwatson@ubuntu.com>
32427
32428 * util/mkisofs/write.c (padblock_write): Check return value of
32429 fread.
32430
7c302978
RM
324312010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32432
32433 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32434 floppy images now.
32435
32436 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32437
e33ace06
RM
324382010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32439
32440 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32441 instead of manual alignment.
32442 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32443 verbose). Avoid attempts to read past end of the device
32444 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32445 but GRUB_DISK_CACHE_SIZE may exceed that).
32446
4b856776
RM
324472010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32448
32449 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32450 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32451 it to upper layer.
32452
52c2d97f
VS
324532010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32454
32455 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32456 New constant.
32457 (grub_efi_piwg_device_path): New structure
32458 (grub_efi_piwg_device_path_t): New type.
32459 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32460 (devpath_1): Transform to a structure. All users updated.
32461 (devpath_2): Likewise.
32462 (devpath_3): Likewise.
32463 (devpath_4): Likewise.
32464 (devpath_5): Likewise.
32465
98ff6a54
VS
324662010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32467
32468 * loader/efi/appleloader.c: Restored. Update all users.
32469
3a73dcb6
RM
324702010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32471
32472 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32473
32474 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32475 (struct boot_blocklist): Move from here ...
32476 * include/grub/i386/pc/boot.h [ASM_FILE]
32477 (struct grub_boot_blocklist): ... to here. Update all users.
32478 (setup): Only initialize `start' member of `first_block'
32479 structure. Add assert() calls to verify the other members.
32480
32481 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32482 (generate_image): Fix broken blocklist length initialization.
32483 Add assert() call to verify blocklist `segment' field.
32484
ab0eeb0c
RM
324852010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32486
32487 * loader/efi/appleloader.c: Remove. Update all users.
32488
58bc8bd5
RM
324892010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32490
32491 * boot/i386/pc/boot.S: Update copyright year.
32492 * boot/i386/pc/cdboot.S: Likewise.
32493 * boot/i386/pc/diskboot.S: Likewise.
32494 * boot/i386/pc/lnxboot.S: Likewise.
32495 * boot/i386/pc/pxeboot.S: Likewise.
32496 * bus/pci.c: Likewise.
32497 * commands/cmp.c: Likewise.
32498 * commands/help.c: Likewise.
32499 * commands/hexdump.c: Likewise.
32500 * commands/i386/pc/halt.c: Likewise.
32501 * commands/i386/pc/play.c: Likewise.
32502 * commands/i386/pc/vbeinfo.c: Likewise.
32503 * commands/ls.c: Likewise.
32504 * commands/test.c: Likewise.
32505 * disk/dmraid_nvidia.c: Likewise.
32506 * disk/i386/pc/biosdisk.c: Likewise.
32507 * disk/ieee1275/nand.c: Likewise.
32508 * disk/ieee1275/ofdisk.c: Likewise.
32509 * disk/lvm.c: Likewise.
32510 * disk/raid.c: Likewise.
32511 * disk/raid6_recover.c: Likewise.
32512 * disk/scsi.c: Likewise.
32513 * fs/affs.c: Likewise.
32514 * fs/cpio.c: Likewise.
32515 * fs/ext2.c: Likewise.
32516 * fs/hfs.c: Likewise.
32517 * fs/iso9660.c: Likewise.
32518 * fs/ntfs.c: Likewise.
32519 * fs/sfs.c: Likewise.
32520 * fs/udf.c: Likewise.
32521 * fs/ufs.c: Likewise.
32522 * fs/xfs.c: Likewise.
32523 * gencmdlist.sh: Likewise.
32524 * genmk.rb: Likewise.
32525 * include/grub/disk.h: Likewise.
32526 * include/grub/efi/api.h: Likewise.
32527 * include/grub/efi/efi.h: Likewise.
32528 * include/grub/efi/pe32.h: Likewise.
32529 * include/grub/elf.h: Likewise.
32530 * include/grub/fs.h: Likewise.
32531 * include/grub/i386/at_keyboard.h: Likewise.
32532 * include/grub/i386/pc/memory.h: Likewise.
32533 * include/grub/i386/pc/vbe.h: Likewise.
32534 * include/grub/i386/pci.h: Likewise.
32535 * include/grub/i386/tsc.h: Likewise.
32536 * include/grub/ieee1275/ieee1275.h: Likewise.
32537 * include/grub/ntfs.h: Likewise.
32538 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32539 * include/grub/sparc64/libgcc.h: Likewise.
32540 * include/grub/symbol.h: Likewise.
32541 * include/grub/types.h: Likewise.
32542 * include/multiboot2.h: Likewise.
32543 * io/gzio.c: Likewise.
32544 * kern/device.c: Likewise.
32545 * kern/disk.c: Likewise.
32546 * kern/efi/efi.c: Likewise.
32547 * kern/efi/mm.c: Likewise.
32548 * kern/elf.c: Likewise.
32549 * kern/file.c: Likewise.
32550 * kern/i386/dl.c: Likewise.
32551 * kern/i386/pc/init.c: Likewise.
32552 * kern/i386/pc/startup.S: Likewise.
32553 * kern/ieee1275/ieee1275.c: Likewise.
32554 * kern/ieee1275/init.c: Likewise.
32555 * kern/main.c: Likewise.
32556 * kern/mm.c: Likewise.
32557 * kern/powerpc/dl.c: Likewise.
32558 * kern/sparc64/dl.c: Likewise.
32559 * kern/x86_64/dl.c: Likewise.
32560 * lib/hexdump.c: Likewise.
32561 * loader/efi/appleloader.c: Likewise.
32562 * loader/i386/ieee1275/linux.c: Likewise.
32563 * loader/i386/pc/chainloader.c: Likewise.
32564 * loader/i386/pc/linux.c: Likewise.
32565 * loader/i386/pc/multiboot2.c: Likewise.
32566 * loader/ieee1275/multiboot2.c: Likewise.
32567 * loader/multiboot2.c: Likewise.
32568 * loader/multiboot_loader.c: Likewise.
32569 * loader/powerpc/ieee1275/linux.c: Likewise.
32570 * normal/completion.c: Likewise.
32571 * normal/menu_entry.c: Likewise.
32572 * partmap/apple.c: Likewise.
32573 * util/grub.d/10_hurd.in: Likewise.
32574 * util/hostfs.c: Likewise.
32575 * video/readers/png.c: Likewise.
32576
e2d70b5c
CW
325772010-01-03 Colin Watson <cjwatson@ubuntu.com>
32578
32579 * include/grub/misc.h (GNUC_PREREQ): New macro.
32580 (ATTRIBUTE_ERROR): New macro.
32581 * include/grub/list.h (grub_bad_type_cast_real): Use
32582 ATTRIBUTE_ERROR.
32583
a173283f 325842010-01-03 Carles Pina i Estany <carles@pina.cat>
32585
32586 * normal/menu_text.c (print_message): Change messages.
32587
7fa7ff74 325882010-01-03 Carles Pina i Estany <carles@pina.cat>
32589
32590 * normal/menu_entry.c (store_completion): Gettextizze.
32591
136d24f6 325922010-01-03 Carles Pina i Estany <carles@pina.cat>
32593
32594 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32595
f936862e 325962010-01-03 Carles Pina i Estany <carles@pina.cat>
32597
32598 * po/POTFILES: Sort correctly.
32599
29c44ad1 326002010-01-03 Carles Pina i Estany <carles@pina.cat>
32601
32602 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32603 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32604 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32605 full stop.
32606 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32607 summary. Gettextizze the strings.
32608 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32609 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32610 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32611 full stop.
32612 (GRUB_MOD_INIT): Remove command name from summary.
32613 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32614 summary.
32615 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32616 * term/i386/pc/serial.c (options): Add full stops.
32617 (GRUB_MOD_INIT): Remove command name from the summary.
32618
77a79592 326192010-01-03 Carles Pina i Estany <carles@pina.cat>
32620
32621 * commands/acpi.c: Gettextizze help strings and/or options. Include
32622 `grub/i18n.h' if needed.
32623 * commands/blocklist.c: Likewise.
32624 * commands/boot.c: Likewise.
32625 * commands/cat.c: Likewise.
32626 * commands/cmp.c: Likewise.
32627 * commands/configfile.c: Likewise.
32628 * commands/crc.c: Likewise.
32629 * commands/date.c: Likewise.
32630 * commands/echo.c: Likewise.
32631 * commands/efi/fixvideo.c: Likewise.
32632 * commands/efi/loadbios.c: Likewise.
32633 * commands/gptsync.c: Likewise.
32634 * commands/halt.c: Likewise.
32635 * commands/handler.c: Likewise.
32636 * commands/hdparm.c: Likewise.
32637 * commands/hexdump.c: Likewise.
32638 * commands/i386/cpuid.c: Likewise.
32639 * commands/i386/pc/drivemap.c: Likewise.
32640 * commands/i386/pc/halt.c: Likewise.
32641 * commands/i386/pc/pxecmd.c: Likewise.
32642 * commands/i386/pc/vbeinfo.c: Likewise.
32643 * commands/i386/pc/vbetest.c: Likewise.
32644 * commands/ieee1275/suspend.c: Likewise.
32645 * commands/keystatus.c: Likewise.
32646 * commands/loadenv.c: Likewise.
32647 * commands/ls.c: Likewise.
32648 * commands/lsmmap.c: Likewise.
32649 * commands/lspci.c: Likewise.
32650 * commands/memrw.c: Likewise.
32651 * commands/minicmd.c: Likewise.
32652 * commands/parttool.c: Likewise.
32653 * commands/password.c: Likewise.
32654 * commands/probe.c: Likewise.
32655 * commands/read.c: Likewise.
32656 * commands/reboot.c: Likewise.
32657 * commands/search.c: Likewise.
32658 * commands/sleep.c: Likewise.
32659 * commands/test.c: Likewise.
32660 * commands/true.c: Likewise.
32661 * commands/usbtest.c: Likewise.
32662 * commands/videotest.c: Likewise.
32663 * commands/xnu_uuid.c: Likewise.
32664 * disk/loopback.c: Likewise.
32665 * hello/hello.c: Likewise.
32666 * loader/i386/bsd.c: Likewise.
32667 * term/i386/pc/serial.c: Likewise.
32668 * po/POTFILES: Add new files.
32669
da8d5c53
CW
326702010-01-02 Colin Watson <cjwatson@ubuntu.com>
32671
32672 * term/i386/pc/at_keyboard.c
32673 (keyboard_controller_wait_untill_ready): Rename to ...
32674 (keyboard_controller_wait_until_ready): ... this. Update all users.
32675
33937904 326762010-01-01 Carles Pina i Estany <carles@pina.cat>
32677
32678 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32679 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32680 string using string width.
32681 * normal/menu_text.c (grub_print_message_indented): Use
32682 grub_print_spaces and not print_spaces.
32683 (print_timeout): Likewise.
32684 (print_spaces): Move to...
32685 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32686
3fd3b8d8
RM
326872010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32688
32689 Import from Gnulib.
32690
32691 * gnulib/getdelim.c: New file.
32692 * gnulib/getline.c: Likewise.
32693
33433555
VS
326942009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32695
32696 * include/grub/list.h (grub_assert_fail): Removed.
32697 (grub_bad_type_cast_real): New function.
32698 (grub_bad_type_cast): New macro.
32699 (GRUB_AS_LIST): Use grub_bad_type_cast.
32700 (GRUB_AS_LIST_P): Likewise.
e44721e8 32701 (GRUB_AS_NAMED_LIST): Likewise.
33433555 32702 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 32703 (GRUB_AS_PRIO_LIST): Likewise.
33433555 32704 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 32705 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 32706
f5a51306
VS
327072009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32708
32709 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32710 Fix syntax error.
32711
90d1e879
RM
327122009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32713
32714 * configure.ac: Check for TARGET_CFLAGS initialization before we
32715 initialize it ourselves (sigh).
32716 Move a few modifications to TARGET_CFLAGS to be unconditional
32717 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32718 eh_frame)
32719
32720 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32721 * term/i386/pc/at_keyboard.c
32722 (keyboard_controller_wait_untill_ready): Likewise.
32723 (keyboard_controller_led): Rename `led_status' paramter to avoid
32724 name conflict.
32725
465b5a81 327262009-12-28 Carles Pina i Estany <carles@pina.cat>
32727
32728 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32729 quotes.
32730
c181849b
VS
327312009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32732
32733 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32734
9c8739a4
VS
327352009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32736
32737 * normal/menu_text.c (grub_print_message_indented): Prevent
32738 past-the-end-of-array dereference.
32739
3e74249c
VS
327402009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32741
32742 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32743 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32744
64fd18ed 327452009-12-27 Carles Pina i Estany <carles@pina.cat>
32746
32747 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32748 * normal/main.c (grub_normal_read_line): Remove a space from the
32749 default prompt.
32750
714af9b9 327512009-12-27 Carles Pina i Estany <carles@pina.cat>
32752
32753 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32754 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32755 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32756 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32757 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32758 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32759 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32760
82f3e412 327612009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 32762
32763 * video/readers/jpeg.c (cmd): Declare.
32764 (grub_cmd_jpegtest): Use `grub_command_t' type.
32765 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32766 Assign to `cmd'.
32767 (GRUB_MOD_FINI): Use `cmd' to unregister.
32768 * video/readers/png.c (cmd): Declare.
32769 (grub_cmd_pngtest): Use `grub_command_t' type.
32770 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32771 Assign to `cmd'.
32772 (GRUB_MOD_FINI): Use `cmd' to unregister.
32773 * video/readers/tga.c (cmd): Declare.
32774 (grub_cmd_tgatest): Use `grub_command_t' type.
32775 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32776 Assign to `cmd'.
32777 (GRUB_MOD_FINI): Use `cmd' to unregister.
32778
82f3e412 327792009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 32780
32781 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32782 stops.
32783 * kern/corecmd.c (grub_register_core_commands): Likewise.
32784 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32785 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32786 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32787 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32788 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32789 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32790 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32791 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32792 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32793 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32794 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32795 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32796 * normal/handler.c (insert_handler): Likewise.
32797 * normal/main.c (GRUB_MOD_INIT): Likewise.
32798 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32799
fdcdbb66 328002009-12-26 Carles Pina i Estany <carles@pina.cat>
32801
32802 * commands/help.c (grub_cmd_help): Print the command name before the
32803 summary.
32804 (GRUB_MOD_INIT): Remove command name from the summary.
32805 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 32806 string as summary.
fdcdbb66 32807 * lib/arg.c (find_long): Print the command name before the summary.
32808 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32809 summary.
32810 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32811 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32812 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32813 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32814 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32815 * commands/date.c (GRUB_MOD_INIT): Likewise.
32816 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32817 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32818 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32819 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32820 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32821 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32822 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32823 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32824 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32825 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32826 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32827 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32828 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32829 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32830 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32831 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32832 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32833 * commands/password.c (GRUB_MOD_INIT): Likewise.
32834 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32835 * commands/read.c (GRUB_MOD_INIT): Likewise.
32836 * commands/search.c (GRUB_MOD_INIT): Likewise.
32837 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32838 * commands/test.c (GRUB_MOD_INIT): Likewise.
32839 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32840 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32841 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32842 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32843 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32844 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32845 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32846 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32847 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32848 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32849 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32850 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32851 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32852 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32853
9c288be2
VS
328542009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32855
32856 Use search command for preliminar UUID search.
32857
32858 * commands/search.c: Split into ...
32859 * commands/search_wrap.c: ...this
32860 * commands/search.c: ...and this.
32861 * commands/search_file.c: New file.
32862 * commands/search_label.c: New file.
32863 * commands/search_uuid.c: New file.
32864 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32865 Add commands/search_wrap.c, commands/search_file.c,
32866 commands/search_label.c and commands/search_uuid.c.
32867 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32868 (search_mod_SOURCES): Set to commands/search_wrap.c.
32869 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32870 search_label.mod.
32871 (search_fs_file_mod_SOURCES): New variable.
32872 (search_fs_file_mod_CFLAGS): Likewise.
32873 (search_fs_file_mod_LDFLAGS): Likewise.
32874 (search_label_mod_SOURCES): Likewise.
32875 (search_label_mod_CFLAGS): Likewise.
32876 (search_label_mod_LDFLAGS): Likewise.
32877 (search_fs_uuid_mod_SOURCES): New variable.
32878 (search_fs_uuid_mod_CFLAGS): Likewise.
32879 (search_fs_uuid_mod_LDFLAGS): Likewise.
32880 (fs_file_mod_SOURCES): Removed.
32881 (fs_file_mod_CFLAGS): Likewise.
32882 (fs_file_mod_LDFLAGS): Likewise.
32883 (fs_uuid_mod_SOURCES): Removed.
32884 (fs_uuid_mod_CFLAGS): Likewise.
32885 (fs_uuid_mod_LDFLAGS): Likewise.
32886 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32887 Set to util/grub-install.in.
32888 * disk/fs_file.c: Removed.
32889 * disk/fs_uuid.c: Likewise.
32890 * include/grub/search.h: New file.
32891 * util/grub-install.in: Handle sparc64.
32892 Create and use load.cfg.
32893 * util/sparc64/ieee1275/grub-install.in: Removed.
32894
db943399
VS
328952009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32896
32897 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32898 Ignore return status if CF is cleared.
32899 (grub_biosdisk_get_diskinfo_standard): Likewise.
32900
3fdae612
RM
329012009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32902
32903 * term/i386/pc/at_keyboard.c
32904 (keyboard_controller_wait_untill_ready): New function.
32905 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32906 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32907 for keyboard polling, rather than duplicate the same loop. This
32908 saves a few bytes in code size.
32909
7ebaa2b4
VS
329102009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32911
32912 Support for (pxe[:server[:gateway]]) syntax and
32913 use environment variable for PXE.
32914
32915 * commands/i386/pc/pxecmd.c (options): Removed.
32916 (print_ip): Removed.
32917 (grub_cmd_pxe): Removed
32918 (grub_cmd_pxe_unload): New function.
32919 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32920 (grub_pxe_your_ip): Made static.
32921 (grub_pxe_default_server_ip): Likewise.
32922 (grub_pxe_default_gateway_ip): Likewise.
32923 (grub_pxe_blksize): Likewise.
32924 (parse_ip): New function.
32925 (grub_pxe_open): Support server and gateway specification.
32926 (grub_pxe_close): Free disk->data.
32927 (grub_pxefs_open): Use disk->data.
32928 (grub_pxefs_read): Likewise.
32929 (grub_env_write_readonly): New function.
32930 (set_mac_env): Likewise.
32931 (set_env_limn_ro): Likewise.
32932 (parse_dhcp_vendor): Likewise.
32933 (grub_pxe_detect): Set the environment variables.
32934 (set_ip_env): New function.
32935 (write_ip_env): Likewise.
32936 (grub_env_write_pxe_default_server): Likewise.
32937 (grub_env_write_pxe_default_gateway): Likewise.
32938 (grub_env_write_pxe_blocksize): Likewise.
32939 (GRUB_MOD_INIT(pxe)): Set environment variables.
32940 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32941 (grub_pxe_mac_addr_t): ... this. All users updated.
32942 (grub_pxe_your_ip): Removed.
32943 (grub_pxe_server_ip): Likewise.
32944 (grub_pxe_gateway_ip): Likewise.
32945 (grub_pxe_blksize): Likewise.
32946
ec5f98ab 329472009-12-25 Carles Pina i Estany <carles@pina.cat>
32948
32949 * commands/help.c: Include `<grub/i18n.h>'.
32950 (grub_cmd_help): Gettextizze.
32951 (GRUB_MOD_INIT): Likewise.
32952 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32953 (GRUB_MOD_INIT): Gettextizze.
32954 * commands/search.c: Include `<grub/i18n.h>'.
32955 (options): Gettextizze.
32956 (GRUB_MOD_INIT): Gettextizze.
32957 * lib/arg.c: Include `<grub/i18n.h>'.
32958 (help_options): Gettextizze.
32959 (find_long): Likewise.
32960 (grub_arg_show_help): Likewise.
32961 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32962 (read_command_list): Gettextizze.
32963 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 32964 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 32965
22815526
RM
329662009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32967
32968 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32969 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32970 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32971 (led_status): New variable.
32972 (keyboard_controller_led): New function.
32973 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32974 update led status for caps lock, num lock and scroll lock.
32975
0ad46fd7
FZ
329762009-12-25 Felix Zielcke <fzielcke@z-51.de>
32977
32978 * util/hostdisk.c (open_device): Fix a comment.
32979
d0e158c2
RM
329802009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32981
32982 * util/grub-install.in (host_os): New variable.
32983 * util/i386/efi/grub-install.in (host_os): Likewise.
32984
401c0ad6
RM
329852009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32986
32987 * util/mkisofs/write.c (padblock_write): Abort when given an
32988 excedingly large embed image, instead of silently truncating it.
32989
d14d3370
RM
329902009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32991
32992 * include/multiboot.h: Indentation fixes.
32993
eeed10b4
RM
329942009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32995
32996 * include/multiboot.h (struct multiboot_aout_symbol_table)
32997 (struct multiboot_elf_section_header_table): New structure
32998 declarations (stolen from GRUB Legacy).
32999 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
33000 table information.
33001
33002 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
33003 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
33004 type aliases.
33005
681c70ab
RM
330062009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33007
33008 * include/multiboot.h: Make comments src2texi-friendly.
33009
e4d47d8d
RM
330102009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33011
33012 For consistency with [multiboot]/docs/boot.S.
33013
33014 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
33015 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
33016 (MULTIBOOT_MAGIC2): Rename from this ...
33017 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
33018
a0b70bda
RM
330192009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33020
33021 * include/multiboot.h: Remove `<grub/types.h>'.
33022 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
33023 types. Update all users.
33024
61ba42be 330252009-12-25 Carles Pina i Estany <carles@pina.cat>
33026
33027 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
33028 `couldn't' and `can not' by `cannot'.
33029 * commands/i386/pc/drivemap.c: Likewise.
33030 * disk/ata.c: Likewise.
33031 * disk/ieee1275/nand.c: Likewise.
33032 * fs/affs.c: Likewise.
33033 * fs/fat.c: Likewise.
33034 * fs/hfs.c: Likewise.
33035 * fs/hfsplus.c: Likewise.
33036 * fs/iso9660.c: Likewise.
33037 * fs/jfs.c: Likewise.
33038 * fs/minix.c: Likewise.
33039 * fs/reiserfs.c: Likewise.
33040 * fs/sfs.c: Likewise.
33041 * fs/udf.c: Likewise.
33042 * fs/ufs.c: Likewise.
33043 * fs/xfs.c: Likewise.
33044 * loader/powerpc/ieee1275/linux.c: Likewise.
33045 * loader/sparc64/ieee1275/linux.c: Likewise.
33046 * util/grub-probe.c: Likewise.
33047 * util/misc.c: Likewise.
33048
7fd0baee 330492009-12-24 Carles Pina i Estany <carles@pina.cat>
33050
33051 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
33052 grub_errno calls.
33053 * commands/acpi.c: Likewise.
33054 * commands/blocklist.c: Likewise.
33055 * commands/efi/loadbios.c: Likewise.
33056 * commands/i386/pc/drivemap.c: Likewise.
33057 * commands/loadenv.c: Likewise.
33058 * commands/memrw.c: Likewise.
33059 * commands/password.c: Likewise.
33060 * commands/videotest.c: Likewise.
33061 * disk/ata.c: Likewise.
33062 * disk/ata_pthru.c: Likewise.
33063 * disk/dmraid_nvidia.c: Likewise.
33064 * disk/ieee1275/nand.c: Likewise.
33065 * disk/ieee1275/ofdisk.c: Likewise.
33066 * disk/loopback.c: Likewise.
33067 * disk/lvm.c: Likewise.
33068 * disk/mdraid_linux.c: Likewise.
33069 * disk/raid.c: Likewise.
33070 * disk/raid6_recover.c: Likewise.
33071 * disk/scsi.c: Likewise.
33072 * efiemu/main.c: Likewise.
33073 * efiemu/mm.c: Likewise.
33074 * efiemu/pnvram.c: Likewise.
33075 * efiemu/symbols.c: Likewise.
33076 * font/font.c: Likewise.
33077 * fs/cpio.c: Likewise.
33078 * fs/hfsplus.c: Likewise.
33079 * fs/iso9660.c: Likewise.
33080 * fs/jfs.c: Likewise.
33081 * fs/minix.c: Likewise.
33082 * fs/ntfs.c: Likewise.
33083 * fs/ntfscomp.c: Likewise.
33084 * fs/reiserfs.c: Likewise.
33085 * fs/ufs.c: Likewise.
33086 * fs/xfs.c: Likewise.
33087 * gettext/gettext.c: Likewise.
33088 * include/grub/auth.h: Likewise.
33089 * kern/elf.c: Likewise.
33090 * kern/file.c: Likewise.
33091 * kern/ieee1275/init.c: Likewise.
33092 * kern/ieee1275/mmap.c: Likewise.
33093 * kern/ieee1275/openfw.c: Likewise.
33094 * kern/powerpc/dl.c: Likewise.
33095 * kern/sparc64/dl.c: Likewise.
33096 * lib/arg.c: Likewise.
33097 * loader/i386/bsd.c: Likewise.
33098 * loader/i386/bsdXX.c: Likewise.
33099 * loader/i386/efi/linux.c: Likewise.
33100 * loader/i386/efi/xnu.c: Likewise.
33101 * loader/i386/ieee1275/linux.c: Likewise.
33102 * loader/i386/linux.c: Likewise.
33103 * loader/i386/multiboot.c: Likewise.
33104 * loader/i386/pc/linux.c: Likewise.
33105 * loader/i386/pc/multiboot2.c: Likewise.
33106 * loader/i386/xnu.c: Likewise.
33107 * loader/ieee1275/multiboot2.c: Likewise.
33108 * loader/macho.c: Likewise.
33109 * loader/machoXX.c: Likewise.
33110 * loader/multiboot2.c: Likewise.
33111 * loader/multiboot_loader.c: Likewise.
33112 * loader/powerpc/ieee1275/linux.c: Likewise.
33113 * loader/sparc64/ieee1275/linux.c: Likewise.
33114 * loader/xnu.c: Likewise.
33115 * loader/xnu_resume.c: Likewise.
33116 * mmap/i386/pc/mmap.c: Likewise.
33117 * normal/menu_viewer.c: Likewise.
33118 * partmap/acorn.c: Likewise.
33119 * partmap/amiga.c: Likewise.
33120 * partmap/apple.c: Likewise.
33121 * script/lexer.c: Likewise.
33122 * term/gfxterm.c: Likewise.
33123 * term/i386/pc/serial.c: Likewise.
33124 * term/i386/pc/vga.c: Likewise.
33125 * term/ieee1275/ofconsole.c: Likewise.
33126 * term/terminfo.c: Likewise.
33127 * video/bitmap.c: Likewise.
33128 * video/efi_gop.c: Likewise.
33129 * video/efi_uga.c: Likewise.
33130 * video/fb/video_fb.c: Likewise.
33131 * video/i386/pc/vbe.c: Likewise.
33132 * video/readers/tga.c: Likewise.
33133 * video/video.c: Likewise.
33134
0ad46fd7 331352009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
33136
33137 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33138 * commands/lspci.c: Likewise.
33139 * commands/probe.c: Likewise.
33140 * commands/xnu_uuid.c: Likewise.
33141 * conf/i386-coreboot.rmk: Likewise.
33142 * conf/i386-efi.rmk: Likewise.
33143 * conf/i386-ieee1275.rmk: Likewise.
33144 * conf/i386-pc.rmk: Likewise.
33145 * conf/powerpc-ieee1275.rmk: Likewise.
33146 * conf/sparc64-ieee1275.rmk: Likewise.
33147 * conf/x86_64-efi.rmk: Likewise.
33148 * fs/i386/pc/pxe.c: Likewise.
33149 * gettext/gettext.c: Likewise.
33150 * include/grub/efi/graphics_output.h: Likewise.
33151 * include/grub/i386/pc/memory.h: Likewise.
33152 * kern/env.c: Likewise.
33153 * kern/i386/qemu/startup.S: Likewise.
33154 * lib/i386/pc/biosnum.c: Likewise.
33155 * lib/i386/relocator.c: Likewise.
33156 * lib/i386/relocator_asm.S: Likewise.
33157 * lib/relocator.c: Likewise.
33158 * loader/i386/bsd.c: Likewise.
33159 * loader/i386/multiboot.c: Likewise.
33160 * loader/i386/pc/chainloader.c: Likewise.
33161 * loader/i386/xnu.c: Likewise.
33162 * loader/xnu.c: Likewise.
33163 * normal/main.c: Likewise.
33164 * normal/menu_text.c: Likewise.
33165 * util/getroot.c: Likewise.
33166 * util/grub-mkconfig_lib.in: Likewise.
33167 * util/grub.d/00_header.in: Likewise.
33168 * util/i386/pc/grub-mkimage.c: Likewise.
33169 * util/mkisofs/eltorito.c: Likewise.
33170 * util/mkisofs/exclude.h: Likewise.
33171 * util/mkisofs/hash.c: Likewise.
33172 * util/mkisofs/iso9660.h: Likewise.
33173 * util/mkisofs/joliet.c: Likewise.
33174 * util/mkisofs/mkisofs.c: Likewise.
33175 * util/mkisofs/mkisofs.h: Likewise.
33176 * util/mkisofs/multi.c: Likewise.
33177 * util/mkisofs/name.c: Likewise.
33178 * util/mkisofs/rock.c: Likewise.
33179 * util/mkisofs/tree.c: Likewise.
33180 * util/mkisofs/write.c: Likewise.
33181 * video/efi_gop.c: Likewise.
33182
009ec743
VS
331832009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33184
33185 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33186 size counting.
33187
0ad46fd7 331882009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
33189
33190 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33191 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33192
d3d30ea0
VS
331932009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33194
33195 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33196 (GRUB_MOD_INIT(memrw)): Update help line.
33197
a34f5c70
VS
331982009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33199
33200 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33201 Use grub_extcmd_t. All users updated.
33202 (options): New variable.
33203 (grub_cmd_read): Restructure for readability. Support "-v" option.
33204 (grub_cmd_write): Restructure for readability.
33205
0ad46fd7 332062009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
33207
33208 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33209
0ad46fd7 332102009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
33211
33212 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33213 with the actual contents of the correspondending make variable.
33214 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33215 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33216 specifying `*.lst' and `efiemu??.o'
33217
0ad46fd7 332182009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
33219
33220 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33221 after function name.
33222 Noticed by Rene Engelhard <rene@debian.org>.
33223
dc77a799
VS
332242009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33225
33226 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33227 (options): New variable.
33228 (iospace): Likewise.
33229 (grub_lspci_iter): List IO spaces if "-i" was given.
33230 (grub_cmd_lspci): Parse options.
33231 (GRUB_MOD_INIT(lspci)): Use extcmd.
33232 (GRUB_MOD_FINI(lspci)): Likewise.
33233
0ad46fd7 332342009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
33235
33236 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33237 `function' keyword.
33238 Patch by Tony Mancill <tmancill@debian.org>.
33239
b5d5993b
VS
332402009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33241
33242 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33243 (grub_uhci_portstatus): Likewise.
33244 (grub_uhci_portstatus): Add necessary delay.
11d18281 33245 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 33246
941903f2 332472009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 33248
941903f2 33249 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33250 (GRUB_MOD_INIT): Likewise.
33251 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 33252 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33253 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 33254 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33255 (enable_rom_area): Likewise.
33256 (GRUB_MOD_INIT): Likewise.
33257 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33258 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33259 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33260 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33261 * commands/hexdump.c (options): Likewise.
33262 * commands/i386/cpuid.c (options): Likewise.
33263 (GRUB_MOD_INIT): Likewise.
33264 * commands/i386/pc/drivemap.c (options): Likewise.
33265 (GRUB_MOD_INIT): Likewise.
33266 * commands/i386/pc/halt (options): Likewise.
33267 (GRUB_MOD_INIT): Likewise.
33268 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33269 * commands/i386/pc/pxecmd.c (options): Likewise.
33270 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33271 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33272 * commands/keystatus.c (options): Likewise.
33273 (GRUB_MOD_INIT): Likewise.
33274 * commands/loadenv.c (options): Likewise.
33275 * commands/ls.c (options): Likewise.
33276 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33277 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33278 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33279 * commands/parttool.c (helpmsg): Likewise.
33280 * commands/probe.c (options): Likewise.
33281 * commands/read.c (GRUB_MOD_INIT): Likewise.
33282 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33283 * commands/search.c (options): Likewise.
33284 * commands/sleep.c (options): Likewise.
33285 * commands/test.c (GRUB_MOD_INIT): Likewise.
33286 * commands/true.c (GRUB_MOD_INIT): Likewise.
33287 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33288 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33289 * lib/arg.c (help_options): Likewise.
e9bbb4e7 33290 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33291 `$(XGETTEXT)'.
98a50553 33292 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 33293
0ad46fd7 332942009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 33295
ef3c2c3a 33296 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
33297 instead of specifying them explicit.
33298
7922f68b
RM
332992009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33300
33301 * NEWS: Add grub-probe support for GNU/Hurd.
33302
537ce47f
RM
333032009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33304
33305 * NEWS: gettext was added after 1.97.
33306
9b214e3a
RM
333072009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33308
33309 * util/mkisofs/msdos_partition.h: New file (based on
33310 include/grub/msdos_partition.h).
33311 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33312 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33313 (ld_options, main): Recognize --protective-msdos-label.
33314 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33315 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33316 (padblock_write): If `use_protective_msdos_label' is set, patch a
33317 protective DOS-style label in the output image.
33318
33319 * util/grub-mkrescue.in: Use --protective-msdos-label.
33320
e9309813
RM
333212009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33322
33323 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33324 boot.
33325
0ae56929
RM
333262009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33327
33328 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33329 variables.
33330 (ld_options, main): Recognize `--embedded-boot'.
33331 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33332 declarations.
33333 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33334 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33335 (padblock_write): Likewise. Rewrite to support embedded boot image.
33336
33337 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33338 for BIOS-based disk boot instead of only ElTorito.
33339
b15937b1
RM
333402009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33341
33342 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33343 build (not needed for bootstrap).
33344
52cc3ce0
RM
333452009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33346
33347 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33348 from i386-pc build (not needed for bootstrap).
33349 Rewrite a pair of strings.
33350
36f5ff04
RM
333512009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33352
33353 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33354
973c6c85 333552009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
33356
33357 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33358
05d21547
AB
333592009-12-21 Andreas Born <futur.andy@googlemail.com>
33360
33361 * kern/env.c (grub_env_context_open): Mark exported variable for
33362 reexport.
33363
0175d51f
AB
333642009-12-21 Andreas Born <futur.andy@googlemail.com>
33365
33366 * kern/env.c (grub_env_export): Create nonexistent variables before
33367 exporting.
33368
7f39d92f 333692009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 33370
7f39d92f 33371 * include/grub/auth.h: Include `<grub/i18n.h>'.
33372 (GRUB_GET_PASSWORD): Gettextizze string.
33373 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33374 menu_text.c.
33375 (grub_utf8_to_ucs4_alloc): Fix indentation.
33376 (grub_print_ucs4): Likewise.
33377 (grub_getstringwidth): Likewise.
33378 (print_message_indented): New declaration.
33379 * normal/auth.c: Include `<grub/i18n.h>'.
33380 (grub_auth_check_authentication): Gettexttize string.
33381 * normal/cmdline.c: Include `<grub/i18n.h>'.
33382 (grub_cmdline_get): Gettextizze.
33383 * normal/color.c: Include `<grub/i18n.h>'.
33384 (grub_parse_color_name_pair): Gettexttize strings.
33385 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33386 string (use `print_message_indented').
33387 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33388 `include/grub/normal.h'.
33389 (print_message_indented): Renamed to ...
33390 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33391 used in normal/main.c).
33392 (print_message): Use `grub_print_message_indented' instead of
33393 `print_message_indented'.
33394 (print_timeout): Likewise.
33395 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33396 (grub_normal_print_device_info): Gettexttize strings.
33397 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33398
3041d898
VS
333992009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33400
33401 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33402 of arguments. Return number of tokens and not arguments. All users
33403 updated.
33404
de15bf8e
VS
334052009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33406
33407 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33408 non-MSDOS paritions.
33409
e0a6ca52
VS
334102009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33411
33412 * include/grub/types.h (UNUSED): Removed since it conflicts with
33413 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33414 Reported by Grégoire Sutre.
33415
b99518d1 334162009-12-19 Carles Pina i Estany <carles@pina.cat>
33417
33418 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33419 (grub_print_ucs4_alloc): Likewise.
33420 (grub_getstringwidth): Likewise.
33421 * normal/main.c (grub_normal_init_page): Gettextize version string.
33422 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33423 (getstringwidth): Renamed to ...
33424 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33425 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33426 (grub_print_ucs4): Remove `static' qualifer (now used in
33427 normal/main.c).
33428 * po/POTFILES: Add normal/main.c.
33429
bfd5e52b 334302009-12-19 Carles Pina i Estany <carles@pina.cat>
33431
33432 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33433 (print_message_indented): Add `margin_left' and `margin_right'
33434 parameters.
33435 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33436 strings.
33437 (print_timeout): Use `print_message_indented' to print the message.
33438 Deletes `second_stage' parameter.
33439 (run_menu): Update `print_timeout' calls.
33440
5a1ad2b9
VS
334412009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33442
33443 Fix console palette on OpenFirmware.
33444
33445 * term/ieee1275/ofconsole.c (MAX): Removed.
33446 (colors): Redone based on VGA palette.
33447 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33448 colors are supported.
33449 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33450
b045f00a
VS
334512009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33452
33453 Fix potential EfiEmu double prepare.
33454
33455 * efiemu/main.c (prepared): New variable
33456 (grub_efiemu_unload): Set prepare to '0'.
33457 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33458
33459 set_virtual_address_map support.
33460
33461 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33462 prototype.
33463 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33464 prototype.
33465 (grub_efiemu_crc32): Likewise.
33466 (grub_efiemu_crc64): Likewise.
33467 (grub_efiemu_set_virtual_address_map): Likewise.
33468 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33469 New definition.
33470 (grub_autoefi_set_virtual_address_map): Likewise.
33471 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33472 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33473 Restructure flow to accomodate it.
33474 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33475 (grub_efiemu_crc): Recompute CRC32.
33476 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33477 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33478 * efiemu/symbols.c (relocated_handle): New variable.
33479 (grub_efiemu_free_syms): Free relocated_handle.
33480 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33481 (grub_efiemu_write_sym_markers): New function.
33482 (grub_efiemu_set_virtual_address_map): Likewise.
33483
33484 Newer XNU parameters.
33485
33486 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33487 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33488 (grub_xnu_fill_devicetree): New prototype.
33489 (grub_xnu_heap_real_start): New variable.
33490 * loader/xnu.c (get_name_ptr): New function.
33491 (grub_xnu_load_driver): Fill namelen and name.
33492
33493 64-bit xnu support.
33494
33495 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33496 and 'loader/macho64.c'.
33497 * conf/i386-pc.rmk: Likewise.
33498 * conf/x86_64-efi.rmk: Likewise.
33499 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33500 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33501 * include/grub/macho.h (grub_macho_segment64): New structure.
33502 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33503 (grub_macho_size32): ... to this.
33504 (grub_macho32_get_entry_point): Renamed from ...
33505 (grub_macho_get_entry_point32): ... to this.
33506 (grub_macho_contains_macho64): New prototype.
33507 (grub_macho_size64): Likewise.
33508 (grub_macho_get_entry_point64): Likewise.
33509 (grub_macho32_load): Renamed from ...
33510 (grub_macho_load32): ... to this.
33511 (grub_macho32_filesize): Renamed from ...
33512 (grub_macho_filesize32): ... to this.
33513 (grub_macho32_readfile): Renamed from ...
33514 (grub_macho_readfile32): ... to this.
33515 (grub_macho_filesize64): New prototype.
33516 (grub_macho_readfile64): Likewise.
33517 (grub_macho_parse32): Likewise.
33518 (grub_macho_parse64): Likewise.
33519 * loader/macho.c: Split into ...
33520 * loader/machoXX.c: ... and this. Replace 32 with XX.
33521 * loader/macho32.c: New file.
33522 * loader/macho64.c: Likewise.
33523 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33524 (grub_cmd_xnu_kernel): Make 32-bit only.
33525 (grub_cmd_xnu_kernel64): New function.
33526 (grub_xnu_load_driver): Support Mach-O 64.
33527 (grub_cmd_xnu_mkext): Likewise.
33528 * util/grub.d/30_os-prober.in (osx_entry): New function.
33529 Generate entries for 64-bit boot too.
33530
33531 Eliminate ad-hoc tree format in XNU and EfiEmu.
33532
33533 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33534 * efiemu/pnvram.c: Rewritten to use environment variables.
33535 All users updated.
33536
33537 Inline utf16_to_utf8.
33538
33539 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33540 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33541 All users updated.
33542 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33543
33544 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33545 * commands/usbtest.c (grub_usb_get_string): ... move here.
33546 (usb_print_str): Fix error handling.
33547 * include/grub/usb.h (grub_usb_get_string): Remove.
33548
33549 UTF-8 to UTF-16 transformation.
33550
33551 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33552 (charset_mod_SOURCES): New variable.
33553 (charset_mod_CFLAGS): Likewise.
33554 (charset_mod_LDFLAGS): Likewise.
33555 * include/grub/utf.h: New file.
33556 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33557
33558 Support for device properties.
33559
33560 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33561 (grub_xnu_devprop_device_header): Likewise.
33562 (grub_xnu_devprop_device_descriptor): Likewise.
33563 (grub_xnu_devprop_add_device): New prototype.
33564 (grub_xnu_devprop_remove_device): Likewise.
33565 (grub_xnu_devprop_remove_property): Likewise.
33566 (grub_xnu_devprop_add_property_utf8): Likewise.
33567 (grub_xnu_devprop_add_property_utf16): Likewise.
33568 (grub_cpu_xnu_init): Likewise.
33569 (grub_cpu_xnu_fini): Likewise.
33570 (grub_cpu_xnu_unload): Likewise.
33571 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33572 (property_descriptor): Likewise.
33573 (devices): New variable.
33574 (grub_xnu_devprop_remove_property): New function.
33575 (grub_xnu_devprop_add_device): Likewise.
33576 (grub_xnu_devprop_remove_device): Likewise.
33577 (grub_xnu_devprop_add_property): Likewise.
33578 (grub_xnu_devprop_add_property_utf8): Likewise.
33579 (grub_xnu_devprop_add_property_utf16): Likewise.
33580 (hextoval): Likewise.
33581 (grub_cpu_xnu_fill_devprop): Likewise.
33582 (grub_cmd_devprop_load): Likewise.
33583 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33584 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33585 (cmd_devprop_load): New variable.
33586 (grub_cpu_xnu_init): New function.
33587 (grub_cpu_xnu_fini): Likewise.
33588 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33589 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33590 (grub_cmd_xnu_devtree): Likewise.
33591 (hextoval): New function.
33592 (unescape): Likewise.
33593 (grub_xnu_fill_devicetree): Likewise.
33594
33595 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33596 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33597
0945f181
VS
335982009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33599
33600 Workaround for broken ATI VBE.
33601
33602 * video/i386/pc/vbe.c (last_set_mode): New variable.
33603 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33604 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33605 (grub_video_vbe_setup): Don't check for reserved flag.
33606
0ad46fd7 336072009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
33608
33609 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33610 the `find' command.
33611
c179ebe4
VS
336122009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33613
33614 UUID support for HFS.
33615
33616 * fs/hfs.c (grub_hfs_uuid): New function.
33617 (grub_hfs_fs): New value .uuid.
33618 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33619
0ad46fd7 336202009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
33621
33622 Fix a segfault with parsing unknown long options.
33623
33624 * util/grub-mkrelpath.c (options): Zero terminate it.
33625
c4a3e41a
CPE
336262009-12-13 Carles Pina i Estany <carles@pina.cat>
33627
33628 * include/grub/misc.h (grub_puts): New declaration.
33629 (grub_puts_): Likewise.
a22008a6 33630 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
33631 (grub_puts_): Likewise.
33632
2e8a7602
RM
336332009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33634
33635 * util/grub-probe.c (probe): Improve error message.
33636
b50b77b9
RM
336372009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33638
33639 * loader/i386/multiboot_elfxx.c
33640 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33641 initialization.
33642
336432009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33644
33645 Relocator framework
33646
33647 * loader/i386/xnu_helper.S: Removed. All users updated.
33648 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33649 (relocator_mod_SOURCES): New variable.
33650 (relocator_mod_CFLAGS): Likewise.
33651 (relocator_mod_LDFLAGS): Likewise.
33652 (relocator_mod_ASFLAGS): Likewise.
33653 * conf/x86_64.rmk: Likewise.
33654 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33655 (grub_multiboot_payload_entry_offset): Likewise.
33656 (grub_multiboot_forward_relocator): Likewise.
33657 (grub_multiboot_forward_relocator_end): Likewise.
33658 (grub_multiboot_backward_relocator): Likewise.
33659 (grub_multiboot_backward_relocator_end): Likewise.
33660 (grub_multiboot_payload_eip): New variable.
33661 (grub_multiboot_payload_orig): Likewise.
33662 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33663 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33664 * include/grub/i386/memory.h
33665 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33666 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33667 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33668 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33669 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33670 * include/grub/i386/relocator.h: New file.
33671 * include/grub/x86_64/relocator.h: Likewise.
33672 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33673 (XNU_RELOCATOR): New macro.
33674 (grub_xnu_launcher_start): Remove.
33675 (grub_xnu_launcher_end): Likewise.
33676 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33677 (grub_xnu_heap_real_start): Remove.
33678 (grub_xnu_heap_start): Change to void *. All users updated.
33679 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33680 * lib/i386/relocator.c: New file.
33681 * lib/i386/relocator_asm.S: Likewise.
33682 * lib/i386/relocator_backward.S: Likewise.
33683 * lib/mips/relocator.c: Likewise.
33684 * lib/mips/relocator_asm.S: Likewise.
33685 * lib/relocator.c: Likewise.
33686 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33687 (entry): Removed.
33688 (playground): Likewise.
33689 (grub_multiboot_payload_orig): New variable.
33690 (grub_multiboot_payload_dest): Likewise.
33691 (grub_multiboot_payload_size): Likewise.
33692 (grub_multiboot_payload_eip): Likewise.
33693 (grub_multiboot_payload_esp): Likewise.
33694 (grub_multiboot_boot): Use grub_relocator32_boot.
33695 (grub_multiboot_unload): Free relocators.
33696 (grub_multiboot): Setup stack. Use relocators.
33697 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33698 (grub_multiboot_load_elfXX): Use relocators.
33699 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33700 (grub_multiboot_payload_size): Likewise.
33701 (grub_multiboot_payload_dest): Likewise.
33702 (grub_multiboot_payload_entry_offset): Likewise.
33703 (grub_multiboot_forward_relocator): Likewise.
33704 (grub_multiboot_backward_relocator): Likewise.
33705 (grub_multiboot_real_boot): Likewise.
33706 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33707 (grub_xnu_entry_point): Likewise.
33708 (grub_xnu_arg1): Likewise.
33709 (grub_xnu_stack): Likewise.
33710 (grub_xnu_launch): Removed.
33711 (grub_xnu_boot_resume): New function.
33712 (grub_xnu_boot): Use relocators.
33713 * loader/i386/xnu_helper.S: Removed.
33714 * loader/xnu.c (grub_xnu_heap_start): New variable.
33715 (grub_xnu_heap_size): Likewise.
33716 (grub_xnu_heap_malloc): Use relocators.
33717 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33718
29eb90c6
VS
337192009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33720
33721 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33722 anything.
33723
31027430
CPE
337242009-12-13 Carles Pina i Estany <carles@pina.cat>
33725
33726 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33727 GRUB_ERR_NONE before calling grub_env_set.
33728
dc0c71d9
RM
337292009-12-12 Robert Millan <rmh@aybabtu.com>
33730
33731 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33732 * genmk.rb (video): New variable.
33733 (CLEANFILES, VIDEOFILES): Add #{video}.
33734 (#{video}): New target rule.
33735 * genvideolist.sh: New file.
33736 * Makefile.in (pkglib_DATA): Add video.lst.
33737 (video.lst): New target rule.
33738 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33739 `video.lst'.
33740 * util/grub.d/30_os-prober.in: Replace `vbe' with
33741 ${GRUB_VIDEO_BACKEND}.
33742
2a4bfcf0
RM
337432009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33744
33745 * THANKS: Add David Miller.
33746
2a3aa4d5
RM
337472009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33748
33749 libpciaccess support.
33750
33751 * Makefile.in (LIBPCIACCESS): New variable.
33752 (enable_grub_emu_pci): Likewise.
33753 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33754 util/pci.c and commands/lspci.c.
33755 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33756 * configure.ac (grub-emu-pci): New option.
33757 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33758 (grub_pci_device_unmap_range): Likewise.
33759 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33760 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33761 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33762 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33763 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33764 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33765 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33766 * include/grub/pciutils.h: New file.
33767 * util/pci.c: Likewise.
33768
0ad46fd7 337692009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
33770
33771 * util/misc.c: Don't include <errno.h> twice.
33772
0ad46fd7 337732009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
33774
33775 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33776 name in an error message.
33777 (grub_biosdisk_rw): Likewise.
33778
2e59983c
VS
337792009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33780
33781 Eliminate NTFS 4Gib barrier.
33782
33783 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33784 (read_run_data): Likewise.
33785 (grub_ntfs_read_run_list): Likewise.
33786 (grub_ntfs_read_block): Likewise.
33787 (grub_ntfs_iterate_dir): Likewise.
33788 (read_mft): Likewise.
33789 (read_data): Likewise.
33790 Use COM_LOG_LEN.
33791 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33792 to avoid 64-bit division
33793 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33794 (grub_ntfs_rlst): Use grub_disk_addr_t.
33795
71ee178a
VS
337962009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33797
33798 Eliminate grub-fstest 4Gib barrier.
33799
33800 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33801 (read_file): Fix error reporting.
33802
2520d4b8
VS
338032009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33804
33805 Eliminate hexdump 4Gib barrier.
33806
33807 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33808 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33809
e1f27065
VS
338102009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33811
33812 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33813 Fixes amarsh bug.
33814
1a0f7f45
RM
338152009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33816
33817 Remove miscellaneous files in distclean target.
33818
33819 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33820
c631d9fb
CW
338212009-12-09 Colin Watson <cjwatson@ubuntu.com>
33822
33823 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33824 if they're already set. This resolves the conflict between my
33825 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33826 fixing the --grub-probe option again.
33827 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33828 change on 2009-10-06, so that we now once again source
33829 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33830
7c7b6106
RM
338312009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33832
33833 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33834 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33835 `util/devicemap.c'.
33836
e3069ec1
CPE
338372009-12-08 Carles Pina i Estany <carles@pina.cat>
33838
33839 * include/grub/misc.h (grub_printf_): New declaration.
33840 * kern/misc.c (grub_printf_): New definition.
33841 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33842 instead of `grub_printf' and `_'.
33843 * normal/menu_entry.c (store_completion): Likewise.
33844 (run): Likewise.
33845 (grub_menu_entry_run): Likewise.
33846 * normal/menu_text.c (grub_wait_after_message): Likewise.
33847 (notify_booting): Likewise.
33848 (notify_fallback): Likewise.
33849 (notify_execution_failure): Likewise.
33850
d6ceebf1
CW
338512009-12-07 Colin Watson <cjwatson@ubuntu.com>
33852
33853 * configure.ac: Check for vasprintf.
33854 * util/misc.c (asprintf): Move allocation from here ...
33855 (vasprintf): ... to here. New function.
33856 (xasprintf): New function.
33857 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33858 prototypes.
33859 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33860 * util/grub-mkfont.c (write_font): Likewise.
33861 * util/grub-probe.c (probe): Likewise.
33862 * util/hostdisk.c (make_device_name): Likewise.
33863
de6daa8b
DM
338642009-12-06 David S. Miller <davem@sunset.davemloft.net>
33865
33866 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33867 anything even prefixed with 'cdrom' as a cdrom.
33868
0ad46fd7 338692009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
33870
33871 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33872 mount points.
33873
98d3dc02
CPE
338742009-12-05 Carles Pina i Estany <carles@pina.cat>
33875
33876 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33877 grub_gettext_msg_list.
33878 (grub_gettext_gettranslation_from_position): Return const char *
33879 and not char *.
a2c1332b 33880 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
33881 returns from the list if existing there.
33882 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33883 (grub_gettext_delete_list): Delete the list.
33884 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33885 lang environment variable is changed.
33886 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33887
b283f108
VS
338882009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33889
33890 Rename kernel.mod to kernel.img.
33891
33892 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33893 (kernel_mod_EXPORTS): Rename to ...
33894 (kernel_img_EXPORTS): ... this.
33895 (kernel_mod_SOURCES): Rename to ...
33896 (kernel_img_SOURCES): ... this.
33897 (kernel_mod_HEADERS): Rename to ...
33898 (kernel_img_HEADERS): ... this. All users updated.
33899 (kernel_mod_CFLAGS): Rename to ...
33900 (kernel_img_CFLAGS): ... this.
33901 (kernel_mod_ASFLAGS): Rename to ...
33902 (kernel_img_ASFLAGS): ... this.
33903 (kernel_mod_LDFLAGS): Rename to ...
33904 (kernel_img_LDFLAGS): ... this.
33905 * conf/x86_64-efi.rmk: Likewise.
33906 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33907 (read_kernel_image): ... this. All users updated.
33908 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33909
69055f8a
CPE
339102009-12-05 Carles Pina i Estany <carles@pina.cat>
33911
33912 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33913 (print_spaces): New function.
33914 (grub_print_ucs4): New function.
33915 (getstringwidth): New function.
33916 (print_message_indented): New function.
33917 (print_message): Gettexttize strings using print_message_indented.
33918 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33919 width.
33920 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 33921 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
33922 Gettextize.
33923 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33924 string.
33925 (run): Likewise.
33926 (grub_menu_entry_run): Likewise.
33927 * PO/POTFILES: Add normal/menu_entry.c.
33928
f616f51c
VS
339292009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33930
33931 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33932
57bbe3be
CPE
339332009-12-05 Carles Pina i Estany <carles@pina.cat>
33934
33935 * util/grub-install.in: Install gettext .mo files.
33936 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33937
013d67a1
CPE
339382009-12-05 Carles Pina i Estany <carles@pina.cat>
33939
33940 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33941 grub_dprintf.
33942
fb954db0
RM
339432009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33944
33945 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33946 non-firmware-dependant one in realmode.S takes precedence.
33947
6b8474f8
RM
339482009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33949
33950 * commands/halt.c: Replace misc arch-specific headers with
33951 `<grub/misc.h>'.
33952 * commands/reboot.c: Likewise.
33953 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33954 `<grub/misc.h>'.
33955 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33956 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33957 (kernel_img_SOURCES): ... to here.
33958
33959 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33960 * include/grub/i386/pc/init.h: Likewise.
33961 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33962 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33963
33964 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33965
33966 * include/grub/i386/halt.h: Remove.
33967 * include/grub/i386/reboot.h: Likewise.
33968
33969 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33970
4b2e6ca2
DM
339712009-12-03 David S. Miller <davem@sunset.davemloft.net>
33972
33973 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33974 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33975 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33976 "progname.h"
33977 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33978 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33979 (usage): Add missing comma in printf.
33980
5239348f
RM
339812009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33982
33983 Use the same reboot approach on i386 coreboot and qemu as we do on
33984 BIOS.
33985
33986 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33987 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33988 * kern/i386/reboot.c: Remove.
33989 * include/grub/i386/reboot.h (grub_reboot): Export function.
33990 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33991 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33992 0xf000:0xfff0 instead of 0xffff:0x0000.
33993 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33994 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33995
ef34cbd4
RM
339962009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33997
33998 Fix $srcdir != $objdir build.
33999
34000 * Makefile.in (po/%.po): Rewrite as ...
34001 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
34002
dc9837ea
ST
340032009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
34004
34005 Fix GNU/Hurd grub-install crash.
34006 * util/grub-probe.c (probe): Try to access `path' only when it is not
34007 NULL.
34008
2f857f98
VS
340092009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34010
34011 Correct module naming.
34012
34013 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34014 (GRUB_MOD_INIT(efi_uga)): ... to this
34015 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34016 (GRUB_MOD_FINI(efi_uga)): ... to this
34017 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34018 (GRUB_MOD_INIT(efi_gop)): ... to this
34019 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34020 (GRUB_MOD_FINI(efi_gop)): ... to this
34021
c5448046
RM
340222009-11-28 Robert Millan <rmh.grub@aybabtu.com>
34023
34024 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
34025 translatable.
34026 (usage): Translate `arg' strings using gettext().
34027 Thanks to Jordi Mallach for the suggestion.
34028
c85184ad
VS
340292009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34030
34031 GOP support. Based on patch from Bean
34032 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34033
34034 * video/efi_gop.c: New file.
34035 * include/grub/efi/graphics_output.h: Likewise.
34036 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
34037 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34038 variables.
34039 * conf/x86_64-efi.rmk: Likewise.
34040
8a4c48d8
VS
340412009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34042
34043 Rename efi_fb to efi_uga.
34044
34045 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34046 'efi_uga.mod'.
34047 (efi_fb_mod_SOURCES): Rename this ...
34048 (efi_uga_mod_SOURCES): ... to this.
34049 (efi_fb_mod_CFLAGS): Rename this ...
34050 (efi_uga_mod_CFLAGS): ... to this.
34051 (efi_fb_mod_LDFLAGS): Rename this ...
34052 (efi_uga_mod_LDFLAGS): ... to this.
34053 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34054 'efi_uga.mod'.
34055 (efi_fb_mod_SOURCES): Rename this ...
34056 (efi_uga_mod_SOURCES): ... to this.
34057 (efi_fb_mod_CFLAGS): Rename this ...
34058 (efi_uga_mod_CFLAGS): ... to this.
34059 (efi_fb_mod_LDFLAGS): Rename this ...
34060 (efi_uga_mod_LDFLAGS): ... to this.
34061 * video/efi_fb.c: Move this ...
34062 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34063
fb6c1a7b
RM
340642009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34065
34066 * po/README: New file. Explain our PO file workflow.
34067
3bc7896c
RM
340682009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34069
34070 * po/ChangeLog: Remove. Move relevant entries back to ...
34071 * ChangeLog: ... here.
34072 * po/ca.po: Remove (now handled by TLP).
34073 * po/id.po: Likewise.
34074 * po/zh_CN.po: Likewise.
34075 * Makefile.in (LINGUAS): Initialize in a way that supports
34076 empty set.
34077
9ed4841d
RM
340782009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34079
34080 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34081 reliing on po/LINGUAS.
34082 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34083 (po/%.po): ... this.
34084
0ad46fd7 340852009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
34086
34087 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34088 (main): Use `program_name' instead of nonexistent `progname'.
34089
e30dd392
FZ
340902009-11-26 Felix Zielcke <fzielcke@z-51.de>
34091
34092 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34093 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34094
7656de4f
RM
340952009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34096
34097 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34098 commit.
34099 * conf/i386-efi.rmk: Likewise.
34100 * conf/i386-ieee1275.rmk: Likewise.
34101 * conf/powerpc-ieee1275.rmk: Likewise.
34102 * conf/sparc64-ieee1275.rmk: Likewise.
34103 * conf/x86_64-efi.rmk: Likewise.
34104
db77c4d4
FZ
341052009-11-26 Felix Zielcke <fzielcke@z-51.de>
34106
34107 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34108
a755bb04
FZ
341092009-11-26 Felix Zielcke <fzielcke@z-51.de>
34110
34111 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34112
8a4c07fd
RM
341132009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34114
34115 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34116 (grub_mkdevicemap_SOURCES): New variable.
34117 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34118 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34119 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34120 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34121 (grub_mkdevicemap_SOURCES): Remove.
34122 * conf/i386-efi.rmk: Likewise.
34123 * conf/i386-ieee1275.rmk: Likewise.
34124 * conf/i386-pc.rmk: Likewise.
34125 * conf/powerpc-ieee1275.rmk: Likewise.
34126 * conf/sparc64-ieee1275.rmk: Likewise.
34127 * conf/x86_64-efi.rmk: Likewise.
34128 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34129 (usage): Fix strings to use `program_name'.
34130 (main): Initialize gettext.
34131 * util/grub-editenv.c: Likewise.
34132 * util/grub-emu.c: Likewise.
34133 * util/grub-fstest.c: Likewise.
34134 * util/grub-mkdevicemap.c: Likewise.
34135 * util/grub-mkfont.c: Likewise.
34136 * util/grub-mkrelpath.c: Likewise.
34137 * util/grub-pe2elf.c: Likewise.
34138 * util/grub-probe.c: Likewise.
34139 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34140 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34141 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34142
34143 * util/misc.c: Include `"progname.h"'.
34144 (progname): Remove variable.
34145 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34146
6f61ed55
FZ
341472009-11-25 Felix Zielcke <fzielcke@z-51.de>
34148
34149 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34150 printf and print a newline after the menuentry header line.
34151 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34152
f022876b
FZ
341532009-11-25 Felix Zielcke <fzielcke@z-51.de>
34154
34155 autoconf >= 2.60 support $(localedir).
34156
34157 * INSTALL: Note that autoconf 2.60 is required.
34158 * configure.ac (AC_PREREQ): Bump to 2.60.
34159 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34160 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34161
6717926e
YB
341622009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34163
34164 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34165 aclocal is run.
34166
08806a54
RM
341672009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34168
34169 * normal/main.c (grub_normal_read_line): Fix off-by-one
34170 buffer overflow.
34171
13b33fba
RM
341722009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34173
34174 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34175 "parser.grub" in grub_command_execute() call.
34176
4a8572e9
CPE
341772009-11-24 Carles Pina i Estany <carles@pina.cat>
34178
34179 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34180 * conf/i386-efi.rmk: Likewise.
34181 * conf/i386-ieee1275.rmk: Likewise.
34182 * conf/i386-pc.rmk: Likewise.
34183 * conf/powerpc-ieee1275.rmk: Likewise.
34184 * conf/sparc64-ieee1275.rmk: Likewise.
34185 * conf/x86_64-efi.rmk: Likewise.
34186 * gettext/gettex.c: Include <grub/i18n.h>.
34187 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34188 here ...
34189 * include/grub/i18n.h: ... to here
34190 * include/grub/i18n.h: ... to here.
34191 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 34192 (grub_gettext_dummy): Move above user.
4a8572e9 34193
bee48093
FZ
341942009-11-24 Felix Zielcke <fzielcke@z-51.de>
34195
34196 * util/Makefile.in (install-local): Convert a `for' into a normal
34197 shell expansion.
34198
a031e91c
RM
341992009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34200
34201 * autogen.sh: Add automake call.
34202 * config.guess: Remove.
34203 * config.sub: Likewise.
34204 * install-sh: Likewise.
34205
26bec39d
FZ
342062009-11-24 Felix Zielcke <fzielcke@z-51.de>
34207
34208 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34209
8e2532fd
FZ
342102009-11-24 Felix Zielcke <fzielcke@z-51.de>
34211
34212 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34213 function to a normal shell `for'.
34214
fefa1b7d
FZ
342152009-11-24 Felix Zielcke <fzielcke@z-51.de>
34216
34217 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34218
4501250b
FZ
342192009-11-24 Felix Zielcke <fzielcke@z-51.de>
34220
34221 * util/grub-mkrelpath.c: New file.
34222 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34223 (grub_mkrelpath_SOURCES): New variable.
34224 * include/grub/util/misc.h: New function prototype.
34225 * util/misc.c (make_system_path_relative_to_its_root): New function.
34226
34227 * util/grub-mkconfig_lib.in (bindir): New variable.
34228 (grub_mkrelpath): Likewise.
34229 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34230
34231 * util/probe.c (probe): Make the file path relative to its root.
34232 Change a info message to use the GRUB path. Enable again the
34233 check if we can read the file with GRUB facilities.
34234
34235 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34236 to its root.
34237
11d9778b
FZ
342382009-11-24 Felix Zielcke <fzielcke@z-51.de>
34239
34240 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34241 platform.
34242
4465287d
FZ
342432009-11-24 Felix Zielcke <fzielcke@z-51.de>
34244
34245 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34246 strncmp().
34247
62b47f22
FZ
342482009-11-24 Felix Zielcke <fzielcke@z-51.de>
34249
34250 * util/getroot.c (grub_util_is_dmraid): New function.
34251 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34252 devices as normal ones, not as LVM.
34253
1eafb9b9 342542009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
34255
34256 * conf/common.rmk: Add grub-gettext_lib target and updates
34257 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34258 LDFLAGS.
34259 * gettext/gettext.c: New file. (Reads mo files).
34260 * include/grub/file.h (grub_file_pread): New prototype.
34261 * include/grub/i18n.h (_): New prototype.
34262 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34263 prototypes.
34264 * kern/misc.c (grub_gettext_dummy): New function.
34265 * normal/menu_text.c: Include <grub/i18n.h>.
34266 * normal/menu_text.c (print_timeout): Gettexttize string.
34267 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
34268 * po/POTFILES: Add `normal/menu_text.c'.
34269 * po/ca.po: Add new translations.
c3ea6bd4
CPE
34270 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34271 gettext module and defines locale_dir and lang in grub.cfg.
34272 * NEWS: Add gettext support.
34273
0fdb2568
RM
342742009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34275
34276 * util/hostdisk.c: Include `<grub/i18n.h>'.
34277 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34278 (make_device_name): Rewrite using asprintf.
34279 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34280 (find_system_device): If a device is not found, generate one just
34281 by reusing the OS path name.
34282 (read_device_map): Make it permissible for device.map not to exist.
34283
f515aa62
RM
342842009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34285
34286 * script/sh/execute.c: Move from here ...
34287 * script/execute.c: ... to here. Update all users.
34288 * script/sh/function.c: Move from here ...
34289 * script/function.c: ... to here. Update all users.
34290 * script/sh/lexer.c: Move from here ...
34291 * script/lexer.c: ... to here. Update all users.
34292 * script/sh/main.c: Move from here ...
34293 * script/main.c: ... to here. Update all users.
34294 * script/sh/parser.y: Move from here ...
34295 * script/parser.y: ... to here. Update all users.
34296 * script/sh/script.c: Move from here ...
34297 * script/script.c: ... to here. Update all users.
34298
f84b481b
RM
342992009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34300
34301 * configure.ac: Detect all `emu' platforms. Define
34302 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34303 --enable-grub-emu logic. Disable include/grub/machine
34304 symlink on `emu' platforms.
34305
34306 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34307 * gensymlist.sh.in: Likewise.
34308
34309 * include/grub/i386/coreboot/machine.h: Remove file.
34310 * include/grub/i386/efi/machine.h: Likewise.
34311 * include/grub/i386/ieee1275/machine.h: Likewise.
34312 * include/grub/i386/pc/machine.h: Likewise.
34313 * include/grub/i386/qemu/machine.h: Likewise.
34314 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34315 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34316 * include/grub/x86_64/efi/machine.h: Likewise.
34317
34318 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34319 * commands/halt.c: Likewise.
34320 * commands/reboot.c: Likewise.
34321 * include/grub/autoefi.h: Likewise.
34322 * include/grub/i386/at_keyboard.h: Likewise.
34323 * include/grub/i386/kernel.h: Likewise.
34324 * include/grub/i386/loader.h: Likewise.
34325 * include/grub/i386/pc/memory.h: Likewise.
34326 * kern/dl.c: Likewise.
34327 * kern/i386/coreboot/init.c: Likewise.
34328 * loader/i386/bsd.c: Likewise.
34329 * loader/i386/linux.c: Likewise.
34330 * loader/multiboot_loader.c: Likewise.
34331 * term/i386/pc/serial.c: Likewise.
34332 * term/usb_keyboard.c: Likewise.
34333
34334 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34335 `<grub/machine/machine.h>'
34336 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34337 * util/misc.c: Remove `<grub/machine/machine.h>' and
34338 `<grub/machine/time.h>'.
34339
34340 * Makefile.in (enable_grub_emu): Remove variable.
34341 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34342
34343 * conf/any-emu.rmk: New file.
34344 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34345 (grub_emu_init.c): Move from here ...
34346 * conf/any-emu.rmk: ... to here.
34347
34348 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34349 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34350 * conf/any-emu.rmk: ... to here.
34351
4efeab03
RM
343522009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34353
34354 * include/grub/parser.h (grub_parser_register): Document need
34355 of `name' parameter.
34356 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34357 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34358 "sh" to "grub".
34359
ea1dd8bf
RM
343602009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34361
34362 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34363 `$(XGETTEXT)'.
34364 * include/grub/i18n.h (N_): New macro.
34365 * util/mkisofs/mkisofs.h: Likewise.
34366 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34367 around N_().
34368 (usage): Use gettext() to translate help strings when printing them.
34369
0c140626
RM
343702009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34371
34372 Based on patch from Bean
34373 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34374
34375 * video/efi_fb.c: New file.
34376 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34377 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34378 variables.
34379 * conf/x86_64-efi.rmk: Likewise.
34380
87d58298
RM
343812009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34382
34383 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34384 * util/i386/pc/grub-setup.c: Likewise.
34385
994cc3a3
ST
343862009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34387
34388 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34389 <hurd/fs.h>
34390 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34391 file_get_storage_info to implement grub_guess_root_device.
34392
26a61d6a
FZ
343932009-11-21 Felix Zielcke <fzielcke@z-51.de>
34394
34395 * Makefile.in (target): Use make's builtin $(shell) function
34396 instead of calling directly $(SHELL) to create the locale directories,
34397 inside the $(foreach) function.
34398
74ff1dd5
FZ
343992009-11-21 Felix Zielcke <fzielcke@z-51.de>
34400
34401 * util/grub-mkrescue.in: Print an error and usage if output option
34402 has not been given.
34403
0b787d0e
FZ
344042009-11-21 Felix Zielcke <fzielcke@z-51.de>
34405
34406 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34407 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34408 root and /boot are on different devices.
34409
1164b270
RM
344102009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34411
34412 Fix build for srcdir != objdir.
34413
34414 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34415 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34416 $(srcdir).
34417 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34418 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34419 reference for input.
34420
13774a2f
RM
344212009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34422
34423 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34424 or hardlinking it). Remove -J option, Joliet is not compatible with
34425 multiple source directories.
34426
efda854e
RM
344272009-11-21 Carles Pina i Estany <carles@pina.cat>
344282009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34429
34430 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34431 (process_input_dir): New function. Process an arbitrary input
34432 directory.
34433 Misc adjustments to support both "override mode" and system-wide mode.
34434
6c09890c
FZ
344352009-11-20 Felix Zielcke <fzielcke@z-51.de>
34436
34437 * configure.ac (UNIFONT_BDF): Rename to ...
34438 (FONT_SOURCE): ... this. Update all users.
34439
a797824f
FZ
344402009-11-20 Felix Zielcke <fzielcke@z-51.de>
34441
34442 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34443 to the list of unifont files to look for.
34444
cd4f42b0
RM
344452009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34446
34447 Patch from Joe Auricchio <jauricchio@gmail.com>
34448 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34449 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34450 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34451
393c783d
FZ
344522009-11-19 Felix Zielcke <fzielcke@z-51.de>
34453
34454 * Makefile.in (install-local): Add a missing backslash.
34455
b2f1e327
FZ
344562009-11-19 Felix Zielcke <fzielcke@z-51.de>
34457
34458 * include/grub/x86_64/io.h: New file.
34459
f577f7a0
RM
344602009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34461
34462 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34463 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34464 Include `"progname.h"'.
34465 (main): Initialize gettext.
34466 * util/i386/pc/grub-setup.c: Gettexttize.
34467 * util/i386/pc/grub-mkimage.c: Likewise.
34468
34469 * Makefile.in (po/*.po): Redefine as ...
34470 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34471
3bc7896c
RM
34472 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34473
c37943b6
RM
344742009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34475
34476 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34477 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34478 (program_name): Remove.
34479 (main): Initialize gettext support.
6323f705
RM
34480 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34481 Include `<libintl.h>'.
34482 (_): New macro.
c37943b6
RM
34483
34484 * util/mkisofs/eltorito.c: Gettexttize.
34485 * util/mkisofs/joliet.c: Likewise.
34486 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
34487 * util/mkisofs/multi.c: Likewise.
34488 * util/mkisofs/rock.c: Likewise.
34489 * util/mkisofs/tree.c: Likewise.
34490 * util/mkisofs/write.c: Likewise.
34491
3bc7896c
RM
34492 * po/POTFILES: Update with new files.
34493
5ce77c6e
RM
344942009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34495
34496 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34497 * util/mkisofs/iso9660.h: Likewise.
34498 * util/mkisofs/joliet.c: Likewise.
34499 * util/mkisofs/mkisofs.c: Likewise.
34500 * util/mkisofs/mkisofs.h: Likewise.
34501 * util/mkisofs/rock.c: Likewise.
34502 * util/mkisofs/tree.c: Likewise.
34503 * util/mkisofs/write.c: Likewise.
34504
34505 * util/mkisofs/eltorito.c (rcsid): Remove.
34506 * util/mkisofs/hash.c: Likewise.
34507 * util/mkisofs/joliet.c: Likewise.
34508 * util/mkisofs/name.c: Likewise.
34509 * util/mkisofs/rock.c: Likewise.
34510 * util/mkisofs/tree.c: Likewise.
34511 * util/mkisofs/write.c: Likewise.
34512
1dabbc77
RM
345132009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34514
34515 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34516 instead of static allocation.
34517 * util/mkisofs/match.h: Likewise.
34518
633877cb
RM
345192009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34520
3bc7896c
RM
34521 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34522 and `util/grub.d/10_linux.in'.
633877cb
RM
34523 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34524 translatable Shell files.
34525
af1c0c85
RM
345262009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34527
34528 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34529
769ae37b
RM
345302009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34531
34532 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 34533 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
34534 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34535 Add gettext initialization.
34536 (kfreebsd_entry): Make menuentry output translatable.
34537
345382009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34539
34540 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34541 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34542 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34543 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34544 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 34545 * po/LINGUAS: New file.
769ae37b
RM
34546
345472009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34548
34549 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34550 other things).
34551 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34552 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34553 bindtextdomain() calls for gettext initialization.
34554
345552009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34556
34557 * gnulib/progname.c: New file (imported from Gnulib).
34558 * gnulib/progname.h: Likewise.
34559 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34560 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34561 (usage): Replace `progname' with `program_name'.
34562 (main): Use set_program_name() for program name initialization.
34563
345642009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34565
34566 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34567 from here ...
34568 * Makefile.in (CPPFLAGS): ... to here.
34569
345702009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34571
34572 * aclocal.m4: Move from here ...
34573 * acinclude.m4: ... to here.
34574 * autogen.sh: Add call to `aclocal'.
34575 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34576
345772009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34578
34579 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34580 (LINGUAS): New variable.
34581 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34582 (install-local): Install MO files.
34583 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34584 * include/grub/i18n.h: New file.
3bc7896c
RM
34585 * po/POTFILES: New file.
34586 * po/ca.po: New file.
769ae37b
RM
34587 * util/grub.d/10_linux.in (bindir): New variable.
34588 Add gettext initialization.
34589 (linux_entry): Make menuentry output translatable.
34590 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34591 (usage): Make --help output translatable.
34592 (main): Initialize gettext.
34593
02c0a6ad
RM
345942009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34595
34596 * import_gcry.py: New file (written by Vladimir with minor
34597 adjustments).
34598 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34599 ciphers.
34600 * INSTALL: Document that Python is required for bootstrap.
34601
346022009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34603
34604 Import ciphers from libgcrypt 1.4.4.
34605
34606 * lib/libgcrypt/cipher/ChangeLog
34607 * lib/libgcrypt/cipher/ac.c
34608 * lib/libgcrypt/cipher/arcfour.c
34609 * lib/libgcrypt/cipher/bithelp.h
34610 * lib/libgcrypt/cipher/blowfish.c
34611 * lib/libgcrypt/cipher/camellia-glue.c
34612 * lib/libgcrypt/cipher/camellia.c
34613 * lib/libgcrypt/cipher/camellia.h
34614 * lib/libgcrypt/cipher/cast5.c
34615 * lib/libgcrypt/cipher/cipher.c
34616 * lib/libgcrypt/cipher/crc.c
34617 * lib/libgcrypt/cipher/des.c
34618 * lib/libgcrypt/cipher/dsa.c
34619 * lib/libgcrypt/cipher/ecc.c
34620 * lib/libgcrypt/cipher/elgamal.c
34621 * lib/libgcrypt/cipher/hash-common.c
34622 * lib/libgcrypt/cipher/hash-common.h
34623 * lib/libgcrypt/cipher/hmac-tests.c
34624 * lib/libgcrypt/cipher/md.c
34625 * lib/libgcrypt/cipher/md4.c
34626 * lib/libgcrypt/cipher/md5.c
34627 * lib/libgcrypt/cipher/primegen.c
34628 * lib/libgcrypt/cipher/pubkey.c
34629 * lib/libgcrypt/cipher/rfc2268.c
34630 * lib/libgcrypt/cipher/rijndael-tables.h
34631 * lib/libgcrypt/cipher/rijndael.c
34632 * lib/libgcrypt/cipher/rmd.h
34633 * lib/libgcrypt/cipher/rmd160.c
34634 * lib/libgcrypt/cipher/rsa.c
34635 * lib/libgcrypt/cipher/seed.c
34636 * lib/libgcrypt/cipher/serpent.c
34637 * lib/libgcrypt/cipher/sha1.c
34638 * lib/libgcrypt/cipher/sha256.c
34639 * lib/libgcrypt/cipher/sha512.c
34640 * lib/libgcrypt/cipher/tiger.c
34641 * lib/libgcrypt/cipher/twofish.c
34642 * lib/libgcrypt/cipher/whirlpool.c
34643
af2f93ac
RM
346442009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34645
34646 Fix build for systems without error().
34647
34648 * gnulib/error.c: New file (imported from Gnulib).
34649 * gnulib/error.h: Likewise.
34650 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34651 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34652 (this variable is now used by error()).
34653
73fb3dd5
FZ
346542009-11-16 Felix Zielcke <fzielcke@z-51.de>
34655
814f5e96
FZ
34656 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34657 instead of relying that char is signed.
73fb3dd5 34658
a691ca33
VS
346592009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34660
34661 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34662 blocksize different from specified.
34663 (grub_pxefs_read): Likewise.
34664
2af8f0f4
FZ
346652009-11-16 Felix Zielcke <fzielcke@z-51.de>
34666
34667 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34668
34669 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34670 (grub_ata_readwrite): Likewise. Update 2 format strings.
34671 (grub_atapi_read): Likewise.
34672
34673 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34674 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34675 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34676 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34677 (ata_mod_LDFLAGS): Move from here ...
34678 * conf/i386.rmk: ... to here ...
34679 * conf/x86_64-efi.rmk: ... and here.
34680 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34681 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34682
83bdecaf
RM
346832009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34684
34685 Relicense multiboot.h, with RMS' blessing.
34686
34687 * include/multiboot.h: Change to X11 license.
34688
fd6fd3d7
RM
346892009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34690
34691 Support --version in grub-mkisofs.
34692
34693 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34694 (OPTION_VERSION): New macro.
34695 (ld_options): Recognize --version.
34696 (usage): Move `program_name' from here ...
34697 (program_name): ... to here. Add `static' qualifier.
34698 (main): Recognize `OPTION_VERSION'.
34699
16a88c49
FZ
347002009-11-15 Felix Zielcke <fzielcke@z-51.de>
34701
34702 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34703 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34704
a4158476
RM
347052009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34706
34707 Fix help2man generation for mkisofs.
34708
34709 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34710 (usage): Send output to stdout (rather than stderr).
34711
fc2208b0
RM
347122009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34713
34714 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34715 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34716 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34717 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34718 (bin_SCRIPTS): Add `grub-mkfloppy'.
34719 (grub_mkfloppy_SOURCES): New variable.
34720
34721 * util/grub-mkrescue.in: New file.
34722 * util/i386/pc/grub-mkfloppy.in: New file.
34723
34724 * util/i386/coreboot/grub-mkrescue.in: Remove.
34725 * util/i386/pc/grub-mkrescue.in: Remove.
34726
8d0edf4a
RM
347272009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34728
34729 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34730 from here ...
34731 * include/multiboot.h (struct multiboot_header): ... to here. Update
34732 all users.
34733 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34734 from here ...
34735 * include/multiboot.h (struct multiboot_info): ... to here. Update
34736 all users.
34737 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34738 from here ...
34739 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34740 Update all users.
34741 * include/grub/multiboot.h (struct grub_mod_list): Move
34742 from here ...
34743 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34744 Update all users.
34745
a73f5969
RM
347462009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34747
34748 * include/multiboot2.h (multiboot_word): Rename from this ...
34749 (multiboot2_word): ... to this. Update all users.
34750 (multiboot_header): Rename from this ...
34751 (multiboot2_header): ... to this. Update all users.
34752 (multiboot_tag_header): Rename from this ...
34753 (multiboot2_tag_header): ... to this. Update all users.
34754 (multiboot_tag_start): Rename from this ...
34755 (multiboot2_tag_start): ... to this. Update all users.
34756 (multiboot_tag_name): Rename from this ...
34757 (multiboot2_tag_name): ... to this. Update all users.
34758 (multiboot_tag_module): Rename from this ...
34759 (multiboot2_tag_module): ... to this. Update all users.
34760 (multiboot_tag_memory): Rename from this ...
34761 (multiboot2_tag_memory): ... to this. Update all users.
34762 (multiboot_tag_unused): Rename from this ...
34763 (multiboot2_tag_unused): ... to this. Update all users.
34764 (multiboot_tag_end): Rename from this ...
34765 (multiboot2_tag_end): ... to this. Update all users.
34766
1c8927f0
RM
347672009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34768
34769 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34770 this platform we should support Multiboot1 first.
34771
34772 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34773 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34774 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34775
6e1e0d89
RM
347762009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34777
34778 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34779 of write calls (converting them to fwrite() if they aren't already).
34780 (get_torito_desc): Likewise.
34781 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34782
7f2b34d8
RM
347832009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34784
34785 * util/i386/pc/grub-install.in: Move from here ...
34786 * util/grub-install.in: ... to here. Update all users.
34787
c0ef3311
CW
347882009-11-11 Colin Watson <cjwatson@ubuntu.com>
34789
34790 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34791
e1f240ff
RM
347922009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34793
34794 Support for El Torito without floppy emulation.
34795
34796 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34797 (init_boot_catalog): Improve error handling.
34798 (get_torito_desc): Don't use floppy emulation unless requested by
34799 user. Patch boot information table when requested via
34800 `-boot-info-table'.
34801 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34802 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34803 (use_boot_info_table): New variables.
34804 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34805 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34806 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34807 `--eltorito-emul-floppy'.
34808 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34809 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34810 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34811 (use_boot_info_table, get_731): New prototypes.
34812 * util/mkisofs/write.c (get_731): New function.
34813
af7d4de5
FZ
348142009-11-11 Felix Zielcke <fzielcke@z-51.de>
34815
34816 Fix the generation of the man page.
34817
34818 * util/pc/i386/grub-install.in: Source
34819 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34820
2c55dbc0
RM
348212009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34822
34823 Large file support for grub-mkisofs.
34824
34825 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34826 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34827 (session_start): Upgrade type to `uint64_t'. Update all users.
34828 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34829 (struct directory_entry): Upgrade type of `starting_block' and
34830 `size' to `uint64_t'. Update all users.
34831 (struct deferred): Remove unused structure.
34832 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34833 Update all users.
34834 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34835 file is larger than `UINT32_MAX'.
34836 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34837 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34838 return value.
34839 (struct deferred_write): Upgrade type of `extent' and `size' to
34840 `uint64_t'. Update all users.
34841 (last_extent_written): Upgrade type to `uint64_t'. Update all
34842 users.
34843 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34844 Update all users. Upgrade type of `remain' to `int64_t' and
34845 `use' to `size_t'. Use error() to handle fread() errors.
34846 (write_files): Rely on write_one_file() rather than calling
34847 xfwrite() directly.
34848
6a9cead5
FZ
348492009-11-09 Felix Zielcke <fzielcke@z-51.de>
34850
34851 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34852
4825d790
RM
348532009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34854
34855 * util/mkisofs/fnmatch.c: Remove.
34856 * util/mkisofs/getopt1.c: Likewise.
34857 * util/mkisofs/getopt.c: Likewise.
34858 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34859 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34860 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34861 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34862 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34863
34864 * configure.ac: Detect `mingw32msvc' host_os.
34865 Check for lstat(), getuid() and getgid().
34866
34867 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34868 instances of `u_char' with `uint8_t'.
34869
34870 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34871 [!HAVE_GETUID] (getuid): New function (stub).
34872 [!HAVE_GETGID] (getgid): Likewise.
34873 [!HAVE_LSTAT] (lstat): Likewise.
34874 [!S_IROTH] (S_IROTH): New macro (dummy).
34875 [!S_IRGRP] (S_IRGRP): Likewise.
34876
84b860d8
RM
348772009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34878
34879 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34880 conditional expression).
34881
66e9b712
RM
348822009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34883
34884 Import from Gnulib.
34885
34886 * gnulib/fnmatch.c: New file.
34887 * gnulib/fnmatch.h: Likewise.
34888 * gnulib/fnmatch_loop.c: Likewise.
34889 * gnulib/getopt.c: Likewise.
34890 * gnulib/getopt.h: Likewise.
34891 * gnulib/getopt1.c: Likewise.
34892 * gnulib/getopt_int.h: Likewise.
34893 * gnulib/gettext.h: Likewise.
34894
34f4a5b0
RM
348952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34896
34897 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34898 * normal/handler.c (read_handler_list): Likewise.
34899
ac451143
RM
349002009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34901
34902 Misc cleanup.
34903
34904 * kern/command.c (grub_register_command_prio): Use
34905 grub_zalloc() instead of explicitly zeroing data.
34906 * kern/list.c: Include `<grub/mm.h>'.
34907 (grub_named_list_find): Replace `0' with `NULL'.
34908 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34909 (fs_module_list): Change type to `grub_named_list_t'. Update all
34910 users.
34911 * normal/dyncmd.c (read_command_list): Add space between function
34912 call and parenthesis.
34913 * normal/handler.c (read_handler_list): Likewise.
34914
4089b167
RM
349152009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34916
34917 * normal/auth.c (punishment_delay): Moved from here ...
34918 (grub_auth_strcmp): ... to here (inside function).
34919
325f5037
RM
349202009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34921
34922 * include/grub/list.h (struct grub_named_list): Remove `const'
34923 qualifier from `name'.
34924 (struct grub_prio_list): Likewise.
34925
7aea29a3
RM
349262009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34927
34928 * normal/auth.c: Include `<grub/time.h>'.
34929 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34930
3fd6f044
RM
349312009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34932
34933 * normal/auth.c (punishment_delay): New variable.
34934 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34935 (grub_auth_check_authentication): Punish failed login attempts with
34936 an incremental (2^N) delay.
34937
a4cd68e4
RM
349382009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34939
34940 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34941 path with $(srcdir).
34942
7ad12f43
VS
349432009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34944
34945 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34946
c1129f03
RM
349472009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34948
34949 * util/i386/coreboot/grub-mkrescue.in: New file.
34950 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34951 variables.
34952
34953 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34954 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34955 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34956 requirements.
34957 * util/mkisofs/defaults.h: New file.
34958 * util/mkisofs/eltorito.c: Likewise.
34959 * util/mkisofs/exclude.h: Likewise.
34960 * util/mkisofs/fnmatch.c: Likewise.
34961 * util/mkisofs/getopt.c: Likewise.
34962 * util/mkisofs/getopt1.c: Likewise.
34963 * util/mkisofs/hash.c: Likewise.
34964 * util/mkisofs/include/fctldefs.h: Likewise.
34965 * util/mkisofs/include/mconfig.h: Likewise.
34966 * util/mkisofs/include/prototyp.h: Likewise.
34967 * util/mkisofs/include/statdefs.h: Likewise.
34968 * util/mkisofs/iso9660.h: Likewise.
34969 * util/mkisofs/joliet.c: Likewise.
34970 * util/mkisofs/match.c: Likewise.
34971 * util/mkisofs/match.h: Likewise.
34972 * util/mkisofs/mkisofs.c: Likewise.
34973 * util/mkisofs/mkisofs.h: Likewise.
34974 * util/mkisofs/multi.c: Likewise.
34975 * util/mkisofs/name.c: Likewise.
34976 * util/mkisofs/rock.c: Likewise.
34977 * util/mkisofs/tree.c: Likewise.
34978 * util/mkisofs/write.c: Likewise.
34979
ec8bb77d
VS
349802009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34981
34982 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34983 being insecure.
34984
3716b12c
RM
349852009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34986
34987 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34988 `grub-mkimage' (and use $0 when possible).
34989
b97b7b91
RM
349902009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34991
34992 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34993 error message for excessively large memory map.
34994
04114812
RM
349952009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34996
34997 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34998 executable bit.
34999
e4eb2373
RM
350002009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35001
35002 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
35003 message for coreboot users.
35004
c926e1d5 350052009-11-07 Robert Millan <rmh.grub@aybabtu.com>
35006
35007 Fix build with GNU gold.
35008
35009 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
35010 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
35011 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
35012 link addresses.
35013 * aclocal.m4: Likewise.
35014
86e5b1db 350152009-11-04 Felix Zielcke <fzielcke@z-51.de>
35016
35017 * configure.ac (AC_PREREQ): Bump to 2.59d.
35018 * INSTALL: Make it more clear when Autoconf and Ruby are
35019 needed and when to run `./autogen.sh'.
35020
246cd78f 350212009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
35022
35023 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
35024 OSes.
35025
4f9dfb37 350262009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35027
35028 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
35029
b82bd5e1 350302009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35031
35032 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
35033 giving it to GNU Mach.
35034
ff1a9bca 350352009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35036
35037 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
35038 GNU partition number to get internal GRUB partition number.
35039
61697d9c 350402009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35041
35042 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
35043 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
35044
a50569e1 350452009-11-01 Robert Millan <rmh.grub@aybabtu.com>
35046
35047 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
35048 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
35049 case.
35050
5b153867 350512009-11-01 Felix Zielcke <fzielcke@z-51.de>
35052
35053 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
35054
d9e2cd70 350552009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35056
35057 Fix build problem.
35058
35059 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
35060 `-isystem=$(srcdir)/include'.
35061
805111a4 350622009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35063
35064 * util/i386/pc/grub-install.in: Remove hint that device.map should be
35065 checked (grub-install doesn't currently rely on it).
35066
fa6e945f 350672009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35068
35069 Revert SVN r2660.
35070
35071 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35072 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35073 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35074 * conf/i386-ieee1275.rmk: Likewise.
35075 * conf/i386-pc.rmk: Likewise.
35076 * conf/powerpc-ieee1275.rmk: Likewise.
35077 * conf/sparc64-ieee1275.rmk: Likewise.
35078 * conf/x86_64-efi.rmk: Likewise.
35079
cee15086 350802009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35081
35082 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35083
95b9239e 350842009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35085
35086 * include/grub/misc.h: Stop checking for APPLE_CC.
35087
2ed19dfd 350882009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35089
35090 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35091 doesn't cause an infinite call loop.
35092
fdcdde19 350932009-10-28 Felix Zielcke <fzielcke@z-51.de>
35094
35095 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35096 strings.
35097
cefabfe1 350982009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35099
35100 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35101 variable.
35102 * Makefile.in: Likewise.
35103
ed96ab6d 351042009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35105
35106 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35107
0579b753 351082009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35109
35110 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35111
478df409 351122009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35113
35114 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35115
083d1679 351162009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35117
35118 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35119 from here ...
35120 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35121
5947ae32 351222009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35123
35124 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35125 in $(MAKEINFO) invocation. This makes it clear in output that
35126 errors are being ignored.
35127
94180ff6 351282009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35129
35130 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35131 from here ...
35132 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35133 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35134 * conf/i386-ieee1275.rmk: Likewise.
35135 * conf/i386-pc.rmk: Likewise.
35136 * conf/powerpc-ieee1275.rmk: Likewise.
35137 * conf/sparc64-ieee1275.rmk: Likewise.
35138 * conf/x86_64-efi.rmk: Likewise.
35139
9031b03a 351402009-10-26 Colin Watson <cjwatson@ubuntu.com>
35141
35142 * util/grub-editenv.c (main): If only a command is given, use
35143 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35144 (usage): FILENAME is now optional and has a default.
35145
e4f6809b 351462009-10-26 Colin Watson <cjwatson@ubuntu.com>
35147
35148 Improve grub-mkconfig performance when there are several menu
35149 entries on a single filesystem.
35150
35151 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35152 prepare_grub_to_access_device.
35153 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35154 * util/grub.d/30_os-prober.in: Likewise.
35155
67937d4d 351562009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35157
35158 * util/grub.d/10_freebsd.in: Remove.
35159 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35160 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35161
ee3756cc 351622009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35163
5c35048e 35164 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 35165
4dea1c6f 351662009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35167
35168 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35169 grub_util_error() call.
35170
042484d7 351712009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35172
35173 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35174 `reserved_first_sector' member.
35175 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35176 `reserved_first_sector' to 1.
35177 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35178 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35179 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35180 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35181 filesystems which begin at first sector.
35182 (options): New option --skip-fs-probe.
35183 (main): Handle --skip-fs-probe and pass it to setup().
35184
d64448a7 351852009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35186
35187 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35188 (memset): Fix function prototype.
35189
508d42ec 351902009-10-25 Robert Millan <rmh.grub@aybabtu.com>
351912009-10-25 Vasily Averin <vvs@parallels.com>
35192
35193 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35194 `dirent.direntlen == 0'.
35195
b240e30c 351962009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35197
35198 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35199 `cpio'.
35200 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35201
346e7fbe 352022009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35203
35204 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35205 `__trampoline_setup' and `__ucmpdi2'.
35206 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35207 that libgcc provides.
35208
cdb308b0 352092009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35210
35211 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35212 * include/grub/sparc64/libgcc.h (memset): Likewise.
35213 * include/grub/misc.h (memset, memcmp): New function prototypes.
35214
fb26abc2 352152009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35216
35217 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35218 `cpio'.
35219 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35220
f6693890 352212009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35222
35223 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35224 * docs/grub.cfg: Compensate for recent change in multiboot
35225 loader (since 2009-08-14 it won't pass filename to payload).
35226 * util/grub.d/10_hurd.in: Likewise.
35227
0933cdc0 352282009-10-21 Felix Zielcke <fzielcke@z-51.de>
35229
35230 * config.guess: Update to latest version from config git
35231 repository.
35232 * config.sub: Likewise.
35233
3b2fe8c2 352342009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35235
35236 Fix build on sparc64.
35237
35238 * configure.ac: Perform checks for libgcc symbols before
35239 adding `-nostdlib' to LDFLAGS.
35240
46695a62 352412009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35242
35243 Let user specify OpenBSD root device.
35244
35245 * loader/i386/bsd.c (openbsd_root): New variable.
35246 (openbsd_opts): New option 'root'.
35247 (OPENBSD_ROOT_ARG): New macro.
35248 (grub_openbsd_boot): Use 'openbsd_root'.
35249 (grub_cmd_openbsd): Fill 'openbsd_root'.
35250
d2b6b7fc 352512009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35252
35253 * NEWS: Misc adjustments.
35254
421bd7ac 352552009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35256
35257 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35258
f1d29d87 352592009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35260
35261 * configure.ac: Bump version to 1.97.
35262
6f3cd880 352632009-10-16 Colin Watson <cjwatson@ubuntu.com>
35264
35265 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35266 -mno-3dnow on x86 architectures. Some toolchains enable these
35267 features by default, but they rely on registers that aren't enabled
35268 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35269
035f7122 352702009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35271
35272 Make entry text a bit more readable.
35273
35274 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35275
44998e58 352762009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35277
35278 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35279
cd2851b3 352802009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35281
35282 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35283 operations.
35284
c6f3b249 352852009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35286
35287 * configure.ac: Add missing dollar.
35288
6b5886ba 352892009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35290
35291 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35292
35293 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35294 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35295 exports.
35296 * include/grub/sparc64/libgcc.h: Likewise. Use
35297 preprocessor conditionals.
35298
e9d66f6d 352992009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35300
35301 * conf/common.rmk (grub-dumpbios): Remove rule.
35302 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35303 * util/grub-dumpbios.in: Remove file.
35304
9155bc17 353052009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35306
35307 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35308 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35309
35310 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35311 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35312 users.
35313
35314 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35315 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35316 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35317 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35318 users.
35319
bf7f7a18 353202009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35321
35322 * term/tparm.c: Switch to GPLv3.
35323
86564c26 353242009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35325
35326 * include/grub/i386/cpuid.h: Add header protection.
35327
5c936493 353282009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35329
35330 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35331
35332 * include/grub/i386/cpuid.h: New file.
35333 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35334 (has_longmode): Rename to ...
35335 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35336 `static' attribute.
35337 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35338 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35339 on a CPU that doesn't implement AMD64 instruction set.
35340
186e7cf2 353412009-10-06 Colin Watson <cjwatson@ubuntu.com>
35342
35343 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35344 that version.texi is rebuilt on version number changes.
35345
83b65c4a 353462009-10-06 Colin Watson <cjwatson@ubuntu.com>
35347
35348 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35349 Fixes bug #27602.
35350
d244281c 353512009-10-06 Colin Watson <cjwatson@ubuntu.com>
35352
35353 * util/i386/pc/grub-install.in: Source
35354 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35355 that the --grub-probe option will work.
35356 * util/sparc64/ieee1275/grub-install.in: Likewise.
35357
da25306d 353582009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35359
35360 * configure.ac: Bump version to 1.97~beta4.
35361
e8ee83c0 353622009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35363
35364 Resync grub-mkdevicemap in x86_64-efi.
35365
35366 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35367 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35368 `util/devicemap.c'.
35369
50dcabcf 353702009-10-01 Colin Watson <cjwatson@ubuntu.com>
35371
35372 * util/grub-editenv.c (create_envblk_file): Write new block with a
35373 .new suffix and then rename it into place, to ensure atomic
35374 creation.
35375
0e51c3a7 353762009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35377
35378 Do not automatically install headers.
35379
35380 * Makefile.in (include_DATA): Remove. Update all users.
35381
31299a95 353822009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35383
35384 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35385 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35386
35387 * util/osdetect.lua: Remove.
35388 * script/lua/lauxlib.c: Likewise.
35389 * script/lua/ldebug.c: Likewise.
35390 * script/lua/grub_main.c: Likewise.
35391 * script/lua/lauxlib.h: Likewise.
35392 * script/lua/ldebug.h: Likewise.
35393 * script/lua/ltablib.c: Likewise.
35394 * script/lua/liolib.c: Likewise.
35395 * script/lua/lstrlib.c: Likewise.
35396 * script/lua/lualib.h: Likewise.
35397 * script/lua/ldo.c: Likewise.
35398 * script/lua/ldump.c: Likewise.
35399 * script/lua/ldo.h: Likewise.
35400 * script/lua/loslib.c: Likewise.
35401 * script/lua/lundump.c: Likewise.
35402 * script/lua/grub_lib.c: Likewise.
35403 * script/lua/ldblib.c: Likewise.
35404 * script/lua/lundump.h: Likewise.
35405 * script/lua/lmem.c: Likewise.
35406 * script/lua/grub_lib.h: Likewise.
35407 * script/lua/lmathlib.c: Likewise.
35408 * script/lua/lstate.c: Likewise.
35409 * script/lua/ltm.c: Likewise.
35410 * script/lua/lvm.c: Likewise.
35411 * script/lua/lmem.h: Likewise.
35412 * script/lua/lstate.h: Likewise.
35413 * script/lua/ltm.h: Likewise.
35414 * script/lua/ltable.c: Likewise.
35415 * script/lua/lvm.h: Likewise.
35416 * script/lua/llex.c: Likewise.
35417 * script/lua/lgc.c: Likewise.
35418 * script/lua/grub_lua.h: Likewise.
35419 * script/lua/loadlib.c: Likewise.
35420 * script/lua/lfunc.c: Likewise.
35421 * script/lua/lopcodes.c: Likewise.
35422 * script/lua/lparser.c: Likewise.
35423 * script/lua/ltable.h: Likewise.
35424 * script/lua/llex.h: Likewise.
35425 * script/lua/lgc.h: Likewise.
35426 * script/lua/lfunc.h: Likewise.
35427 * script/lua/lbaselib.c: Likewise.
35428 * script/lua/lopcodes.h: Likewise.
35429 * script/lua/lparser.h: Likewise.
35430 * script/lua/lzio.c: Likewise.
35431 * script/lua/linit.c: Likewise.
35432 * script/lua/lobject.c: Likewise.
35433 * script/lua/llimits.h: Likewise.
35434 * script/lua/lstring.c: Likewise.
35435 * script/lua/lzio.h: Likewise.
35436 * script/lua/lapi.c: Likewise.
35437 * script/lua/lcode.c: Likewise.
35438 * script/lua/lua.h: Likewise.
35439 * script/lua/lobject.h: Likewise.
35440 * script/lua/lstring.h: Likewise.
35441 * script/lua/lapi.h: Likewise.
35442 * script/lua/lcode.h: Likewise.
35443 * script/lua/luaconf.h: Likewise.
35444
cb8a2c38 354452009-09-26 Colin Watson <cjwatson@ubuntu.com>
35446
35447 * docs/grub.texi (Command-line and menu entry commands): Document
35448 date and echo commands.
35449
6b9b6276 354502009-09-24 Pavel Roskin <proski@gnu.org>
35451
35452 * include/grub/kernel.h (struct grub_module_header): Remove
35453 `grub_module_header_types'. Make `type' unsigned. Make `size'
35454 32-bit on all platforms.
35455 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35456 8-bit field. Use grub_host_to_target32() for `size'.
35457 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35458 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35459 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35460
4e5a02a7 354612009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35462
35463 Fix "lost keypress" bug in at_keyboard.
35464
35465 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35466 Checks for readyness of input buffer (without flushing it).
35467 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35468 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35469
c6dcedf6 354702009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35471
35472 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35473 size check within GRUB_MACHINE_PCBIOS section.
35474
74c958b1 354752009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35476
35477 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35478 return value.
35479 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35480 KEYBOARD_ISREADY check.
35481 (grub_at_keyboard_checkkey): Rename to ...
35482 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35483 Remove gratuitous cast.
35484
ff420223 354852009-09-23 Colin Watson <cjwatson@ubuntu.com>
35486
35487 * configure.ac: Call AC_PROG_MKDIR_P.
35488 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35489 version.texi in $(builddir) rather than $(srcdir).
35490 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35491 to makeinfo's @include search path.
35492
d96875df 354932009-09-23 Felix Zielcke <fzielcke@z-51.de>
35494
35495 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35496
9b3f8365 354972009-09-23 Felix Zielcke <fzielcke@z-51.de>
35498
35499 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35500 for `*.dpkg-new'.
35501
c44c90db 355022009-09-21 Colin Watson <cjwatson@ubuntu.com>
35503
35504 Build info documentation. Some code borrowed from Automake.
35505
35506 * configure.ac: Check for makeinfo.
35507 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35508 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35509 docs/version.texi.
35510 (MOSTLYCLEANFILES): Add vti.tmp.
35511 (docs/version.texi, docs/stamp-vti): Update automatically.
35512 (docs/grub.info): Build info documentation. Use --force and ignore
35513 errors for now.
35514 (all-local): Add $(INFOS).
35515 (install-local): Install info files.
35516 (uninstall): Uninstall info files.
35517 * docs/version.texi: Remove from revision control. This file is
35518 automatically generated on build now.
35519 * gendistlist.sh: Add `*.info'.
35520
e0b37bb5 355212009-09-21 Felix Zielcke <fzielcke@z-51.de>
35522
35523 * kern/term.c: Fix indentation.
35524
5a78865b 355252009-09-21 Felix Zielcke <fzielcke@z-51.de>
35526
35527 * util/hostdisk.c: Fix a comment.
35528
dace7e8a 355292009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35530
35531 Fix regression introduced in r2539.
35532
35533 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35534 to 0xA1.
35535
a83d079b 355362009-09-19 Colin Watson <cjwatson@ubuntu.com>
35537
35538 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 35539 os-prober. Under normal operation, it does not print anything to
35540 stderr; if it does, we need to debug it, and throwing away stderr
35541 makes that excessively difficult.
a83d079b 35542
be94a509 355432009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35544
35545 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35546
63f745e8 355472009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35548
35549 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35550 AC_LANG_PROGRAM from autoconf.
35551 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35552 prototypes (fixes warning).
35553
35554 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35555 `--disable-werror' was used.
35556
bbb2a70f 355572009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35558
35559 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35560 uninitialized `lastaddr'.
35561
77c24f1d 355622009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35563
0f0b8c87 35564 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 35565
07197f23 355662009-09-14 Colin Watson <cjwatson@ubuntu.com>
35567
35568 * commands/test.c (get_fileinfo): Return immediately if
35569 grub_fs_probe fails.
35570
dabf1798 355712009-09-14 José Martínez <xosemp@gmail.com>
35572
35573 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35574
d52109a7 355752009-09-14 Colin Watson <cjwatson@ubuntu.com>
35576
35577 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35578 output.
35579
56532179 355802009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35581
35582 * configure.ac: Remove --enable-grub-pe2elf. Only build
35583 grub-pe2elf when needed by the build system itself.
35584 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35585
8ef070f5 355862009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35587
35588 * configure.ac: Bump version to 1.97~beta3.
35589 * docs/version.texi: Likewise.
35590
61229557 355912009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35592
35593 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35594 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35595 from here ...
35596 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35597 (grub_linux_setup_video): ... to here (with some adjustments).
35598
5c9f8d84 355992009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35600
35601 Fix memory corruption issue (spotted by Colin Watson).
35602
35603 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35604 causing returned size to be stored in an incorrect memory location.
35605 Fix use of uninitialized value when storing the returned size.
35606
e8f5d6e9 356072009-09-12 Yves Blusseau <blusseau@zetam.org>
35608
35609 Change clean rules to properly remove files
35610
35611 * genmk.rb: add new clean rules
35612 * Makefile.in (clean): add the new targets
35613 (mostlyclean): likewise
35614
cda2a409 356152009-09-11 Colin Watson <cjwatson@ubuntu.com>
35616
35617 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35618 to grub_uint64_t.
35619 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35620 non-resident files.
35621
86695375 356222009-09-11 Colin Watson <cjwatson@ubuntu.com>
35623
35624 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35625 part of bug #27349.
35626
8aa1541a 356272009-09-10 Felix Zielcke <fzielcke@z-51.de>
35628
35629 * util/grub-mkconfig.in: Make the created config mode 400 and
35630 print a warning if it fails.
35631
48d9bb0a 356322009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35633
35634 * util/grub.d/40_custom.in: Ask user to type custom entries below
35635 comment, rather than below 'exec tail' line.
35636
3b0521be 356372009-09-10 Colin Watson <cjwatson@ubuntu.com>
35638
35639 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35640 visible in grub.cfg.
35641
50051d55 356422009-09-10 Colin Watson <cjwatson@ubuntu.com>
35643
35644 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35645 file.
35646
c0d34387 356472009-09-10 Felix Zielcke <fzielcke@z-51.de>
35648
35649 * docs/grub.cfg: Add an example menu entry for memtest86+.
35650
80a608f3 356512009-09-09 Felix Zielcke <fzielcke@z-51.de>
35652
a2094832 35653 * config.guess: Update to latest version from config git.
80a608f3 35654 * config.sub: Likewise.
35655
99423078 356562009-09-08 Colin Watson <cjwatson@ubuntu.com>
35657
35658 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35659 unknown-command case. Fixes bug #27320.
35660
44454e4c 356612009-09-08 Felix Zielcke <fzielcke@z-51.de>
35662
35663 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35664 `help' if the command exists.
35665
e30d87ad 356662009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35667
35668 * INSTALL: Require GCC 4.1.3 or later.
35669
9a86f1ec 356702009-09-06 Yves Blusseau <blusseau@zetam.org>
35671
35672 * Makefile.in (RMKFILES): add i386-qemu.rmk
35673 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35674 $(srcdir)/stamp-h.in
35675
7f26d466 356762009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35677
35678 * util/grub-probe.c (probe): Comment out buggy codepath, which
35679 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35680 should be re-enabled after 1.97.
35681
3a613259 356822009-09-05 Felix Zielcke <fzielcke@z-51.de>
35683
35684 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35685 find searches for.
35686
197f76c7 356872009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35688
35689 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35690 unnecessary calls to grub_error.
35691
70ba68ce 356922009-09-04 Colin Watson <cjwatson@ubuntu.com>
35693
35694 * NEWS: Mention `keystatus' and Unicode fonts.
35695
4ff0d7a4 356962009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35697
35698 * configure.ac: Bump version to 1.97~beta2.
35699 * docs/version.texi: Likewise.
35700
77c55a87 357012009-09-03 Colin Watson <cjwatson@ubuntu.com>
35702
35703 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35704 containing unwind information in some cases where it previously did
35705 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35706 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35707 discussion.
35708
f79572cd 357092009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35710
35711 Embedding loadenv module into grub-emu
35712
35713 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35714 commands/loadenv.c
35715 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35716 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35717 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35718 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35719 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35720 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35721
93a81088 357222009-09-03 Magnus Granberg <zorry@ume.nu>
35723
35724 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35725 include -fPIE in the default specs.
35726 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35727 to TARGET_CFLAGS.
35728
160034b2 357292009-09-03 Felix Zielcke <fzielcke@z-51.de>
35730
35731 * INSTALL: Note that GNU Bison 2.3 or later is required.
35732
087c07c4 357332009-09-03 Colin Watson <cjwatson@ubuntu.com>
35734
35735 * kern/i386/pc/startup.S: Fix typo.
35736
cbf978c0 357372009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35738
35739 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35740 according to GCS.
35741
357422009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 35743
35744 * docs/grub.texi (Naming convention): Describe one-based partition
35745 numbering.
35746 (Device syntax): Likewise.
35747 (File name syntax): Likewise.
35748 (Block list syntax): Likewise.
35749 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35750 menu.lst.
35751 (File name syntax): Likewise.
35752 (Command-line and menu entry commands): Document acpi, blocklist,
35753 crc, export, insmod, keystatus, ls, set, and unset commands.
35754
f3e8cdfd 357552009-09-02 Colin Watson <cjwatson@ubuntu.com>
35756
35757 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35758 to avoid implying that only one of --shift, --ctrl, or --alt may be
35759 used.
35760
c0bc232b 357612009-09-02 Colin Watson <cjwatson@ubuntu.com>
35762
35763 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35764 rather than comparing against S_IFREG, which will almost never work.
35765
aa0f752d 357662009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35767
35768 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35769 (write_blocklists): Likewise.
35770
ecb3166a 357712009-09-01 Colin Watson <cjwatson@ubuntu.com>
35772
35773 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35774 argument to grub_printf.
35775
c403a125 357762009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 35777
35778 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 35779 non GNU test.
31aba781 35780
b5e7312c 357812009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35782
35783 * kern/file.c (grub_file_read): Spelling fix
35784
fe00f472 357852009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35786
35787 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35788 loading of headers in some cases.
35789
cc55302e 357902009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35791
35792 * configure.ac: Bump version to 1.97~beta1.
35793 * docs/version.texi: Likewise.
35794
5c90cdd2 357952009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 35796
35797 * include/grub/i386/xnu.h: Add license header.
35798 include grub/err.h explicitly.
35799
c90edae4 358002009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35801
35802 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35803 to `ufs' in the vfs.root.mountfrom kernel parameter.
35804
d8888b5c 358052009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35806
35807 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35808
35809 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35810 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35811
35812 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35813 `ARRAY_SIZE' macro.
35814
6f07b921 358152009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35816
35817 * kern/file.c (grub_file_read): Check offset.
35818 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35819 * fs/jfs.c (grub_jfs_read_file): Likewise.
35820 * fs/ntfs.c (grub_ntfs_read): Likewise.
35821 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35822 * fs/minix.c (grub_minix_read_file): Correct offset check.
35823 * fs/ufs.c (grub_ufs_read_file): Likewise.
35824
b4f34077 358252009-08-28 Colin Watson <cjwatson@ubuntu.com>
35826
35827 * term/i386/pc/console.c (bios_data_area): Cast
35828 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35829
e7c69859 358302009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35831
35832 1-bit optimised blitters.
35833
35834 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35835 prototype.
35836 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35837 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35838 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35839 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35840 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35841 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35842 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35843 function.
35844 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35845 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35846 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35847 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35848 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35849 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35850 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35851 when possible.
35852 * video/video.c (grub_video_get_blit_format): Return
35853 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35854
a57da43f 358552009-08-28 Colin Watson <cjwatson@ubuntu.com>
35856
35857 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35858 the first argument to grub_printf.
35859
4cbe67e5 358602009-08-28 Colin Watson <cjwatson@ubuntu.com>
358612009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35862
35863 Add `getkeystatus' terminal method. Add a new `keystatus' command
35864 to query it.
35865
35866 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35867 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35868 modifier key bitmasks.
35869 (struct grub_term_input): Add `getkeystatus' member.
35870 (grub_getkeystatus): Add prototype.
35871 * kern/term.c (grub_getkeystatus): New function.
35872
35873 * include/grub/i386/pc/memory.h
35874 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35875 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35876 Data Area layout.
35877 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35878 (grub_console_term_input): Set `getkeystatus' member.
35879 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35880 constants.
35881 (grub_usb_keyboard_getreport): Likewise.
35882 (grub_usb_keyboard_checkkey): Likewise.
35883 (grub_usb_keyboard_getkeystatus): New function.
35884 (grub_usb_keyboard_term): Set `getkeystatus' member.
35885
35886 * commands/keystatus.c: New file.
35887 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35888 (keystatus_mod_SOURCES): New variable.
35889 (keystatus_mod_CFLAGS): Likewise.
35890 (keystatus_mod_LDFLAGS): Likewise.
35891 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35892 commands/keystatus.c.
35893 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35894 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35895 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35897 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35898 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 35899
6e2a9085 359002009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35901
35902 Split befs.mod and afs.mod into *_be.mod and *.mod
35903
35904 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35905 (grub_fstest_SOURCES): Likewise.
35906 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35907 (afs_be_mod_SOURCES): New variable.
35908 (afs_be_mod_CFLAGS): Likewise.
35909 (afs_be_mod_LDFLAGS): Likewise.
35910 (befs_be_mod_SOURCES): Likewise.
35911 (befs_be_mod_CFLAGS): Likewise.
35912 (befs_be_mod_LDFLAGS): Likewise.
35913 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35914 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35915 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35916 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35917 (grub_emu_SOURCES): Likewise.
35918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35919 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35920 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35921 * fs/afs_be.c: New file.
35922 * fs/befs_be.c: New file.
35923 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35924 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35925 (U16): Replaced with ...
35926 (grub_afs_to_cpu16): ...this. All users updated.
35927 (U32): Replaced with ...
35928 (grub_afs_to_cpu32): ...this. All users updated.
35929 (U64): Replaced with ...
35930 (grub_afs_to_cpu64): ...this. All users updated.
35931 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35932 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 35933 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 35934 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35935 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35936 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35937 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35938 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35939 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35940 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35941 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35942
32a71655 359432009-08-26 Bean <bean123ch@gmail.com>
35944
35945 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35946 64-bit number.
35947 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35948 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35949 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35950
552bf6c5 359512009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35952
35953 NetBSD memory map support.
35954
35955 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35956 (grub_netbsd_btinfo_mmap_header): New structure.
35957 (grub_netbsd_btinfo_mmap_entry): Likewise.
35958 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35959
1ae2078c 359602009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35961
35962 Enable bsd.mod on coreboot.
35963
35964 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35965 (bsd_mod_SOURCES): New variable.
35966 (bsd_mod_CFLAGS): Likewise.
35967 (bsd_mod_LDFLAGS): Likewise.
35968 (bsd_mod_ASFLAGS): Likewise.
35969 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35970 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35971
beefc598 359722009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35973
35974 Cleanup NetBSD root support.
35975
35976 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35977 grub_bsd_get_device.
35978 Fix typo.
35979
3b76e68b 359802009-08-25 Felix Zielcke <fzielcke@z-51.de>
35981
35982 * util/grub.d/00_header.in: Move check for the video backend of
35983 gfxterm from here ...
35984 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35985 a suitable video backend.
35986
aea664ea 359872009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35988
35989 Fix breakage in grub-setup.
35990
35991 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35992 "msdos_partition_map".
35993
ff747d50 359942009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35995
35996 Fix breakage in normal/auth.c.
35997
35998 * normal/auth.c (grub_iswordseparator): New function.
35999
e7e1f93f 360002009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36001
36002 Authentication support.
36003
36004 * commands/password.c: New file.
36005 * conf/common.rmk (pkglib_MODULES): Add password.mod.
36006 (password_mod_SOURCES): New variable.
36007 (password_mod_CFLAGS): Likewise.
36008 (password_mod_LDFLAGS): Likewise.
36009 (normal_mod_SOURCES): Add normal/auth.c.
36010 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
36011 normal/auth.c.
36012 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36013 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36014 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36015 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36016 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36017 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36018 * include/grub/auth.h: New file.
36019 * include/grub/err.h (grub_err_t): New enum value
36020 GRUB_ERR_ACCESS_DENIED.
36021 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
36022 'users'.
36023 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
36024 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
36025 users updated.
36026 * normal/auth.c: New file.
36027 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
36028 (grub_cmdline_run): Don't allow to go to command line without
36029 authentication.
36030 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
36031 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
36032 menuentry without superuser rights.
36033 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
36034 user isn't a superuser.
36035
70f1161d 360362009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36037
36038 Save space by inlining misc.c functions.
36039
36040 * kern/misc.c (grub_iswordseparator): Made static.
36041 * kern/misc.c (grub_strcat): Moved from here ...
36042 * include/grub/misc.h (grub_strcat): ... here. Inlined.
36043 * kern/misc.c (grub_strncat): Moved from here ...
36044 * include/grub/misc.h (grub_strncat): ... here. Inlined.
36045 * kern/misc.c (grub_strcasecmp): Moved from here ...
36046 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
36047 * kern/misc.c (grub_strncasecmp): Moved from here ...
36048 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
36049 * kern/misc.c (grub_isalpha): Moved from here ...
36050 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
36051 * kern/misc.c (grub_isdigit): Moved from here ...
36052 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
36053 * kern/misc.c (grub_isgraph): Moved from here ...
36054 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
36055 * kern/misc.c (grub_tolower): Moved from here ...
36056 * include/grub/misc.h (grub_tolower): ... here. Inlined.
36057
48e40bff 360582009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36059
36060 * script/sh/function.c (grub_script_function_find): Cut error message
36061 not to flood terminal.
36062 * script/sh/lexer.c (grub_script_yylex): Remove command line length
36063 limit.
36064 * script/sh/script.c (grub_script_arg_add): Duplicate string.
36065
c385bfc3 360662009-08-24 Colin Watson <cjwatson@ubuntu.com>
36067
36068 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36069 `report' grub_uint8_t *.
36070 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36071 Use a 50-millisecond timeout rather than just repeating
36072 grub_usb_keyboard_getreport 50 times.
36073 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36074
2d21e3e8 360752009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36076
36077 Rename *_partition_map to part_*
36078
36079 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36080 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36081 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36082 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36083 All users updated.
36084 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36085 All users updated.
36086 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36087 * util/grub-probe.c (probe_partmap): Don't transform partition name
36088 to get module name.
36089
dd103c4e 360902009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36091
36092 Fix OpenBSD and NetBSD support.
36093
36094 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36095 memory address conflict.
36096 (OPENBSD_MMAP_ACPI): New definition.
36097 (OPENBSD_MMAP_NVS): Likewise.
36098 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36099 and OPENBSD_MMAP_NVS.
36100 Add memory map terminator
36101 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 36102 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 36103
16c84d74 361042009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36105
36106 Let user specify NetBSD root device.
36107
36108 * loader/i386/bsd.c (netbsd_root): New variable.
36109 (netbsd_opts): New option 'root'.
36110 (NETBSD_ROOT_ARG): New macro.
36111 (grub_netbsd_boot): Use 'netbsd_root'.
36112 (grub_bsd_unload): Free 'netbsd_root'.
36113 (grub_cmd_netbsd): Fill 'netbsd_root'.
36114
adb29902 361152009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36116
36117 Support for 64-bit NetBSD.
36118
36119 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36120 point when booting non-FreeBSD.
36121
f5ae9f74 361222009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36123
36124 Support --no-smp and --no-acpi for NetBSD.
36125
36126 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36127 (NETBSD_AB_NOACPI): Likewise.
36128 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36129 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36130
de74f136 361312009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36132
36133 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36134 errors.
36135 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36136 errors. Call grub_error when needed.
36137
e9a925da 361382009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36139
36140 * commands/search.c (search_fs): Try searching without autoload first.
36141 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36142 filesystem module explicitly for faster booting.
36143
5174302b 361442009-08-23 Colin Watson <cjwatson@ubuntu.com>
36145
36146 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36147
c8c80635 361482009-08-23 Colin Watson <cjwatson@ubuntu.com>
36149
36150 * util/grub.d/30_os-prober.in: Disable os-prober if
36151 `GRUB_DISABLE_OS_PROBER' was set to true.
36152
71acf5e5 361532009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36154
36155 * partmap/pc.c: Rename to ...
36156 * partmap/msdos.c: ... this. Update all users.
36157 (grub_pc_partition_map): Rename to ...
36158 (grub_msdos_partition_map): ... this. Update all users.
36159
36160 * parttool/pcpart.c: Rename to ...
36161 * parttool/msdospart.c: ... this. Update all users.
36162
36163 * include/grub/pc_partition.h: Rename to ...
36164 * include/grub/msdos_partition.h: ... this. Update all users.
36165 (grub_pc_partition_bsd_entry): Rename to ...
36166 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36167 (grub_pc_partition_disk_label): Rename to ...
36168 (grub_msdos_partition_disk_label): ... this. Update all users.
36169 (grub_pc_partition_entry): Rename to ...
36170 (grub_msdos_partition_entry): ... this. Update all users.
36171 (grub_pc_partition_mbr): Rename to ...
36172 (grub_msdos_partition_mbr): ... this. Update all users.
36173 (grub_pc_partition): Rename to ...
36174 (grub_msdos_partition): ... this. Update all users.
36175 (grub_pc_partition_is_empty): Rename to ...
36176 (grub_msdos_partition_is_empty): ... this. Update all users.
36177 (grub_pc_partition_is_extended): Rename to ...
36178 (grub_msdos_partition_is_extended): ... this. Update all users.
36179 (grub_pc_partition_is_bsd): Rename to ...
36180 (grub_msdos_partition_is_bsd): ... this. Update all users.
36181
36182 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36183 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36184 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36185 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36186 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36187 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36188 (gpt_mod_LDFLAGS): Rename to ...
36189 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36190 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36191 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36192 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36193 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36194 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36195 (part_gpt_mod_LDFLAGS): ... this.
36196 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36197 `pcpart.mod' to `msdospart.mod'.
36198 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36199 to ...
36200 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36201 (msdospart_mod_LDFLAGS): ... this.
36202
c11fded5 362032009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36204
36205 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36206 (openbsd_opts): Likewise.
36207 (netbsd_opts): Likewise.
36208 (freebsd_flags): Added 0 terminator.
36209 (openbsd_flags): Likewise.
36210 (netbsd_flags): Likewise.
36211 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36212 (grub_cmd_freebsd): Transformed into extended command.
36213 (grub_cmd_openbsd): Likewise.
36214 (grub_cmd_netbsd): Likewise.
36215 (cmd_freebsd): Changed type to grub_extcmd_t.
36216 (cmd_openbsd): Likewise.
36217 (cmd_netbsd): Likewise.
36218 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36219 grub_cmd_openbsd as extended commands.
36220 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36221 cmd_netbsd and cmd_openbsd
36222
11d1c769 362232009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36224
36225 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36226
7a9094e5 362272009-08-21 Pavel Roskin <proski@gnu.org>
36228
5496c37e 36229 * Makefile.in (install-local): When checking if a file is in the
36230 build directory, use "test -e" to detect symlinks.
36231
7a9094e5 36232 * Makefile.in (install-local): Remove all files in
36233 $(DESTDIR)$(pkglibdir) before installing new files there.
36234
e53cea11 362352009-08-18 Felix Zielcke <fzielcke@z-51.de>
36236
36237 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36238 grub-mkelfimage.
36239
9aced544 362402009-08-18 Felix Zielcke <fzielcke@z-51.de>
36241
36242 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36243 explicitly specified by the user.
36244
b7da6bab 362452009-08-18 Pavel Roskin <proski@gnu.org>
36246
36247 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36248 grub_uint8_t pointer for data.
36249 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36250 Likewise.
36251 * video/fb/fbutil.c: Remove unnecessary casts.
36252
19f1b335 362532009-08-17 Michal Suchanek <hramrach@centrum.cz>
36254
36255 VBE cleanup.
36256
36257 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36258 (grub_vbe_set_video_mode): Save active mode info
36259 only after setting the mode.
36260 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36261 second argument.
36262
2f467aa9 362632009-08-17 Michal Suchanek <hramrach@centrum.cz>
36264
36265 Rename variables for clarity.
36266
36267 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36268 (active_vbe_mode_info): ... this. All users updated.
36269 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36270 All users updated.
36271 (initial_mode): Rename to ...
36272 (initial_vbe_mode): ... this. All users updated.
36273 (mode_in_use): Rename to ..
36274 (vbe_mode_in_use): ... this. All users updated.
36275 (mode_list): Rename to ..
36276 (vbe_mode_list): ... this. All users updated.
36277 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36278 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36279 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36280 'mode_list_size' to 'vbe_mode_list_size'.
36281 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36282 'best_mode_info' to 'best_vbe_mode_info' and
36283 'best_mode' to 'best_vbe_mode'
36284
6025fcd7 362852009-08-17 Michal Suchanek <hramrach@centrum.cz>
36286
36287 Remove duplicate grub_video_fb_get_video_ptr.
36288
36289 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36290 (grub_video_fb_get_video_ptr): ... this.
36291 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36292 * video/fb/fbutil.c: Add comment about addressing.
36293 (get_data_ptr): Rename to ...
36294 (grub_video_fb_get_video_ptr): ... this. All users updated.
36295 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36296
cc8c6faf 362972009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36298
36299 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36300 grub_dprintf() that was just added.
36301
08aa61f0 363022009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36303
36304 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36305 (DEFAULT_VIDEO_MODE): Remove macros.
36306 (grub_linux_boot): Remove assumption that Linux has FB support,
36307 and use "text" as default video mode.
36308
7cef4f75 363092009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36310
36311 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36312 grub_dprintf.
36313 * fs/fat.c (grub_fat_read_data): Likewise.
36314
e1f39873 363152009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36316
36317 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36318 payload.
36319 (grub_module): Likewise.
36320
c166d79e 363212009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36322
36323 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36324 mbi->cmdline but free playground.
36325
c60cee8e 363262009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36327
36328 Handle group offset on UFS1.
36329
36330 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36331 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36332
c0d8b5d4 363332009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36334
36335 Split ufs.mod into ufs1.mod and ufs2.mod.
36336
36337 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36338 (grub_fstest_SOURCES): Likewise.
36339 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36340 (ufs_mod_SOURCES): Remove.
36341 (ufs_mod_CFLAGS): Likewise.
36342 (ufs_mod_LDFLAGS): Likewise.
36343 (ufs1_mod_SOURCES): New variable.
36344 (ufs1_mod_CFLAGS): Likewise.
36345 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 36346 (ufs2_mod_SOURCES): New variable.
36347 (ufs2_mod_CFLAGS): Likewise.
36348 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 36349 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36350 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36351 Likewise.
36352 (grub_emu_SOURCES): Likewise.
36353 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36354 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36355 (grub_setup_SOURCES): Likewise.
36356 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36357 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36358 (grub_setup_SOURCES): Likewise.
36359 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36360 Likewise.
36361 * fs/ufs2.c: New file.
36362 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36363
d3539132 363642009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36365
36366 Framebuffer split.
36367
36368 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36369 subsystem at the end.
36370 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36371 (video_fb_mod_SOURCES): New variable.
36372 (video_fb_mod_CFLAGS): Likewise.
36373 (video_fb_mod_LDFLAGS): Likewise.
36374 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36375 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36376 * video/i386/pc/vbeblit.c: Moved from here ...
36377 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36378 * video/i386/pc/vbefill.c: Moved from here ...
36379 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36380 * video/i386/pc/vbeutil.c: Moved from here ...
36381 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36382 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36383 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36384 * include/grub/i386/pc/vbefill.h: Moved from here ...
36385 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36386 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36387 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36388 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36389 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36390 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36391 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36392 (grub_video_adapter): Added 'get_info_and_fini'.
36393 (grub_video_get_info_and_fini): New prototype.
36394 (grub_video_set_mode): make modestring const char *.
36395 * loader/i386/linux.c (grub_linux_setup_video): Use
36396 grub_video_get_info_and_fini.
36397 (grub_linux_boot): Move modesetting just before booting.
36398 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36399 grub_video_get_info_and_fini.
36400 * video/i386/pc/vbe.c: Moved framebuffer part ...
36401 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36402 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36403 grub_video_fbstd_colors and grub_video_fb_set_palette.
36404 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36405 grub_video_fb_init.
36406 (grub_video_vbe_fini): Use grub_video_fb_fini.
36407 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36408 render_target and use grub_video_fb_set_active_render_target and
36409 grub_video_fb_set_palette.
36410 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36411 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36412 (grub_video_vbe_adapter): Use framebuffer.
36413 * video/video.c (grub_video_get_info_and_fini): New function.
36414 (grub_video_set_mode): Make modestring const char *.
36415 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36416 values are already initialised.
36417
d404ee56 364182009-08-14 Pavel Roskin <proski@gnu.org>
36419
36420 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36421 ABS and APPLE_CC.
36422 * boot/i386/pc/diskboot.S: Likewise.
36423 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36424 sectors allow compilation on MacOSX.
36425 * conf/i386-pc.rmk: Enable unconditional compilation of
36426 lnxboot.img.
36427
9a10df16 364282009-08-13 Colin Watson <cjwatson@ubuntu.com>
36429
36430 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36431 * util/grub.d/00_header.in: Enter interruptible sleep if
36432 GRUB_HIDDEN_TIMEOUT is set.
36433
be3c9ca7 364342009-08-13 Yves Blusseau <blusseau@zetam.org>
36435
36436 * include/grub/symbol.h: Add the LOCAL macro.
36437 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36438 starting with "L_".
36439
1f9e557e 364402009-08-13 Pavel Roskin <proski@gnu.org>
36441
9ca62843 36442 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36443 any modern compilers we support.
36444
1f9e557e 36445 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36446 Use local labels starting with "L_" so that Apple assembler
36447 knows they are local.
36448
81623db6 364492009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36450
36451 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36452 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36453 (bsd_kernel_types): ... this enum.
36454
36455 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36456 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36457 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36458
36459 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36460 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36461 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36462 messages.
36463
f5d35e7a 364642009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36465
36466 * util/grub-dumpdevtree: Moved from here ...
36467 * util/i386/efi/grub-dumpdevtree: ... to here.
36468 (hexify): New function. Converts a string to its hex version.
36469 Generate hex versions of "efi" and "device-properties" by calling
36470 hexify() on the ASCII strings rather than by hardcoding numbers.
36471
d1e1d527 364722009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36473
36474 * fs/jfs.c: Update copyright year.
36475
1ebbe064 364762009-08-08 Felix Zielcke <fzielcke@z-51.de>
36477
36478 * util/grub.d/00_header.in: Fix a comment.
36479 * util/grub.d/10_linux.in: Likewise.
36480 * util/grub.d/10_windows.in: Likewise.
36481 * util/grub.d/10_hurd.in: Likewise.
36482
a78c8d24 364832009-08-08 Felix Zielcke <fzielcke@z-51.de>
36484
36485 * util/grub-mkconfig.in: Allow the user to specify the used font
36486 with GRUB_FONT.
36487
29a6b9e8 364882009-08-08 Pavel Roskin <proski@gnu.org>
36489
b5f16cc4 36490 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36491 available, xfs.mod needs it now.
36492
2f5cb827 36493 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36494 the "g" modifier in sed when the intention is to strip something
36495 once. This fixes comparison of kernels with multiple dashes.
36496
29a6b9e8 36497 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36498 on it. Add missing space before closing bracket. Fix
36499 misleading formatting.
36500
892a3d98 365012009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36502
36503 * docs/grub.texi: Major overhaul. Remove all sections that are
36504 specific to GRUB Legacy, or mostly composed of Legacy-specific
36505 information.
36506
ed94253f 365072009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36508
36509 * docs/version.texi: New file. Provides version information for
36510 grub.texi.
36511
126d6628 365122009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36513
36514 * docs/grub.texi: Update CVS information to SVN.
36515 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36516
998b5aa9 365172009-08-07 Felix Zielcke <fzielcke@z-51.de>
36518
36519 * util/grub-mkconfig.in: Remove a wrong `fi'.
36520
818e094a 365212009-08-07 Felix Zielcke <fzielcke@z-51.de>
36522
36523 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36524 (grub_jfs_uuid): New function.
36525 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36526
b969c52f 365272009-08-07 Felix Zielcke <fzielcke@z-51.de>
36528
36529 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36530 of it to ...
36531 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36532 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36533
7a4894cc 365342009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36535
36536 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36537 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36538 Update all users.
36539
36540 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36541 not just "vmlinu[zx]".
36542 Moved from here ...
36543 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36544 all users.
36545
36546 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36547 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36548 all users.
36549
4e2171f8 365502009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36551
36552 * util/grub.d/10_freebsd.in: Use an absolute device path for
36553 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36554
6dcfcb32 365552009-08-06 Felix Zielcke <fzielcke@z-51.de>
36556
36557 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36558 handling of multiple abstraction modules.
36559
f56a8756 365602009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36561
36562 Fix a bug resulting in black screen when loading Linux using a
36563 packed video mode.
36564
36565 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36566 function.
36567
36568 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36569 (grub_vbe_bios_getset_dac_palette_width): New function.
36570 (grub_vbe_bios_get_dac_palette_width)
36571 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36572 grub_vbe_bios_getset_dac_palette_width()).
36573
36574 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36575 check for return status.
36576 (grub_vbe_get_video_mode_info): When getting information for a packed
36577 mode (<= 8 bpp), obtain DAC palette width using
36578 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36579 {red,green,blue}_mark_size.
36580
222671b2 365812009-08-04 Felix Zielcke <fzielcke@z-51.de>
36582
ecb1a6d9 36583 * commands/search.c (options): Fix help output to match actual code.
222671b2 36584
f84114f5 365852009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36586
36587 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36588 of homegrown code.
36589
bd288a20 365902009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 36591
36592 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36593 on XFS or ReiserFS.
36594
8aab5e25 365952009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36596
36597 Support Apple partition map with sector size different from 512 bytes.
36598
36599 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36600 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36601 and 'apart.partmap_size'.
36602
6ad6258a 366032009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
366042009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36605
36606 Fix cpuid command.
36607
36608 * commands/i386/cpuid.c (options): New variable.
36609 (grub_cmd_cpuid): Return real error.
36610 (GRUB_MOD_INIT(cpuid)): Declare options.
36611
67459bc6 366122009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36613
36614 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36615 valid.
36616
fbc6ab54 366172009-07-31 Bean <bean123ch@gmail.com>
36618
36619 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36620 log2_inode.
36621 (grub_fshelp_node): Move inode field to the end.
36622 (grub_xfs_data): Remove inode field.
36623 (grub_xfs_inode_block): Calculate inode size using sblock.
36624 (grub_xfs_inode_offset): Likewise.
36625 (grub_xfs_read_inode): Calculate inode size using sblock.
36626 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36627 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36628 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36629 to match inode size.
36630 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36631 not accessible when data is null.
36632 (grub_xfs_open): Likewise.
36633
f45d6cfc 366342009-07-31 Bean <bean123ch@gmail.com>
36635
36636 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36637 Don't change pv->disk if it's already set.
36638
36639 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36640 (grub_raid_register): ... here.
36641 (grub_raid_rescan): Removed.
36642
36643 * include/grub/raid.h (grub_raid_rescan): Removed.
36644
36645 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36646 (fstest): Replace grub_raid_rescan with module fini function followed
36647 by init function.
36648
36649 * util/grub-probe.c: Add include file <grub/raid.h>.
36650 (probe_raid_level): New function.
36651 (probe): Detect abstraction by walking the disk device, support two
36652 level of abstraction (LVM on RAID) when detecting partition map.
36653
24443b5a 366542009-07-31 Pavel Roskin <proski@gnu.org>
36655
36656 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36657 to grub_zalloc(), it was erroneous.
36658 Reported by Bean <bean123ch@gmail.com>
36659
a275d9e7 366602009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36661
36662 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 36663 embedding zone, not only the first one.
a275d9e7 36664
56c5a47f 366652009-07-29 Joe Auricchio <jauricchio@gmail.com>
36666
36667 * term/gfxterm.c (clear_char): New function.
36668 (grub_virtual_screen_setup): Use clear_char.
36669 (scroll_up): Likewise.
36670 (grub_virtual_screen_cls): Likewise.
36671
67bb323a 366722009-07-29 Felix Zielcke <fzielcke@z-51.de>
36673
36674 * util/deviceiter.c (get_acceleraid_disk_name): New static
36675 function.
36676 (grub_util_iterate_devices): Handle Accelraid devices.
36677 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36678
388a7c75 366792009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36680
36681 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36682 separator for the suggested gfxpayload string (';' collides with the
36683 parser and needs escaping).
36684
3bb7abcf 366852009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36686
36687 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36688 Clear direction flag before jumping to OS.
36689 (grub_multiboot2_real_boot): Likewise.
36690
2ddd36d7 366912009-07-28 Felix Zielcke <fzielcke@z-51.de>
36692
36693 * util/i386/pc/grub-install: Fix parsing of --disk-module
36694 option.
36695
c521b62b 366962009-07-28 Felix Zielcke <fzielcke@z-51.de>
36697
36698 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36699 when embedding.
36700
880e0a0c 367012009-07-26 Felix Zielcke <fzielcke@z-51.de>
36702
36703 * util/grub-mkconfig.in (package_version): New variable.
36704 Use it do display the version.
36705
2366e356 367062009-07-25 Felix Zielcke <fzielcke@z-51.de>
36707
36708 * kern/file.c (grub_file_open): Revert to previous check with
36709 grub_errno.
36710
7ad8c80e 367112009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36712
36713 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36714 from help line. It's out of sync with code.
36715
72b9658b 367162009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36717
36718 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36719 entries on failed boot.
36720
77435277 367212009-07-25 Felix Zielcke <fzielcke@z-51.de>
36722
36723 * kern/file.c (grub_file_open): Fix an error check.
36724
fcaa8b21 367252009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36726
35d16c74 36727 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36728 partition map couldn't be identified.
fcaa8b21 36729
48904cd1 367302009-07-23 Pavel Roskin <proski@gnu.org>
36731
ef3c317f 36732 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36733 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36734 case of little endian words becomes just an optimization.
36735 Respect const modifier.
ad8ea1f4 36736 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 36737
48904cd1 36738 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36739 to avoid loss of upper bits if align is unsigned and shorter
36740 than addr.
36741
260c9a89 367422009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36743
36744 UUID support for UFS
36745
36746 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36747 (grub_ufs_uuid): New function.
36748 (grub_ufs_fs): add .uuid
36749
f76ce889 367502009-07-21 Pavel Roskin <proski@gnu.org>
36751
36752 * kern/dl.c (grub_dl_check_header): Make static.
36753
6a6cbcaf 367542009-07-21 Felix Zielcke <fzielcke@z-51.de>
36755
36756 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36757 add drivemap for Vista. It breaks Windows 7.
36758
cffcddb2 367592009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36760
36761 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36762 128 bytes
36763
1ef44b80 367642009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36765
36766 Add BFS support
36767
36768 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36769 (grub_fstest_SOURCES): Likewise.
36770 (pkglib_MODULES): Add befs.mod.
36771 (befs_mod_SOURCES): New variable.
36772 (befs_mod_CFLAGS): Likewise.
36773 (befs_mod_LDFLAGS): Likewise.
36774 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36775 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36776 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36777 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36778 (grub_setup_SOURCES): Likewise.
36779 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36780 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36781 (grub_setup_SOURCES): Likewise.
36782 * fs/befs.c: New file.
36783 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36784 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36785 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36786 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36787 (B_KEY_INDEX_ALIGN): New declaration.
36788 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36789 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36790 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36791 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36792 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36793 (grub_afs_mount) [MODE_BFS]: Likewise.
36794 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36795 (grub_afs_fs): Use GRUB_AFS_FSNAME
36796 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36797 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36798 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36799 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36800
4f253044 368012009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36802
36803 * util/getroot.c (find_root_device): Add support for MacOSX.
36804 * util/hostdisk.c: Likewise.
36805
57a55913 368062009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36807
36808 * font/font.c (find_glyph): Check whether a font is present to avoid
36809 segmentation fault.
75421ca9 36810
368112009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 36812
36813 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36814
e98cd0c2 368152009-07-20 Pavel Roskin <proski@gnu.org>
36816
36817 * configure.ac: Trim excessively wordy excuses.
36818
1d2d169a 368192009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36820
36821 Add symlink, mtime and label support to AtheFS.
36822
36823 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36824 (grub_afs_iterate_dir): Handle symlinks.
36825 (grub_afs_open): Use grub_afs_read_symlink.
36826 (grub_afs_dir): Likewise.
36827 Pass mtime.
36828 (grub_afs_label): New function.
36829 (grub_afs_fs): Add grub_afs_label.
36830 (grub_afs_read_symlink): New function.
36831
186f3189 368322009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36833
36834 Fix AtheFS support.
36835
36836 * fs/afs.c: Fix comments style.
36837 (grub_afs_blockrun): Declare as packed.
36838 (grub_afs_datastream): Likewise.
36839 (grub_afs_bnode): Likewise.
36840 (grub_afs_btree): Likewise.
36841 (grub_afs_sblock): Likewise.
36842 Declare `name' as char.
36843 (grub_afs_inode): Declare as packed.
36844 Change void *vnode to grub_uint32_t unused.
36845 (grub_afs_iterate_dir): Check that key_size is positive.
36846 (grub_afs_mount): Don't read superblock twice.
75421ca9 36847 (grub_afs_dir): Don't free node in case of error,
186f3189 36848 grub_fshelp_find_file already handles this.
36849 (grub_afs_open): Likewise.
36850
5680109e 368512009-07-19 Pavel Roskin <proski@gnu.org>
36852
36853 * Makefile.in: Remove LIBLZO and enable_lzo.
36854 * conf/i386-pc.rmk: Remove lzo support.
36855 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36856 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36857 support.
36858 * kern/i386/pc/lzo1x.S: Remove.
36859 * kern/i386/pc/startup.S: Remove lzo support.
36860 * util/i386/pc/grub-mkimage.c: Likewise.
36861
ac70fa32 368622009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36863
36864 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36865 * fs/xfs.c (grub_xfs_dir): Likewise.
36866 * fs/afs.c (grub_afs_dir): Likewise.
36867 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36868 (grub_iso9660_open): Likewise.
36869 * fs/jfs.c (grub_jfs_open): Likewise.
36870 * fs/ext2.c (grub_ext2_dir): Likewise.
36871 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36872 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 36873
eab58da2 368742009-07-16 Pavel Roskin <proski@gnu.org>
36875
d2838156 36876 * configure.ac: Never add "-c" to CFLAGS.
36877
55c70904 36878 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36879
43e6200c 36880 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36881 grub_cv_cc_efiemu should be used.
36882
ce7a733d 36883 * configure.ac: Typo fixes.
36884
eab58da2 36885 * kern/mm.c (grub_zalloc): New function.
36886 (grub_debug_zalloc): Likewise.
36887 * include/grub/mm.h: Declare grub_zalloc() and
36888 grub_debug_zalloc().
36889 * util/misc.c (grub_zalloc): New function.
36890 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36891 instead of grub_malloc(), remove unneeded initializations.
36892 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36893 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36894 * commands/parttool.c (grub_cmd_parttool): Likewise.
36895 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36896 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36897 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36898 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36899 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36900 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36901 (grub_cmd_efiemu_pnvram): Likewise.
36902 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36903 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36904 (grub_iso9660_iterate_dir): Likewise.
36905 * fs/jfs.c (grub_jfs_opendir): Likewise.
36906 * fs/ntfs.c (list_file): Likewise.
36907 (grub_ntfs_mount): Likewise.
36908 * kern/disk.c (grub_disk_open): Likewise.
36909 * kern/dl.c (grub_dl_load_core): Likewise.
36910 * kern/elf.c (grub_elf_file): Likewise.
36911 * kern/env.c (grub_env_context_open): Likewise.
36912 (grub_env_set): Likewise.
36913 (grub_env_set_data_slot): Likewise.
36914 * kern/file.c (grub_file_open): Likewise.
36915 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36916 * loader/i386/multiboot.c (grub_module): Likewise.
36917 * loader/xnu.c (grub_xnu_create_key): Likewise.
36918 (grub_xnu_create_value): Likewise.
36919 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36920 (read_config_file): Likewise.
36921 * normal/menu_entry.c (make_screen): Likewise.
36922 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36923 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36924 * script/sh/script.c (grub_script_parse): Likewise.
36925 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36926 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36927 * video/readers/png.c (grub_png_output_byte): Likewise.
36928 (grub_video_reader_png): Likewise.
36929
830afef7 369302009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 36931
36932 Enable all targets that can be built by default
36933
830afef7 36934 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 36935 grub-mkfont and grub-fstest if they can be built
36936
ee293aee 369372009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36938
36939 Fix hang and segmentation fault in grub-emu-usb
36940
36941 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36942 * util/usb.c (grub_libusb_devices): likewise
36943 (grub_libusb_init): rename to ...
36944 (GRUB_MOD_INIT (libusb)):...this
36945 (grub_libusb_fini): rename to ..
36946 (GRUB_MOD_FINI (libusb)):...this
36947 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36948 * include/grub/disk.h (grub_raid_init): removed, it's useless
36949 (grub_raid_fini): likewise
36950 (grub_lvm_init): likewise
36951 (grub_lvm_fini): likewise
36952 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36953 by grub_init_all
36954
94414221 369552009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36956
36957 Fix libusb
36958
36959 * Makefile.in (LIBUSB): new macro
36960 * genmk.rb (Utility/print_tail): new method
36961 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36962 (top level): call util.print_tail at the end.
36963
59ade63d 369642009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36965
36966 Make FreeBSD accept zpool.cache
36967
36968 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36969 type is /boot/zfs/zpool.cache
36970
a58da8c7 369712009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36972
36973 Fix 64-bit efiemu
36974
36975 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36976 correct wrong typedef
36977 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36978
20591577 369792009-07-15 Pavel Roskin <proski@gnu.org>
36980
560ca572 36981 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36982 * kern/disk.c (struct grub_disk_cache): Likewise.
36983
e8e8e4fd 36984 * commands/probe.c (options): Typo fix.
36985
fde24e10 36986 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36987 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36988 accordingly.
36989 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36990
379c54c1 36991 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36992 the end of "Error" to make the message more readable.
36993
7bd8f5bf 36994 * boot/i386/pc/boot.S (kernel_segment): Remove.
36995 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36996 for destination.
36997
40b132c5 36998 * boot/i386/pc/boot.S (boot_version): Remove.
36999 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
37000 Remove.
37001
20591577 37002 * include/grub/i386/pc/boot.h: Sort all offsets.
37003 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
37004 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
37005 * boot/i386/pc/boot.S: Assert location of every offset listed in
37006 include/grub/i386/pc/boot.h.
37007
2df32b2c 370082009-07-13 Pavel Roskin <proski@gnu.org>
37009
44b5d879 37010 * include/grub/i386/coreboot/machine.h: Rename
37011 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
37012 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
37013 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
37014
17dc3751 37015 * kern/dl.c: Force native word size to suppress warnings when
37016 compiling grub-emu.
37017
2df32b2c 37018 * kern/device.c (grub_device_iterate): Change struct part_ent to
37019 hold the name, not a pointer to it. Use one grub_malloc() per
37020 partition, not two. Free partition_name if grub_malloc() fails.
37021 Set ents to NULL only before grub_partition_iterate() is called.
37022
75c59f59 370232009-07-11 Bean <bean123ch@gmail.com>
37024
37025 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
37026 childname.
37027
0ae1bf88 370282009-07-10 Bean <bean123ch@gmail.com>
370292009-07-10 Robert Millan <rmh.grub@aybabtu.com>
37030
37031 * kern/ieee1275/openfw.c (grub_children_iterate)
37032 (grub_devalias_iterate): Fix size evaluation for property or path
37033 strings, which was broken since r2132.
37034
8279cade 370352009-07-07 Pavel Roskin <proski@gnu.org>
37036
7d8a52d3 37037 * commands/search.c (search_file): Merge into ...
37038 (search_fs): ... this. Accept search type as argument.
37039 (grub_cmd_search): Pass search type to search_fs().
37040
25f9a05a 37041 * include/grub/util/console.h: New file.
37042 * util/console.c: Use it instead of grub/machine/console.h.
37043 * util/grub-emu.c: Likewise.
37044
8279cade 37045 * lib/arg.c (find_long_option): Remove.
37046 (find_long): Add `len' argument, make `s' const char *.
37047 (grub_arg_parse): Parse long options in place, not in a
37048 temporary buffer.
37049
4a11b60f 370502009-07-06 Pavel Roskin <proski@gnu.org>
37051
99f68041 37052 * commands/search.c (search_fs): Fix potential NULL pointer
37053 dereference.
37054
4a11b60f 37055 * commands/search.c (search_fs): Replace QUID macro with quid_fn
37056 function pointer.
37057
e110f4de 370582009-07-06 Daniel Mierswa <impulze@impulze.org>
37059
37060 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37061 comparison.
37062
46eeb6a2 370632009-07-05 Pavel Roskin <proski@gnu.org>
37064
bab74958 37065 * include/grub/i386/linux.h (struct linux_kernel_params):
37066 Restore padding3, it's still needed.
37067
46eeb6a2 37068 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37069 FreeBSD.
37070 * util/osdetect.lua: Likewise.
37071
b4a1dc79 370722009-07-05 Bean <bean123ch@gmail.com>
37073
37074 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37075
37076 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37077 (grub_lua_getenv): Likewise.
37078 (grub_lua_setenv): Likewise.
37079 (save_errno): New function.
37080 (push_result): Likewise.
37081 (grub_lua_enum_device): Likewise.
37082 (grub_lua_enum_file): Likewise.
37083 (grub_lua_file_open): Likewise.
37084 (grub_lua_file_close): Likewise.
37085 (grub_lua_file_seek): Likewise.
37086 (grub_lua_file_read): Likewise.
37087 (grub_lua_file_getline): Likewise.
37088 (grub_lua_file_getsize): Likewise.
37089 (grub_lua_file_getpos): Likewise.
37090 (grub_lua_file_eof): Likewise.
37091 (grub_lua_file_exist): Likewise.
37092 (grub_lua_add_menu): Likewise.
37093
37094 * script/lua/grub_lua.h (isupper): New inline function.
37095 (islower): Likewise.
37096 (ispunct): Likewise.
37097 (isxdigit): Likewise.
37098 (strcspn): Change to normal function.
37099 (strpbkr): New function declaration.
37100 (memchr): Likewise.
37101
37102 * script/lua/grub_main.c (scan_str): New function.
37103 (strcspn): Likewise.
37104 (strpbrk): Likewise.
37105 (memchr): Likewise.
37106
37107 * script/lua/linit.c (lualibs): Enable the string library.
37108
37109 * util/osdetect.lua: New file.
37110
2da92295 371112009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37112
37113 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37114 `capabilities' member.
37115
b2582ec9 371162009-07-02 Pavel Roskin <proski@gnu.org>
37117
37118 * genparttoollist.sh: Add missing newline at the end.
37119
32622956 371202009-07-01 Pavel Roskin <proski@gnu.org>
37121
87a7339e 37122 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37123
d23af54e 37124 * util/hostdisk.c (open_device): Remove `const' from
37125 `sysctl_size', as sysctlbyname() can change it (in this case it
37126 doesn't actually happen).
37127
c94b18a9 37128 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37129 using signed long int constants.
37130
c6cd3ef0 37131 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37132 constant to avoid a warning on FreeBSD.
37133
0df63420 37134 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37135 where it's needed.
37136
999577f1 37137 * Makefile.in: Install include/grub/machine symlink.
37138
6f41557f 37139 * Makefile.in: When installing symlinks, use "cp -fR", which
37140 works on FreeBSD and MacOSX.
37141 From Yves Blusseau <cl7m42e02@sneakemail.com>
37142
c8d22988 37143 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37144 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37145
1b96e952 37146 * util/misc.c: Move grub_reboot() and grub_halt() ...
37147 * util/grub-emu.c: ... here. Make main_env static.
37148 * include/grub/util/misc.h: Remove main_env.
37149
2ef0084d 37150 * kern/mm.c: Use correct format to print size_t.
37151
32622956 37152 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37153 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37154 * kern/powerpc/dl.c: Likewise.
37155 * kern/sparc64/dl.c: Likewise.
37156 * kern/x86_64/dl.c: Likewise.
37157
3f7f0cd0 371582009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37159
37160 Fix grub-emu build on sparc64-ieee1275.
37161
75421ca9 37162 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 37163 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37164
211d06b5 371652009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37166
37167 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37168 (grub_reboot, grub_halt): New functions.
37169
37170 * util/i386/pc/misc.c: Delete. Update all users.
37171 * util/sparc64/ieee1275/misc.c: Likewise.
37172 * util/powerpc/ieee1275/misc.c: Likewise.
37173
aaf53e3c 371742009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37175
37176 * conf/i386.rmk (setjmp_mod_SOURCES)
37177 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37178 * conf/common.rmk (setjmp_mod_SOURCES)
37179 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37180 to use $(target_cpu).
37181 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37182 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37183 * conf/powerpc-ieee1275.rmk: Likewise.
37184 * conf/sparc64-ieee1275.rmk: Likewise.
37185
37186 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37187 $(target_cpu) for kern/$(target_cpu)/dl.c.
37188 * conf/i386-efi.rmk: Likewise.
37189 * conf/i386-ieee1275.rmk: Likewise.
37190 * conf/x86_64-efi.rmk: Likewise.
37191 * conf/i386-coreboot.rmk: Likewise.
37192 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37193 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37194 kern/$(target_cpu)/cache.S.
37195 * conf/sparc64-ieee1275.rmk: Likewise.
37196
a337130b 371972009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37198
37199 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37200 type to `grub_uint8_t', and adjust `padding9' accordingly.
37201
c6fe4d53 372022009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37203
b09db61d 37204 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37205
c6fe4d53 37206 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37207 assembly in final jump, using register constraints.
37208
b09db61d 37209 (grub_linux_boot): For text mode, initialize `have_vga' using
37210 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37211
37212 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37213 right before the final jump.
37214
37215 Set `video_mode' to 0x3.
37216
37217 Document initialization of `video_page', `video_mode' and
37218 `video_ega_bx'.
37219
28333ad0 372202009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37221
37222 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37223 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 37224 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 37225
02164e1b 372262009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37227
37228 Fix build on Debian / sparc.
37229
37230 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37231
18b6c557 372322009-06-28 Pavel Roskin <proski@gnu.org>
37233
85f2aab6 37234 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37235 fix a warning.
37236
18b6c557 37237 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37238
ad760f81 372392009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37240
37241 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37242 `err'.
37243
87a4623b 372442009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37245
37246 Revert r2338.
37247
37248 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37249 file can't be opened. grub_file_open() is already supposed to set
75421ca9 37250 grub_errno / grub_errmsg appropriately.
87a4623b 37251 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37252
8231fb77 372532009-06-27 Pavel Roskin <proski@gnu.org>
372542009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37255
37256 * include/grub/dl.h: Include grub/elf.h.
37257 (struct grub_dl): Add symtab field.
37258 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37259 GRUB_MODULES_MACHINE_READONLY.
37260 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37261 of the header for read-only modules.
37262 (grub_dl_unload): Free mod->symtab for read-only modules.
37263 * kern/i386/dl.c: Use mod->symtab.
37264 * kern/powerpc/dl.c: Likewise.
37265 * kern/sparc64/dl.c: Likewise.
37266 * kern/x86_64/dl.c: Likewise.
37267
37268 * conf/i386-qemu.rmk: New file.
37269 * kern/i386/qemu/startup.S: Likewise.
37270 * kern/i386/qemu/mmap.c: Likewise.
37271 * boot/i386/qemu/boot.S: Likewise.
37272 * include/grub/i386/qemu/time.h: Likewise.
37273 * include/grub/i386/qemu/serial.h: Likewise.
37274 * include/grub/i386/qemu/kernel.h: Likewise.
37275 * include/grub/i386/qemu/console.h: Likewise.
37276 * include/grub/i386/qemu/boot.h: Likewise.
37277 * include/grub/i386/qemu/init.h: Likewise.
37278 * include/grub/i386/qemu/machine.h: Likewise.
37279 * include/grub/i386/qemu/loader.h: Likewise.
37280 * include/grub/i386/qemu/memory.h: Likewise.
37281
37282 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37283 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37284 [qemu] (pkglib_IMAGES): Add `boot.img'.
37285 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37286 [qemu] (boot_img_FORMAT): New variables.
37287 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37288 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37289 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37290 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37291 [qemu] (kernel_img_FORMAT): New variables.
37292
37293 * configure.ac: Recognise `i386-qemu'.
37294
37295 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37296 (for no compression).
37297 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37298 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37299 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37300 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37301 ifdefs).
37302
97fe384e 373032009-06-27 Pavel Roskin <proski@gnu.org>
37304
37305 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37306 read.
37307 * efiemu/prepare32.c: Likewise.
37308 * efiemu/prepare64.c: Likewise.
37309
c402ab17 373102009-06-26 Pavel Roskin <proski@gnu.org>
37311
37312 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37313 * include/grub/elf.h: Define symbols without "32" or "64" based
37314 on GRUB_TARGET_WORDSIZE.
37315 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37316 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37317 ELF definitions.
37318 * efiemu/loadcore64.c: Likewise.
37319 * loader/i386/bsd32.c: Likewise.
37320 * loader/i386/bsd64.c: Likewise.
37321 * kern/dl.c: Remove own ELF definitions.
37322 * util/i386/efi/grub-mkimage.c: Likewise.
37323
9bbdfd4d 373242009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37325
37326 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37327 segment 0x0 unconditionally, because the reference generated by
37328 GAS is an absolute address.
37329
a42ce6e9 373302009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37331
37332 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37333 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37334
c952cf92 373352009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37336
37337 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37338 indexes. Check for -f explicitly.
cc3752ad 37339 (search_file): Improve error message.
37340 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 37341
132a0a59 373422009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37343
37344 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37345 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37346
387a140c 373472009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37348
37349 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37350 * conf/i386-ieee1275.rmk: Likewise.
37351 * conf/i386-coreboot.rmk: Likewise.
37352
37353 * kern/i386/pc/startup.S (grub_stop): Remove function.
37354 * kern/i386/ieee1275/startup.S: Likewise.
37355 * kern/i386/coreboot/startup.S: Likewise.
37356 * kern/i386/misc.S (grub_stop): New function.
37357
41da9665 373582009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37359
37360 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37361 * kern/i386/realmode.S (real_to_prot): ... to here.
37362
bf337234 373632009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37364
37365 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37366 with `kernel.img'.
37367 (kernel_elf_SOURCES): Rename to ...
37368 (kernel_img_SOURCES): ... this.
37369 (kernel_elf_HEADERS): Rename to ...
37370 (kernel_img_HEADERS): ... this. Update all users.
37371 (kernel_elf_ASFLAGS): Rename to ...
37372 (kernel_img_ASFLAGS): ... this.
37373 (kernel_elf_CFLAGS): Rename to ...
37374 (kernel_img_CFLAGS): ... this.
37375 (kernel_elf_LDFLAGS): Rename to ...
37376 (kernel_img_LDFLAGS): ... this.
37377 * conf/i386-coreboot.rmk: Likewise.
37378 * conf/powerpc-ieee1275.rmk: Likewise.
37379
37380 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37381 with "kernel.img".
37382
f52196ff 373832009-06-21 Pavel Roskin <proski@gnu.org>
37384
c3cee413 37385 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37386 to match nested functions.
37387 * loader/sparc64/ieee1275/linux.c: Likewise.
37388
f52196ff 37389 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37390
58750afc 373912009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37392
37393 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37394 all i386 platforms.
37395
15355c7d 373962009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37397
37398 Fix asm file handling on ELF, and remove workarounds.
37399
37400 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 37401 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 37402 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37403 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37404
3f3ec72b 374052009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37406
37407 Load BSD ELF modules
37408
37409 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37410 and loader/i386/bsd64.c
37411 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37412 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37413 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37414 (grub_freebsd_load_elfmodule32): New declaration
37415 (grub_freebsd_load_elfmoduleobj64): Likewise
37416 (grub_freebsd_load_elf_meta32): Likewise
37417 (grub_freebsd_load_elf_meta64): Likewise
37418 (grub_freebsd_add_meta): Likewise
37419 (grub_freebsd_add_meta_module): Likewise
37420 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37421 (grub_freebsd_add_meta_module): Likewise and move module-specific
37422 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37423 (grub_cmd_freebsd): Add elf-kernel specific parts
37424 based on grub_freebsd_add_meta_module
37425 (grub_cmd_freebsd_module): Add type parsing moved from
37426 grub_freebsd_add_meta_module
37427 (grub_cmd_freebsd_module_elf): New function
37428 (cmd_freebsd_module_elf): New variable
37429 (GRUB_MOD_INIT): Register freebsd_module_elf
37430 * loader/i386/bsd32.c: New file
37431 * loader/i386/bsd64.c: Likewise
37432 * loader/i386/bsdXX.c: Likewise
37433 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37434 (grub_elf64_load): Likewise
37435 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37436 All users updated
37437 (grub_elf64_load_hook_t): Likewise
37438
0db15301 374392009-06-21 Colin Watson <cjwatson@ubuntu.com>
37440
37441 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37442 variable.
37443 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37444 don't write a menu entry for recovery mode.
37445
546796c1 374462009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37447
37448 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37449 after it's no longer needed.
37450
cd7310d5 374512009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37452
37453 * include/grub/i386/loader.h (grub_linux_prot_size)
37454 (grub_linux_tmp_addr, grub_linux_real_addr)
37455 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37456 GRUB_MACHINE_PCBIOS.
37457 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37458 common grub_util_info() call to ...
37459 (generate_image): ... here.
37460 Fix use of uninitialized memory, comparison of signed with
37461 unsigned integers and memory leak.
37462 Remove bogus module address message.
37463
ab32d3b5 374642009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37465
37466 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37467 grub_raid_register
37468 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37469
024ef597 374702009-06-19 Pavel Roskin <proski@gnu.org>
37471
37472 * configure.ac: Remove stray AC_MSG_CHECKING.
37473
3ac72b51 374742009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37475
37476 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 37477
e14cd814 374782009-06-18 Pavel Roskin <proski@gnu.org>
37479
37480 * conf/common.rmk: Add fs_file.mod.
37481 * disk/fs_file.c: New file.
37482 * include/grub/disk.h (enum grub_disk_dev_id): Add
37483 GRUB_DISK_DEVICE_FILE_ID.
37484
26586d98 374852009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37486
37487 Fix build with Apple's toolchain. Part 2
37488
37489 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37490 a fake start
37491
26de2bcd 374922009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37493
37494 Fix build with Apple's toolchain. Part 1
37495
37496 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37497 for long calls
37498 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 37499 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 37500 Apple's toolchain
37501
09b3490b 375022009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37503
37504 Fix warnings
37505
37506 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37507 (decomp_block): initialize ch
37508 use grub_memcpy instead of memcpy
37509
c22a006a 375102009-06-17 Pavel Roskin <proski@gnu.org>
37511
d3638678 37512 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37513 version, use declarations needed to use vga_text as the startup
37514 console.
37515
c22a006a 37516 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37517 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37518 the kernel.
37519 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37520 and grub_at_keyboard_fini(), it's done on module load and
37521 unload.
37522
05b129e0 375232009-06-17 Felix Zielcke <fzielcke@z-51.de>
37524
37525 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37526 file can't be found.
37527 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37528
cf24ed9e 375292009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37530
37531 Fix newline handling
37532
37533 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 37534 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 37535 (grub_script_yylex): don't segfault on unterminated script
37536 newline terminates command and variable
37537
74aa8e4b 375382009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37539
37540 avoid double grub_adjust_range call. Bug reported by David Simner
37541
37542 * kern/disk.c (grub_disk_write): change to raw disk access before
37543 calling disk_read
37544
1bd265f3 375452009-06-17 Colin Watson <cjwatson@ubuntu.com>
37546
37547 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37548 spaces, for the benefit of help2man.
37549 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37550
a2d08c06 375512009-06-16 Pavel Roskin <proski@gnu.org>
37552
37553 * kern/i386/halt.c: Include grub/machine/init.h.
37554 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37555
b97bcb19 375562009-06-16 Felix Zielcke <fzielcke@z-51.de>
37557
37558 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37559 drivemap menuentry.
37560
0644f96c 375612009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37562
37563 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37564 `echo' command.
37565
3ef17a2e 375662009-06-16 Pavel Roskin <proski@gnu.org>
37567
37568 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37569 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37570 save %dx, we only need %dl and we never change it.
37571 * boot/i386/pc/cdboot.S: Don't set the root drive.
37572 * boot/i386/pc/pxeboot.S: Likewise.
37573 * include/grub/i386/pc/boot.h: Remove
37574 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37575 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37576 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37577 * kern/i386/pc/init.c (make_install_device): Remove references
37578 to grub_root_drive.
37579 * kern/i386/pc/startup.S: Likewise.
37580 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37581
693fe637 375822009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37583
37584 xnu_uuid command
37585
37586 * commands/xnu_uuid.c: new file
37587 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37588 (xnu_uuid_mod_SOURCES): new variable
37589 (xnu_uuid_mod_CFLAGS): likewise
37590 (xnu_uuid_mod_LDFLAGS): likewise
37591 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37592 * conf/i386-ieee1275.rmk: likewise
37593 * conf/i386-pc.rmk: likewise
37594 * conf/powerpc-ieee1275.rmk: likewise
37595 * conf/sparc64-ieee1275.rmk: likewise
37596 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37597
c9da87d0 375982009-06-16 Pavel Roskin <proski@gnu.org>
37599
37600 * configure.ac: Avoid '==' in test command, it's not portable.
37601
9c6f4596 376022009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37603
37604 Probe command
37605
37606 * commands/probe.c: new file
37607 * conf/common.rmk (pkglib_MODULES): add probe.mod
37608 (probe_mod_SOURCES): new variable
37609 (probe_mod_CFLAGS): likewise
37610 (probe_mod_LDFLAGS): likewise
37611 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37612 * conf/i386-ieee1275.rmk: likewise
37613 * conf/i386-pc.rmk: likewise
37614 * conf/powerpc-ieee1275.rmk: likewise
37615 * conf/sparc64-ieee1275.rmk: likewise
37616
70b7f9fd 376172009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37618
37619 Fix handling of string like \"hello\" and "a
37620 b"
37621
37622 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37623 (grub_script_yylex): fix parsing of quoting, escaping and newline
37624
71c79a6b 376252009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37626
dd74360c 37627 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 37628 handling
dd74360c 37629
0644f96c 376302009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 37631
37632 * util/grub-mkconfig.in: Fix parsing of --output option.
37633
e40893c3 376342009-06-12 Pavel Roskin <proski@gnu.org>
37635
37636 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37637 genmk.rb don't need to be generated or installed.
37638
3a1acfe2 376392009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37640
37641 * commands/i386/pc/drivemap_int13h.S: add more comments
37642
3a4575d4 376432009-06-11 Pavel Roskin <proski@gnu.org>
37644
0658e928 37645 * Makefile.in (uninstall): Uninstall manuals.
37646
ca0388f0 37647 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37648 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37649 and update-grub_lib in two places.
37650 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37651
e3b27c39 37652 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37653 a compiler warning.
37654
3a4575d4 37655 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37656 `entry_lo' to fix variable shadowing.
37657
af1f4f55 376582009-06-11 Christian Franke <franke@computer.org>
37659
37660 * kern/misc.c (__enable_execute_stack): Add missing return type
37661 to prevent gcc warning.
37662
5225e649 376632009-06-11 Felix Zielcke <fzielcke@z-51.de>
37664
37665 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37666
7d83bd47 376672009-06-11 Pavel Roskin <proski@gnu.org>
37668
c1cb63ba 37669 * Makefile.in: Don't rely on any scripts being executable.
37670 Always use $(SHELL) to run shell scripts.
37671
7d83bd47 37672 * configure.ac: Always define ___main if using -nostdlib. This
37673 fixes tests on Cygwin.
37674
948f48e7 376752009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37676
37677 UDF fix
37678
7d83bd47 37679 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 37680 is in bytes and not in blocks
7d83bd47 37681
8ada9bc1 376822009-06-11 Pavel Roskin <proski@gnu.org>
37683
37684 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37685 warning.
37686
25ad2323 376872009-06-11 Felix Zielcke <fzielcke@z-51.de>
37688
37689 * util/grub.d/30_os-prober.in: Fix a comment. Source
37690 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37691 to set the root device. Place drivemap command in the generated
37692 chain entry.
37693
e65acb0c 376942009-06-11 Pavel Roskin <proski@gnu.org>
37695
37696 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37697 have long been resolved.
37698
f285fe2d 376992009-06-11 Colin Watson <cjwatson@ubuntu.com>
37700
bd47b0b5 37701 * util/grub.d/10_linux.in: Capitalise "Linux".
37702
f285fe2d 37703 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37704
a0c62e4e 377052009-06-11 Pavel Roskin <proski@gnu.org>
37706
b6783cb2 37707 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37708 fix a gcc warning and ensure that the function won't ever exit.
37709
dde032e8 37710 * kern/i386/ieee1275/init.c: Add missing prototype for
37711 grub_stop_floppy().
37712
22cd079d 37713 * loader/ieee1275/multiboot2.c [__i386__]: Include
37714 grub/cpu/multiboot.h.
37715
a0c62e4e 37716 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37717 casts to short - they are not portable and cause warnings. Fix
37718 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37719
63963d17 377202009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37721
37722 Drivemap fixes
37723
37724 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37725 new function
37726 (grub_get_root_biosnumber_saved): new variable
37727 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37728 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 37729 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 37730 %dx after the call if necessary
37731 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37732 (boot_mod_SOURCES): remove
37733 (boot_mod_CFLAGS): remove
37734 (boot_mod_LDFLAGS): remove
37735 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37736 (boot_mod_SOURCES): new variable
37737 (boot_mod_CFLAGS): likewise
37738 (boot_mod_LDFLAGS): likewise
37739 * conf/i386-efi.rmk: likewise
37740 * conf/i386-ieee1275.rmk: likewise
37741 * conf/i386-pc.rmk: likewise
37742 * conf/powerpc-ieee1275.rmk: likewise
37743 * conf/sparc64-ieee1275.rmk: likewise
37744 * conf/x86_64-efi.rmk: likewise
37745 * include/grub/i386/pc/biosnum.h: new file
37746 * lib/i386/pc/biosnum.c: likewise
37747 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37748 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37749 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 37750
33abf7ae 377512009-06-10 Pavel Roskin <proski@gnu.org>
37752
5ac35b35 37753 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37754 Use separate variables. Read only the file size at the end, but
37755 not the checksum that we don't use.
37756
5c5215d5 37757 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37758 Adjust all callers.
37759
27d5fef7 37760 * kern/ieee1275/openfw.c: Remove libc includes.
37761 * kern/ieee1275/cmain.c: Likewise.
37762 * include/grub/ieee1275/ieee1275.h: Likewise.
37763
33abf7ae 37764 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37765 compiler warnings.
37766
19d50c2b 377672009-06-10 Felix Zielcke <fzielcke@z-51.de>
37768
37769 * Makefile.in: Remove all trailing whitespace.
37770 * conf/i386-pc.rmk: Likewise.
37771 * conf/powerpc-ieee1275.rmk: Likewise.
37772 * conf/sparc64-ieee1275.rmk: Likewise.
37773 * docs/grub.texi: Likewise.
37774 * docs/texinfo.tex: Likewise.
37775 * disk/fs_uuid.c: Likewise.
37776 * disk/lvm.c: Likewise.
37777 * disk/scsi.c: Likewise.
37778 * disk/ata.c: Likewise.
37779 * disk/ieee1275/ofdisk.c: Likewise.
37780 * disk/i386/pc/biosdisk.c: Likewise.
37781 * disk/host.c: Likewise.
37782 * disk/raid.c: Likewise.
37783 * disk/efi/efidisk.c: Likewise.
37784 * disk/usbms.c: Likewise.
37785 * disk/memdisk.c: Likewise.
37786 * disk/loopback.c: Likewise.
37787 * kern/powerpc/dl.c: Likewise.
37788 * kern/device.c: Likewise.
37789 * kern/dl.c: Likewise.
37790 * kern/sparc64/dl.c: Likewise.
37791 * kern/ieee1275/ieee1275.c: Likewise.
37792 * kern/term.c: Likewise.
37793 * kern/fs.c: Likewise.
37794 * kern/i386/dl.c: Likewise.
37795 * kern/i386/pc/startup.S: Likewise.
37796 * kern/i386/pc/init.c: Likewise.
37797 * kern/i386/pc/mmap.c: Likewise.
37798 * kern/i386/pc/lzo1x.S: Likewise.
37799 * kern/i386/ieee1275/init.c: Likewise.
37800 * kern/i386/realmode.S: Likewise.
37801 * kern/i386/tsc.c: Likewise.
37802 * kern/partition.c: Likewise.
37803 * kern/corecmd.c: Likewise.
37804 * kern/file.c: Likewise.
37805 * kern/efi/efi.c: Likewise.
37806 * kern/efi/init.c: Likewise.
37807 * kern/efi/mm.c: Likewise.
37808 * kern/main.c: Likewise.
37809 * kern/err.c: Likewise.
37810 * kern/env.c: Likewise.
37811 * kern/disk.c: Likewise.
37812 * kern/generic/millisleep.c: Likewise.
37813 * kern/generic/rtc_get_time_ms.c: Likewise.
37814 * kern/misc.c: Likewise.
37815 * kern/parser.c: Likewise.
37816 * genmk.rb: Likewise.
37817 * configure.ac: Likewise.
37818 * boot/i386/pc/diskboot.S: Likewise.
37819 * boot/i386/pc/pxeboot.S: Likewise.
37820 * boot/i386/pc/boot.S: Likewise.
37821 * boot/i386/pc/lnxboot.S: Likewise.
37822 * boot/i386/pc/cdboot.S: Likewise.
37823 * parttool/pcpart.c: Likewise.
37824 * video/readers/tga.c: Likewise.
37825 * video/video.c: Likewise.
37826 * video/bitmap.c: Likewise.
37827 * lib/envblk.c: Likewise.
37828 * lib/i386/setjmp.S: Likewise.
37829 * fs/xfs.c: Likewise.
37830 * fs/afs.c: Likewise.
37831 * fs/fat.c: Likewise.
37832 * fs/ntfs.c: Likewise.
37833 * fs/udf.c: Likewise.
37834 * fs/affs.c: Likewise.
37835 * fs/iso9660.c: Likewise.
37836 * fs/hfs.c: Likewise.
37837 * fs/fshelp.c: Likewise.
37838 * fs/ext2.c: Likewise.
37839 * fs/jfs.c: Likewise.
37840 * fs/reiserfs.c: Likewise.
37841 * fs/hfsplus.c: Likewise.
37842 * fs/minix.c: Likewise.
37843 * fs/cpio.c: Likewise.
37844 * fs/sfs.c: Likewise.
37845 * fs/ufs.c: Likewise.
37846 * efiemu/prepare.c: Likewise.
37847 * efiemu/loadcore_common.c: Likewise.
37848 * efiemu/runtime/efiemu.sh: Likewise.
37849 * efiemu/runtime/efiemu.S: Likewise.
37850 * efiemu/runtime/efiemu.c: Likewise.
37851 * efiemu/pnvram.c: Likewise.
37852 * efiemu/main.c: Likewise.
37853 * efiemu/i386/pc/cfgtables.c: Likewise.
37854 * efiemu/i386/loadcore64.c: Likewise.
37855 * efiemu/i386/loadcore32.c: Likewise.
37856 * efiemu/loadcore.c: Likewise.
37857 * efiemu/symbols.c: Likewise.
37858 * efiemu/mm.c: Likewise.
37859 * include/grub/autoefi.h: Likewise.
37860 * include/grub/datetime.h: Likewise.
37861 * include/grub/term.h: Likewise.
37862 * include/grub/hfs.h: Likewise.
37863 * include/grub/lvm.h: Likewise.
37864 * include/grub/i386/tsc.h: Likewise.
37865 * include/grub/i386/linux.h: Likewise.
37866 * include/grub/i386/xnu.h: Likewise.
37867 * include/grub/i386/efiemu.h: Likewise.
37868 * include/grub/i386/pc/biosdisk.h: Likewise.
37869 * include/grub/i386/pc/memory.h: Likewise.
37870 * include/grub/i386/pc/vbe.h: Likewise.
37871 * include/grub/parttool.h: Likewise.
37872 * include/grub/video.h: Likewise.
37873 * include/grub/memory.h: Likewise.
37874 * include/grub/fs.h: Likewise.
37875 * include/grub/partition.h: Likewise.
37876 * include/grub/xnu.h: Likewise.
37877 * include/grub/efi/api.h: Likewise.
37878 * include/grub/efi/pe32.h: Likewise.
37879 * include/grub/efi/memory.h: Likewise.
37880 * include/grub/multiboot.h: Likewise.
37881 * include/grub/usbdesc.h: Likewise.
37882 * include/grub/multiboot2.h: Likewise.
37883 * include/grub/acpi.h: Likewise.
37884 * include/grub/efiemu/efiemu.h: Likewise.
37885 * include/grub/disk.h: Likewise.
37886 * include/grub/ieee1275/ieee1275.h: Likewise.
37887 * include/grub/net.h: Likewise.
37888 * include/grub/machoload.h: Likewise.
37889 * include/grub/macho.h: Likewise.
37890 * include/multiboot.h: Likewise.
37891 * genmoddep.awk: Likewise.
37892 * normal/main.c: Likewise.
37893 * normal/menu_entry.c: Likewise.
37894 * normal/menu_viewer.c: Likewise.
37895 * normal/completion.c: Likewise.
37896 * normal/cmdline.c: Likewise.
37897 * normal/misc.c: Likewise.
37898 * normal/datetime.c: Likewise.
37899 * bus/usb/usbtrans.c: Likewise.
37900 * bus/usb/ohci.c: Likewise.
37901 * bus/usb/uhci.c: Likewise.
37902 * bus/usb/usb.c: Likewise.
37903 * mmap/efi/mmap.c: Likewise.
37904 * mmap/i386/pc/mmap_helper.S: Likewise.
37905 * mmap/i386/pc/mmap.c: Likewise.
37906 * mmap/i386/mmap.c: Likewise.
37907 * mmap/i386/uppermem.c: Likewise.
37908 * mmap/mmap.c: Likewise.
37909 * commands/acpi.c: Likewise.
37910 * commands/echo.c: Likewise.
37911 * commands/blocklist.c: Likewise.
37912 * commands/loadenv.c: Likewise.
37913 * commands/usbtest.c: Likewise.
37914 * commands/boot.c: Likewise.
37915 * commands/parttool.c: Likewise.
37916 * commands/search.c: Likewise.
37917 * commands/cat.c: Likewise.
37918 * commands/i386/pc/play.c: Likewise.
37919 * commands/i386/pc/drivemap.c: Likewise.
37920 * commands/i386/pc/vbeinfo.c: Likewise.
37921 * commands/i386/pc/acpi.c: Likewise.
37922 * commands/i386/pc/vbetest.c: Likewise.
37923 * commands/ls.c: Likewise.
37924 * commands/cmp.c: Likewise.
37925 * commands/test.c: Likewise.
37926 * commands/efi/acpi.c: Likewise.
37927 * commands/gptsync.c: Likewise.
37928 * commands/help.c: Likewise.
37929 * partmap/amiga.c: Likewise.
37930 * partmap/apple.c: Likewise.
37931 * partmap/acorn.c: Likewise.
37932 * partmap/pc.c: Likewise.
37933 * partmap/sun.c: Likewise.
37934 * partmap/gpt.c: Likewise.
37935 * script/sh/lexer.c: Likewise.
37936 * script/sh/function.c: Likewise.
37937 * font/font.c: Likewise.
37938 * font/font_cmd.c: Likewise.
37939 * loader/powerpc/ieee1275/linux.c: Likewise.
37940 * loader/efi/chainloader.c: Likewise.
37941 * loader/multiboot_loader.c: Likewise.
37942 * loader/macho.c: Likewise.
37943 * loader/i386/multiboot.c: Likewise.
37944 * loader/i386/linux.c: Likewise.
37945 * loader/i386/pc/linux.c: Likewise.
37946 * loader/i386/pc/multiboot2.c: Likewise.
37947 * loader/i386/pc/chainloader.c: Likewise.
37948 * loader/i386/pc/xnu.c: Likewise.
37949 * loader/i386/bsd_trampoline.S: Likewise.
37950 * loader/i386/efi/linux.c: Likewise.
37951 * loader/i386/multiboot_elfxx.c: Likewise.
37952 * loader/i386/bsd_helper.S: Likewise.
37953 * loader/i386/bsd.c: Likewise.
37954 * loader/i386/linux_trampoline.S: Likewise.
37955 * loader/i386/xnu_helper.S: Likewise.
37956 * loader/i386/xnu.c: Likewise.
37957 * loader/i386/bsd_pagetable.c: Likewise.
37958 * loader/i386/multiboot_helper.S: Likewise.
37959 * loader/xnu.c: Likewise.
37960 * loader/xnu_resume.c: Likewise.
37961 * io/gzio.c: Likewise.
37962 * term/efi/console.c: Likewise.
37963 * term/terminfo.c: Likewise.
37964 * term/ieee1275/ofconsole.c: Likewise.
37965 * term/i386/pc/serial.c: Likewise.
37966 * term/i386/pc/vesafb.c: Likewise.
37967 * term/i386/pc/vga.c: Likewise.
37968 * term/usb_keyboard.c: Likewise.
37969 * term/gfxterm.c: Likewise.
37970 * aclocal.m4: Likewise.
37971 * util/lvm.c: Likewise.
37972 * util/grub.d/30_os-prober.in: Likewise.
37973 * util/grub.d/10_hurd.in: Likewise.
37974 * util/console.c: Likewise.
37975 * util/grub-macho2img.c: Likewise.
37976 * util/grub-probe.c: Likewise.
37977 * util/hostfs.c: Likewise.
37978 * util/i386/pc/grub-mkimage.c: Likewise.
37979 * util/i386/pc/grub-setup.c: Likewise.
37980 * util/i386/efi/grub-mkimage.c: Likewise.
37981 * util/grub-mkconfig.in: Likewise.
37982 * util/raid.c: Likewise.
37983 * util/resolve.c: Likewise.
37984 * util/grub-mkdevicemap.c: Likewise.
37985 * util/grub-emu.c: Likewise.
37986 * util/getroot.c: Likewise.
37987 * util/hostdisk.c: Likewise.
37988 * util/usb.c: Likewise.
37989 * util/grub-editenv.c: Likewise.
37990 * util/misc.c: Likewise.
37991
d2d49665 379922009-06-10 Felix Zielcke <fzielcke@z-51.de>
37993
37994 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37995 `genparttoollist.sh'.
37996 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37997 Add `*.sh' to the list find searches for and change `mdate.sh'
37998 to `mdate-sh'.
37999
fe052e37 380002009-06-10 Pavel Roskin <proski@gnu.org>
38001
2763ac18 38002 * include/grub/multiboot2.h: Provide compatibility defines for
38003 multiboot2.h.
38004 * include/multiboot2.h: Include stdint.h only if needed, using
38005 angle brackets.
38006 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
38007 grub/multiboot2.h.
38008 * loader/ieee1275/multiboot2.c: Likewise.
38009 * loader/multiboot2.c: Likewise.
38010 * loader/multiboot_loader.c: Likewise.
38011
437e6adc 38012 * configure.ac: Use -nostdlib when probing for the target. It
38013 should not be required to have libc for the target.
38014
06a6836c 38015 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
38016 they fail without libc headers for the target.
38017 * include/grub/powerpc/libgcc.h: Use weak attribute for all
38018 exports.
38019 * include/grub/sparc64/libgcc.h: Likewise. Don't use
38020 preprocessor conditionals.
38021
fe052e37 38022 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
38023 build system doesn't need to be aware of the tar.c internals.
38024
afd22553 380252009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 38026
afd22553 38027 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 38028
6b787c4f 380292009-06-09 Robert Millan <rmh.grub@aybabtu.com>
38030
38031 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
38032 disk limit to 26 for IDE, Virtio, Xen and SCSI.
38033
380342009-06-09 Felix Zielcke <fzielcke@z-51.de>
38035
38036 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 38037 aren't available if ata.mod gets used.
6b787c4f 38038
473d1e45 380392009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 38040
473d1e45 38041 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 38042 initialising controller.
473d1e45 38043 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 38044
255a27d4 380452009-06-08 Felix Zielcke <fzielcke@z-51.de>
38046
38047 * util/i386/pc/grub-install.in: Add a parameter --disk-module
38048 to choose between ata and biosdisk module on i386-pc.
38049
473d1e45 380502009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 38051
d55842d8 38052 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
38053 Subclass and Programming Interface fields in terms of the 3 byte
38054 Class Code register.
38055 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38056
fa5db0b1 38057 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
38058 interface is OHCI. Add grub_dprintf for symmetry with
38059 bus/usb/uhci.c.
38060 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
38061 interface is UHCI. Add interf variable for programming
38062 interface. Print interface with class/subclass.
38063
c0947beb 38064 * bus/usb/ohci.c: Set interf with correct field.
38065
69da8877 38066 * bus/usb/uhci.c: Remove unneeded doubled lines.
38067 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38068 Remove whitespace inside comment.
38069
9e172e30 380702009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38071
38072 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38073 as fallback an equivalent option without depth.
38074
de65ee2b 380752009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38076
38077 Not fail if unable to retrieve C/H/S on LBA disks
38078
473d1e45 38079 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 38080 if unable to retrieve C/H/S on LBA disks
38081
b57ea2c9 380822009-06-08 Pavel Roskin <proski@gnu.org>
38083
38084 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38085 about aliasing.
38086
af361263 380872009-06-08 Felix Zielcke <fzielcke@z-51.de>
38088
38089 * Makefile.in (uninstall): Remove all $lib_DATA files.
38090
4c9ec6b3 380912009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38092
38093 Bugfix: install on partitionless device
38094
38095 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38096 is a whole disk
38097
e76fc924 380982009-06-08 Felix Zielcke <fzielcke@z-51.de>
38099
38100 * Makefile.in (uninstall): Remove all $include_DATA files.
38101
ba5a0d05 381022009-06-08 Felix Zielcke <fzielcke@z-51.de>
38103
38104 * commands/true.c: New file. Implement the true and false commands.
38105 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38106 (true_mod_SOURCES): New variable.
38107 (true_mod_CFLAGS): Likewise.
38108 (true_mod_LDFLAGS): Likewise.
38109
c8048e32 381102009-06-05 Colin D Bennett <colin@gibibit.com>
38111
38112 Optimized font character lookup using binary search instead of linear
38113 search. Fonts now are required to have the character index ordered by
38114 code point.
38115
38116 * font/font.c (load_font_index): Verify that fonts have ordered
38117 character indices.
38118 (find_glyph): Use binary search instead of linear search to find a
38119 character in a font.
38120
408305be 381212009-06-05 Michael Scherer <misc@mandriva.org>
38122
38123 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38124 uses case sensitive btree.
38125 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38126 only for case insensitive filesystems.
38127
8ee1e0d9 381282009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38129
38130 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38131 * conf/common.rmk (search_mod_CFLAGS): likewise
38132
a9966eb1 381332009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38134
473d1e45 38135 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 38136 compensate a compiler bug
38137
9e7100fb 381382009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38139
473d1e45 38140 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 38141 instead of '\b'
473d1e45 38142
ede21d71 381432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38144
38145 Definitions for creating asm symbols with Apple's CC
38146
38147 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38148 [APPLE_CC] (VARIABLE): likewise
38149
9dbf7653 381502009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38151
38152 Disable lnxboot.img when compiled
38153 with Apple's CC
38154
38155 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38156 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38157 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38158 [! APPLE_CC] (CODE_LENG): skip
38159 [! APPLE_CC] (setup_sects): likewise
38160 [! APPLE_CC]: skip filling
473d1e45 38161
e93cdc3d 381622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38163
38164 Address in trampolines based on 32-bit registers when compiled
38165 with Apple's CC
38166
473d1e45 38167 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 38168 for addresses
38169 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38170
6c688477 381712009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38172
38173 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38174
38175 * kern/misc.c [APPLE_CC] (memcpy): new function
38176 [APPLE_CC] (memmove): likewise
38177 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 38178 (memcpy): define alias conditionally on !APPLE_CC
6c688477 38179 (memset): likewise
38180 (abort): likewise
38181 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38182 APPLE_CC are defined
38183 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38184 (grub_assert_fail): make prototype conditional
38185
e37ffc5c 381862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38187
38188 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38189
473d1e45 38190 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38191 grub-macho2img
e37ffc5c 38192 (CLEANFILES): add grub-macho2img
38193 (grub_macho2img_SOURCES): new variable
38194 * kern/i386/pc/startup.S (bss_start): new variable
38195 (bss_end): likewise
38196 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38197 * util/grub-macho2img.c: new file
38198
cf00df31 381992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38200
38201 Use objconv when compiling with Apple's CC
38202
38203 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38204 (efiemu64.o): likewise
38205 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38206 when compiling with Apple's CC
38207 (efiemu64_s.o): likewise
38208 * configure.ac: check for objconv when compiling with Apple's CC
38209 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 38210
d119a20c 382112009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38212
38213 Define segment as well as section when compiling with
38214 Apple's CC
38215
38216 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38217 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38218 (efiemu_convert_pointer): likewise
38219 (efiemu_set_virtual_address_map): likewise
38220 (efiemu_convert_pointer): likewise
38221 (efiemu_getcrc32): likewise
38222 (init_crc32_table): likewise
38223 (reflect): likewise
38224 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38225 (GRUB_MOD_DEP): likewise
473d1e45 38226
c8600122 382272009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38228
38229 Allow a compilation without -mcmodel=large
38230
38231 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38232 when compiled without -mcmodel=large
473d1e45 38233 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 38234 without -mcmodel=large
473d1e45 38235 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 38236 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 38237
e8df1d4e 382382009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38239
38240 Remove nested functions in efiemu core
38241
38242 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 38243
cc6c3ac1 382442009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38245
38246 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38247
38248 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38249 temporary storage
473d1e45 38250 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38251 using Apple's CC
cc6c3ac1 38252 (grub_cpu_is_tsc_supported): likewise
38253 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 38254
3e325901 382552009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38256
38257 Absolute addressing through constant with Apple's cc
38258
38259 * kern/i386/pc/startup.S: Define necessary constants
38260 and address through it when using ABS with Apple's CC
38261 * boot/i386/pc/diskboot.S: likewise
38262 * boot/i386/pc/boot.S: likewise
38263 * boot/i386/pc/lnxboot.S: likewise
38264 * boot/i386/pc/cdboot.S: likewise
38265 * mmap/i386/pc/mmap_helper.S: likewise
38266 * commands/i386/pc/drivemap_int13h.S: likewise
38267
2b167a72 382682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38269
38270 Check if compiler is apple cc
38271
38272 * Makefile.in (ASFLAGS): new variable
38273 (TARGET_ASFLAGS): likewise
38274 (TARGET_MODULE_FORMAT): likewise
38275 (TARGET_APPLE_CC): likewise
38276 (OBJCONV): likewise
38277 (TARGET_IMG_CFLAGS): likewise
38278 (TARGET_CPPFLAGS): add includedir
38279 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38280 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38281 Check for linker script only if compiler isn't Apple's CC
38282 (TARGET_MODULE_FORMAT): set
38283 (TARGET_APPLE_CC): likewise
38284 (TARGET_ASFLAGS): likewise
38285 (ASFLAGS): likewise
38286 Check for objcopy only if compiler isn't Apple's CC
38287 Check for BSS symbol only if compiler isn't Apple's CC
38288 * genmk.rb: adapt nm options if we use Apple's utils
38289 * aclocal.m4 (grub_apple_cc): new test
38290 (grub_apple_target_cc): likewise
473d1e45 38291
fb14123e 382922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38293
38294 Simplify sed expressions and improve awk
38295
38296 * Makefile.in (install-local): simplify sed expression
38297 * gencmdlist.sh: likewise
38298 * genmoddep.awk: avoid adding module as a dependency of itself
38299
5b889789 383002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38301
38302 Add missing start symbols
38303
38304 * boot/i386/pc/boot.S: add start
fb14123e 38305 * boot/i386/pc/pxeboot.S: likewise
473d1e45 38306
fd2bf2e3 383072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38308
38309 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 38310
38311 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 38312 (relocate_addresses): consider both r_addend and value at offset
38313 (make_mods_section): zerofill modinfo and header
38314 (convert_elf): write prefix here
473d1e45 38315
5389763d 383162009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38317
38318 Use .asciz instead of .string
38319
38320 * i386/pc/diskboot.S: use .asciz instead of .string
38321 * i386/pc/boot.S: likewise
38322 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38323 (GRUB_MOD_NAME): likewise
473d1e45 38324
3eb5ed4e 383252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38326
38327 gfxpayload support
38328
38329 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38330 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38331 (grub_video_setup): remove
38332 (grub_video_set_mode): new prototype
38333 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38334 (vid_mode): remove
38335 (linux_vesafb_res): compile only on PCBIOS
38336 (grub_linux_boot): support gfxpayload
38337 * loader/i386/pc/xnu.c (video_hook): new function
38338 (grub_xnu_set_video): support gfxpayload
38339 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38340 (DEFAULT_VIDEO_HEIGHT): likewise
38341 (DEFAULT_VIDEO_FLAGS): likewise
38342 (DEFAULT_VIDEO_MODE): new definition
38343 (video_hook): new function
38344 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 38345 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 38346 loading xnu
38347 * video/video.c (grub_video_setup): removed
473d1e45 38348 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 38349 grub_video_setup
38350
4b0e1143 383512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38352
38353 Avoid calling biosdisk in drivemap
38354
38355 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38356 (revparse_biosdisk): likewise
38357 (list_mappings): derive name from id directly
38358 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 38359
fda6cb98 383602009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38361
38362 Script fixes
38363
38364 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38365 (grub_lexer_param): add tokenonhold
38366 (grub_script_create_cmdline): remove cmdline. All callers updated
38367 (grub_script_function_create): make functionname
38368 grub_script_arg. All callers updated
38369 (grub_script_execute_argument_to_string): new prototype
38370 * kern/parser.c (state_transitions): reorder
38371 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 38372 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 38373 make global
38374 (grub_script_execute_cmdline): use new format
38375 * script/sh/function.c (grub_script_function_create): make functionname
38376 grub_script_arg. All callers updated
473d1e45 38377 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 38378 (grub_script_yylex): remove
38379 (grub_script_yylex2): renamed to ...
38380 (grub_script_yylex): ...renamed
38381 parse the expressions like a${b}c
38382 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38383 (GRUB_PARSER_TOKEN_VAR): remove
38384 (GRUB_PARSER_TOKEN_NAME): likewise
38385 ("if"): declare as typeless
38386 ("while"): likewise
38387 ("function"): likewise
38388 ("else"): likewise
38389 ("then"): likewise
38390 ("fi"): likewise
38391 (text): remove
38392 (argument): likewise
38393 (script): accept empty scripts and make exit on error
38394 (arguments): use GRUB_PARSER_TOKEN_ARG
38395 (function): likewise
38396 (command): move error handling to script
38397 (menuentry): move grub_script_lexer_ref before
473d1e45 38398 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 38399 argument. All callers updated
38400
f4448a07 384012009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38402
38403 Prevent GRUB from probing floppies during boot.
38404
38405 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38406 * commands/search.c (options): Add --no-floppy.
38407 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38408 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38409 --no-floppy when searching for UUIDs.
38410
2bf5885a 384112009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38412
38413 Simplify the code duplication in commands/search.c.
38414
38415 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38416 (search_fs): ... this. Update all users.
38417
f6fd460a 384182009-06-03 Felix Zielcke <fzielcke@z-51.de>
38419
38420 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38421
cbb3c83e 384222009-05-28 Pavel Roskin <proski@gnu.org>
38423
57788cfd 38424 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38425 Remove the original symlink explicitly.
38426
cbb3c83e 38427 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38428 just one slash. That's how grub_fshelp_find_file() does it.
38429
cd0d5e30 384302009-05-26 Pavel Roskin <proski@gnu.org>
38431
f0f8bbe2 38432 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38433 to `str'.
38434
cd0d5e30 38435 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38436 possibly unused.
38437
8c2cab51 384382009-05-25 Christian Franke <franke@computer.org>
38439
38440 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38441 register.
38442 (grub_atapi_identify): Add wait after drive select.
38443 (grub_ata_identify): Do more strict status register check before
38444 calling grub_atapi_identify (). Suppress error message if status
38445 register is 0x00 after command failure. Add status register
38446 check after PIO read to avoid bogus identify due to stuck DRQ.
38447 Thanks to Pavel Roskin for testing.
38448 (grub_device_initialize): Remove unsafe status register check.
38449 Thanks to 'phcoder' for problem report and patch.
38450 Prevent sign extension in debug message.
38451
230c0ad6 384522009-05-23 Colin D Bennett <colin@gibibit.com>
38453
38454 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38455 definition file, and functions defined in `normal/menu.c' have had
38456 their prototypes moved to `include/grub/menu.h' for consistency.
38457
38458 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38459 from normal.h.
38460 (grub_menu_get_entry): Likewise.
38461 (grub_menu_get_timeout): Likewise.
38462 (grub_menu_set_timeout): Likewise.
38463 (grub_menu_execute_entry): Likewise.
38464 (grub_menu_execute_with_fallback): Likewise.
38465 (grub_menu_entry_run): Likewise.
38466
38467 * include/grub/normal.h: Re-ordered and grouped function
38468 prototypes by file that the function is defined in.
38469 (grub_menu_execute_callback): Removed; moved to menu.h.
38470 (grub_menu_get_entry): Likewise.
38471 (grub_menu_get_timeout): Likewise.
38472 (grub_menu_set_timeout): Likewise.
38473 (grub_menu_execute_entry): Likewise.
38474 (grub_menu_execute_with_fallback): Likewise.
38475 (grub_menu_entry_run): Likewise.
38476 (grub_menu_addentry): Renamed from this ...
38477 (grub_normal_add_menu_entry): ... to this.
38478
38479 * normal/main.c (grub_menu_addentry): Renamed from this ...
38480 (grub_normal_add_menu_entry): ... to this.
38481
38482 * script/sh/execute.c (grub_script_execute_menuentry): Update
38483 reference to renamed grub_menu_addentry function.
38484
861f03a5 384852009-05-23 Felix Zielcke <fzielcke@z-51.de>
38486
38487 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38488
96b1619a 384892009-05-22 Pavel Roskin <proski@gnu.org>
38490
bf6a5fb2 38491 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38492 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38493 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38494 compiling for the i386 targets, but not for the utilities.
38495
96b1619a 38496 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38497 to grub_uint8_t.
38498 (grub_root_drive): Likewise.
38499 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38500 remove alignment.
38501 (grub_root_drive): Change size to byte.
38502 (grub_start_addr): Remove.
38503 (grub_end_addr): Likewise.
38504 (grub_apm_bios_info): Likewise.
38505
b729776b 385062009-05-21 Felix Zielcke <fzielcke@z-51.de>
38507
38508 * normal/i386: Remove.
38509 * normal/powerpc: Likewise.
38510 * normal/sparc64: Likewise.
38511 * normal/x86_64: Likewise.
38512
0a15ce80 385132009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38514
38515 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 38516 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 38517 * loader/i386/xnu_helper.S: Likewise
d6da58e6 38518
33db9015 385192009-05-18 Colin D Bennett <colin@gibibit.com>
38520
d6da58e6 38521 Display error messages when parsing a Lua statement fails.
38522 Previously, executing a syntactically invalid statement like
38523 ")foo" or "bar;" would silently fail.
33db9015 38524
38525 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 38526 (grub_lua_parse_line): Improved reporting of Lua parser and
38527 execution errors.
33db9015 38528
46422c89 385292009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38530
38531 Remove -Werror which causes build to fail on some systems
38532
38533 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38534 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38535 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 38536
22f53a96 385372009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38538
38539 trampoline for linux on 64-bit platform
38540
18f547ad 38541 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38542 loader/i386/efi/linux_trampoline.S
38543 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 38544 declaration
d6da58e6 38545 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38546 here
22f53a96 38547 * loader/i386/linux_trampoline.S: moved here
d6da58e6 38548 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38549 trampoline
22f53a96 38550 (jumpvector): removed
38551 (grub_linux_trampoline_start): new declaration
38552 (grub_linux_trampoline_end): likewise
38553 (grub_linux_boot): use trampoline when on 64-bit platform
38554 * loader/i386/linux.c: likewise
38555
cb5a0f40 385562009-05-16 Pavel Roskin <proski@gnu.org>
38557
38558 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38559 const to avoid a warning.
38560 (grub_lua_setenv): Likewise.
38561 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38562 lmsg to fix a warning.
38563
334f2c28 385642009-05-16 Felix Zielcke <fzielcke@z-51.de>
38565
38566 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 38567 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38568 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38569 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38570 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38571 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38572 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38573 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 38574
59e5d3ec 385752009-05-16 Felix Zielcke <fzielcke@z-51.de>
38576
38577 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38578
9d87a1ba 385792009-05-16 Bean <bean123ch@gmail.com>
38580
38581 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38582 (lua_mod_SOURCES): New variable.
38583 (lua_mod_CFLAGS): Likewise.
38584 (lua_mod_LDFLAGS): Likewise.
38585
38586 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38587 (setjmp_mod_SOURCES): New variable.
38588 (setjmp_mod_CFLAGS): Likewise.
38589 (setjmp_LDFLAGS): Likewise.
38590
38591 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38592 (setjmp_mod_SOURCES): New variable.
38593 (setjmp_mod_CFLAGS): Likewise.
38594 (setjmp_LDFLAGS): Likewise.
38595
38596 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38597 (setjmp_mod_SOURCES): New variable.
38598 (setjmp_mod_CFLAGS): Likewise.
38599 (setjmp_LDFLAGS): Likewise.
38600
38601 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38602 (setjmp_mod_SOURCES): New variable.
38603 (setjmp_mod_CFLAGS): Likewise.
38604 (setjmp_LDFLAGS): Likewise.
38605
38606 * normal/i386/setjmp.S: Moved from here ...
38607 * lib/i386/setjmp.S: ... Moved here
38608 * normal/x86_64/setjmp.S: Moved from here ...
38609 * lib/x86_64/setjmp.S: ... Moved here
38610 * normal/powerpc/setjmp.S: Moved from here ...
38611 * lib/powerpc/setjmp.S: ... Moved here
38612 * normal/sparc64/setjmp.S: Moved from here ...
38613 * lib/sparc64/setjmp.S: ... Moved here
38614
38615 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38616 returns_twice in mingw.
38617
38618 * script/lua/grub_lib.c: New file.
38619 * script/lua/grub_lib.h: Likewise.
38620 * script/lua/grub_lua.h: Likewise.
38621 * script/lua/grub_main.c: Likewise.
38622 * script/lua/lapi.c: Likewise.
38623 * script/lua/lapi.h: Likewise.
38624 * script/lua/lauxlib.c: Likewise.
38625 * script/lua/lauxlib.h: Likewise.
38626 * script/lua/lbaselib.c: Likewise.
38627 * script/lua/lcode.c: Likewise.
38628 * script/lua/lcode.h: Likewise.
38629 * script/lua/ldblib.c: Likewise.
38630 * script/lua/ldebug.c: Likewise.
38631 * script/lua/ldebug.h: Likewise.
38632 * script/lua/ldo.c: Likewise.
38633 * script/lua/ldo.h: Likewise.
38634 * script/lua/ldump.c: Likewise.
38635 * script/lua/lfunc.c: Likewise.
38636 * script/lua/lfunc.h: Likewise.
38637 * script/lua/lgc.c: Likewise.
38638 * script/lua/lgc.h: Likewise.
38639 * script/lua/linit.c: Likewise.
38640 * script/lua/liolib.c: Likewise.
38641 * script/lua/llex.c: Likewise.
38642 * script/lua/llex.h: Likewise.
38643 * script/lua/llimits.h: Likewise.
38644 * script/lua/lmathlib.c: Likewise.
38645 * script/lua/lmem.c: Likewise.
38646 * script/lua/lmem.h: Likewise.
38647 * script/lua/loadlib.c: Likewise.
38648 * script/lua/lobject.c: Likewise.
38649 * script/lua/lobject.h: Likewise.
38650 * script/lua/lopcodes.c: Likewise.
38651 * script/lua/lopcodes.h: Likewise.
38652 * script/lua/loslib.c: Likewise.
38653 * script/lua/lparser.c: Likewise.
38654 * script/lua/lparser.h: Likewise.
38655 * script/lua/lstate.c: Likewise.
38656 * script/lua/lstate.h: Likewise.
38657 * script/lua/lstring.c: Likewise.
38658 * script/lua/lstring.h: Likewise.
38659 * script/lua/lstrlib.c: Likewise.
38660 * script/lua/ltable.c: Likewise.
38661 * script/lua/ltable.h: Likewise.
38662 * script/lua/ltablib.c: Likewise.
38663 * script/lua/ltm.c: Likewise.
38664 * script/lua/ltm.h: Likewise.
38665 * script/lua/lua.h: Likewise.
38666 * script/lua/luaconf.h: Likewise.
38667 * script/lua/lualib.h: Likewise.
38668 * script/lua/lundump.c: Likewise.
38669 * script/lua/lundump.h: Likewise.
38670 * script/lua/lvm.c: Likewise.
38671 * script/lua/lvm.h: Likewise.
38672 * script/lua/lzio.c: Likewise.
38673 * script/lua/lzio.h: Likewise.
38674
5e898c9d 386752009-05-16 Bean <bean123ch@gmail.com>
38676
38677 * include/grub/kernel.h (grub_module_header_types): Add type
38678 OBJ_TYPE_CONFIG.
38679
38680 * kern/main.c (grub_load_config): New function.
38681 (grub_main): Call grub_load_config to read boot config.
38682
38683 * grub-mkimage (generate_image): New parameter config_path.
38684 (options): New option --config.
38685 (main): Parse --config option, and pass it to generate_image.
38686
cf353a47 386872009-05-14 Christian Franke <franke@computer.org>
38688
38689 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38690 This fixes build on Cygwin.
38691
3834887f 386922009-05-14 Pavel Roskin <proski@gnu.org>
38693
38694 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38695 jump. This saves two bytes, so the typical case of 2 swapped
38696 drives would fit 32 bytes.
38697
8090fc01 386982009-05-13 Pavel Roskin <proski@gnu.org>
38699
ac963883 38700 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38701 grub_uint32_t to avoid a warning.
38702
8090fc01 38703 * loader/i386/linux.c (allocate_pages): When assigning
38704 real_mode_mem, cast through grub_size_t to fix a warning. The
38705 code already makes sure that the value would fit a pointer.
38706 (grub_linux_setup_video): Cast render_target->data to
38707 grub_size_t to fix a warning.
38708
18f547ad 387092009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 38710
38711 * commands/i386/pc/drivemap.c: New file - implement drivemap
38712 command.
38713 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38714 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38715
6f6a8b28 387162009-05-13 Pavel Roskin <proski@gnu.org>
38717
38718 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38719 embedding_area_exists.
38720
15fbf4c4 387212009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38722
38723 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38724 it easier to understand / work with.
59978c8a 38725 Improve warning messages for cases where there's no embedding area,
38726 or when it is too small (or core.img too large).
15fbf4c4 38727
238e871f 387282009-05-13 Pavel Roskin <proski@gnu.org>
38729
0ab3a9a4 38730 * loader/i386/pc/multiboot2.c: Add necessary includes for
38731 grub_multiboot2_real_boot().
38732
a2c8c5f8 38733 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38734 PX record is always little-endian. We only need the lower 2
38735 bytes of the mode.
38736
faec96af 38737 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38738 facilitate code reuse.
38739 (grub_cpio_mount): Use "struct head", not a char buffer. This
38740 fixes a warning reported by gcc 4.4.
38741
238e871f 38742 * kernel/disk.c (grub_disk_read): Use void pointer for the
38743 buffer.
38744 (grub_disk_write): Use const void pointer for the buffer.
38745 Adjust all callers. Remove unnecessary casts.
38746
901d2f0c 387472009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38748
38749 * util/i386/pc/grub-install.in: Update copyright year.
38750
18f547ad 387512009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 38752
38753 gptsync
38754
38755 * commands/gptsync.c: new file
38756 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38757 (gptsync_mod_SOURCES): new variable
38758 (gptsync_mod_CFLAGS): likewise
38759 (gptsync_mod_LDFLAGS): likewise
18f547ad 38760 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 38761 new definition
38762 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38763 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38764 * conf/i386-ieee1275.rmk: likewise
38765 * conf/i386-pc.rmk: likewise
38766 * conf/powerpc-ieee1275.rmk: likewise
38767
b4ba690a 387682009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38769
38770 Fixed grub-emu
38771
38772 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38773 (grub_dl_ref): likewise
38774
317e1a44 387752009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38776
38777 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38778 split in two functions (one for msdos and one for gpt).
38779
041b8094 387802009-05-08 Pavel Roskin <proski@gnu.org>
38781
752473c2 38782 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38783 not modified.
38784
041b8094 38785 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38786 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38787 Initialize them with -1. Add sanity check for bad1. Eliminate
38788 nerr variable.
38789
172800ce 387902009-05-08 David S. Miller <davem@davemloft.net>
38791
38792 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38793
29aa5e81 387942009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38795
38796 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 38797 existence.
29aa5e81 38798
96613b62 387992009-05-05 Felix Zielcke <fzielcke@z-51.de>
38800
38801 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 38802 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 38803
eef73c8a 388042009-05-05 David S. Miller <davem@davemloft.net>
38805
38806 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38807
119494b5 388082009-05-05 Pavel Roskin <proski@gnu.org>
38809
38810 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38811 of grub_dl_ref() and grub_dl_unref().
38812 * commands/parttool.c: Remove preprocessor conditionals around
38813 grub_dl_ref() and grub_dl_unref().
38814 * fs/affs.c: Likewise.
38815 * fs/afs.c: Likewise.
38816 * fs/cpio.c: Likewise.
38817 * fs/ext2.c: Likewise.
38818 * fs/fat.c: Likewise.
38819 * fs/hfs.c: Likewise.
38820 * fs/hfsplus.c: Likewise.
38821 * fs/iso9660.c: Likewise.
38822 * fs/jfs.c: Likewise.
38823 * fs/minix.c: Likewise.
38824 * fs/ntfs.c: Likewise.
38825 * fs/reiserfs.c: Likewise.
38826 * fs/sfs.c: Likewise.
38827 * fs/udf.c: Likewise.
38828 * fs/ufs.c: Likewise.
38829 * fs/xfs.c: Likewise.
38830 * include/grub/dl.h: Likewise.
38831 * loader/xnu.c: Likewise.
38832
de5fd76e 388332009-05-04 Pavel Roskin <proski@gnu.org>
38834
38835 * commands/acpi.c: Remove unused variable my_mod.
38836 * partmap/amiga.c: Likewise.
38837 * partmap/apple.c: Likewise.
38838 * partmap/gpt.c: Likewise.
38839 * partmap/pc.c: Likewise.
38840 * partmap/sun.c: Likewise.
38841 * term/gfxterm.c: Likewise.
38842 * term/i386/pc/vesafb.c: Likewise.
38843 * term/i386/pc/vga.c: Likewise.
38844
983598ad 388452009-05-04 David S. Miller <davem@davemloft.net>
38846
38847 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38848 pointer args to grub_ieee1275_get_property().
38849
8aadec43 38850 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38851
9554b15e 38852 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38853 devices, and do not traverse down under controller nodes.
38854
67e23c90 38855 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38856 (grub_ofdisk_open): Use it to un-escape "," characters.
38857 * kern/disk.c (find_part_sep): New.
38858 (grub_disk_open): Use it to find the first non-escaped ','
38859 character in the disk name.
38860 * util/ieee1275/devicemap.c (escape_of_path): New.
38861 (grub_util_emit_devicemap_entry): Use it.
38862 * util/sparc64/ieee1275/grub-install.in: Update script to
38863 strip partition specifiers properly by not triggering on
38864 '\' escaped ',' characters.
38865
74bfdd2f 388662009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38867
38868 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38869 to 0x300.
38870 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38871 resolutions.
38872 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38873 on documentation from Wikipedia).
38874
4241d2b1 388752009-05-04 Pavel Roskin <proski@gnu.org>
38876
38877 * disk/ata.c: Spelling fixes.
38878 * disk/raid.c: Likewise.
38879 * disk/usbms.c: Likewise.
38880 * disk/dmraid_nvidia.c: Likewise.
38881 * kern/ieee1275/openfw.c: Likewise.
38882 * kern/ieee1275/init.c: Likewise.
38883 * kern/ieee1275/cmain.c: Likewise.
38884 * boot/i386/pc/cdboot.S: Likewise.
38885 * video/readers/png.c: Likewise.
38886 * video/i386/pc/vbe.c: Likewise.
38887 * fs/udf.c: Likewise.
38888 * fs/hfs.c: Likewise.
38889 * fs/reiserfs.c: Likewise.
38890 * efiemu/runtime/efiemu.c: Likewise.
38891 * efiemu/main.c: Likewise.
38892 * efiemu/mm.c: Likewise.
38893 * include/grub/elf.h: Likewise.
38894 * include/grub/xnu.h: Likewise.
38895 * include/grub/usbdesc.h: Likewise.
38896 * include/grub/usb.h: Likewise.
38897 * include/grub/script_sh.h: Likewise.
38898 * include/grub/lib/LzmaEnc.h: Likewise.
38899 * include/grub/efiemu/efiemu.h: Likewise.
38900 * include/grub/command.h: Likewise.
38901 * normal/menu.c: Likewise.
38902 * normal/main.c: Likewise.
38903 * normal/datetime.c: Likewise.
38904 * bus/usb/uhci.c: Likewise.
38905 * mmap/i386/uppermem.c: Likewise.
38906 * mmap/mmap.c: Likewise.
38907 * commands/acpi.c: Likewise.
38908 * commands/test.c: Likewise.
38909 * partmap/apple.c: Likewise.
38910 * font/font.c: Likewise.
38911 * loader/sparc64/ieee1275/linux.c: Likewise.
38912 * loader/macho.c: Likewise.
38913 * loader/i386/bsd_trampoline.S: Likewise.
38914 * loader/i386/bsd.c: Likewise.
38915 * loader/xnu.c: Likewise.
38916 * term/i386/pc/vesafb.c: Likewise.
38917 * term/usb_keyboard.c: Likewise.
38918 * util/resolve.c: Likewise.
38919 * util/getroot.c: Likewise.
38920
0cfc0083 389212009-05-04 Felix Zielcke <fzielcke@z-51.de>
38922
38923 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38924
7c1d00cd 389252009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38926
38927 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38928 build error.
38929
b01f0548 389302009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38931
38932 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38933 parameter only available on BIOS.
38934
ecc3eb22 389352009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38936
38937 Removed wrong semicolon in declaration
38938
38939 * grub/misc.h (grub_dprintf): remove semicolon
38940
112972a9 389412009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38942
38943 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38944 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38945 is done by grub_cmd_linux() now).
38946 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38947 restore video to text mode.
38948 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38949 indicates lack of "vga=" parameter. "vga=0" is mapped to
38950 `GRUB_LINUX_VID_MODE_NORMAL'.
38951
afd5c115 389522009-05-04 Felix Zielcke <fzielcke@z-51.de>
38953
38954 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38955 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38956 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 38957 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 38958 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38959 `grub_script.tab.c'.
38960
38961 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38962 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38963 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38964 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38965 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38966
faa517ce 38967 * Makefile.in: Remove duplicated 2008 in Copyright line.
38968
ae0c0bdc 389692009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38970
473d1e45 38971 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 38972 unconditionally.
38973 * include/grub/util/misc.h (grub_util_warn): New declaration.
38974
38975 * util/i386/pc/grub-install.in: Understand --force and pass it down
38976 to grub-setup.
38977
38978 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38979 down to setup().
38980 (setup): Improve error messages and add warnings when requested to
38981 install in odd layouts. Refuse to install using blocklists unless
38982 --force was set.
38983
18f547ad 389842009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 38985
38986 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38987
6d260daa 389882009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38989
38990 Updated copyright year
38991
38992 * fs/hfsplus.c: updated copyright year
18f547ad 38993
69f853f8 389942009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38995
38996 HFS+ UUID
38997
18f547ad 38998 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 38999 in the space previously used by unused3
39000 (grub_hfsplus_uuid): new function
39001 (grub_hfsplus_fs): added uuid field
39002
4c402e73 390032009-05-03 Pavel Roskin <proski@gnu.org>
39004
39005 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
39006 suppress warnings. It's no longer needed.
39007 * disk/host.c: Likewise.
39008 * disk/ata_pthru.c: Likewise.
39009 * disk/loopback.c: Likewise.
39010 * hook/datehook.c: Likewise.
39011 * parttool/pcpart.c: Likewise.
39012 * fs/i386/pc/pxe.c: Likewise.
39013 * fs/ntfscomp.c: Likewise.
39014 * efiemu/main.c: Likewise.
39015 * mmap/mmap.c: Likewise.
39016 * commands/crc.c: Likewise.
39017 * commands/hexdump.c: Likewise.
39018 * commands/hdparm.c: Likewise.
39019 * commands/acpi.c: Likewise.
39020 * commands/echo.c: Likewise.
39021 * commands/minicmd.c: Likewise.
39022 * commands/blocklist.c: Likewise.
39023 * commands/memrw.c: Likewise.
39024 * commands/loadenv.c: Likewise.
39025 * commands/usbtest.c: Likewise.
39026 * commands/lsmmap.c: Likewise.
39027 * commands/boot.c: Likewise.
39028 * commands/parttool.c: Likewise.
39029 * commands/configfile.c: Likewise.
39030 * commands/search.c: Likewise.
39031 * commands/ieee1275/suspend.c: Likewise.
39032 * commands/cat.c: Likewise.
39033 * commands/i386/pc/pxecmd.c: Likewise.
39034 * commands/i386/pc/play.c: Likewise.
39035 * commands/i386/pc/halt.c: Likewise.
39036 * commands/i386/pc/vbeinfo.c: Likewise.
39037 * commands/i386/pc/vbetest.c: Likewise.
39038 * commands/lspci.c: Likewise.
39039 * commands/date.c: Likewise.
39040 * commands/handler.c: Likewise.
39041 * commands/ls.c: Likewise.
39042 * commands/test.c: Likewise.
39043 * commands/cmp.c: Likewise.
39044 * commands/efi/loadbios.c: Likewise.
39045 * commands/efi/fixvideo.c: Likewise.
39046 * commands/halt.c: Likewise.
39047 * commands/help.c: Likewise.
39048 * commands/reboot.c: Likewise.
39049 * hello/hello.c: Likewise.
39050 * script/sh/main.c: Likewise.
39051 * loader/xnu.c: Likewise.
39052 * term/terminfo.c: Likewise.
39053 * term/i386/pc/serial.c: Likewise.
39054 * term/usb_keyboard.c: Likewise.
39055
515b5079 390562009-05-03 David S. Miller <davem@davemloft.net>
39057
39058 * normal/menu.c: Include grub/parser.h
39059
dfc31a22 390602009-05-03 Pavel Roskin <proski@gnu.org>
39061
2fee74f1 39062 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39063 not char*.
39064 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39065 Suggested by Javier Martín <lordhabbit@gmail.com>
39066
dfc31a22 39067 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39068 efiemu??.o doesn't exist.
39069 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39070 copying.
39071
18f547ad 390722009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 39073
39074 FreeBSD 64-bit support
39075
18f547ad 39076 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 39077 and loader/i386/bsd_trampoline.S
39078 (bsd_mod_ASFLAGS): new variable
39079 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39080 (FREEBSD_MODTYPE_KERNEL64): likewise
39081 (grub_bsd64_trampoline_start): likewise
39082 (grub_bsd64_trampoline_end): likewise
39083 (grub_bsd64_trampoline_selfjump): likewise
39084 (grub_bsd64_trampoline_gdt): likewise
39085 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39086 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39087 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39088 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 39089 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 39090 of "attrib" member
39091 * loader/i386/bsd_pagetable.c: new file
39092 * loader/i386/bsd_trampoline.S: likewise
39093 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39094 (ALIGN_VAR): likewise
39095 (entry_hi): new variable
39096 (kern_end_mdofs): likewise
39097 (is_64bit): likewise
39098 (grub_freebsd_add_meta): use ALIGN_VAR
39099 (grub_e820_mmap): new declaration
39100 (grub_freebsd_add_mmap): new function
39101 (grub_freebsd_add_meta_module): support 64 bit kernels
39102 (grub_freebsd_list_modules): use ALIGN_VAR
39103 (gdt_descriptor): new declaration
39104 (grub_freebsd_boot): support 64 bit kernels
39105 (grub_bsd_elf64_hook): new function
39106 (grub_bsd_load_elf): support elf64
39107
038c5720 391082009-05-03 Bean <bean123ch@gmail.com>
39109
39110 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39111 after we get the result of if statement.
39112
fc45fb58 391132009-05-03 Bean <bean123ch@gmail.com>
39114
39115 * Makefile.in (enable_efiemu): New variable.
39116
39117 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39118 set.
39119 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39120 path.
39121 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39122 path, add -mno-red-zone option.
39123 (efiemu64_s.o): Likewise.
39124 (efiemu64.o): Use macro $^ for source file.
39125
39126 * configure.ac (--enable-efiemu): New option.
39127
bbee0f2b 391282009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39129
39130 xnu support
39131
39132 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39133 (pkglib_MODULES): add xnu.mod
39134 (xnu_mod_SOURCES): new variable
39135 (xnu_mod_CFLAGS): likewise
39136 (xnu_mod_LDFLAGS): likewise
39137 (xnu_mod_ASFLAGS): likewise
39138 * conf/i386-pc.rmk: likewise
39139 * conf/x86_64-efi.rmk: likewise
7dd4a573 39140 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 39141 new declaration
39142 * include/grub/i386/macho.h: new file
39143 * include/grub/i386/xnu.h: likewise
39144 * include/grub/macho.h: likewise
39145 * include/grub/machoload.h: likewise
39146 * include/grub/x86_64/macho.h: likewise
39147 * include/grub/x86_64/xnu.h: likewise
39148 * include/grub/xnu.h: likewise
39149 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39150 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39151 * loader/i386/efi/xnu.c: new file
39152 * loader/i386/pc/xnu.c: likewise
39153 * loader/i386/xnu.c: likewise
39154 * loader/i386/xnu_helper.S: likewise
39155 * loader/macho.c: likewise
39156 * loader/xnu.c: likewise
39157 * loader/xnu_resume.c: likewise
39158 * util/grub-dumpdevtree: likewise
39159 * include/grub/i386/pit.h: include grub/err.h
39160 (grub_pit_wait): export
39161 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 39162
5caf964d 391632009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39164
39165 Efiemu
7dd4a573 39166
5caf964d 39167 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 39168 _linux_efi, linux_efi.
39169 new files in grub-emu
5caf964d 39170 new targets efiemu32.o and efiemu64.o
39171 * loader/linux_normal_efiemu.c: likewise
39172 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 39173 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 39174 files to copy
39175 * include/grub/autoefi.h: new file
7dd4a573 39176 * include/grub/i386/efiemu.h: likewise
5caf964d 39177 * include/grub/i386/pc/efiemu.h: likewise
39178 * include/grub/efi/api.h: add LL suffix when necessary
39179 new definitions relating to tables
39180 * include/grub/efiemu/efiemu.h: new file
39181 * include/grub/efiemu/runtime.h: likewise
39182 * efiemu/prepare.c: likewise
39183 * efiemu/loadcore_common.c: likewise
39184 * efiemu/loadcore64.c: likewise
39185 * efiemu/runtime/efiemu.sh: likewise
39186 * efiemu/runtime/efiemu.S: likewise
39187 * efiemu/runtime/efiemu.c: likewise
39188 * efiemu/runtime/config.h: likewise
39189 * efiemu/prepare32.c: likewise
39190 * efiemu/main.c: likewise
39191 * efiemu/modules/pnvram.c: likewise
39192 * efiemu/modules/i386: likewise
39193 * efiemu/modules/i386/pc: likewise
39194 * efiemu/modules/acpi.c: likewise
39195 * efiemu/i386/pc/cfgtables.c: likewise
39196 * efiemu/i386/loadcore64.c: likewise
39197 * efiemu/i386/loadcore32.c: likewise
39198 * efiemu/prepare64.c: likewise
39199 * efiemu/loadcore.c: likewise
39200 * efiemu/symbols.c: likewise
39201 * efiemu/mm.c: likewise
39202 * efiemu/loadcore32.c: likewise
7dd4a573 39203
392042009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 39205
39206 ACPI spoofing
39207
39208 * commands/acpi.c: new file
39209 * commands/i386/pc/acpi.c: likewise
39210 * commands/efi/acpi.c: likewise
39211 * include/grub/acpi.h: likewise
39212 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39213 (acpi_mod_SOURCES): new variable
39214 (acpi_mod_CFLAGS): likewise
39215 (acpi_mod_LDFLAGS): likewise
39216 * conf/i386-efi.rmk: likewise
39217 * conf/x86_64-efi.rmk: likewise
39218
7dd4a573 392192009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 39220
39221 Missing part from mmap patch
39222
39223 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39224 (grub_mmap_unregister)
39225 (grub_mmap_free_and_unregister): use grub_mmap_register
39226
7dd4a573 392272009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 39228
39229 Mmap services
39230
39231 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39232 * loader/i386/linux.c (find_mmap_size): likewise
39233 (allocate_pages): likewise
39234 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39235 (grub_fill_multiboot_mmap): likewise
39236 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39237 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39238 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39239 (OPENBSD_MMAP_RESERVED): likewise
39240 * include/grub/i386/pc/memory.h: include grub/memory.h
39241 (grub_lower_mem): removed
39242 (grub_upper_mem): likewise
39243 (GRUB_MACHINE_MEMORY_ACPI): new definition
39244 (GRUB_MACHINE_MEMORY_NVS): likewise
39245 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39246 (GRUB_MACHINE_MEMORY_HOLE): likewise
39247 (grub_machine_mmap_register): likewise
39248 (grub_machine_mmap_unregister): likewise
39249 (grub_machine_get_upper): likewise
39250 (grub_machine_get_lower): likewise
39251 (grub_machine_get_post64): likewise
39252 * include/grub/i386/efi/memory.h: new file
39253 * include/grub/x86_64/efi/memory.h: likewise
39254 * include/grub/efi/memory.h: likewise
39255 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39256 (mmap_mod_SOURCES): new variable
39257 (mmap_mod_LDFLAGS): likewise
39258 (mmap_mod_ASFLAGS): likewise
39259 * conf/i386-coreboot.rmk: likewise
39260 * conf/i386-ieee1275.rmk: likewise
39261 * conf/i386-efi.rmk: likewise
39262 * conf/x86_64-efi.rmk: likewise
39263 * include/grub/types.h (UINT_TO_PTR): new macro
39264 (PTR_TO_UINT32): likewise
39265 (PTR_TO_UINT64): likewise
39266 * include/grub/memory.h: new file
39267 * mmap/i386/pc/mmap.c: likewise
39268 * mmap/i386/pc/mmap_helper.S: likewise
39269 * mmap/i386/uppermem.c: likewise
39270 * mmap/mmap.c: likewise
39271 * mmap/efi/mmap.c: likewise
7dd4a573 39272 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 39273 grub_upper_mem
39274 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39275 (grub_upper_mem): likewise
39276 (grub_machine_init): don't use grub_upper_mem,
39277 make grub_lower_mem local
39278 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39279 grub_mmap_iterate and grub_mmap_get_upper
39280 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39281
d558e6b5 392822009-05-02 Bean <bean123ch@gmail.com>
39283
39284 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39285 script/sh/parser.y.
39286 (pkglib_MODULES): Add normal.mod and sh.mod.
39287 (normal_SOURCES): New variable.
39288 (normal_mod_CFLAGS): Likewise.
39289 (normal_mod_LDFLAGS): Likewise.
39290 (sh_mod_SOURCES): Likewise.
39291 (sh_mod_CFLAGS): Likewise.
39292 (sh_mod_LDFLAGS): Likewise.
39293
39294 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39295 script/sh/lexer.c_DEPENDENCIES.
39296 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39297 kern/rescue_reader.c and kern/rescue_parser.c.
39298 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39299 (grub_emu_SOURCES): Change source files.
39300 (pkglib_MODULES): Remove normal.mod.
39301 (normal_SOURCES): Removed.
39302 (normal_mod_CFLAGS): Likewise.
39303 (normal_mod_LDFLAGS): Likewise.
39304 * conf/i386-coreboot.rmk: Likewise.
39305 * conf/i386-efi.rmk: Likewise.
39306 * conf/i386-ieee1276.rmk: Likewise.
39307 * conf/powerpc-ieee1275.rmk: Likewise.
39308 * conf/sparc64-ieee1275.rmk: Likewise.
39309 * conf/x86_64-efi.rmk: Likewise.
39310
39311 * include/grub/command.h (grub_command_execute): New inline function.
39312
39313 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39314
39315 * include/grub/normal.h: Remove <grub/setjmp.h>.
39316 (grub_fs_module_list): Moved to normal/autofs.c.
39317 (grub_exit_env): Removed.
39318 (grub_command_execute): Likewise.
39319 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39320 parameter script.
39321 (read_command_list): New function declaration.
39322 (read_fs_list): Likewise.
39323
39324 * include/parser.h: Include <grub/reader.h>.
39325 (grub_parser_split_cmdline): Change type of getline parameter.
39326 (grub_parser): New structure.
39327 (grub_parser_class): New variable.
39328 (grub_parser_execute): New function declaration.
39329 (grub_register_rescue_parser): Likewise.
39330 (grub_parser_register): New inline function.
39331 (grub_parser_unregister): Likewise.
39332 (grub_parser_get_current): Likewise.
39333 (grub_parser_set_current): Likewise.
39334
39335 * include/grub/reader.h: New file.
39336 * kern/reader.c: Likewise.
39337 * kern/rescue_parser.c: Likewise.
39338 * kern/rescue_reader.c: Likewise.
39339 * normal/autofs.c: Likewise.
39340 * normal/dyncmd.c: Likewise.
39341
39342 * include/grub/rescue.h: Removed.
39343 * normal/command.h: Likewise.
39344
39345 * include/grub/script.h: Moved to ...
39346 * include/grub/script_sh.h: ... Moved here.
39347 * normal/execute.c: Moved to ...
39348 * script/sh/execute.c: ... Moved here.
39349 * normal/function.c: Moved to ...
39350 * script/sh/function.c: ... Moved here.
39351 * normal/lexer.c: Moved to ...
39352 * script/sh/lexer.c: ... Moved here.
39353 * normal/parser.y: Moved to ...
39354 * script/sh/parser.y: ... Moved here.
39355 * normal/script.c: Moved to ...
39356 * script/sh/script.c: ... Moved here.
39357
39358 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39359 <grub/reader.h>.
39360 (grub_exit_env): Removed.
39361 (fs_module_list): Moved to normal/autofs.c.
39362 (grub_file_getline): Don't handle comment here.
39363 (free_menu): Skip removed field entry->commands.
39364 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39365 script parameter.
39366 (read_config_file): Removed nested parameter, change getline function.
39367 (grub_enter_normal_mode): Removed.
39368 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39369 (read_command_list): Likewise.
39370 (autoload_fs_module): Moved to normal/autofs.c.
39371 (read_fs_list): Likewise.
39372 (reader_nested): New variable.
39373 (grub_normal_execute): Run parser.sh to switch to sh parser.
39374 (grub_cmd_rescue): Removed.
39375 (cmd_normal): Removed.
39376 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39377 rescue command.
39378 (grub_cmdline_run): New function.
39379 (grub_normal_reader_init): Likewise.
39380 (grub_normal_read_line): Likewise.
39381 (grub_env_write_pager): Likewise.
39382 (cmdline): New variable.
39383 (grub_normal_reader): Likewise.
39384 (GRUB_MOD_INIT): Register normal reader and set as current, register
39385 pager hook, register normal command with grub_register_command_prio,
39386 so that it won't show up in command.lst.
39387 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39388 grub_fs_autoload_hook.
39389
39390 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39391 (grub_menu_execute_entry): Replace grub_script_execute with
39392 grub_parser_execute, change parameter to grub_command_execute.
39393
39394 * normal/menu_text.c: Remove <grub/script.h>.
39395
39396 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39397 and <grub/parser.h>.
39398 (run): Change editor_getline to use new parser interface. Change
39399 parameter to grub_command_execute.
39400
39401 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39402 <grub/reader.h> and <grub/parser.h>.
39403 (grub_load_normal_mode): Execute normal command.
39404 (grub_main): Call grub_register_core_commands,
39405 grub_register_rescue_parser and grub_register_rescue_reader, use
39406 grub_reader_loop to enter input loop.
39407
7dd4a573 39408 * kern/parser.c (grub_parser_split_cmdline): Change type of
39409 getline parameter.
d558e6b5 39410 (grub_parser_class): New variable.
39411 (grub_parser_execute): New function.
39412
39413 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39414 * loader/multiboot2.c: Likewise.
39415 * loader/sparc64/ieee1275/linux.c: Likewise.
39416
39417 * util/grub-emu.c (read_command_list): New dummy function.
39418
18db813d 394192009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39420
39421 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39422 count to 16 for CCISS and IDA.
39423
6c67de15 394242009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39425
39426 * normal/menu_text.c (grub_wait_after_message): Print a newline
39427 after waiting for user input.
39428
39429 * loader/i386/linux.c: Include `<grub/normal.h>'.
39430 (grub_cmd_linux): Improve the error message about `ask' mode, by
39431 waiting for user input so it's not missed (we can do this, since
39432 user requested interaction).
39433
d9dc87b0 394342009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39435
39436 Added missing lst to grub-mkrescue
39437
39438 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39439 and ${input_dir}/parttool.lst
39440
ac8a2baa 394412009-04-30 David S. Miller <davem@davemloft.net>
39442
ad22a610 39443 * util/hostdisk.c (device_is_wholedisk): New function.
39444 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39445 zero only if device_is_wholedisk() returns true.
39446
6966215d 39447 * util/hostdisk.c (convert_system_partition_to_system_disk):
39448 Handle virtual disk devices named /dev/vdiskX as found on sparc
39449 and powerpc.
39450
ac8a2baa 39451 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39452 lettered partition specifier is found, convert to numbered.
39453
979b4fb4 394542009-04-29 David S. Miller <davem@davemloft.net>
39455
e2bf39b2 39456 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39457 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39458
3c64e104 39459 * normal/command.c: Add missing newline at end of file.
39460
979b4fb4 39461 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39462 warnings.
39463 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39464 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39465 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39466 ihandles have a 32-bit type but need to be stored in a "void *".
39467
136d9f82 394682009-04-28 Pavel Roskin <proski@gnu.org>
39469
9459c306 39470 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39471 not disk. Adjust all dependencies.
2e08a26a 39472 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 39473 grub_disk_close().
39474
136d9f82 39475 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39476 parent's partition, don't copy it by reference, as it gets freed
39477 on close.
39478
7dd4a573 394792009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 39480
39481 Preboot hooks support
39482
39483 * commands/boot.c (struct grub_preboot_t): new declaration
39484 (preboots_head): new variable
39485 (preboots_tail): likewise
39486 (grub_loader_register_preboot_hook): new function
39487 (grub_loader_unregister_preboot_hook): likewise
39488 (grub_loader_set): launch preboot hooks
39489 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39490 (grub_loader_register_preboot_hook): new declaration
39491 (grub_loader_unregister_preboot_hook): likewise
39492
5af922b5 394932009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39494
39495 Warning fix
39496
7dd4a573 39497 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 39498 calling grub_dprintf
39499
a5562c30 395002009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39501
39502 Bug and warning fixes
39503
7dd4a573 39504 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 39505 declaration
39506 * commands/test.c (test_parse): fixed bug with file tests and corrected
39507 declaration of find_file
39508
4006f85c 395092009-04-26 Pavel Roskin <proski@gnu.org>
39510
39511 * Makefile.in: Don't install empty manual pages if help2man is
39512 missing. Use help2man option for output, not shell redirection.
39513
5c77c3de 395142009-04-26 David S. Miller <davem@davemloft.net>
39515
39516 * util/grub-mkdevicemap.c (make_device_map): Add missing
39517 NESTED_FUNC_ATTR to process_device().
39518
033b10a8 395192009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39520
39521 Test command
39522
39523 * commands/test.c: rewritten to use bash-like test
39524
e4343593 395252009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39526
39527 Parttool autoloading and improvements
39528
7dd4a573 39529 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 39530 (parttool.lst): new target
39531 * genmk.rb: generate parttool-*
39532 (CLEANFILES): add #{parttool}
39533 (PARTTOOLFILES): new variable
39534 * genparttoollist.sh: new file
7dd4a573 39535 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 39536 (grub_pcpart_type): likewise
39537 * commands/parttool.c (helpmsg): new variable
39538 (grub_cmd_parttool): output help if not enough arguments are supplied
39539 autoload modules
39540 (GRUB_MOD_INIT(parttool)): use helpmsg
39541
0d312500 395422009-04-24 David S. Miller <davem@davemloft.net>
39543
7dd4a573 39544 Avoiding opening same device multiple times in device iterator.
0d312500 39545
39546 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 39547 and use it to build a list of partitions in iterate_disk() and
0d312500 39548 iterate_partition().
39549
ac20caff 39550 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39551 on disk->data.
39552
0dcf7495 39553 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39554 grub_devalias_iterate() result instead of unconditional 0.
39555 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39556 Also, capture hook return value, either directly or via
39557 grub_children_iterate(), and propagate to caller.
39558 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39559 grub_children_iterate): Return value is now 'int' instead of
39560 'grub_err_t'.
39561 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39562 like a proper iterator, stopping when hooks return non-zero.
39563 (grub_devalias_iterate): Likewise.
39564
c8c08833 395652009-04-23 David S. Miller <davem@davemloft.net>
39566
39567 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39568
f01005a8 395692009-04-22 David S. Miller <davem@davemloft.net>
39570
39571 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39572 is larger than address_cells, use that value for address_cells too.
39573
4e8269da 39574 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39575 IEEE1275_MAX_PATH_LEN): Define.
39576 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39577 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39578 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39579 'devtype'. Explicitly NULL terminate devalias expansion.
39580
a1447506 39581 * util/sparc64/ieee1275/misc.c: New file.
39582 * util/sparc64/ieee1275/grub-setup.c: New file.
39583 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39584 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39585 * util/sparc64/ieee1275/grub-install.in: New file.
39586 * util/ieee1275/ofpath.c: New file.
39587 * util/ieee1275/devicemap.c: New file.
39588 * util/devicemap.c: New file.
39589 * util/deviceiter.c: New file.
39590 * kern/sparc64/ieee1275/init.c: New file.
39591 * include/grub/util/ofpath.h: New file.
39592 * include/grub/util/deviceiter.h: New file.
39593 * util/grub-mkdevicemap.c: Include deviceiter.h.
39594 Implement using grub_util_emit_devicemap_entry and
39595 grub_util_iterate_devices.
39596 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39597 util/devicemap.c into grub-mkdevicemap
39598 * conf/i386-efi.rmk: Likewise.
39599 * conf/i386-ieee1275.rmk: Likewise.
39600 * conf/i386-pc.rmk: Likewise.
39601 * conf/powerpc-ieee1275.rmk: Likewise.
39602 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39603 images and installation utilities. Build kernel as image
39604 instead of as elf binary. Use common rules as much as possible.
39605
7dd4a573 396062009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 39607
39608 Correct GPT definition
39609
7dd4a573 39610 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 39611 of "attrib" member
39612
c6c5219f 396132009-04-19 Felix Zielcke <fzielcke@z-51.de>
39614
39615 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39616
0552ff9f 396172009-04-19 David S. Miller <davem@davemloft.net>
39618
39619 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39620 (grub_rescue_cmd_linux): Rename to...
39621 (grub_cmd_linux): and fix prototype.
39622 (grub_rescue_cmd_initrd): Rename to...
39623 (grub_cmd_initrd): and fix prototype.
39624 (cmd_linux, cmd_initrd): New.
39625 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39626 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39627
d1a282fc 396282009-04-17 Pavel Roskin <proski@gnu.org>
39629
07c5039f 39630 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39631 format.
39632 (grub_ohci_transfer): Likewise.
39633
b012002d 39634 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39635
1bc09c35 39636 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39637 return without a value. Fix inconsistent indentation.
39638
e0ff9126 39639 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39640 match struct grub_fs.
39641
d1a282fc 39642 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39643 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39644 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39645 * commands/lspci.c (grub_lspci_iter): Likewise.
39646
a96df3f2 396472009-04-16 Bean <bean123ch@gmail.com>
39648
39649 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39650 value.
39651
41bb0fe9 396522009-04-15 Pavel Roskin <proski@gnu.org>
39653
39654 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39655 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39656 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39657 definitions.
39658
596c6970 396592009-04-15 Felix Zielcke <fzielcke@z-51.de>
39660
39661 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 39662 that no multiple data or metadata areas are supported and `Unknown
596c6970 39663 metadata header'.
39664
7dd4a573 396652009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 39666
39667 Move loader out of the kernel
39668
39669 * kern/loader.c: moved to ...
39670 * commands/boot.c: ... moved here
39671 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39672 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39673 * include/grub/kernel.h (grub_machine_fini): export
39674 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39675 (grub_loader_set): likewise
39676 (grub_loader_unset): likewise
39677 (grub_loader_boot): likewise
39678 * conf/common.rmk: new module boot.mod
39679 (pkglib_MODULES): add boot.mod
39680 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39681 (grub_emu_SOURCES): likewise
39682 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39683 (grub_emu_SOURCES): likewise
39684 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39685 (grub_emu_SOURCES): likewise
39686 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39687 (grub_emu_SOURCES): likewise
39688 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39689 (grub_emu_SOURCES): likewise
7dd4a573 39690 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39691 (grub_emu_SOURCES): likewise
0d5d5653 39692 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 39693 (grub_emu_SOURCES): likewise
0d5d5653 39694
7dd4a573 396952009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 39696
39697 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 39698
5999d619 39699 * kern/misc.c (grub_itoa): Removed function
39700 (grub_ltoa): likewise
39701 (grub_vsprintf): use grub_lltoa
39702
7dd4a573 397032009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 39704
39705 Restore grub-emu
39706
39707 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39708 * conf/i386-coreboot.rmk: likewise
39709 * conf/i386-ieee1275.rmk: likewise
39710 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 39711
20318222 397122009-04-15 Felix Zielcke <fzielcke@z-51.de>
39713
39714 * INSTALL: Add that `./autogen.sh' needs to be run before
39715 `./configure.'.
39716
d05f0df3 397172009-04-14 Bean <bean123ch@gmail.com>
39718
39719 * Makefile.in (pkglib_DATA): Add handler.lst.
39720 (handler.lst): New rule.
39721
39722 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39723 * conf/i386-coreboot.rmk: Likewise.
39724 * conf/i386-ieee1275.rmk: Likewise.
39725 * conf/i386-efi.rmk: Likewise.
39726 * conf/x86_64-efi.rmk: Likewise.
39727 * conf/powerpc-ieee1275.rmk: Likewise.
39728 * conf/sparc64-ieee1275.rmk: Likewise.
39729
39730 * genhandlerlist.sh: New file.
39731
39732 * genmk.rb: Add rules to generate handler.lst.
39733
39734 * include/grub/normal.h (grub_file_getline): New function definition.
39735 (read_handler_list): Likewise.
39736 (free_handler_list): Likewise.
39737
39738 * include/grub/term.h (grub_term_register_input): Add name parameter
39739 for auto generation of handler.lst.
39740 (grub_term_register_output): Likewise.
39741
39742 * normal/handler.c: New file.
39743
39744 * normal/main.c (get_line): Renamed to grub_file_getline.
39745 (read_config_file): Use the newly renamed grub_file_getline.
39746 (read_command_list): Likewise.
39747 (read_fs_list): Likewise.
39748 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39749 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39750
39751 * term/efi/console.c (grub_console_init): Add name parameter for auto
39752 generation of handler.lst.
39753 * term/gfxterm.c: Likewise.
39754 * term/i386/pc/at_keyboard.c: Likewise.
39755 * term/i386/pc/console.c: Likewise.
39756 * term/i386/pc/serial.c: Likewise.
39757 * term/i386/pc/vesafb.c: Likewise.
39758 * term/i386/pc/vga.c: Likewise.
39759 * term/i386/pc/vga_text.c: Likewise.
39760 * term/ieee1275/ofconsole.c: Likewise.
39761 * term/usb_keyboard.c: Likewise.
39762
33c846be 397632009-04-14 Bean <bean123ch@gmail.com>
39764
39765 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39766 properly with null character.
39767
4484e01e 397682009-04-14 Felix Zielcke <fzielcke@z-51.de>
39769
39770 * configure: Remove.
39771 * config.h.in: Likewise.
f93d668e 39772 * stamp-h.in: Likewise.
4484e01e 39773 * DISTLIST: Likewise.
39774 * conf/common.mk: Likewise.
39775 * conf/i386-coreboot.mk: Likewise.
39776 * conf/i386-efi.mk: Likewise.
39777 * conf/i386-ieee1275.mk: Likewise.
39778 * conf/i386.mk: Likewise.
39779 * conf/i386-pc.mk: Likewise.
39780 * conf/powerpc-ieee1275.mk: Likewise.
39781 * conf/sparc64-ieee1275.mk: Likewise.
39782 * conf/x86_64-efi.mk: Likewise.
39783
39784 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39785 develop on GRUB.
39786
7dd4a573 397872009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 39788 David S. Miller <davem@davemloft.net>
39789
39790 * util/hostdisk.c (make_device_name): Fix buffer length
39791 calculations.
39792
e25b5a8c 397932009-04-14 Felix Zielcke <fzielcke@z-51.de>
39794
39795 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39796 <sys/param.h> and <sys/sysctl.h>.
39797 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39798 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39799 opening the device and reset them afterwards.
39800
1f1f580c 398012009-04-13 Pavel Roskin <proski@gnu.org>
39802
39803 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39804 Reported by John Stanley <jpsinthemix@verizon.net>
39805
7ebc2d6b 398062009-04-13 Robert Millan <rmh@aybabtu.com>
39807
39808 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 39809 that name for menuentries when appropriate.
7ebc2d6b 39810
d8ba3667 398112009-04-13 Felix Zielcke <fzielcke@z-51.de>
39812
39813 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39814
cba416eb 398152009-04-13 Robert Millan <rmh@aybabtu.com>
39816
39817 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39818 to Linux, simply abort telling the user it's no longer supported.
39819
a547a745 398202009-04-13 Felix Zielcke <fzielcke@z-51.de>
39821
39822 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 39823 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 39824 `freebsd_loadenv' only when devices.hints exist.
39825
232a769c 398262009-04-13 Pavel Roskin <proski@gnu.org>
39827
39828 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39829
c3012039 398302009-04-13 Felix Zielcke <fzielcke@z-51.de>
39831
39832 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39833 partition number.
39834 (grub_drive): Likewise.
39835
234022fe 398362009-04-13 David S. Miller <davem@davemloft.net>
39837
39838 * kern/sparc64/ieee1275/ieee1275.c: New file.
39839 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39840 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39841 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39842 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39843 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39844 grub_ieee1275_alloc_physmem): Declare new exported functions.
39845
d8e1836c 39846 * include/grub/sparc64/ieee1275/loader.h: New file.
39847 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39848 * include/grub/sparc64/kernel.h: Likewise.
39849 * loader/sparc64/ieee1275/linux.c: Likewise.
39850
96bd81ec 39851 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39852 (grub_fstest_SOURCES): Likewise.
39853
6a4737e5 39854 * util/hostdisk.c (make_device_name): Do not make any assumptions
39855 about the length of drive names.
39856
1d7a72fd 39857 * kern/dl.c (grub_dl_load_file): Close file immediately when
39858 we are done using it.
39859
56bc2471 398602009-04-12 David S. Miller <davem@davemloft.net>
39861
39862 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39863 values. Noticed by Pavel Roskin.
39864
df38d0bb 39865 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39866 target compiler.
7dd4a573 39867
e382e93a 39868 * genmk.rb: Add more flexible image type specification, also
39869 pass --strip-unneeded to objcopy.
39870 * conf/i386-pc.rmk: Use *_FORMAT.
39871 * conf/i386-pc.mk: Rebuilt.
39872
f5dbbca9 39873 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39874 (OFDISK_HASH_SZ): Define.
39875 (ofdisk_hash): New hash table.
39876 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39877 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39878 instead of device phandle which is not unique.
39879
91c88b12 39880 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39881 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39882 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39883 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39884 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39885 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39886 GRUB_KERNEL_MACHINE_DATA_END): Define.
39887 (grub_kernel_image_size, grub_total_module_size): Declare.
39888
5b5d4aa5 398892009-04-12 Pavel Roskin <proski@gnu.org>
39890
7dd4a573 39891 * configure.ac: Change the logic when we check for target tools.
39892 Do it when the target is specified and it's different from the
39893 specified value of the host.
5b5d4aa5 39894
c91e1793 398952009-04-11 Felix Zielcke <fzielcke@z-51.de>
39896
39897 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39898 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39899 GNU/kFreeBSD. Check if a device is a character device. Use
39900 DIOCGMEDIASIZE to get the size.
39901 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39902 support for GNU/kFreeBSD.
39903 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39904 is a character device instead of a block device. Add support for
39905 FreeBSD device names.
39906
39907 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39908 is a character device instead of a block device.
39909
39910 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39911 is a character device instead of a block device.
39912
b1ac8644 399132009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39914
39915 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39916 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39917 FreeBSD. Check if a device is a character device. Use
39918 DIOCGMEDIASIZE to get the size.
39919 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39920 support for FreeBSD.
39921 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39922 is a character device instead of a block device. Add support for
39923 FreeBSD device names.
39924
39925 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39926 a character device instead of a block device.
39927 (grub_util_check_char_device): New function.
39928
39929 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39930 a character device instead of a block device.
39931
39932 * include/grub/util/getroot.h (grub_util_check_char_device): New
39933 prototype.
39934
a3f7515a 399352009-04-11 David S. Miller <davem@davemloft.net>
39936
39937 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39938 static libgcc.
39939 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39940 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39941 function, if present.
39942 (__bswapdi2): Likewise.
39943
0d44993d 39944 * include/grub/sparc64/ieee1275/boot.h: New file.
39945 * boot/sparc64/ieee1275/boot.S: Likewise.
39946 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39947
ed3d2bc2 39948 * kern/misc.c (grub_ltoa): New function.
39949 (grub_vsprintf): Use it to format 'long' integers.
39950
d3bfb59c 399512009-04-10 David S. Miller <davem@davemloft.net>
39952
39953 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39954 slots are of type grub_ieee1275_cell_t.
39955 (grub_nand_read): Likewise.
39956 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39957 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39958 macros are used to compare values in arg/ret block of the call.
39959 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39960 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39961 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39962 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39963 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39964 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39965 grub_ieee1275_close, grub_ieee1275_set_property,
39966 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39967 grub_ieee1275_cell_t.
39968 * kern/ieee1275/openfw.c (grub_map): Likewise.
39969 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39970 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39971
450e2238 39972 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39973 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39974 (grub_devalias_iterate): Likewise.
39975
7dd4a573 399762009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 39977
39978 UFS improvements
39979
39980 * fs/ufs.c (INODE_NBLOCKS): new definition
39981 (struct grub_ufs_dirent): added fields for non-BSD dirents
39982 (grub_ufs_get_file_block): fixed double indirect handling
39983 (grub_ufs_lookup_symlink): use more robust way to determine whether
39984 symlink is inline
39985 (grub_ufs_find_file): support for non-BSD dirents
39986 (grub_ufs_dir): support for non-BSD dirents
39987
e7e6862a 399882009-04-10 Bean <bean123ch@gnail.com>
39989
39990 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39991 attribute, otherwise the size would be wrong for i386 platform.
39992
39993 * include/grub/pci.h (grub_pci_read_word): New inline function.
39994 (grub_pci_read_byte): Likewise.
39995 (grub_pci_write): Likewise.
39996 (grub_pci_write_word): Likewise.
39997 (grub_pci_write_byte): Likewise.
39998
39999 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
40000
40001 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
40002 (find_framebuf): Scan pci to locate the frame buffer address.
40003
40004 * commands/efi/fixvideo.c: New file.
40005
40006 * commands/efi/loadbios.c: Likewise.
40007
40008 * commands/memrw.c: Likewise.
40009
40010 * util/grub-dumpbios.in: Likewise.
40011
40012 * conf/common.rmk (grub-dumpbios): New utility.
40013 (pkglib_MODULES): New module memrw.mod.
40014 (memrw_mod_SOURCE): New macro.
40015 (memrw_mod_CFLAGS): Likewise.
40016 (memrw_mod_LDFLAGS): Likewise.
40017
7dd4a573 40018 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 40019 fixvideo.mod.
40020 (loadbios_mod_SOURCE): New macro.
40021 (loadbios_mod_CFLAGS): Likewise.
40022 (loadbios_mod_LDFLAGS): Likewise.
40023 (fixvideo_mod_SOURCE): Likewise.
40024 (fixvideo_mod_CFLAGS): Likewise.
40025 (fixvideo_mod_LDFLAGS): Likewise.
40026
7dd4a573 40027 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 40028 fixvideo.mod.
40029 (loadbios_mod_SOURCE): New macro.
40030 (loadbios_mod_CFLAGS): Likewise.
40031 (loadbios_mod_LDFLAGS): Likewise.
40032 (fixvideo_mod_SOURCE): Likewise.
40033 (fixvideo_mod_CFLAGS): Likewise.
40034 (fixvideo_mod_LDFLAGS): Likewise.
40035
af63ada2 400362009-04-08 Felix Zielcke <fzielcke@z-51.de>
40037
40038 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
40039
c2cdde70 400402009-04-07 David S. Miller <davem@davemloft.net>
40041
40042 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
40043 support for R_SPARC_OLO10 relocations. Fix compile warning for
40044 R_SPARC_WDISP30 case.
ea3f72cf 40045 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 40046
761319cf 400472009-04-06 Pavel Roskin <proski@gnu.org>
40048
1007d1f5 40049 * include/grub/misc.h (ARRAY_SIZE): New macro.
40050 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
40051 New macro.
40052 * loader/i386/linux.c (allocate_pages): Use free_pages().
40053 (grub_linux_unload): Don't use free_pages().
40054 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
40055 wrong index. Treat all other modes as text modes.
40056 (grub_cmd_linux): Initialize vid_mode unconditionally to
40057 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
40058
761319cf 40059 * commands/help.c (print_command_help): Use cmd->prio, not
40060 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
40061
ea761d40 400622009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 40063
ea761d40 40064 Parttool
40065
40066 * parttool/pcpart.c: new file
40067 * commands/parttool.c: likewise
40068 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40069 (parttool_mod_SOURCES): new variable
40070 (parttool_mod_CFLAGS): likewise
40071 (parttool_mod_LDFLAGS): likewise
40072 (pcpart_mod_SOURCES): likewise
40073 (pcpart_mod_CFLAGS): likewise
40074 (pcpart_mod_LDFLAGS): likewise
7dd4a573 40075 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 40076 and parttool/pcpart.c
40077 * conf/i386-efi.rmk: likewise
40078 * conf/i386-ieee1275.rmk: likewise
40079 * conf/i386-pc.rmk: likewise
40080 * conf/powerpc-ieee1275.rmk: likewise
40081 * conf/sparc64-ieee1275.rmk: likewise
40082 * conf/x86_64-ieee1275.rmk: likewise
40083
05aaebfb 400842009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40085
40086 Support for mtime and further expandability of dir command
40087
40088 * include/grub/lib/datetime.h: moved to ...
7dd4a573 40089 * include/grub/datetime.h: ... moved here and added
05aaebfb 40090 declaration of grub_unixtime2datetime. All users updated
7dd4a573 40091 * include/grub/fs.h: new syntax for dir and mtime functions in
40092 struct grub_fs
05aaebfb 40093 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40094 and GRUB_FSHELP_FLAGS_MASK
40095 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40096 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40097 (grub_ext2_mtime): new function
40098 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40099 (grub_hfsplus_mtime): new function
40100 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40101 (GRUB_UFS_ATTR_FILE): likewise
40102 (GRUB_UFS_ATTR_LNK): likewise
40103 (struct grub_ufs_sblock): new fields mtime
40104 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40105 all users updated
40106 (grub_ufs_dir): mtime support
40107 (grub_ufs_mtime): new function
40108 * fs/affs.c (grub_affs_dir): use new dir syntax
40109 * fs/afs.c (grub_afs_dir): likewise
40110 * fs/cpio.c (grub_cpio_dir): likewise
40111 * fs/fat.c (grub_fat_find_dir): likewise
40112 * fs/hfs.c (grub_hfs_dir): likewise
40113 * fs/iso9660.c (grub_iso9660_dir): likewise
40114 * fs/jfs.c (grub_jfs_dir): likewise
40115 * fs/minix.c (grub_minix_dir): likewise
40116 * fs/ntfs.c (grub_ntfs_dir): likewise
40117 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40118 * fs/sfs.c (grub_sfs_dir): likewise
40119 * fs/xfs.c (grub_xfs_dir): likewise
40120 * util/hostfs.c (grub_hostfs_dir): likewise
40121 * lib/datetime.c: moved to ...
40122 * normal/datetime.c: ... moved here
40123 (grub_unixtime2datetime): new function
40124 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 40125 * normal/completion.c (iterate_dir): use new dir syntax
40126 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 40127 last modification time of a volume
7dd4a573 40128 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 40129 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 40130 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 40131 (normal_mod_SOURCES): likewise
40132 (datetime_mod_SOURCES): Removed lib/datetime.c
40133 * conf/i386-efi.rmk: likewise
7dd4a573 40134 * conf/i386-ieee1275.rmk: likewise
05aaebfb 40135 * conf/i386-pc.rmk: likewise
40136 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 40137 * conf/sparc64-ieee1275.rmk: likewise
40138 * conf/x86_64-efi.rmk: likewise
05aaebfb 40139
8a7e1a14 401402009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40141
40142 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 40143
40144 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 40145 on grub_fat_find_dir
40146 (grub_fat_find_dir): use grub_fat_iterate_dir
40147 (grub_fat_label): likewise
40148
04186a9c 401492009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40150
7dd4a573 40151 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 40152 and command.h
40153 remove extraneous kernel_elf_HEADERS
40154
da4c0bb6 401552009-04-04 Bean <bean123ch@gnail.com>
40156
40157 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40158
40159 * util/misc.c: Likewise.
40160
54ad9555 401612009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40162
40163 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40164 instead of grub_printf.
40165
7a6bf9f2 401662009-04-03 Robert Millan <rmh@aybabtu.com>
40167
40168 * loader/i386/linux.c (grub_linux_setup_video): Fill
40169 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40170 values from `mode info' structure instead of hardcoded
40171 values.
40172
3fcc2083 401732009-04-01 Pavel Roskin <proski@gnu.org>
40174
40175 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40176 unused now.
40177 * genmk.rb: Likewise.
40178 * configure.ac: Likewise.
40179
5ec9740b 401802009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40181
40182 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40183 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40184
5270cec8 401852009-04-01 David S. Miller <davem@davemloft.net>
40186
40187 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 40188 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 40189 (grub_setjmp): Mark with 'returns_twice' attribute.
40190 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40191 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40192 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40193
9c3dd854 401942009-04-01 Robert Millan <rmh@aybabtu.com>
40195
40196 Reapply fix from 2008-07-28 which was accidentally reverted; also
40197 perform the same fix to a similar check in same function.
40198
40199 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40200 with the same number are found, just use issue a warning with
40201 grub_dprintf(), as this error has been reported to be non-fatal.
40202
0d818b7e 402032009-03-31 Pavel Roskin <proski@gnu.org>
40204
40205 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40206 for cross-compilation.
40207
95646d92 402082009-03-30 Robert Millan <rmh@aybabtu.com>
40209
40210 Fix i386-ieee1275 build.
40211
40212 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40213 Remove declaration.
40214
6a003ed1 402152009-03-30 Pavel Roskin <proski@gnu.org>
40216
40217 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40218 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40219 zero-terminated, rely only on the strlen value. Fix comparison
40220 of strings differing in length.
40221
92f33540 402222009-03-30 Robert Millan <rmh@aybabtu.com>
40223
40224 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40225 checking for abi version. Improve error messages on BIOS to notify
40226 user about `linux16' command.
40227
a8c48fd5 402282009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40229
f968172e 40230 Leak fixes
a8c48fd5 40231
f968172e 40232 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40233 in case of collision
40234 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 40235
9c323f09 402362009-03-29 Robert Millan <rmh@aybabtu.com>
40237
40238 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40239 set `vid_mode' accordingly.
40240 (grub_linux_boot): Process `vid_mode' and set video mode.
40241
ae68f423 402422009-03-29 Robert Millan <rmh@aybabtu.com>
40243
40244 * util/grub.d/10_linux.in (linux_entry): New function.
40245 Factorize generation of Linux boot entries.
40246
5709cfc4 402472009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40248
40249 Make the format of Environment Block plain text. The boot loader
40250 part is not tested well yet.
7dd4a573 40251
5709cfc4 40252 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40253 (buffer): Removed.
40254 (envblk): Likewise.
40255 (usage): Remove "info" and "clear". Add "unset". Update the
40256 description of "set", as this does not delete variables any
40257 longer.
40258 (create_envblk_file): Complete rewrite.
40259 (open_envblk_file): Likewise.
40260 (cmd_info): Removed.
40261 (cmd_list): Likewise.
40262 (cmd_set): Likewise.
40263 (cmd_clear): Likewise.
40264 (list_variables): New function.
40265 (write_envblk): Likewise.
40266 (set_variables): Likewise.
40267 (unset_variables): Likewise.
40268 (main): Complete rewrite.
40269
40270 * commands/loadenv.c (buffer): Removed.
40271 (envblk): Likewise.
40272 (open_envblk_file): New function.
40273 (read_envblk_file): Complete rewrite.
40274 (grub_cmd_load_env): Likewise.
40275 (grub_cmd_list_env): Likewise.
40276 (struct blocklist): New struct.
40277 (free_blocklists): New function.
40278 (check_blocklists): Likewise.
40279 (write_blocklists): Likewise.
40280 (grub_cmd_save_env): Complete rewrite.
40281
40282 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40283 a plain text signature.
40284 (GRUB_ENVBLK_MAXLEN): Removed.
40285 (struct grub_envblk): Complete rewrite.
40286 (grub_envblk_find): Removed.
40287 (grub_envblk_insert): Likewise.
40288 (grub_envblk_open): New prototype.
40289 (grub_envblk_set): Likewise.
40290 (grub_envblk_delete): Put const to VALUE.
40291 (grub_envblk_iterate): Put const to NAME and VALUE.
40292 (grub_envblk_close): New prototype.
40293 (grub_envblk_buffer): New inline function.
40294 (grub_envblk_size): Likewise.
40295
40296 * lib/envblk.c: Include grub/mm.h.
40297 (grub_env_find): Removed.
40298 (grub_envblk_open): New function.
40299 (grub_envblk_close): Likewise.
40300 (escaped_value_len): Likewise.
40301 (find_next_line): Likewise.
40302 (grub_envblk_insert): Removed.
40303 (grub_envblk_set): New function.
40304 (grub_envblk_delete): Complete rewrite.
40305 (grub_envblk_iterate): Likewise.
40306
a9368fd3 403072009-03-28 Robert Millan <rmh@aybabtu.com>
40308
40309 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40310 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40311 variables. Use 16-bit loader.
40312 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40313 loader.
40314 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40315 (grub_linux16_boot): ... this. Update all users.
40316 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40317 (grub_linux_boot): ... this. Update all users.
40318
40319 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40320 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40321 commands to `linux16' and `initrd16'.
40322 (GRUB_MOD_FINI(linux)): Rename to ...
40323 (GRUB_MOD_FINI(linux16)): ... this.
40324
e4dd5a7e 403252009-03-24 Pavel Roskin <proski@gnu.org>
40326
40327 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40328 not just for compilation.
40329
c04d6e05 403302009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40331
40332 Move multiboot helper out of kernel
40333
40334 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40335 `loader/i386/multiboot_helper.S'.
40336 * conf/i386-coreboot.rmk: Likewise
40337 * conf/i386-ieee1275.rmk: Likewise
40338
40339 * kern/i386/loader.S: Move multiboot helpers from here...
40340 * loader/i386/multiboot_helper.S: ...moved here
40341 * include/grub/i386/loader.h: Move declarations of multiboot
40342 helpers from here...
40343 * include/grub/i386/multiboot.h: ...moved here
40344 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40345
42a5b3fc 403462009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40347
40348 * kern/env.c (grub_env_context_open): Added an argument to specify
40349 whether a new context inherits exported variables from current
40350 one. This is useful when making a sandbox to interpret a config
40351 file.
40352 All callers updated.
40353
40354 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40355
b28bbc4e 403562009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40357
40358 * kern/env.c (grub_env_context_close): Fix memory leaks.
40359
f04f02e4 403602009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40361
40362 * normal/main.c (grub_normal_execute): Added an argument
40363 BATCH to specify if an interactive interface should be provided
40364 after reading a config file.
40365 All callers updated.
40366 (read_command_list): Prevent being executed twice.
40367 (read_fs_list): Likewise.
40368
42a5b3fc 40369 * include/grub/normal.h (grub_normal_execute): Updated the
40370 prototype.
f04f02e4 40371
41473ac2 403722009-03-22 Pavel Roskin <proski@gno.org>
40373
fbc00b0c 40374 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40375 _start.
40376 * kern/i386/pc/startup.S: Likewise.
40377 * kern/i386/efi/startup.S: Likewise.
40378 * kern/i386/ieee1275/startup.S: Likewise.
40379 * kern/i386/coreboot/startup.S: Likewise.
40380 * kern/x86_64/efi/startup.S: Likewise.
40381
41473ac2 40382 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40383 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40384 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40385
2274cc8f 403862009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40387
40388 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40389
40390 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40391 limit detection.
40392 Use vaddr of correct segment for entry_point.
40393
b1b797cb 403942009-03-21 Bean <bean123ch@gmail.com>
40395
40396 * commands/blocklist.c: Add include file <grub/command.h>, remove
40397 <grub/normal.h> and <grub/arg.h>.
40398 (grub_cmd_blocklist): Use the new command interface.
40399 (GRUB_MOD_INIT): Likewise.
40400 (GRUB_MOD_FINI): Likewise.
40401 * commands/boot.c: Likewise.
40402 * commands/cat.c: Likewise.
40403 * commands/cmp.c: Likewise.
40404 * commands/configfile.c: Likewise.
40405 * commands/crc.c: Likewise.
40406 * commands/echo.c: Likewise.
40407 * commands/halt.c: Likewise.
40408 * commands/handler.c: Likewise.
40409 * commands/hdparm.c: Likewise.
40410 * commands/help.c: Likewise.
40411 * commands/hexdump.c: Likewise.
40412 * commands/loadenv.c: Likewise.
40413 * commands/ls.c: Likewise.
40414 * commands/lsmmap.c: Likewise.
40415 * commands/lspci.c: Likewise.
40416 * commands/loadenv.c: Likewise.
40417 * commands/read.c: Likewise.
40418 * commands/reboot.c: Likewise.
40419 * commands/search.c: Likewise.
40420 * commands/sleep.c: Likewise.
40421 * commands/test.c: Likewise.
40422 * commands/usbtest.c: Likewise.
40423 * commands/videotest.c: Likewise.
40424 * commands/i386/cpuid.c: Likewise.
40425 * commands/i386/pc/halt.c: Likewise.
40426 * commands/i386/pc/play.c: Likewise.
40427 * commands/i386/pc/pxecmd.c: Likewise.
40428 * commands/i386/pc/vbeinfo.c: Likewise.
40429 * commands/i386/pc/vbetest.c: Likewise.
40430 * commands/ieee1275/suspend.c: Likewise.
40431 * disk/loopback.c: Likewise.
40432 * font/font_cmd.c: Likewise.
40433 * hello/hello.c: Likewise.
40434 * loader/efi/appleloader.c: Likewise.
40435 * loader/efi/chainloader.c: Likewise.
40436 * loader/i386/bsd.c: Likewise.
40437 * loader/i386/efi/linux.c: Likewise.
40438 * loader/i386/ieee1275/linux.c: Likewise.
40439 * loader/i386/linux.c: Likewise.
40440 * loader/i386/pc/chainloader.c: Likewise.
40441 * loader/i386/pc/linux.c: Likewise.
40442 * loader/powerpc/ieee1275/linux.c: Likewise.
40443 * loader/multiboot_loader.c: Likewise.
40444 * term/gfxterm.c: Likewise.
40445 * term/i386/pc/serial.c: Likewise.
40446 * term/terminfo.c: Likewise.
40447
40448 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40449 * term/i386/pc/vga.c: Likewise.
40450 * video/readers/jpeg.c: Likewise.
40451 * video/readers/png.c: Likewise.
40452 * video/readers/tga.c: Likewise.
40453
40454 * util/grub-fstest (cmd_loopback): Removed.
40455 (cmd_blocklist): Likewise.
40456 (cmd_ls): Likewise.
40457 (grub_register_command): Likewise.
40458 (grub_unregister_command): Likewise.
40459 (execute_command): Use grub_command_find to locate command and execute
40460 it.
40461
40462 * include/grub/efi/chainloader.h: Removed.
40463 * loader/efi/chainloader_normal.c: Likewise.
40464 * loader/i386/bsd_normal.c: Likewise.
40465 * loader/i386/pc/chainloader_normal.c: Likewise.
40466 * loader/i386/pc/multiboot_normal.c: Likewise.
40467 * loader/linux_normal.c: Likewise.
40468 * loader/multiboot_loader_normal.c: Likewise.
40469 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40470
40471 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40472 and grub_register_command_p1.
40473
40474 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40475 kern/command.c, lib/arg.c and commands/extcmd.c.
40476 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40477 (minicmd_mod_SOURCES): New variable.
40478 (minicmd_mod_CFLAGS): Likewise.
40479 (minicmd_mod_LDFLAGS): Likewise.
40480 (extcmd_mod_SOURCES): Likewise.
40481 (extcmd_mod_CFLAGS): Likewise.
40482 (extcmd_mod_LDFLAGS): Likewise.
40483 (boot_mod_SOURCES): Removed.
40484 (boot_mod_CFLAGS): Likewise.
40485 (boot_mod_LDFLAGS): Likewise.
40486
40487 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40488 kern/corecmd.c.
40489 (kernel_img_HEADERS): Add command.h.
40490 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40491 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40492 and lib/arg.c.
40493 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40494 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40495 remove the corresponding normal mode command.
40496 (normal_mod_SOURCES): Remove normal/arg.c.
40497 * conf/i386-coreboot.rmk: Likewise.
40498 * conf/i386-efi.rmk: Likewise.
40499 * conf/i386-ieee1275.rmk: Likewise.
40500 * conf/powerpc-ieee1275.rmk: Likewise.
40501 * conf/x86_64-efi.rmk: Likewise.
40502
40503 * include/grub/arg.h: Move from here ...
40504 * include/grub/lib/arg.h: ... to here.
40505
40506 * normal/arg.c: Move from here ...
40507 * lib/arg.c: ... to here.
40508
40509 * commands/extcmd.c: New file.
40510 * commands/minicmd.c: Likewise.
40511 * include/grub/command.h: Likewise.
40512 * include/grub/extcmd.h: Likewise.
40513 * kern/command.c: Likewise.
40514 * kern/corecmd.c: Likewise.
40515
40516 * kern/list.c (grub_list_iterate): Return int instead of void.
40517 (grub_list_insert): New function.
40518 (grub_prio_list_insert): Likewise.
40519
40520 * kern/rescue.c (grub_rescue_command): Removed.
40521 (grub_rescue_command_list): Likewise.
40522 (grub_rescue_register_command): Likewise.
40523 (grub_rescue_unregister_command): Likewise.
40524 (grub_rescue_cmd_boot): Move to minicmd.c
40525 (grub_rescue_cmd_help): Likewise.
40526 (grub_rescue_cmd_info): Likewise.
40527 (grub_rescue_cmd_boot): Likewise.
40528 (grub_rescue_cmd_testload): Likewise.
40529 (grub_rescue_cmd_dump): Likewise.
40530 (grub_rescue_cmd_rmmod): Likewise.
40531 (grub_rescue_cmd_lsmod): Likewise.
40532 (grub_rescue_cmd_exit): Likewise.
40533 (grub_rescue_print_devices): Moved to corecmd.c.
40534 (grub_rescue_print_files): Likewise.
40535 (grub_rescue_cmd_ls): Likewise.
40536 (grub_rescue_cmd_insmod): Likewise.
40537 (grub_rescue_cmd_set): Likewise.
40538 (grub_rescue_cmd_unset): Likewise.
7d074e3c 40539 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 40540 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 40541 commands, remove grub_rescue_register_command calls.
b1b797cb 40542
7d074e3c 40543 * normal/command.c (grub_register_command): Removed.
b1b797cb 40544 (grub_unregister_command): Likewise.
40545 (grub_command_find): Likewise.
40546 (grub_iterate_commands): Likewise.
40547 (rescue_command): Likewise.
40548 (export_command): Moved to corecmd.c.
40549 (set_command): Removed.
40550 (unset_command): Likewise.
40551 (insmod_command): Likewise.
40552 (rmmod_command): Likewise.
40553 (lsmod_command): Likewise.
40554 (grub_command_init): Likewise.
40555
40556 * normal/completion.c (iterate_command): Use cmd->prio to check for
40557 active command.
40558 (complete_arguments): Use grub_extcmd_t structure to find options.
40559 (grub_normal_do_completion): Change function grub_iterate_commands to
40560 grub_command_iterate.
40561
40562 * normal/execute.c (grub_script_execute_cmd): No need to parse
40563 argument here.
40564
40565 * normal/main.c (grub_dyncmd_dispatcher): New function.
40566 (read_command_list): Register unload commands as dyncmd.
40567 (grub_cmd_normal): Use new command interface, register rescue,
40568 unregister normal at entry, register normal, unregister rescue at exit.
40569
40570 * include/grub/list.h (grub_list_test_t): New type.
40571 (grub_list_iterate): Return int instead of void.
40572 (grub_list_insert): New function.
40573 (GRUB_AS_NAMED_LIST_P): New macro.
40574 (GRUB_AS_PRIO_LIST): Likewise.
40575 (GRUB_AS_PRIO_LIST_P): Likewise.
40576 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40577 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40578 (grub_prio_list): New structure.
40579 (grub_prio_list_insert): New function.
40580 (grub_prio_list_remove): New inline function.
40581
40582 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40583 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40584 (GRUB_COMMAND_FLAG_MENU): Likewise.
40585 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40586 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40587 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40588 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40589 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40590 (grub_command): Likewise.
40591 (grub_register_command): Likewise.
40592 (grub_command_find): Likewise.
40593 (grub_iterate_commands): Likewise.
40594 (grub_command_init): Likewise.
40595 (grub_arg_parse): Likewise.
40596 (grub_arg_show_help): Likewise.
40597
40598 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40599 (grub_rescue_unregister_command): Likewise.
40600
40601 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40602 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40603 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40604
40605 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40606 grub_rescue_cmd_initrd.
40607 * include/grub/i386/loader.h: Likewise.
40608 * include/grub/x86_64/loader.h: Likewise.
40609
40610 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40611
1f4147aa 406122009-03-21 Bean <bean123ch@gmail.com>
40613
40614 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40615 instead of stat in mingw environment.
40616
40617 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40618
40619 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40620
40621 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40622 AC_CONFIG_LINKS.
40623
2156d5ba 406242009-03-21 Bean <bean123ch@gmail.com>
40625
40626 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40627 out of range error.
40628
177b82ca 406292009-03-18 Michel Dänzer <michel@daenzer.net>
40630
40631 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40632 checking inode flags for EXT4_EXTENTS_FLAG.
40633
14aad807 406342009-03-18 Robert Millan <rmh@aybabtu.com>
40635
40636 * loader/i386/linux.c: Include `<grub/video.h>' and
40637 `<grub/i386/pc/vbe.h>'..
40638 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40639 (grub_linux32_boot): Attempt to configure video settings with
40640 grub_linux_setup_video().
40641 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40642 to avoid grub_console_fini() which would step out of graphical mode
40643 unconditionally.
40644
8cf83a27 406452009-03-14 Robert Millan <rmh@aybabtu.com>
40646
40647 Fix build on powerpc.
40648 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40649
40164e75 406502009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40651
40652 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40653 background image command.
40654
c58bc32a 406552009-03-12 Colin D Bennett <colin@gibibit.com>
40656
40657 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40658 (grub_gfxterm_putchar): Extract pairs of identical calls to
40659 draw_cursor out of conditional blocks.
40660
5415144a 406612009-03-11 Pavel Roskin <proski@gnu.org>
40662
40663 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40664 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40665
6394042e 406662009-03-11 Robert Millan <rmh@aybabtu.com>
40667
40668 * loader/i386/multiboot_elfxx.c
40669 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40670
b7b50e5f 406712009-03-11 Felix Zielcke <fzielcke@z-51.de>
40672
40673 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40674 `kern/handler.c'.
40675
1ca7fc96 406762009-03-11 Robert Millan <rmh@aybabtu.com>
40677
40678 * loader/i386/multiboot.c (code_size): New variable.
40679 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 40680 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 40681 4-byte alignment to MBI and others by increasing
7d074e3c 40682 `boot_loader_name_length' appropriately.
1ca7fc96 40683
40684 * loader/i386/multiboot_elfxx.c
40685 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40686
a83ea1d2 406872009-03-09 Felix Zielcke <fzielcke@z-51.de>
40688
40689 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40690 `fs/ext2.c'.
40691
aa9f3bff 406922009-03-08 Robert Millan <rmh@aybabtu.com>
40693
40694 Make loader/i386/linux.c usable on i386-pc again.
40695
40696 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40697 memory to heap.
40698 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40699 `#error' stanza.
40700
d8b3b60e 407012009-03-07 Bean <bean123ch@gmail.com>
40702
40703 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40704 allocation.
40705
b362c9e9 407062009-03-06 Robert Millan <rmh@aybabtu.com>
40707
40708 Fix display issue on terminals with screen size other than 80x25
40709 (e.g. gfxterm with resolution higher than 640x480).
40710
40711 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 40712 position relative to the center of the terminal instead of relying
b362c9e9 40713 on a hardcoded offset.
40714
9304eef1 407152009-03-04 Robert Millan <rmh@aybabtu.com>
40716
40717 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40718 installed.
40719
40720 * Makefile.in (host_kernel): New variable.
40721 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40722 scripts instead of just the windows one.
40723 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40724
eabc95fb 407252009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 40726
40727 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40728 `kern/handler.c'.
40729 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40730 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40731 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40733 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40734 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40735
ceb1223c 407362009-03-04 Felix Zielcke <fzielcke@z-51.de>
40737
40738 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40739 or if there's no space for the disk label and print the partition number on a
40740 invalid magic.
40741
4910684a 407422009-03-04 Felix Zielcke <fzielcke@z-51.de>
40743
40744 * util/misc.c: Include <time.h>.
40745 (grub_millisleep): New function.
40746
7e9ca17a 407472009-03-04 Bean <bean123ch@gmail.com>
40748
40749 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40750 another option -mno-red-zone.
40751
40752 * commands/handler.c: Change module description.
40753
40754 * kern/handler.c: Add missing space at the end of description line.
40755
40756 * kern/list.c: Likewise.
40757
f501677c 407582009-03-03 Robert Millan <rmh@aybabtu.com>
40759
40760 Move more components to the relocation area, and fix mbi pointer
40761 handling to use the destination rather than the origin (thanks to
40762 Vladimir Serbinenko for spotting).
40763
40764 * loader/i386/multiboot.c (mbi_dest): New variable.
40765 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40766 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40767 relocation area.
40768
9902d047 407692009-03-01 Bean <bean123ch@gmail.com>
40770
50fb7002 40771 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 40772 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40773 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40774 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40775
40776 * loader/i386/efi/linux.c (acpi_guid): New variable.
40777 (acpi_guid): Likewise.
40778 (EBDA_SEG_ADDR): New constant.
40779 (LOW_MEM_ADDR): Likewise.
40780 (FAKE_EBDA_SEG): Likewise.
40781 (fake_bios_data): New function.
40782 (grub_linux_boot): Call fake_bios_data.
40783
71b9f361 407842009-03-01 Bean <bean123ch@gmail.com>
40785
40786 * commands/terminal.c: Removed.
40787
40788 * commands/handler.c: New file.
40789
40790 * include/grub/list.h: Likewise.
40791
40792 * include/grub/handler.h: Likewise.
40793
40794 * kern/list.c: Likewise.
40795
40796 * kern/handler.c: Likewise.
40797
40798 * kern/term.h: Include header file <grub/handler.h>.
40799 (grub_term_input): Move next field to the beginning.
40800 (grub_term_output): Likewise.
40801 (grub_term_input_class): New variable.
40802 (grub_term_output_class): Likewise.
40803 (grub_term_register_input): Changed to inline function.
40804 (grub_term_register_output): Likewise.
40805 (grub_term_unregister_input): Likewise.
40806 (grub_term_unregister_output): Likewise.
40807 (grub_term_set_current_input): Likewise.
40808 (grub_term_set_current_output): Likewise.
40809 (grub_term_get_current_input): Likewise.
40810 (grub_term_get_current_output): Likewise.
40811 (grub_term_iterate_input): Removed.
40812 (grub_term_iterate_output): Likewise.
40813
40814 * kern/term.c (grub_term_list_input): Removed.
40815 (grub_term_list_output): Likewise.
40816 (grub_term_input_class): New variable.
40817 (grub_term_output_class): Likewise.
50fb7002 40818 (grub_cur_term_input): Change variable as macro.
71b9f361 40819 (grub_cur_term_output): Likewise.
40820 (grub_term_register_input): Removed.
40821 (grub_term_register_output): Likewise.
40822 (grub_term_unregister_input): Likewise.
40823 (grub_term_unregister_output): Likewise.
40824 (grub_term_set_current_input): Likewise.
40825 (grub_term_set_current_output): Likewise.
40826 (grub_term_iterate_input): Likewise.
40827 (grub_term_iterate_output): Likewise.
40828 (grub_term_get_current_input): Likewise.
40829 (grub_term_get_current_output): Likewise.
40830
40831 * util/grub-editenv.c: Include header file <grub/handler.h>.
40832 (grub_term_get_current_input): Removed.
40833 (grub_term_get_current_output): Likewise.
40834 (grub_term_input_class): New variable.
50fb7002 40835 (grub_term_output_class): Likewise.
71b9f361 40836
40837 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40838 (grub_term_get_current_output): Likewise.
40839 (grub_term_input_class): New variable.
50fb7002 40840 (grub_term_output_class): Likewise.
71b9f361 40841
40842 * util/grub-probe.c (grub_term_get_current_input): Removed.
40843 (grub_term_get_current_output): Likewise.
40844 (grub_term_input_class): New variable.
50fb7002 40845 (grub_term_output_class): Likewise.
71b9f361 40846
40847 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40848 (grub_term_get_current_output): Likewise.
40849 (grub_term_input_class): New variable.
50fb7002 40850 (grub_term_output_class): Likewise.
71b9f361 40851
40852 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40853 (terminal_mod_SOURCES): Likewise.
40854 (terminal_mod_CFLAGS): Likewise.
40855 (terminal_mod_LDFLAGS): Likewise.
40856
40857 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40858 handler.c.
40859 (kernel_img_SOURCES): Add list.c and handler.c.
40860 (kernel_img_HEADERS): Add list.h and handler.h.
40861
40862 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40863 handler.c.
40864 (kernel_mod_SOURCES): Add list.c and handler.c.
40865 (kernel_mod_HEADERS): Add list.h and handler.h.
40866
40867 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40868 handler.c.
40869 (kernel_elf_SOURCES): Add list.c and handler.c.
40870 (kernel_elf_HEADERS): Add list.h and handler.h.
40871
40872 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40873 handler.c.
40874 (kernel_elf_SOURCES): Add list.c and handler.c.
40875 (kernel_elf_HEADERS): Add list.h and handler.h.
40876
40877 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40878 handler.c.
40879 (kernel_mod_SOURCES): Add list.c and handler.c.
40880 (kernel_mod_HEADERS): Add list.h and handler.h.
40881
40882 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40883 handler.c.
40884 (kernel_elf_SOURCES): Add list.c and handler.c.
40885 (kernel_elf_HEADERS): Add list.h and handler.h.
40886
8a31787f 408872009-02-27 Robert Millan <rmh@aybabtu.com>
40888
40889 Factorize elf32 / elf64 code in Multiboot loader. This will
40890 prevent it from getting out of sync again.
40891
40892 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40893 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40894 grub_multiboot_load_elf64): Move from here ...
40895 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40896 grub_multiboot_load_elf): ... to here (new file).
40897
51cd3dfc 408982009-02-27 Robert Millan <rmh@aybabtu.com>
40899
40900 * util/grub.d/10_linux.in: Rename "single-user mode" to
40901 "recovery mode".
40902
6e8c9c3a 409032009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40904
40905 Don't leak in SCSI code.
40906 * disk/scsi.c (grub_scsi_close): free `scsi'.
40907
4b6bf4f9 409082009-02-27 Robert Millan <rmh@aybabtu.com>
40909
40910 * loader/i386/pc/multiboot.c: Move from here ...
40911 * loader/i386/multiboot.c: ... to here. Update all users.
40912
b9413424 409132009-02-27 Robert Millan <rmh@aybabtu.com>
40914
40915 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40916 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40917
50fb7002 409182009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 40919
40920 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40921 b-tree.
40922
8cc50345 409232009-02-27 Robert Millan <rmh@aybabtu.com>
40924
40925 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40926 `0x' qualifier as 0 when base is specified as parameter).
40927
6e09b8b7 409282009-02-24 Bean <bean123ch@gmail.com>
40929
40930 * configure.ac: Check for -mcmodel=large in x86_64 target.
40931
40932 * include/grub/efi/api.h (efi_call_10): New macro.
40933 (efi_wrap_10): New function.
40934
40935 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40936 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40937 (GRUB_PE32_REL_BASED_LOW): Likewise.
40938 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40939 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40940 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40941 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40942 (GRUB_PE32_REL_BASED_REL): Likewise.
40943 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40944 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40945 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40946
40947 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40948 issue.
40949
40950 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40951 (efi_wrap_10): New function.
40952
40953 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40954
40955 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40956 MB/MBP model (NV chipset).
40957 (devdata_devs): Add devpath_5 to the list.
40958
40959 * load/i386/efi/linux.c (video_base): Remove variable.
40960 (RGB_MASK): New macro.
40961 (RGB_MAGIC): Likewise.
40962 (LINE_MIN): Likewise.
40963 (LINE_MAX): Likewise.
40964 (FBTEST_STEP): Likewise.
40965 (FBTEST_COUNT): Likewise.
40966 (fb_list): New variable.
40967 (grub_find_video_card): Remove function.
40968 (find_framebuf): New function.
40969 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40970 line length.
40971
40972 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40973 problem for x86_64.
40974
74b21bee 409752009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40976
40977 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40978
40979 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40980 coding tool name.
40981
a455f472 409822009-02-22 Robert Millan <rmh@aybabtu.com>
40983
40984 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40985 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40986 in our relocation, instead of using it directly from heap. Also
40987 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40988
6374daf3 409892009-02-21 Robert Millan <rmh@aybabtu.com>
40990
40991 Implement USB keyboard support (based on patch by Marco Gerards)
40992
40993 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40994 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40995 (usb_keyboard_mod_LDFLAGS): New variables.
40996
40997 * term/usb_keyboard.c: New file.
40998
8fa4ea70 409992009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
41000
41001 Corrected wrong declaration
41002
41003 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
41004
353976ac 410052009-02-14 Christian Franke <franke@computer.org>
41006
41007 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
41008 (grub_lspci_iter): Print class code and programming interface byte.
41009
6aa1169b 410102009-02-14 Christian Franke <franke@computer.org>
41011
41012 * gendistlist.sh: Ignore `.svn' directories.
41013
265372ca 410142009-02-14 Felix Zielcke <fzielcke@z-51.de>
41015
41016 * fs/fat.c: Add 2009 to Copyright line.
41017
9ff516f3 410182009-02-14 Christian Franke <franke@computer.org>
41019
41020 * commands/hdparm.c: New file. Provides `hdparm' command
41021 which sends ATA commands via grub_disk_ata_pass_through ().
41022
41023 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
41024
41025 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
41026 and <grub/cpu/io.h> to include/grub/ata.h.
41027 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
41028 (GRUB_CDROM_SECTOR_SIZE): Remove.
41029 (GRUB_ATA_*): Move to include/grub/ata.h.
41030 (GRUB_ATAPI_*): Likewise.
41031 (enum grub_ata_commands): Likewise.
41032 (enum grub_ata_timeout_milliseconds): Likewise.
41033 (struct grub_ata_device): Likewise.
41034 (grub_ata_regset): Likewise.
41035 (grub_ata_regget): Likewise.
41036 (grub_ata_regset2): Likewise.
41037 (grub_ata_regget2): Likewise.
41038 (grub_ata_check_ready): Likewise.
41039 (grub_ata_wait_not_busy): Remove static, exported in
41040 include/grub/ata.h.
41041 (grub_ata_wait_drq): Likewise.
41042 (grub_ata_pio_read): Likewise.
41043
41044 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
41045 function for hdparm.mod.
41046
41047 * include/grub/ata.h: New file, contains declarations from
41048 disk/ata.c.
41049 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
41050
41051 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
41052 (grub_disk_ata_pass_through): New exported variable.
41053
41054 * kern/disk.c (grub_disk_ata_pass_through): New variable.
41055
772e23da 410562009-02-13 Colin D Bennett <colin@gibibit.com>
41057
41058 Support multiple fallback entries, and provide an API to support
41059 executing default+fallback menu entries. Renamed the `terminal' menu
41060 viewer to `text'.
41061
41062 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41063 variable declaration.
41064 (grub_menu_execute_callback): New structure declaration.
41065 (grub_menu_execute_callback_t): New typedef.
41066 (grub_menu_execute_with_fallback): New function declaration.
41067 (grub_menu_get_entry): Likewise.
41068 (grub_menu_get_timeout): Likewise.
41069 (grub_menu_set_timeout): Likewise.
41070
41071 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41072
41073 * normal/menu.c (grub_wait_after_message): Moved to
41074 `normal/menu_text.c'.
41075 (draw_border): Likewise.
41076 (print_message): Likewise.
41077 (print_entry): Likewise.
41078 (print_entries): Likewise.
41079 (grub_menu_init_page): Likewise.
41080 (get_entry_number): Likewise.
41081 (print_timeout): Likewise.
41082 (run_menu): Likewise.
41083 (grub_menu_execute_entry): Likewise.
41084 (show_text_menu): Likewise.
41085 (get_and_remove_first_entry_number): New function.
41086 (grub_menu_execute_with_fallback): Likewise.
41087 (get_entry): Renamed to ...
41088 (grub_menu_get_entry): .. this and made it global.
41089 (get_timeout): Renamed to ...
41090 (grub_menu_get_timeout): ... this and made it global.
41091 (set_timeout): Renamed to ...
41092 (grub_menu_set_timeout): ... this and made it global.
41093 (grub_normal_terminal_menu_viewer): Renamed to ...
41094 (grub_normal_text_menu_viewer): ... this.
41095
41096 * normal/menu_text.c: New file. Extracted text-menu-specific code
41097 from normal/menu.c.
41098
41099 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41100 (normal_mod_SOURCES): Likewise.
41101
41102 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41103 (normal_mod_SOURCES): Likewise.
41104
41105 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41106 (normal_mod_SOURCES): Likewise.
41107
41108 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41109 (normal_mod_SOURCES): Likewise.
41110
41111 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41112 (normal_mod_SOURCES): Likewise.
41113
41114 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41115 (normal_mod_SOURCES): Likewise.
41116
41117 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41118 (normal_mod_SOURCES): Likewise.
41119
16ac430e 411202009-02-11 Robert Millan <rmh@aybabtu.com>
41121
41122 * util/grub.d/00_header.in: Update old reference to `font' command.
41123
06ff20fc 411242009-02-10 Felix Zielcke <fzielcke@z-51.de>
41125
41126 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41127
41128 Based on patch from Javier Martín.
41129
96da9407 411302009-02-09 Felix Zielcke <fzielcke@z-51.de>
41131
41132 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 41133 to avoid false positives with FAT.
96da9407 41134 (grub_fstest_SOURCES): Likewise.
41135 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41136 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41137 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41138 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41139 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41140 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41141
6dca6fe4 411422009-02-09 Felix Zielcke <fzielcke@z-51.de>
41143
06ff20fc 41144 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 41145 bpb.version_specific.fat12_or_fat16.fstype and
41146 bpb.version_specific.fat32.fstype.
41147
2550c62f 411482009-02-08 Robert Millan <rmh@aybabtu.com>
41149
be110b30 41150 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 41151
56978920 411522009-02-08 Robert Millan <rmh@aybabtu.com>
41153
41154 * Makefile.in (host_os, host_cpu): New variables.
41155 (target_os): Remove. Update all users.
41156
d64399b5 411572009-02-08 Marco Gerards <marco@gnu.org>
41158
41159 * Makefile.in (enable_grub_emu_usb): New variable.
41160 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41161 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41162 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41163 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41164 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41165 `usbtest.mod' and `usbms.mod'.
41166 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41167 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41168 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41169 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41170 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41171 variables.
41172
41173 * disk/usbms.c: New file.
41174
41175 * include/grub/usb.h: Likewise.
41176
41177 * include/grub/usbtrans.h: Likewise.
41178
41179 * include/grub/usbdesc.h: Likewise.
41180
41181 * bus/usb/usbtrans.c: Likewise.
41182
41183 * bus/usb/ohci.c: Likewise.
41184
41185 * bus/usb/uhci.c: Likewise.
41186
41187 * bus/usb/usbhub.c: Likewise.
41188
41189 * bus/usb/usb.c: Likewise.
41190
41191 * commands/usbtest.c: Likewise.
41192
41193 * util/usb.c: Likewise.
50fb7002 41194
d64399b5 41195 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41196
41197 * configure.ac: Test for libusb presence.
50fb7002 41198
d64399b5 41199 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41200
2b40d6bb 412012009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41202
41203 * kern/mm.c: Add more comments.
41204
73a4ce81 412052009-02-08 Robert Millan <rmh@aybabtu.com>
41206
41207 Patch from Javier Martín.
41208 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41209 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41210
f821ce59 412112009-02-08 Robert Millan <rmh@aybabtu.com>
41212
41213 * fs/cpio.c: Split tar functionality to ...
41214 * fs/tar.c: ... here (new file). Update all users.
41215
aebfc4b0 412162009-02-07 Robert Millan <rmh@aybabtu.com>
41217
41218 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41219 backward-incompatible features.
41220
41221 Based on patch from Javier Martín, with some adjustments.
41222
50fb7002 412232009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 41224
41225 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41226
0bb5115e 412272009-02-07 Robert Millan <rmh@aybabtu.com>
41228
41229 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41230 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41231 after the RAID stuff.
41232
38a0f8e7 412332009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41234
50fb7002 41235 Fixes problem when running vbetest command as reported by
38a0f8e7 41236 Vladimir Serbinenko <phcoder@gmail.com>.
41237
41238 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41239
3143cc1c 412402009-02-04 Felix Zielcke <fzielcke@z-51.de>
41241
41242 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41243 /dev/md/NpN style mdraid devices.
41244
9cba6fce 412452009-02-03 Felix Zielcke <fzielcke@z-51.de>
41246
41247 * util/unifont2pff.rb: Remove.
41248
e507a2c1 412492009-02-03 Felix Zielcke <fzielcke@z-51.de>
41250
41251 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41252 `#'.
41253
d2c2b4cd 412542009-02-03 Felix Zielcke <fzielcke@z-51.de>
41255
41256 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41257 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41258 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41259 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41260 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41261 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41262 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41263
b4315fb0 412642009-02-02 Christian Franke <franke@computer.org>
41265
41266 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41267
de3aa260 412682009-02-01 Felix Zielcke <fzielcke@z-51.de>
41269
7c3ff286 41270 * INSTALL: Note that we now require at least autoconf 2.59 and
41271 that LZO is optional.
de3aa260 41272
825a182b 412732009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41274
41275 Base on patch on bug #24154 created by Tomas Tintera
41276 <trosos@seznam.cz>.
41277
41278 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41279
a69ef770 412802009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41281
7c3ff286 41282 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 41283 <bero@arklinux.org>.
41284
41285 * normal/parser.y (script_init): Add missing semicolon.
41286
6fa42fa6 412872009-01-31 Colin D Bennett <colin@gibibit.com>
41288
7c3ff286 41289 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 41290 (free_menu_entry_classes): Added.
41291 (grub_normal_menu_addentry): Added class property handling.
41292 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41293 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41294
41295 * normal/menu_viewer.c: New file.
41296
41297 * normal/menu.c (run_menu_entry): Renamed to ...
41298 (grub_menu_execute_entry): ... this and made it as global.
41299 (grub_menu_run): Renamed to ...
41300 (show_text_menu): ... this and made it local.
41301 (show_text_menu): Adapt to new function names.
41302 (grub_normal_terminal_menu_viewer): New global variable.
41303
41304 * include/grub/menu.h: New file.
41305
41306 * include/grub/menu_viewer.h: New file.
41307
41308 * include/grub/normal.h: Added include to grub/menu.h.
41309 (grub_menu_entry): Moved to include/grub/menu.h.
41310 (grub_menu_entry_t): Likewise.
41311 (grub_menu): Likewise.
41312 (grub_menu_t): Likewise.
41313 (grub_normal_terminal_menu_viewer): Added.
41314 (grub_menu_execute_entry): Likewise.
41315 (grub_menu_run): Removed.
41316
41317 * DISTLIST: Added include/grub/menu.h.
41318 Added include/grub/menu_viewer.h.
41319 Added normal/menu_viewer.c.
41320
413212009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41322
41323 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41324 arglist for menutitle arguments.
41325
41326 * normal/main.c (grub_normal_menu_addentry): Likewise.
41327
41328 * normal/parser.y (menuentry): Likewise.
41329
41330 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41331
41332 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41333 (grub_script_create_cmdmenu): Likewise.
41334
41335 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41336
41337 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41338 changes.
41339
41340 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41341
41342 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41343
41344 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41345
41346 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41347
41348 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41349
41350 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41351
56192c23 413522009-01-30 Christian Franke <franke@computer.org>
41353
41354 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41355 in option help text.
41356
d72521b3 413572009-01-27 Pavel Roskin <proski@gnu.org>
41358
41359 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41360
994b5e84 413612009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41362
41363 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41364
41365 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41366
41367 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41368 unregister function.
41369
6a7eab2c 413702009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41371
41372 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41373
41374 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41375
41376 * util/grub-mkfont.c (usage): Fix typo.
41377
41378 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41379
1806b56e 413802009-01-26 Daniel Mierswa <impulze@impulze.org>
41381
3fb18f09 41382 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41383
336e1fb9 41384 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41385
1806b56e 41386 * kern/misc.c (grub_strcasecmp): New function.
41387 (grub_strcasecmp): Use grub_size_t instead of int for length.
41388 Fix return value.
41389 * include/grub/misc.h: Update function prototypes.
41390
580b2a0f 413912009-01-26 Robert Millan <rmh@aybabtu.com>
41392
41393 * configure.ac: Fix cross-compilation check.
ef257b36 41394
d31c24f1 413952009-01-22 Christian Franke <franke@computer.org>
41396
41397 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41398 (precision) digit string. Allow `.format2' without `format1' (width).
41399 Limit input chars for `%s' output to `format2' if specified. This is
41400 compatible with standard printf ().
41401
3138b44c 414022009-01-22 Christian Franke <franke@computer.org>
41403
41404 * disk/ata.c (grub_ata_wait_status): Replace by ...
41405 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41406 other status bits may be invalid while BSY is asserted.
41407 (grub_ata_check_ready): New function.
41408 (grub_ata_cmd): Removed.
41409 (grub_ata_wait_drq): New function.
41410 (grub_ata_strncpy): Remove inline.
41411 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41412 and error check now done by grub_ata_wait_drq ().
41413 (grub_ata_pio_write): Likewise.
41414 (grub_atapi_identify): Set DEV before check for !BSY. Use
41415 grub_ata_wait_drq () to wait for data.
41416 (grub_ata_device_initialize): Add status register check to
41417 detect missing SATA slave devices. Add debug messages.
41418 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41419 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41420 transfer loop by grub_ata_pio_write ().
41421 (grub_ata_identify): Set DEV before check for !BSY. Use
41422 grub_ata_wait_drq () to wait for data.
ef257b36 41423 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 41424 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41425 read/write in one loop. Fix invalid command on write. Fix incomplete
41426 command on (size % batch) == 0. Add missing error check after write of
41427 last block. Add debug messages.
41428 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41429
59a64ef6 414302009-01-19 Christian Franke <franke@computer.org>
41431
41432 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41433 (GRUB_ATAPI_IREASON_*): Likewise.
41434 (grub_ata_pio_write): Fix timeout error return.
41435 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41436 (grub_atapi_wait_drq): New function.
41437 (grub_atapi_packet): New parameter `size'.
41438 Use grub_atapi_wait_drq () and direct write instead of
41439 grub_ata_pio_write ().
41440 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41441 reads the number of bytes requested by the device for each DRQ
41442 assertion.
41443 (grub_atapi_write): Remove old implementation, return not
41444 implemented instead.
41445
1cfe20b3 414462009-01-19 Christian Franke <franke@computer.org>
41447
41448 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41449 of 512 to calculate data size.
41450 (grub_scsi_read12): Likewise.
41451 (grub_scsi_write10): Likewise.
41452 (grub_scsi_write12): Likewise.
41453 (grub_scsi_read): Adjust size according to blocksize.
41454 Add checks for invalid blocksize and unaligned transfer.
41455
bee5fe5d 414562009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41457
41458 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41459
ef257b36 41460 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 41461 width glyphs.
41462
3e643f8c 414632009-01-19 Robert Millan <rmh@aybabtu.com>
41464
41465 * config.guess: Update to latest version from config git.
41466 * config.sub: Likewise.
41467
4fa80998 414682009-01-17 Felix Zielcke <fzielcke@z-51.de>
41469
41470 * Makefile.in: Change font compilation to use new grub-mkfont instead
41471 of java version.
41472
41473 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41474 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41475 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41476 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41477 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41478 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41479 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41480 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41481 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41482
7086085b 414832009-01-16 Christian Franke <franke@computer.org>
41484
41485 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41486 (enum grub_ata_timeout_milliseconds): New enum.
41487 (grub_ata_wait_status): Add parameter milliseconds.
41488 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41489 recovery from timed-out commands.
41490 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41491 return grub_errno instead of REG_ERROR.
41492 (grub_ata_pio_write): Add parameter milliseconds.
41493 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41494 Pass milliseconds to grub_ata_wait_status () and
41495 grub_ata_pio_read ().
41496 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41497 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41498 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41499 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41500 It is not suitable for device detection, because DEV bit is ignored,
41501 the command may run too long, and not all devices set the signature
41502 properly.
41503 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41504 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41505 Fix device selection, DEV bit must be set first to address the registers
41506 of the correct device.
41507 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41508 grub_ata_pio_read/write ().
41509 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41510 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41511
4a412913 415122009-01-13 Carles Pina i Estany <carles@pina.cat>
41513
41514 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41515
7795c55e 415162009-01-13 Bean <bean123ch@gmail.com>
d913988c 41517
41518 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41519
7795c55e 415202009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 41521
41522 * Makefile.in: (enable_grub_mkfont): New variable.
41523 (freetype_cflags): Likewise.
41524 (freetype_libs): Likewise.
41525
41526 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41527 (grub_mkfont_SOURCES): New variable.
41528 (grub_mkfont_CFLAGS): Likewise.
41529 (grub_mkfont_LDFLAGS): Likewise.
41530
41531 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41532 library if `--enable-grub-mkfont' is requested.
41533 (enable_grub_mkfont): New variable.
41534 (freetype_cflags): Likewise.
41535 (freetype_libs): Likewise.
41536
41537 * util/grub-mkfont.c: New file.
41538
093af1fe 415392009-01-12 Christian Franke <franke@computer.org>
41540
41541 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41542 mode check. Fix setting of compat_use[].
41543
f36cc108 415442009-01-10 Robert Millan <rmh@aybabtu.com>
41545
41546 Update a few copyright years which we forgot to do in 2008 (only for
41547 files whose changes made in 2008 were copyright-significant)
41548
41549 * Makefile.in: Add 2008 to Copyright line.
41550 * disk/ieee1275/ofdisk.c: Likewise.
41551 * disk/efi/efidisk.c: Likewise.
41552 * kern/dl.c: Likewise.
41553 * kern/sparc64/ieee1275/init.c: Likewise.
41554 * kern/mm.c: Likewise.
41555 * kern/efi/mm.c: Likewise.
41556 * boot/i386/pc/boot.S: Likewise.
41557 * genfslist.sh: Likewise.
41558 * fs/iso9660.c: Likewise.
41559 * fs/hfs.c: Likewise.
41560 * fs/jfs.c: Likewise.
41561 * fs/minix.c: Likewise.
41562 * fs/ufs.c: Likewise.
41563 * gensymlist.sh.in: Likewise.
41564 * genkernsyms.sh.in: Likewise.
41565 * include/grub/misc.h: Likewise.
41566 * include/grub/types.h: Likewise.
41567 * include/grub/symbol.h: Likewise.
41568 * include/grub/elf.h: Likewise.
41569 * include/grub/kernel.h: Likewise.
41570 * include/grub/disk.h: Likewise.
41571 * include/grub/dl.h: Likewise.
41572 * include/grub/i386/linux.h: Likewise.
41573 * include/grub/i386/pc/biosdisk.h: Likewise.
41574 * include/grub/efi/api.h: Likewise.
41575 * include/grub/efi/pe32.h: Likewise.
41576 * include/grub/util/misc.h: Likewise.
41577 * normal/execute.c: Likewise.
41578 * normal/arg.c: Likewise.
41579 * normal/completion.c: Likewise.
41580 * normal/lexer.c: Likewise.
41581 * normal/parser.y: Likewise.
41582 * normal/misc.c: Likewise.
41583 * commands/i386/pc/vbeinfo.c: Likewise.
41584 * commands/hexdump.c: Likewise.
41585 * commands/terminal.c: Likewise.
41586 * commands/ls.c: Likewise.
41587 * commands/help.c: Likewise.
41588 * partmap/pc.c: Likewise.
41589 * loader/efi/chainloader.c: Likewise.
41590 * loader/multiboot_loader.c: Likewise.
41591 * loader/i386/pc/multiboot2.c: Likewise.
41592 * term/efi/console.c: Likewise.
41593 * term/i386/pc/serial.c: Likewise.
41594 * util/lvm.c: Likewise.
41595 * util/console.c: Likewise.
41596 * util/i386/efi/grub-mkimage.c: Likewise.
41597 * util/raid.c: Likewise.
41598
7f02114b 415992009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41600
41601 * commands/videotest.c: Removed include to grub/machine/memory.h.
41602
41603 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41604 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41605 (video_mod_SOURCES): Removed.
41606 (video_mod_CFLAGS): Likewise.
41607 (video_mod_LDFLAGS): Likewise.
41608 (gfxterm_mod_SOURCES): Likewise.
41609 (gfxterm_mod_CFLAGS): Likewise.
41610 (gfxterm_mod_LDFLAGS): Likewise.
41611 (videotest_mod_SOURCES): Likewise.
41612 (videotest_mod_CFLAGS): Likewise.
41613 (videotest_mod_LDFLAGS): Likewise.
41614 (bitmap_mod_SOURCES): Likewise.
41615 (bitmap_mod_CFLAGS): Likewise.
41616 (bitmap_mod_LDFLAGS): Likewise.
41617 (tga_mod_SOURCES): Likewise.
41618 (tga_mod_CFLAGS): Likewise.
41619 (tga_mod_LDFLAGS): Likewise.
41620 (jpeg_mod_SOURCES): Likewise.
41621 (jpeg_mod_CFLAGS): Likewise.
41622 (jpeg_mod_LDFLAGS): Likewise.
41623 (png_mod_SOURCES): Likewise.
41624 (png_mod_CFLAGS): Likewise.
41625 (png_mod_LDFLAGS): Likewise.
41626
41627 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41628 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41629 (video_mod_SOURCES): Added.
41630 (video_mod_CFLAGS): Likewise.
41631 (video_mod_LDFLAGS): Likewise.
41632 (videotest_mod_SOURCES): Likewise.
41633 (videotest_mod_CFLAGS): Likewise.
41634 (videotest_mod_LDFLAGS): Likewise.
41635 (bitmap_mod_SOURCES): Likewise.
41636 (bitmap_mod_CFLAGS): Likewise.
41637 (bitmap_mod_LDFLAGS): Likewise.
41638 (tga_mod_SOURCES): Likewise.
41639 (tga_mod_CFLAGS): Likewise.
41640 (tga_mod_LDFLAGS): Likewise.
41641 (jpeg_mod_SOURCES): Likewise.
41642 (jpeg_mod_CFLAGS): Likewise.
41643 (jpeg_mod_LDFLAGS): Likewise.
41644 (png_mod_SOURCES): Likewise.
41645 (png_mod_CFLAGS): Likewise.
41646 (png_mod_LDFLAGS): Likewise.
41647 (gfxterm_mod_SOURCES): Likewise.
41648 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 41649 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 41650
41651 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41652 grub/machine/console.h.
41653
644fff97 416542009-01-04 Jerone Young <jerone@gmail.com>
41655
41656 Make on screen instructions clearer
41657
41658 Based on patch created by Jidanni <jidanni@jidanni.org>
41659
41660 * normal/menu.c: print clearer instructions on the screen
41661
1e901a75 416622009-01-02 Colin D Bennett <colin@gibibit.com>
41663
41664 New font engine.
34c44600 41665
1e901a75 41666 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41667 build system and fixed gfxterm.c to work with different sized fonts.
41668
41669 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 41670
1e901a75 41671 * configure: Re-generated.
34c44600 41672
1e901a75 41673 * DISTLIST: Removed font/manager.c.
41674 Added font/font.c.
41675 Added font/font_cmd.c.
34c44600 41676
1e901a75 41677 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41678 compilation.
34c44600 41679
1e901a75 41680 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 41681
41682 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 41683
41684 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 41685
1e901a75 41686 * normal/menu.c: Likewise.
34c44600 41687
1e901a75 41688 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41689 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 41690
1e901a75 41691 * include/grub/font.h: Replaced with new file.
34c44600 41692
1e901a75 41693 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41694 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41695 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41696 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41697 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 41698 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 41699 fg_red, fg_green, fg_blue, fg_alpha.
41700 (grub_video_adapter): Removed blit_glyph.
34c44600 41701 (grub_video_blit_glyph): Removed.
41702
1e901a75 41703 * font/manager.c: Removed file.
34c44600 41704
41705 * font/font.c: New file.
41706
1e901a75 41707 * font/font_cmd.c: Likewise.
34c44600 41708
1e901a75 41709 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 41710
1e901a75 41711 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41712 (grub_video_vbe_map_rgba): Likewise.
41713 (grub_video_vbe_unmap_color_int): Likewise.
41714 (grub_video_vbe_blit_glyph): Removed.
41715 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 41716
1e901a75 41717 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41718 (get_pixel): Likewise.
34c44600 41719 (set_pixel): Likewise.
41720
1e901a75 41721 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 41722
1e901a75 41723 * term/gfxterm.c: Adapted to new font engine.
34c44600 41724
1e901a75 41725 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 41726
1e901a75 41727 * term/i386/pc/vga.c: Likewise.
34c44600 41728
1e901a75 41729 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 41730
1e901a75 41731 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 41732
1e901a75 41733 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 41734
1e901a75 41735 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 41736
1e901a75 41737 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 41738
1e901a75 41739 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 41740
1e901a75 41741 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 41742
1e901a75 41743 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 41744
1e901a75 41745 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41746
41747 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 41748
1e901a75 41749 * util/grub-mkconfig_lib.in: Changed font extension.
41750
278922e8 417512008-12-28 Felix Zielcke <fzielcke@z-51.de>
41752
41753 * util/getroot.c (grub_util_get_grub_dev): Add support for
41754 /dev/md/dNNpNN style partitionable mdraid devices.
41755
3ced05cf 417562008-12-12 Alex Smith <alex@alex-smith.me.uk>
41757
41758 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41759 at a time limit of the PXE TFTP API correctly.
41760 (grub_pxefs_close): Likewise.
41761
7fd0ee30 417622008-11-29 Robert Millan <rmh@aybabtu.com>
41763
34c44600 41764 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 41765 grub_ata_device_initialize() calls.
41766
34c44600 417672008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 41768
41769 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41770 iteration failed.
41771 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41772
89313780 417732008-11-28 Robert Millan <rmh@aybabtu.com>
41774
41775 Fix build on powerpc-ieee1275. Based on patch created by
41776 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41777 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41778 `kern/ieee1275/mmap.c'.
41779 * include/grub/powerpc/ieee1275/memory.h: New file.
41780
15257703 41781 Provide grub-install on coreboot.
41782 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41783 (grub_install_SOURCES): New variable.
41784 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41785 usable on coreboot.
41786
9fc5388a 417872008-11-25 Felix Zielcke <fzielcke@z-51.de>
41788
41789 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41790 to `grub_term_input_t'.
41791 (grub_term_get_current_output): Change return type to
41792 `grub_term_output_t'.
41793
bc3a2f31 417942008-11-22 Robert Millan <rmh@aybabtu.com>
41795
34c44600 41796 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 41797 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41798 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41799 grub_vga_text_cls().
41800
80fc88f2 41801 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 41802 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 41803
cbf36fd3 41804 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41805 to 0x200000 (avoids trouble with some OFW implementations, and matches
41806 with the one in Yaboot).
41807 Reported by Manoel Abranches
41808
73e8e268 418092008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 41810
41811 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41812 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41813
73e8e268 41814 * util/grub-mkconfig_lib.in (grub_warn): New function.
41815 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41816 warnings, to obtain consistent formatting.
41817 * util/grub.d/00_header.in: Likewise.
41818 * util/update-grub_lib.in: Likewise.
41819
e94045a1 41820 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 41821 Move comment text to `#error' stanza.
e94045a1 41822
79d29fd7 41823 Harmonize ieee1275's grub_available_iterate() with the generic
41824 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41825 build problem on i386-ieee1275):
41826 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41827 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41828 parameter `type'. Update all users of this function.
41829 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41830 `kern/ieee1275/mmap.c'.
41831 * kern/ieee1275/init.c
41832 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41833 with ...
41834 (grub_machine_mmap_iterate): ... this.
41835 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41836 return type to `grub_err_t'. Update all implementations of this
41837 function prototype.
41838 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41839 Likewise.
41840
60d6b16e 41841 Add `lsmmap' command (lists firmware-provided memory map):
41842 * commands/lsmmap.c: New file.
41843 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41844 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41845 variables.
41846 * conf/powerpc-ieee1275.rmk: Likewise.
41847 * conf/i386-coreboot.rmk: Likewise.
41848 * conf/i386-ieee1275.rmk: Likewise.
41849
ebaaf49b 418502008-11-19 Robert Millan <rmh@aybabtu.com>
41851
41852 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 41853 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41854 constraints to initrd allocation (based on code from
41855 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41856 for Linux to find it.
ebaaf49b 41857
dfab719f 418582008-11-14 Robert Millan <rmh@aybabtu.com>
41859
41860 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41861 order to cope with duplicate slashes.
41862
10fc3eb9 418632008-11-14 Robert Millan <rmh@aybabtu.com>
41864
41865 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41866 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41867 don't want to mess with lower memory, because it is used in the Linux
41868 loader.
41869
41870 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 41871 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 41872 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41873 is in our heap (probably as a result of it being corrupted during
2f2a3442 41874 decompression). Add #error instance with comment to explain why this
41875 loader isn't currently usable on PC/BIOS.
10fc3eb9 41876
e2e07847 418772008-11-14 Robert Millan <rmh@aybabtu.com>
41878
41879 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 41880 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 41881
fe8e8d69 418822008-11-12 Robert Millan <rmh@aybabtu.com>
41883
41884 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41885
41886 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41887 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41888 from here ...
41889 * include/grub/i386/pc/memory.h: ... to here.
41890
976b07d0 418912008-11-12 Robert Millan <rmh@aybabtu.com>
41892
41893 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41894 split).
41895
41896 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41897 (grub_console_cur_color, grub_console_real_putchar)
41898 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41899 (grub_console_setcolorstate, grub_console_setcolor)
41900 (grub_console_getcolor): Move from here ...
41901 * include/grub/i386/vga_common.h: ... to here (new file).
41902
41903 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41904 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41905 `<grub/i386/io.h>'.
41906 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41907 `<grub/i386/vga_common.h>'.
41908
76679cd3 419092008-11-12 Robert Millan <rmh@aybabtu.com>
41910
41911 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41912 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41913 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41914 variables.
41915 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41916 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41917
41918 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41919 grub_console_init() with call to grub_vga_text_init().
41920 (grub_machine_fini): Replace call to
41921 grub_console_fini() with call to grub_vga_text_fini() and
41922 grub_at_keyboard_fini().
41923
41924 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41925 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41926 (grub_console_setcolorstate, grub_console_setcolor)
41927 (grub_console_getcolor): New function prototypes.
41928
41929 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41930 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41931 (grub_vga_text_setcursor): Static-ize.
41932 (grub_vga_text_term): New structure.
41933 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41934
41935 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41936 (grub_console_cur_color, grub_console_standard_color)
41937 (grub_console_normal_color, grub_console_highlight_color)
41938 (map_char, grub_console_putchar, grub_console_getcharwidth)
41939 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41940 (grub_console_getcolor): Move from here ...
41941 * term/i386/vga_common.c: ... to here (same function names).
41942
95b841d3 419432008-11-12 Robert Millan <rmh@aybabtu.com>
41944
41945 Use newly-added Multiboot support in coreboot.
41946
41947 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41948 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41949
41950 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41951 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41952 (codestart): Store the MBI in `startup_multiboot_info' when we're
41953 being loaded using Multiboot.
41954
41955 * kern/i386/coreboot/init.c (grub_machine_init): Move
41956 grub_at_keyboard_init() call to beginning of function (useful for
41957 debugging). Call grub_machine_mmap_init() before attempting to use
41958 grub_machine_mmap_iterate().
41959 (grub_lower_mem, grub_upper_mem): Move from here ...
41960 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41961 here (new file).
41962
41963 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41964 function prototype.
41965
761ca975 419662008-11-12 Robert Millan <rmh@aybabtu.com>
41967
41968 Fix a regression introduced by the at_keyboard.mod split. Because
41969 some terminals are default on some platforms and non-default on
41970 others, the first terminal being registered determines which is
41971 going to be default.
41972
41973 * kern/term.c (grub_term_register_input): If this is the first
41974 terminal being registered, set it as the current one.
41975 (grub_term_register_output): Likewise.
41976
41977 * term/efi/console.c (grub_console_init): Do not call
41978 grub_term_set_current_output() or grub_term_set_current_input().
41979 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41980 * term/i386/pc/console.c (grub_console_init): Likewise.
41981 (grub_console_fini): Do not call grub_term_set_current_input()
41982 (but leave grub_term_set_current_output() to restore text mode).
41983
6c529df7 419842008-11-10 Robert Millan <rmh@aybabtu.com>
41985
41986 * util/grub.d/00_header.in: Add backward compatibility check for
41987 versions of terminal.mod that don't understand `terminal_input' or
41988 `terminal_output'.
41989
132e4113 419902008-11-09 Robert Millan <rmh@aybabtu.com>
41991
41992 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41993 `terminal_input' / `terminal_output', not `terminal'.
41994
ac293d50 419952008-11-08 Robert Millan <rmh@aybabtu.com>
41996
41997 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 41998 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 41999
0025933a 420002008-11-08 Robert Millan <rmh@aybabtu.com>
42001
42002 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 42003 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 42004 members. Update all users.
42005 * util/console.c (grub_ncurses_term): Split in ...
42006 (grub_ncurses_term_input): ... this, and ...
42007 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 42008 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 42009
37c86336 420102008-11-08 Robert Millan <rmh@aybabtu.com>
42011
42012 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
42013 (PKGDATA): Add $(pkgdata_SRCDIR).
42014 (pkglib_BUILDDIR): New variable.
42015 (pkgdata_SRCDIR): New variable.
42016 (build_env.mk): New target.
42017 (include_DATA): New variable.
42018 (install-local): Install $(include_DATA) files in $(includedir).
42019
b6c15a2d 420202008-11-07 Pavel Roskin <proski@gnu.org>
42021
d99d46f1 42022 * gendistlist.sh: Use C locale for sorting to ensure consistent
42023 output on all systems.
42024
b6c15a2d 42025 * util/grub.d/00_header.in: Remove incorrect space before
42026 "serial".
42027
c32ee8c9 420282008-11-07 Robert Millan <rmh@aybabtu.com>
42029
42030 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
42031 per specification.
42032 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
42033 * loader/multiboot_loader.c (find_multi_boot2_header): New function
42034 (based on find_multi_boot1_header).
42035 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
42036 using find_multi_boot2_header(), and abort if neither Multiboot or
42037 Multiboot headers were found.
42038
651c29b7 420392008-11-07 Robert Millan <rmh@aybabtu.com>
42040
42041 Modularize at_keyboard.mod:
42042
42043 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
42044 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
42045 (at_keyboard_mod_LDFLAGS): New variables.
42046
42047 Actual terminal split:
42048
42049 * include/grub/term.h (struct grub_term): Split in ...
42050 (struct grub_term_input): ... this, and ...
42051 (struct grub_term_output): ... this. Update all users.
42052 (grub_term_set_current): Split in ...
42053 (grub_term_set_current_input): ... this, and ...
42054 (grub_term_set_current_output): ... this.
42055 (grub_term_get_current): Split in ...
42056 (grub_term_get_current_input): ... this, and ...
42057 (grub_term_get_current_output): ... this.
42058 (grub_term_register): Split in ...
42059 (grub_term_register_input): ... this, and ...
42060 (grub_term_register_output): ... this.
42061 (grub_term_unregister): Split in ...
42062 (grub_term_unregister_input): ... this, and ...
42063 (grub_term_unregister_output): ... this.
42064 (grub_term_iterate): Split in ...
42065 (grub_term_iterate_input): ... this, and ...
42066 (grub_term_iterate_output): ... this.
42067
42068 * kern/term.c (grub_term_list): Split in ...
42069 (grub_term_list_input): ... this, and ...
42070 (grub_term_list_output): ... this. Update all users.
42071 (grub_cur_term): Split in ...
42072 (grub_cur_term_input): ... this, and ...
42073 (grub_cur_term_output): ... this. Update all users.
42074 (grub_term_set_current): Split in ...
42075 (grub_term_set_current_input): ... this, and ...
42076 (grub_term_set_current_output): ... this.
42077 (grub_term_get_current): Split in ...
42078 (grub_term_get_current_input): ... this, and ...
42079 (grub_term_get_current_output): ... this.
42080 (grub_term_register): Split in ...
42081 (grub_term_register_input): ... this, and ...
42082 (grub_term_register_output): ... this.
42083 (grub_term_unregister): Split in ...
42084 (grub_term_unregister_input): ... this, and ...
42085 (grub_term_unregister_output): ... this.
42086 (grub_term_iterate): Split in ...
42087 (grub_term_iterate_input): ... this, and ...
42088 (grub_term_iterate_output): ... this.
42089
42090 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42091 a check for input and one for output (and only attempt to get keys
42092 from user when input works).
42093
42094 * util/grub-probe.c (grub_term_get_current): Split in ...
42095 (grub_term_get_current_input): ... this, and ...
42096 (grub_term_get_current_output): ... this.
42097 * util/grub-fstest.c: Likewise.
42098 * util/i386/pc/grub-setup.c: Likewise.
42099 * util/grub-editenv.c: Likewise.
42100
42101 Portability adjustments:
42102
42103 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42104 `term/i386/pc/at_keyboard.c'.
42105 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42106 grub_keyboard_controller_init() (now handled by terminal .init).
42107 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42108 grub_at_keyboard_init().
42109 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42110 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42111 at_keyboard.mod via input terminal interface).
42112 * include/grub/i386/coreboot/console.h: Convert into a stub for
42113 `<grub/i386/pc/console.h>'.
42114
42115 Migrate full terminals to new API:
42116
42117 * term/efi/console.c (grub_console_term): Split into ...
42118 (grub_console_term_input): ... this, and ...
42119 (grub_console_term_output): ... this. Update all users.
42120 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42121 (grub_ofconsole_init): Split into ...
42122 (grub_ofconsole_init_input): ... this, and ...
42123 (grub_ofconsole_init_output): ... this.
42124 (grub_ofconsole_term): Split into ...
42125 (grub_ofconsole_term_input): ... this, and ...
42126 (grub_ofconsole_term_output): ... this. Update all users.
42127 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42128 (grub_serial_term_input): ... this, and ...
42129 (grub_serial_term_output): ... this. Update all users.
42130 * term/i386/pc/console.c (grub_console_term): Split into ...
42131 (grub_console_term_input): ... this, and ...
42132 (grub_console_term_output): ... this. Update all users.
42133 (grub_console_term_input): Only enable it on PC/BIOS platform.
42134 (grub_console_init): Remove grub_keyboard_controller_init() call.
42135
42136 Migrate input terminals to new API:
42137
42138 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42139 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42140 i386-specific anyway).
42141 (grub_console_checkkey): Rename to ...
42142 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42143 users.
42144 (grub_keyboard_controller_orig): New variable.
42145 (grub_console_getkey): Rename to ...
42146 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42147 users.
42148 (grub_keyboard_controller_init): Static-ize. Save original
42149 controller value so that it can be restored ...
42150 (grub_keyboard_controller_fini): ... here (new function).
42151 (grub_at_keyboard_term): New structure.
42152 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42153 functions.
42154
42155 Migrate output terminals to new API:
42156
42157 * term/i386/pc/vga.c (grub_vga_term): Change type to
42158 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42159 members. Update all users.
42160 * term/gfxterm.c (grub_video_term): Change type to
42161 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42162 members. Update all users.
42163 * include/grub/i386/pc/console.h (grub_console_checkkey)
42164 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42165 etc).
42166
42167 Migrate `terminal' command and userland tools to new API:
42168
42169 * commands/terminal.c (grub_cmd_terminal): Split into ...
42170 (grub_cmd_terminal_input): ... this, and ...
42171 (grub_cmd_terminal_output): ... this.
42172 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42173 `terminal_input' and `terminal_output'.
42174 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42175 `terminal_input' / `terminal_output' API.
42176 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42177 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42178 provided ${GRUB_TERMINAL}, convert it).
42179
96e5d876 421802008-11-04 Robert Millan <rmh@aybabtu.com>
42181
42182 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42183 for FreeBSD.
42184 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42185
556f3775 421862008-11-03 Bean <bean123ch@gmail.com>
42187
42188 * kern/elf.c (grub_elf32_load): Revert to previous code.
42189 (grub_elf64_load): Likewise.
42190
42191 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42192
926b9823 421932008-11-01 Robert Millan <rmh@aybabtu.com>
42194
42195 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42196 (TARGET_CPPFLAGS): Likewise.
42197 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42198
1432e958 421992008-11-01 Carles Pina i Estany <carles@pina.cat>
42200
42201 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42202
dba3f844 422032008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 42204
42205 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42206 addition of objects until the code is not going to be able to fail.
42207
dba3f844 422082008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 42209
42210 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42211 (add a missing NULL check, and correct them by moving the pointer
42212 operations after the actual check).
42213
7ab28c21 422142008-10-29 Robert Millan <rmh@aybabtu.com>
42215
42216 * util/i386/pc/grub-install.in: Handle empty string as output from
42217 make_system_path_relative_to_its_root().
42218
1b7748eb 422192008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42220
42221 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42222 circular metadata worst case scenario. If the metadata is circular
42223 then copy the wrap in place.
42224 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42225 project lib/format_text/layout.h
42226 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42227
c9618ab2 422282008-10-03 Felix Zielcke <fzielcke@z-51.de>
42229
7a36edca 42230 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 42231
bf981c62 422322008-10-03 Felix Zielcke <fzielcke@z-51.de>
42233
42234 * util/update-grub_lib.in: Mention filename in warning message.
42235
6d994591 422362008-09-29 Felix Zielcke <fzielcke@z-51.de>
42237
42238 * NEWS: Update for rename of update-grub to grub-mkconfig.
42239
18ade780 422402008-09-29 Felix Zielcke <fzielcke@z-51.de>
42241
42242 * util/update-grub_lib.in: Copy to ...
42243 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 42244 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 42245 * util/update-grub.in: Rename to ...
42246 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42247 option. Add `--output' option to allow users to specify the generated
42248 configuration file. Default to stdout.
42249 (update_grub_dir): Rename to ...
42250 (grub_mkconfig_dir): ... this.
42251 (grub_cfg): Default to an empty string.
42252 * conf/common.rmk (update-grub): Rename to ...
42253 (grub-mkconfig): ... this.
42254 (update-grub_lib): Copy to ...
42255 (grub-mkconfig_lib): ... this.
42256 (update-grub_SCRIPTS): Copy to ...
42257 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42258 (update-grub_DATA): Rename to ...
42259 (grub-mkconfig_DATA): ... this.
42260
556ce6ac 422612008-09-28 Robert Millan <rmh@aybabtu.com>
42262
42263 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42264 to `modified'. Add the real `created' field.
42265 (grub_iso9660_uuid): Use `modified' rather than `created' for
42266 constructing the UUID.
42267
422682008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 42269
42270 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42271 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42272
92274e85 422732008-09-28 Bean <bean123ch@gmail.com>
42274
42275 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42276 Thanks to Christian Franke for finding this bug.
42277
add6f17a 422782008-09-25 Robert Millan <rmh@aybabtu.com>
42279
42280 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42281 instances of grub_util_get_disk_name() (see previous commit).
42282
d2a367b8 422832008-09-25 Robert Millan <rmh@aybabtu.com>
42284
42285 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42286 `util/i386/get_disk_name.c'.
42287 * conf/i386-efi.rmk: Likewise.
42288 * conf/x86_64-efi.rmk: Likewise.
42289 * conf/i386-coreboot.rmk: Likewise.
42290 * conf/i386-ieee1275.rmk: Likewise.
42291 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42292 `util/ieee1275/get_disk_name.c'.
42293 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42294 * util/ieee1275/get_disk_name.c: Remove file.
42295 * util/i386/get_disk_name.c: Remove file.
42296 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42297 "hd%d" for device.map entries, rather than using
42298 grub_util_get_disk_name().
42299
81a06771 423002008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 42301
42302 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42303 warning.
42304 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42305
5a004279 423062008-09-24 Carles Pina i Estany <carles@pina.cat>
42307
42308 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42309 Changed to 0x5100.
42310 (GRUB_TERM_PPAGE): Changed to 0x4900.
42311
397093d3 423122008-09-24 Robert Millan <rmh@aybabtu.com>
42313
42314 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42315 macros (they were i386-pc specific).
42316 * include/grub/sparc64/ieee1275/console.h: Likewise.
42317 * include/grub/efi/console.h: Likewise.
42318
a91b6c7c 423192008-09-22 Bean <bean123ch@gmail.com>
42320
42321 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42322 resident and in attribute list.
42323
42324 * include/grub/ntfs.h (BMP_LEN): Removed.
42325
c40fd116 423262008-09-22 Bean <bean123ch@gmail.com>
42327
81a06771 42328 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 42329 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42330
42331 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42332 error occurs, as grub_disk_open will call grub_disk_close, which will
42333 call p->close (scsi).
42334
81a06771 423352008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 42336
42337 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42338 (AC_PREREQ): Bumped to 2.59.
42339 (AC_TRY_COMPILE): Replace obsolete macro with ...
42340 (AC_COMPILE_IFELSE): ... this.
42341 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42342 (AC_LINK_IFELSE): ... this.
42343
5dc43410 423442008-09-21 Felix Zielcke <fzielcke@z-51.de>
42345
42346 * autogen.sh: Add a call to `gendistlist.sh'.
42347
9035dce4 423482008-09-19 Christian Franke <franke@computer.org>
42349
42350 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42351 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42352 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42353 Export __enable_execute_stack() to modules.
42354 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42355 New function.
42356
7fd75377 423572008-09-09 Felix Zielcke <fzielcke@z-51.de>
42358
040030b3 42359 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42360 Sort the list.
42361
423622008-09-09 Felix Zielcke <fzielcke@z-51.de>
42363
42364 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 42365 #include <grub/util/hostdisk.h>.
42366
89d5ffcf 423672008-09-08 Robert Millan <rmh@aybabtu.com>
42368
42369 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42370 segments when their filesz is zero (grub_file_read() interprets
81a06771 42371 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 42372 Use `lowest_segment' rather than 0 for calculating the current
42373 segment load address.
42374
40da438f 423752008-09-08 Robert Millan <rmh@aybabtu.com>
42376
42377 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42378 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42379 clobbered useful information.
42380
ddbf5556 423812008-09-08 Robert Millan <rmh@aybabtu.com>
42382
42383 * include/grub/util/biosdisk.h: Move to ...
42384 * include/grub/util/hostdisk.h: ... here. Update all users.
42385 * util/biosdisk.c: Move to ...
42386 * util/hostdisk.c: ... here. Update all users.
42387
783d0f48 423882008-09-07 Robert Millan <rmh@aybabtu.com>
42389
42390 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42391 variables.
42392 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42393 and length can be stored directly in the `mbi->mmap_addr' and
42394 `mbi->mmap_length' struct fields.
42395
548e2ea5 423962008-09-07 Robert Millan <rmh@aybabtu.com>
42397
42398 * conf/i386.rmk: New file. Provides declaration for building
42399 `cpuid.mod'.
42400 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42401 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42402 variables.
42403 Include `conf/i386.mk'.
42404 * conf/i386-efi.rmk: Likewise.
42405 * conf/x86_64-efi.rmk: Likewise.
42406 * conf/i386-coreboot.rmk: Likewise.
42407 * conf/i386-ieee1275.rmk: Likewise.
42408
0ea85a37 424092008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42410
42411 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42412 Adds optimization support for BGR based modes.
42413
42414 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42415 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42416 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42417 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42418 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42419 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42420 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42421 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42422 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42423 (grub_video_i386_vbeblit_index_index): Likewise.
42424 (grub_video_i386_vbeblit_replace_directN): Added.
42425 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42426 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42427 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42428 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42429 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42430 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 42431 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 42432 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42433 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42434 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42435 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42436 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42437 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42438
42439 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42440 (grub_video_i386_vbefill_R8G8B8): Likewise.
42441 (grub_video_i386_vbefill_index): Likewise.
42442 (grub_video_i386_vbefill_direct32): Added.
42443 (grub_video_i386_vbefill_direct24): Likewise.
42444 (grub_video_i386_vbefill_direct16): Likewise.
42445 (grub_video_i386_vbefill_direct8): Likewise.
42446
81a06771 42447 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 42448 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42449 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42450 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42451 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42452 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 42453
0ea85a37 42454 * video/video.c (grub_video_get_blit_format): Updated to use new
42455 blit formats. Added handling for 16 bit color modes.
81a06771 42456
42457 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 42458 fillers.
42459 (common_blitter): Updated to use new blitters.
42460
42461 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42462 Removed.
42463 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42464 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42465 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42466 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42467 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42468 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42469 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42470 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42471 (grub_video_i386_vbeblit_index_index): Likewise.
42472 (grub_video_i386_vbeblit_replace_directN): Added.
42473 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42474 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42475 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42476 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42477 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42478 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42479 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42480 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42481 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42482 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42483 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42484 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42485 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 42486
0ea85a37 42487 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42488 (grub_video_i386_vbefill_R8G8B8): Likewise.
42489 (grub_video_i386_vbefill_index): Likewise.
42490 (grub_video_i386_vbefill_direct32): Added.
42491 (grub_video_i386_vbefill_direct24): Likewise.
42492 (grub_video_i386_vbefill_direct16): Likewise.
42493 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 42494
0ea85a37 42495 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42496 types.
81a06771 42497
0ea85a37 42498 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42499 types.
81a06771 42500
0ea85a37 42501 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42502 blitter types.
81a06771 42503
0ea85a37 42504 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42505 types.
42506
e8a83df6 425072008-09-06 Felix Zielcke <fzielcke@z-51.de>
42508
42509 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42510 RAID level 1.
42511
6bcd8ee5 425122008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 42513
6bcd8ee5 42514 * fs/iso9660.c (grub_iso9660_date): New structure.
42515 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42516 (grub_iso9660_uuid): New function.
c375ae58 42517
59261157 425182008-09-05 Bean <bean123ch@gmail.com>
42519
42520 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42521
42522 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42523 insensitive bit for names in Win32 and Win32 & DOS namespace.
42524
42525 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42526
42527 * include/grub/types.h (LONG_MAX): Likewise.
42528
58b6645a 425292008-09-04 Felix Zielcke <fzielcke@z-51.de>
42530
4ee55921 42531 * util/getroot.c: Include <config.h>.
42532 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42533 add support for /dev/md/N devices and handle LVM double dash escaping.
42534
425352008-09-04 Felix Zielcke <fzielcke@z-51.de>
42536
42537 * config.guess: Update to latest version from config git.
42538 * config.sub: Likewise.
58b6645a 42539
9124f65d 425402008-09-03 Robert Millan <rmh@aybabtu.com>
42541
42542 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42543 `disk->total_sectors'.
42544
81a06771 425452008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 42546
42547 * include/grub/normal.h: Fixed incorrect comment for
42548 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42549
81a06771 425502008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 42551
42552 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42553 values with defines.
42554
42555 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42556 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42557 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42558 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42559 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42560 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42561 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42562 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42563 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42564 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42565 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42566 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42567 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42568 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42569 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42570 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42571 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42572 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42573 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42574
93d5cbf8 425752008-08-31 Robert Millan <rmh@aybabtu.com>
42576
42577 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42578 declaration.
42579 (grub_multiboot): Fix a few warnings.
42580
21751d50 425812008-08-31 Robert Millan <rmh@aybabtu.com>
42582
42583 * loader/i386/pc/multiboot.c: Update comment not to say that
42584 boot_device support is unimplemented.
42585
e27a75c5 425862008-08-31 Robert Millan <rmh@aybabtu.com>
42587
42588 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42589 or memory map support are unimplemented.
42590
81a06771 425912008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 42592
42593 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42594
81a06771 425952008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 42596
42597 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42598 total video memory in 'vbeinfo' output; show color format details for
42599 each video mode.
42600
7c5d8d95 426012008-08-30 Pavel Roskin <proski@gnu.org>
42602
42603 * util/genmoddep.c: Remove for real this time.
42604 * DISTLIST: Remove util/genmoddep.c.
42605
4cebd25a 426062008-08-30 Robert Millan <rmh@aybabtu.com>
42607
42608 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42609 as required by Multiboot spec (it was already 4-byte aligned, but
42610 only by chance).
42611
b497a269 426122008-08-29 Pavel Roskin <proski@gnu.org>
42613
e3925185 42614 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42615 * kern/powerpc/ieee1275/startup.S: ... this.
42616 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42617 * DISTLIST: Likewise.
42618
b497a269 42619 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42620 grub/cpu/kernel.h. Add start label for consistency with other
42621 platforms. Add grub_prefix immediately after start. Add jump
42622 to the code after grub_prefix.
42623 * include/grub/powerpc/kernel.h: Provide valid values for
42624 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42625
6e5a42fe 426262008-08-29 Bean <bean123ch@gmail.com>
42627
42628 * configure.ac: Change host_os to cygwin for mingw.
42629 (asprintf): New check for function.
42630
42631 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42632 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42633
42634 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 42635 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 42636 sync, sleep and grub_util_get_disk_size for mingw.
42637
42638 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42639 to get size in mingw.
42640 (open_device): Use flag O_BINARY if it's defined.
42641 (find_root_device): Add dummy code for mingw.
42642
42643 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42644 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42645 (get_scsi_disk_name): Return 0 for mingw.
42646
42647 * util/hostfs.c: #include <grub/util/misc.h>.
42648 (grub_hostfs_open): Use "rb" flag to open file, use
42649 grub_util_get_disk_size to get disk size for mingw.
42650
42651 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42652 (asprintf): New function if HAVE_ASPRINTF is not set.
42653 (sync): New function for mingw.
42654 (sleep): Likewise.
42655 (grub_util_get_disk_size): Likewise.
42656
ab3f2673 426572008-08-28 Pavel Roskin <proski@gnu.org>
42658
42659 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42660 kern/time.c.
42661
1c282483 426622008-08-28 Robert Millan <rmh@aybabtu.com>
42663
42664 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42665
678e849c 426662008-08-28 Robert Millan <rmh@aybabtu.com>
42667
42668 Change find_grub_drive() syntax so it doesn't prevent it from
42669 detecting NULL names as errors.
42670
42671 * util/biosdisk.c (find_grub_drive): Move free slot search code
42672 from here ...
42673 (find_free_slot): ... to here.
42674 (read_device_map): Use find_free_slot() to search for free slots.
42675
965c75ca 426762008-08-27 Marco Gerards <marco@gnu.org>
42677
42678 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42679 (scsi_mod_SOURCES): New variable.
42680 (scsi_mod_CFLAGS): Likewise
42681 (scsi_mod_LDFLAGS): Likewise.
42682
42683 * disk/scsi.c: New file.
42684
42685 * include/grub/scsi.h: Likewise.
42686
42687 * include/grub/scsicmd.h: Likewise.
42688
42689 * disk/ata.c: Include <grub/scsi.h>.
42690 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42691 instead.
42692 (grub_ata_iterate): Skip ATAPI devices.
42693 (grub_ata_open): Only handle ATAPI devices.
42694 (struct grub_atapi_read): Removed.
42695 (grub_atapi_readsector): Likewise.
42696 (grub_ata_read): No longer handle ATAPI devices.
42697 (grub_ata_write): Likewise.
42698 (grub_atapi_iterate): New function.
42699 (grub_atapi_read): Likewise.
42700 (grub_atapi_write): Likewise.
42701 (grub_atapi_open): Likewise.
42702 (grub_atapi_close): Likewise.
42703 (grub_atapi_dev): New variable.
42704 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42705 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42706
42707 * include/grub/disk.h (enum grub_disk_dev_id): Add
42708 `GRUB_DISK_DEVICE_SCSI_ID'.
42709
c07ae501 427102008-08-26 Robert Millan <rmh@aybabtu.com>
42711
42712 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42713 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42714 descriptive.
42715
5ed20adc 427162008-08-23 Bean <bean123ch@gmail.com>
42717
42718 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42719 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42720 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42721 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42722 dm_nv.mod.
42723 (raid5rec_mod_SOURCES): New macro.
42724 (raid5rec_mod_CFLAGS): Likewise.
42725 (raid5rec_mod_LDFLAGS): Likewise.
42726 (raid6rec_mod_SOURCES): Likewise.
42727 (raid6rec_mod_CFLAGS): Likewise.
42728 (raid6rec_mod_LDFLAGS): Likewise.
42729 (mdraid_mod_SOURCES): Likewise.
42730 (mdraid_mod_CFLAGS): Likewise.
42731 (mdraid_mod_LDFLAGS): Likewise.
42732 (dm_nv_mod_SOURCES): Likewise.
42733 (dm_nv_mod_CFLAGS): Likewise.
42734 (dm_nv_mod_LDFLAGS): Likewise.
42735
42736 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42737 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42738 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42739
42740 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42741 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42742
42743 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42744
42745 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42746
42747 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42748
42749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42750
42751 * disk/raid5_recover.c: New file.
42752
42753 * disk/raid6_recover.c: Likewise.
42754
42755 * disk/mdraid_linux.c: Likewise.
42756
42757 * disk/dmraid_nvidia.c: Likewise.
42758
42759 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42760 ULONG_MAX.
42761
42762 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42763 calculate the size of raid device.
42764 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42765 different layout of raid5.
42766 (grub_raid_scan_device): Remove code specific to mdraid.
42767 (grub_raid_list): New variable.
42768 (free_array): New function.
42769 (grub_raid_register): Likewise.
42770 (grub_raid_unregister): Likewise.
42771 (grub_raid_rescan): Likewise.
42772 (GRUB_MOD_INIT): Don't iterate device here.
42773 (GRUB_MOD_FINI): Use free_array to release resource.
42774
42775 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42776 (grub_raid5_recover_func_t): New function variable type.
42777 (grub_raid6_recover_func_t): Likewise.
42778 (grub_raid5_recover_func): New variable.
42779 (grub_raid6_recover_func): Likewise.
42780 (grub_raid_register): New function.
42781 (grub_raid_unregister): Likewise.
42782 (grub_raid_rescan): Likewise.
42783 (grub_raid_block_xor): Likewise.
42784
42785 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42786 (CMD_CRC): New macro.
42787 (part): Removed.
42788 (read_file): Handle device as well as file.
42789 (cmd_crc): New function.
42790 (fstest): Handle multiple disks.
42791 (options): Remove part, raw and long, add root and diskcount.
42792 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 42793 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 42794 add handling for the new options, support multiple disks.
42795
42796 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42797
29c18915 427982008-08-23 Bean <bean123ch@gmail.com>
42799
42800 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42801
42802 * genfslist.sh: Ignore kernel.mod.
42803
42804 * genpartmaplist.sh: Likewise.
42805
8415f261 428062008-08-23 Robert Millan <rmh@aybabtu.com>
42807
42808 * util/getroot.c (find_root_device): Skip anything that starts with
42809 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42810
d5a7dc5b 428112008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 42812
d5a7dc5b 42813 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42814 * util/grub.d/00_header.in: Allow the administrator to change default
42815 gfxmode via ${GRUB_GFXMODE}.
42816
380cfbb4 428172008-08-21 Felix Zielcke <fzielcke@z-51.de>
42818
42819 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42820
c9baafe7 428212008-08-21 Robert Millan <rmh@aybabtu.com>
42822
42823 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42824 loader.
42825 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42826 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42827
e290bef2 428282008-08-20 Carles Pina i Estany <carles@pina.cat>
42829
42830 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42831 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42832
f9dbfc96 428332008-08-19 Robert Millan <rmh@aybabtu.com>
42834
42835 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42836 (struct grub_virtual_screen): Remove `cursor_color'.
42837 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42838 initialization.
42839 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42840
dd6bd6ab 428412008-08-18 Robert Millan <rmh@aybabtu.com>
42842
42843 Unify (identical) linux_normal.c files.
42844 * loader/i386/efi/linux_normal.c: Move from here ...
42845 * loader/linux_normal.c: ... to here. Update all users.
42846 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42847 * loader/i386/ieee1275/linux_normal.c: Likewise.
42848
7f42f83e 428492008-08-18 Robert Millan <rmh@aybabtu.com>
42850
42851 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42852 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42853 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42854 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42855 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42856 New macros.
42857 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42858 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42859 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42860 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42861 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42862 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42863 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42864 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42865 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42866 portably using grub_getxy().
42867 Replace `-EFI' with `-bzImage' in boot message.
42868
38487ddb 428692008-08-17 Robert Millan <rmh@aybabtu.com>
42870
42871 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42872
deceb3ec 428732008-08-17 Robert Millan <rmh@aybabtu.com>
42874
42875 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42876
42877 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42878 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42879 (grub_machine_mmap_iterate): New function declaration.
42880 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42881 structure.
42882 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42883 macros.
42884
42885 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42886 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42887 Move e820 parsing from here ...
42888 * kern/i386/pc/mmap.c: New file.
42889 (grub_machine_mmap_iterate): ... to here.
42890
42891 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42892 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42893 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42894 (grub_available_iterate): Redeclare to return `void', and redeclare
42895 its hook to use grub_uint64_t as addr and size parameters, and rename
42896 to ...
42897 (grub_machine_mmap_iterate): ... this. Update all users.
42898
42899 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42900 to make it more readable. Rename to ...
42901 (grub_machine_mmap_iterate): ... this.
42902
42903 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42904 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42905 (grub_multiboot): Allocate an extra region after the payload, and fill
42906 it with a Multiboot memory map. Adjust a.out loader to calculate size
42907 with the extra space.
42908 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42909 with the extra space.
42910
f8aa0f43 429112008-08-17 Carles Pina i Estany <carles@pina.cat>
42912
9807deb9 42913 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 42914
605f5bb6 429152008-08-17 Felix Zielcke <fzielcke@z-51.de>
42916
42917 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42918 mdate-sh to the list `find' searches for.
42919 * DISTLIST: Regenerated.
42920
210db6c6 429212008-08-16 Felix Zielcke <fzielcke@z-51.de>
42922
42923 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42924 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 42925 genmoddep.awk, gensymlist.sh.in.
42926 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 42927 * DISTLIST: Regenerated.
48cdbfd4 42928 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 42929
1082b929 429302008-08-16 Robert Millan <rmh@aybabtu.com>
42931
42932 * disk/raid.c (grub_raid_init): Handle/report errors set by
42933 grub_device_iterate().
42934 * disk/lvm.c (grub_lvm_init): Likewise.
42935
42ce5170 429362008-08-15 Bean <bean123ch@gmail.com>
42937
42938 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42939 and datehook.mod.
42940 (datetime_mod_SOURCES): New macro.
42941 (datetime_mod_CFLAGS): Likewise.
42942 (datetime_mod_LDFLAGS): Likewise.
42943 (date_mod_SOURCES): Likewise.
42944 (date_mod_CFLAGS): Likewise.
42945 (date_mod_LDFLAGS): Likewise.
42946 (datehook_mod_SOURCES): Likewise.
42947 (datehook_mod_CFLAGS): Likewise.
42948 (datehook_mod_LDFLAGS): Likewise.
42949
42950 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42951 and datehook.mod.
42952 (datetime_mod_SOURCES): New macro.
42953 (datetime_mod_CFLAGS): Likewise.
42954 (datetime_mod_LDFLAGS): Likewise.
42955 (date_mod_SOURCES): Likewise.
42956 (date_mod_CFLAGS): Likewise.
42957 (date_mod_LDFLAGS): Likewise.
42958 (datehook_mod_SOURCES): Likewise.
42959 (datehook_mod_CFLAGS): Likewise.
42960 (datehook_mod_LDFLAGS): Likewise.
42961
42962 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42963 and datehook.mod.
42964 (datetime_mod_SOURCES): New macro.
42965 (datetime_mod_CFLAGS): Likewise.
42966 (datetime_mod_LDFLAGS): Likewise.
42967 (date_mod_SOURCES): Likewise.
42968 (date_mod_CFLAGS): Likewise.
42969 (date_mod_LDFLAGS): Likewise.
42970 (datehook_mod_SOURCES): Likewise.
42971 (datehook_mod_CFLAGS): Likewise.
42972 (datehook_mod_LDFLAGS): Likewise.
42973
42974 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42975 and datehook.mod.
42976 (datetime_mod_SOURCES): New macro.
42977 (datetime_mod_CFLAGS): Likewise.
42978 (datetime_mod_LDFLAGS): Likewise.
42979 (date_mod_SOURCES): Likewise.
42980 (date_mod_CFLAGS): Likewise.
42981 (date_mod_LDFLAGS): Likewise.
42982 (datehook_mod_SOURCES): Likewise.
42983 (datehook_mod_CFLAGS): Likewise.
42984 (datehook_mod_LDFLAGS): Likewise.
42985
42986 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42987 and datehook.mod.
42988 (datetime_mod_SOURCES): New macro.
42989 (datetime_mod_CFLAGS): Likewise.
42990 (datetime_mod_LDFLAGS): Likewise.
42991 (date_mod_SOURCES): Likewise.
42992 (date_mod_CFLAGS): Likewise.
42993 (date_mod_LDFLAGS): Likewise.
42994 (datehook_mod_SOURCES): Likewise.
42995 (datehook_mod_CFLAGS): Likewise.
42996 (datehook_mod_LDFLAGS): Likewise.
42997
42998 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42999
43000 * commands/date.c: New file.
43001
43002 * hook/datehook.c: Likewise.
43003
43004 * include/grub/lib/datetime.h: Likewise.
43005
43006 * include/grub/i386/cmos.h: Likewise.
43007
43008 * lib/datetime.c: Likewise.
43009
43010 * lib/i386/datetime.c: Likewise.
43011
43012 * lib/efi/datetime.c: Likewise.
43013
0e9242da 430142008-08-14 Robert Millan <rmh@aybabtu.com>
43015
43016 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
43017 (grub_mkelfimage_SOURCES): New variable.
43018 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
43019
43020 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
43021 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
43022 * conf/powerpc-ieee1275.rmk: Likewise.
43023 * conf/i386-ieee1275.rmk: Likewise.
43024
43025 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
43026 * kern/i386/coreboot/init.c: Likewise.
43027
43028 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
43029 with `<grub/cpu/kernel.h>'.
43030 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
43031 to ...
43032 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
43033 * kern/i386/coreboot/startup.S: Likewise.
43034
43035 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
43036 (GRUB_MOD_GAP): Remove.
43037 * include/grub/powerpc/kernel.h: New file.
43038 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
43039 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43040 * include/grub/i386/kernel.h: New file.
43041 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
43042 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
43043 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43044
43045 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
43046 `grub-mkelfimage'.
43047 Use --directory when invoking grub_mkimage.
43048
43049 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
43050 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
43051 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
43052 and GRUB_KERNEL_CPU_PREFIX.
43053
b86408f8 430542008-08-14 Felix Zielcke <fzielcke@z-51.de>
43055
d5e619ca 43056 * include/grub/err.h (grub_err_printf): New function prototype.
43057 * util/misc.c (grub_err_printf): New function.
43058 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
43059 grub_printf.
43060 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 43061
7161f0e0 430622008-08-13 Robert Millan <rmh@aybabtu.com>
43063
43064 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43065
a1967522 430662008-08-13 Robert Millan <rmh@aybabtu.com>
43067
43068 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43069 boot entry.
43070
371458b5 430712008-08-12 Robert Millan <rmh@aybabtu.com>
43072
43073 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43074 of the relocation code from here ...
43075 (grub_multiboot): ... to here.
43076 (forward_relocator, backward_relocator): Move from here ...
43077 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43078 (grub_multiboot_backward_relocator): ... to here.
43079 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43080 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43081 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43082 (grub_multiboot_forward_relocator_end)
43083 (grub_multiboot_backward_relocator)
43084 (grub_multiboot_backward_relocator_end): New variables.
43085
05f9452b 430862008-08-12 Bean <bean123ch@gmail.com>
43087
43088 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43089
20024ab0 430902008-08-11 Robert Millan <rmh@aybabtu.com>
43091
43092 * kern/i386/linuxbios/startup.S: Move from here ...
43093 * kern/i386/coreboot/startup.S: ... to here.
43094
43095 * kern/i386/linuxbios/init.c: Move from here ...
43096 * kern/i386/coreboot/init.c: ... to here.
43097
43098 * kern/i386/linuxbios/table.c: Move from here ...
43099 * kern/i386/coreboot/mmap.c: ... to here.
43100
43101 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43102
e352e9cd 431032008-08-11 Robert Millan <rmh@aybabtu.com>
43104
43105 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43106 errors. Leave it to the upper layer to handle them.
43107
2d05bc6a 431082008-08-09 Christian Franke <franke@computer.org>
43109
43110 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43111 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43112 Install `grub.d/10_windows' only on Cygwin.
43113 * configure.ac: Add subst of `target_os'.
43114 Check `target_os' also before setting TARGET_OBJ2ELF.
43115 Add `--enable-grub-pe2elf'.
43116
042bd419 431172008-08-08 Robert Millan <rmh@aybabtu.com>
43118
43119 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43120 (grub_last_time): Change type to grub_uint64_t.
43121 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43122 (grub_disk_close): Likewise.
43123
43124 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43125 (run_menu): Migrate code from to using grub_get_time_ms().
43126
43127 * util/misc.c (grub_get_time_ms): New function.
43128
7f280db5 431292008-08-08 Marco Gerards <marco@gnu.org>
43130
43131 * disk/ata.c (grub_ata_regget): Change return type to
43132 `grub_uint8_t'.
43133 (grub_ata_regget2): Likewise.
43134 (grub_ata_wait_status): New function.
43135 (grub_ata_wait_busy): Removed function, updated all users to use
43136 `grub_ata_wait_status'.
43137 (grub_ata_wait_drq): Likewise.
43138 (grub_ata_cmd): New function.
43139 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43140 error handling.
43141 (grub_ata_pio_write): Add error handling.
43142 (grub_atapi_identify): Likewise.
43143 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43144 handling.
43145 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43146 handling. Actually use the detected registers. Reorder the
43147 detection logic such that it is easier to read.
43148 (grub_ata_pciinit): Do not assign the same ID to each controller.
43149 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43150 handling.
43151 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43152
43153 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43154
1fbc5e66 431552008-08-08 Marco Gerards <marco@gnu.org>
43156
43157 * NEWS: Update.
43158
819ce6c0 431592008-08-07 Bean <bean123ch@gmail.com>
43160
43161 * include/grub/x86_64/pci.h: New file.
43162
5c41d44d 431632008-08-07 Christian Franke <franke@computer.org>
43164
43165 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43166 (TIMER2_GATE): Likewise.
43167 (grub_pit_wait): Add enable/disable of the timer2 gate
43168 bit of port 0x61. This fixes a possible infinite loop.
43169
5ebc275d 431702008-08-07 Bean <bean123ch@gmail.com>
43171
43172 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43173 kern/i386/tsc.c and kern/i386/pit.c.
43174
43175 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43176 x86_64 platform.
43177
43178 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43179 <grub/i386/tsc.h>.
43180
43181 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43182
e383b3d0 431832008-08-07 Bean <bean123ch@gmail.com>
43184
43185 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43186
43187 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43188
43189 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43190 multiple inclusion. Add #include <grub/types.h>.
43191
1cbb58ac 431922008-08-06 Christian Franke <franke@computer.org>
43193
43194 * conf/common.rmk: Build and install `10_windows'.
43195 * util/grub.d/10_windows.in: New script.
43196
337f5a1e 431972008-08-06 Pavel Roskin <proski@gnu.org>
43198
43199 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43200
057bc4ac 432012008-08-06 Robert Millan <rmh@aybabtu.com>
43202
43203 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43204 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43205
2b99f123 432062008-08-06 Bean <bean123ch@gmail.com>
43207
43208 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43209 (grub_pxefs_fs_int): Remove dummy definition.
43210 (grub_pxefs_open): Use data->block_size to store the current block
43211 size setting.
43212 (grub_pxefs_read): Use block size stored in data->block_size. As the
43213 value of grub_pxe_blksize can be changed after the file is opened.
43214
9f0234cb 432152008-08-06 Bean <bean123ch@gmail.com>
43216
43217 * fs/i386/pc/pxe.c (curr_file): new variable.
43218 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43219 require the dummy internal file system anymore.
43220 (grub_pxefs_read): Removed.
43221 (grub_pxefs_close): Likewise.
43222 (grub_pxefs_fs_int): Likewise.
43223 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43224 connection when we switch file.
43225 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43226
a55d42e0 432272008-08-06 Robert Millan <rmh@aybabtu.com>
43228
43229 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43230 `halt.mod'.
43231 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43232 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43233
43234 * kern/i386/halt.c: New file.
43235 * kern/i386/reboot.c: Likewise.
43236 * include/grub/i386/reboot.h: Likewise.
43237 * include/grub/i386/halt.h: Likewise.
43238
43239 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43240 Include `<grub/cpu/halt.h>'.
43241 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43242 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43243
43244 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43245 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43246 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43247 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43248 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43249 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43250 from here ...
43251 * include/grub/i386/at_keyboard.h: ... to here.
43252
24371d26 432532008-08-05 Robert Millan <rmh@aybabtu.com>
43254
43255 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43256 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43257 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43258 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43259 `kern/generic/millisleep.c'.
43260
43261 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43262 instead of grub_get_rtc().
43263 (grub_tsc_init): Initialize `tsc_boot_time'.
43264
43265 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43266 (grub_machine_init): Use grub_tsc_init() rather than
43267 installing an RTC-based handler via grub_install_get_time_ms().
43268
43269 * kern/i386/pit.c: New file.
43270 * include/grub/i386/pit.h: Likewise.
43271
9e7007b3 432722008-08-05 Bean <bean123ch@gmail.com>
43273
43274 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43275
43276 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43277 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43278 (pxe_mod_SOURCES): New macro.
43279 (pxe_mod_CFLAGS): Likewise.
43280 (pxe_mod_LDFLAGS): Likewise.
43281 (pxecmd_mod_SOURCES): Likewise.
43282 (pxecmd_mod_CFLAGS): Likewise.
43283 (pxecmd_mod_LDFLAGS): Likewise.
43284
43285 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43286 (grub_pxe_call): Likewise.
43287
43288 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43289
43290 * commands/i386/pc/pxecmd.c: New file.
43291
9f0234cb 43292 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 43293
43294 * include/grub/i386/pc/pxe.h: Likewise.
43295
6977d49f 432962008-08-05 Bean <bean123ch@gmail.com>
43297
43298 * util/console.c (grub_console_cur_color): New variable.
43299 (grub_console_standard_color): Likewise.
43300 (grub_console_normal_color): Likewise.
43301 (grub_console_highlight_color): Likewise.
43302 (color_map): Likewise.
43303 (use_color): Likewise.
43304 (NUM_COLORS): New macro.
43305 (grub_ncurses_setcolorstate): Handle color properly.
43306 (grub_ncurses_setcolor): Don't change color here, just remember the
43307 settings, color will be set in grub_ncurses_setcolorstate.
43308 (grub_ncurses_getcolor): New function.
43309 (grub_ncurses_init): Initialize color pairs.
43310 (grub_ncurses_term): New member grub_ncurses_getcolor.
43311
9c2ff3ee 433122008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 43313
9c2ff3ee 43314 High resolution timer support. Implemented for x86 CPUs using TSC.
43315 Extracted generic grub_millisleep() so it's linked in only as needed.
43316 This requires a Pentium compatible CPU; if the RDTSC instruction is
43317 not supported, then it falls back on the generic grub_get_time_ms()
43318 implementation that uses the machine's RTC.
43319
43320 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43321 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43322 `kern/generic/millisleep.c'.
43323
43324 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43325 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43326
43327 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43328 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43329
43330 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43331
43332 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43333 `kern/generic/millisleep.c'.
43334
43335 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43336
43337 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43338
43339 * kern/generic/rtc_get_time_ms.c: New file.
43340
43341 * kern/generic/millisleep.c: New file.
337f5a1e 43342
9c2ff3ee 43343 * kern/misc.c: Don't include
43344 <kern/time.h> anymore.
43345 (grub_millisleep_generic): Removed.
43346
43347 * commands/sleep.c (grub_interruptible_millisleep): Uses
43348 grub_get_time_ms() instead of grub_get_rtc().
43349
43350 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43351 function.
43352 (grub_cpu_is_cpuid_supported): New inline function.
43353 (grub_cpu_is_tsc_supported): New inline function.
43354 (grub_tsc_init): New function prototype.
43355 (grub_tsc_get_time_ms): New function prototype.
43356
43357 * kern/i386/tsc.c (grub_get_time_ms): New file.
43358
43359 * include/grub/time.h: Include <grub/types.h.
43360 (grub_millisleep_generic): Removed.
43361 (grub_get_time_ms): New prototype.
43362 (grub_install_get_time_ms): New prototype.
43363 (grub_rtc_get_time_ms): New prototype.
43364
43365 * kern/time.c (grub_get_time_ms): New function.
43366 (grub_install_get_time_ms): New function.
43367
43368 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43369 <grub/time.h> anymore.
43370 (grub_millisleep): Removed.
43371 (grub_machine_init): Call grub_tsc_init.
43372
43373 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43374 get_time_ms() implementation.
43375
43376 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43377 (ieee1275_get_time_ms): New function.
43378 (grub_machine_init): Install get_time_ms() implementation.
43379
43380 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43381 (grub_machine_init): Call grub_tsc_init().
43382 (grub_millisleep): Removed.
bf06a93f 43383
9c2ff3ee 43384 * kern/ieee1275/init.c (grub_millisleep): Removed.
43385 (grub_machine_init): Install ieee1275_get_time_ms()
43386 implementation.
43387 (ieee1275_get_time_ms): New function.
43388 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43389 real work.
43390
9ec92aaf 433912008-08-05 Marco Gerards <marco@gnu.org>
43392
43393 * disk/ata.c: Include <grub/pci.h>.
43394 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43395 (grub_ata_initialize): Rewritten.
43396 (grub_ata_device_initialize): New function.
43397
8d23f507 433982008-08-04 Pavel Roskin <proski@gnu.org>
43399
43400 * kern/main.c: Include grub/mm.h.
43401
5e15ee3d 434022008-08-04 Robert Millan <rmh@aybabtu.com>
43403
43404 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43405 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43406 corruption problem).
43407
a9053f8f 434082008-08-04 Robert Millan <rmh@aybabtu.com>
43409
43410 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43411 warnings introduced in my last commit.
43412
dd19c7d7 434132008-08-03 Robert Millan <rmh@aybabtu.com>
43414
43415 Make PCI available on all i386 architectures.
43416
43417 * include/grub/i386/pc/pci.h: Move from here ...
43418 * include/grub/i386/pci.h: ... to here.
43419
43420 * include/grub/i386/pc/pci.h: Remove.
43421 * include/grub/i386/efi/pci.h: Remove.
43422 * include/grub/x86_64/efi/pci.h: Remove.
43423
43424 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43425 `<grub/cpu/pci.h>'.
43426
43427 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43428 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43429 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43430
43431 * conf/i386-ieee1275.rmk: Likewise.
43432
e14a6184 434332008-08-03 Robert Millan <rmh@aybabtu.com>
43434
43435 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43436 (grub_console_setcursor): Make it possible to set cursor off.
43437
52768e37 434382008-08-03 Robert Millan <rmh@aybabtu.com>
43439
43440 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43441 of modules instead of assuming which platform provides what.
43442 * util/update-grub.in: Likewise.
43443
2d52f57f 434442008-08-03 Robert Millan <rmh@aybabtu.com>
43445
43446 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43447 instead of `grub_install_dos_part' to determine whether a drive needs
43448 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 43449 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 43450
2a5cd121 434512008-08-02 Robert Millan <rmh@aybabtu.com>
43452
43453 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43454
93808428 434552008-08-02 Robert Millan <rmh@aybabtu.com>
43456
43457 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43458 of informational grub_dprintf() calls.
43459
3bd0a12a 434602008-08-02 Robert Millan <rmh@aybabtu.com>
43461
43462 * disk/memdisk.c (memdisk_size): Don't initialize.
43463 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43464
43465 * include/grub/i386/pc/kernel.h
43466 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43467 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43468 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43469 (grub_arch_memdisk_size): Remove.
43470
43471 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43472 field (was only used to transfer a constant). Add `type' field to
43473 support multiple module types.
43474 (grub_module_iterate): New function.
43475
43476 * kern/device.c (grub_device_open): Do not hide error messages
43477 when grub_disk_open() fails. Use grub_print_error() instead.
43478
43479 * kern/i386/pc/init.c (grub_arch_modules_addr)
43480 (grub_arch_memdisk_size): Remove functions.
43481 (grub_arch_modules_addr): Return the module address in high memory
43482 (now that it isn't copied anymore).
43483
43484 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43485 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43486 decompression routine (grub_total_module_size already includes that
43487 now). Don't copy modules back to low memory.
43488
43489 * kern/main.c: Include `<grub/mm.h>'.
43490 (grub_load_modules): Split out (and use) ...
43491 (grub_module_iterate): ... this function, which iterates through
43492 module objects and runs a hook.
43493 Comment out grub_mm_init_region() call, as it would cause non-ELF
43494 modules to be overwritten.
43495
43496 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43497 the memdisk image in its own region, make it part of the module list.
43498 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43499 (main): Parse --memdisk|-m option, and pass user-provided path as
43500 parameter to generate_image().
43501 (add_segments): Pass `memdisk_path' down to load_modules().
43502 (load_modules): Embed memdisk image in module section when requested.
43503 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43504 `header.type' instead of `header.offset'.
43505
43506 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43507 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43508 (memdisk_mod_LDFLAGS): New variables.
43509 * conf/i386-coreboot.rmk: Likewise.
43510 * conf/i386-ieee1275.rmk: Likewise.
43511
a927cc73 435122008-08-02 Robert Millan <rmh@aybabtu.com>
43513
43514 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43515 (backward_relocator): New variables. Used to allocate and relocate
43516 the payload, respectively.
43517 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 43518 address, install the appropriate relocator code in each bound of
a927cc73 43519 the payload, and set the entry point such that
43520 grub_multiboot_real_boot() will jump to one of them.
43521
43522 * kern/i386/loader.S (grub_multiboot_payload_size)
43523 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43524 (grub_multiboot_payload_entry_offset): New variables.
43525 (grub_multiboot_real_boot): Set cpu context to what the relocator
43526 expects, and jump to the relocator instead of the payload.
43527
43528 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43529 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43530 (grub_multiboot_payload_entry_offset): Export.
43531
b15d8a0c 435322008-08-01 Bean <bean123ch@gmail.com>
43533
43534 * normal/menu_entry.c (editor_getline): Don't return the original
43535 string as result, as it will be released by lexer once it has done
43536 using it.
43537
cdfb3d22 435382008-08-01 Robert Millan <rmh@aybabtu.com>
43539
43540 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43541 within menuentries, not before them.
43542 util/grub.d/10_hurd.in: Likewise.
43543
9175e93d 435442008-08-01 Bean <bean123ch@gmail.com>
43545
43546 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43547 (bufio_mod_SOURCES): New macro.
43548 (bufio_mod_CFLAGS): Likewise.
43549 (bufio_mod_LDFLAGS): Likewise.
43550
43551 * include/grub/bufio.h: New file.
43552
43553 * io/bufio.c: Likewise.
43554
43555 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43556 (grub_video_reader_png): Use grub_buffile_open to open file.
43557
43558 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43559 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43560
43561 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43562 (grub_video_reader_tga): Use grub_buffile_open to open file.
43563
43564 * font/manager.c: Include <grub/bufio.h>.
43565 (add_font): Use grub_buffile_open to open file.
43566
3d8383e7 435672008-07-31 Robert Millan <rmh@aybabtu.com>
43568
43569 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43570 ELF segments, use a macro for arbitrarily accessing any of them instead
43571 of preparing a pointer that allows access to one at a time.
43572 (grub_multiboot_load_elf64): Likewise.
43573
16e641b6 435742008-07-31 Bean <bean123ch@gmail.com>
43575
43576 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43577 GRUB_KERNEL_MACHINE_DATA_END.
43578
59198b72 435792008-07-30 Robert Millan <rmh@aybabtu.com>
43580
43581 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43582 Increase from 0x50 to 0x60.
43583 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43584 use UUIDs to identify the root drive for them. If that's not
43585 possible, abort.
43586 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43587 check, for cross-disk installs.
43588
ae88bca3 435892008-07-30 Robert Millan <rmh@aybabtu.com>
43590
43591 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43592 is non-empty, use it to set the `prefix' environment variable instead
43593 of the usual approach.
43594 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43595 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43596 environment variable instead of dummy make_install_device().
43597
43598 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43599 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 43600 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 43601
43602 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43603 New variable reference.
43604 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43605 New macro. Defines offset of `grub_prefix' within startup.S (relative
43606 to `start').
43607 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43608 section within startup.S (relative to `start').
43609 * include/grub/i386/coreboot/kernel.h: Likewise.
43610
43611 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43612 Overwrite grub_prefix with its contents, at the beginning of the
43613 first segment.
43614 (main): Understand -p|--prefix.
43615
14f41dd1 436162008-07-30 Robert Millan <rmh@aybabtu.com>
43617
43618 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43619
4ca049a3 436202008-07-30 Robert Millan <rmh@aybabtu.com>
43621
43622 * term/i386/pc/vga_text.c (grub_console_cls): Use
43623 grub_console_gotoxy() to go back to beginning of the screen.
43624 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43625
2921d337 436262008-07-29 Christian Franke <franke@computer.org>
43627
43628 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43629 Add conversion of emulated mount points on Cygwin.
43630
b609876d 436312008-07-29 Christian Franke <franke@computer.org>
43632
43633 * util/update-grub.in: Add a check for admin
43634 group on Cygwin.
43635 Remove old `grub.cfg.new' before creation.
43636 Add `-f' to `mv' to handle the different filesystem
43637 semantics of Windows.
43638
e93e4679 436392008-07-29 Bean <bean123ch@gmail.com>
43640
43641 * normal/main.c (get_line): Fix buffer overflow bug.
43642
41694fd0 436432008-07-28 Robert Millan <rmh@aybabtu.com>
43644
43645 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43646 (struct grub_apple_header): New struct. Describes the layout of
43647 the partmap header.
43648 (apple_partition_map_iterate): Check the header magic as well as the
43649 partition magic (which was already being checked).
43650
cfd0b4e6 436512008-07-28 Pavel Roskin <proski@gnu.org>
43652
43653 * genmk.rb: Add a warning to the beginning of the output that
43654 it's a generated file and should not be edited.
43655
93cce016 436562008-07-28 Robert Millan <rmh@aybabtu.com>
43657
43658 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43659 with the same number are found, just use issue a warning with
43660 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 43661
cd1df915 436622008-07-27 Robert Millan <rmh@aybabtu.com>
43663
43664 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43665 information.
43666
b70a8427 436672008-07-27 Bean <bean123ch@gmail.com>
43668
43669 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43670 (grub_fat_find_dir): Ignore case when comparing filename.
43671
8f5e379f 436722008-07-27 Bean <bean123ch@gmail.com>
43673
43674 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43675 smallino, as it's more descriptive, and i8count can be confused with
43676 the other field count.
43677 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43678 inode type.
43679
a85cd5a0 436802008-07-27 Bean <bean123ch@gmail.com>
43681
43682 * commands/crc.c: New file.
43683
43684 * lib/crc.c: Likewise.
43685
43686 * include/grub/lib/crc.h: Likewise.
43687
43688 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43689
43690 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43691 (hexdump): Move this function to ...
43692
43693 * lib/hexdump.c: ... here.
43694
43695 * include/grub/hexdump.h: Renamed to ...
43696
43697 * include/grub/lib/hexdump.h: ... this.
43698
43699 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43700
43701 * util/grub-editenv.c: Likewise.
43702
43703 * include/envblk.h: Renamed to ...
43704
43705 * include/lib/envblk.h: ... this.
43706
43707 * util/envblk.c: Renamed to ...
43708
43709 * lib/envblk.c: ... this.
43710
43711 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43712 lib/hexdump.c.
43713 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43714 (pkglib_MODULES): Add crc.mod.
43715 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43716 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43717 (crc_mod_SOURCES): New macro.
43718 (crc_mod_CFLAGS): Likewise.
43719 (crc_mod_LDFLAGS): Likewise.
43720
43721 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43722
43723 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43724
43725 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43726
43727 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43728
43729 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43730
c298def0 437312008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 43732
43733 * commands/help.c: Include <grub/term.h>.
43734 (TERM_WIDTH): Removed. Updated all users.
43735
cc349fb3 437362008-07-27 Pavel Roskin <proski@gnu.org>
43737
43738 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43739 spurious warnings about a comment within a comment.
43740
9051607e 437412008-07-25 Robert Millan <rmh@aybabtu.com>
43742
43743 * util/getroot.c (find_root_device): Skip devices that match
43744 /dev/dm-[0-9]. This lets the real device be found for any type of
43745 abstraction (LVM, EVMS, RAID..).
43746 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43747 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43748 device is found first, find_root_device() will now skip it.
43749
01453bfc 437502008-07-24 Pavel Roskin <proski@gnu.org>
43751
43752 * include/grub/types.h: Use __builtin_bswap32() and
43753 __builtin_bswap64() with gcc 4.3 and newer.
43754
6af9849f 437552008-07-24 Christian Franke <franke@computer.org>
43756
3a0fa256 43757 * util/i386/pc/grub-install.in: If `--debug' is specified,
43758 pass `--verbose' to grub-setup.
43759 Abort script if make_system_path_relative_to_its_root() fails.
43760
7810e747 437612008-07-24 Bean <bean123ch@gmail.com>
43762
43763 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43764 variable `target_platform' should be `platform'.
43765
42290e17 437662008-07-24 Bean <bean123ch@gmail.com>
43767
51cc5193 43768 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 43769 (grub_png_init_fixed_block): New function.
43770 (grub_png_decode_image_data): Handle fixed huffman code compression.
43771
2a8a80e4 437722008-07-24 Bean <bean123ch@gmail.com>
43773
43774 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43775 (grub_pe2elf_SOURCES): New macro.
43776 (CLEANFILES): Add grub-pe2elf.
43777
43778 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43779 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43780 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43781 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43782 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43783 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43784 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43785 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43786 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43787 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43788 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43789 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43790 (GRUB_PE32_DT_FUNCTION): Likewise.
43791 (GRUB_PE32_REL_I386_DIR32): Likewise.
43792 (GRUB_PE32_REL_I386_REL32): Likewise.
43793 (grub_pe32_symbol): New structure.
43794 (grub_pe32_reloc): Likewise.
43795
43796 * util/grub-pe2elf.c: New file.
43797
43798 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43799 start symbol in non pc platform.
43800
43801 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43802
43803 The following patches are from Christian Franke.
43804
43805 * include/grub/dl.h: Remove .previous, gas supports this only
43806 for ELF format.
43807
43808 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43809 Remove .type, gas supports this only for ELF format.
43810
43811 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43812 nullbytes in symbol table. This fixes an infinite loop if table is
43813 zero filled.
43814
43815 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43816 TARGET_IMG_LDFLAGS and EXEEXT.
43817
43818 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43819 TARGET_IMG_LDFLAGS_AC.
43820 (grub_CHECK_STACK_ARG_PROBE): New function.
43821
43822 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43823
43824 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43825
43826 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43827 to set TARGET_IMG_LD* accordingly.
43828 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43829 Add call to grub_CHECK_STACK_ARG_PROBE.
43830 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43831
43832 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43833
43834 * genmk.rb: Add EXEEXT to CLEANFILES.
43835
12ccdb75 438362008-07-23 Robert Millan <rmh@aybabtu.com>
43837
43838 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43839 define the codes for arrows and lines used for the menu).
43840 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43841 as well.
43842
43843 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43844 fonts, because the latter are too slow.
43845
18eeaf04 438462008-07-21 Bean <bean123ch@gmail.com>
43847
43848 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43849 a20. Run keyboard test last, as it will cause macbook to halt.
43850
b095e2ad 438512008-07-18 Pavel Roskin <proski@gnu.org>
43852
43853 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43854 load foreign architecture modules correctly anyway. Keep
43855 support for loading host architecture modules, whether we
43856 compile them or not.
43857
737feb35 438582008-07-17 Pavel Roskin <proski@gnu.org>
43859
3f4ce737 43860 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43861 change target_cpu. The compiler default can mismatch target_cpu
43862 in any case.
43863
4ad2d049 43864 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43865 * kern/efi/efi.c: Likewise.
43866
f6130a12 43867 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43868 target compiler is functional.
43869 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43870 are set up.
43871
58393a2d 43872 * configure.ac: Default to efi platform for x86_64-apple. Allow
43873 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43874 adjustments from the rest, only do them if target is not
43875 explicitly given. Merge other adjustments with the final sanity
43876 check. Remove an extraneous check for supported CPU. Be
43877 specific which CPU and which platform is not supported.
43878
737feb35 43879 * configure.ac: Default to pc platform for x86_64.
43880
546f966a 438812008-07-17 Robert Millan <rmh@aybabtu.com>
43882
43883 Partial LinuxBIOS -> Coreboot rename.
43884
43885 * conf/i386-linuxbios.rmk: Renamed to ...
43886 * conf/i386-coreboot.rmk: ... this.
43887 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43888 * configure.ac: Accept "coreboot" as input platform (but maintain
43889 compatibility with "linuxbios").
43890 * include/grub/i386/linuxbios: Renamed to ...
43891 * include/grub/i386/coreboot: ... this.
43892
20011694 438932008-07-17 Bean <bean123ch@gmail.com>
43894
43895 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 43896 (appleldr_mod_SOURCE): New variable.
20011694 43897 (appleldr_mod_CFLAGS): Likewise.
43898 (appleldr_mod_LDFLAGS): Likewise.
43899 (pci_mod_SOURCES): Likewise.
43900 (pci_mod_CFLAGS): Likewise.
43901 (pci_mod_LDFLAGS): Likewise.
43902 (lspci_mod_SOURCES): Likewise.
43903 (lspci_mod_CFLAGS): Likewise.
43904 (lspci_mod_LDFLAGS): Likewise.
43905
43906 * conf/x86_64-efi.rmk: New file.
43907
43908 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43909 macro.
43910 (grub_efidisk_write): Likewise.
43911
43912 * include/efi/api.h (efi_call_0): New macro.
43913 (efi_call_1): Likewise.
43914 (efi_call_2): Likewise.
43915 (efi_call_3): Likewise.
43916 (efi_call_4): Likewise.
43917 (efi_call_5): Likewise.
43918 (efi_call_6): Likewise.
43919
43920 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43921 grub_rescue_cmd_chainloader.
43922
43923 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43924 (grub_pe32_optional_header): Change some fields based on i386 or
43925 x86_64 platform.
43926 (GRUB_PE32_PE32_MAGIC): Likewise.
43927
43928 * include/grub/efi/uga_draw.h: New file.
43929
43930 * include/grub/elf.h (STN_ABS): New constant.
43931 (R_X86_64_NONE): Relocation constant for x86_64.
43932 (R_X86_64_64): Likewise.
43933 (R_X86_64_PC32): Likewise.
43934 (R_X86_64_GOT32): Likewise.
43935 (R_X86_64_PLT32): Likewise.
43936 (R_X86_64_COPY): Likewise.
43937 (R_X86_64_GLOB_DAT): Likewise.
43938 (R_X86_64_JUMP_SLOT): Likewise.
43939 (R_X86_64_RELATIVE): Likewise.
43940 (R_X86_64_GOTPCREL): Likewise.
43941 (R_X86_64_32): Likewise.
43942 (R_X86_64_32S): Likewise.
43943 (R_X86_64_16): Likewise.
43944 (R_X86_64_PC16): Likewise.
43945 (R_X86_64_8): Likewise.
43946 (R_X86_64_PC8): Likewise.
43947
43948 * include/grub/i386/efi/pci.h: New file.
43949
43950 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43951 Change it value based on platform.
43952 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43953 (GRUB_E820_RAM): Likewise.
43954 (GRUB_E820_RESERVED): Likewise.
43955 (GRUB_E820_ACPI): Likewise.
43956 (GRUB_E820_NVS): Likewise.
43957 (GRUB_E820_EXEC_CODE): Likewise.
43958 (GRUB_E820_MAX_ENTRY): Likewise.
43959 (grub_e820_mmap): New structure.
43960 (linux_kernel_header): Change the efi field according to different
43961 kernel version, also field from linux_kernel_header.
43962
43963 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43964
43965 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43966 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43967 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43968 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43969 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43970 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43971 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43972 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43973 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43974 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43975
43976 * include/grub/x86_64/efi/kernel.h: New file.
43977
43978 * include/grub/x86_64/efi/loader.h: Likewise.
43979
43980 * include/grub/x86_64/efi/machine.h: Likewise.
43981
43982 * include/grub/x86_64/efi/pci.h: Likewise.
43983
43984 * include/grub/x86_64/efi/time.h: Likewise.
43985
43986 * include/grub/x86_64/linux.h: Likewise.
43987
43988 * include/grub/x86_64/setjmp.h: Likewise.
43989
43990 * include/grub/x86_64/time.h: Likewise.
43991
43992 * include/grub/x86_64/types.h: Likewise.
43993
43994 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43995 GRUB_TARGET_SIZEOF_VOID_P.
43996
43997 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43998 (grub_efi_locate_handle): Likewise.
43999 (grub_efi_open_protocol): Likewise.
44000 (grub_efi_set_text_mode): Likewise.
44001 (grub_efi_stall): Likewise.
44002 (grub_exit): Likewise.
44003 (grub_reboot): Likewise.
44004 (grub_halt): Likewise.
44005 (grub_efi_exit_boot_services): Likewise.
44006 (grub_get_rtc): Likewise.
44007
44008 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
44009 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
44010 (grub_efi_allocate_pages): Wrap efi calls.
44011 (grub_efi_free_pages): Wrap efi calls.
44012 (grub_efi_get_memory_map): Wrap efi calls.
44013
44014 * kern/x86_64/dl.c: New file.
44015
44016 * kern/x86_64/efi/callwrap.S: Likewise.
44017
44018 * kern/x86_64/efi/startup.S: Likewise.
44019
44020 * loader/efi/appleloader.c: Likewise.
44021
44022 * loader/efi/chainloader.c (cmdline): New variable.
44023 (grub_chainloader_unload): Wrap efi calls.
44024 (grub_chainloader_boot): Likewise.
44025 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
44026 command line.
44027
44028 * loader/efi/chainloader_normal.c (chainloader_command):
44029 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
44030 command line.
44031
44032 * loader/i386/efi/linux.c (allocate_pages): Change allocation
44033 method.
44034 (grub_e820_add_region): New function.
44035 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
44036 booting.
44037 (grub_find_video_card): New function.
44038 (grub_linux_setup_video): New function.
44039 (grub_rescue_cmd_linux): Probe for video information.
44040
44041 * normal/x86_64/setjmp.S: New file.
44042
44043 * term/efi/console.c (map_char): New function.
44044 (grub_console_putchar): Map unicode char.
44045 (grub_console_checkkey): Wrap efi calls.
44046 (grub_console_getkey): Likewise.
44047 (grub_console_getwh): Likewise.
44048 (grub_console_gotoxy): Likewise.
44049 (grub_console_cls): Likewise.
44050 (grub_console_setcolorstate): Likewise.
44051 (grub_console_setcursor): Likewise.
44052
44053 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
44054
59652a20 440552008-07-16 Pavel Roskin <proski@gnu.org>
44056
ef294055 44057 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
44058 format strings.
44059
59652a20 44060 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
44061 pointer, not an integer. This fixes a warning and prevents
44062 precision loss on 64-bit systems.
44063 (relocate_addresses): Remove unneeded cast.
44064
afc3b5d7 440652008-07-15 Pavel Roskin <proski@gnu.org>
44066
506b2b3e 44067 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44068
62ead89c 44069 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44070
c4cd51d7 44071 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44072 Fix comparison between signed and unsigned.
44073
0d3d8f28 44074 * include/grub/i386/ieee1275/console.h: Declare
44075 grub_console_init() and grub_console_fini().
44076
8804b286 44077 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44078 It's empty and unused.
44079
ee01cf35 44080 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44081 beginning to avoid warnings with some compilers.
44082
afc3b5d7 44083 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44084 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44085
e4e8eaa5 440862008-07-14 Pavel Roskin <proski@gnu.org>
44087
407aceb4 44088 * kern/env.c (grub_register_variable_hook): Don't copy empty
44089 string, it leaks memory. Pass "" to grub_env_set(), it should
44090 handle constant strings.
44091
e4e8eaa5 44092 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44093 * commands/cmp.c (grub_cmd_cmp): Likewise.
44094 * kern/dl.c (grub_dl_flush_cache): Likewise.
44095 (grub_dl_load_core): Likewise.
44096 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44097 (grub_elf64_load_phdrs): Likewise.
44098
d4e2dad3 440992008-07-13 Pavel Roskin <proski@gnu.org>
44100
44101 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44102 between signed and unsigned.
44103 (LzmaEnc_Finish): Fix warning about an unused parameter.
44104
aa24b516 441052008-07-13 Bean <bean123ch@gmail.com>
44106
44107 * Makefile.in (enable_lzo): New rule.
44108
44109 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44110
44111 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44112
44113 * boot/i386/pc/lnxboot.S: #include <config.h>.
44114
44115 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 44116 its value according to the compression algorithm used, lzo or lzma.
aa24b516 44117
44118 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44119 compression algorithm according to configure macro.
44120
44121 * kern/i386/pc/startup.S (codestart): Likewise.
44122
44123 * kern/i386/pc/lzma_decode.S: New file.
44124
44125 * include/grub/lib/LzFind.h: Likewise.
44126
44127 * include/grub/lib/LzHash.h: Likewise.
44128
44129 * include/grub/lib/LzmaDec.h: Likewise.
44130
44131 * include/grub/lib/LzmaEnc.h: Likewise.
44132
44133 * include/grub/lib/LzmaTypes.h: Likewise.
44134
44135 * lib/LzFind.c: Likewise.
44136
44137 * lib/LzmaDec.c: Likewise.
44138
44139 * lib/LzmaEnc.c: Likewise.
44140
4ae821ac 441412008-07-13 Bean <bean123ch@gmail.com>
44142
44143 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44144 (grub_ext4_extent_header): New structure.
44145 (grub_ext4_extent): Likewise.
44146 (grub_ext4_extent_idx): Likewise.
44147 (grub_ext4_find_leaf): New function.
44148 (grub_ext2_read_block): Handle extents.
44149
9a745147 441502008-07-12 Robert Millan <rmh@aybabtu.com>
44151
44152 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44153
d49a4cf6 441542008-07-11 Robert Millan <rmh@aybabtu.com>
44155
44156 * util/grub.d/40_custom.in: New file. Example on how to add custom
44157 entries to /etc/grub.d.
44158 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44159 40_custom (implicitly, by merging all the grub.d rules).
44160
947414b4 441612008-07-11 Pavel Roskin <proski@gnu.org>
44162
0059cf6f 44163 * commands/read.c (grub_getline): Fix invalid memory access.
44164 Don't add newline to the variable value.
44165
947414b4 44166 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44167 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44168 (serial_hw_get_port): Check validity of the port number.
44169 (grub_cmd_serial): Check return value of serial_hw_get_port().
44170
62a02d00 441712008-07-07 Pavel Roskin <proski@gnu.org>
44172
44173 * boot/i386/pc/diskboot.S (notification_string): Replace
44174 "Loading kernel" with just "loading". This is shorter, less
44175 confusing and saves a few bytes for possible future changes.
44176
3e5581b0 441772008-07-05 Pavel Roskin <proski@gnu.org>
44178
ea387a48 44179 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44180 size for ATAPI devices, they are undefined. Output sector
44181 number in decimal form.
44182
3e5581b0 44183 * disk/ata.c: Use named constants for status bits.
44184
fdecb8fd 441852008-07-04 Pavel Roskin <proski@gnu.org>
44186
bcd35b90 44187 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44188 grub_addr_t before casting it to the void pointer to fix a
44189 warning. Non-addressable regions are discarded earlier.
44190 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44191 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44192 (check_signature): Don't shadow table_header.
44193 (grub_linuxbios_table_iterate): Cast numeric constants to
44194 grub_linuxbios_table_header_t.
44195 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44196 grub_stop().
44197
af58ab3d 44198 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44199 prevent warnings.
44200
1759aa57 44201 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44202 pointer, which can cause warnings. Support 64-bit addresses.
44203
fdecb8fd 44204 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44205 of sizeof(long). This fixes PowerPC image generation on x86_64.
44206
8516d2a8 442072008-07-04 Robert Millan <rmh@aybabtu.com>
44208
44209 This fixes a performance issue when pc & gpt partmap iterators
44210 didn't abort iteration even after our hook found what it was
fe987087 44211 looking for (often causing expensive probes of non-existent drives).
8516d2a8 44212
44213 Some callers relied on previous buggy behaviour, since they would
34c44600 44214 raise an error when their own hooks caused early abortion of its
8516d2a8 44215 iteration.
44216
44217 * kern/device.c (grub_device_open): Improve error message.
44218 * disk/lvm.c (grub_lvm_open): Likewise.
44219 * disk/raid.c (grub_raid_open): Likewise.
44220
44221 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44222 when hook requests it, independently of grub_errno.
44223 (pc_partition_map_probe): Do not fail when find_func() caused
44224 early abortion of pc_partition_map_iterate().
44225
44226 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44227 when hook requests it, independently of grub_errno.
44228 (gpt_partition_map_probe): Do not fail when find_func() caused
44229 early abortion of gpt_partition_map_iterate().
44230
44231 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44232 when hook requests it, independently of grub_errno. Do not fail when
44233 part_map_iterate_hook() caused early abortion of p->iterate().
44234
44235 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44236 when grub_partition_iterate() returned with non-zero.
44237
277d0de9 442382008-07-03 Pavel Roskin <proski@gnu.org>
44239
44240 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44241 like we do in grub_ata_pio_read().
44242 (grub_ata_readwrite): Always write individual sectors. Fix the
44243 sector count for the remainder.
44244 (grub_ata_write): Enable writing to ATA devices. Correctly
44245 report error for ATAPI devices.
44246
d4c9b428 442472008-07-02 Pavel Roskin <proski@gnu.org>
44248
e43fc690 44249 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44250 warning.
44251
f707af42 44252 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44253 for every read sector, we already increment it for the whole
44254 batch. This fixes reading more than 256 sectors at once.
44255
11e16b15 44256 * util/grub-editenv.c (cmd_info): Cast argument to long
44257 explicitly. ptrdiff_t reduces to int on i386.
44258
cbabfdd4 44259 * util/grub-editenv.c (main): Be specific which parameter is
44260 missing.
44261
b8fbce0a 44262 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44263 (memdisk): Make memdisk_orig_addr a pointer.
44264
c9c8e606 44265 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44266 for file offsets, use grub_off_t instead. Fix printf format
44267 warnings.
44268
ca62e598 44269 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44270 there. Real unexpected warnings should not drown in the noise
44271 about known problems.
44272
ce8d1766 44273 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44274 grub_disk_addr_t for memory addresses.
44275
00c7a56a 44276 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44277 explicitly to fix a warning.
44278
08d3ef09 44279 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44280
cb71ba20 44281 * Makefile.in (MODULE_LDFLAGS): New variable.
44282 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44283 the linker accepts --build-id=none.
44284 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44285 MODULE_LDFLAGS.
44286 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44287
d4c9b428 44288 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44289 those in Linux XFS code. Provide a way to access 64-bit parent
44290 inode.
44291 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44292 the end of struct grub_xfs_dir_header.
44293
d4156eee 442942008-07-02 Bean <bean123ch@gmail.com>
44295
44296 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44297 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44298 and GRUB_IEEE1275_FLAG_NO_ANSI.
44299
44300 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44301 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44302 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44303
44304 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44305 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44306
44307 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44308 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44309
44310 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44311 esc sequence on non ANSI terminal.
44312 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44313
44314 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44315 beginning of file.
44316
2270f77b 443172008-07-02 Bean <bean123ch@gmail.com>
44318
44319 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44320 (grub_editenv_SOURCES): New variable.
44321 (pkglib_MODULES): Add loadenv.mod.
44322 (loadenv_mod_SOURCES): New variable.
44323 (loadenv_mod_CFLAGS): Likewise.
44324 (loadenv_mod_LDFLAGS): Likewise.
44325
44326 * include/grub/envblk.h: New file.
44327
44328 * util/envblk.c: New file.
44329
44330 * util/grub-editenv.c: New file.
44331
44332 * commands/loadenv.c: New file.
44333
0e9e51ec 443342008-07-01 Pavel Roskin <proski@gnu.org>
44335
d89b7634 44336 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44337 not unsigned char. This fixes warnings and is consistent with
44338 other tags.
44339
bf1835b1 44340 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44341
8222a04b 44342 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44343
6a42d99d 44344 * term/tparm.c (analyze): Always set *popcount.
44345
10b159d1 44346 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44347 cast to fix a warning.
44348
b8789f6c 44349 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44350 cast to suppress a warning.
44351
29d7e38a 44352 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44353 grub_fshelp_read_file() expects.
44354
f341f669 44355 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44356 write uuid as a 32-bit value in CPU byte order, so declare and
44357 use it as such.
44358
0e9e51ec 44359 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44360 long if the format specifier expects it.
44361 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44362 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44363 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44364 long to fix a warning.
44365 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44366 grub_dprintf() arguments to fix warnings.
44367
3aefa857 443682008-06-30 Pavel Roskin <proski@gnu.org>
44369
56c7668b 44370 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44371 install_bsd_part immediately before core.img is embedded or
44372 modified on disk. This fixes core.img verification if core.img
44373 cannot be embedded.
44374
3aefa857 44375 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44376 core_path to calculate the blocklist.
44377 Patch from Javier Martín <lordhabbit@gmail.com>
44378
5444088d 443792008-06-29 Robert Millan <rmh@aybabtu.com>
44380
44381 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44382 block to disk block.
44383 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44384 Patch from Niels Böhm <bitbucket@arcor.de>
44385
674835c8 443862008-06-29 Robert Millan <rmh@aybabtu.com>
44387
44388 * util/update-grub_lib.in (font_path): Search for fonts in
44389 /boot/grub first, which is more likely to be readable (we aren't
44390 deciding where fonts live, just looking for them).
44391
f527dbc8 443922008-06-26 Pavel Roskin <proski@gnu.org>
44393
6c2d8df6 44394 * util/biosdisk.c (read_device_map): Don't leave dead map
44395 entries for devices failing stat() check.
44396
f527dbc8 44397 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44398 core_path_dev for the core.img path on the target device.
44399
aebe3d13 444002008-06-26 Robert Millan <rmh@aybabtu.com>
44401
44402 * disk/fs_uuid.c: New file.
44403 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44404 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44405 (fs_uuid_mod_LDFLAGS): New variables.
44406 * include/grub/disk.h (grub_disk_dev_id): Add
44407 `GRUB_DISK_DEVICE_UUID_ID'.
44408 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44409 implement iterate().
44410
37aaf354 444112008-06-26 Robert Millan <rmh@aybabtu.com>
44412
44413 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44414 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44415 Linux image includes no initrd.
44416
25ff262a 444172008-06-21 Javier Martín <lordhabbit@gmail.com>
44418
44419 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44420 call to resolve the core image location that effectively appended the
44421 name twice.
44422
76a2bd44 444232008-06-21 Robert Millan <rmh@aybabtu.com>
44424
44425 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44426 call from here ...
44427
44428 * util/grub.d/10_hurd.in: ... to here ...
44429 * util/grub.d/10_linux.in: ... and here.
44430
650e1c79 444312008-06-19 Robert Millan <rmh@aybabtu.com>
44432
fe987087 44433 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 44434 after it has been set by grub_machine_set_prefix().
44435
6ce63911 444362008-06-19 Robert Millan <rmh@aybabtu.com>
44437
44438 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44439 search result when not saving to variable, not the other way around.
44440 When saving to variable, abort iteration as soon as a match is found.
44441
73940cec 444422008-06-19 Robert Millan <rmh@aybabtu.com>
44443
44444 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44445 check for partition that provides /boot/grub. Its logic is flawed,
44446 as it prevents prepare_grub_to_access_device() from being called
44447 multiple times.
44448
3c62a39d 444492008-06-19 Robert Millan <rmh@aybabtu.com>
44450
44451 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44452 "insmod" command directly when abstraction modules are needed,
fe987087 44453 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 44454 since it had already been processed).
44455
47395a42 444562008-06-19 Pavel Roskin <proski@gnu.org>
44457
44458 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44459 changed. This is needed in case GRUB_LIBDIR changes.
44460 * conf/i386-ieee1275.rmk: Likewise.
44461 * conf/i386-linuxbios.rmk: Likewise.
44462 * conf/i386-pc.rmk: Likewise.
44463 * conf/powerpc-ieee1275.rmk: Likewise.
44464
a145ac2d 444652008-06-18 Pavel Roskin <proski@gnu.org>
44466
44467 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44468 kernel_elf_symlist.c to symlist.c for consistency with other
44469 architectures. Update all users.
44470 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44471
7847c51e 444722008-06-18 Robert Millan <rmh@aybabtu.com>
44473
44474 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44475 it in prefix.
44476
44477 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44478 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44479 a RAID device, run setup() for all members independently on whether
44480 LVM abstraction is being used.
44481 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44482 If grub-mkimage has set `*install_dos_part == -2', don't override this
44483 value.
44484 Perform *install_dos_part adjustments independently on whether
44485 we're embedding or not.
44486 Clarify error message when image is too big for embedding.
44487 Remove duplicate *install_dos_part stanza.
44488
b23e5644 444892008-06-17 Robert Millan <rmh@aybabtu.com>
44490
44491 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44492 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44493 variables.
44494 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44495 values in grub_ofconsole_normal_color and
44496 grub_ofconsole_highlight_color (they're not directly related to
44497 background and foreground).
44498 (grub_ofconsole_setcolorstate): Extract background and foreground
44499 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44500
0aac2f79 445012008-06-17 Robert Millan <rmh@aybabtu.com>
44502
44503 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44504 /boot/grub for the check in last commit, not /boot (they could be
44505 different partitions).
44506
3cca7ef3 445072008-06-16 Robert Millan <rmh@aybabtu.com>
44508
44509 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44510 asked to setup access for the same partition that provides /boot,
44511 don't bother using UUIDs since our root already has the value we
44512 want.
44513
347396d8 445142008-06-16 Robert Millan <rmh@aybabtu.com>
44515
44516 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44517 I2O devices.
44518 Patch from Sven Mueller <sven@debian.org>.
44519
991477f8 445202008-06-16 Robert Millan <rmh@aybabtu.com>
44521
44522 * util/update-grub.in: Check for $EUID instead of $UID.
44523 Reported by Vincent Zweije.
44524
d31a32a1 445252008-06-16 Bean <bean123ch@gmail.com>
44526
fe987087 44527 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 44528 (grub_ext2_read_block): Likewise.
44529 (grub_ext2_read_inode): Likewise.
44530 (grub_ext2_mount): Likewise.
44531 (grub_ext2_close): Likewise.
44532 (grub_ext3_get_journal): Removed.
44533
fe987087 44534 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 44535 (grub_reiserfs_read_symlink): Likewise.
44536 (grub_reiserfs_mount): Likewise.
44537 (grub_reiserfs_open): Likewise.
44538 (grub_reiserfs_read): Likewise.
44539 (grub_reiserfs_close): Likewise.
44540 (grub_reiserfs_get_journal): Removed.
44541
44542 * fs/fshelp.c (grub_fshelp_read): Removed.
44543 (grub_fshelp_map_block): Likewise.
44544
44545 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44546 (grub_fshelp_journal): Likewise.
44547 (grub_fshelp_read): Likewise.
44548 (grub_fshelp_map_block): Likewise.
44549
3540a760 445502008-06-16 Pavel Roskin <proski@gnu.org>
44551
44552 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44553 floating point anymore.
44554 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44555
95614c84 445562008-06-15 Pavel Roskin <proski@gnu.org>
44557
44558 * commands/ls.c (grub_ls_list_files): Use integer calculations
44559 for human readable format, avoid floating point use.
44560 * kern/misc.c (grub_ftoa): Remove.
44561 (grub_vsprintf): Remove floating point support.
44562
50465dd6 445632008-06-15 Robert Millan <rmh@aybabtu.com>
44564
fe6b695a 44565 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 44566 devices.
44567 Reported by Max Vozeler.
44568
a9207284 445692008-06-15 Robert Millan <rmh@aybabtu.com>
44570
44571 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44572 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44573 skipped later.
44574 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44575 the beginning of the prefix.
44576
44577 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44578 It is assumed that if we have a memdisk, grub-mkimage has set
44579 grub_prefix to include the "(memdisk)" drive in it.
44580
a7cbd45a 445812008-06-15 Robert Millan <rmh@aybabtu.com>
44582
44583 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44584 Initialize keyboard controller after registering the terminal, so that
44585 grub_printf() can be called from grub_keyboard_controller_init().
44586
21cf716a 445872008-06-15 Robert Millan <rmh@aybabtu.com>
44588
44589 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44590 extent-btree which is written as big endian on disk.
44591 Reported by Alain Greppin <al@chilibi.org>.
44592
23a64d8e 445932008-06-14 Robert Millan <rmh@aybabtu.com>
44594
44595 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44596 * util/i386/pc/grub-install.in (modules): Likewise.
44597
d687651c 445982008-06-13 Pavel Roskin <proski@gnu.org>
44599
44600 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44601
dfe9ddd4 446022008-06-13 Bean <bean123ch@gmail.com>
44603
44604 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44605
44606 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44607
44608 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44609 to indicate sparse block.
44610
16ae7781 446112008-06-12 Pavel Roskin <proski@gnu.org>
44612
e6d1a308 44613 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44614 number, grub_fshelp_read() does it for us.
44615
16ae7781 44616 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44617 linear disk read with journal translation.
44618 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44619 * include/grub/fshelp.h: Declare grub_fshelp_read().
44620
40fd3a2b 446212008-06-09 Pavel Roskin <proski@gnu.org>
44622
44623 * fs/minix.c (grub_minix_mount): Handle error reading
44624 superblock.
44625
f5679726 446262008-06-08 Robert Millan <rmh@aybabtu.com>
44627
44628 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44629 don't append the RAID prefix afterwards.
44630 Reported by Clint Adams.
44631
ce525529 446322008-06-08 Robert Millan <rmh@aybabtu.com>
44633
44634 Based on description from Pavel:
44635 * kern/disk.c (grub_disk_check_range): Rename to ...
44636 (grub_disk_adjust_range): ... this. Add a comment explaining the
44637 tasks performed by this function.
44638
ad4936a0 446392008-06-08 Robert Millan <rmh@aybabtu.com>
44640
44641 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44642 `num_serial' (for consistency with other variables).
44643 (struct grub_ntfs_data): Add `uuid' member.
44644 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44645 (grub_ntfs_uuid): New function.
44646 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44647
dc20b0f9 446482008-06-07 Pavel Roskin <proski@gnu.org>
44649
44650 * util/biosdisk.c (open_device): Revert last change to the
44651 function, it broke installation. The sector needs to be
44652 different dependent on which device is opened.
44653
c5e3cfba 446542008-06-06 Robert Millan <rmh@aybabtu.com>
44655
44656 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44657 rest of GRUB, and breakage doesn't happen if its value were modified.
44658
44659 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44660 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44661 a constant (same value).
44662 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44663 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44664
26a1f8c4 446652008-06-06 Robert Millan <rmh@aybabtu.com>
44666
44667 * util/biosdisk.c (open_device): Do not modify sector offset when
44668 accessing a partition. kern/disk.c already handles this for us.
44669
25d6b327 446702008-06-06 Robert Millan <rmh@aybabtu.com>
44671
44672 * util/grub-emu.c (grub_machine_init): Move code in this function from
44673 here ...
44674 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44675 segfault in case grub_printf() is called).
44676
44677 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44678 grub_probe. Update all users not to explicitly add it again.
44679 (grub_device): New variable; contains corresponding device for grubdir.
44680 (fs_module, partmap_module, devabstraction_module): Pass
44681 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44682 every time.
44683
9ece62fb 446842008-06-05 Robert Millan <rmh@aybabtu.com>
44685
44686 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44687 is found, print it (same layout as with labels).
44688
1ad36d37 446892008-06-04 Robert Millan <rmh@aybabtu.com>
44690
44691 * util/biosdisk.c (get_drive): Rename to ...
44692 (find_grub_drive): ... this. Update all users.
44693
44694 (get_os_disk): Rename to ...
44695 (convert_system_partition_to_system_disk): ... this. Update all users.
44696
44697 (find_drive): Rename to ...
44698 (find_system_device): ... this. Update all users.
44699
e6a30859 447002008-06-04 Robert Millan <rmh@aybabtu.com>
44701
44702 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44703 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44704 (make_device_map): Likewise.
44705
00c108a4 447062008-06-01 Robert Millan <rmh@aybabtu.com>
44707
44708 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44709 before dereferencing it.
44710
44711 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44712 union with fat12/fat16-specific ones. Add some new fields, including
44713 `num_serial' for both versions.
44714 (struct grub_fat_data): Add `uuid' member.
44715 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44716 names. Initialize `data->uuid' using `num_serial'.
44717 (grub_fat_uuid): New function.
44718 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44719
44720 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44721 (grub_reiserfs_uuid): New function.
44722 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44723 member.
44724
44725 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44726 (grub_xfs_uuid): New function.
44727 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44728
1385c5bb 447292008-06-01 Robert Millan <rmh@aybabtu.com>
44730
44731 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44732 code that is backward compatible with pre-uuid search command.
44733
c682dfd7 447342008-05-31 Robert Millan <rmh@aybabtu.com>
44735
44736 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44737 floppies after everything else, to ensure floppy drive isn't accessed
44738 unnecessarily (patch from Bean).
44739
b7db5d47 447402008-05-31 Robert Millan <rmh@aybabtu.com>
44741
44742 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44743 not print device names when we were asked to set a variable.
44744
6e037aa9 447452008-05-31 Robert Millan <rmh@aybabtu.com>
44746
44747 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44748 using "cursor-on" and "cursor-off" commands (understood at least by
44749 the Open Firmware flavour on OLPC).
44750
41305bc8 447512008-05-31 Michael Gorven <michael@gorven.za.net>
44752
44753 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44754 on and off sequences.
44755
69ba137e 447562008-05-31 Robert Millan <rmh@aybabtu.com>
44757
44758 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44759 * util/update-grub.in: Likewise.
44760
520ae21b 447612008-05-30 Pavel Roskin <proski@gnu.org>
44762
44763 * util/biosdisk.c (linux_find_partition): Simplify logic and
44764 make the code more universal. Keep special processing for
44765 devfs, but use a simple rule for all other devices. If the
44766 device ends with a number, append 'p' and the partition number.
44767 Otherwise, append only the partition number.
44768
5786569b 447692008-05-30 Robert Millan <rmh@aybabtu.com>
44770
44771 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44772 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44773 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44774 the `root' parameter to Linux.
44775
51500452 447762008-05-30 Robert Millan <rmh@aybabtu.com>
44777
44778 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44779 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44780 --fs_uuid with --fs-uuid.
44781 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44782 all filesystems support them).
44783
811d3878 447842008-05-30 Robert Millan <rmh@aybabtu.com>
44785
44786 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 44787 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 44788
cab63c95 447892008-05-30 Robert Millan <rmh@aybabtu.com>
44790
44791 * util/grub.d/00_header.in: Remove obsolete comment referencing
44792 convert_system_path_to_grub_path().
44793 * util/update-grub.in: Likewise.
44794 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44795 (convert_system_path_to_grub_path): Add a warning message explaining
44796 that this function is deprecated. Rely on is_path_readable_by_grub()
44797 for the readability checks.
44798 (font_path): Use is_path_readable_by_grub() for the readability
44799 check rather than convert_system_path_to_grub_path().
44800
972e2f7a 448012008-05-30 Robert Millan <rmh@aybabtu.com>
44802
44803 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44804 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44805 converting it first.
44806 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44807 grub.cfg for access to font file, and afterwards call it again to set
44808 the root device.
44809
62191274 448102008-05-30 Robert Millan <rmh@aybabtu.com>
44811
44812 * commands/search.c (options): Add --fs_uuid option.
44813 (search_fs_uuid): New function.
44814 (grub_cmd_search): Fix --set argument passing.
44815 Use search_fs_uuid() when requested via --fs_uuid.
44816 (grub_search_init): Update help message.
44817 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44818 and redeclare it as an array of 16-bit words.
44819 (grub_ext2_uuid): New function.
44820 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44821 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44822 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44823 (GRUB_DEVICE_BOOT_UUID): New variables.
44824 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44825 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44826 whenever possible.
44827 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44828 just assume `root' variable has the right value.
44829 * util/grub.d/10_linux.in: Likewise.
44830 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44831 via PRINT_FS_UUID.
44832 (main): Recognise `-t fs_uuid' argument.
44833
01b73ec8 448342008-05-30 Robert Millan <rmh@aybabtu.com>
44835
44836 * util/biosdisk.c (map): Redefine structure to hold information
44837 about GRUB drive name.
fe6b695a 44838 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 44839 drive names.
44840 (call_hook): Remove.
44841 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44842 member. Assume drive has partitions.
44843 (grub_util_biosdisk_open): Access device names via `.device' struct
44844 member.
44845 (open_device): Likewise.
44846 (find_drive): Likewise.
44847 (read_device_map): Adjust map[] usage to match the new struct
44848 definition. Don't check for duplicates (still possible, but not cheap
44849 anymore).
44850 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44851 (make_device_name): Remove assumption of BIOS-like drive names.
44852
22f16596 448532008-05-30 Pavel Roskin <proski@gnu.org>
44854
44855 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44856 compiling execute.c doesn't need grub_script.tab.h anymore.
44857 (normal/command.c_DEPENDENCIES): Likewise.
44858 (normal/function.c_DEPENDENCIES): Likewise.
44859 * conf/i386-ieee1275.rmk: Likewise.
44860 * conf/i386-linuxbios.rmk: Likewise.
44861 * conf/i386-pc.rmk: Likewise.
44862 * conf/powerpc-ieee1275.rmk: Likewise.
44863 * conf/sparc64-ieee1275.rmk: Likewise.
44864
528ad8f2 448652008-05-29 Pavel Roskin <proski@gnu.org>
44866
d1dff95d 44867 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44868 when scanning metadata for volume group name.
44869
528ad8f2 44870 * include/grub/script.h: Don't include grub_script.tab.h. It's
44871 a generated file, which may only be included from the files with
44872 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44873 use union YYSTYPE, as the later allows forward declaration.
44874 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44875
47248e08 448762008-05-29 Robert Millan <rmh@aybabtu.com>
44877
44878 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44879 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44880 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44881 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44882 scan codes.
44883
ee632529 448842008-05-29 Robert Millan <rmh@aybabtu.com>
44885
44886 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44887 control key combinations.
44888
eee96e08 448892008-05-29 Robert Millan <rmh@aybabtu.com>
44890
44891 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44892 * util/ieee1275/grub-install.in: ... to here.
44893 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44894 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44895 (grub_install_SOURCES): Likewise.
44896
da9a6a94 448972008-05-29 Robert Millan <rmh@aybabtu.com>
44898
44899 * fs/affs.c: Update copyright year.
44900 * fs/ext2.c: Likewise.
44901 * fs/fshelp.c: Likewise.
44902 * fs/hfsplus.c: Likewise.
44903 * fs/ntfs.c: Likewise.
44904 * fs/xfs.c: Likewise.
44905 * include/grub/fshelp.h: Likewise.
44906 * util/grub-mkdevicemap.c: Likewise.
44907
12e65f3a 449082008-05-28 Robert Millan <rmh@aybabtu.com>
44909
44910 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44911 might need to be fatfs to support some firmware implementations
44912 (e.g. OFW or EFI).
44913
23023641 449142008-05-28 Robert Millan <rmh@aybabtu.com>
44915
44916 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44917 devices.
44918 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44919 (make_device_map): Likewise.
44920
887d2619 449212008-05-20 Bean <bean123ch@gmail.com>
44922
44923 * fs/fshelp.c (grub_fshelp_map_block): New function.
44924 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44925 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44926
44927 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44928 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44929 (grub_fshelp_journal): New structure.
44930 (grub_fshelp_map_block): New function prototype.
44931 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44932 (grub_fshelp_map_block): Likewise.
44933
44934 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44935 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44936 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44937 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44938 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44939 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44940 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44941 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44942 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44943 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44944 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44945 (grub_ext2_sblock): New members for journal support.
44946 (grub_ext3_journal_header): New structure.
44947 (grub_ext3_journal_revoke_header): Likewise.
44948 (grub_ext3_journal_block_tag): Likewise.
44949 (grub_ext3_journal_sblock): Likewise.
44950 (grub_fshelp_node): New members logfile and journal.
44951 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44952 grub_fshelp_map_block to get real block number.
44953 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44954 number.
44955 (grub_ext2_read_inode): Likewise.
44956 (grub_ext3_get_journal): New function.
44957 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44958 (grub_ext2_close): Release memory used by journal.
44959
44960 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44961 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44962 (grub_reiserfs_transaction_header): Renamed to
44963 grub_reiserfs_description_block, replace field data with real_blocks.
44964 (grub_reiserfs_commit_block): New structure.
44965 (grub_reiserfs_data): New member journal.
44966 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44967 number.
44968 (grub_reiserfs_read_symlink): Likewise.
44969 (grub_reiserfs_iterate_dir): Likewise.
44970 (grub_reiserfs_open): Likewise.
44971 (grub_reiserfs_read): Likewise.
44972 (grub_reiserfs_get_journal): New function.
44973 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44974 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44975 using grub_reiserfs_get_journal.
44976 (grub_reiserfs_close): Release memory used by journal.
44977
44978 * fs/affs.c (grub_affs_read_block): Change block type to
44979 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44980
44981 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44982
44983 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44984
44985 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44986
44987 * fs/udf.c (grub_udf_read_block): Change block type to
44988 grub_disk_addr_t. Use type cast to avoid warning.
44989
44990 * fs/xfs.c (grub_xfs_read_block): Likewise.
44991
b7c6bed5 449922008-05-16 Christian Franke <franke@computer.org>
44993
44994 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44995 to ensure that break with ESC will always work.
44996 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44997 Remove ESC from keyboard queue.
44998
eedf167f 449992008-05-16 Christian Franke <franke@computer.org>
45000
45001 * util/biosdisk.c: [__CYGWIN__] Add includes.
45002 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
45003 (get_os_disk): Move variable declarations to OS specific
45004 parts to avoid warning.
45005 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
45006 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
45007 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
45008 Cygwin.
45009 * util/getroot.c: [__CYGWIN__] Add includes.
45010 (strip_extra_slashes): Fix "/" case.
45011 [__CYGWIN__] (get_win32_path): New function.
45012 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
45013 [__CYGWIN__] (find_root_device): Disable.
45014 [__CYGWIN__] (get_bootsec_serial): New function.
45015 [__CYGWIN__] (find_cygwin_root_device): Likewise.
45016 [__linux__] (grub_guess_root_device): Add early returns to simplify
45017 structure.
45018 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
45019 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
45020 check for Linux only.
45021
a079699e 450222008-05-15 Bean <bean123ch@gmail.com>
45023
45024 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
45025 keyboard hang problem in apple's intel mac.
45026
1cf4059a 450272008-05-09 Robert Millan <rmh@aybabtu.com>
45028
45029 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
45030 devices.
45031 * util/grub-mkdevicemap.c (get_virtio_disk_name)
45032 (make_device_map): Likewise.
45033 Reported by Aurelien Jarno <aurel32@debian.org>
45034
ed759390 450352008-05-07 Ian Campbell <ijc@hellion.org.uk>
45036
45037 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
45038 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
45039 (make_device_map): Output entries for xvd type disks.
45040
b56c4eaa 450412008-05-07 Robert Millan <rmh@aybabtu.com>
45042
45043 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
45044 devices.
45045 * util/grub-mkdevicemap.c (get_cciss_disk_name)
45046 (make_device_map): Likewise.
45047 Reported by Roland Dreier <rdreier@cisco.com>
45048
7f8866ed 450492008-05-07 Robert Millan <rmh@aybabtu.com>
45050
45051 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
45052 grub_strstr() call. Correct a few mistakes in failure path handling.
45053
b0346e0f 450542008-05-06 Robert Millan <rmh@aybabtu.com>
45055
45056 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
45057 Do not print a trailing slash (therefore, the root directory is an
45058 empty string).
45059 (convert_system_path_to_grub_path): Do not remove trailing slash
45060 from make_system_path_relative_to_its_root() output.
45061
45062 * util/i386/pc/grub-install.in: Add trailing slash to output from
45063 make_system_path_relative_to_its_root().
45064
6cf12cbd 450652008-05-06 Robert Millan <rmh@aybabtu.com>
45066
45067 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45068 ensures that output lines aren't intermangled with those sent to
45069 stderr (via grub_util_info()).
45070 * util/grub-probe.c (grub_refresh): Likewise.
45071 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45072
0fbb3117 450732008-05-05 Christian Franke <franke@computer.org>
45074
45075 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45076 Add Cygwin device names.
45077 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45078 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45079 (check_device): Return error instead of success on empty name.
45080 (make_device_map): Move label inside linux specific code to
45081 prevent compiler warning.
45082
8124cdb7 450832008-04-30 Robert Millan <rmh@aybabtu.com>
45084
45085 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45086 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45087 first boot option.
45088 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45089
094c01d0 450902008-04-29 Robert Millan <rmh@aybabtu.com>
45091
45092 * docs/grub.cfg: New file (example GRUB configuration).
45093
f4b1fc02 450942008-04-26 Robert Millan <rmh@aybabtu.com>
45095
329ce2a5 45096 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45097 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45098 and `disk/ieee1275/nand.c'.
f4b1fc02 45099
25f16ec1 451002008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 45101
25f16ec1 45102 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45103 i386-linuxbios.
45104
45105 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45106 change the buffer size to 4096 for cdrom device.
45107
45108 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45109 and nand.mod.
45110 (_linux_mod_SOURCES): New variable.
45111 (_linux_mod_CFLAGS): Likewise.
45112 (_linux_mod_LDFLAGS): Likewise.
45113 (linux_mod_SOURCES): Likewise.
45114 (linux_mod_CFLAGS): Likewise.
45115 (linux_mod_LDFLAGS): Likewise.
45116 (nand_mod_SOURCES): Likewise.
45117 (nand_mod_CFLAGS): Likewise.
45118 (nand_mod_LDFLAGS): Likewise.
45119
45120 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45121 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45122 type property. (nand device in olpc don't have this property)
45123
45124 * include/grub/disk.h (grub_disk_dev_id): New macro
45125 GRUB_DISK_DEVICE_NAND_ID.
45126
45127 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45128 function prototype.
45129 (grub_rescue_cmd_initrd): Likewise.
45130
45131 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45132 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45133 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 45134
25f16ec1 45135 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45136 GRUB_MACHINE_IEEE1275 is defined.
45137
45138 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45139 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45140
45141 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45142 on nested function heap_init.
45143 (grub_upper_mem): New variable for i386-ieee1275.
45144 (grub_get_extended_memory): New function for i386-ieee1275.
45145 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45146
45147 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45148 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45149 property.
f19dbdb7 45150
25f16ec1 45151 * loader/i386/ieee1275/linux.c: New file.
45152
45153 * loader/i386/ieee1275/linux_normal.c: New file.
45154
45155 * disk/ieee1275/nand.c: New file.
45156
e89d61e9 451572008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45158
45159 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45160 value.
45161 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45162
602566f6 451632008-04-18 Robert Millan <rmh@aybabtu.com>
45164
45165 Restructures early code path on ieee1275 to unify grub_main() as
45166 the first C function that is executed in every platform.
45167
45168 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45169 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45170 cmain().
45171 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45172 * kern/ieee1275/cmain.c (cmain): Rename to ...
45173 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45174 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45175 at the beginning.
45176
57490c2b 451772008-04-18 Robert Millan <rmh@aybabtu.com>
45178
45179 * util/update-grub.in: Fix syntax error when setting
45180 `GRUB_PRELOAD_MODULES'.
45181 Reported by Stephane Chazelas <stephane@artesyncp.com>
45182
1977517d 451832008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45184
45185 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45186 section into account, newer toolchains generate unique build ids
45187 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 45188 we want build ids to be preserved
1977517d 45189 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45190 far from other sections don't cause the raw binary images grow
45191 size
45192
bfb1f1a2 451932008-04-15 Robert Millan <rmh@aybabtu.com>
45194
45195 * disk/lvm.c: Update copyright year.
45196 * kern/misc.c: Likewise.
45197
01979850 451982008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45199
45200 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 45201 there is no memory left for physical volume name.
01979850 45202
0a1150e2 452032008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45204
45205 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45206 volume name mapping to support bigger than 9 character names properly.
45207
82ead3fe 452082008-04-13 Robert Millan <rmh@aybabtu.com>
45209
45210 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45211 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45212
e54a72f5 452132008-04-13 Christian Franke <franke@computer.org>
45214
45215 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45216 to create a floppy emulation boot CD when non emulation mode
45217 does not work.
45218 Enable Joliet CD filesystem extension.
45219
9fe86034 452202008-04-13 Robert Millan <rmh@aybabtu.com>
45221
45222 * kern/misc.c (grub_strncat): Fix off-by-one error.
45223 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45224
45225 * kern/env.c (grub_env_context_close): Clear current context, not
45226 previous one.
45227 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45228
45229 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45230
7ceeee39 452312008-04-13 Robert Millan <rmh@aybabtu.com>
45232
45233 Improve robustness when handling LVM.
45234
45235 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 45236 (and leave `*p' unmodified).
7ceeee39 45237 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45238 through it.
45239 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45240 iterating through it.
45241 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45242 through it.
fe6b695a 45243 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 45244 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45245 Don't assume `vg->pvs != NULL' when iterating through it.
45246
58cd3d85 452472008-04-13 Robert Millan <rmh@aybabtu.com>
45248
45249 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45250 * genmk.rb (partmap): New variable.
45251 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45252 (#{partmap}): New target rule.
45253 * genpartmaplist.sh: New file.
45254 * Makefile.in (pkglib_DATA): Add partmap.lst.
45255 (partmap.lst): New target rule.
45256 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45257 modules (including all partition maps), instead of preloading them.
45258
78b51059 452592007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45260
45261 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45262 `linux-boot-prober' (if installed) to detect other operating
45263 systems which are installed on the computer and add them to
45264 the boot menu.
45265 * conf/common.rmk: Build and install 30_os-prober.
45266
a91627b4 452672008-04-12 Robert Millan <rmh@aybabtu.com>
45268
45269 * kern/powerpc/ieee1275/init.c: Move from here ...
45270 * kern/ieee1275/init.c: ... to here. Update all users.
45271
45272 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45273 * kern/ieee1275/cmain.c: ... to here. Update all users.
45274
45275 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45276 * kern/ieee1275/openfw.c: ... to here. Update all users.
45277
45278 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45279 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45280
322562ea 452812008-04-10 Pavel Roskin <proski@gnu.org>
45282
45283 * configure.ac: Always use "_cv_" in cache variables for
45284 compatibility with Autoconf 2.62.
45285
a02a73c5 452862008-04-07 Robert Millan <rmh@aybabtu.com>
45287
45288 Revert grub/machine/init.h addition by Pavel (since it breaks on
45289 i386-ieee1275 and others):
45290 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45291 * util/powerpc/ieee1275/misc.c: Likewise.
45292
25c024b1 452932008-04-07 Robert Millan <rmh@aybabtu.com>
45294
45295 * util/grub-probe.c (probe): Improve error message.
45296
3cbd2f98 452972008-04-07 Robert Millan <rmh@aybabtu.com>
45298
45299 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45300 (this prevents the presence of a bogus entry from ruining the whole
45301 thing).
45302
87a297bf 453032008-04-06 Pavel Roskin <proski@gnu.org>
45304
36747a62 45305 * util/biosdisk.c: Include grub/util/biosdisk.h.
45306 * util/grub-fstest.c (execute_command): Make static.
45307 * util/grub-mkdevicemap.c (check_device): Likewise.
45308 * util/i386/pc/misc.c: Include grub/machine/init.h.
45309 * util/powerpc/ieee1275/misc.c: Likewise.
45310 * util/lvm.c: Include grub/util/lvm.h.
45311 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45312 grub/cache.h.
45313 * util/raid.c: Include grub/util/raid.h.
45314 (grub_util_getdiskname): Make static.
45315
87a297bf 45316 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45317 grub_hostfs_fini(), as they are called from grub_init_all() and
45318 grub_fini_all() respectively. This fixes an infinite loop in
45319 grub-fstest due to double registration of hostfs.
45320 Reported by Christian Franke <Christian.Franke@t-online.de>
45321
f6ce7629 453222008-04-05 Pavel Roskin <proski@gnu.org>
45323
45324 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45325 all 8 functions. Otherwise, probe function 0 only.
45326
070e49e4 453272008-04-04 Pavel Roskin <proski@gnu.org>
45328
8b088a4c 45329 * commands/lspci.c (grub_lspci_iter): Print the bus number
45330 correctly.
45331
4f657021 45332 * commands/lspci.c (grub_pci_classes): Fix typos.
45333 (grub_lspci_iter): Don't print func twice. Print vendor ID
45334 before device ID, as it's normally done.
45335
070e49e4 45336 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45337 Fix signedness warnings.
45338 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45339 Likewise.
45340 * util/ieee1275/get_disk_name.c: Include config.h so that
45341 _GNU_SOURCE is defined and getline() is declared. Mark an
45342 unused argument as such. Fix a signedness warning.
45343
ba7328dc 453442008-04-02 Pavel Roskin <proski@gnu.org>
45345
26887f22 45346 * genkernsyms.sh.in: Use more robust assignments for CC and
45347 srcdir. Quote srcdir.
45348 * gensymlist.sh.in: Likewise. Assert at the compile time that
45349 the symbol table is not empty.
45350
ba7328dc 45351 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45352 * fs/cpio.c (grub_cpio_read): Likewise.
45353
0f582c6b 453542008-04-01 Pavel Roskin <proski@gnu.org>
45355
4b6e1995 45356 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45357 * disk/host.c (grub_host_open): Likewise.
45358 * disk/loopback.c (grub_loopback_open): Likewise.
45359 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45360 disk->id as in disk/host.c, not a multi-character constant.
45361
828a2768 45362 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45363 later is obsolete, potentially dangerous and sets a bad example.
45364 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45365 * util/misc.c (grub_util_get_image_size): Likewise.
45366
2bb4fb47 45367 * disk/loopback.c (options): Improve help for "--partitions".
45368
0f582c6b 45369 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45370 options to align them with the short options, e.g. "echo -e".
45371
a33224e0 453722008-03-31 Bean <bean123ch@gmail.com>
45373
45374 * video/reader/png.c (grub_png_data): New member is_16bit and
45375 image_data.
45376 (grub_png_decode_image_header): Detect 16 bit png image.
45377 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45378 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45379 (grub_video_reader_png): Release memory occupied by image_data.
45380
45381 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45382 4096 bytes.
45383 (grub_nfs_mount): Skip the test for sector per cluster.
45384
45385 * include/grub/ntfs.h (MAX_SPC): Removed.
45386
86cb4f54 453872008-03-31 Bean <bean123ch@gmail.com>
45388
45389 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45390 (grub_probe_SOURCES): Add fs/afs.c.
45391 (grub_fstest_SOURCES): Likewise.
45392 (afs_mod_SOURCES): New variable.
45393 (afs_mod_CFLAGS): Likewise.
45394 (afs_mod_LDFLAGS): Likewise.
45395
45396 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45397 (grub_emu_SOURCES): Likewise.
45398
45399 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45400
45401 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45402
45403 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45404
45405 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45406
45407 * fs/afs.c: New file.
45408
17c74c21 454092008-03-30 Pavel Roskin <proski@gnu.org>
45410
4cb68e89 45411 * disk/host.c: Include grub/misc.h to fix a warning.
45412 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45413 warnings about implicit declarations.
45414
8790bb04 45415 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45416 variable.
45417 * include/grub/i386/loader.h: Change declaration of
45418 grub_linux_boot() to match what grub_loader_set() expects.
45419 * util/getroot.c (grub_guess_root_device): Return const char* to
45420 fix a warning.
45421 * util/grub-probe.c (probe): Fix a warning about uninitialized
45422 abstraction_name variable.
45423 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45424 second argument as unused to fix a warning.
45425
9a3f3296 45426 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45427 missing grub_error() call.
45428
0ecef90d 45429 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45430 2.60 and newer uses it to define datadir.
45431
0bf6d401 45432 * commands/sleep.c: Fix warning about implicit declaration.
45433 * disk/memdisk.c: Likewise.
45434 * loader/aout.c: Likewise.
45435 * loader/i386/bsd_normal.c: Likewise.
45436 * util/grub-probe.c: Likewise.
45437
7cdacf97 45438 * commands/i386/cpuid.c (has_longmode): Make static.
45439 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45440 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45441
17c74c21 45442 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45443 GDT. This is more robust, as %ds can change.
45444 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45445 calling real_to_prot().
45446 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45447
80a3e68b 454482008-03-28 Pavel Roskin <proski@gnu.org>
45449
45450 * kern/i386/pc/startup.S: Assert that uncompressed functions
45451 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45452 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45453 code, as they push parts of the code (error handlers) beyond
45454 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45455 code as correctness and size.
45456
77bcd272 454572008-03-28 Pavel Roskin <proski@gnu.org>
45458
45459 * kern/i386/pc/startup.S
45460 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45461 data block address to the real mode, keep offset minimal. This
45462 works around a bug in AWARD BIOS on old Athlon systems, which
45463 makes CD detection hang.
45464
c5dfd43b 454652008-03-26 Pavel Roskin <proski@gnu.org>
45466
45467 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45468 const.
45469 * include/grub/normal.h: Add grub_parse_color_name_pair()
45470 declaration.
45471
bf962df2 454722008-03-24 Bean <bean123ch@gmail.com>
45473
45474 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45475 (cd_count): Removed.
45476 (cd_drive): New variable.
45477 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45478 (grub_biosdisk_call_hook): Likewise.
45479 (grub_biosdisk_iterate): Change cdrom detection method.
45480 (grub_biosdisk_open): Replace cd_start with cd_drive.
45481 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45482 detect cdrom device.
45483
45484 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45485 Removed.
45486 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45487 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45488 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45489 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45490 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45491 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45492 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45493 (grub_biosdisk_cdrp): New structure.
45494 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45495
45496 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45497
45498 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45499 device.
45500
45501 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45502 New function.
45503
68e7fc7a 455042008-03-20 Robert Millan <rmh@aybabtu.com>
45505
45506 Remove 2 TiB limit in ata.mod.
45507 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45508 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45509 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45510 grub_uint64_t instead of grub_uint32_t.
45511
38ad2cf5 455122008-03-05 Bean <bean123ch@gmail.com>
45513
45514 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45515 (grub_multiboot): Set boot device.
45516
45517 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45518
2b89344e 455192008-03-02 Bean <bean123ch@gmail.com>
45520
45521 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45522 symlink_buffer.
45523
87a95d1f 455242008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45525
45526 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45527 texinfo.tex.
45528
45529 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45530 modified.
45531
45532 * docs/fdl.texi: New file.
f19dbdb7 45533
87a95d1f 45534 * docs/mdate-sh: New file. Copied from gnulib.
45535 * docs/texinfo.tex: Likewise.
45536
45537 * config.guess: Updated from gnulib.
45538 * install-sh: Likewise.
45539
7dc15d8e 455402008-02-28 Robert Millan <rmh@aybabtu.com>
45541
45542 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45543 (aout_mod_SOURCES): New variable.
45544 (aout_mod_CFLAGS): Likewise.
45545 (aout_mod_LDFLAGS): Likewise.
45546
45547 * conf/i386-ieee1275.rmk: Likewise.
45548
b00ab696 455492008-02-28 Robert Millan <rmh@aybabtu.com>
45550
45551 * util/update-grub.in: Reorganise terminal validity check. Accept
45552 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45553 Based on suggestion by Franklin PIAT.
45554
79ca2d78 455552008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45556
45557 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45558 function.
45559 * util/getroot.c (grub_util_check_block_device): New function that
45560 returns the given argument if it is a block device and returns NULL else.
45561 * util/grub-probe.c (argument_is_device): New variable.
45562 (probe): Promote device_name from a variable to an argument. Receive
45563 device_name from grub_util_check_block_device() if path is NULL and from
45564 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 45565 (options): Introduce new parameter '-d, --device'.
79ca2d78 45566 (main): Add description of the new parameter to the help screen.
45567 Rename path variable to argument. Set argument_is_device if the '-d'
45568 option is given. Pass argument to probe() depending on
45569 argument_is_device.
45570
0d16e571 455712008-02-24 Bean <bean123ch@gmail.com>
45572
45573 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45574 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45575 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45576 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45577 (GRUB_ISO9660_VOLDESC_END): Likewise.
45578 (grub_iso9660_primary_voldesc): New member escape.
45579 (grub_iso9660_data): New member joliet.
45580 (grub_iso9660_convert_string): New function.
45581 (grub_iso9660_mount): Detect joliet extension.
45582 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45583 (grub_iso9660_iso9660_label): Likewise.
45584
45585 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45586 (grub_setup_SOURCES): Add fs/udf.c.
45587 (grub_fstest_SOURCES): Likewise.
45588 (udf_mod_SOURCES): New variable.
45589 (udf_mod_CFLAGS): Likewise.
45590 (udf_mod_LDFLAGS): Likewise.
45591
45592 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45593 (grub_emu_SOURCES): Likewise.
45594
45595 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45596
45597 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45598
45599 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45600
45601 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45602
45603 * fs/udf.c: New file.
45604
8a594a17 456052008-02-24 Robert Millan <rmh@aybabtu.com>
45606
45607 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45608 (normal/lexer.c_DEPENDENCIES): New variables.
45609 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45610 (normal/lexer.c_DEPENDENCIES): Likewise.
45611 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45612 (normal/lexer.c_DEPENDENCIES): Likewise.
45613 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45614 (normal/lexer.c_DEPENDENCIES): Likewise.
45615 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45616 (normal/lexer.c_DEPENDENCIES): Likewise.
45617 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45618 (normal/lexer.c_DEPENDENCIES): Likewise.
45619
2dc33c03 456202008-02-23 Robert Millan <rmh@aybabtu.com>
45621
45622 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45623 since they were intended to be in hex. This didn't break previously
45624 because of a bug in gpt_partition_map_iterate() (see below).
45625
45626 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45627 when checking the validity of GPT header.
45628 Remove `partno', since it always provides the same information as `i'.
45629
f6f4cfb0 456302008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45631
45632 * include/grub/efi/time.h: Fix a wrong comment.
45633
79ff665f 456342008-02-19 Pavel Roskin <proski@gnu.org>
45635
45636 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45637 message.
45638
d38e24c2 456392008-02-19 Bean <bean123ch@gmail.com>
45640
45641 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45642 (aout_mod_SOURCES): New variable.
45643 (aout_mod_CFLAGS): Likewise.
45644 (aout_mod_LDFLAGS): Likewise.
45645 (_bsd_mod_SOURCES): New variable.
45646 (_bsd_mod_CFLAGS): Likewise.
45647 (_bsd_mod_LDFLAGS): Likewise.
45648 (bsd_mod_SOURCES): New variable.
45649 (bsd_mod_CFLAGS): Likewise.
45650 (bsd_mod_LDFLAGS): Likewise.
45651
45652 * include/grub/aout.h: New file.
45653
45654 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45655
45656 * include/grub/i386/bsd.h: New file.
45657
45658 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45659 to make it public.
45660
45661 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45662 function is called, so that it's possible to change it inside the hook.
45663 (grub_elf64_load): Likewise.
45664 (grub_elf_file): Don't close the file if elf header is not found.
45665 (grub_elf_close): Close the file if grub_elf_file fails (The new
45666 grub_elf_file won't close it).
45667 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45668 (grub_elf64_size): Likewise.
45669
45670 * kern/i386/loader.S (grub_unix_real_boot): New function.
45671
45672 * loader/aout.c: New file.
45673
45674 * loader/i386/bsd.c: New file.
45675
45676 * loader/i386/bsd_normal.c: New file.
45677
45678 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45679
45680 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 45681 can test other formats.
d38e24c2 45682
b93bdb0f 456832008-02-19 Robert Millan <rmh@aybabtu.com>
45684
45685 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45686 (grub_gpt_partition_type_empty): Redefine with macro from
45687 `<grub/gpt_partition.h>'.
45688 (gpt_partition_map_iterate): Adjust partition type comparison.
45689
45690 Export `entry' as partmap-specific `part.data' struct.
45691 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45692
45693 * include/grub/gpt_partition.h (grub_gpt_header)
45694 (grub_gpt_partentry): ... to here (new file).
45695
45696 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45697
45698 (grub_gpt_partition_type_bios_boot): New const variable, defined
45699 with macro from `<grub/gpt_partition.h>'.
45700
45701 (setup): Replace `first_start' with `embed_region', which keeps
45702 track of the embed region (and is partmap-agnostic).
45703
45704 Replace find_first_partition_start() with find_usable_region(),
45705 which finds a usable region for embedding using partmap-specific
45706 knowledge (supports PC/MSDOS and GPT).
45707
45708 Fix all assumptions that the embed region start at sector 1, using
45709 `embed_region.start' from now on. Similarly, use `embed_region.end'
45710 rather than `first_start' to calculate available size.
45711
45712 In grub_util_info() message, replace "into after the MBR" with an
45713 indication of the specific sector our embed region starts at.
45714
66cb40f6 457152008-02-19 Robert Millan <rmh@aybabtu.com>
45716
45717 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45718 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45719 `commands/reboot.c'.
45720 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45721 (halt_mod_SOURCES): Likewise.
45722 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45723 (halt_mod_SOURCES): Likewise.
45724
b7202015 457252008-02-17 Christian Franke <franke@computer.org>
45726
45727 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45728
32b0fc49 457292008-02-17 Robert Millan <rmh@aybabtu.com>
45730
45731 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45732 set `first_start' to 0 for non-PC/MSDOS partition maps.
45733
aca63502 457342008-02-16 Robert Millan <rmh@aybabtu.com>
45735
45736 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45737 do not assume partition map is PC/MSDOS before performing checks that
45738 are specific to that layout.
45739
0de8be86 457402008-02-13 Robert Millan <rmh@aybabtu.com>
45741
45742 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45743 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45744 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45745
c3db8364 457462008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45747
45748 * configure.ac: Only a cosmetic change on the handling of
45749 -fno-stack-protector.
45750
f714229e 457512008-02-12 Alexandre Boeglin <alex@boeglin.org>
45752
c3db8364 45753 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45754 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45755 reboot.c.
f714229e 45756 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45757 (halt_mod_SOURCES): New variable.
45758 (halt_mod_CFLAGS): Likewise.
45759 (halt_mod_LDFLAGS): Likewise.
45760 (reboot_mod_SOURCES): Likewise.
45761 (reboot_mod_CFLAGS): Likewise.
45762 (reboot_mod_LDFLAGS): Likewise.
45763
c3db8364 45764 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45765 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45766 reboot.c.
f714229e 45767 (halt_mod_SOURCES): Likewise.
45768 (reboot_mod_SOURCES): Likewise.
45769
c3db8364 45770 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45771 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 45772 (reboot_mod_SOURCES): Likewise.
45773
45774 * commands/i386/pc/reboot.c: merge this file ...
45775
45776 * commands/ieee1275/reboot.c: ... and this file ...
45777
45778 * commands/reboot.c: ... to this file.
c3db8364 45779 Add some precompiler directive to include the correct header for
45780 each machine.
f714229e 45781
45782 * commands/ieee1275/halt.c: move this file ...
45783
45784 * commands/halt.c: ... to here.
c3db8364 45785 Add some precompiler directive to include the correct header for
45786 each machine.
f714229e 45787
45788 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45789 (grub_halt): Likewise.
45790
45791 * kern/efi/efi.c (grub_reboot): New function.
45792 (grub_halt): Likewise.
45793
c74493e0 457942008-02-12 Robert Millan <rmh@aybabtu.com>
45795
45796 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45797 /dev (like it is done for /dev/mapper). This doesn't provide support
45798 for EVMS, but at least it is now easy to identify the problem when it
45799 arises.
45800
d0db4b04 458012008-02-11 Robert Millan <rmh@aybabtu.com>
45802
45803 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45804 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45805 comparing it with -1, not 0.
45806
bf748642 458072008-02-10 Robert Millan <rmh@aybabtu.com>
45808
45809 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45810 `disk/lvm.c'.
45811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45812 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45813
45814 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45815 `disk/lvm.c' to the end of the list.
45816 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45817 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45818
b5db202a 458192008-02-10 Robert Millan <rmh@aybabtu.com>
45820
45821 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45822 grub_print_error() instead. This will let user know why we're entering
45823 rescue mode.
45824 Based on suggestions from Sam Morris.
45825
83abee31 458262008-02-10 Alexandre Boeglin <alex@boeglin.org>
45827
45828 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45829 on remaining N args, instead of "--" arg N times.
45830
78d5a08b 458312008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45832
45833 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45834 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45835 pattern for unknown glyphs.
45836
68807e5f 458372008-02-09 Robert Millan <rmh@aybabtu.com>
45838
45839 * configure.ac: Probe for `help2man'.
45840 * Makefile.in (builddir): New variable.
45841 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45842 or otherwise add a few flags/options to it.
45843 (install-local): For every executable utility or script that is
45844 installed, invoke $(HELP2MAN) to install a manpage based on --help
45845 output.
45846
45847 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45848 that it doesn't prevent --help from working in build tree.
45849
45850 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45851 with `bug-grub@gnu.org'.
45852 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45853 * util/update-grub.in (usage): New function.
45854 Implement proper argument check, with support for --help and --version
45855 (as well as existing -y).
45856
458572008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 45858
45859 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45860 avoid overwriting previous output.
45861 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45862
c1962162 458632008-02-09 Robert Millan <rmh@aybabtu.com>
45864
45865 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45866 drawing the menu.
45867
3dac2e3f 458682008-02-09 Robert Millan <rmh@aybabtu.com>
45869
45870 * commands/sleep.c: New file.
45871 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45872 (sleep_mod_SOURCES): New variable.
45873 (sleep_mod_CFLAGS): Likewise.
45874 (sleep_mod_LDFLAGS): Likewise.
45875
7a634e08 458762008-02-09 Robert Millan <rmh@aybabtu.com>
45877
45878 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45879 situations in which we can deduce the RAID size and the superblock
45880 doesn't match it.
45881
b92f0c18 458822008-02-09 Robert Millan <rmh@aybabtu.com>
45883
45884 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45885 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45886 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45887
45888 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45889 and return a grub_diskmemberlist_t composed of physical array members.
45890 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45891
45892 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45893 prototype.
45894 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45895 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45896 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45897
45898 * util/grub-probe.c (probe): Move partmap probing code from here ...
45899 (probe_partmap): ... to here.
45900 (probe): Use probe_partmap() once for the disk we're probing, and
45901 additionally, when such disk contains a memberlist() struct member,
45902 once for each disk that is contained in the structure returned by
45903 memberlist().
45904
91a4bf68 459052008-02-09 Robert Millan <rmh@aybabtu.com>
45906
45907 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45908 environment variable to 'all' in order to obtain debug output from
45909 non-util/ code.
45910 * util/i386/pc/grub-setup.c (main): Likewise.
45911
a96f9caa 459122008-02-08 Robert Millan <rmh@aybabtu.com>
45913
45914 * disk/raid.c (grub_raid_scan_device): Check for
45915 `array->device[sb.this_disk.number]' rather than for
45916 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 45917 guaranteed to be accessible.
a96f9caa 45918
b37a9222 459192008-02-08 Robert Millan <rmh@aybabtu.com>
45920
45921 * disk/raid.c: Update copyright.
45922 * fs/cpio.c: Likewise.
45923 * include/grub/raid.h: Likewise.
45924 * loader/i386/pc/multiboot.c: Likewise.
45925 * util/hostfs.c: Likewise.
45926
5626aee1 459272008-02-08 Robert Millan <rmh@aybabtu.com>
45928
45929 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45930 to a grub_disk_t array.
45931 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45932 `device[x]'.
45933 (grub_raid_scan_device): Replace `device[x].name' accesses with
45934 `device[x]->name'. Simplify initialization of `array->device[x]'.
45935
554f0187 459362008-02-08 Robert Millan <rmh@aybabtu.com>
45937
45938 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45939 grub_dprintf() calls.
45940 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45941 error message.
45942
1ec8425d 459432008-02-07 Christian Franke <franke@computer.org>
45944
45945 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45946 instead of fseek and ftell to support large files.
45947 (grub_hostfs_read): Likewise.
45948
f2156fda 459492008-02-07 Robert Millan <rmh@aybabtu.com>
45950
45951 Patch from Jeroen Dekkers.
45952 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 45953 failure, since successfully reading all array members might not be
f2156fda 45954 required.
45955
9216e0e7 459562008-02-06 Robert Millan <rmh@aybabtu.com>
45957
45958 * util/grub-probe.c (probe): Simplify partmap probing (with the
45959 assumption that the first word up to the underscore equals to
45960 the module name).
45961
b0dfd29a 459622008-02-06 Christian Franke <franke@computer.org>
45963
45964 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45965 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45966 last block of a cpio or tar stream.
45967 Check for "TRAILER!!!" instead of any empty data
45968 block to detect last block of a cpio stream.
45969 (grub_cpio_dir): Fix constness of variable np.
45970 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45971 cpio or tar trailer is detected. This fixes a crash
45972 on open of a non existing file.
45973
c32865bf 459742008-02-05 Bean <bean123ch@gmail.com>
45975
45976 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45977 address of entry.
45978 (grub_multiboot_load_elf64): Likewise.
45979 (grub_multiboot): Initialize mbi structure.
45980
45981 * util/grub-fstest.c: Don't include unused header file script.h.
45982
fe6b695a 45983 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 45984 of file.
45985 (grub_fstest_SOURCES): Likewise.
45986
409480b7 459872008-02-05 Robert Millan <rmh@aybabtu.com>
45988
45989 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45990 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45991 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45992 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45993
45994 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45995 (translation_table): Replace hardcoded values with macros
45996 provided by `<grub/term.h>'.
45997
45998 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45999 (keyboard_map): Correct/add a few values, with macros provided
46000 by `<grub/term.h>'.
46001 (keyboard_map_shift): Zero values that don't differ from their
46002 `keyboard_map' equivalents.
46003 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
46004 Discard the second scan code that is always sent by Caps lock.
46005 Only use `keyboard_map_shift' when it provides a non-zero value,
46006 otherwise fallback to `keyboard_map'.
46007
99fadbaa 460082008-02-04 Bean <bean123ch@gmail.com>
46009
46010 * Makefile.in (enable_grub_fstest): New variable.
46011
46012 * conf/common.rmk (grub_fstest_init.lst): New rule.
46013 (grub_fstest_init.h): Likewise.
46014 (grub_fstest_init.c): Likewise.
46015 (util/grub-fstest.c_DEPENDENCIES): New variable.
46016 (grub_fstest_SOURCES): Likewise.
46017
46018 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
46019
46020 * util/grub-fstest.c: New file.
46021
bf567c50 460222008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46023
46024 Make grub-setup handle a separate root device.
f19dbdb7 46025
bf567c50 46026 * util/i386/pc/grub-setup.c (setup): Always open the root device,
46027 so that the root device can be compared with the destination
46028 device.
46029 When embedding the core image, if the root and destination devices
46030 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
46031 0xFF.
46032 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 46033
9be6b98b 460342008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46035
46036 Add support for having a grub directory in a different drive. This
46037 is still only the data handling part.
f19dbdb7 46038
9be6b98b 46039 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
46040 (codestart): Save %dh in GRUB_ROOT_DRIVE.
46041 (grub_root_drive): New variable.
46042
46043 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
46044 instead of GRUB_BOOT_DRIVE to construct a device name. Set
46045 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
46046 as it was.
46047
46048 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
46049
46050 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
46051 macro.
46052 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
46053
46054 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
46055 is bogus, because PXE booting does not specify any drive
46056 correctly.
46057
46058 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
46059 am not sure if this is really correct.
46060
46061 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
46062 is always identical to the boot drive when booting from a CD.
46063
46064 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46065 longer.
46066 (root_drive): New variable.
46067 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46068 (setup_sectors): Push %dx right after popping it, because %dh will
46069 be modified later.
46070 (copy_buffer): Restore %dx.
46071
e0ca0677 460722008-02-03 Robert Millan <rmh@aybabtu.com>
46073
46074 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46075 use `cdboot.img' for cdrom images.
46076
3b3f6629 460772008-02-03 Robert Millan <rmh@aybabtu.com>
46078
46079 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46080 only setup gfxterm when `font' command has succeeded.
46081
d42b3672 460822008-02-03 Robert Millan <rmh@aybabtu.com>
46083
46084 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46085 (grub_rescue_cmd_multiboot_loader)
46086 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46087
fa370ea6 460882008-02-03 Pavel Roskin <proski@gnu.org>
46089
e0c5dacb 46090 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 46091 %edx and %esi from stack only after grub_gate_a20() is called.
46092 grub_gate_a20() clobbers %edx.
46093
f2a76e1d 460942008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46095
46096 * configure.ac (AC_INIT): Bumped to 1.96.
46097
46098 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46099 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46100 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46101 video/readers/png.c.
46102
90fd32d1 461032008-02-03 Bean <bean123ch@gmail.com>
9be665dd 46104
46105 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46106 (cdboot_img_SOURCES): New variable.
46107 (cdboot_img_ASFLAGS): New variable.
46108 (cdboot_img_LDFLAGS): New variable.
46109
46110 * boot/i386/pc/cdboot.S: New file.
46111
46112 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46113 (cd_count): Likewise.
46114 (grub_biosdisk_get_drive): Add support for cd device.
46115 (grub_biosdisk_call_hook): Likewise.
46116 (grub_biosdisk_iterate): Likewise.
46117 (grub_biosdisk_open): Likewise.
46118 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46119 (grub_biosdisk_rw): Support reading from cd device.
46120 (GRUB_MOD_INIT): Iterate cd devices.
46121
46122 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46123 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46124 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46125
46126 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46127
4020aa53 461282008-02-02 Robert Millan <rmh@aybabtu.com>
46129
46130 * commands/read.c: New file.
46131 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46132 (read_mod_SOURCES): New variable.
46133 (read_mod_CFLAGS): Likewise.
46134 (read_mod_LDFLAGS): Likewise.
46135
e03a1132 461362008-02-02 Robert Millan <rmh@aybabtu.com>
46137
46138 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46139 determining whether menu has to be displayed.
46140
58c69220 461412008-02-02 Marco Gerards <marco@gnu.org>
46142
46143 * bus/pci.c: New file.
46144
46145 * include/grub/pci.h: Likewise.
46146
46147 * include/grub/i386/pc/pci.h: Likewise.
46148
46149 * commands/lspci.c: Likewise.
46150
46151 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46152 `lspci.mod'.
46153 (pci_mod_SOURCES): New variable.
46154 (pci_mod_CFLAGS): Likewise.
46155 (pci_mod_LDFLAGS): Likewise.
46156 (lspci_mod_SOURCES): Likewise.
46157 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 46158 (lspci_mod_LDFLAGS): Likewise.
58c69220 46159
c004e1b4 461602008-02-02 Bean <bean123ch@gmail.com>
46161
46162 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46163 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46164
46165 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46166 (grub_xfs_btree_node): New structure.
46167 (grub_xfs_btree_root): New structure.
46168 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46169 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46170 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46171 (GRUB_XFS_EXTENT_SIZE): Likewise.
46172 (grub_xfs_read_block): Support btree format type.
46173 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46174 Use directory block as basic unit.
46175
46176 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46177
46178 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46179 __attribute__ ((__regparm__ (1))).
46180
f95562bf 461812008-02-01 Robert Millan <rmh@aybabtu.com>
46182
46183 Correct a mistake in previous commit.
46184
46185 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46186 top.
46187 (normal/command.c_DEPENDENCIES): New variable.
46188
7d31f41f 461892008-02-01 Robert Millan <rmh@aybabtu.com>
46190
46191 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46192 top.
46193 (normal/command.c_DEPENDENCIES): New variable.
46194 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46195 * conf/i386-ieee1275.rmk: Likewise.
46196 * conf/i386-linuxbios.rmk: Likewise.
46197 * conf/i386-pc.rmk: Likewise.
46198 * conf/sparc64-ieee1275.rmk: Likewise.
46199 * conf/powerpc-ieee1275.rmk: Likewise.
46200 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46201
46202 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46203
60b6be74 462042008-02-01 Robert Millan <rmh@aybabtu.com>
46205
46206 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46207 call at beginning of function.
46208
078522ab 462092008-01-31 Pavel Roskin <proski@gnu.org>
46210
46211 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 46212 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46213 (grub_mkrescue_SOURCES): Likewise.
078522ab 46214 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46215
ccaa8a5f 462162008-01-30 Robert Millan <rmh@aybabtu.com>
46217
46218 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46219 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46220 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46221 (grub_probe_SOURCES): ... to here.
46222
46223 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46224 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46225 * conf/i386-ieee1275.rmk: Likewise.
46226 * conf/i386-linuxbios.rmk: Likewise.
46227 * conf/powerpc-ieee1275.rmk: Likewise.
46228
ae5a9cd7 462292008-01-30 Tristan Gingold <gingold@free.fr>
46230
46231 * kern/rescue.c: Silently accept empty lines.
46232
70bc2ef2 462332008-01-29 Bean <bean123ch@gmail.com>
46234
46235 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46236 (real_code_2): Code cleanup and change comment style.
46237 (move_memory): Avoid using 32-bit address mode.
46238
6a4d50ea 462392008-01-29 Bean <bean123ch@gmail.com>
46240
46241 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46242 (png_mod_SOURCES): New variable.
46243 (png_mod_CFLAGS): Likewise.
46244 (png_mod_LDFLAGS): Likewise.
46245
46246 * video/readers/png.c: New file.
46247
11cc30ac 462482008-01-28 Robert Millan <rmh@aybabtu.com>
46249
46250 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46251 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46252 `ifndef GRUB_MOD_GAP' hack.
46253 * util/elf/grub-mkimage.c (add_segments): Likewise.
46254
3abc589f 462552008-01-27 Robert Millan <rmh@aybabtu.com>
46256
46257 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46258 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 46259 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 46260
e1907778 462612008-01-27 Robert Millan <rmh@aybabtu.com>
46262
46263 Get grub-emu to build again (including parallel builds).
46264
46265 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46266 Split into ...
46267 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46268 (normal/execute.c_DEPENDENCIES): ... this, ...
46269 (grub-emu_DEPENDENCIES): ... and this.
46270
46271 * conf/i386-efi.rmk: Likewise.
46272 * conf/i386-linuxbios.rmk: Likewise.
46273 * conf/i386-ieee1275.rmk: Likewise.
46274 * conf/powerpc-ieee1275.rmk: Likewise.
46275 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46276
2216b101 462772008-01-27 Robert Millan <rmh@aybabtu.com>
46278
46279 * NEWS: Add a few items.
46280
f75172d9 462812008-01-27 Robert Millan <rmh@aybabtu.com>
46282
46283 Fix parallel builds with grub-emu. Based on earlier commit for
46284 grub-probe and grub-setup.
46285
46286 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46287 (util/grub-emu.c_DEPENDENCIES): ... this.
46288 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46289 (util/grub-emu.c_DEPENDENCIES): ... this.
46290 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46291 (util/grub-emu.c_DEPENDENCIES): ... this.
46292 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46293 (util/grub-emu.c_DEPENDENCIES): ... this.
46294 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46295 (util/grub-emu.c_DEPENDENCIES): ... this.
46296
3f51de77 462972008-01-27 Pavel Roskin <proski@gnu.org>
46298
46299 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46300 to create a gap between _end and the modules added to the image
46301 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46302 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46303 * util/elf/grub-mkimage.c (add_segments): Likewise.
46304
2033f53e 463052008-01-26 Pavel Roskin <proski@gnu.org>
46306
46307 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46308 just return an error.
46309
22da1f6f 463102008-01-26 Bean <bean123ch@gmail.com>
46311
46312 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46313 (grub_reiserfs_get_item): Save offset of the next item.
46314 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46315
2a9525e6 463162008-01-25 Robert Millan <rmh@aybabtu.com>
46317
46318 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46319 make all filesystem sources appear together (possibly fixing omissions
46320 while at it).
46321 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46322 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46323 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46324 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46325
46326 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46327 add `kern/file.c'.
46328 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46329 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46330 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46331 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46332
46333 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46334 (probe): Add a sanity check to make sure of our ability to read
46335 requested files when probing for filesystem type.
46336
46337 * genmk.rb: Update copyright year (2007).
46338
46339 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46340 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46341 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46342 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46343 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46344 : Remove function prototypes.
46345
b95f71b5 463462008-01-25 Robert Millan <rmh@aybabtu.com>
46347
46348 Revert my previous commits (based on wrong assumption of how grub_errno
46349 works).
46350
fe6b695a 46351 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 46352 * kern/file.c (grub_file_open): Likewise.
46353
d08bbb49 463542008-01-24 Pavel Roskin <proski@gnu.org>
46355
46356 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46357 that hang if GRUB tries to setup colors.
46358 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46359 colors for firmwares that don't support it.
46360 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46361 Recognize Open Hack'Ware, set flags to work around its
46362 limitations.
46363
605e36ed 463642008-01-24 Robert Millan <rmh@aybabtu.com>
46365
46366 * kern/file.c (grub_file_open): Do not account previous failures of
46367 unrelated functions when grub_errno is checked for.
46368 Reported by Oleg Strikov.
46369
bac332a1 463702008-01-24 Bean <bean123ch@gmail.com>
46371
46372 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46373 (grub_ufs_sblock): New member volume name.
46374 (grub_ufs_find_file): Fix string copy bug.
46375 (grub_ufs_label): Implement this function properly.
46376
46377 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46378 (grub_hfs_iterate_records): Use the correct file number for extents
46379 and catalog file. Fix problem in next index calculation.
46380 (grub_hfs_find_node): Replace recursive function call with loop.
46381 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46382
15c80c09 463832008-01-23 Robert Millan <rmh@aybabtu.com>
46384
46385 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46386 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46387 (grub_multiboot2_real_boot): New function prototype.
46388
46389 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46390 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46391
46392 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46393 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46394
305338fd 463952008-01-23 Robert Millan <rmh@aybabtu.com>
46396
46397 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46398 #ifdef'ed out grub_printf().
46399
3ea52685 464002008-01-23 Robert Millan <rmh@aybabtu.com>
46401
46402 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46403 grub_dprintf calls, since they make "debug=all" mode unusable.
46404 (grub_console_checkkey): Likewise.
46405
5882ae4b 464062008-01-23 Robert Millan <rmh@aybabtu.com>
46407
46408 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46409 `term/i386/pc/at_keyboard.c'.
46410 (pkglib_MODULES): Add `serial.mod'.
46411 (serial_mod_SOURCES): New variable.
46412 (serial_mod_CFLAGS): Likewise.
46413 (serial_mod_LDFLAGS): Likewise.
46414
46415 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46416 `<grub/powerpc/ieee1275/console.h>'.
46417 (grub_keyboard_controller_init): New function prototype.
46418 (grub_console_checkkey): Likewise.
46419 (grub_console_getkey): Likewise.
46420
46421 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46422 keyboard on i386.
46423
46424 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46425 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46426
06ab5303 464272008-01-23 Robert Millan <rmh@aybabtu.com>
46428
46429 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46430 present, "(memdisk)/boot/grub" becomes the default prefix.
46431
46432 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46433 a memdisk tarball with all the modules. Add --overlay=DIR option that
46434 allows users to overlay additional files into the image.
46435
dbb475a4 464362008-01-23 Robert Millan <rmh@aybabtu.com>
46437
46438 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46439 and `machine/memory.h'.
46440 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46441 (_multiboot_mod_SOURCES): New variable.
46442 (_multiboot_mod_CFLAGS): Likewise.
46443 (_multiboot_mod_LDFLAGS): Likewise.
46444 (multiboot_mod_SOURCES): Likewise.
46445 (multiboot_mod_CFLAGS): Likewise.
46446 (multiboot_mod_LDFLAGS): Likewise.
46447
46448 * include/grub/i386/ieee1275/loader.h: New file.
46449
46450 * include/grub/i386/ieee1275/machine.h: Likewise.
46451
46452 * include/grub/i386/ieee1275/memory.h: Likewise.
46453
46454 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46455 variable declaration.
46456 (grub_os_area_size): Likewise.
46457
46458 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46459 (grub_lower_mem, grub_upper_mem): New variables.
46460 (grub_stop_floppy): New function (just to make
46461 grub_multiboot2_real_boot() happy).
46462
46463 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46464 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46465 (grub_stop): New function.
46466 Include `"../realmode.S"' and `"../loader.S"'.
46467
46468 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46469 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46470
46471 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46472 rely on grub_multiboot2_real_boot() for final boot.
46473
25638629 464742008-01-22 Robert Millan <rmh@aybabtu.com>
46475
46476 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46477 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46478 device that doesn't look like an SD card.
46479 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46480 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46481 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46482 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46483 found.
46484
9dad816d 464852008-01-22 Robert Millan <rmh@aybabtu.com>
46486
46487 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46488 avoid claiming over our own code.
46489
34842f2d 464902008-01-22 Bean <bean123ch@gmail.com>
46491
46492 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46493 (jpeg_mod_SOURCES): New variable.
46494 (jpeg_mod_CFLAGS): Likewise.
46495 (jpeg_mod_LDFLAGS): Likewise.
46496
46497 * video/readers/jpeg.c : New file.
46498
44023a28 464992008-01-22 Bean <bean123ch@gmail.com>
46500
46501 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46502 there are no more items.
46503
bc2d8ac6 465042008-01-21 Robert Millan <rmh@aybabtu.com>
46505
46506 * kern/mm.c (grub_mm_init_region): Improve debug message.
46507
261bd4bc 465082008-01-21 Robert Millan <rmh@aybabtu.com>
46509
46510 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46511 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46512 address.
46513 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46514 a C macro.
46515 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46516 Indicates start of upper memory.
46517 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46518 (generate_image): Abort when image size is big enough to corrupt
46519 upper memory.
46520
46521 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46522 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46523 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46524 instead of hardcoding 0xA0000.
46525 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46526 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46527 instead of hardcoding 0xA0000.
46528
f970b55e 465292008-01-21 Robert Millan <rmh@aybabtu.com>
46530
46531 * disk/memdisk.c (memdisk_size): New variable.
46532 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46533 `memdisk_size'.
46534 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46535 image to dynamic memory.
46536 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46537 `memdisk_size'. Free memdisk block.
46538
1a8b0526 465392008-01-21 Robert Millan <rmh@aybabtu.com>
46540
46541 Fix detection of very small filesystems (like tar).
46542
46543 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46544 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46545 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46546 a problem with this disk).
46547
6e9b4aab 465482008-01-21 Robert Millan <rmh@aybabtu.com>
46549
46550 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46551 on grub_biosdisk_rw_standard() error.
46552
0d8837b2 465532008-01-21 Robert Millan <rmh@aybabtu.com>
46554
46555 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46556 recent changes.
46557 * kern/elf.c: Likewise.
46558 * kern/ieee1275/ieee1275.c: Likewise.
46559 * kern/powerpc/ieee1275/openfw.c: Likewise.
46560 * term/ieee1275/ofconsole.c: Likewise.
46561
ffd36e34 465622008-01-21 Robert Millan <rmh@aybabtu.com>
46563
46564 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46565
3f0093d0 46566 * include/grub/kernel.h (grub_arch_memdisk_addr)
46567 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 46568
3f0093d0 46569 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46570 (grub_arch_memdisk_size): ... to here.
ffd36e34 46571
6c391b21 465722008-01-21 Robert Millan <rmh@aybabtu.com>
46573
46574 Mostly based on bugfix from Bean.
46575
46576 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46577 attribute with hook() parameter.
46578 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46579 declaration.
46580 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46581 attribute with hook() parameter.
46582 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46583 declaration.
46584
55a581dc 465852008-01-21 Robert Millan <rmh@aybabtu.com>
46586
46587 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46588 (pkglib_MODULES): Add `memdisk.mod'.
46589 (memdisk_mod_SOURCES): New variable.
46590 (memdisk_mod_CFLAGS): Likewise.
46591 (memdisk_mod_LDFLAGS): Likewise.
46592
46593 * disk/memdisk.c: New file.
46594
46595 * include/grub/disk.h (grub_disk_dev_id): Add
46596 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46597
46598 * include/grub/i386/pc/kernel.h
46599 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46600 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46601 (grub_kernel_image_size): New variable declaration.
46602 (grub_total_module_size): Likewise.
46603 (grub_memdisk_image_size): Likewise.
46604
46605 * include/grub/i386/pc/memory.h
46606 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46607
46608 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46609 (grub_arch_memdisk_addr): New variable declaration.
46610 (grub_arch_memdisk_size): Likewise.
46611
46612 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46613 (grub_arch_memdisk_size): Likewise.
46614
46615 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46616 (codestart): Replace hardcoded `0x100000' with
46617 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46618
46619 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46620 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46621 not NULL, append the contents of the file it refers to, at the end of
46622 the compressed kernel image. Initialize `grub_memdisk_image_size'
46623 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46624 (options): Add "memdisk"|'m' option.
46625 (main): Parse --memdisk|-m option, and pass user-provided path as
46626 parameter to generate_image().
46627
3d7f54c9 466282008-01-20 Robert Millan <rmh@aybabtu.com>
46629
46630 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46631 grub_dprintf() calls from here ...
46632 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46633
0bf74728 466342008-01-20 Robert Millan <rmh@aybabtu.com>
46635
46636 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46637
46638 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46639 declaration.
46640 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46641 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46642 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 46643 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 46644 property).
46645 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46646 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46647
33bf70a7 466482008-01-19 Robert Millan <rmh@aybabtu.com>
46649
fe6b695a 46650 Get rid of confusing function (superseded by
33bf70a7 46651 `grub_ieee1275_get_integer_property')
46652 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46653 prototype.
46654 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46655 function.
46656 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46657 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 46658 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 46659
e2da7d26 466602008-01-19 Robert Millan <rmh@aybabtu.com>
46661
46662 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46663 command after "shut-down", since implementations differ on which
46664 the command for halt is.
46665
59f1fd8d 466662008-01-19 Robert Millan <rmh@aybabtu.com>
46667
46668 * include/grub/i386/linuxbios/console.h: Add header protection.
46669 (grub_keyboard_controller_init): New function prototype.
46670 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46671 (KEYBOARD_COMMAND_READ): Likewise.
46672 (KEYBOARD_COMMAND_WRITE): Likewise.
46673 (KEYBOARD_SCANCODE_SET1): Likewise.
46674 (grub_keyboard_controller_write): New function.
46675 (grub_keyboard_controller_read): Likewise.
46676 (grub_keyboard_controller_init): Likewise.
46677
46678 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46679 (grub_console_init): On coreboot/LinuxBIOS, call
46680 grub_keyboard_controller_init().
46681
5f5a7c15 466822008-01-19 Robert Millan <rmh@aybabtu.com>
46683
46684 PowerPC changes provided by Pavel Roskin.
46685
46686 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46687 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46688 don't rely on cmain() doing it.
46689 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46690 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46691
1210e168 466922008-01-16 Robert Millan <rmh@aybabtu.com>
46693
46694 * include/grub/i386/linuxbios/memory.h
46695 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46696 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46697 receive `table_header' as argument. Instead, probe for it in the
46698 known memory ranges where it can be present.
46699 (grub_available_iterate): Do not pass a fixed `table_header' address
46700 to grub_linuxbios_table_iterate().
46701
3d04eab8 467022008-01-15 Robert Millan <rmh@aybabtu.com>
46703
46704 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46705 * conf/i386-ieee1275.rmk: New file.
46706 * include/grub/i386/ieee1275/console.h: Likewise.
46707 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46708 * include/grub/i386/ieee1275/kernel.h: Likewise.
46709 * include/grub/i386/ieee1275/time.h: Likewise.
46710 * kern/i386/ieee1275/init.c: Likewise.
46711 * kern/i386/ieee1275/startup.S: Likewise.
46712
d1bc1b73 467132008-01-15 Robert Millan <rmh@aybabtu.com>
46714
46715 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46716 when pointers are 32-bit (but still do set it to one when they are
46717 64-bit).
46718
66a65807 467192008-01-15 Robert Millan <rmh@aybabtu.com>
46720
46721 * include/grub/ieee1275/ieee1275.h
46722 (grub_ieee1275_get_integer_property): New function prototype.
46723
46724 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46725 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 46726 grub_ieee1275_get_property() to handle endianness.
66a65807 46727
46728 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46729 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 46730 where appropriate.
66a65807 46731 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46732 (grub_map): Likewise.
46733 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46734
a83ccafd 467352008-01-15 Bean <bean123ch@gmail.com>
46736
46737 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46738 (grub_script_execute_cmdline): Reset grub_errno.
46739
46740 * normal/main.c (read_config_file): Reset grub_errno.
46741
46742 * normal/parse.y (script_init): New.
46743 (script): Move function and menuentry here.
46744 (delimiter): New.
46745 (command): Add delimiter at the end of command.
46746 (commands): Adjust to match the new command.
46747 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 46748 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 46749 (if): Use the new commands.
46750
46751 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46752
df6ecfc6 467532008-01-15 Robert Millan <rmh@aybabtu.com>
46754
46755 * normal/menu.c (run_menu): Move timeout message from here ...
46756 (print_timeout): ... to here.
46757 (run_menu): Use print_timeout() once during initial draw to print
46758 the whole message, and again in every clock tick to update only
46759 the number of seconds.
46760
87ae25eb 467612008-01-15 Robert Millan <rmh@aybabtu.com>
46762
46763 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46764 actual size of `available' from grub_ieee1275_get_property(), and
46765 restrict parsing to that bound.
46766
47bf09a4 467672008-01-15 Christian Franke <franke@computer.org>
46768
46769 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46770 (argp_program_version): Remove variable.
46771 (argp_program_bug_address): Likewise.
46772 (options): Convert from struct argp_option to struct option.
46773 (struct arguments): Remove.
46774 (parse_opt): Remove.
46775 (usage): New function.
46776 (main): Replace struct args members by simple variables.
46777 Replace argp_parse() by getopt_long().
46778 Add switch to evaluate options.
46779 Add missing "(...)" around root_dev in prefix string.
46780
c86f1469 467812008-01-14 Robert Millan <rmh@aybabtu.com>
46782
46783 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46784 for grub_ieee1275_exit(), in order to improve portability.
46785
e622c559 467862008-01-14 Robert Millan <rmh@aybabtu.com>
46787
46788 * util/grub.d/10_linux.in (prefix): Define.
46789 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46790
44cb1ec8 467912008-01-13 Pavel Roskin <proski@gnu.org>
46792
46793 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46794 grub_errno if no errors have been detected.
46795
1eb8c802 467962008-01-12 Robert Millan <rmh@aybabtu.com>
46797
46798 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46799 (grub_util_get_dev_abstraction): New function prototype.
46800
46801 * util/getroot.c: Include `<grub/util/getroot.h>'
46802 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46803 (grub_util_get_dev_abstraction): ... here (new function).
46804
46805 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46806 `PRINT_ABSTRACTION'.
46807 (probe): Probe for abstraction type when requested.
46808 (main): Understand `--target=abstraction'.
46809
46810 * util/i386/efi/grub-install.in: Add abstraction module to core
46811 image when it is found to be necessary.
46812 * util/i386/pc/grub-install.in: Likewise.
46813 * util/powerpc/ieee1275/grub-install.in: Likewise.
46814
46815 * util/update-grub_lib.in (font_path): Return system path without
46816 converting to GRUB path.
46817 * util/update-grub.in: Convert system path returned by font_path()
46818 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46819 abstraction module is needed for loading fonts (if any). Export
46820 that as `GRUB_PRELOAD_MODULES'.
46821 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46822 insmod commands).
46823
52bd3de9 468242008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46825
46826 Remove some unused code from reiserfs.
f19dbdb7 46827
52bd3de9 46828 * fs/reiserfs.c (struct grub_reiserfs_key)
46829 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46830 (struct grub_reiserfs_node_body): Removed.
46831 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46832 Likewise.
46833 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46834 Likewise.
46835 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46836 Likewise.
46837 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46838 Likewise.
46839 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46840 Likewise.
46841 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46842 Likewise.
46843 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46844 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46845 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46846
2f80039d 468472008-01-10 Robert Millan <rmh@aybabtu.com>
46848
46849 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46850 Determines if a file is garbage left by packaging systems, etc.
46851 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46852 for processing /etc/grub.d scripts.
46853 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46854 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46855 as a condition for processing Linux images.
46856
87888032 468572008-01-10 Pavel Roskin <proski@gnu.org>
46858
46859 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46860 to compile reiserfs.c on PowerPC.
46861
7e54fced 468622008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 46863
46864 * kern/device.c (grub_device_iterate): Do not abort device iteration
46865 when one of the devices cannot be opened.
46866 * kern/disk.c (grub_disk_open): Do not account previous failures of
46867 unrelated functions when grub_errno is checked for.
46868
5aa541e6 468692008-01-08 Robert Millan <rmh@aybabtu.com>
46870
46871 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46872 `! grub_linux_is_bzimage', change order of address comparison to make
46873 it more intuitive, and improve "too big zImage" error message.
46874
7076340d 468752008-01-08 Robert Millan <rmh@aybabtu.com>
46876
46877 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46878 `$(update-grub_DATA)'.
46879 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46880 targets.
46881
9ca70333 468822008-01-07 Robert Millan <rmh@aybabtu.com>
46883
46884 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46885 which instruction is modified by grub-setup during installation
46886 (since it wasn't obvious by only looking at this file).
46887
38ccf575 468882008-01-07 Robert Millan <rmh@aybabtu.com>
46889
46890 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46891 listing actual TODO items.
46892
f5db4291 468932008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46894
868967cf 46895 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46896 correctly.
46897 (grub_reiserfs_get_key_offset): Likewise.
46898 (grub_reiserfs_set_key_offset): Likewise.
46899 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 46900 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 46901
46902 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46903 better to remove the bitfield version completely.
f19dbdb7 46904
868967cf 469052008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 46906
f5db4291 46907 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46908 allocated from the heap, due to the fshelp implementation.
46909 (grub_reiserfs_dir): Free NODE, due to the same reason.
46910
492e6d9d 469112008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46912
46913 Mostly from Vincent Pelletier:
f19dbdb7 46914
492e6d9d 46915 * fs/reiserfs.c: New file.
f19dbdb7 46916
492e6d9d 46917 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46918 (reiserfs_mod_SOURCES): New variable.
46919 (reiserfs_mod_CFLAGS): Likewise.
46920 (reiserfs_mod_LDFLAGS): Likewise.
46921
46922 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46923 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46924 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46925 normal/color.c.
46926
9ce3e7c1 469272008-01-06 Robert Millan <rmh@aybabtu.com>
46928
46929 * normal/color.c: Remove `<grub/env.h>'.
46930
f3b58148 469312008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46932
46933 * include/grub/normal.h: Include <grub/env.h>.
46934
7ac3bcfa 469352008-01-05 Robert Millan <rmh@aybabtu.com>
46936
46937 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46938 usage example with `(hd0,1)'.
fb358190 46939 Reported by Samuel Thibault.
7ac3bcfa 46940
c8ee99d7 469412008-01-05 Robert Millan <rmh@aybabtu.com>
46942
46943 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46944 (grub_linux_boot_zimage): Rename to ...
46945 (grub_linux_boot): ... this.
46946 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46947 (grub_linux_boot_zimage): Conditionalize zImage copy.
46948
46949 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46950 (grub_linux_boot_bzimage): Remove prototype.
46951 (grub_linux_boot_zimage): Rename to ...
46952 (grub_linux_boot): ... this.
46953
46954 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46955 (grub_linux_boot): Remove function.
46956
0ece25b1 469572008-01-05 Robert Millan <rmh@aybabtu.com>
46958
46959 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46960 (grub_env_write_color_highlight): Likewise.
46961 (grub_wait_after_message): Likewise.
46962
46963 * normal/color.c: New file.
46964
46965 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46966 (normal_mod_DEPENDENCIES): Likewise.
46967
46968 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46969 (normal_mod_DEPENDENCIES): Likewise.
46970
46971 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46972 (normal_mod_DEPENDENCIES): Likewise.
46973
46974 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46975 (normal_mod_DEPENDENCIES): Likewise.
46976
46977 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46978 for waiting after a message is printed.
46979 * normal/main.c (read_config_file): Likewise.
46980 (grub_normal_init): Register grub_env_write_color_normal() and
46981 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46982 `color_highlight' variables as global.
46983
46984 * normal/menu.c (grub_wait_after_message): New function.
46985 (grub_color_menu_normal): New variable. Replaces ...
46986 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46987 (grub_color_menu_highlight): New variable. Replaces ...
46988 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46989 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46990 `GRUB_TERM_COLOR_STANDARD'.
46991 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46992 `normal_code' and `highlight_code' to `old_color_normal' and
46993 `old_color_highlight', respectively.
46994 (grub_menu_init_page): Update colors when drawing the menu, based on
46995 `menu_color_normal' and `menu_color_highlight' variables.
46996 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46997 a message is printed.
46998
182dd4e5 469992008-01-05 Robert Millan <rmh@aybabtu.com>
47000
47001 * kern/env.c (grub_env_context_open): Propagate hooks for global
47002 variables to new context.
47003
47004 * kern/main.c (grub_set_root_dev): Export `root' variable.
47005
ddf8f6ad 470062008-01-05 Robert Millan <rmh@aybabtu.com>
47007
47008 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 47009 discs unconditionally, since udev and others have options to provide
ddf8f6ad 47010 them.
47011
d8b43d9b 470122008-01-05 Robert Millan <rmh@aybabtu.com>
47013
47014 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
47015
2bff2de3 470162008-01-04 Christian Franke <franke@computer.org>
47017
47018 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
47019 of eisa_mmap.
47020
97eab917 470212008-01-03 Pavel Roskin <proski@gnu.org>
47022
47023 * kern/i386/linuxbios/init.c: Put "void" to all function
47024 declarations with no arguments.
47025 * kern/powerpc/ieee1275/init.c: Likewise.
47026 * term/i386/pc/at_keyboard.c: Likewise.
47027 * term/i386/pc/vga_text.c: Likewise.
47028 * util/grub-mkdevicemap.c: Likewise.
47029
b9416d00 470302008-01-02 Robert Millan <rmh@aybabtu.com>
47031
47032 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
47033 message when loaded image is out of bounds.
47034 (grub_multiboot_load_elf64): Likewise.
47035
92695df9 470362008-01-02 Pavel Roskin <proski@gnu.org>
47037
47038 * util/grub.d/10_linux.in: Try version without ".old" when
47039 looking for initrd. It's better to use initrd from the newer
47040 kernel of the same version than no initrd at all.
47041
d98d9cad 470422008-01-01 Robert Millan <rmh@aybabtu.com>
47043
47044 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
47045
dbfdce36 470462008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
47047
f19dbdb7 47048 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 47049 grub_video_get_active_render_target.
47050 (grub_video_adapter): Added unmap_color and get_active_render_target.
47051
f19dbdb7 47052 * video/video.c: Added grub_video_unmap_color and
dbfdce36 47053 grub_video_get_active_render_target.
47054 (grub_video_get_info): Changed method to accept NULL pointer as an
47055 argument to allow detection of active video adapter.
47056
47057 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
47058 grub_video_vbe_unmap_color_int.
47059 Added grub_video_vbe_unmap_color and
47060 grub_video_vbe_get_active_render_target.
47061 (grub_video_vbe_adapter): Added unmap_color and
47062 get_active_render_target.
47063
f19dbdb7 47064 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 47065 with grub_video_vbe_unmap_color_int.
47066
47067 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47068 (DEFAULT_NORMAL_COLOR): Likewise.
47069 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47070 (DEFAULT_FG_COLOR): Removed.
47071 (DEFAULT_BG_COLOR): Likewise.
47072 (DEFAULT_CURSOR_COLOR): Changed value.
47073 (grub_virtual_screen): Added standard_color_setting,
47074 normal_color_setting, highlight_color_setting and term_color.
47075 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47076 (bitmap_width): Added.
47077 (bitmap_height): Likewise.
47078 (bitmap): Likewise.
47079 (set_term_color): Likewise.
47080 (grub_virtual_screen_setup): Changed to use new terminal coloring
47081 settings.
47082 (grub_gfxterm_init): Added init for bitmap.
47083 (grub_gfxterm_fini): Added destroy for bitmap.
47084 (redraw_screen_rect): Updated to use background bitmap and new
47085 terminal coloring.
47086 (scroll_up): Added optimization for case when there is no bitmap.
47087 (grub_gfxterm_cls): Fixed to use correct background color.
47088 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47089 coloring.
47090 (grub_virtual_screen_setcolor): Likewise.
47091 (grub_virtual_screen_getcolor): Added.
47092 (grub_gfxterm_background_image_cmd): Likewise.
47093 (grub_video_term): Added setcolor and getcolor.
47094 (MOD_INIT): Added registration of background_image command.
47095 (MOD_TERM): Added unregistration for background_image command.
47096
c3c20931 470972007-12-30 Pavel Roskin <proski@gnu.org>
47098
47099 * loader/multiboot_loader.c: Fix multiboot command
47100 unregistration. Fix all typos in the word "multiboot".
47101
df266716 471022007-12-29 Pavel Roskin <proski@gnu.org>
94239199 47103
47104 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47105 support for initrd names used in Fedora.
47106
fc6e896c 471072007-12-26 Bean <bean123ch@gmail.com>
47108
47109 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47110 (cpio_mod_SOURCES): New variable.
47111 (cpio_mod_CFLAGS): Likewise.
47112 (cpio_mod_LDFLAGS): Likewise.
47113
47114 * fs/cpio.c: New file.
47115
47116 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47117
47118 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47119
47120 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47121
47122 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47123
533110ad 471242007-12-25 Robert Millan <rmh@aybabtu.com>
47125
47126 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47127 (grub_getcolor): New function.
47128
47129 * kern/term.c (grub_getcolor): New function.
47130 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47131 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47132 (print_entry): Set normal and highlight colors to
47133 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47134 respectively, before printing and restore them to old
47135 values afterwards.
47136 (grub_menu_init_page): Likewise. Fill an additional colored space
47137 that would otherwise be left blank.
47138
47139 * term/efi/console.c (grub_console_getcolor): New function.
47140 (struct grub_console_term.getcolor): New variable.
47141 * term/i386/pc/console.c (grub_console_getcolor): New function.
47142 (struct grub_console_term.getcolor): New variable.
47143 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47144 (struct grub_console_term.getcolor): New variable.
47145
47146 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47147 (struct grub_console_term.setcolor): Remove variable.
47148 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47149 (struct grub_console_term.setcolor): Remove variable.
47150 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47151 (struct grub_console_term.setcolor): Remove variable.
47152 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47153 (struct grub_console_term.setcolor): Remove variable.
47154
4931827f 471552007-12-25 Robert Millan <rmh@aybabtu.com>
47156
47157 * configure.ac: Search for possible unifont.hex locations, and
47158 define UNIFONT_HEX if found.
47159
47160 * Makefile.in (UNIFONT_HEX): Define variable.
47161 (DATA): Rename to ...
47162 (PKGLIB): ... this. Update all users.
47163 (PKGDATA): New variable.
47164 (pkgdata_IMAGES): Rename to ...
47165 (pkglib_IMAGES): ... this. Update all users.
47166 (pkgdata_MODULES): Rename to ...
47167 (pkglib_MODULES): ... this. Update all users.
47168 (pkgdata_PROGRAMS): Rename to ...
47169 (pkglib_PROGRAMS): ... this. Update all users.
47170 (pkgdata_DATA): Rename to ...
47171 (pkglib_DATA): ... this. Update all users.
47172 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47173 (unicode.pff, ascii.pff): New rules.
47174 (all-local): Add `$(PKGDATA)' dependency.
47175 (install-local): Process `$(PKGDATA)'.
47176
47177 * util/update-grub_lib.in (font_path): Search for *.pff files in
47178 a few more locations, including `${pkgdata}'.
47179
57e57e31 471802007-12-23 Robert Millan <rmh@aybabtu.com>
47181
47182 Patch from Bean <bean123ch@gmail.com>:
47183 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47184 `size'.
47185
4bc72aa9 471862007-12-21 Bean <bean123ch@gmail.com>
47187
47188 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47189 (ntfscomp_mod_SOURCES): New variable.
47190 (ntfscomp_mod_CFLAGS): Likewise.
47191 (ntfscomp_mod_LDFLAGS): Likewise.
47192
47193 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47194 (grub_probe_SOURCES): Likewise.
47195 (grub_emu_SOURCES): Likewise.
47196
47197 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47198 (grub_emu_SOURCES): Likewise.
47199
47200 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47201 (grub_emu_SOURCES): Likewise.
47202
47203 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47204 (grub_emu_SOURCES): Likewise.
47205
47206 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47207 (read_run_list): Renamed to grub_ntfs_read_run_list.
47208 (decomp_nextvcn): Moved to ntfscomp.c.
47209 (decomp_getch): Likewise.
47210 (decomp_get16): Likewise.
47211 (decomp_block): Likewise.
47212 (read_block): Likewise.
47213 (read_data): Partially moved to ntfscomp.c.
47214 (fixup): Change unsigned to grub_uint16_t.
47215 (read_mft): Change unsigned long to grub_uint32_t.
47216 (read_attr): Likewise.
47217 (read_data): Likewise.
47218 (read_run_data): Likewise.
47219 (read_run_list): Likewise.
47220 (read_mft): Likewise.
47221
47222 * fs/ntfscomp.c: New file.
47223
47224 * include/grub/ntfs.h: New file.
47225
af680a87 472262007-12-16 Robert Millan <rmh@aybabtu.com>
47227
47228 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47229 IDE disk check, since Linux is known to support 20 IDE disks.
47230 Reported by Colin Watson.
47231
84be7599 472322007-12-15 Bean <bean123ch@gmail.com>
47233
47234 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47235 (lnxboot_img_SOURCES): New variable.
47236 (lnxboot_img_ASFLAGS): Likewise.
47237 (lnxboot_img_LDFLAGS): Likewise.
47238
47239 * boot/i386/pc/lnxboot.S: New file.
47240
6af9db01 472412007-11-24 Pavel Roskin <proski@gnu.org>
47242
47243 * configure.ac: Test if '--build-id=none' is supported by the
47244 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47245 objcopy to generate incorrect binary files (binutils
47246 2.17.50.0.18-1 as shipped by Fedora 8).
47247 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47248 linking, so that build ID doesn't break the test.
47249
7361cfe6 472502007-11-24 Pavel Roskin <proski@gnu.org>
47251
47252 * include/grub/i386/time.h: use "void" in the argument list
47253 of grub_cpu_idle().
47254 * include/grub/powerpc/time.h: Likewise.
47255 * include/grub/sparc64/time.h: Likewise.
47256
1593e10c 472572007-11-18 Christian Franke <franke@computer.org>
47258
47259 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47260 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47261 This fixes the problem that function keys did not work in grub-emu.
47262
3b8db1a8 472632007-11-18 Christian Franke <franke@computer.org>
47264
47265 * disk/host.c (grub_host_open): Remove attribute unused from
47266 name parameter. Add check for "host". This fixes the problem
47267 that grub-emu does not find partitions.
47268
2e29408d 472692007-11-18 Christian Franke <franke@computer.org>
47270
47271 * util/hostfs.c (is_dir): New function.
47272 (grub_hostfs_dir): Handle missing dirent.d_type case.
47273 (grub_hostfs_read): Add missing fseek().
47274 (grub_hostfs_label): Clear label pointer. This fixes a crash
47275 of grub-emu on "ls (host)".
47276
398cd047 472772007-11-18 Christian Franke <franke@computer.org>
47278
47279 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47280 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47281 to 64 bit boundary by default.
47282
c405c391 472832007-11-18 Bean <bean123ch@gmail.com>
47284
47285 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47286 (hexdump_mod_SOURCES): New variable.
47287 (hexdump_mod_CFLAGS): Likewise.
47288 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 47289
c405c391 47290 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47291
47292 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47293
47294 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47295
47296 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47297
47298 * include/grub/hexdump.h: New file.
47299
47300 * commands/hexdump.c: New file.
47301
5cced7fd 473022007-11-10 Robert Millan <rmh@aybabtu.com>
47303
47304 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47305 in grub_outb() calls.
47306 (beep_on): Likewise.
47307
8b714eb0 473082007-11-10 Christian Franke <franke@computer.org>
47309
47310 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47311 (grub_menu_run): Likewise.
47312
ce0f1839 473132007-11-10 Robert Millan <rmh@aybabtu.com>
47314
47315 * include/grub/i386/efi/machine.h: New file.
47316 * include/grub/i386/linuxbios/machine.h: Likewise.
47317 * include/grub/i386/pc/machine.h: Likewise.
47318 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47319 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47320
47321 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47322 (serial_hw_io_addr): New variable.
47323 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47324 instead of `(unsigned short *) 0x400'.
47325
270c237d 473262007-11-10 Bean <bean123ch@gmail.com>
47327
47328 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47329
a87783bf 473302007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47331
47332 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47333 (vga_mod_SOURCES): Added.
47334 (vga_mod_CFLAGS): Likewise.
47335 (vga_mod_LDFLAGS): Likewise.
47336
47337 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47338 grub_outb() calls.
47339 (set_map_mask): Likewise.
47340 (set_read_map): Likewise.
47341 (set_read_address): Likewise.
47342 (vga_font): Removed variable.
47343 (get_vga_glyph): Removed function.
47344 (invalidate_char): Likewise.
47345 (write_char): Changed to use grub_font_get_glyph() for font
47346 information.
47347 (grub_vga_putchar): Likewise.
47348 (grub_vga_getcharwidth): Likewise.
47349
6433b448 473502007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47351
47352 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47353 flags.
47354 (pxeboot_img_LDFLAGS): Likewise.
47355 (diskboot_img_LDFLAGS): Likewise.
47356 (kernel_img_LDFLAGS): Likewise.
47357
49178511 473582007-11-06 Robert Millan <rmh@aybabtu.com>
47359
47360 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47361 in grub_outb() calls.
47362 (serial_hw_init): Likewise.
47363
53b052de 473642007-11-05 Robert Millan <rmh@aybabtu.com>
47365
47366 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47367 spaces. Skip non-regular files.
47368
5ab33bba 473692007-11-05 Robert Millan <rmh@aybabtu.com>
47370
47371 * kern/disk.c (grub_disk_firmware_fini)
47372 (grub_disk_firmware_is_tainted): New variables.
47373
47374 * include/grub/disk.h (grub_disk_firmware_fini)
47375 (grub_disk_firmware_is_tainted): Likewise.
47376
47377 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47378 (grub_disk_biosdisk_fini): ... to here.
47379 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47380 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47381 is set. Register grub_disk_biosdisk_fini() in
47382 `grub_disk_firmware_fini'.
47383
47384 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47385 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47386 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47387 to finish existing firmware disk interface.
47388
47389 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47390 (ata_mod_SOURCES): New variable.
47391 (ata_mod_CFLAGS): Likewise.
47392 (ata_mod_LDFLAGS): Likewise.
47393
0149ab7c 473942007-11-05 Robert Millan <rmh@aybabtu.com>
47395
47396 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47397 (grub_ata_wait): Reimplement using grub_millisleep().
47398
47399 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47400 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47401
be7ac41e 474022007-11-03 Marco Gerards <marco@gnu.org>
47403
47404 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47405 (CRTC_ADDR_PORT): New macro.
47406 (CRTC_DATA_PORT): Likewise.
47407 (CRTC_CURSOR): Likewise.
47408 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47409 (CRTC_CURSOR_ADDR_LOW): Likewise.
47410 (update_cursor): New function.
47411 (grub_console_real_putchar): Call `update_cursor'.
47412 (grub_console_gotoxy): Likewise.
47413 (grub_console_cls): Set the default color when clearing the
47414 screen.
47415 (grub_console_setcursor): Implemented.
47416
bb06ab2e 474172007-11-03 Marco Gerards <marco@gnu.org>
47418
47419 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47420 become activate.
47421 (grub_ata_pio_write): Likewise.
47422
47423 (grub_atapi_identify): Wait after issuing an ATA command.
47424 (grub_atapi_packet): Likewise.
47425 (grub_ata_identify): Likewise.
47426 (grub_ata_readwrite): Likewise.
47427
cf8f780b 474282007-11-03 Marco Gerards <marco@gnu.org>
47429
47430 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47431 (grub_ata_pio_write): Likewise.
47432 (grub_ata_readwrite): Use `grub_error', instead of
47433 returning `grub_errno'.
47434
ed649e54 474352007-11-03 Marco Gerards <marco@gnu.org>
47436
47437 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47438 grub_ata_pio_write once for every single sector, instead of for
47439 multiple sectors.
47440
ca25d8f0 474412007-10-31 Robert Millan <rmh@aybabtu.com>
47442
47443 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47444
47445 * conf/i386-linuxbios.rmk: New file.
47446
47447 * kern/i386/pc/hardware.c: Likewise.
47448 * term/i386/pc/at_keyboard.c: Likewise.
47449 * term/i386/pc/vga_text.c: Likewise.
47450
47451 * include/grub/i386/linuxbios/boot.h: Likewise.
47452 * include/grub/i386/linuxbios/console.h: Likewise.
47453 * include/grub/i386/linuxbios/init.h: Likewise.
47454 * include/grub/i386/linuxbios/kernel.h: Likewise.
47455 * include/grub/i386/linuxbios/loader.h: Likewise.
47456 * include/grub/i386/linuxbios/memory.h: Likewise.
47457 * include/grub/i386/linuxbios/serial.h: Likewise.
47458 * include/grub/i386/linuxbios/time.h: Likewise.
47459
47460 * kern/i386/linuxbios/init.c: Likewise.
47461 * kern/i386/linuxbios/startup.S: Likewise.
47462 * kern/i386/linuxbios/table.c: Likewise.
47463
e911ecc1 474642007-10-31 Marco Gerards <marco@gnu.org>
47465
47466 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47467 (ata_mod_SOURCES): New variable.
47468 (ata_mod_CFLAGS): Likewise.
47469 (ata_mod_LDFLAGS): Likewise.
47470
47471 * disk/ata.c: New file.
47472
47473 * include/grub/disk.h (grub_disk_dev_id): Add
47474 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 47475
7f66d0e0 474762007-10-31 Robert Millan <rmh@aybabtu.com>
47477
47478 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47479 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47480
47481 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47482 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47483
47484 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47485 `<grub/types.h>'.
47486
47487 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47488
5cd7dd46 474892007-10-27 Robert Millan <rmh@aybabtu.com>
47490
3236ca65 47491 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 47492
2ebfc90f 474932007-10-22 Robert Millan <rmh@aybabtu.com>
47494
47495 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47496 `"../realmode.S"'.
47497 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47498
73fcb0f3 474992007-10-22 Robert Millan <rmh@aybabtu.com>
47500
47501 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47502 (pkgdata_MODULES): Add `biosdisk.mod'.
47503 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47504 variables.
47505
47506 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47507 (grub_biosdisk_init): Replace with ...
47508 (GRUB_MOD_INIT(biosdisk)): ... this.
47509 (grub_biosdisk_fini): Replace with ...
47510 (GRUB_MOD_FINI(biosdisk)): ... this.
47511
47512 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47513 (grub_machine_init): Remove call to grub_biosdisk_init().
47514 (grub_machine_fini): Remove call to grub_machine_fini().
47515
47516 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47517
3381d274 475182007-10-22 Robert Millan <rmh@aybabtu.com>
47519
47520 * include/grub/time.h: New file.
47521 * include/grub/i386/time.h: Likewise.
47522 * include/grub/powerpc/time.h: Likewise.
47523 * include/grub/sparc64/time.h: Likewise.
47524
47525 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47526 instances to ...
47527 (KERNEL_MACHINE_TIME_HEADER): ... this.
47528 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47529 instances to ...
47530 (KERNEL_MACHINE_TIME_HEADER): ... this.
47531 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47532 instances to ...
47533 (KERNEL_MACHINE_TIME_HEADER): ... this.
47534
47535 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47536 (grub_millisleep): New function.
47537 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47538 (grub_millisleep): New function.
47539 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47540 Remove `grub/machine/time.h' include.
47541 (grub_millisleep): New function.
47542 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47543 Remove `grub/machine/time.h' include.
47544 (grub_millisleep): New function.
47545
47546 * include/grub/misc.h (grub_div_roundup): New function.
47547
47548 * kern/misc.c: Include `<grub/time.h>'.
47549 (grub_millisleep_generic): New function.
47550
47551 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47552 Add `time.h'.
47553 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47554 Add `time.h'.
47555 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47556 `machine/time.h'. Add `time.h'.
47557 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47558
a39a0312 475592007-10-21 Robert Millan <rmh@aybabtu.com>
47560
47561 * include/grub/misc.h (grub_max): New function.
47562
2aad70e2 475632007-10-21 Robert Millan <rmh@aybabtu.com>
47564
47565 * util/misc.c (grub_util_info): Call fflush() before returning.
47566
54b71c4b 475672007-10-20 Robert Millan <rmh@aybabtu.com>
47568
47569 * genmk.rb (Image): Copy `extra_flags' from here ...
47570 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47571
47572 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47573 to `argc' and `args' arguments.
47574
a979f513 475752007-10-17 Robert Millan <rmh@aybabtu.com>
47576
47577 * kern/i386/loader.S: New file.
47578
47579 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47580 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47581 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47582 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47583 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47584 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47585 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47586 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47587 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47588 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47589 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47590 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47591 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47592 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47593
47594 * kern/i386/realmode.S: New file.
47595
47596 * kern/i386/pc/startup.S (protstack): Moved from here ...
47597 * kern/i386/realmode.S (protstack)... to here.
47598 * kern/i386/pc/startup.S (gdt): Moved from here ...
47599 * kern/i386/realmode.S (gdt)... to here.
47600 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47601 * kern/i386/realmode.S (prot_to_real)... to here.
47602
47603 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47604 `kern/i386/realmode.S'.
47605
825fc8fd 476062007-10-17 Robert Millan <rmh@aybabtu.com>
47607
47608 * include/grub/i386/loader.h: New file.
47609
47610 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47611 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47612 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47613 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47614 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47615 * include/grub/i386/loader.h (grub_linux_prot_size)
47616 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47617 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47618 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47619 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47620
47621 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47622
e179b2f4 476232007-10-15 Robert Millan <rmh@aybabtu.com>
47624
47625 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47626 filesystem when dev->disk is unset.
47627 Do probe for filesystem even when dev->disk->has_partitions is set.
47628 In case a filesystem is found, always report it.
47629 In case it isn't, if dev->disk->has_partitions is set, report that
47630 a partition table was found instead of reporting that no filesystem
47631 could be identified.
47632
5db82af6 476332007-10-12 Robert Millan <rmh@aybabtu.com>
47634
47635 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47636 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47637
68f6ac74 47638 * include/grub/types.h (grub_host_to_target16): New macro.
47639 (grub_host_to_target32): Likewise.
47640 (grub_host_to_target64): Likewise.
47641 (grub_target_to_host16): Likewise.
47642 (grub_target_to_host32): Likewise.
47643 (grub_target_to_host64): Likewise.
5db82af6 47644
47645 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47646 Renamed from to ...
47647 (GRUB_MOD_ALIGN): ...this. Update all users.
47648
68f6ac74 47649 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47650 grub_host_to_target32.
47651 Replace grub_be_to_cpu32 with grub_target_to_host32.
47652 (load_modules): Likewise.
47653 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47654 Replace grub_be_to_cpu32 with grub_target_to_host32.
47655 Replace grub_cpu_to_be16 with grub_host_to_target16.
47656 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 47657
3cf497cc 476582007-10-12 Robert Millan <rmh@aybabtu.com>
47659
47660 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47661 * util/elf/grub-mkimage.c: ... here.
47662
47663 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47664 `util/powerpc/ieee1275/grub-mkimage.c'.
47665
c8cc3692 476662007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 47667
c8cc3692 47668 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47669 and make it easier to figure out.
47670 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47671 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47672 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47673 leave us with less than HEAP_MIN_SIZE total heap.
47674 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 47675
5c58b791 476762007-10-03 Robert Millan <rmh@aybabtu.com>
47677
47678 * include/grub/i386/io.h: New file.
47679 * commands/i386/pc/play.c (inb): Removed.
47680 (outb): Removed.
47681 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47682 with grub_outb().
afcd2ef8 47683 * term/i386/pc/serial.c (inb): Removed.
47684 (outb): Removed.
47685 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47686 with grub_outb().
47687 * term/i386/pc/vga.c (inb): Removed.
47688 (outb): Removed.
47689 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47690 with grub_outb().
5c58b791 47691
1a477ed6 476922007-10-02 Robert Millan <rmh@aybabtu.com>
47693
47694 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47696 Reported by Marcin Kurek.
47697
6b5d80fa 476982007-09-07 Robert Millan <rmh@aybabtu.com>
47699
47700 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47701 SmartFirmware version updates (as released by Sven Luther), and avoid
47702 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47703 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47704 known broken.
47705
5618afbf 477062007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47707
47708 From Hitoshi Ozeki:
47709 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47710 when merging two regions.
47711
6139dcd9 477122007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47713
508e39ee 47714 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47715 * normal/completion.c (grub_normal_do_completion): Likewise.
47716 Reported by Hitoshi Ozeki.
47717
477182007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 47719
6139dcd9 47720 Do not use devices at boot in chainloading.
f19dbdb7 47721
6139dcd9 47722 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47723 (boot_part_addr): Likewise.
47724 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47725 with BOOT_DRIVE and BOOT_PART_ADDR.
47726 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47727 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47728
38da6516 477292007-08-29 Robert Millan <rmh@aybabtu.com>
47730
47731 Patch from Simon Peter <dn.tlp@gmx.net>:
47732 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47733 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47734 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47735 util/i386/pc/grub-setup.c_DEPENDENCIES.
47736 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47737 util/grub-probe.c_DEPENDENCIES.
47738 * conf/powerpc-ieee1275.rmk: Likewise.
47739
29d0928c 477402007-08-28 Robert Millan <rmh@aybabtu.com>
47741
47742 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47743 to tell grub-mkdevicemap how to name devices.
47744 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47745 feature).
47746
47747 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47748 util/i386/get_disk_name.c.
47749 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47750 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47751 util/ieee1275/get_disk_name.c.
47752
47753 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47754
47755 * DISTLIST: Add util/i386/get_disk_name.c and
47756 util/ieee1275/get_disk_name.c.
47757
47758 * util/grub-mkdevicemap.c: Replace device naming logic with
47759 grub_util_get_disk_name() calls.
47760
5a0d3cca 477612007-08-20 Robert Millan <rmh@aybabtu.com>
47762
47763 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47764 (so that it works for both plural and singular quantities).
47765
8b72db2f 477662007-08-05 Robert Millan <rmh@aybabtu.com>
47767
47768 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47769 so that [xz] isn't taken into account when determining order.
47770
352466bf 477712007-08-02 Marco Gerards <marco@gnu.org>
47772
47773 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47774 `include/multiboot2.h', `include/grub/elfload.h',
47775 `include/multiboot.h', `include/grub/multiboot.h',
47776 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47777 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47778 `kern/elf.c', `loader/multiboot_loader.c',
47779 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47780 `loader/i386/pc/multiboot2.c',
47781 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47782 `util/i386/pc/grub-mkrescue.in'. Remove
47783 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47784 `include/grub/i386/pc/util/biosdisk.h' and
47785 `include/grub/powerpc/ieee1275/multiboot.h'.
47786
8f096014 477872007-08-02 Bean <bean123ch@gmail.com>
47788
47789 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47790 (ntfs_mod_SOURCES): New variable.
47791 (ntfs_mod_CFLAGS): Likewise.
47792 (ntfs_mod_LDFLAGS): Likewise.
47793
47794 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47795 (grub_probe_SOURCES): Likewise.
47796 (grub_emu_SOURCES): Likewise.
47797
47798 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47799 (grub_emu_SOURCES): Likewise.
47800
47801 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47802 (grub_emu_SOURCES): Likewise.
f19dbdb7 47803
8f096014 47804 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47805
47806 * fs/ntfs.c: New file.
47807
9959f7db 478082007-08-02 Bean <bean123ch@gmail.com>
47809
47810 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47811
47812 * file.h (grub_file): Likewise.
47813
47814 * fshelp.h (grub_fshelp_read_file): Likewise.
47815
47816 * util/i386/pc/grub-setup.c (setup): Likewise.
47817 (save_first_sector): Likewise.
47818 (save_blocklists): Likewise.
f19dbdb7 47819
9959f7db 47820 * fs/affs.c (grub_affs_read_file): Likewise.
47821
47822 * fs/ext2.c (grub_ext2_read_file): Likewise.
47823
47824 * fs/fat.c (grub_fat_read_data): Likewise.
47825
47826 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47827
47828 * fs/hfs.c (grub_hfs_read_file): Likewise.
47829
47830 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47831
47832 * fs/jfs.c (grub_jfs_read_file): Likewise.
47833
47834 * fs/minix.c (grub_minix_read_file): Likewise.
47835
47836 * fs/sfs.c (grub_sfs_read_file): Likewise.
47837
47838 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 47839
9959f7db 47840 * fs/xfs.c (grub_xfs_read_file): Likewise.
47841
47842 * command/blocklist.c (read_blocklist): Likewise.
47843 (print_blocklist): Likewise.
47844
0a203f83 478452007-08-02 Marco Gerards <marco@gnu.org>
47846
47847 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47848 `util/hostfs.c'.
47849
47850 * disk/host.c: New file.
47851
47852 * util/hostfs.c: Likewise.
47853
47854 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47855 return `GRUB_ERR_BAD_FS'.
47856 * fs/sfs.c (grub_sfs_mount): Likewise.
47857 * fs/xfs.c (grub_xfs_mount): Likewise.
47858
47859 * include/grub/disk.h (enum grub_disk_dev_id): Add
47860 `GRUB_DISK_DEVICE_HOST_ID'.
47861
47862 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47863
e5dfe777 478642007-07-24 Jerone Young <jerone@gmail.com>
47865
f19dbdb7 47866 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 47867 modules for compilation.
47868 * conf/powerpc-ieee1275.rmk: Likewise.
47869
47870 * include/multiboot.h: Move multiboot definitions to one file. Rename
47871 many definitions to not get grub specific.
47872 * include/multiboot2.h: Create header with multiboot 2 definitions.
47873 * include/grub/multiboot.h: Header for grub specific function
47874 prototypes and definitions.
47875 * include/grub/multiboot2.h: Likewise.
47876 * include/grub/multiboot_loader.h: Likewise.
47877 * include/grub/i386/pc/multiboot.h: Removed.
47878 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47879
47880 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47881 and 2 to allow for one multiboot and module commands.
47882 * loader/multiboot2.c: Add multiboot2 functionality.
47883 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47884 and definition names.
47885 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47886 2 functions.
47887 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47888 ieee1275 specific multiboot2 code.
47889
47890 * kern/i386/pc/startup.S: Change headers and definition names for
47891 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47892
daf0f0ba 478932007-07-22 Robert Millan <rmh@aybabtu.com>
47894
47895 * geninitheader.sh: Process file specified in first parameter rather
47896 than hardcoding grub_modules_init.lst.
fe6b695a 47897 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 47898 than hardcoding grub_modules_init.h.
47899
47900 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47901 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47902 grub_probe_init.[ch] and grub_setup_init.[ch].
47903
47904 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47905 grub_modules_init.h with grub_emu_init.h.
47906 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47907 grub_probe_init.[ch] files.
47908 * conf/i386-efi.rmk: Likewise.
47909 * conf/i386-pc.rmk: Likewise.
47910 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47911 grub_setup_init.[ch] files.
47912
47913 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47914 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47915 to initialize modules rather than a list of hardcoded functions.
47916 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47917 grub_init_all() to initialize modules rather than a list of hardcoded
47918 functions.
47919
54cdc1cc 479202007-07-22 Robert Millan <rmh@aybabtu.com>
47921
47922 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47923 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47924
ad0686cc 479252007-07-22 Robert Millan <rmh@aybabtu.com>
47926
47927 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47928 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47929 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47930 flag when running on SmartFirmware.
47931 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47932 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47933 was set.
47934
47935 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47936 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47937 rather than decreasing it.
47938
47939 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47940 there's not enough space to do it, fail in the same way as when it
47941 can't be done because there are no partitions.
47942
47943 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47944 when nvsetenv failed.
47945
969c02ec 479462007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47947
47948 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47949 because this rule is automatically generated.
47950 (grub-mkrescue): Removed for the same reason as above.
47951
5a79f472 479522007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47953
47954 Migrate to GNU General Public License Version 3.
f19dbdb7 47955
5a79f472 47956 * COPYING: Replaced with the plain text version of GPLv3.
47957
47958 * config.guess: Updated from gnulib.
47959 * config.sub: Likewise.
47960
47961 * geninit.sh: Output a GPLv3 copyright notice.
47962 * geninitheader.sh: Likewise.
47963 * genmodsrc.sh: Likewise.
47964 * gensymlist.sh.in: Likewise.
47965
47966 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47967 * boot/i386/pc/diskboot.S: Likewise.
47968 * boot/i386/pc/pxeboot.S: Likewise.
47969 * commands/blocklist.c: Likewise.
47970 * commands/boot.c: Likewise.
47971 * commands/cat.c: Likewise.
47972 * commands/cmp.c: Likewise.
47973 * commands/configfile.c: Likewise.
47974 * commands/echo.c: Likewise.
47975 * commands/help.c: Likewise.
47976 * commands/ls.c: Likewise.
47977 * commands/search.c: Likewise.
47978 * commands/terminal.c: Likewise.
47979 * commands/test.c: Likewise.
47980 * commands/videotest.c: Likewise.
47981 * commands/i386/cpuid.c: Likewise.
47982 * commands/i386/pc/halt.c: Likewise.
47983 * commands/i386/pc/play.c: Likewise.
47984 * commands/i386/pc/reboot.c: Likewise.
47985 * commands/i386/pc/vbeinfo.c: Likewise.
47986 * commands/i386/pc/vbetest.c: Likewise.
47987 * commands/ieee1275/halt.c: Likewise.
47988 * commands/ieee1275/reboot.c: Likewise.
47989 * commands/ieee1275/suspend.c: Likewise.
47990 * disk/loopback.c: Likewise.
47991 * disk/lvm.c: Likewise.
47992 * disk/raid.c: Likewise.
47993 * disk/efi/efidisk.c: Likewise.
47994 * disk/i386/pc/biosdisk.c: Likewise.
47995 * disk/ieee1275/ofdisk.c: Likewise.
47996 * font/manager.c: Likewise.
47997 * fs/affs.c: Likewise.
47998 * fs/ext2.c: Likewise.
47999 * fs/fat.c: Likewise.
48000 * fs/fshelp.c: Likewise.
48001 * fs/hfs.c: Likewise.
48002 * fs/hfsplus.c: Likewise.
48003 * fs/iso9660.c: Likewise.
48004 * fs/jfs.c: Likewise.
48005 * fs/minix.c: Likewise.
48006 * fs/sfs.c: Likewise.
48007 * fs/ufs.c: Likewise.
48008 * fs/xfs.c: Likewise.
48009 * hello/hello.c: Likewise.
48010 * include/grub/acorn_filecore.h: Likewise.
48011 * include/grub/arg.h: Likewise.
48012 * include/grub/bitmap.h: Likewise.
48013 * include/grub/boot.h: Likewise.
48014 * include/grub/cache.h: Likewise.
48015 * include/grub/device.h: Likewise.
48016 * include/grub/disk.h: Likewise.
48017 * include/grub/dl.h: Likewise.
48018 * include/grub/elfload.h: Likewise.
48019 * include/grub/env.h: Likewise.
48020 * include/grub/err.h: Likewise.
48021 * include/grub/file.h: Likewise.
48022 * include/grub/font.h: Likewise.
48023 * include/grub/fs.h: Likewise.
48024 * include/grub/fshelp.h: Likewise.
48025 * include/grub/gzio.h: Likewise.
48026 * include/grub/hfs.h: Likewise.
48027 * include/grub/kernel.h: Likewise.
48028 * include/grub/loader.h: Likewise.
48029 * include/grub/lvm.h: Likewise.
48030 * include/grub/misc.h: Likewise.
48031 * include/grub/mm.h: Likewise.
48032 * include/grub/net.h: Likewise.
48033 * include/grub/normal.h: Likewise.
48034 * include/grub/parser.h: Likewise.
48035 * include/grub/partition.h: Likewise.
48036 * include/grub/pc_partition.h: Likewise.
48037 * include/grub/raid.h: Likewise.
48038 * include/grub/rescue.h: Likewise.
48039 * include/grub/script.h: Likewise.
48040 * include/grub/setjmp.h: Likewise.
48041 * include/grub/symbol.h: Likewise.
48042 * include/grub/term.h: Likewise.
48043 * include/grub/terminfo.h: Likewise.
48044 * include/grub/tparm.h: Likewise.
48045 * include/grub/types.h: Likewise.
48046 * include/grub/video.h: Likewise.
48047 * include/grub/efi/api.h: Likewise.
48048 * include/grub/efi/chainloader.h: Likewise.
48049 * include/grub/efi/console.h: Likewise.
48050 * include/grub/efi/console_control.h: Likewise.
48051 * include/grub/efi/disk.h: Likewise.
48052 * include/grub/efi/efi.h: Likewise.
48053 * include/grub/efi/pe32.h: Likewise.
48054 * include/grub/efi/time.h: Likewise.
48055 * include/grub/i386/linux.h: Likewise.
48056 * include/grub/i386/setjmp.h: Likewise.
48057 * include/grub/i386/types.h: Likewise.
48058 * include/grub/i386/efi/kernel.h: Likewise.
48059 * include/grub/i386/efi/loader.h: Likewise.
48060 * include/grub/i386/efi/time.h: Likewise.
48061 * include/grub/i386/pc/biosdisk.h: Likewise.
48062 * include/grub/i386/pc/boot.h: Likewise.
48063 * include/grub/i386/pc/chainloader.h: Likewise.
48064 * include/grub/i386/pc/console.h: Likewise.
48065 * include/grub/i386/pc/init.h: Likewise.
48066 * include/grub/i386/pc/kernel.h: Likewise.
48067 * include/grub/i386/pc/loader.h: Likewise.
48068 * include/grub/i386/pc/memory.h: Likewise.
48069 * include/grub/i386/pc/multiboot.h: Likewise.
48070 * include/grub/i386/pc/serial.h: Likewise.
48071 * include/grub/i386/pc/time.h: Likewise.
48072 * include/grub/i386/pc/vbe.h: Likewise.
48073 * include/grub/i386/pc/vbeblit.h: Likewise.
48074 * include/grub/i386/pc/vbefill.h: Likewise.
48075 * include/grub/i386/pc/vbeutil.h: Likewise.
48076 * include/grub/i386/pc/vga.h: Likewise.
48077 * include/grub/ieee1275/ieee1275.h: Likewise.
48078 * include/grub/ieee1275/ofdisk.h: Likewise.
48079 * include/grub/powerpc/libgcc.h: Likewise.
48080 * include/grub/powerpc/setjmp.h: Likewise.
48081 * include/grub/powerpc/types.h: Likewise.
48082 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48083 * include/grub/powerpc/ieee1275/console.h: Likewise.
48084 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48085 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48086 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48087 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48088 * include/grub/powerpc/ieee1275/time.h: Likewise.
48089 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48090 * include/grub/sparc64/libgcc.h: Likewise.
48091 * include/grub/sparc64/setjmp.h: Likewise.
48092 * include/grub/sparc64/types.h: Likewise.
48093 * include/grub/sparc64/ieee1275/console.h: Likewise.
48094 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48095 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48096 * include/grub/sparc64/ieee1275/time.h: Likewise.
48097 * include/grub/util/biosdisk.h: Likewise.
48098 * include/grub/util/getroot.h: Likewise.
48099 * include/grub/util/lvm.h: Likewise.
48100 * include/grub/util/misc.h: Likewise.
48101 * include/grub/util/raid.h: Likewise.
48102 * include/grub/util/resolve.h: Likewise.
48103 * io/gzio.c: Likewise.
48104 * kern/device.c: Likewise.
48105 * kern/disk.c: Likewise.
48106 * kern/dl.c: Likewise.
48107 * kern/elf.c: Likewise.
48108 * kern/env.c: Likewise.
48109 * kern/err.c: Likewise.
48110 * kern/file.c: Likewise.
48111 * kern/fs.c: Likewise.
48112 * kern/loader.c: Likewise.
48113 * kern/main.c: Likewise.
48114 * kern/misc.c: Likewise.
48115 * kern/mm.c: Likewise.
48116 * kern/parser.c: Likewise.
48117 * kern/partition.c: Likewise.
48118 * kern/rescue.c: Likewise.
48119 * kern/term.c: Likewise.
48120 * kern/efi/efi.c: Likewise.
48121 * kern/efi/init.c: Likewise.
48122 * kern/efi/mm.c: Likewise.
48123 * kern/i386/dl.c: Likewise.
48124 * kern/i386/efi/init.c: Likewise.
48125 * kern/i386/efi/startup.S: Likewise.
48126 * kern/i386/pc/init.c: Likewise.
48127 * kern/i386/pc/lzo1x.S: Likewise.
48128 * kern/i386/pc/startup.S: Likewise.
48129 * kern/ieee1275/ieee1275.c: Likewise.
48130 * kern/powerpc/cache.S: Likewise.
48131 * kern/powerpc/dl.c: Likewise.
48132 * kern/powerpc/ieee1275/cmain.c: Likewise.
48133 * kern/powerpc/ieee1275/crt0.S: Likewise.
48134 * kern/powerpc/ieee1275/init.c: Likewise.
48135 * kern/powerpc/ieee1275/openfw.c: Likewise.
48136 * kern/sparc64/cache.S: Likewise.
48137 * kern/sparc64/dl.c: Likewise.
48138 * kern/sparc64/ieee1275/init.c: Likewise.
48139 * kern/sparc64/ieee1275/openfw.c: Likewise.
48140 * loader/efi/chainloader.c: Likewise.
48141 * loader/efi/chainloader_normal.c: Likewise.
48142 * loader/i386/efi/linux.c: Likewise.
48143 * loader/i386/efi/linux_normal.c: Likewise.
48144 * loader/i386/pc/chainloader.c: Likewise.
48145 * loader/i386/pc/chainloader_normal.c: Likewise.
48146 * loader/i386/pc/linux.c: Likewise.
48147 * loader/i386/pc/linux_normal.c: Likewise.
48148 * loader/i386/pc/multiboot.c: Likewise.
48149 * loader/i386/pc/multiboot_normal.c: Likewise.
48150 * loader/powerpc/ieee1275/linux.c: Likewise.
48151 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48152 * normal/arg.c: Likewise.
48153 * normal/cmdline.c: Likewise.
48154 * normal/command.c: Likewise.
48155 * normal/completion.c: Likewise.
48156 * normal/execute.c: Likewise.
48157 * normal/function.c: Likewise.
48158 * normal/lexer.c: Likewise.
48159 * normal/main.c: Likewise.
48160 * normal/menu.c: Likewise.
48161 * normal/menu_entry.c: Likewise.
48162 * normal/misc.c: Likewise.
48163 * normal/parser.y: Likewise.
48164 * normal/script.c: Likewise.
48165 * normal/i386/setjmp.S: Likewise.
48166 * normal/powerpc/setjmp.S: Likewise.
48167 * normal/sparc64/setjmp.S: Likewise.
48168 * partmap/acorn.c: Likewise.
48169 * partmap/amiga.c: Likewise.
48170 * partmap/apple.c: Likewise.
48171 * partmap/gpt.c: Likewise.
48172 * partmap/pc.c: Likewise.
48173 * partmap/sun.c: Likewise.
48174 * term/gfxterm.c: Likewise.
48175 * term/terminfo.c: Likewise.
48176 * term/efi/console.c: Likewise.
48177 * term/i386/pc/console.c: Likewise.
48178 * term/i386/pc/serial.c: Likewise.
48179 * term/i386/pc/vesafb.c: Likewise.
48180 * term/i386/pc/vga.c: Likewise.
48181 * term/ieee1275/ofconsole.c: Likewise.
48182 * util/biosdisk.c: Likewise.
48183 * util/console.c: Likewise.
48184 * util/genmoddep.c: Likewise.
48185 * util/getroot.c: Likewise.
48186 * util/grub-emu.c: Likewise.
48187 * util/grub-mkdevicemap.c: Likewise.
48188 * util/grub-probe.c: Likewise.
48189 * util/lvm.c: Likewise.
48190 * util/misc.c: Likewise.
48191 * util/raid.c: Likewise.
48192 * util/resolve.c: Likewise.
48193 * util/update-grub.in: Likewise.
48194 * util/update-grub_lib.in: Likewise.
48195 * util/grub.d/00_header.in: Likewise.
48196 * util/grub.d/10_hurd.in: Likewise.
48197 * util/grub.d/10_linux.in: Likewise.
48198 * util/i386/efi/grub-install.in: Likewise.
48199 * util/i386/efi/grub-mkimage.c: Likewise.
48200 * util/i386/pc/grub-install.in: Likewise.
48201 * util/i386/pc/grub-mkimage.c: Likewise.
48202 * util/i386/pc/grub-mkrescue.in: Likewise.
48203 * util/i386/pc/grub-setup.c: Likewise.
48204 * util/i386/pc/misc.c: Likewise.
48205 * util/powerpc/ieee1275/grub-install.in: Likewise.
48206 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48207 * util/powerpc/ieee1275/misc.c: Likewise.
48208 * video/bitmap.c: Likewise.
48209 * video/video.c: Likewise.
48210 * video/i386/pc/vbe.c: Likewise.
48211 * video/i386/pc/vbeblit.c: Likewise.
48212 * video/i386/pc/vbefill.c: Likewise.
48213 * video/i386/pc/vbeutil.c: Likewise.
48214 * video/readers/tga.c: Likewise.
48215
3572d015 482162007-07-02 Robert Millan <rmh@aybabtu.com>
48217
48218 * conf/i386-efi.rmk: Replace obsolete reference to
48219 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48220 with util/getroot.c.
48221 * conf/powerpc-ieee1275.rmk: Likewise.
48222 * conf/sparc64-ieee1275.rmk: Likewise.
48223
48224 * util/grub-emu.c (main): Fix unchecked pointer handling.
48225
2c2a681b 482262007-07-02 Robert Millan <rmh@aybabtu.com>
48227
48228 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48229 invocation to fail, in order to support partition-less media.
48230
48231 * util/i386/pc/grub-install.in: Likewise.
48232
48233 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48234 which fs or partmap modules are needed (akin to its sister scripts).
48235
48236 Also use grub-probe to get rid of unportable /proc/mounts check.
48237
48238 Print the same informational message that the other scripts do, before
fe6b695a 48239 exiting.
2c2a681b 48240
6193defe 482412007-06-23 Robert Millan <rmh@aybabtu.com>
48242
fe6b695a 48243 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 48244 a font file can be found and, if so, echo the GRUB path to it.
48245
48246 * util/update-grub.in: Handle multiple terminals depending on user
48247 input, platform availability and font file presence. Propagate
48248 variables of our findings to /etc/grub.d/ children.
48249
48250 * util/grub.d/00_header.in: Handle multiple terminals, based on
48251 environment setup by update-grub.
48252
eface1dc 482532007-06-23 Robert Millan <rmh@aybabtu.com>
48254
ba50d28f 48255 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 48256
bf697e28 482572007-06-21 Robert Millan <rmh@aybabtu.com>
48258
48259 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48260 indicate end of data section in kernel image.
48261 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48262 GRUB_KERNEL_MACHINE_DATA_END.
48263
48264 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48265 space for it.
48266 * kern/i386/efi/startup.S: Likewise.
48267
48268 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48269 during image generation. Implement --prefix option to override this
48270 patch.
48271 * util/i386/efi/grub-mkimage.c: Likewise.
48272
48273 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48274 code to make path relative to its root into a separate function.
48275
48276 * util/i386/pc/grub-install.in: Use newly provided
48277 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48278 pass the result to grub-install --prefix.
48279
baa574b4 482802007-06-13 Robert Millan <rmh@aybabtu.com>
48281
48282 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48283 DEFAULT_DEVICE_MAP.
48284 * util/grub-emu.c: Use above definitions from misc.h instead of
48285 defining them.
48286 * util/grub-mkdevicemap.c: Likewise.
48287 * util/i386/pc/grub-setup.c: Likewise.
48288 * util/grub-probe.c: Likewise.
48289 (probe): Abort with grub_util_error() when either
48290 grub_guess_root_device or grub_util_get_grub_dev fails.
48291
0215dcbf 482922007-06-12 Robert Millan <rmh@aybabtu.com>
48293
48294 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48295 "pager" assignment.
48296 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48297 "pcdata".
48298 * util/grub-probe.c (probe): Likewise for "drive_name".
48299
8af2ab7b 483002007-06-11 Robert Millan <rmh@aybabtu.com>
48301
48302 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48303 not just the cdrom one.
48304
59d31694 483052007-06-11 Robert Millan <rmh@aybabtu.com>
48306
48307 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48308 Add --pkglibdir=DIR option to override pkglibdir.
48309 Mention --image-type=TYPE in help output.
48310 Fix --grub-mkimage (it was a no-op).
fe6b695a 48311 Abort gracefully when no parameter is given.
59d31694 48312
7ee367e4 483132007-06-11 Robert Millan <rmh@aybabtu.com>
48314
48315 * util/i386/pc/grub-mkrescue.in: New file.
48316 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48317 * Makefile.in: Handle bin_SCRIPTS.
48318
29b0ed46 483192007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48320
48321 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48322 list of video modes.
48323
c0f90770 483242007-06-06 Robert Millan <rmh@aybabtu.com>
48325
48326 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48327 file doesn't exist, or if it is in a filesystem grub can't read.
48328
48329 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48330 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48331 header comment to fit in 80 columns when the variables are resolved.
48332
48333 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48334 could be identified by update-grub. Remove redundant check for
fe6b695a 48335 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 48336 handles that).
48337
fb36dc26 483382007-06-04 Robert Millan <rmh@aybabtu.com>
48339
48340 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48341
48342 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48343
48344 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48345
0c68c93e 483462007-06-04 Robert Millan <rmh@aybabtu.com>
48347
48348 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48349
48350 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48351 grub_apple_partition_map_fini.
48352
48353 * util/biosdisk.c
48354 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48355 to access >2 TiB disks).
48356
48357 Print disk->total_sectors with %llu instead of %lu, since this
48358 variable is always 64-bit (prevents wrong disk size from being displayed
48359 on either >2 TiB disk or big-endian CPU).
48360
48361 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48362 into a generic case that supports all (sane) partition maps.
48363
48364 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48365 breaks big-endian.
48366
48367 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48368 and grub_apple_partition_map_fini() after that.
48369
0f23eb74 483702007-06-01 Robert Millan <rmh@aybabtu.com>
48371
48372 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48373
48374 * util/grub.d/00_header.in: Only enable gfxterm when
48375 convert_system_path_to_grub_path() succeeds.
48376
42c71976 483772007-05-20 Robert Millan <rmh@aybabtu.com>
48378
48379 * util/update-grub_lib.in: New file.
48380 * DISTLIST: Add update-grub_lib.in.
48381 * conf/common.rmk: Generate update-grub_lib and install it in
48382 $(lib_DATA).
48383 * Makefile.in: Add install routine for $(lib_DATA).
48384
48385 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48386 function provided by update-grub_lib to support arbitrary paths of
48387 unifont.pff.
48388 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48389 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48390
5beb2291 483912007-05-19 Robert Millan <rmh@aybabtu.com>
48392
48393 * commands/i386/cpuid.c: New module.
48394 * DISTLIST: Add it.
48395 * conf/i386-efi.rmk: Enable cpuid.mod.
48396 * conf/i386-pc.rmk: Likewise.
48397
7262eca1 483982007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48399
48400 * kern/disk.c (grub_disk_read): Check return value of
48401 grub_realloc().
48402
260ba823 484032007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48404
48405 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48406 arrays.
48407 * disk/raid.c (grub_raid_open): Likewise.
48408
1ecb6cf2 484092007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48410
48411 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48412 stack instead of on the heap.
48413
48414 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48415 before doing a read on it.
48416
48417 * configure.ac: Only use -fno-stack-protector for the target
48418 environment.
f19dbdb7 48419
21c8cbb1 484202007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48421
48422 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48423 __attribute_ ((unused)) to mode_type argument.
48424
48425 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 48426
21c8cbb1 48427 * kern/misc.c (memcmp): Fix prototype.
48428
48429 * include/grub/partition.h [GRUB_UTIL]
48430 (grub_gpt_partition_map_init): Add prototype.
48431 (grub_gpt_partition_map_fini): Likewise.
48432
48433 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48434 at the right place.
48435
48436 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48437 (grub_fat_read_data): Likewise.
48438 (grub_fat_find_dir): Likewise.
48439
48440 * font/manager.c (find_glyph): Make table a const.
48441 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 48442
849d55d3 484432007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48444
48445 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48446 code, first search for device in /dev/mapper, then in /dev.
48447 (grub_util_get_grub_dev): New function.
48448 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48449 prototype.
48450 * util/grub-probe.c (probe): Remove check for RAID, call
48451 grub_util_get_grub_dev() instead of
48452 grub_util_biosdisk_get_grub_dev().
48453 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48454 grub_util_biosdisk_get_grub_dev().
48455 * util/i386/pc/grub-setup.c (main): Likewise.
48456
8fff7c2f 484572007-05-16 Robert Millan <rmh@aybabtu.com>
48458
48459 * DISTLIST: Update for the latest changes.
48460 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48461 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48462 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48463 grub/util/biosdisk.h.
48464 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48465 grub/util/biosdisk.h.
48466
48e12b52 484672007-05-16 Robert Millan <rmh@aybabtu.com>
48468
48469 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48470
46b9d128 484712007-05-16 Robert Millan <rmh@aybabtu.com>
48472
48473 * util/i386/efi/grub-install.in: New.
48474 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48475 newly added grub-install.
48476 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48477 include.
48478 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48479 grub/util/biosdisk.h.
48480 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48481 grub/util/biosdisk.h.
48482
2d1a40a9 484832007-05-16 Robert Millan <rmh@aybabtu.com>
48484
48485 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48486 * include/grub/util/biosdisk.h: ... here.
48487 * util/i386/pc/biosdisk.c: Moved to ...
48488 * util/biosdisk.c: ... here.
48489 * util/i386/pc/getroot.c: Moved to ...
48490 * util/getroot.c: ... here.
48491 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48492 * util/grub-mkdevicemap.c: ... here.
48493 * util/i386/pc/grub-probe.c: Moved to ...
48494 * util/grub-probe.c: ... here.
48495
9e26e3bc 484962007-05-15 Robert Millan <rmh@aybabtu.com>
48497
48498 * util/update-grub.in: Remove duplicated line in grub.cfg header
48499 message.
48500
57f96397 485012007-05-13 Robert Millan <rmh@aybabtu.com>
48502
48503 * util/update-grub.in: Fix a few assumptions about the devices holding
48504 /, /boot and /boot/grub being the same.
48505 * util/grub.d/00_header.in: Likewise.
48506 * util/grub.d/10_hurd.in: Likewise.
48507 * util/grub.d/10_linux.in: Likewise.
48508
48509 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48510 patterns. Use that to define the `.old' suffix as older than `'.
48511
48512 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48513
48514 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48515 the grub.cfg header message.
48516
2e610d62 485172007-05-11 Robert Millan <rmh@aybabtu.com>
48518
48519 * util/update-grub.in: Create device.map if it doesn't already exist,
48520 before attempting to run grub-probe.
48521 Check for grub-probe and grub-mkdevicemap with the same code
48522 grub-install is using.
48523 Remove test mode.
48524
3f6a10ef 485252007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48526
48527 * Makefile.in: Add the datarootdir autoconf variable.
48528
02e7b75e 485292007-05-09 Robert Millan <rmh@aybabtu.com>
48530
48531 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 48532 fail gracefully if dev->disk->partition == NULL.
02e7b75e 48533
75f396cc 485342007-05-07 Robert Millan <rmh@aybabtu.com>
48535
48536 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48537 determine partition map module.
48538 * util/i386/pc/grub-install.in: Use this feature to decide which
48539 partition module to load, instead of hardcoding pc and gpt.
48540
da65cb36 485412007-05-07 Robert Millan <rmh@aybabtu.com>
48542
48543 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48544 source directory differs from build directory.
48545
b57d6a91 485462007-05-05 Robert Millan <rmh@aybabtu.com>
48547
48548 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48549 initialisation.
48550
509d00f1 485512007-05-05 Robert Millan <rmh@aybabtu.com>
48552
48553 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48554
c48f23ef 485552007-05-05 Robert Millan <rmh@aybabtu.com>
48556
48557 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48558 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48559
20b97658 485602007-05-05 Robert Millan <rmh@aybabtu.com>
48561
48562 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48563 (grub_probe_SOURCES): Likewise.
48564 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48565 GPT and initialize dos_part and bsd_part accordingly.
48566 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48567 install_bsd_part.
48568 (main): Activate gpt module for use during partition identification,
48569 and deactivate it afterwards.
48570 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48571 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48572 partition identification, and deactivate it afterwards.
48573
99123174 485742007-05-05 Robert Millan <rmh@aybabtu.com>
48575
48576 * term/i386/pc/console.c (grub_console_fini): Call
48577 grub_term_set_current() before grub_term_unregister().
48578
ebd97f6e 485792007-05-04 Robert Millan <rmh@aybabtu.com>
48580
48581 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48582 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48583 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48584 and update-grub_DATA.
48585 * conf/common.rmk: Build and install update-grub components.
48586 * conf/common.mk: Regenerate.
48587 * util/update-grub.in: New. Core of update-grub.
48588 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48589 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48590 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48591 * util/grub.d/README: New. Document grub.d directory layout.
48592
b06a264d 485932007-05-01 Robert Millan <rmh@aybabtu.com>
48594
48595 * util/grub-emu.c: Move initialization functions
48596 grub_util_biosdisk_init() and grub_init_all() before
48597 grub_util_biosdisk_get_grub_dev(), which relies on them.
48598
41f0050e 485992007-04-19 Robert Millan <rmh@aybabtu.com>
48600
48601 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48602 it is used later.
48603
04582bb3 486042007-04-18 Jerone Young <jerone@gmail.com>
48605
f19dbdb7 48606 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 48607 stanza.
48608
08db4632 486092007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 48610
08db4632 48611 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48612 continue on and look for device node with real device name.
48613
801b76be 486142007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 48615
fe6b695a 48616 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 48617 ability.
48618 * Makefile.in: Add autoconf package transformation code.
48619 * util/i386/pc/grub-install.in: Likewise.
48620 * util/powerpc/ieee1275/grub-install.in: Likewise.
48621
6795c4e1 486222007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48623
48624 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48625 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48626 (EXT2_REVISION): Likewise.
48627 (EXT2_INODE_SIZE): Likewise.
48628 (struct grub_ext2_block_group): Added a missing member
48629 "used_dirs".
48630 (grub_ext2_read_inode): Divide by the inode size in a superblock
48631 instead of 128 to obtain INODES_PER_BLOCK.
48632 Use the macro EXT2_INODE_SIZE instead of directly using
48633 SBLOCK->INODE_SIZE.
48634
d70af616 486352007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48636
48637 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48638 superblock instead of the structure size to compute an
48639 offset. This fixes the problem that GRUB could not read a
48640 filesystem when inode size is different from 128-byte.
48641
3b801603 486422007-03-05 Marco Gerards <marco@gnu.org>
48643
48644 * normal/main.c (read_config_file): When "menu" is not set, create
48645 an initial context.
48646
4785bfe4 486472007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48648
48649 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48650 (HEAP_LIMIT): New macro.
48651 (grub_claim_heap): Claim memory up to `heaplimit'.
48652
a0cbb023 486532007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48654
48655 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48656 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48657 (_start): Likewise.
48658 (grub_arch_modules_addr): Return address after `_end'.
48659 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48660 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48661 (add_segments): Calculate `_end' from phdr size and location.
48662 (ALIGN_UP): Moved to ...
48663 * include/grub/misc.h: here.
48664 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48665 New macro.
48666 (GRUB_IEEE1275_MODULE_BASE): Removed.
48667
fd7d8eba 486682007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48669
48670 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48671 loop boundary.
48672
9b09e6fc 486732007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48674
48675 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48676 All users updated.
48677 (grub_elf64_load_hook_t): Likewise.
48678 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48679 debug output.
48680
3ce27299 486812007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48682
48683 * kern/mm.c: Update copyright.
48684 (grub_mm_debug): Correct syntax error.
48685 (grub_mm_dump_free): New function.
48686 (grub_debug_free): Call `grub_free'.
48687 * include/grub/mm.h: Update copyright.
48688 (grub_mm_dump_free): Add declaration.
48689
077d5fee 486902007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48691
48692 * include/grub/ieee1275/ieee1275.h: Update copyright.
48693 * kern/powerpc/ieee1275/init.c: Likewise.
48694 * kern/powerpc/ieee1275/openfw.c: Likewise.
48695
48696 * loader/powerpc/ieee1275/linux.c: Likewise.
48697 * include/grub/elfload.h: Likewise.
48698 * kern/elf.c: Likewise.
48699 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48700 callers.
48701 (grub_elf64_load): Likewise.
48702 (grub_elf32_load_segment): Move to a nested function.
48703 (grub_elf64_load_segment): Likewise.
48704
dc946850 487052007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48706
48707 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48708 prototype.
48709 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48710 (grub_heap_len): Likewise.
48711 (HEAP_SIZE): New macro.
48712 (grub_claim_heap): New function.
48713 (grub_machine_init): Don't claim heap directly. Call
48714 `grub_claim_heap'.
48715 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48716 (grub_available_iterate): New function.
48717
baa2a121 487182007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48719
48720 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48721 * configure.ac: Use it for testing the HOST and TARGET compilers.
48722
4fe9862e 487232006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48724
48725 * Makefile.in (enable_grub_emu): New variable.
48726 * configure.ac (--enable-grub-emu): New option.
48727 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48728 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48729 * conf/i386-pc.rmk: Likewise.
48730 * conf/powerpc-ieee1275.rmk: Likewise.
48731 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48732
a8aa5762 487332006-12-12 Marco Gerards <marco@gnu.org>
48734
48735 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48736
48737 * kern/env.c (grub_env_unset): Don't free the member `value' when
48738 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48739 pointer.
48740
48741 * normal/main.c (current_menu): Removed.
48742 (free_menu): Unset the `menu' environment variable.
48743 (grub_normal_menu_addentry): Make use of the environment variable
48744 `menu', instead of using the global `current_menu'. Allocate
48745 memory for the sourcecode of this entry.
48746 (read_config_file): New argument `nested', changed all callers.
48747 Only in the case of a new context, initialize a new menu. Set the
48748 `menu' environment variable.
48749 (grub_normal_execute): Don't set and unset the environment
48750 variable `menu' here anymore. Only free the menu when leaving the
48751 context.
48752
48753 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48754 leak.
48755
957b3a3e 487562006-12-11 Marco Gerards <marco@gnu.org>
48757
48758 * normal/menu_entry.c (run): Fix off by one bug so the last line
48759 is executed. Move the loader check to outside the loop.
48760
ef875714 487612006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48762
48763 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48764
4e739985 487652006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48766
48767 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48768 the number of sectors. Reported by Andrey Shuvikov
48769 <mr_hyro@yahoo.com>.
f19dbdb7 48770
790707f2 487712006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48772
48773 * kern/disk.c (grub_disk_read): When there is a read error, always
48774 try to read only the necessary data.
f19dbdb7 48775
790707f2 48776 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48777 disk/raid.c.
48778 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48779 prototype.
48780 [GRUB_UTIL] (grub_raid_fini): Likewise.
48781 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 48782 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 48783 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48784 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48785 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48786 and grub_raid_fini().
f19dbdb7 48787
03e58196 487882006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48789
48790 * include/grub/types.h (__unused): Rename to UNUSED.
48791 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48792 (grub_elf64_size): Likewise.
f19dbdb7 48793
ae4f23bf 487942006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48795
48796 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48797 grub_error_push and grub_error_pop in the error-handling path.
48798 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48799 length.
48800
2166cc83 488012006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48802
48803 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48804 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48806 (kernel_elf_SOURCES): Likewise.
48807 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48808 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48809 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48810 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48811 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48812 (elf_mod_SOURCES): New variable.
48813 (elf_mod_CFLAGS): Likewise.
48814 (elf_mod_LDFLAGS): Likewise.
48815 * include/grub/types.h (__unused): New macro.
48816 * include/grub/elfload.h: New file.
48817 * kern/elf.c: Likewise.
48818 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48819 (ELF32_LOADMASK): New macro.
48820 (ELF64_LOADMASK): Likewise.
48821 (vmlinux): Removed.
48822 (grub_linux_load32): New function.
48823 (grub_linux_load64): Likewise.
48824 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48825 Use grub_elf_t instead of grub_file_t.
48826
a09d5aa5 488272006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48828
48829 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48830 `catch_result' to struct set_color_args.
48831
d976fc51 488322006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48833
48834 * normal/menu.c: Include grub/script.h.
48835 * normal/menu_entry.c: Likewise.
48836 * include/grub/normal.h: Do not include grub/script.h.
48837
67507549 488382006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48839
48840 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48841
69203a99 488422006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48843
48844 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48845 disk.
48846 (grub_disk_close): Print debug messages when closing a disk.
48847 (grub_disk_read): Print debug messages when disk read fails.
48848 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48849 filesystem type.
48850 * kern/partition.c: Include misc.h.
48851 (grub_partition_iterate): Print debug messages when detecting
48852 partition type.
48853
e2b8278c 488542006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48855
48856 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48857 is negative.
48858 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48859
97b2f2ff 488602006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48861
48862 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48863 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48864
6555d655 488652006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48866
48867 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48868 instead of sizeof(lv). Patch by Michael Guntsche.
48869
4d42b77f 488702006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48871
48872 * disk/lvm.c: Rename VGS to VG_LIST.
48873 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48874 (grub_lvm_open): Likewise.
48875 Thanks to Michael Guntsche for finding this bug.
48876
5d74d927 488772006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48878
48879 * configure.ac (AC_INIT): Bumped to 1.95.
48880
a1bb27e4 488812006-10-14 Robert Millan <rmh@aybabtu.com>
48882
48883 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48884 with "/dev/.static/dev/md".
48885
e0994b8b 488862006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48887
48888 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48889 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48890 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48891 DRIVE_NAME are always freed.
48892
48893 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48894 DOS_PART, as a DOS partition is counted from one instead of zero
48895 now. Reported by Robert Millan.
48896
ddd5cee9 488972006-10-14 Robert Millan <rmh@aybabtu.com>
48898
48899 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48900 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48901 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48902 string returned by grub_guess_root_device.
48903 * util/i386/pc/grub-setup.c: Likewise.
48904 * util/i386/pc/grub-probefs.c: Likewise.
48905
48906 * util/i386/pc/grub-probefs.c: Rename to ...
48907 * util/i386/pc/grub-probe.c: ... this.
48908 * DISTLIST: Remove grub-probefs, add grub-probe.
48909 * conf/i386-efi.rmk: Likewise.
48910 * conf/i386-pc.rmk: Likewise.
48911 * util/i386/pc/grub-install.in: Likewise.
48912
48913 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48914 choose which information we want to print.
48915
2b002173 489162006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48917
48918 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48919 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48920 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48921 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48922 video/readers/tga.c and video/i386/pc/vbeutil.c.
48923
489242006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48925
48926 Added support for RAID and LVM.
f19dbdb7 48927
2b002173 48928 * disk/lvm.c: New file.
48929 * disk/raid.c: Likewise.
48930 * include/grub/lvm.h: Likewise.
f19dbdb7 48931 * include/grub/raid.h: Likewise.
2b002173 48932 * include/grub/util/lvm.h: Likewise.
48933 * include/grub/util/raid.h: Likewise.
48934 * util/lvm.c: Likewise.
48935 * util/raid.c: Likewise.
48936
48937 * include/grub/disk.h (grub_disk_dev_id): Add
48938 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48939 (grub_disk_get_size): New prototype.
48940 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48941 returns a partition.
48942 (grub_disk_get_size): New function.
f19dbdb7 48943
2b002173 48944 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48945 verbatim if grub_install_dos_part is -2.
48946
48947 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48948 and LVM devices.
48949
48950 * util/i386/pc/grub-setup.c (setup): New argument
48951 MUST_EMBED. Force embedding of GRUB when the argument is
48952 true. Close FILE before returning.
48953 (main): Add support for RAID and LVM.
f19dbdb7 48954
2b002173 48955 * conf/common.rmk: Add RAID and LVM modules.
48956 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48957 util/lvm.c.
48958 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48959
48960 * kern/misc.c (grub_strstr): New function.
48961 * include/grub/misc.h (grub_strstr): New prototype.
48962
050548d0 489632006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48964
48965 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48966
da849d2d 489672006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48968
48969 * kern/misc.c (grub_strtoull): Guess the base only if not
48970 specified.
48971
97b2f2ff 489722006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 48973
48974 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48975 PowerMac support.
48976
97b2f2ff 489772006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 48978
48979 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48980
48981 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48982 Remove `flags' argument. All callers changed.
48983 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48984 (IEEE1275_IHANDLE_INVALID): New variable.
48985 (IEEE1275_CELL_INVALID): New variable.
48986 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48987 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48988 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48989 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48990 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48991 codes from Open Firmware. All callers updated.
48992 (grub_ieee1275_next_property): Directly return Open Firmware return
48993 code.
48994 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48995 Standardize error checking from `grub_ieee1275_get_property'.
48996 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48997 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48998
97b2f2ff 489992006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 49000
49001 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
49002 `instance_to_package_args' to `instance_to_path_args'.
49003
49004 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
49005 `grub_ieee1275_chosen'.
49006
49007 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
49008 `grub_ieee1275_interpret'.
49009
97b2f2ff 490102006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 49011
49012 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
49013
97b2f2ff 490142006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 49015
49016 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
49017 (__cmpdi): Likewise.
49018
49019 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
49020 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
49021 `grub_ssize_t'.
49022
02bb8acc 49023 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 49024
49025 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
49026 to type `grub_ssize_t'.
49027 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
49028
7f9a8531 490292006-09-22 Marco Gerards <marco@gnu.org>
49030
49031 * normal/script.c (grub_script_create_cmdmenu): Skip leading
49032 newlines.
49033
b5ef1102 490342006-09-22 Marco Gerards <marco@gnu.org>
49035
49036 * commands/echo.c: New file.
49037
49038 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
49039
49040 * conf/common.rmk (echo_mod_SOURCES): New variable.
49041 (echo_mod_CFLAGS): Likewise.
49042 (echo_mod_LDFLAGS): Likewise.
49043
2cff3677 490442006-09-22 Marco Gerards <marco@gnu.org>
49045
49046 * normal/main.c (get_line): Malloc memory instead of using
49047 preallocated memory. Removed the arguments `cmdline' and
49048 `max_len'. Updated all callers.
49049
6ba4688b 490502006-09-22 Marco Gerards <marco@gnu.org>
49051
49052 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
49053 (normal_mod_DEPENDENCIES): Likewise.
49054
49055 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
49056 (normal_mod_DEPENDENCIES): Likewise.
49057
49058 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
49059
e02ac02c 490602006-09-22 Johan Rydberg <jrydberg@gnu.org>
49061
49062 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49063 programs.
49064 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49065 (normal_mod_DEPENDENCIES): Likewise.
49066 * conf/i386-pc.mk: Regenerate.
49067 * conf/i386-efi.mk: Likewise
49068 * conf/common.mk: Likewise.
49069 * conf/powerpc-ieee1275.mk: Likewise.
49070 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 49071
8d252e44 490722006-09-22 Robert Millan <rmh@aybabtu.com>
49073
49074 Sync with i386 version.
49075 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49076 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49077
209bf7ac 490782006-09-21 Robert Millan <rmh@aybabtu.com>
49079
49080 Import from GRUB Legacy (lib/device.c):
49081 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49082 (init_device_map) [__linux__]: Add support for I2O devices.
49083
6b146090 490842006-09-14 Marco Gerards <marco@gnu.org>
49085
49086 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49087 `-melf_i386'.
49088
e38600a8 490892006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 49090
49091 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49092 /boot/grub/*.lst.
78fa1790 49093
2952da5d 49094 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 49095
2952da5d 49096 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49097 before adding it to device.map.
49098
01b82a64 490992006-08-15 Johan Rydberg <jrydberg@gnu.org>
49100
fe6b695a 49101 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 49102 compiles a file; using the -MD option.
49103 * conf/common.mk: Regenerate.
49104 * conf/i386-pc.mk: Likewise.
49105 * conf/i386-efi.mk: Likewise.
49106 * conf/powerpc-ieee1275.mk: Likewise.
49107 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 49108
1064790d 491092006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49110
49111 Move the prototypes of grub_setjmp and grub_longjmp to
49112 cpu/setjmp.h, so that each architecture may specify different
49113 attributes.
f19dbdb7 49114
1064790d 49115 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49116 (grub_longjmp): Likewise.
49117 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49118 (grub_longjmp): Likewise.
49119 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49120 (grub_longjmp): Likewise.
49121
49122 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49123 [!GRUB_UTIL] (grub_longjmp): Removed.
49124
29dda3ed 491252006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49126
49127 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49128 "color!" method does not return any value.
49129
ad2a06ed 491302006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49131
49132 * include/grub/bitmap.h: New file.
49133
49134 * include/grub/i386/pc/vbeutil.h: Likewise.
49135
49136 * video/bitmap.c: Likewise.
49137
49138 * video/readers/tga.c: Likewise.
49139
49140 * video/i386/pc/vbeutil.c: Likewise.
49141
49142 * commands/videotest.c: Code cleanup and updated to reflect to new
49143 video API.
49144
49145 * term/gfxterm.c: Likewise.
49146
49147 * video/video.c: Likewise.
49148
49149 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49150 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49151 (bitmap_mod_SOURCES): New entry.
49152 (bitmap_mod_CFLAGS): Likewise.
49153 (bitmap_mod_LDFLAGS): Likewise.
49154 (tga_mod_SOURCES): Likewise.
49155 (tga_mod_CFLAGS): Likewise.
49156 (tga_mod_LDFLAGS): Likewise.
49157
49158 * include/grub/video.h (grub_video_blit_operators): New enum type.
49159 (grub_video_render_target): Changed as forward declaration and moved
49160 actual definition to be video driver specific.
49161 (grub_video_adapter.blit_bitmap): Added blitting operator.
49162 (grub_video_adapter.blit_render_target): Likewise.
49163 (grub_video_blit_bitmap): Likewise.
49164 (grub_video_blit_render_target): Likewise.
49165
49166 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49167 driver specific render target definition.
49168 (grub_video_vbe_map_rgba): Added driver internal helper.
49169 (grub_video_vbe_unmap_color): Updated to use
49170 grub_video_i386_vbeblit_info.
49171 (grub_video_vbe_get_video_ptr): Likewise.
49172
49173 * include/grub/i386/pc/vbeblit.h
49174 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49175 grub_video_i386_vbeblit_info.
49176 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49177 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49178 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49179 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49180 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49181 (grub_video_i386_vbeblit_index_index): Likewise.
49182 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49183 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49184 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49185 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49186 operator.
49187 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49188 operator.
49189
49190 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49191 include/grub/i386/pc/vbeblit.h.
49192
49193 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49194 Updated to use grub_video_i386_vbeblit_info.
49195 (grub_video_i386_vbefill_R8G8B8): Likewise.
49196 (grub_video_i386_vbefill_index): Likewise.
49197 (grub_video_i386_vbefill): Added generic filler.
49198
49199 * video/i386/pc/vbefill.c: Updated to reflect changes on
49200 include/grub/i386/pc/vbefill.h.
49201
49202 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49203 grub_video_i386_vbeblit_info.
49204 (grub_video_vbe_unmap_color): Likewise.
49205 (grub_video_vbe_blit_glyph): Likewise.
49206 (grub_video_vbe_scroll): Likewise.
49207 (grub_video_vbe_draw_pixel): Removed function.
49208 (grub_video_vbe_get_pixel): Likewise.
49209 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49210 updated code to use it.
49211 (common_blitter): Added common blitter for render target and bitmap.
49212 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49213 (grub_video_vbe_blit_render_target): Likewise.
49214
bc8c036d 492152006-07-30 Johan Rydberg <jrydberg@gnu.org>
49216
49217 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49218 is in text mode if there is no console control protocol instance
49219 available.
49220
684a8eff 492212006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49222
49223 * include/grub/video.h: Code cleanup.
49224
49225 * include/grub/i386/pc/vbe.h: Likewise.
49226
49227 * video/i386/pc/vbe.c: Likewise.
49228
49229 * video/i386/pc/vbeblit.c: Likewise.
49230
49231 * video/i386/pc/vbefill.c: Likewise.
49232
49233 * video/video.c: Likewise. Also added more comments.
49234
5915059b 492352006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49236
49237 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49238 (struct grub_biosdisk_dap): Likewise.
49239
49240 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49241 linkage settings for all functions.
49242
90ce5d56 492432006-07-12 Marco Gerards <marco@gnu.org>
49244
49245 * configure.ac (--enable-mm-debug): Fix typo.
49246
49247 * genkernsyms.sh.in: Use proper quoting for `CC'.
49248
43e7f879 492492006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49250
49251 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49252 (normal_mod_ASFLAGS): Remove "-m32".
49253
4889bdec 492542006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49255
49256 * util/misc.c: Include config.h.
49257 [!HAVE_MEMALIGN]: Do not include malloc.h.
49258 (grub_memalign): Use posix_memalign, if present. Then, use
49259 memalign, if present. Otherwise, emit an error.
49260
49261 * util/grub-emu.c: Do not include malloc.h.
49262
49263 * include/grub/util/misc.h: Include unistd.h. This is required for
49264 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49265 D. Eades III <hde@foobar-qux.org>.
49266
49267 * configure.ac (AC_GNU_SOURCE): Added.
49268 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49269 type.
49270
fd39d4da 492712006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49272
49273 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49274 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49275
b786f3b5 492762006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49277
49278 * include/grub/types.h (grub_host_addr_t): Rename to
49279 grub_target_addr_t.
49280 (grub_host_off_t): Rename to grub_target_off_t.
49281 (grub_host_size_t): Rename to grub_target_size_t.
49282 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49283 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49284
49285 * include/grub/kernel.h (struct grub_module_header): Change type
49286 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49287 (grub_module_info): Likewise.
f19dbdb7 49288
051988bb 492892006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49290
49291 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49292 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49293 Velazquez <jesus.velazquez@gmail.com>.
49294
deae281b 492952006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49296
49297 Count partitions from 1 instead of 0 in the string representation
49298 of partitions. Still use 0-based internally.
f19dbdb7 49299
deae281b 49300 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49301 (sun_partition_map_iterate): Use grub_partition_t instead of
49302 struct grub_partition *. Cast DESC->START_CYLINDER to
49303 grub_uint64_t after converting the endian.
49304 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49305 (sun_partition_map_get_name): Add 1 to P->INDEX.
49306
49307 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49308 PCDATA->DOS_PART.
49309 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49310
49311 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49312 zero instead of one.
49313 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49314 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49315
49316 * partmap/apple.c (apple_partition_map_iterate): Change the type
49317 of POS to unsigned.
49318 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49319 (apple_partition_map_get_name): Add 1 into P->INDEX.
49320
49321 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49322 of POS to unsigned.
49323 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49324 calculate the offset of a partition.
49325 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49326 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49327
49328 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49329 SECTOR to grub_disk_addr_t.
49330 (acorn_partition_map_iterate): Likewise.
49331 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49332 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49333 top.
49334 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49335
49336 * kern/i386/pc/init.c (make_install_device): Add 1 into
49337 GRUB_INSTALL_DOS_PART.
49338
49339 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49340 conditional.
49341
524a1e6a 493422006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49343
49344 Clean up the code to support 64-bit addressing in disks and
49345 files. This change is not enough for filesystems yet.
f19dbdb7 49346
524a1e6a 49347 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49348 type of "start" to grub_uint64_t.
49349 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49350 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49351 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49352 convert addresses.
49353
49354 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49355 to grub_disk_addr_t.
49356
49357 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49358 string.
49359
49360 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49361
49362 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49363 to char *.
49364
49365 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49366
49367 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49368
49369 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49370
49371 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49372 to grub_off_t, to detect an error from grub_file_seek.
49373 (grub_multiboot_load_elf32): Likewise.
49374
49375 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49376 maximum unsigned long value when an overflow is detected.
49377 (grub_strtoull): New function.
49378 (grub_divmod64): Likewise.
49379 (grub_lltoa): use grub_divmod64.
49380
49381 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49382 grub_disk_addr_t.
49383 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49384 the pointer to next character. Use grub_strtoull instead of
49385 grub_strtoul.
49386 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49387 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49388 respectively.
49389
fe6b695a 49390 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 49391 return value is signed.
49392 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49393 test if OFFSET is less than zero, as OFFSET is unsigned now.
49394
49395 * kern/disk.c (struct grub_disk_cache): Change the type of
49396 "sector" to grub_disk_addr_t.
49397 (grub_disk_cache_get_index): Change the type of SECTOR to
49398 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49399 unsigned after shifting.
49400 (grub_disk_cache_invalidate): Change the type of SECTOR to
49401 grub_disk_addr_t.
49402 (grub_disk_cache_unlock): Likewise.
49403 (grub_disk_cache_store): Likewise.
49404 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49405 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49406 grub_disk_addr_t and grub_uint64_t, respectively.
49407 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49408 body, as the value of OFFSET is tweaked by
49409 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49410 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49411 respectively.
49412 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49413 body, as the value of OFFSET is tweaked by
49414 grub_disk_check_range. Change the types of LEN and N to
49415 grub_size_t.
49416
49417 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49418 and "saved_offset" to grub_off_t.
49419 (test_header): Cast BUF to char *.
49420 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49421 to char *.
49422 (grub_gzio_read): Change the types of OFFSET and SIZE to
49423 grub_off_t and grub_size_t, respectively.
49424
49425 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49426 Removed.
49427 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49428 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49429 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49430 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49431 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49432
49433 * include/grub/types.h (grub_off_t): Unconditionally set to
49434 grub_uint64_t.
49435 (grub_disk_addr_t): Changed to grub_uint64_t.
49436
49437 * include/grub/partition.h (struct grub_partition): Change the
49438 types of "start", "len" and "offset" to grub_disk_addr_t,
49439 grub_uint64_t and grub_disk_addr_t, respectively.
49440 (grub_partition_get_start): Return grub_disk_addr_t.
49441 (grub_partition_get_len): Return grub_uint64_t.
49442
49443 * include/grub/misc.h (grub_strtoull): New prototype.
49444 (grub_divmod64): Likewise.
49445
49446 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49447 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49448 grub_off_t, respectively.
49449 All callers and references changed.
49450
49451 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49452 grub_size_t in "read".
49453 All callers and references changed.
49454
49455 * include/grub/file.h (struct grub_file): Change the types of
49456 "offset" and "size" to grub_off_t and grub_off_t,
49457 respectively. Change the type of SECTOR to grub_disk_addr_t in
49458 "read_hook".
49459 (grub_file_read): Change the type of LEN to grub_size_t.
49460 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49461 grub_off_t.
49462 (grub_file_size): Return grub_off_t.
49463 (grub_file_tell): Likewise.
49464 All callers and references changed.
49465
49466 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49467 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49468 "write".
49469 (struct grub_disk): Change the type of "total_sectors" to
49470 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 49471 "read_hook".
524a1e6a 49472 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49473 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49474 (grub_disk_write): Likewise.
49475 All callers and references changed.
49476
49477 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49478 char * for grub_strncmp to silence gcc.
49479 (grub_iso9660_mount): Likewise.
49480 (grub_iso9660_mount): Likewise.
49481 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49482 return statement.
49483 (grub_iso9660_iterate_dir): Likewise.
49484 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49485
49486 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49487 LEN to grub_disk_addr_t and grub_size_t, respectively.
49488
49489 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49490
49491 * fs/jfs.c (grub_jfs_read_file): Likewise.
49492
49493 * fs/minix.c (grub_jfs_read_file): Likewise.
49494
49495 * fs/sfs.c (grub_jfs_read_file): Likewise.
49496
49497 * fs/ufs.c (grub_jfs_read_file): Likewise.
49498
49499 * fs/xfs.c (grub_jfs_read_file): Likewise.
49500
49501 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49502 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49503 respectively.
49504
49505 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49506 BLKNR to -1 instead of returning GRUB_ERRNO.
49507 (grub_ext2_read_file): Change the types of SECTOR and
49508 LEN to grub_disk_addr_t and grub_size_t, respectively.
49509
49510 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49511 LEN to grub_disk_addr_t and grub_size_t, respectively.
49512
49513 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49514 grub_file_read.
49515
49516 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49517 string. Do not cast SECTOR explicitly.
49518
49519 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49520 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49521 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49522 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49523 over 2TB and LBA mode is not supported, raise an error.
49524 (get_safe_sectors): New function.
49525 (grub_biosdisk_read): Use get_safe_sectors.
49526 (grub_biosdisk_write): Likewise.
49527
49528 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49529 (grub_efidisk_write): Likewise.
49530
49531 * disk/loopback.c (delete_loopback): Cosmetic changes.
49532 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49533 correctly.
49534 (grub_loopback_open): Likewise.
49535 (grub_loopback_read): Likewise. Also, change the type of POS to
49536 grub_off_t, and fix the usage of grub_memset.
49537
49538 * commands/i386/pc/play.c: Include grub/machine/time.h.
49539
49540 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49541 print FILE->SIZE.
49542
49543 * commands/configfile.c: Include grub/env.h.
49544
49545 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49546 GRUB_ERRNO directly instead. Change the type of POS to
49547 grub_off_t. Follow the coding standard.
49548
49549 * commands/blocklist.c: Include grub/partition.h.
49550 (grub_cmd_blocklist): Return an error if the underlying device is
49551 not a disk. Take the starting sector of a partition into account,
49552 if a partition is used.
49553
49554 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49555 a length field.
49556 (lba_mode): Support 64-bit addresses.
49557 (chs_mode): Likewise.
49558 (copy_buffer): Adapted to the new offsets of a length field and a
49559 segment field.
49560 (blocklist_default_start): Allocate 64-bit space.
49561
49562 * boot/i386/pc/boot.S (force_lba): Removed.
49563 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 49564 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 49565 space.
49566 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49567 is useless.
49568 (lba_mode): Refactored to support a 64-bit address. More size
49569 optimization.
49570 (setup_sectors): Likewise.
49571
53af98ad 495722006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49573
49574 * DISTLIST: Added include/grub/i386/linux.h. Removed
49575 include/grub/i386/pc/linux.h
49576
49577 * configure.ac (AC_INIT): Bumped to 1.94.
49578
49579 * config.guess: Updated from gnulib.
49580 * config.sub: Likewise.
49581 * install-sh: Likewise.
49582 * mkinstalldirs: Likewise.
49583
b4c1940a 495842006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49585
49586 * conf/common.rmk (grub_modules_init.lst): Depended on
49587 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49588 MODSRCFILES.
49589
49590 * genmk.rb (PModule::rule): Reverted the previous change.
49591
cfca1cfd 495922006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49593
49594 * conf/common.rmk (grub_modules_init.lst): Depends on
49595 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49596 that the target does not exist before producing.
49597 (grub_modules_init.h): Remove the target before generating.
49598 (grub_emu_init.c): Likewise.
49599
49600 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49601
aa6d7826 496022006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49603
49604 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49605 for the target-specific tests. Make sure that we also have the
49606 up-to-date target variables for those tests.
49607
26c607b9 496082006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49609
49610 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49611 (PModule::rule): Likewise.
49612
0162321a 496132006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49614
49615 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49616 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49617 target-specific flags should be prefixed.
49618 (PModule::rule): Likewise.
49619
6c826348 496202006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49621
49622 * configure.ac (CMP): Check if cmp is available explicitly.
49623
b977bf01 496242006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49625
49626 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49627 (target_cpu): New variable.
49628 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 49629
b977bf01 49630 * util/i386/pc/grub-install.in (host_cpu): Removed.
49631 (target_cpu): New variable.
49632 (pkglibdir): Use target_cpu instead of host_cpu.
49633
49634 * util/genmoddep.c: Removed.
f19dbdb7 49635
b977bf01 49636 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49637 instead of GRUB_HOST_SIZEOF_VOID_P.
49638 * kern/dl.c: Likewise.
49639
49640 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49641 ...
49642 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49643 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49644 (GRUB_TARGET_SIZEOF_LONG): ... this.
49645 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49646 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49647 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49648 to ...
49649 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49650 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49651 (GRUB_TARGET_SIZEOF_LONG): ... this.
49652 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49653 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49654 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49655 to ...
49656 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49657 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49658 (GRUB_TARGET_SIZEOF_LONG): ... this.
49659 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49660 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49661
49662 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49663 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49664 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49665 instead of GRUB_HOST_SIZEOF_LONG.
49666 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49667 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49668 GRUB_CPU_WORDS_BIGENDIAN.
49669 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49670 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49671 grub_host_ssize_t.
49672
49673 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49674 (genmoddep_SOURCES): Likewise.
49675 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49676 (genmoddep_SOURCES): Likewise.
49677 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49678 (genmoddep_SOURCES): Likewise.
49679 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49680 Likewise.
49681 (genmoddep_SOURCES): Likewise.
49682
49683 * genmoddep.awk: New file.
49684
49685 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49686 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49687 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49688 (PModule::rule): Likewise.
49689 (Program::rule): Likewise.
49690 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49691 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49692 respectively.
49693
49694 * configure.ac: Rewritten intensively to use host and target
49695 instead of build and host, respectively.
49696
49697 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49698 (host_cpu): Removed.
49699 (target_cpu): New variable.
49700 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49701 (BUILD_CC): Removed.
49702 (BUILD_CFLAGS): Likewise.
49703 (BUILD_CPPFLAGS): Likewise.
49704 (TARGET_CC): New variable.
49705 (TARGET_CFLAGS): Likewise.
49706 (TARGET_CPPFLAGS): Likewise.
49707 (TARGET_LDFLAGS): Likewise.
49708 (AWK): Likewise.
49709 (include): Use target_cpu instead of host_cpu.
49710 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 49711
b977bf01 49712 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49713
f09771a1 497142006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49715
49716 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49717 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49718 field 'false' to 'exec_on_false'.
49719 (grub_script_create_cmdif): Renamed argument names to reflect above
49720 changes.
49721
49722 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49723
49724 * normal/script.c (grub_script_create_cmdif): Likewise.
49725
118f4fb3 497262006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49727
49728 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49729 top.
49730 (grub_hfsplus_btree_recptr): Likewise.
49731 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49732 FILEBLOCK both to pass a block number and store next block
49733 number.
49734 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49735 overflow file correctly. Specify errors appropriately, because
49736 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49737 grub_hfsplus_btree_recptr to get the pointer to a found key.
49738 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49739 is found.
49740
49741 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49742 linux.mod.
49743 (_linux_mod_SOURCES): New variable.
49744 (_linux_mod_CFLAGS): Likewise.
49745 (_linux_mod_LDFLAGS): Likewise.
49746 (linux_mod_SOURCES): Likewise.
49747 (linux_mod_CFLAGS): Likewise.
49748 (linux_mod_LDFLAGS): Likewise.
49749
49750 * DISTLIST: Added loader/i386/efi/linux.c,
49751 loader/i386/efi/linux_normal.c and
49752 include/grub/i386/efi/loader.h.
49753
49754 * loader/i386/efi/linux.c: New file.
49755 * loader/i386/efi/linux_normal.c: Likewise.
49756 * include/grub/i386/efi/loader.h: Likewise.
49757
89a7d726 497582006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49759
49760 * commands/blocklist.c: New file.
49761
49762 * DISTLIST: Added commands/blocklist.c.
49763
49764 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 49765 color for the background, and a darker color for the foreground.
89a7d726 49766 (grub_console_checkkey): Return READ_KEY.
49767 (grub_console_cls): Set the background to
49768 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49769
49770 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49771
49772 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49773 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49774
49775 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49776 prototype.
49777
49778 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49779 BG. The spec is wrong again.
49780
49781 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49782 prototype.
49783 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49784
49785 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49786 commands/blocklist.c.
49787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 49788
89a7d726 49789 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49790 (blocklist_mod_SOURCES): New variable.
49791 (blocklist_mod_CFLAGS): Likewise.
49792 (blocklist_mod_LDFLAGS): Likewise.
49793
75c8f258 497942006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49795
49796 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49797 duplication.
49798 (lba_mode): Use %eax more intensively to reduce the code size.
49799
da2eb181 498002006-05-20 Marco Gerards <marco@gnu.org>
49801
49802 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49803
49804 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49805 for `menuentry'.
49806 (script): Accept leading newlines.
49807 (newlines): New rule to describe 0 or more newlines.
49808 (commands): Accept `command' with trailing newline. Fixed the
49809 order in which arguments were passed to `grub_script_add_cmd'.
49810 Accept commands separated by newlines.
49811 (function): Changed to accept newlines.
49812 (menuentry) Rewritten.
49813
49814 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49815 front of the list, instead of to the end.
49816
577b4050 498172006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49818
49819 * util/i386/pc/grub-install.in (bindir): New variable.
49820 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49821 Shaver <lbgwjl@gmail.com>.
49822
0d6e1189 498232006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49824
49825 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49826 grub/machine/linux.h
49827 * loader/i386/pc/linux.c: Likewise.
49828
49829 * include/grub/i386/pc/linux.h: Moved to ...
49830 * include/grub/i386/linux.h: ... here.
49831
49832 * include/grub/i386/linux.h (struct linux_kernel_params): New
49833 struct.
f19dbdb7 49834
31b86e9f 498352006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49836
49837 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49838 checking.
49839 (grub_video_vbe_blit_glyph): Likewise.
49840 (grub_video_vbe_blit_bitmap): Likewise.
49841 (grub_video_vbe_blit_render_target): Likewise.
49842
83b984de 498432006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49844
49845 * configure.ac (--with-platform): Properly quote the square
49846 brackets.
49847
5f0413bd 498482006-05-08 Marco Gerards <marco@gnu.org>
49849
49850 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49851 this...
49852 (kernel_elf_HEADERS): ...to this. Updated all users.
49853 (grubof_symlist.c): Renamed from this...
49854 (kernel_elf_symlist.c): ...to this. Updated all users.
49855 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49856 (grubof_SOURCES): Renamed from this...
49857 (kernel_elf_SOURCES): ...to this.
49858 (grubof_HEADERS): Renamed from this...
49859 (kernel_elf_HEADERS): ...to this.
49860 (grubof_CFLAGS): Renamed from this...
49861 (kernel_elf_CFLAGS): ...to this.
49862 (grubof_ASFLAGS): Renamed from this...
49863 (kernel_elf_ASFLAGS): ...to this.
49864 (grubof_LDFLAGS): Renamed from this...
49865 (kernel_elf_LDFLAGS): ...to this.
49866
49867 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49868 this...
49869 (kernel_elf_HEADERS): ...to this. Updated all users.
49870 (grubof_symlist.c): Renamed from this...
49871 (kernel_elf_symlist.c): ...to this. Updated all users.
49872 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49873 (grubof_SOURCES): Renamed from this...
49874 (kernel_elf_SOURCES): ...to this.
49875 (grubof_HEADERS): Renamed from this...
49876 (kernel_elf_HEADERS): ...to this.
49877 (grubof_CFLAGS): Renamed from this...
49878 (kernel_elf_CFLAGS): ...to this.
49879 (grubof_ASFLAGS): Renamed from this...
49880 (kernel_elf_ASFLAGS): ...to this.
49881 (grubof_LDFLAGS): Renamed from this...
49882 (kernel_elf_LDFLAGS): ...to this.
49883
49884 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49885 `kernel.elf' instead of `grubof'.
49886
05568c2e 498872006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49888
49889 Add --with-platform to configure. Use pkglibdir instead of
49890 pkgdatadir. This is reported by Roger Leigh.
49891
49892 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49893 (host_vendor): Likewise.
49894 (host_os): Likewise.
49895 (pkgdatadir): Likewise.
49896 (platform): New variable.
49897 (pkglibdir): Likewise.
49898 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 49899
05568c2e 49900 * util/i386/pc/grub-install.in (datadir): Removed.
49901 (host_vendor): Likewise.
49902 (host_os): Likewise.
49903 (pkgdatadir): Likewise.
49904 (platform): New variable.
49905 (pkglibdir): Likewise.
49906 Use PKGLIBDIR instead of PKGDATADIR.
49907
49908 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49909 instead of GRUB_DATADIR.
49910 (main): Likewise.
49911 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49912 (main): Likewise.
49913 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49914 (main): Likewise.
49915
49916 * configure.ac (--with-platform): New option.
49917 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49918
49919 * Makefile.in: Include a makefile based on PLATFORM instead of
49920 HOST_VENDOR.
49921 (pkgdatadir): Not appended by the machine type.
49922 (pkglibdir): Appended by the machine type.
49923 (host_vendor): Removed.
49924 (platform): New variable.
49925 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49926 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49927 (uninstall): Likewise.
49928
4e93851c 499292006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49930
49931 Use the environment context in the menu. Remove the commands
49932 "default" and "timeout", and use variables instead.
f19dbdb7 49933
4e93851c 49934 * normal/menu.c: Include grub/env.h.
49935 (print_entry): Cast TITLE to silence gcc.
49936 (get_timeout): New function.
49937 (set_timeout): Likewise.
49938 (get_entry_number): Likewise.
49939 (run_menu): Use a default entry, a fallback entry and a timeout
49940 in the environment variables "default", "fallback" and
49941 "timeout". Also, tweak the default entry if it is not within the
49942 current menu entries.
49943 (grub_menu_run): Use a fallback entry in the environment variable
49944 "fallback".
49945
49946 * normal/main.c (read_config_file): Do not initialize
49947 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49948 NEWMENU->TIMEOUT.
49949 (grub_normal_execute): Use a data slot to store the menu.
49950
49951 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49952 fallback_entry and timeout.
49953 (struct grub_menu_list): Removed.
49954 (grub_menu_list_t): Likewise.
49955 (struct grub_context): Likewise.
49956 (grub_context_t): Likewise.
49957 (grub_context_get): Likewise.
49958 (grub_context_get_current_menu): Likewise.
49959 (grub_context_push_menu): Likewise.
49960 (grub_context_pop_menu): Likewise.
49961 (grub_default_init): Likewise.
49962 (grub_default_fini): Likewise.
49963 (grub_timeout_init): Likewise.
49964 (grub_timeout_fini): Likewise.
49965
49966 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49967 and timeout.mod.
49968 (normal_mod_SOURCES): Removed normal/context.c.
49969
49970 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49971 commands/default.c, commands/timeout.c and normal/context.c.
49972 (normal_mod_SOURCES): Removed normal/context.c.
49973
49974 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49975 commands/timeout.c and normal/context.c.
49976 (normal_mod_SOURCES): Removed normal/context.c.
49977
49978 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49979 commands/default.c, commands/timeout.c and normal/context.c.
49980 (normal_mod_SOURCES): Removed normal/context.c.
49981
49982 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49983 timeout.mod.
49984 (default_mod_SOURCES): Removed.
49985 (default_mod_CFLAGS): Likewise.
49986 (default_mod_LDFLAGS): Likewise.
49987 (timeout_mod_SOURCES): Removed.
49988 (timeout_mod_CFLAGS): Likewise.
49989 (timeout_mod_LDFLAGS): Likewise.
49990
49991 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49992 normal/context.c.
49993
49994 * commands/default.c: Removed.
49995 * commands/timeout.c: Likewise.
49996 * normal/context.c: Likewise.
49997
1eb9cc1d 499982006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49999
50000 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
50001
385bd9c1 500022006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
50003
50004 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
50005 "next" to "prev" for readability.
50006 (struct grub_env_sorted_var): New struct.
50007 (grub_env_context): Renamed to ...
50008 (initial_context): ... this.
50009 (grub_env_var_context): Renamed to ...
50010 (current_context): ... this.
50011 (grub_env_find): Look only at CURRENT_CONTEXT.
50012 (grub_env_context_open): Rewritten to copy exported variables from
50013 previous context.
50014 (grub_env_context_close): Rewritten according to the new
50015 scheme. Also, add an assertion to prevent the initial context from
50016 removed.
50017 (grub_env_insert): Removed the code for the sorted list.
50018 (grub_env_remove): Likewise.
50019 (grub_env_export): Simply mark the variable with
50020 GRUB_ENV_VAR_GLOBAL.
50021 (grub_env_set): A cosmetic change for naming consistency.
50022 (grub_env_get): Likewise.
50023 (grub_env_unset): Likewise.
50024 (grub_env_iterate): Rewritten to sort variables within this
50025 function.
50026 (grub_register_variable_hook): Fixed for naming consistency. Call
50027 grub_env_find again, only if NAME is not found at the first time.
50028 (mangle_data_slot_name): New function.
50029 (grub_env_set_data_slot): Likewise.
50030 (grub_env_get_data_slot): Likewise.
50031 (grub_env_unset_data_slot): Likewise.
50032
50033 * include/grub/env.h (grub_env_var_type): New enum.
50034 (GRUB_ENV_VAR_LOCAL): New constant.
50035 (GRUB_ENV_VAR_GLOBAL): Likewise.
50036 (GRUB_ENV_VAR_DATA): Likewise.
50037 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
50038 "type".
50039 (grub_env_set): Replace VAR with NAME for consistency.
50040 (grub_register_variable_hook): Likewise.
50041 (grub_env_export): Specify the name of the argument.
50042 (grub_env_set_data_slot): New prototype.
50043 (grub_env_get_data_slot): Likewise.
50044 (grub_env_unset_data_slot): Likewise.
50045
7f362539 500462006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50047
50048 Extend the loader so that GRUB can accept a loader which comes
50049 back to GRUB when a loaded image exits. Also, this change adds
50050 support for a chainloader on EFI.
f19dbdb7 50051
7f362539 50052 * term/efi/console.c: Include grub/misc.h.
50053 (grub_console_checkkey): Display a scan code on the top for
50054 debugging. This will be removed once the EFI port gets stable.
50055 Correct the scan code mapping.
50056
50057 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
50058 allocate memory from larger regions, in order to reduce the number
50059 of allocated regions. Otherwise, the MacOSX loader panics.
50060 (filter_memory_map): Avoid less than 1MB for compatibility with
50061 other loaders.
50062 (add_memory_regions): Allocate from the tail of a region, if
50063 possible, to avoid allocating a region near to 1MB, for the MacOSX
50064 loader.
50065
50066 * kern/efi/init.c (grub_efi_set_prefix): Specify
50067 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50068
50069 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50070 argument IMAGE_HANDLE and specify it to get a loaded image.
50071 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50072 grub_efi_get_loaded_image.
fe6b695a 50073 (grub_efi_get_filename): Divide the length by the size of
7f362539 50074 grub_efi_char16_t.
50075 (grub_efi_get_device_path): New function.
50076 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50077 the length by the size of grub_efi_char16_t for a file path device
50078 path node.
50079
50080 * kern/loader.c (grub_loader_noreturn): New variable.
50081 (grub_loader_set): Accept a new argument NORETURN. Set
50082 GRUB_LOADER_NORETURN to NORETURN.
50083 All callers changed.
50084 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50085 grub_machine_fini.
50086
50087 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50088 prototype.
50089 (grub_efi_get_loaded_image): Take an argument to specify an image
50090 handle.
50091
50092 * include/grub/loader.h (grub_loader_set): Added one more argument
50093 NORETURN.
50094
50095 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50096 instead of grub_efi_open_protocol.
50097 (grub_efidisk_get_device_name): Likewise.
50098 (grub_efidisk_close): Print a newline.
50099 (grub_efidisk_get_device_handle): Fixed to use
50100 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50101 GRUB_EFI_DEVICE_PATH_TYPE.
50102
50103 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50104 * kern/efi/efi.c (device_path_guid): ... here.
50105
50106 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50107 chain.mod.
50108 (kernel_mod_HEADERS): Added efi/disk.h.
50109 (_chain_mod_SOURCES): New variable.
50110 (_chain_mod_CFLAGS): Likewise.
50111 (_chain_mod_LDFLAGS): Likewise.
50112 (chain_mod_SOURCES): Likewise.
50113 (chain_mod_CFLAGS): Likewise.
50114 (chain_mod_LDFLAGS): Likewise.
50115
50116 * DISTLIST: Added include/grub/efi/chainloader.h,
50117 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50118
50119 * include/grub/efi/chainloader.h: New file.
50120 * loader/efi/chainloader.c: Likewise.
50121 * loader/efi/chainloader_normal.c: Likewise.
50122
c0111d6e 501232006-04-30 Marco Gerards <marco@gnu.org>
50124
50125 * commands/configfile.c (grub_cmd_source): New function.
50126 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50127 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50128
df5341da 501292006-04-30 Marco Gerards <marco@gnu.org>
50130
50131 * normal/execute.c (grub_script_execute_cmd): Change the return
50132 type to `grub_err_t'. Correctly return the error.
50133 (grub_script_execute_cmdline): In case a command line is not a
50134 command or a function, try to interpret it as an assignment.
50135
f85934bd 501362006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50137
50138 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50139 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50140 skip a node whose name is obviously invalid as UTF-16,
50141 i.e. contains a NUL character. Stop the iteration when the last
50142 directory entry is found. Instead of using the return value of
50143 grub_hfsplus_btree_iterate_node, store the value in RET and use
50144 it, because the iterator can be stopped by the last directory
50145 entry.
50146
8f8a2cf8 501472006-04-30 Marco Gerards <marco@gnu.org>
50148
50149 * include/grub/env.h (grub_env_export): New prototype. Reported
50150 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50151
a27e84ce 501522006-04-30 Marco Gerards <marco@gnu.org>
50153
50154 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50155 size of the extents in a catalog file record.
50156
eaef0553 501572006-04-29 Marco Gerards <marco@gnu.org>
50158
50159 * commands/configfile.c (grub_cmd_configfile): Execute the
50160 configfile within its own context.
50161
50162 * include/grub/env.h (grub_env_context_open): New prototype.
50163 (grub_env_context_close): Likewise.
50164
50165 * kern/env.c (grub_env): Removed.
50166 (grub_env_sorted): Likewise.
50167 (grub_env_context): New variable.
50168 (grub_env_var_context): Likewise.
50169 (grub_env_find): Search both the active context and the global
50170 context.
50171 (grub_env_context_open): New function.
50172 (grub_env_context_close): Likewise.
50173 (grub_env_insert): Likewise.
50174 (grub_env_remove): Likewise.
50175 (grub_env_export): Likewise.
50176 (grub_env_set): Changed to use helper functions to avoid code
50177 duplication.
50178 (grub_env_iterate): Rewritten so both the current context and the
50179 global context are being used.
50180
50181 * normal/command.c (export_command): New function.
50182 (grub_command_init): Register the `export' function.
50183
7b455f4d 501842006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50185
50186 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50187 explicitly to suppress gcc's warnings.
50188 * fs/fat.c (grub_fat_find_dir): Likewise.
50189 (grub_fat_label): Likewise.
50190 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50191 (grub_xfs_mount): Likewise.
50192 (grub_xfs_label): Likewise.
50193 * fs/affs.c (grub_affs_mount): Likewise.
50194 (grub_affs_label): Likewise.
50195 (grub_affs_iterate_dir): Likewise.
50196 * fs/sfs.c (grub_sfs_mount): Likewise.
50197 (grub_sfs_iterate_dir): Likewise.
50198 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50199 * fs/hfs.c (grub_hfs_mount): Likewise.
50200 (grub_hfs_cmp_catkeys): Likewise.
50201 (grub_hfs_find_dir): Likewise.
50202 (grub_hfs_dir): Likewise.
50203 (grub_hfs_label): Likewise.
50204 * fs/jfs.c (grub_jfs_mount): Likewise.
50205 (grub_jfs_opendir): Likewise.
50206 (grub_jfs_getent): Likewise.
50207 (grub_jfs_lookup_symlink): Likewise.
50208 (grub_jfs_label): Likewise.
50209 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50210 (grub_hfsplus_iterate_dir): Likewise.
50211 (grub_hfsplus_btree_iterate_node): Made static.
50212
50213 * util/grub-emu.c (prefix): New variable.
50214 (grub_machine_set_prefix): New function.
50215 (main): Do not set the environment variable "prefix" here. Only
50216 set PREFIX, which is used later by grub_machine_set_prefix.
50217
50218 * include/grub/video.h: Do not include grub/symbol.h.
50219 (grub_video_register): Not exported. This symbol is not defined in
50220 the kernel.
50221 (grub_video_unregister): Likewise.
50222 (grub_video_iterate): Likewise.
50223 (grub_video_setup): Likewise.
50224 (grub_video_restore): Likewise.
50225 (grub_video_get_info): Likewise.
50226 (grub_video_get_blit_format): Likewise.
50227 (grub_video_set_palette): Likewise.
50228 (grub_video_get_palette): Likewise.
50229 (grub_video_set_viewport): Likewise.
50230 (grub_video_get_viewport): Likewise.
50231 (grub_video_map_color): Likewise.
50232 (grub_video_map_rgb): Likewise.
50233 (grub_video_map_rgba): Likewise.
50234 (grub_video_fill_rect): Likewise.
50235 (grub_video_blit_glyph): Likewise.
50236 (grub_video_blit_bitmap): Likewise.
50237 (grub_video_blit_render_target): Likewise.
50238 (grub_video_scroll): Likewise.
50239 (grub_video_swap_buffers): Likewise.
50240 (grub_video_create_render_target): Likewise.
50241 (grub_video_delete_render_target): Likewise.
50242 (grub_video_set_active_render_target): Likewise.
50243
50244 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50245 Undefined.
50246 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50247
50248 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50249 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50250 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50251 instead of $(srcdir)/genkernsyms.sh.
50252
50253 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50254 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50255 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50256 instead of $(srcdir)/genkernsyms.sh.
50257
50258 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50259 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50260 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50261 instead of $(srcdir)/genkernsyms.sh.
50262
50263 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50264 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50265 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50266 instead of $(srcdir)/genkernsyms.sh.
50267
50268 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50269 genkernsyms.sh.
50270
50271 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50272 genkernsyms.sh.
50273 (gensymlist.sh): New target.
50274 (genkernsyms.sh): Likewise.
50275
50276 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50277 genkernsyms.sh.in and gensymlist.sh.in.
50278
50279 * genkernsyms.sh: Removed.
50280 * gensymlist.sh: Likewise.
f19dbdb7 50281
7b455f4d 50282 * genkernsyms.sh.in: New file.
50283 * gensymlist.sh.in: Likewise.
50284
1885bb27 502852006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50286
50287 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50288 clobber "prefix", since we may have already set it manually.
50289
71538dff 502902006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50291
50292 * kern/misc.c (abort): New alias for grub_abort.
50293
2965c7cc 502942006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50295
50296 A new machine-specific function "grub_machine_set_prefix" is
50297 defined. This is called after loading modules, so that a prefix
50298 initialization can use modules. Also, this change adds an
50299 intensive debugging feature for the memory manager via the
50300 configure option "--enable-mm-debug".
f19dbdb7 50301
2965c7cc 50302 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50303 PART.LEN.
50304
50305 * kern/sparc64/ieee1275/init.c (abort): Removed.
50306 (grub_stop): Likewise.
50307 (grub_exit): New function.
50308 (grub_set_prefix): Renamed to ...
50309 (grub_machine_set_prefix): ... this.
50310 (grub_machine_init): Do not call grub_set_prefix.
50311
50312 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50313 (grub_machine_set_prefix): ... this.
50314 (grub_machine_init): Do not call grub_set_prefix.
50315
50316 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50317 (grub_machine_init): Do not set the prefix here.
50318
50319 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50320
50321 * kern/efi/init.c: Include grub/mm.h.
50322 (grub_efi_set_prefix): New function.
50323
50324 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50325 (grub_efi_get_filename): New function.
50326 (grub_print_device_path): Renamed to ...
50327 (grub_efi_print_device_path): ... this.
50328
50329 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50330 [MM_DEBUG] (grub_realloc): Likewise.
50331 [MM_DEBUG] (grub_free): Likewise.
50332 [MM_DEBUG] (grub_memalign): Likewise.
50333 [MM_DEBUG] (grub_mm_debug): New variable.
50334 [MM_DEBUG] (grub_debug_malloc): New function.
50335 [MM_DEBUG] (grub_debug_free): New function.
50336 [MM_DEBUG] (grub_debug_realloc): New function.
50337 [MM_DEBUG] (grub_debug_memalign): New function.
50338
50339 * kern/misc.c (grub_abort): Print a newline to distinguish
50340 the message.
50341
50342 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50343 grub_set_root_dev after loading modules. This is necessary when
50344 setting a prefix depends on modules.
50345
50346 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50347 (grub_efi_print_device_path): ... this.
50348 (grub_efi_get_filename): New prototype.
50349 (grub_efi_set_prefix): Likewise.
50350
50351 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50352 and grub/disk.h.
50353 (grub_efidisk_get_device_handle): New prototype.
50354 (grub_efidisk_get_device_name): Likewise.
50355
50356 * include/grub/mm.h: Include config.h.
50357 (MM_DEBUG): Removed.
50358 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50359 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50360 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50361 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50362 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50363 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50364 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50365 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50366 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50367
50368 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50369
50370 * disk/efi/efidisk.c: Include grub/partition.h.
50371 (iterate_child_devices): New function.
50372 (add_device): First, compare only last device path nodes, so that
50373 devices are sorted by the types.
50374 (grub_efidisk_get_device_handle): New function.
50375 (grub_efidisk_get_device_name): Likewise.
50376
50377 * configure.ac (--enable-mm-debug): New option to enable the
50378 memory manager debugging feature. This makes the binary much
50379 bigger, so is disabled by default.
50380
9cacaa17 503812006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50382
50383 Use grub_abort instead of grub_stop, and grub_exit must be
50384 define in each architecture now. Also, this change adds support
50385 for EFI disks.
f19dbdb7 50386
9cacaa17 50387 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50388 (grub_getkey): New function.
50389 (grub_term_get_current): Likewise.
50390
50391 * util/i386/pc/grub-setup.c: Include grub/term.h.
50392 (grub_getkey): New function.
50393 (grub_term_get_current): Likewise.
50394
50395 * util/misc.c (grub_stop): Renamed to ...
50396 (grub_exit): ... this.
50397
50398 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50399 (grub_exit): ... this.
50400 (grub_machine_init): Use grub_abort instead of abort.
50401 (grub_stop): Removed.
50402
50403 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50404 abort.
50405
50406 * kern/i386/pc/startup.S (grub_exit): New function.
50407 (cold_reboot): New label.
50408
50409 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50410 (grub_efi_init): Call grub_efidisk_init.
50411 (grub_efi_fini): Call grub_efidisk_fini.
50412
50413 * kern/efi/efi.c: Include grub/mm.h.
50414 (grub_efi_console_control_guid): Renamed to ...
50415 (console_control_guid): ... this.
50416 (grub_efi_loaded_image_guid): Renamed to ...
50417 (loaded_image_guid): ... this.
50418 (grub_efi_locate_handle): New function.
50419 (grub_efi_open_protocol): Likewise.
50420 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50421 GRUB_EFI_CONSOLE_CONTROL_GUID.
50422 (grub_efi_exit): Removed.
50423 (grub_stop): Likewise.
50424 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50425 (grub_exit): New function.
50426 (grub_print_device_path): Likewise.
50427
50428 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50429 (grub_enter_rescue_mode): Register "exit".
50430
50431 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50432 (grub_abort): New function.
50433
50434 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50435
50436 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50437
50438 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50439
50440 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50441 (grub_print_device_path): New prototype.
50442 (grub_efi_locate_handle): Likewise.
50443 (grub_efi_open_protocol): Likewise.
50444
50445 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50446 * disk/efi/efidisk.c: Likewise.
50447
50448 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50449
50450 * include/grub/efi/console_control.h
50451 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50452
50453 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50454 last 8 bytes as an array.
50455 (GRUB_EFI_DISK_IO_GUID): New macro.
50456 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50457 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50458 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50459 grub_uint8_t.
50460 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50461 (struct grub_efi_device_path): Rename the member "sub_type" to
50462 "subtype".
50463 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50464 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50465 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50466 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50467 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50468 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50469 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50470 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50471 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50472 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50473 (struct grub_efi_pci_device_path): New structure.
50474 (grub_efi_pci_device_path_t): New type.
50475 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50476 (struct grub_efi_pccard_device_path): New structure.
50477 (grub_efi_pccard_device_path_t): New type.
50478 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50479 (struct grub_efi_memory_mapped_device_path): New structure.
50480 (grub_efi_memory_mapped_device_path_t): New type.
50481 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50482 (struct grub_efi_vendor_device_path): New structure.
50483 (grub_efi_vendor_device_path_t): New type.
50484 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50485 (struct grub_efi_controller_device_path): New structure.
50486 (grub_efi_controller_device_path_t): New type.
50487 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50488 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50489 (struct grub_efi_acpi_device_path): New structure.
50490 (grub_efi_acpi_device_path_t): New type.
50491 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50492 (struct grub_efi_expanded_acpi_device_path): New structure.
50493 (grub_efi_expanded_acpi_device_path_t): New type.
50494 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50495 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50496 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50497 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50498 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50499 (struct grub_efi_atapi_device_path): New structure.
50500 (grub_efi_atapi_device_path_t): New type.
50501 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50502 (struct grub_efi_fibre_channel_device_path): New structure.
50503 (grub_efi_fibre_channel_device_path_t): New type.
50504 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50505 (struct grub_efi_1394_device_path): New structure.
50506 (grub_efi_1394_device_path_t): New type.
50507 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50508 (struct grub_efi_usb_device_path): New structure.
50509 (grub_efi_usb_device_path_t): New type.
50510 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50511 (struct grub_efi_usb_class_device_path): New structure.
50512 (grub_efi_usb_class_device_path_t): New type.
50513 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50514 (struct grub_efi_i2o_device_path): New structure.
50515 (grub_efi_i2o_device_path_t): New type.
50516 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50517 (struct grub_efi_mac_address_device_path): New structure.
50518 (grub_efi_mac_address_device_path_t): New type.
50519 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50520 (struct grub_efi_ipv4_device_path): New structure.
50521 (grub_efi_ipv4_device_path_t): New type.
50522 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50523 (struct grub_efi_ipv6_device_path): New structure.
50524 (grub_efi_ipv6_device_path_t): New type.
50525 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50526 (struct grub_efi_infiniband_device_path): New structure.
50527 (grub_efi_infiniband_device_path_t): New type.
50528 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50529 (struct grub_efi_uart_device_path): New structure.
50530 (grub_efi_uart_device_path_t): New type.
50531 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50532 (struct grub_efi_vendor_messaging_device_path): New structure.
50533 (grub_efi_vendor_messaging_device_path_t): New type.
50534 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50535 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50536 (struct grub_efi_hard_drive_device_path): New structure.
50537 (grub_efi_hard_drive_device_path_t): New type.
50538 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50539 (struct grub_efi_cdrom_device_path): New structure.
50540 (grub_efi_cdrom_device_path_t): New type.
50541 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50542 (struct grub_efi_vendor_media_device_path): New structure.
50543 (grub_efi_vendor_media_device_path_t): New type.
50544 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50545 (struct grub_efi_file_path_device_path): New structure.
50546 (grub_efi_file_path_device_path_t): New type.
50547 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50548 (struct grub_efi_protocol_device_path): New structure.
50549 (grub_efi_protocol_device_path_t): New type.
50550 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50551 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50552 (struct grub_efi_bios_device_path): New structure.
50553 (grub_efi_bios_device_path_t): New type.
50554 (struct grub_efi_disk_io): New structure.
50555 (grub_efi_disk_io_t): New type.
50556 (struct grub_efi_block_io_media): New structure.
50557 (grub_efi_block_io_media_t): New type.
50558 (struct grub_efi_block_io): New structure.
50559 (grub_efi_block_io_t): New type.
50560
50561 * include/grub/misc.h (grub_stop): Removed.
50562 (grub_exit): New prototype.
50563 (grub_abort): Likewise.
50564
50565 * include/grub/disk.h (enum grub_disk_dev_id): Added
50566 GRUB_DISK_DEVICE_EFIDISK_ID.
50567
50568 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50569 disk/efi/efidisk.c.
50570 (kernel_syms.lst): Remove the target if an error occurs.
50571
49986a9f 505722006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50573
50574 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50575 as it was simply too buggy.
50576
970d3b8a 505772006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50578
50579 * kern/misc.c (grub_lltoa): New function.
50580 (grub_vsprintf): Added support for the long long suffix,
50581 i.e. "ll".
50582
ff04ec24 505832006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50584
50585 * Makefile.in (LDFLAGS): Add variable.
50586 (LD): Remove variable.
50587 * configure.ac: Add -m32 to LDFLAGS.
50588 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50589 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50590 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50591 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50592 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50593 variables.
50594 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50595 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50596 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50597
37e5e1a4 505982006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50599
50600 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50601 length for unknown glyph.
50602
c352d8dd 506032006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50604
2eab1c0d 50605 Add support for pre-loaded modules into the EFI port.
f19dbdb7 50606
2eab1c0d 50607 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50608 completely. Accept one more argument DIR. The caller has changed.
50609
50610 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50611
50612 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50613 (grub_efi_loaded_image_guid): New variable.
50614 (grub_efi_get_loaded_image): New function.
50615 (grub_arch_modules_addr): Likewise.
50616
50617 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50618 prototype.
50619
50620 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50621 (struct grub_efi_loaded_image): New structure.
50622 (grub_efi_loaded_image_t): New type.
50623
506242006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 50625
c352d8dd 50626 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50627 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50628 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50629
6d01d6b4 506302006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50631
50632 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50633
976a4ea0 506342006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50635
50636 * DISTLIST: Added include/grub/efi/console.h,
50637 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50638 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50639
50640 * include/grub/efi/console.h: New file.
50641 * include/grub/efi/time.h: Likewise.
50642 * include/grub/i386/efi/kernel.h: Likewise.
50643 * kern/efi/init.c: Likewise.
50644 * kern/efi/mm.c: Likewise.
50645 * term/efi/console.c: Likewise.
f19dbdb7 50646
976a4ea0 50647 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50648 (grub_stop): Removed.
50649 (grub_get_rtc): Likewise.
50650 (grub_machine_init): Simply call grub_efi_init.
50651 (grub_machine_fini): Call grub_efi_fini.
50652
50653 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50654 (grub_efi_output_string): Removed.
50655 (grub_efi_stall): New function.
50656 (grub_stop): Likewise.
50657 (grub_get_rtc): Likewise.
50658
50659 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50660 (grub_efi_stall): New prototype.
50661 (grub_efi_allocate_pages): Likewise.
50662 (grub_efi_free_pages): Likewise.
50663 (grub_efi_get_memory_map): Likewise.
50664 (grub_efi_mm_init): Likewise.
50665 (grub_efi_mm_fini): Likewise.
50666 (grub_efi_init): Likewise.
50667 (grub_efi_fini): Likewise.
50668
50669 * include/grub/i386/efi/time.h: Do not include
50670 grub/symbol.h. Include grub/efi/time.h.
50671 (GRUB_TICKS_PER_SECOND): Removed.
50672 (grub_get_rtc): Likewise.
50673
50674 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50675 Added padding. The EFI spec is buggy.
50676 (GRUB_EFI_BLACK): New macro.
50677 (GRUB_EFI_BLUE): Likewise.
50678 (GRUB_EFI_GREEN): Likewise.
50679 (GRUB_EFI_CYAN): Likewise.
50680 (GRUB_EFI_RED): Likewise.
50681 (GRUB_EFI_MAGENTA): Likewise.
50682 (GRUB_EFI_BROWN): Likewise.
50683 (GRUB_EFI_LIGHTGRAY): Likewise.
50684 (GRUB_EFI_BRIGHT): Likewise.
50685 (GRUB_EFI_DARKGRAY): Likewise.
50686 (GRUB_EFI_LIGHTBLUE): Likewise.
50687 (GRUB_EFI_LIGHTGREEN): Likewise.
50688 (GRUB_EFI_LIGHTCYAN): Likewise.
50689 (GRUB_EFI_LIGHTRED): Likewise.
50690 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50691 (GRUB_EFI_YELLOW): Likewise.
50692 (GRUB_EFI_WHITE): Likewise.
50693 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50694 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50695 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50696 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50697 (GRUB_EFI_BACKGROUND_RED): Likewise.
50698 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50699 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50700 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50701 (GRUB_EFI_TEXT_ATTR): Likewise.
50702
50703 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50704 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50705 (kernel_mod_HEADERS): Added efi/time.h.
50706
83709125 507072006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50708
50709 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50710 include/grub/efi/api.h, include/grub/efi/console_control.h,
50711 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50712 include/grub/i386/efi/time.h, kern/efi/efi.c,
50713 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50714 and util/i386/efi/grub-mkimage.c.
50715
50716 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50717
50718 * genmk.rb (PModule#rule): Do not export symbols if
50719 #{prefix}_EXPORTS is set to "no".
50720
50721 * conf/i386-efi.mk: New file.
50722 * conf/i386-efi.rmk: Likewise.
50723 * include/grub/efi/api.h: Likewise.
50724 * include/grub/efi/console_control.h: Likewise.
50725 * include/grub/efi/efi.h: Likewise.
50726 * include/grub/efi/pe32.h: Likewise.
50727 * include/grub/i386/efi/time.h: Likewise.
50728 * kern/efi/efi.c: Likewise.
50729 * kern/i386/efi/init.c: Likewise.
50730 * kern/i386/efi/startup.S: Likewise.
50731 * util/i386/efi/grub-mkimage.c: Likewise.
50732
507332006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 50734
50735 * include/grub/script.h: Include <grub/parser.h> and
50736 "grub_script.tab.h".
50737 (struct grub_lexer_param): New struct.
50738 (struct grub_parser_param): Likewise.
50739 (grub_script_create_arglist): Pass the state in an argument.
50740 (grub_script_add_arglist): Likewise.
50741 (grub_script_create_cmdline): Likewise.
50742 (grub_script_create_cmdblock): Likewise.
50743 (grub_script_create_cmdif): Likewise.
50744 (grub_script_create_cmdmenu): Likewise.
50745 (grub_script_add_cmd): Likewise.
50746 (grub_script_arg_add): Likewise.
50747 (grub_script_lexer_ref): Likewise.
50748 (grub_script_lexer_deref): Likewise.
50749 (grub_script_lexer_record_start): Likewise.
50750 (grub_script_lexer_record_stop): Likewise.
50751 (grub_script_mem_record): Likewise.
50752 (grub_script_mem_record_stop): Likewise.
50753 (grub_script_malloc): Likewise.
50754 (grub_script_yylex): Likewise.
50755 (grub_script_yyparse): Likewise.
50756 (grub_script_yyerror): Likewise.
50757 (grub_script_yylex): Likewise.
50758 (grub_script_lexer_init): Return the state.
50759
50760 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50761 (grub_script_lexer_done): Likewise.
50762 (grub_script_lexer_getline): Likewise.
50763 (grub_script_lexer_refs): Likewise.
50764 (script): Likewise.
50765 (newscript): Likewise.
50766 (record): Likewise.
50767 (recording): Likewise.
50768 (recordpos): Likewise.
50769 (recordlen): Likewise.
50770 (grub_script_lexer_init): Return the state instead of setting
50771 global variables.
50772 (grub_script_lexer_ref): Use the newly added argument for state
50773 instead of globals.
50774 (grub_script_lexer_deref): Likewise.
50775 (grub_script_lexer_record_start): Likewise.
50776 (grub_script_lexer_record_stop): Likewise.
50777 (recordchar): Likewise.
50778 (nextchar): Likewise.
50779 (grub_script_yylex2): Likewise.
50780 (grub_script_yylex): Likewise.
50781 (grub_script_yyerror): Likewise.
50782
50783 * normal/parser.y (func_mem): Removed variable.
50784 (menu_entry): Likewise.
50785 (err): Likewise.
50786 (%lex-param): New parser option.
50787 (%parse-param): Likewise.
50788 (script): Always return the AST.
50789 (argument): Pass the state around.
50790 (arguments): Likewise.
50791 (grubcmd): Likewise.
50792 (commands): Likewise.
50793 (function): Likewise.
50794 (menuentry): Likewise.
50795 (if_statement): Likewise.
50796 (if): Likewise.
50797
50798 * normal/script.c (grub_script_memused): Removed variable.
50799 (grub_script_parsed): Likewise.
50800 (grub_script_malloc): Added a state argument. Use that instead of
50801 global variables.
50802 (grub_script_mem_record): Likewise.
50803 (grub_script_mem_record_stop): Likewise.
50804 (grub_script_arg_add): Likewise.
50805 (grub_script_add_arglist): Likewise.
50806 (grub_script_create_cmdline): Likewise.
50807 (grub_script_create_cmdif): Likewise.
50808 (grub_script_create_cmdmenu): Likewise.
50809 (grub_script_add_cmd): Likewise.
50810 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 50811
e2a8c904 508122006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 50813
50814 * normal/command.c (grub_command_init): Remove the title command.
50815
50816 * normal/lexer.c (grub_script_yylex): Renamed from this...
50817 (grub_script_yylex2): ... to this.
50818 (grub_script_yylex): New function. Temporary
50819 introduced to filter some tokens.
50820 (grub_script_yyerror): Print a newline.
50821
50822 * normal/main.c (read_config_file): Output information about the
50823 lines that contain errors. Wait for a key after all lines have
50824 been processed. Don't return an empty menu.
50825
50826 * normal/parser.y (func_mem): Don't initialize.
50827 (menu_entry): Likewise.
50828 (err): New variable.
50829 (script): Don't return anything when an error was encountered.
50830 (ws, returns): Removed rules.
50831 (argument): Disabled concatenated variable support.
50832 (arguments): Remove explicit separators.
50833 (grubcmd): Likewise.
50834 (function): Likewise.
50835 (menuentry): Likewise.
50836 (if): Likewise.
50837 (commands): Likewise. Add error handling.
50838
50839 * normal/script.c (grub_script_create_cmdline): If
50840 `grub_script_parsed' is 0, assume the parser encountered an error.
50841
c9a86192 508422006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50843
50844 * configure.ac: Add support for EFI. Fix the typo
50845 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50846
70f3b243 508472006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50848
50849 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50850 foreign multibyte characters should be shown correctly.
50851
65f201ad 508522006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50853
50854 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50855 calculation.
50856 (read_config_file): Made it to close file before returning.
50857
b4b93674 508582006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50859
50860 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50861 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50862 video/i386/pc/vbefill.c.
50863
50864 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50865 video/i386/pc/vbefill.c.
50866
50867 * include/grub/video.h (grub_video_blit_format): New enum.
50868 (grub_video_mode_info): Added new member blit_format.
50869 (grub_video_get_blit_format): New function prototype.
50870
50871 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50872 function prototype.
50873 (grub_video_vbe_map_rgb): Likewise.
50874 (grub_video_vbe_unmap_color): Likewise.
50875
50876 * include/grub/i386/pc/vbeblit.h: New file.
50877
50878 * include/grub/i386/pc/vbefill.h: New file.
50879
50880 * video/video.c (grub_video_get_blit_format): New function.
50881 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50882 (grub_video_vbe_map_rgb): Likewise.
50883 (grub_video_vbe_unmap_color): Likewise.
50884
50885 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50886 optimized fills.
50887 (grub_video_vbe_blit_render_target): Changed to use more optimized
50888 blits.
50889 (grub_video_vbe_setup): Added detection for optimized settings.
50890 (grub_video_vbe_create_render_target): Likewise.
50891
50892 * video/i386/pc/vbeblit.c: New file.
50893
50894 * video/i386/pc/vbefill.c: New file.
50895
c2379b9c 508962006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50897
50898 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50899 here...
50900
50901 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50902 parsing to support both hex and dec ranges. If filename was missing
50903 show usage information.
50904
bd0d7896 509052006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50906
50907 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50908 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50909
50910 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50911 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50912 (video_mod_SOURCES): Added.
50913 (video_mod_CFLAGS): Likewise.
50914 (video_mod_LDFLAGS): Likewise.
50915 (gfxterm_mod_SOURCES): Likewise.
50916 (gfxterm_mod_CFLAGS): Likewise.
50917 (gfxterm_mod_LDFLAGS): Likewise.
50918 (videotest_mod_SOURCES): Likewise.
50919 (videotest_mod_CFLAGS): Likewise.
50920 (videotest_mod_LDFLAGS): Likewise.
50921 (vesafb_mod_SOURCES): Removed.
50922 (vesafb_mod_CFLAGS): Likewise.
50923 (vesafb_mod_LDFLAGS): Likewise.
50924 (vga_mod_SOURCES): Likewise.
50925 (vga_mod_CFLAGS): Likewise.
50926 (vga_mod_LDFLAGS): Likewise.
50927
50928 * commands/videotest.c: New file.
50929
50930 * font/manager.c (fill_with_default_glyph): Modified to use
50931 grub_font_glyph.
50932 (grub_font_get_glyph): Likewise.
50933 (fontmanager): Renamed from this...
50934 (font_manager): ... to this.
50935
50936 * include/grub/font.h (grub_font_glyph): Added new structure.
50937 (grub_font_get_glyph): Modified to use grub_font_glyph.
50938
50939 * include/grub/misc.h (grub_abs): Added as inline function.
50940
50941 * include/grub/video.h: New file.
50942
50943 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50944 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50945 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50946 (grub_vbe_get_controller_info): Renamed from this...
50947 (grub_vbe_bios_get_controller_info): ... to this.
50948 (grub_vbe_get_mode_info): Renamed from this...
50949 (grub_vbe_bios_get_mode_info): ... to this.
50950 (grub_vbe_set_mode): Renamed from this...
50951 (grub_vbe_bios_set_mode): ... to this.
50952 (grub_vbe_get_mode): Renamed from this...
50953 (grub_vbe_bios_get_mode): ... to this.
50954 (grub_vbe_set_memory_window): Renamed from this...
50955 (grub_vbe_bios_set_memory_window): ... to this.
50956 (grub_vbe_get_memory_window): Renamed from this...
50957 (grub_vbe_bios_get_memory_window): ... to this.
50958 (grub_vbe_set_scanline_length): Renamed from this...
50959 (grub_vbe_set_scanline_length): ... to this.
50960 (grub_vbe_get_scanline_length): Renamed from this...
50961 (grub_vbe_bios_get_scanline_length): ... to this.
50962 (grub_vbe_set_display_start): Renamed from this...
50963 (grub_vbe_bios_set_display_start): ... to this.
50964 (grub_vbe_get_display_start): Renamed from this...
50965 (grub_vbe_bios_get_display_start): ... to this.
50966 (grub_vbe_set_palette_data): Renamed from this...
50967 (grub_vbe_bios_set_palette_data): ... to this.
50968 (grub_vbe_set_pixel_rgb): Removed.
50969 (grub_vbe_set_pixel_index): Likewise.
50970
50971 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50972 from this...
50973 (grub_vbe_bios_get_controller_info): ... to this.
50974 (grub_vbe_get_mode_info): Renamed from this...
50975 (grub_vbe_bios_get_mode_info): ... to this.
50976 (grub_vbe_set_mode): Renamed from this...
50977 (grub_vbe_bios_set_mode): ... to this.
50978 (grub_vbe_get_mode): Renamed from this...
50979 (grub_vbe_bios_get_mode): ... to this.
50980 (grub_vbe_set_memory_window): Renamed from this...
50981 (grub_vbe_bios_set_memory_window): ... to this.
50982 (grub_vbe_get_memory_window): Renamed from this...
50983 (grub_vbe_bios_get_memory_window): ... to this.
50984 (grub_vbe_set_scanline_length): Renamed from this...
50985 (grub_vbe_set_scanline_length): ... to this.
50986 (grub_vbe_get_scanline_length): Renamed from this...
50987 (grub_vbe_bios_get_scanline_length): ... to this.
50988 (grub_vbe_set_display_start): Renamed from this...
50989 (grub_vbe_bios_set_display_start): ... to this.
50990 (grub_vbe_get_display_start): Renamed from this...
50991 (grub_vbe_bios_get_display_start): ... to this.
50992 (grub_vbe_set_palette_data): Renamed from this...
50993 (grub_vbe_bios_set_palette_data): ... to this.
50994 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50995 getting corrupted after calling it. Added more pushes and pops.
50996 (grub_vbe_bios_set_mode): Likewise.
50997 (grub_vbe_bios_get_mode): Likewise.
50998 (grub_vbe_bios_get_memory_window): Likewise.
50999 (grub_vbe_bios_set_scanline_length): Likewise.
51000 (grub_vbe_bios_get_scanline_length): Likewise.
51001 (grub_vbe_bios_get_display_start): Likewise.
51002 (grub_vbe_bios_set_palette_data): Likewise.
51003
51004 * normal/cmdline.c (cl_set_pos): Refresh the screen.
51005 (cl_insert): Likewise.
51006 (cl_delete): Likewise.
51007
51008 * term/gfxterm.c: New file.
51009
51010 * term/i386/pc/vesafb.c: Removed file.
51011
51012 * video/video.c: New file.
51013
51014 * video/i386/pc/vbe.c (real2pm): Added new function.
51015 (grub_video_vbe_draw_pixel): Likewise.
51016 (grub_video_vbe_get_video_ptr): Likewise.
51017 (grub_video_vbe_get_pixel): Likewise
51018 (grub_video_vbe_init): Likewise.
51019 (grub_video_vbe_fini): Likewise.
51020 (grub_video_vbe_setup): Likewise.
51021 (grub_video_vbe_get_info): Likewise.
51022 (grub_video_vbe_set_palette): Likewise.
51023 (grub_video_vbe_get_palette): Likewise.
51024 (grub_video_vbe_set_viewport): Likewise.
51025 (grub_video_vbe_get_viewport): Likewise.
51026 (grub_video_vbe_map_color): Likewise.
51027 (grub_video_vbe_map_rgb): Likewise.
51028 (grub_video_vbe_map_rgba): Likewise.
51029 (grub_video_vbe_unmap_color): Likewise.
51030 (grub_video_vbe_fill_rect): Likewise.
51031 (grub_video_vbe_blit_glyph): Likewise.
51032 (grub_video_vbe_blit_bitmap): Likewise.
51033 (grub_video_vbe_blit_render_target): Likewise.
51034 (grub_video_vbe_scroll): Likewise.
51035 (grub_video_vbe_swap_buffers): Likewise.
51036 (grub_video_vbe_create_render_target): Likewise.
51037 (grub_video_vbe_delete_render_target): Likewise.
51038 (grub_video_vbe_set_active_render_target): Likewise.
51039 (grub_vbe_set_pixel_rgb): Remove function.
51040 (grub_vbe_set_pixel_index): Likewise.
51041 (index_color_mode): Remove static variable.
51042 (active_mode): Likewise.
51043 (framebuffer): Likewise.
51044 (bytes_per_scan_line): Likewise.
51045 (grub_video_vbe_adapter): Added new static variable.
51046 (framebuffer): Likewise.
51047 (render_target): Likewise.
51048 (initial_mode): Likewise.
51049 (mode_in_use): Likewise.
51050 (mode_list): Likewise.
51051
5f97350b 510522006-03-10 Marco Gerards <marco@gnu.org>
51053
51054 * configure.ac (AC_INIT): Bumped to 1.93.
51055
51056 * DISTLIST: Added `include/grub/hfs.h'.
51057
a3c5c6f8 510582006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
51059
51060 * boot/i386/pc/boot.S (general_error): Before looping, try INT
51061 18H, which might help the BIOS falling back to next boot media.
51062
6de53d26 510632006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
51064
51065 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51066 Poe Chen <poe.poechen@gmail.com>.
51067
77c4a393 510682006-01-17 Marco Gerards <marco@gnu.org>
51069
51070 * include/grub/normal.h: Include <grub/script.h>.
51071 (grub_command_list): Removed struct.
51072 (grub_command_list_t): Removed type.
51073 (grub_menu_entry): Remove members `num' and `command_list'. Add
51074 members `commands' and `sourcecode'.
51075 * include/grub/script.h: Add inclusion guards.
51076 (grub_script_cmd_menuentry): New struct.
51077 (grub_script_execute_menuentry): New prototype.
51078 (grub_script_lexer_record_start): Likewise.
51079 (grub_script_lexer_record_stop): Likewise.
51080 * normal/execute.c (grub_script_execute_menuentry): New function.
51081 * normal/lexer.c (record, recording, recordpos, recordlen): New
51082 variables.
51083 (grub_script_lexer_record_start): New function.
51084 (grub_script_lexer_record_stop): Likewise.
51085 (recordchar): Likewise.
51086 (nextchar): Likewise.
51087 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51088 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51089 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51090 (current_menu): New variable.
51091 (free_menu): Mainly rewritten.
51092 (grub_normal_menu_addentry): New function.
51093 (read_config_file): Rewritten.
51094 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 51095 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 51096 the menu entry.
51097 (run): Mainly rewritten.
51098 * normal/parser.y (menu_entry): New variable.
51099 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51100 (menuentry): New rule.
51101 (command): Add `menuentry'.
51102 (if_statement): Allow additional returns before `fi'.
51103 * normal/script.c (grub_script_create_cmdmenu): New function.
51104
144f1f98 511052006-01-03 Marco Gerards <marco@gnu.org>
51106
51107 * INSTALL: GNU Bison is required.
51108 * configure.ac: Rewritten the test to detect Bison.
51109 * Makefile.in (YACC): New variable. Reported by Xun Sun
51110 <xun.sun.cn@gmail.com>.
51111
af4b2d89 511122006-01-03 Marco Gerards <marco@gnu.org>
51113
51114 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51115 the HFS+ filesystem to filesystem blocks.
51116 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51117 GCC warning is silenced.
51118
15643b71 511192006-01-03 Marco Gerards <marco@gnu.org>
51120
51121 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51122 read from disk from big endian to host byte order.
51123
00905879 511242006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51125
51126 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51127 documentation.
51128 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51129 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51130 embedded HFS+ filesystem.
51131 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51132 (grub_hfs_sblock): Move from here...
51133 * include/grub/hfs.h: To here... New file.
51134 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51135 documentation.
51136 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51137 New macros.
51138 (grub_hfsplus_volheader): Change type of member `magic' to
51139 `grub_uint16_t'.
51140 (grub_hfsplus_data): Add new member `embedded_offset'.
51141 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51142 returned block.
51143 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51144 Calculate the offset.
51145
8899bc3e 511462005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51147
51148 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51149 Removed.
51150 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51151
ae8c0277 511522005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51153
51154 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51155 ENV->NAME is NULL after allocating ENV->VALUE.
51156
07084456 511572005-12-25 Marco Gerards <marco@gnu.org>
51158
51159 * kern/env.c (grub_env_set): Rewritten the error handling code.
51160
4750f5f1 511612005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51162
51163 * geninit.sh: Made more robust, and more portable.
51164
50214199 511652005-12-25 Marco Gerards <marco@gnu.org>
51166
51167 Add support for Apple HFS+ filesystems.
f19dbdb7 51168
50214199 51169 * fs/hfsplus.c: New file.
51170
51171 * DISTLIST: Added `fs/hfsplus.c'.
51172
51173 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51174 (hfsplus_mod_SOURCES): New variable.
51175 (hfsplus_mod_CFLAGS): Likewise.
51176 (hfsplus_mod_LDFLAGS): Likewise.
51177 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51178 (grub_setup_SOURCES): Likewise.
51179 (grub_mkdevicemap_SOURCES): Likewise.
51180 (grub_emu_SOURCES): Likewise.
51181 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51182
51183 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51184
51185 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51186
befaed6c 511872005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51188
51189 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51190 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51191 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51192 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51193 normal/lexer.c, normal/parser.y, normal/script.c, and
51194 partmap/gpt.c.
51195 Removed kern/sparc64/cache.c.
51196
51197 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51198 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51199 grub_emu_init.c.
51200
51201 * configure.ac (AC_INIT): Bumped to 1.92.
51202
6a124103 512032005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51204
51205 * kern/err.c (grub_error_push): Added new function to support error
51206 stacks.
51207 (grub_error_pop): Likewise.
51208 (grub_error_stack_items): New local variable to support error stacks.
51209 (grub_error_stack_pos): Likewise.
51210 (grub_error_stack_assert): Likewise.
51211 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51212 stack depth.
51213 (grub_print_error): Added support to print errors from error stack.
51214
51215 * include/grub/err.h (grub_error_push): Added function prototype.
51216 (grub_error_pop): Likewise.
51217
be973c1b 512182005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51219
51220 * configure.ac: Accept `powerpc64' as host_cpu.
51221 (amd64): Rename to `biarch32'.
51222
51223 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51224 non-cacheline-aligned addresses.
51225
51226 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51227 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51228 if `size' is non-zero.
51229
b04216ab 512302005-12-03 Marco Gerards <mgerards@xs4all.nl>
51231
51232 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51233 and `cd' to make sure the filename is not prefixed with a
51234 directory name.
51235 (pkgdata_MODULES): Add `gpt.mod'.
51236 (gpt_mod_SOURCES): New variable.
51237 (gpt_mod_CFLAGS): Likewise.
51238 (gpt_mod_LDFLAGS): Likewise.
51239
51240 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51241
51242 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51243 New macro.
51244
51245 * partmap/gpt.c: New file.
51246
51247 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51248 GPT partition map is detected.
51249
41730ed9 512502005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51251
51252 * commands/i386/pc/play.c: New file.
51253 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51254 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51255 macros.
f19dbdb7 51256
95dc3643 512572005-11-27 Marco Gerards <mgerards@xs4all.nl>
51258
51259 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51260 ((unused))' to silence gcc warning.
51261
1569ec51 512622005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51263
51264 * configure.ac: Correct `AC_PROG_YACC' test.
51265
9abde152 512662005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51267
51268 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51269 check before installing files.
51270
44b83271 512712005-11-22 Mike Small <smallm@panix.com>
51272
51273 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51274 number regex so multidigit numbers are recognized correctly.
51275
512762005-11-22 Mike Small <smallm@panix.com>
51277
51278 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51279 debugging message before attempting to claim memory.
51280 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51281 multiple addresses in case of failure.
51282
9c12956b 512832005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51284
51285 * term/tparm.c (get_space): Remove empty `if' statement.
51286
51287 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51288
51289 * kern/parser.c (check_varstate): Rename `state' to 's'.
51290
aeaf81d9 512912005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51292
51293 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51294 variable definitions to the beginning of each function. Sort stack
51295 variables by size.
51296 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51297 `buf' argument to `char *'.
51298
79bbb63f 512992005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51300
51301 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51302 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 51303 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 51304 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51305 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51306 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51307 configfile.mod, search.mod, gzio.mod and test.mod.
51308 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51309 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51310 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51311 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51312 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51313 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51314 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51315 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51316 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51317 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51318 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51319 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51320 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51321 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51322 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51323 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51324 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51325 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51326 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51327 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51328 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51329 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51330 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51331
51332 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51333 `grep --include'.
51334 (pkgdata_MODULES): Add test.mod.
51335
233b1628 513362005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51337
51338 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51339 appending to variables with "+=".
51340 (PModule): Use full pathname to generate *.lst filenames.
51341
51342 * Makefile.in: Fixed list rules moved from genmk.rb.
51343 (.DELETE_ON_ERROR): New special target.
51344 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51345
51346 * conf/i386-pc.rmk: Include conf/common.mk.
51347 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 51348 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 51349 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51350 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51351 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51352 configfile.mod, search.mod, gzio.mod and test.mod.
51353 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51354 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51355 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51356 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51357 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51358 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51359 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51360 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51361 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51362 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51363 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51364 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51365 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51366 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51367 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51368 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51369 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51370 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51371 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51372 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51373 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51374 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51375 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51376 here...
51377 * conf/common.rmk: ... to here. New file.
51378
51379 * conf/common.mk: New file.
51380
16f820c8 513812005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51382
51383 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51384 (grub_script.tab.c): ... here.
51385
51386 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51387 (grub_script.tab.c): ... here.
51388
51389 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51390 (grub_script.tab.c): ... here.
51391
51392 * normal/command.c (grub_command_find): Fixed a memory leak of
51393 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51394
63ba1554 513952005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51396
51397 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51398 "@" which marks the start of a comment on ARM.
51399 (VARIABLE): Likewise.
51400
7f67dc13 514012005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51402
79bbb63f 51403 Add support for Linux/ADFS partition tables.
7f67dc13 51404
51405 * partmap/acorn.c: New file.
51406
51407 * include/grub/acorn_filecore.h: Likewise.
51408
51409 * DISTLIST: Added `partmap/acorn.c' and
51410 `include/grub/acorn_filecore.h'.
f19dbdb7 51411
7f67dc13 51412 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51413 `partmap/acorn.c'.
51414 (pkgdata_MODULES): Add `acorn.mod'.
51415 (acorn_mod_SOURCES): New variable.
51416 (acorn_mod_CFLAGS): Likewise.
51417
51418 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51419 `partmap/acorn.c'.
51420 (pkgdata_MODULES): Add `acorn.mod'.
51421 (acorn_mod_SOURCES): New variable.
51422 (acorn_mod_CFLAGS): Likewise.
51423
51424 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51425 (pkgdata_MODULES): Add `acorn.mod'.
51426 (acorn_mod_SOURCES): New variable.
51427 (acorn_mod_CFLAGS): Likewise.
51428 (acorn_mod_LDFLAGS): Likewise.
51429
51430 * include/types.h (grub_disk_addr_t): New typedef.
51431
6d099807 514322005-11-13 Marco Gerards <mgerards@xs4all.nl>
51433
51434 * geninit.sh: New file.
51435
51436 * geninitheader.sh: Likewise.
51437
51438 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51439 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51440 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51441 * commands/configfile.c (grub_configfile_init)
51442 (grub_configfile_fini): Likewise.
51443 * commands/default.c (grub_default_init, grub_default_fini):
51444 Likewise.
51445 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51446 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51447 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51448 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51449 Likewise.
51450 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51451 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51452 Likewise.
51453 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 51454 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 51455 Likewise.
51456 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51457 Likewise.
fe6b695a 51458 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 51459 Likewise.
51460 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51461 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51462 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51463 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51464 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51465 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51466 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51467 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51468 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51469 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51470 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51471 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51472 * partmap/amiga.c (grub_amiga_partition_map_init)
51473 (grub_amiga_partition_map_fini): Likewise.
51474 * partmap/apple.c (grub_apple_partition_map_init)
51475 (grub_apple_partition_map_fini): Likewise.
51476 * partmap/pc.c (grub_pc_partition_map_init)
51477 (grub_pc_partition_map_fini): Likewise.
51478 * partmap/sun.c (grub_sun_partition_map_init,
51479 grub_sun_partition_map_fini): Likewise.
51480 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51481 Likewise.
51482
51483 * util/grub-emu.c: Include <grub_modules_init.h>.
51484 (main): Don't initialize and de-initialize any modules directly,
51485 use `grub_init_all' and `grub_fini_all' instead.
51486
51487 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51488 `grub_vesafb_mod_init'.
51489 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51490 all users.
51491 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51492 `grub_vga_mod_init'. Updated all users.
51493 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 51494
6d099807 51495 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51496 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51497 rules.
51498
51499 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51500 Generate a function to initialize the module in utilities.
51501 Updated all callers.
51502 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51503 initialize the module in utilities. Updated all callers.
51504
9046bcf0 515052005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51506
51507 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51508 escape sequence and a literal ^L to clear the screen.
51509
51510 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51511 when returning from Open Firmware.
51512
d13ea639 515132005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51514
51515 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51516 (grub_ofconsole_height): Likewise.
51517 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51518 manually insert a '\n'.
51519 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51520 `grub_ofconsole_height'. Return early if these are already set.
51521
a8fcf206 515222005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51523
51524 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51525 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51526 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51527 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51528 and `normal/script.c'.
51529 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51530 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51531 (test_mod_SOURCES): New variable.
51532 (test_mod_CFLAGS): Likewise.
51533 (test_mod_LDFLAGS): Likewise.
51534 (pkgdata_MODULES): Add `test.mod'.
51535 (grub_script.tab.c): New rule.
51536 (grub_script.tab.h): Likewise.
51537
b6b32745 515382005-11-07 Marco Gerards <mgerards@xs4all.nl>
51539
51540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51541 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51542 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51543 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51544 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51545 (test_mod_SOURCES): New variable.
51546 (test_mod_CFLAGS): Likewise.
51547 (pkgdata_MODULES): Add `test.mod'.
51548 (grub_script.tab.c): New rule.
51549 (grub_script.tab.h): Likewise.
51550
daac212a 515512005-11-06 Marco Gerards <mgerards@xs4all.nl>
51552
51553 Add initial scripting support.
51554
51555 * commands/test.c: New file.
51556 * include/grub/script.h: Likewise.
51557 * normal/execute.c: Likewise.
51558 * normal/function.c: Likewise.
51559 * normal/lexer.c: Likewise.
51560 * normal/parser.y: Likewise.
51561 * normal/script.c: Likewise.
51562
51563 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 51564
daac212a 51565 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51566 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51567 `normal/function.c' and `normal/script.c'.
51568 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51569 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 51570 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51571 variables.
daac212a 51572 (pkgdata_MODULES): Add `test.mod'.
51573 (grub_script.tab.c): New rule.
51574 (grub_script.tab.h): Likewise.
51575
51576 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51577
51578 * include/grub/normal.h (grub_test_init): New prototype.
51579 (grub_test_fini): Likewise.
f19dbdb7 51580
daac212a 51581 * normal/command.c: Include <grub/script.h>.
51582 (grub_command_execute): Rewritten.
f19dbdb7 51583
daac212a 51584 * util/grub-emu.c (main): Call `grub_test_init' and
51585 `grub_test_fini'.
51586
77500b2b 515872005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51588
51589 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51590 to 0.
51591 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51592 there are no pending characters.
51593
e45deb9e 515942005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51595
51596 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51597 `grub_strndup' to drop device arguments. Replace unnecessary
51598 `grub_strndup' with `grub_strdup'.
51599
4ce32619 516002005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51601
51602 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51603 `debug' environment variable has been set.
51604
516052005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 51606
4ce32619 51607 * Makefile.in (install-local): Use $(DATA).
51608 (uninstall): Likewise.
51609 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51610 (sbin_UTILITIES): ... to here.
51611 (sbin_SCRIPTS): New variable.
51612 (grub_install_SOURCES): New variable.
51613 * util/powerpc/ieee1275/grub-install.in: New file.
51614 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51615 variable.
51616 (add_segments): Call `grub_util_get_path'.
51617
25fe6f03 516182005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51619
51620 From Timothy Baldwin:
51621 * commands/ls.c (grub_ls_list_files): Close FILE with
51622 grub_file_close.
51623 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51624
04ccf3ec 516252005-10-24 Marco Gerards <mgerards@xs4all.nl>
51626
51627 * include/grub/parser.h: New file.
51628
51629 * kern/parser.c: Likewise.
51630
51631 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51632 (grub_setup_SOURCES): Likewise.
51633 (grub_probefs_SOURCES): Likewise.
51634 (grub_emu_SOURCES): Likewise.
51635 (kernel_img_HEADERS): Add `parser.h'.
51636
51637 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51638 (grub_emu_SOURCES): Add `kern/parser.c'.
51639 (grubof_SOURCES): Likewise.
51640
51641 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51642 (grubof_SOURCES): Add `kern/parser.c'.
51643
51644 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51645
51646 * kern/misc.c (grub_split_cmdline): Removed function.
51647
51648 * kern/rescue.c: Include <grub/parser.h>.
51649 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51650 of `grub_split_cmdline'.
51651
51652 * normal/command.c: Include <grub/parser.h>.
51653 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51654 of `grub_split_cmdline'.
51655
51656 * normal/completion.c: Include <grub/parser.h>.
51657 (cmdline_state): New variable.
51658 (iterate_dir): End the filename with a quote depending on the
51659 command line state.
51660 (get_state): new function.
51661 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51662 split the arguments and determine the current argument. When the
51663 argument string is not quoted, escape all spaces.
51664
6d8f4b0e 516652005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51666
51667 * normal/sparc64/setjmp.S: New file.
51668
15cf03ed 516692005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51670
51671 * include/grub/sparc64/libgcc.h: New file.
51672 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51673 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51674 normal/sparc64/setjmp.c.
51675
03e8661a 516762005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51677
51678 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51679 * kern/sparc64/cache.S: New file.
51680 * kern/sparc64/cache.c: Removed.
51681 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51682 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51683 -mtune=ultrasparc.
51684 (COMMON_LDFLAGS): Add -melf64_sparc.
51685 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51686 (grubof_SOURCES): Use cache.S instead of cache.c.
51687 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51688 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51689 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51690 commented though.
51691 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51692 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51693 (linux_mod_CFLAGS): Commented out.
51694 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51695 out because module isn't built.
51696 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51697 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51698 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51699 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51700 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51701 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51702 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51703 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51704 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51705 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51706 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51707 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51708 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51709 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51710
34eeec8a 517112005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51712
51713 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51714 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51715 longer, because HFS should not be used on PC.
51716
708367a3 517172005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51718
51719 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51720 consistently within the loop.
51721
6fa1251a 517222005-10-15 Marco Gerards <mgerards@xs4all.nl>
51723
51724 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51725 directory can not be read.
51726
4801580b 517272005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51728
51729 * configure.ac (AC_INIT): Increase the version number to 1.91.
51730
51731 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51732 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51733 term/i386/pc/serial.c.
51734
219ad426 517352005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51736
51737 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51738 file size must be permitted.
51739
51740 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51741 between %ah and %al.
51742
688e5699 517432005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51744
51745 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51746 grub_uint64_t.
51747 Call the hook with a NUL-terminated filename.
51748 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51749 grub_cpu_to_be32.
51750
51751 * kern/term.c (cursor_state): New variable.
51752 (grub_term_set_current): Reset the cursor state on a new
51753 terminal.
51754 (grub_setcursor): Rewritten to use CURSOR_STATE.
51755 (grub_getcursor): New function.
51756
51757 * include/grub/term.h (grub_getcursor): New prototype.
51758
51759 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51760 integers on ARM. Reported by Timothy Baldwin
51761 <T.E.Baldwin99@members.leeds.ac.uk>.
51762
bb34586c 517632005-10-11 Marco Gerards <mgerards@xs4all.nl>
51764
51765 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51766 allocated.
51767 (grub_sfs_dir): Likewise.
51768
9a909877 517692005-10-09 Marco Gerards <mgerards@xs4all.nl>
51770
51771 Add support for the SFS filesystem.
51772
51773 * fs/sfs.c: New file.
51774
51775 * DISTLIST: Added `fs/sfs.c'.
51776
51777 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51778 (grub_probefs_SOURCES): Likewise.
51779 (grub_emu_SOURCES): Likewise.
51780 (pkgdata_MODULES): Add `sfs.mod'.
51781 (sfs_mod_SOURCES): New variable.
51782 (sfs_mod_CFLAGS): Likewise.
51783 (sfs_mod_LDFLAGS): Likewise.
51784
51785 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51786 (pkgdata_MODULES): Add `sfs.mod'.
51787 (sfs_mod_SOURCES): New variable.
51788 (sfs_mod_CFLAGS): Likewise.
51789
51790 * util/grub-emu.c (main): Call `grub_sfs_init' and
51791 `grub_sfs_fini'.
51792
51793 * include/grub/fs.h (grub_sfs_init): New prototype.
51794 (grub_sfs_fini): Likewise.
51795
57bdbde3 517962005-10-07 Marco Gerards <mgerards@xs4all.nl>
51797
51798 Add support for the AFFS filesystem.
51799
51800 * fs/affs.c: New file.
51801
51802 * DISTLIST: Added `fs/affs.c'.
51803
51804 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51805 (grub_probefs_SOURCES): Likewise.
51806 (grub_emu_SOURCES): Likewise.
51807 (pkgdata_MODULES): Add `affs.mod'.
51808 (affs_mod_SOURCES): New variable.
51809 (affs_mod_CFLAGS): Likewise.
51810 (affs_mod_LDFLAGS): Likewise.
51811
51812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51813 (pkgdata_MODULES): Add `affs.mod'.
51814 (affs_mod_SOURCES): New variable.
51815 (affs_mod_CFLAGS): Likewise.
51816
51817 * util/grub-emu.c (main): Call `grub_affs_init' and
51818 `grub_affs_fini'.
51819
51820 * include/grub/fs.h (grub_affs_init): New prototype.
51821 (grub_affs_fini): Likewise.
51822
047b67e0 518232005-10-01 Marco Gerards <mgerards@xs4all.nl>
51824
51825 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51826
59b8208a 518272005-10-01 Marco Gerards <mgerards@xs4all.nl>
51828
51829 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51830 `-m32' to CFLAGS.
51831
51832 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51833 linking.
f19dbdb7 51834
59b8208a 51835 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51836 (COMMON_LDFLAGS): New variable.
51837 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51838 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51839 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51840 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51841 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51842 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51843 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51844 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51845 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51846 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51847 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51848 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51849 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51850 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51851 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51852 variables.
51853 (normal_mod_ASFLAGS): Add `-m32'.
51854
51855 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51856 (grub_host_size_t, grub_host_ssize_t): New types.
51857 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 51858 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 51859 `GRUB_HOST_SIZEOF_VOID_P'.
51860
51861 * include/grub/kernel.h (struct grub_module_header): Type of
51862 member offset changed to `grub_host_off_t'. Type of member size
51863 changed to `grub_host_size_t'.
51864 (struct grub_module_info): Type of member offset changed to
51865 `grub_host_off_t'. Type of member size changed to
51866 `grub_host_size_t'.
51867
b4093103 518682005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51869
51870 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 51871
b4093103 51872 * kern/i386/pc/startup.S (multiboot_header): New label.
51873 (multiboot_entry): Likewise.
51874 (multiboot_trampoline): Likewise.
51875
51876 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51877 Increased to 0x4A0.
51878
51879 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51880 put parentheses after a question mark.
51881 [!GRUB_UTIL] (my_mod): New variable.
51882
51883 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51884
b2499b29 518852005-09-28 Marco Gerards <mgerards@xs4all.nl>
51886
51887 Adds support for the XFS filesystem. Btrees are not supported
51888 yet.
51889
51890 * fs/xfs.c: New file.
51891
51892 * DISTLIST: Added `fs/xfs.c'.
51893
51894 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51895 (grub_probefs_SOURCES): Likewise.
51896 (grub_emu_SOURCES): Likewise.
51897 (pkgdata_MODULES): Add `xfs.mod'.
51898 (xfs_mod_SOURCES): New variable.
51899 (xfs_mod_CFLAGS): Likewise.
51900
51901 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51902 (pkgdata_MODULES): Add `xfs.mod'.
51903 (xfs_mod_SOURCES): New variable.
51904 (xfs_mod_CFLAGS): Likewise.
51905
51906 * util/grub-emu.c (main): Call `grub_xfs_init' and
51907 `grub_xfs_fini'.
51908
51909 * include/grub/fs.h (grub_xfs_init): New prototype.
51910 (grub_xfs_fini): Likewise.
51911
f19dbdb7 51912
83d37a62 519132005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51914
51915 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51916 color modes, allow greater than 16 colors to be configured as
51917 a default palette.
51918
47d2d65e 519192005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51920
51921 * normal/completion.c (complete_arguments): Add the qualifier
51922 const into OPTIONS.
51923
51924 From Omniflux <omniflux+lists@omniflux.com>:
51925 * include/grub/terminfo.h: New file.
51926 * include/grub/tparm.h: Likewise.
51927 * include/grub/i386/pc/serial.h: Likewise.
51928 * term/terminfo.c: Likewise.
51929 * term/tparm.c: Likewise.
51930 * term/i386/pc/serial.c: Likewise.
51931 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51932 serial.mod.
51933 (terminfo_mod_SOURCES): New variable.
51934 (terminfo_mod_CFLAGS): Likewise.
51935 (serial_mod_SOURCES): Likewise.
51936 (serial_mod_CFLAGS): Likewise.
51937
48b671ff 519382005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51939
51940 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51941 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51942 and kern/powerpc/ieee1275/cmain.c, respectively.
51943
51944 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51945 * kern/powerpc/ieee1275/crt0.S: ... here.
51946
51947 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51948 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 51949
48b671ff 51950 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51951 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51952 instead of boot/powerpc/ieee1275/crt0.S and
51953 boot/powerpc/ieee1275/cmain.c, respectively.
51954
51955 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51956 sectors. It was not used anyway.
51957
09fc77a7 519582005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51959
51960 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51961 `unused parameter' warning.
51962
003789c7 519632005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51964
51965 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51966 function.
51967 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51968 getcharwidth.
51969
67f44c86 519702005-08-28 Marco Gerards <metgerards@student.han.nl>
51971
51972 * include/grub/normal.h (enum grub_completion_type): Added
51973 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51974
51975 * normal/cmdline.c (print_completion): Handle
51976 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51977 * normal/menu_entry.c (store_completion): Likewise.
51978
51979 * normal/completion.c (complete_arguments): New function.
51980 (grub_normal_do_completion): Call `complete_arguments' when the
51981 current words start with a dash.
51982
0b5abe02 519832005-08-27 Marco Gerards <metgerards@student.han.nl>
51984
51985 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51986 `gzio.mod' instead of `io.mod').
51987
d9864ee1 519882005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51989
51990 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51991 (DISTDIRS): Added io and video.
51992 Rewrite the search routine to make an output consistently.
51993
51994 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51995 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51996 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51997 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51998 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51999 util/powerpc/ieee1275/misc.c.
f19dbdb7 52000
d9864ee1 52001 * include/grub/gzio.h: New file.
52002 * io/gzio.c: Likewise.
f19dbdb7 52003
d9864ee1 52004 * kern/file.c (grub_file_close): Call grub_device_close only if
52005 FILE->DEVICE is not NULL.
52006
52007 * include/grub/mm.h [!NULL] (NULL): New macro.
52008
52009 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
52010
52011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
52012 (pkgdata_MODULES): Added gzio.mod.
52013 (gzio_mod_SOURCES): New variable.
52014 (gzio_mod_CFLAGS): Likewise.
52015
52016 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
52017 (pkgdata_MODULES): Added gzio.mod.
52018 (gzio_mod_SOURCES): New variable.
52019 (gzio_mod_CFLAGS): Likewise.
52020
52021 * commands/cat.c: Include grub/gzio.h.
52022 (grub_cmd_cat): Use grub_gzfile_open instead of
52023 grub_file_open.
f19dbdb7 52024
d9864ee1 52025 * commands/cmp.c: Include grub/gzio.h.
52026 (grub_cmd_cmp): Use grub_gzfile_open instead of
52027 grub_file_open.
52028
52029 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
52030 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
52031 grub_file_open.
52032 (grub_rescue_cmd_module): Likewise.
52033
fa46f4b5 520342005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52035
52036 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
52037 kern/sparc64/ieee1275/init.c because it contains _start.
52038 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
52039
e9211b5d 520402005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52041
52042 * configure.ac: Add support for sparc64 host with ieee1275
52043 firmware.
52044 * configure: Generated from configure.ac.
52045 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
52046 instead of int.
52047 (grub_ofdisk_read): Likewise.
52048 (grub_ofdisk_open): Use %p to print pointer values, and cast the
52049 pointers as (void *) to remove a warning.
52050 (grub_ofdisk_close): Likewise.
52051 (grub_ofdisk_read): Likewise.
52052 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
52053 returns, so make it return void to remove a warning.
52054 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
52055 Corresponding prototype change.
52056 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
52057 values, and cast the pointers as (void *) to remove a warning.
52058 (grub_mm_dump): Likewise.
52059 * conf/sparc64-ieee1275.mk: New file.
52060 * conf/sparc64-ieee1275.rmk: Likewise.
52061 * include/grub/sparc64/setjmp.h: Likewise.
52062 * include/grub/sparc64/types.h: Likewise.
52063 * include/grub/sparc64/ieee1275/console.h: Likewise.
52064 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52065 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52066 * include/grub/sparc64/ieee1275/time.h: Likewise.
52067 * kern/sparc64/cache.c: Likewise.
52068 * kern/sparc64/dl.c: Likewise.
52069 * kern/sparc64/ieee1275/init.c: Likewise.
52070 * kern/sparc64/ieee1275/openfw.c: Likewise.
52071
385c6a92 520722005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52073
52074 * util/console.c (grub_ncurses_putchar): If C is greater than
52075 0x7f, set C to a question mark.
52076 (grub_ncurses_getcharwidth): New function.
52077 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52078 getcharwidth.
52079
52080 * normal/menu.c (print_entry): Made aware of Unicode. First,
52081 convert TITLE to UCS-4, and predict the cursor position by
52082 grub_getcharwidth.
52083
52084 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52085 const to SRC.
52086 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52087
16ccb8b1 520882005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52089
52090 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52091 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52092 grub_strcat.
52093
52094 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52095 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52096 grub_strcpy and grub_strlen. Take it into account that a space
52097 character is inserted as a delimiter.
52098
6a85ce79 520992005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52100
52101 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 52102 invalid magic in the error.
6a85ce79 52103
52104 * commands/search.c: New file.
f19dbdb7 52105
6a85ce79 52106 * util/grub-emu.c (main): Call grub_search_init and
52107 grub_search_fini.
52108
52109 * kern/rescue.c (grub_rescue_print_disks): Removed.
52110 (grub_rescue_print_devices): New function.
52111 (grub_rescue_cmd_ls): Use grub_device_iterate with
52112 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52113 grub_rescue_print_disks.
52114
52115 * kern/partition.c (grub_partition_iterate): Return the result of
52116 PARTMAP->ITERATE instead of GRUB_ERRNO.
52117
52118 * kern/device.c: Include grub/partition.h.
52119 (grub_device_iterate): New function.
52120
52121 * include/grub/partition.h (grub_partition_iterate): Return int
52122 instead of grub_err_t.
52123
52124 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52125 prototype.
52126 [GRUB_UTIL] (grub_search_fini): Likewise.
52127
52128 * include/grub/device.h (grub_device_iterate): New prototype.
52129
52130 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52131 commands/search.c.
52132 (pkgdata_MODULES): Added search.mod.
52133 (search_mod_SOURCES): New variable.
52134 (search_mod_CFLAGS): Likewise.
52135
52136 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52137 (pkgdata_MODULES): Added search.mod.
52138 (search_mod_SOURCES): New variable.
52139 (search_mod_CFLAGS): Likewise.
52140
52141 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52142 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52143 All callers changed.
52144
52145 * DISTLIST: Added commands/search.c.
52146
ef095434 521472005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52148
52149 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52150 conversion.
52151 (grub_getcharwidth): New function.
52152
52153 * kern/misc.c (grub_utf8_to_ucs4): New function.
52154
52155 * include/grub/term.h (struct grub_term): Added a new member
52156 "getcharwidth".
52157 (grub_getcharwidth): New prototype.
52158
52159 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52160
52161 * term/i386/pc/console.c (map_char): New function. Segregated from
52162 grub_console_putchar.
52163 (grub_console_putchar): Use map_char.
52164 (grub_console_getcharwidth): New function.
52165 (grub_console_term): Specified grub_console_getcharwidth as
52166 getcharwidth.
52167
52168 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52169 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52170
52171 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52172 GRUB_ERRNO.
52173 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52174 on grub_strtoul completely.
52175 (write_char): Declare local variables in the beginning of the
52176 function.
52177 (grub_vesafb_getcharwidth): New function.
52178 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52179 getcharwidth.
52180
1f0a95e4 521812005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52182
52183 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52184 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52185 commands/i386/pc/vbetest.c.
52186
52187 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52188 call grub_vbe_get_controller_info again, because the returned
52189 information is volatile.
52190 (grub_vbe_set_video_mode): Mostly rewritten.
52191 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52192 grub_vbe_status_t correctly.
52193 (grub_vbe_get_video_mode_info): Likewise.
52194 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52195 several if statements.
52196
52197 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52198 * commands/i386/pc/vbeinfo.c: ... this.
52199
52200 * commands/i386/pc/vbe_test.c: Renamed to ...
52201 * commands/i386/pc/vbetest.c: ... this.
52202
52203 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52204 ...
52205 (grub_cmd_vbeinfo): ... this. Save video modes before
52206 iterating. Skip a video mode, if it is not available, not enough
52207 information is given or it is monochrome. Show the memory
52208 model. Leave the interpretation of MODEVAR to grub_strtoul
52209 completely.
52210 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52211 (GRUB_MOD_FINI): Likewise.
52212
52213 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52214 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52215 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52216 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52217 grub_strtoul completely.
52218 (real2pm): Removed.
52219 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52220 (GRUB_MOD_FINI): Likewise.
52221
52222 * normal/misc.c: Include grub/mm.h.
52223
52224 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52225 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52226 (vbe_list_modes_mod_SOURCES): Removed.
52227 (vbe_list_modes_mod_CFLAGS): Likewise.
52228 (vbe_test_mod_SOURCES): Likewise.
52229 (vbe_test_mod_CFLAGS): Likewise.
52230 (vbeinfo_mod_SOURCES): New variable.
52231 (vbeinfo_mod_CFLAGS): Likewise.
52232 (vbetest_mod_SOURCES): Likewise.
52233 (vbetest_mod_CFLAGS): Likewise.
52234
992ffbbe 522352005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52236
52237 * normal/misc.c: New file.
52238
52239 * DISTLIST: Added normal/misc.c.
f19dbdb7 52240
992ffbbe 52241 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52242 DISK to HOOK. Call HOOK with DISK.
52243 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52244 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52245 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52246
52247 * normal/menu_entry.c (struct screen): Added a new member
52248 "completion_shown".
52249 (completion_buffer): New global variable.
52250 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52251 (store_completion): New function.
52252 (complete): Likewise.
52253 (clear_completions): Likewise.
52254 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52255 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52256 a tab, call complete.
52257
52258 * normal/completion.c (disk_dev): Removed.
52259 (print_simple_completion): Likewise.
52260 (print_partition_completion): Likewise.
52261 (print_func): New global variable.
52262 (add_completion): Do not take the arguments WHAT or PRINT any
52263 longer. Added a new argument TYPE. Instead of printing directly,
52264 call PRINT_FUNC if not NULL.
52265 All callers changed.
52266 (complete_device): Use a local variable DEV instead of
52267 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52268 (grub_normal_do_completion): Take a new argument HOOK. Do not
52269 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52270 empty string, return NULL instead.
52271 All callers changed.
52272
52273 * normal/cmdline.c (print_completion): New function.
52274
52275 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52276 to HOOK.
52277 All callers changed.
52278
52279 * kern/disk.c (grub_print_partinfo): Removed.
52280
52281 * include/grub/partition.h (struct grub_partition_map): Add a new
52282 argument DISK into HOOK of ITERATE.
52283 (grub_partition_iterate): Add a new argument DISK to HOOK.
52284
52285 * include/grub/normal.h (enum grub_completion_type): New enum.
52286 (grub_completion_type_t): New type.
52287 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52288 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52289 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52290 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52291 (grub_normal_do_completion): Added a new argument HOOK.
52292 (grub_normal_print_device_info): New prototype.
52293
52294 * include/grub/disk.h (grub_print_partinfo): Removed.
52295
52296 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52297 (normal_mod_SOURCES): Likewise.
52298 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52299 (normal_mod_SOURCES): Likewise.
52300
52301 * commands/ls.c (grub_ls_list_disks): Use
52302 grub_normal_print_device_info instead of grub_print_partinfo. Free
52303 PNAME.
52304 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52305 duplicating the code.
52306
0bd41162 523072005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52308
52309 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 52310 follow GCS more precisely.
52311 * commands/i386/pc/vbe_test.c: Likewise.
52312 * include/grub/i386/pc/vbe.h: Likewise.
52313 * term/i386/pc/vesafb.c: Likewise.
52314 * video/i386/pc/vbe.c: Likewise.
0bd41162 52315
6323696a 523162005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52317
52318 * DISTLIST: Added term/i386/pc/vesafb.c
52319 DISTLIST: Added video/i386/pc/vbe.c
52320 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52321 DISTLIST: Added commands/i386/pc/vbe_test.c.
52322 * commands/i386/pc/vbe_list_modes.c: New file.
52323 * commands/i386/pc/vbe_test.c: Likewise.
52324 * term/i386/pc/vesafb.c: Likewise.
52325 * video/i386/pc/vbe.c: Likewise.
52326 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52327 (grub_vbe_probe) Added prototype.
52328 (grub_vbe_set_video_mode) Likewise.
52329 (grub_vbe_get_video_mode) Likewise.
52330 (grub_vbe_get_video_mode_info) Likewise.
52331 (grub_vbe_set_pixel_rgb) Likewise.
52332 (grub_vbe_set_pixel_index) Likewise.
52333 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52334 (pkgdata_MODULES): Added vesafb.mod.
52335 (pkgdata_MODULES): Added vbe_list_modes.mod.
52336 (pkgdata_MODULES): Added vbe_test.mod.
52337 (vbe_mod_SOURCES): Added.
52338 (vbe_mod_CFLAGS): Likewise.
52339 (vesafb_mod_SOURCES): Likewise.
52340 (vesafb_mod_CFLAGS): Likewise.
52341 (vbe_list_modes_mod_SOURCES): Likewise.
52342 (vbe_list_modes_mod_CFLAGS): Likewise.
52343 (vbe_test_mod_SOURCES): Likewise.
52344 (vbe_test_mod_CFLAGS): Likewise.
52345
0a74e62f 523462005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52347
0a74e62f 52348 * normal/command.c (grub_command_execute): If INTERACTIVE is
52349 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52350 CMDLINE. Disable the pager if INTERACTIVE is true.
52351 All callers are changed.
52352
52353 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52354 before reading a config file.
52355 * normal/main.c (read_config_file): Even if a command is not
52356 found, register it if it is within an entry.
52357
52358 * util/grub-emu.c: Include sys/types.h and unistd.h.
52359 (options): Added --hold.
52360 (struct arguments): Added a new member "hold".
52361 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52362 missing.
52363 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52364 cleared by a debugger, if it is not zero.
52365
52366 * include/grub/normal.h (grub_command_execute): Add an argument
52367 INTERACTIVE.
52368
e51f85ae 523692005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52370
52371 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52372
e9c6f39b 523732005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52374
52375 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52376 program with another one, because the old one didn't detect a bug
52377 in gcc-3.4. Always use regparm 2, because the new test is still
52378 not enough for gcc-4.0. Someone must investigate a simple test
52379 case which detects a bug in gcc-4.0.
52380
8de3495c 523812005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52382
52383 * DISTLIST: Added normal/completion.c.
52384
52385 * normal/completion.c: New file.
f19dbdb7 52386
8de3495c 52387 * term/i386/pc/console.c (grub_console_getwh): New function.
52388 (grub_console_term): Assign grub_console_getwh to getwh.
52389
52390 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52391 function is defined in normal/completion.c as
52392 grub_normal_do_completion.
52393 (grub_cmdline_get): Use grub_normal_do_completion instead of
52394 grub_tab_complete.
52395
52396 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52397 returns non-zero, otherwise return 0.
52398 (grub_partition_iterate): First, probe the partition map. Then,
52399 call ITERATE only for this partition map.
52400
52401 * kern/misc.c (grub_strncmp): Rewritten.
52402
52403 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52404 returns non-zero. Otherwise return 0.
52405
52406 * include/grub/partition.h (grub_partition_map_iterate): Return
52407 int instead of void.
52408
52409 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52410
52411 * include/grub/misc.h (grub_strncmp): Change the type of N to
52412 grub_size_t.
52413
52414 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52415 of void.
52416
52417 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 52418 unsigned explicitly before comparing it with I.
8de3495c 52419
52420 * kern/main.c (grub_env_write_root): Add the attribute unused into
52421 VAR.
52422
52423 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52424 normal/completion.c.
52425 (normal_mod_SOURCES): Likewise.
52426 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52427 (normal_mod_SOURCES): Likewise.
52428
52429 * normal/command.c (grub_iterate_commands): If ITERATE returns
52430 non-zero, return one immediately.
52431
e85e144b 524322005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52433
52434 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52435 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52436 descriptions.
52437 (grub_vbe_get_controller_info): New function.
52438 (grub_vbe_get_mode_info): Likewise.
52439 (grub_vbe_set_mode): Likewise.
52440 (grub_vbe_get_mode): Likewise.
52441 (grub_vbe_set_memory_window): Likewise.
52442 (grub_vbe_get_memory_window): Likewise.
52443 (grub_vbe_set_scanline_length): Likewise.
52444 (grub_vbe_get_scanline_length): Likewise.
52445 (grub_vbe_set_display_start): Likewise.
52446 (grub_vbe_get_display_start): Likewise.
52447 (grub_vbe_set_palette_data): Likewise.
52448 * include/grub/i386/pc/vbe.h: New file.
52449
c46153d2 524502005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52451
52452 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52453 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52454 * DISTLIST: Likewise.
52455 * kern/ieee1275/of.c: Moved to ...
52456 * kern/ieee1275/ieee1275.c: ... here.
52457
0cb90c45 524582005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52459
52460 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52461 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52462 Pass 0 as `end' parameter to grub_strtoul().
52463
a19fb360 524642005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52465
52466 * include/grub/powerpc/ieee1275/console.h: Do not include
52467 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52468 ifdef.
52469 (grub_console_cur_color): Remove i386-specific prototype.
52470 (grub_console_real_putchar): Likewise.
52471 (grub_console_checkkey): Likewise.
52472 (grub_console_getkey): Likewise.
52473 (grub_console_getxy): Likewise.
52474 (grub_console_gotoxy): Likewise.
52475 (grub_console_cls): Likewise.
52476 (grub_console_setcursor): Likewise.
52477 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52478 Include <grub/machine/console.h>.
52479 * term/ieee1275/ofconsole.c: Likewise.
52480
4ac9bd04 524812005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52482
52483 * Makefile.in (LIBLZO): New variable.
52484
52485 * configure.ac: Check for LZO version 2.
52486
52487 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52488 lzo/lzo1x.h instead of lzo1x.h.
52489
52490 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52491 of -llzo.
52492
52493 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52494 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52495
52496 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52497 copying the data from PARTITION to P.
52498
f4917dfd 524992005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52500
52501 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52502 negative, unload the module.
52503
52504 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52505 map is "pc_partition_map" but not "pc".
52506 (usage): Fix the description. The options are --boot-image and
52507 --core-image but not --boot-file or --core-file.
52508 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52509 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52510 DEFAULT_DIRECTORY.
52511
52512 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52513 --core-file. Specify INSTALL_DEVICE as an argument.
52514
52515 * util/console.c: Include config.h.
52516 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52517 [HAVE_NCURSES_H]: Include ncurses.h.
52518 [HAVE_CURSES_H]: Include curses.h.
52519 [!A_NORMAL] (A_NORMAL): Defined as zero.
52520 [!A_STANDOUT] (A_STANDOUT): Likewise.
52521
52522 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52523 -lncurses.
52524 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52525
52526 * configure.ac: Check for curses libraries and headers.
52527
52528 * Makefile.in (LIBCURSES): New variable.
52529
52530 * genmk.rb (Script::rule): Set the executable bits.
52531
52532 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52533 name of the PC partition map is "pc_partition_map" but not "pc".
52534
0e143073 525352005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52536
52537 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52538 (modules): Likewise.
52539 (usage): Added descriptions for --modules and --grub-probefs.
52540 Handle --modules and --grub-probefs. Save the arguments in MODULES
52541 and GRUB_PROBEFS, respectively.
52542 Auto-detect a filesystem module against GRUBDIR. If the result is
52543 empty and modules are not specified explicitly, abort the
52544 installation. Add the result to MODULES.
52545
52546 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52547 disk/powerpc/ieee1275/ofdisk.c,
52548 include/grub/powerpc/ieee1275/init.h and
52549 term/powerpc/ieee1275/ofconsole.c.
52550 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52551 term/ieee1275/ofconsole.c.
52552
52553 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52554
52555 * COPYING: Upgraded to the latest version. Only the address of the
52556 FSF office has changed.
f19dbdb7 52557
efd6e6d5 525582005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52559
52560 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52561 kern/ieee1275.c with kern/ieee1275/of.c.
52562
52563 * kern/ieee1275.c: Moved to ...
52564 * kern/ieee1275/of.c: ... here.
52565
8ceafda2 525662005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52567
52568 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 52569 readability.
8ceafda2 52570
52571 * config.guess: Updated to the latest version from gnulib.
52572 * config.sub: Likewise.
52573 * install.sh: Likewise.
52574 * mkinstalldirs: Likewise.
52575
52576 * include/grub/console.h: Removed. This file is arch-specific. Do
52577 not put this in include/grub.
52578
52579 * include/grub/i386/pc/console.h: Resurrected.
52580
52581 * util/console.c: Include grub/machine/console.h instead of
52582 grub/console.h.
52583 * util/grub-emu.c: Likewise.
52584
267f6cd9 525852005-08-04 Marco Gerards <metgerards@student.han.nl>
52586
52587 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52588 hardcoded value.
f19dbdb7 52589
267f6cd9 52590 From Vincent Pelletier <subdino2004@yahoo.fr>
52591 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52592 Redefined to use grub_getwh.
52593 (grub_term): New member named getwh.
52594 (grub_getwh): New prototype.
52595 * kern/term.c (grub_getwh): New function.
52596 * term/i386/pc/console.c (grub_console_getwh): New function.
52597 (grub_console_term): New member `getwh'.
52598 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52599 (grub_vga_term): New member `getwh'.
0b5abe02 52600 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 52601 grub_ssize_t.
52602 (grub_ofconsole_getw): New function.
52603 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52604 (grub_ofconsole_term): New field named getwh and new initial
52605 value.
52606
3be7266d 526072005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52608
52609 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52610 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52611 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52612 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52613 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52614 of <grub/machine/ieee1275.h>.
52615 * commands/ieee1275/reboot.c: Likewise.
52616 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52617 * kern/ieee1275.c: ... to here. All users updated. Change all
52618 parameter structs to use new type `grub_ieee1275_cell_t'.
52619 * term/powerpc/ieee1275/ofconsole.c: Move ...
52620 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52621 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52622 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52623 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52624 to return int.
52625 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52626 Remove unused prototypes. All users updated.
52627 * include/grub/powerpc/ieee1275/console.h: Removed.
52628 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52629 `grub_ieee1275_cell_t'.
52630 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52631 Cast comparisons with -1 to the correct type.
52632 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52633 type to match `grub_ieee1275_entry_fn'.
52634
8b5f3938 526352005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52636
52637 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52638
52639 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52640 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52641 partmap/sun.c.
52642 (grub_probefs_SOURCES): New variable.
52643
52644 * util/i386/pc/grub-probefs.c: New file.
52645
52646 * util/i386/pc/grub-setup.c (main): Call
52647 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52648 grub_hfs_init and grub_jfs_init to initialize the system. Call
52649 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52650 grub_pc_partition_map_fini to finish the system.
52651
ea409713 526522005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52653
52654 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52655 function.
52656 (grub_multiboot_load_elf32): Likewise.
52657 (grub_multiboot_is_elf64): Likewise.
52658 (grub_multiboot_load_elf64): Likewise.
52659 (grub_multiboot_load_elf): Likewise.
52660 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52661 an ELF32 or ELF64 file.
52662 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52663
52664 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52665 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52666 NULL before calling FS->LABEL.
52667 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52668 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52669 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52670 before calling FS->LABEL.
52671
141a288b 526722005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52673
52674 * util/i386/pc/grub-install.in (datadir): New variable.
52675 (libdir): Removed.
52676 (pkgdatadir): New variable.
52677 (pkglibdir): Removed.
52678
0d5f8a54 526792005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52680
52681 * DISTLIST: Added util/i386/pc/grub-install.in.
52682
52683 * util/i386/pc/grub-install.in: New file.
52684
52685 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52686 (grub_install_SOURCES): Likewise.
52687
52688 * genmk.rb: Added support for scripts.
52689 (Script): New class.
52690 (scripts): New variable.
52691
52692 * Makefile.in (install-local): Install sbin_SCRIPTS by
52693 INSTALL_SCRIPT.
52694 (uninstall): Remove sbin_SCRIPTS.
52695
52696 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52697 device, try to get a GRUB device by
52698 grub_util_biosdisk_get_grub_dev.
52699 Free DEST_DEV.
52700
52701 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52702 description for --device-map.
52703
5f968e1e 527042005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52705
52706 Change the semantics of variable hooks. They now return strings
52707 instead of error values.
f19dbdb7 52708
5f968e1e 52709 * util/i386/pc/grub-setup.c: Include grub/env.h.
52710 (setup): Use grub_device_set_root instead of grub_env_set.
52711
52712 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52713 grub_env_get instead of grub_device_set_root and
52714 grub_device_get_root, respectively.
52715
52716 * kern/main.c (grub_env_write_root): New function.
52717 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52718 grub_env_set instead of grub_device_set_root.
52719
52720 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52721 many variables.
52722 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52723 rather than calling ENV->WRITE_HOOK afterwards.
52724 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52725 passing a pointer of a pointer.
52726 (grub_register_variable_hook): Change the types of "read_hook" and
52727 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52728 respectively.
52729 Allocate the default empty string on the heap, because this string
52730 may be freed later.
52731
52732 * kern/device.c: Include grub/env.h.
52733 (grub_device_set_root): Removed.
52734 (grub_device_get_root): Likewise.
52735 (grub_device_open): Use grub_env_get instead of
52736 grub_device_get_root.
52737
52738 * include/grub/env.h (grub_env_read_hook_t): New type.
52739 (grub_env_write_hook_t): Likewise.
52740 (grub_env_var): Change the types of "read_hook" and "write_hook"
52741 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52742 (grub_register_variable_hook): Likewise.
52743
52744 * include/grub/device.h (grub_device_set_root): Removed.
52745 (grub_device_set_root): Likewise.
52746
52747 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52748 make sure that DIRNAME terminates with '/', so that
52749 grub_fat_find_dir will fail if PATH is not a directory.
52750
52751 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52752 from DIRNAME.
52753 Use the qualifier auto for print_files and print_files_long.
52754 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52755 as a regular file.
52756 Put a newline only if there is no error.
52757 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52758 used.
52759
896f0afd 527602005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52761
52762 * kern/partition.c (grub_partition_probe): Initialize PART to
52763 NULL. Otherwise, when no partition map is registered, this returns
52764 a garbage.
52765
b28b81b2 527662005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52767
52768 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52769 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52770 valid.
52771
5f3607e0 527722005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52773
52774 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52775 information on each device, if it does not have partitions. Print
52776 "Device" instead of "Disk", because this function is not specific
52777 to disk devices.
52778
52779 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52780 static to ensure that it is put on the memory rather than a
52781 register.
52782
502c87e8 527832005-07-17 Yoshinori Okuji <okuji@enbug.org>
52784
52785 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52786 (grub_cat_init): Likewise.
52787 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52788 (options): Likewise.
52789 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52790 (grub_configfile_init): Likewise.
52791 * font/manager.c (GRUB_MOD_INIT): Likewise.
52792 * commands/help.c (GRUB_MOD_INIT): Likewise.
52793 (grub_help_init): Likewise.
52794 * normal/command.c (grub_command_init): Likewise.
52795 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52796 * disk/loopback.c (grub_loop_init): Likewise.
52797 (GRUB_MOD_INIT): Likewise.
52798 * commands/ls.c (grub_ls_init): Likewise.
52799 (GRUB_MOD_INIT): Likewise.
52800 (options): Likewise.
52801 * commands/boot.c (grub_boot_init): Likewise.
52802 (GRUB_MOD_INIT): Likewise.
52803 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52804 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52805 (GRUB_MOD_INIT): Likewise.
52806 * commands/cmp.c (grub_cmp_init): Likewise.
52807 (GRUB_MOD_INIT): Likewise.
52808
52809 * normal/arg.c: Use <> instead of "" to include header files.
52810 (SHORT_ARG_HELP): New macro.
52811 (SHORT_ARG_USAGE): Likewise.
52812 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52813 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52814 descriptions.
52815 (find_short): Check if C is 'h' or 'u' explicitly.
52816 (grub_arg_show_help): Use space characters instead of tabs. Treat
52817 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52818 are shown with --help and --usage only if they are not used for
52819 the command itself.
52820 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52821 'h' and 'u'.
52822
52823 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52824 const into "longarg". Change the type of "shortarg" to int.
52825
f806d18e 528262005-07-17 Yoshinori Okuji <okuji@enbug.org>
52827
52828 * boot/i386/pc/boot.S (boot_drive_check): New label.
52829
52830 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52831 macro.
52832
52833 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52834 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52835
e293232b 528362005-07-17 Yoshinori Okuji <okuji@enbug.org>
52837
52838 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52839 When turning off Gate A20, skip the check and return immediately,
52840 because this is not fatal usually.
52841
ebedfd00 528422005-07-17 Yoshinori Okuji <okuji@enbug.org>
52843
52844 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52845 be 0x7C00 instead of 0x8000.
52846
52847 * boot/i386/pc/pxeboot.S: Rewritten.
52848
52849 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52850 EXT_C.
52851 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52852 result.
52853
654fc59f 528542005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52855
52856 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52857 robustness. This routine now supports a BIOS call and System
52858 Control Port A to modify the gate A20.
52859
52860 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52861 Increased to 0x440.
52862
09f9923f 528632005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52864
52865 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52866 device path and resulting ihandle.
52867 (grub_ofdisk_close): dprintf the ihandle being closed.
52868 (grub_ofdisk_read): dprintf function parameters.
52869 * kern/mm.c (grub_mm_init_region): Likewise.
52870 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52871 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52872 size, and boot arguments.
52873 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52874 before loading into memory.
52875 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52876 before loading into memory.
52877
7ef504d8 528782005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52879
52880 * kern/mm.c: Added much documentation.
52881 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52882 8, set to 5 instead of 8.
52883
e0f050c2 528842005-07-10 Yoshinori Okuji <okuji@enbug.org>
52885
52886 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52887
52888 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52889 (grub_mkdevicemap_SOURCES): New variable.
52890
52891 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52892 lib/device.c of GRUB Legacy.
52893
7224189a 528942005-07-10 Yoshinori Okuji <okuji@enbug.org>
52895
52896 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52897 instead of PATH is NULL.
52898
68c864eb 528992005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52900
52901 * commands/cmp.c (BUFFER_SIZE): New macro.
52902 (grub_cmd_cmp): Close the right file at the right time. Compare
52903 only data just read. Don't report files of different size as
52904 identical. Dynamically allocate buffers. Move variable
52905 declarations at the beginning of function.
52906
e6f3e614 529072005-07-09 Yoshinori Okuji <okuji@enbug.org>
52908
52909 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52910 reverse.
52911
f8f1559a 529122004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52913
52914 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52915 when backspace is pressed at beginning of line.
52916
39c9d41d 529172005-07-03 Yoshinori Okuji <okuji@enbug.org>
52918
52919 * DISTLIST: Added genfslist.sh.
52920
52921 * normal/main.c (fs_module_list): New variable.
52922 (autoload_fs_module): New function.
52923 (read_fs_list): Likewise.
52924 (grub_normal_execute): Call read_fs_list.
52925
52926 * kern/fs.c (grub_fs_autoload_hook): New variable.
52927 (grub_fs_probe): Added support for auto-loading.
52928
52929 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52930 (grub_fs_module_list_t): New type.
52931
52932 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52933 (grub_fs_autoload_hook): New prototype.
52934
52935 * genfslist.sh: New file.
f19dbdb7 52936
39c9d41d 52937 * genmk.rb: Added a rule to generate a filesystem list.
52938
121c1d83 529392005-06-30 Marco Gerards <metgerards@student.han.nl>
52940
52941 * configure.ac: Fix the test for cross-compiling.
52942
52943 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52944 define GRUB_UTIL anymore.
52945
52946 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52947 so this function works on other systems than just big endian.
52948 (load_modules): Likewise.
52949 (add_segments): Likewise.
52950
e75d76e1 529512005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52952
52953 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52954 contains `l' modifier, get a long from va_arg().
52955
50b5a0a7 529562005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52957
52958 * kern/mm.c (grub_free): If the next free block which is being
52959 merged is the first free block, set the first block to the block
52960 being freed.
52961 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52962
89371b20 529632005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52964
52965 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52966 `grub_ieee1275_chosen'.
52967
168d6e58 529682005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52969
52970 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52971 (grub_ieee1275_chosen): New variable.
52972 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52973 `chosen'.
52974 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52975 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52976 Rename first argument to `phandle' for consistency.
52977 (grub_ieee1275_get_property_length): Likewise.
52978 (grub_ieee1275_next_property): Likewise. Change type of first argument
52979 to grub_ieee1275_phandle_t.
52980 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52981 Move export next to declaration.
52982 (grub_ieee1275_chosen): New variable.
52983 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52984 Correct cosmetic typo.
52985 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52986 `grub_ieee1275_chosen'.
52987 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52988 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52989 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52990 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52991 `grub_ieee1275_chosen'.
52992
ca5baa3f 529932005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52994
52995 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52996 /chosen/bootargs.
52997 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52998 /chosen/bootargs as "variable=value" pairs.
52999
708b345f 530002005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
53001
53002 * include/grub/misc.h (grub_dprintf): New macro.
53003 (grub_real_dprintf): New prototype.
53004 (grub_strword): Likewise.
53005 (grub_iswordseparator): Likewise.
53006 * kern/misc.c (grub_real_dprintf): New function.
53007 (grub_strword): Likewise.
53008 (grub_iswordseparator): Likewise.
53009
f4c5e67c 530102005-04-30 Hollis Blanchard <hollis@penguinppc.org>
53011
53012 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
53013 (roundup): Remove macro.
53014 (grub_ieee1275_flags): Make static.
53015 (grub_ieee1275_realmode): Remove.
53016 (grub_ieee1275_test_flag): New function.
53017 (grub_ieee1275_set_flag): Likewise.
53018 (find_options): Rename to `grub_ieee1275_find_options'; update
53019 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
53020 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
53021 (cmain): New prototype.
53022 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
53023 `grub_ieee1275_flags' directly.
53024 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
53025 machine/biosdisk.h.
53026 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
53027 Don't include grub/machine/init.h.
53028 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
53029 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53030 Remove prototype.
53031 (grub_ieee1275_realmode): Likewise.
53032 (grub_ieee1275_flag): New enum.
53033 (grub_ieee1275_test_flag): New prototype.
53034 (grub_ieee1275_set_flag): New prototype.
53035 * include/grub/powerpc/ieee1275/init.h: Remove file.
53036 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
53037 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
53038 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
53039 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
53040 comment.
53041 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
53042 `grub_ieee1275_test_flag'.
53043 (grub_ieee1275_encode_devname): Likewise.
53044
ed16607e 530452005-04-21 Hollis Blanchard <hollis@penguinppc.org>
53046
53047 * include/grub/powerpc/ieee1275/ieee1275.h
53048 (grub_ieee1275_encode_devname): New prototype.
53049 (grub_ieee1275_get_filename): Likewise.
53050 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
53051 function.
53052 (grub_set_prefix): Likewise.
53053 (grub_machine_init): Call grub_set_prefix.
53054 * kern/powerpc/ieee1275/openfw.c: Fix typos.
53055 (grub_parse_type): New enum.
53056 (grub_ieee1275_get_devargs): New function.
53057 (grub_ieee1275_get_devname): Likewise.
53058 (grub_ieee1275_parse_args): Likewise.
53059 (grub_ieee1275_get_filename): Likewise.
53060 (grub_ieee1275_encode_devname): Likewise.
53061
be369920 530622005-03-30 Marco Gerards <metgerards@student.han.nl>
53063
53064 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53065 `grub_loader_unset'.
53066
a5ce3a4a 530672005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53068
53069 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53070 instead of grub_ieee1275_interpret.
53071 (grub_halt_init): New function.
53072 (grub_halt_fini): Likewise.
53073 (GRUB_MOD_INIT): Correct message grammar.
53074 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53075 instead of grub_ieee1275_interpret.
53076 (grub_reboot_init): New function.
53077 (grub_reboot_fini): Likewise.
53078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53079 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53080 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53081 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53082 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53083 function.
53084 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53085 Add prototype.
53086 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53087 prototype.
53088 (grub_halt): Likewise.
53089 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53090 (cmain): Remove __attribute__((unused)).
53091 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53092 (grub_heap_len): Likewise.
53093 (grub_machine_fini): New function.
53094 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53095 (grub_halt): Likewise.
53096 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53097 function.
53098 * util/powerpc/ieee1275/misc.c: New file.
53099
0058f771 531002005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53101
53102 * DISTLIST: New file.
53103 * gendistlist.sh: Likewise.
f19dbdb7 53104
0058f771 53105 * Makefile.in (COMMON_DISTFILES): Removed.
53106 (BOOT_DISTFILES): Likewise.
53107 (CONF_DISTFILES): Likewise.
53108 (DISK_DISTFILES): Likewise.
53109 (FS_DISTFILES): Likewise.
53110 (INCLUDE_DISTFILES): Likewise.
53111 (KERN_DISTFILES): Likewise.
53112 (LOADER_DISTFILES): Likewise.
53113 (TERM_DISTFILES): Likewise.
53114 (UTIL_DISTFILES): Likewise.
53115 (DISTFILES): Likewise.
53116 (uninstall): Uninstall files in $(pkgdata_DATA).
53117 (DISTLIST): New target.
53118 (distdir): Use the contents of the file DISTLIST to get a list of
53119 distributed files.
53120
46b3b8a5 531212005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53122
53123 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53124 descriptor. This is ported from GRUB Legacy.
53125
53126 * gencmdlist.sh: Added an extra semicolon to make it work with
53127 old sed versions. Reported by Robert Bihlmeyer
53128 <robbe@orcus.priv.at>.
53129
5822ff87 531302005-03-08 Yoshinori Okuji <okuji@enbug.org>
53131
53132 Automatic loading of commands is supported.
f19dbdb7 53133
5822ff87 53134 * normal/main.c (read_command_list): New function.
53135 (grub_normal_execute): Call read_command_list.
53136
53137 * normal/command.c (grub_register_command): Return zero or CMD.
53138 Allocate CMD->NAME from the heap.
53139 Initialize CMD->MODULE_NAME to zero.
53140 Find the same name as well. If the same command is found and it is
53141 a dummy command, overwrite members. If it is not a dummy command,
53142 return zero.
53143 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53144 (grub_command_find): If a dummy command is found, load a module
53145 and retry to find a command only once.
53146
53147 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53148 make sure that each command is loaded.
53149
53150 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53151 macro.
53152 (struct grub_command): Remove const from the member `name'.
53153 Add a new member `module_name'.
53154 (grub_register_command): Return grub_command_t.
53155
53156 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53157 sure that each command is loaded.
53158
53159 * genmk.rb (PModule::rule): Specify a module name without the
53160 suffix ".mod" to gencmdlist.sh.
53161
7b1f4b57 531622005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53163
53164 * gencmdlist.sh: New file.
f19dbdb7 53165
7b1f4b57 53166 * genmk.rb (PModule::rule): Generate a rule for a command list.
53167 Clean command.lst.
53168 Generate command.lst from $(COMMANDFILES).
53169
53170 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53171 (DATA): Added $(pkgdata_DATA).
53172 (install-local): Install files in $(pkgdata_DATA).
53173
062aaf39 531742005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53175
53176 * term/i386/pc/vga.c (debug_command): Removed.
53177 (GRUB_MOD_INIT): Do not register the command "debug".
53178
53179 From Hollis Blanchard:
53180 * commands/configfile.c: New file.
53181 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53182 commands/configfile.c.
53183 (pkgdata_MODULES): Added configfile.mod.
53184 (configfile_mod_SOURCES): New variable.
53185 (configfile_mod_CFLAGS): Likewise.
53186 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53187 commands/configfile.c.
53188 (pkgdata_MODULES): Added configfile.mod.
53189 (configfile_mod_SOURCES): New variable.
53190 (configfile_mod_CFLAGS): Likewise.
53191 * util/grub-emu.c (main): Call grub_configfile_init and
53192 grub_configfile_fini.
53193 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53194 prototype.
53195 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 53196
cee01aa6 531972005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53198
53199 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53200 address.
53201
53202 * commands/help.c (grub_cmd_help): Do not print newlines after
53203 the last command in print_command_help.
53204
93f3a1d8 532052005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53206
53207 * commands/default.h: New file.
53208 * commands/timeout.h: Likewise.
53209 * normal/context.c: Likewise.
f19dbdb7 53210
93f3a1d8 53211 * util/misc.c: Do not include sys/times.h.
53212 Include sys/time.h and grub/machine/time.h.
53213 (grub_get_rtc): Rewritten with gettimeofday.
53214
53215 * util/grub-emu.c (main): Call grub_default_init and
53216 grub_timeout_init before grub_normal_init, and call
53217 grub_timeout_fini and grub_default_fini after grub_main.
53218
53219 * util/console.c (grub_ncurses_checkkey): Return the read
53220 character or -1.
53221
53222 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53223 timeouts.
53224
53225 * normal/main.c (read_config_file): Push MENU. If this fails,
53226 print an error and wait for a user input.
53227 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53228 If a menu is empty or an error occurs, pop MENU.
53229 (grub_normal_execute): Pop and free MENU after grub_menu_run
53230 returns.
53231
53232 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53233
53234 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53235 include time.h.
53236 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53237 without GRUB_UTIL.
53238 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53239 time.h.
53240 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53241 without GRUB_UTIL.
53242
53243 * include/grub/normal.h (struct grub_menu_list): New struct.
53244 (grub_menu_list_t): New type.
53245 (struct grub_context): New struct.
53246 (grub_context_t): New type.
53247 (grub_register_command): Got rid of EXPORT_FUNC.
53248 (grub_unregister_command): Likewise.
53249 (grub_context_get): New prototype.
53250 (grub_context_get_current_menu): Likewise.
53251 (grub_context_push_menu): Likewise.
53252 (grub_context_pop_menu): Likewise.
53253 [GRUB_UTIL] (grub_default_init): Likewise.
53254 [GRUB_UTIL] (grub_default_fini): Likewise.
53255 [GRUB_UTIL] (grub_timeout_init): Likewise.
53256 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53257
53258 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53259 commands/timeout.c and normal/context.c.
53260 (pkgdata_MODULES): Added default.mod and timeout.mod.
53261 (normal_mod_SOURCES): Added normal/context.c.
53262 (default_mod_SOURCES): New variable.
53263 (default_mod_CFLAGS): Likewise.
53264 (timeout_mod_SOURCES): Likewise.
53265 (timeout_mod_CFLAGS): Likewise.
53266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53267 conf/i386-pc.rmk.
53268 (pkgdata_MODULES): Added default.mod and timeout.mod.
53269 (normal_mod_SOURCES): Added normal/context.c.
53270 (default_mod_SOURCES): New variable.
53271 (default_mod_CFLAGS): Likewise.
53272 (timeout_mod_SOURCES): Likewise.
53273 (timeout_mod_CFLAGS): Likewise.
53274
53275 * Makefile.in (all-local): Added $(MKFILES).
53276
4ed2e1dd 532772005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53278
53279 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53280 (grub_emu_SOURCES): Likewise.
53281 (pkgdata_MODULES): Add `sun.mod'.
53282 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53284 `partmap/sun.c'.
53285 (pkgdata_MODULES): Add `sun.mod'.
53286 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53287 * include/grub/partition.h (grub_sun_partition_map_init): New
53288 prototype.
53289 (grub_sun_partition_map_fini): Likewise.
53290 * partmap/sun.c: New file.
53291 * util/grub-emu.c (main): Initialize and de-initialize the sun
53292 partitionmap support.
53293
4d4e372e 532942005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53295
53296 This implements an Emacs-like menu entry editor.
f19dbdb7 53297
4d4e372e 53298 * normal/menu_entry.c: New file.
f19dbdb7 53299
4d4e372e 53300 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53301 characters to ASCII.
53302 (saved_char): New variable.
53303 (grub_ncurses_checkkey): Rewritten completely.
53304 (grub_ncurses_getkey): Likewise.
53305 (grub_ncurses_init): Call raw instead of cbreak.
53306
53307 * normal/menu.c (print_entry): Do not put a space.
53308 (init_page): Renamed to ...
53309 (grub_menu_init_page): ... this. All callers changed.
53310 (edit_menu_entry): Removed.
53311 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53312
53313 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53314
53315 * kern/misc.c (grub_vprintf): Call grub_refresh.
53316
53317 * normal/menu.c (DISP_LEFT): Renamed to ...
53318 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53319 * normal/menu.c (DISP_UP): Renamed to ...
53320 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53321 * normal/menu.c (DISP_RIGHT): Renamed to ...
53322 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53323 * normal/menu.c (DISP_DOWN): Renamed to ...
53324 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53325 * normal/menu.c (DISP_HLINE): Renamed to ...
53326 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53327 * normal/menu.c (DISP_VLINE): Renamed to ...
53328 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53329 * normal/menu.c (DISP_UL): Renamed to ...
53330 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53331 * normal/menu.c (DISP_UR): Renamed to ...
53332 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53333 * normal/menu.c (DISP_LL): Renamed to ...
53334 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53335 * normal/menu.c (DISP_LR): Renamed to ...
53336 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53337 * normal/menu.c (TERM_WIDTH): Renamed to ...
53338 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53339 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53340 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53341 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53342 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53343 * normal/menu.c (TERM_MARGIN): Renamed to ...
53344 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53345 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53346 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53347 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53348 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53349 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53350 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53351 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53352 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53353 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53354 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53355 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53356 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53357 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53358 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53359 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53360 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53361 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53362 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53363 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53364 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53365 All callers changed.
53366
53367 * include/grub/normal.h: New prototype.
53368
53369 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53370 normal/menu_entry.c.
53371 (normal_mod_SOURCES): Likewise.
53372 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53373 (normal_mod_SOURCES): Likewise.
53374
e6b92c8a 533752005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53376
53377 * include/grub/normal.h (grub_halt_init): New prototype.
53378 (grub_halt_fini): Likewise.
53379 (grub_reboot_init): Likewise.
53380 (grub_reboot_fini): Likewise.
53381
53382 * util/grub-emu.c: Include signal.h.
53383 (main_env): New global variable.
53384 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53385 catch C-c.
53386 (grub_machine_fini): New function.
53387 (main): Call grub_halt_init and grub_reboot_init before
53388 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53389 Call setjmp with MAIN_ENV to go back afterwards.
53390 Call grub_machine_fini right before return.
53391
53392 * include/grub/util/misc.h: Include setjmp.h.
53393 (main_env): New prototype.
53394
53395 * include/grub/kernel.h (grub_machine_fini): New prototype.
53396 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53397 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53398
53399 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53400 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53401 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 53402
e6b92c8a 53403 * util/i386/pc/misc.c: New file.
f19dbdb7 53404
e6b92c8a 53405 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53406 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53407 commands/i386/pc/reboot.c.
53408
c642636f 534092005-02-14 Guillem Jover <guillem@hadrons.org>
53410
53411 * include/grub/dl.h (grub_dl_check_header): New prototype.
53412 (grub_arch_dl_check_header): Change return type to grub_err_t,
53413 remove size parameter and export function. Update all callers.
53414 * kern/dl.c (grub_dl_check_header): New function.
53415 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53416 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53417 are inside the core.
53418 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53419 independent ELF header checks.
53420 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53421 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53422 `grub_dl_check_header' instead of explicit checks. Check for the
53423 ELF type.
53424 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53425 `grub_dl_check_header' instead of explicit checks. Remove arch
53426 specific ELF header checks.
53427
e6b92c8a 53428 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53429 argument SIZE.
53430
5eabe94b 534312005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53432
53433 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53434 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53435
1b14a681 534362005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53437
53438 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 53439 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 53440 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 53441 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 53442 * partmap/amiga.c (amiga_partition_map_iterate): Return
53443 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53444 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53445
aca108aa 534462005-02-01 Guillem Jover <guillem@hadrons.org>
53447
53448 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53449 help info.
53450
c9f9c556 534512005-01-31 Marco Gerards <metgerards@student.han.nl>
53452
53453 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53454 Removed prototype.
53455 (grub_rescue_cmd_linux): New prototype.
53456 (grub_rescue_cmd_initrd): Likewise.
53457 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53458 `bi_rec'.
53459 (grub_linux_release_mem): Release the memory for the initrd.
53460 (grub_load_linux): Renamed from this...
53461 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53462 Changed `entry' not to be static. Loop over memory regions to
53463 find another one when the default fails.
53464 (grub_rescue_cmd_initrd): New function.
53465 (grub_linux_init): Remove function.
53466 (grub_linux_fini): Likewise.
53467 (GRUB_MOD_INIT): Register `initrd'.
53468 (GRUB_MOD_FINI): Unregister `initrd'.
53469 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53470 Function removed.
53471 (grub_linux_normal_fini): Likewise.
53472 (GRUB_MOD_INIT): Register `initrd'.
53473 (GRUB_MOD_FINI): Unregister `initrd'.
53474
990cf3aa 534752005-01-31 Marco Gerards <metgerards@student.han.nl>
53476
53477 * commands/help.c: New file.
53478 * normal/arg.c (show_help): Renamed to...
53479 (grub_arg_show_help): ... this.
53480 * commands/i386/pc/halt.c: New file.
53481 * commands/i386/pc/reboot.c: Likewise.
53482 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53483 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53484 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53485 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53486 variables.
53487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53488 `commands/help.c'.
53489 (pkgdata_MODULES): Add `help.mod'.
53490 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53491 * grub/i386/pc/init.h (grub_reboot): New prototype.
53492 (grub_halt): Likewise.
53493 * include/grub/normal.h (grub_arg_show_help): New prototype.
53494 (grub_help_init): Likewise.
53495 (grub_help_fini): Likewise.
53496 * util/grub-emu.c (main): Initialize and deinitialize the help
53497 command.
53498
53499 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53500
53501 * normal/command.c (grub_command_init): Fixed the description of
53502 the `set' and `unset' commands.
53503
535042005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 53505
53506 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53507 function.
53508 * commands/ieee1275/halt.c: New file.
53509 * commands/ieee1275/reboot.c: Likewise.
53510 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53511 `__attribute__ ((unused))'. Some GCS related fixed.
53512 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53513 (grub_suspend_fini): Likewise.
53514 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53515 and `halt.mod'.
53516 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53517 (halt_mod_CFLAGS): New variables.
53518 * include/grub/powerpc/ieee1275/ieee1275.h
53519 (grub_ieee1275_interpret): New prototype.
53520
1ab09cc7 535212005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53522
53523 * include/grub/misc.h (memmove): New prototype.
53524 (memcpy): Likewise.
53525
8b8cbdb2 535262005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53527
53528 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53529 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53530
e3741a27 535312005-01-22 Marco Gerards <metgerards@student.han.nl>
53532
53533 * kern/misc.c (grub_strndup): Function rewritten.
53534
776bd780 535352005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53536
53537 * normal/menu.c (TERM_WIDTH): Macro redefined.
53538 (TERM_TOP_BORDER_Y): Likewise.
53539 (draw_border): Replaced while-loop by a for-loop. Make the number
53540 of lines consistent with the number of lines displayed in
53541 print_entries. Added a margin below the rectangle.
53542 (print_entry): Make the entry fit in the rectangle.
53543 (print_entries): Display the scroll arrows next to the right
53544 border.
53545
78026bce 535462005-01-21 Marco Gerards <metgerards@student.han.nl>
53547
53548 * fs/minix.c (grub_minix_find_file): Reserve more space for
53549 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53550 `grub_strncpy' to copy `path' into it.
53551
67bbaf0f 535522005-01-21 Marco Gerards <metgerards@student.han.nl>
53553
53554 Add the loopback device, a device via which files can be accessed
53555 as devices.
f19dbdb7 53556
67bbaf0f 53557 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53558 (pkgdata_MODULES): Add loopback.mod.
53559 (loopback_mod_SOURCES): New variable.
53560 (loopback_mod_CFLAGS): Likewise.
53561 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53562 `disk/loopback.c'.
53563 (pkgdata_MODULES): Add loopback.mod.
53564 (loopback_mod_SOURCES): New variable.
53565 (loopback_mod_CFLAGS): Likewise.
53566 * disk/loopback.c: new file.
53567 * include/grub/normal.h (grub_loop_init): New prototype.
53568 (grub_loop_fini): New prototype.
53569 * util/grub-emu.c (main): Initialize and de-initialize loopback
53570 support.
53571 * include/grub/disk.h (grub_disk_dev_id): Add
53572 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53573
6f1c18bd 535742005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53575
53576 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53577 function.
53578 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53579 (suspend_mod_SOURCES): New variable.
53580 (suspend_mod_CFLAGS): Likewise.
53581 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53582 New prototype.
53583 * commands/ieee1275/suspend.c: New file.
53584
b38551da 535852005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53586
53587 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 53588 ((unused))' to `__attribute__ ((used))'.
b38551da 53589 (GRUB_MOD_FINI): Likewise.
53590 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53591 * genmk.rb (PModule): Assign space to common symbols when linking
53592 modules.
53593
777aff39 535942005-01-20 Marco Gerards <metgerards@student.han.nl>
53595
53596 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53597 `unsigned' arguments to `grub_size_t'.
53598 (grub_malloc): Likewise.
53599 (grub_realloc): Likewise.
53600 (grub_memalign): Likewise.
53601 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53602 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53603 * util/misc.c (grub_malloc): Likewise.
53604 (grub_realloc): Likewise.
53605 * kern/mm.c (get_header_from_pointer): Change the casts to
53606 `unsigned' into a cast to `grub_size_t'.
53607
53608 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53609 point to `currnode' when `currnode' is changed.
53610
53611 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53612 Schottelius <nico-linux@schottelius.org>.
53613
d0ff18e1 536142005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53615
53616 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53617 (note_path): Remove variable.
53618 (GRUB_IEEE1275_NOTE_NAME): New macro.
53619 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53620 (grub_ieee1275_note_hdr): New structure.
53621 (grub_ieee1275_note_desc): Likewise.
53622 (grub_ieee1275_note): Likewise.
53623 (load_note): Remove `dir' argument. All callers updated. Remove
53624 `note_img' and `path'. Do not load a file from `note_path'.
53625 Initialize a struct grub_ieee1275_note and write that to `out'.
53626 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53627
4ca7004c 536282005-01-05 Marco Gerards <metgerards@student.han.nl>
53629
53630 * util/misc.c (grub_util_read_image): Revert last change. It
53631 called `grub_util_read_at', which seeks from the beginning of the
53632 file.
53633
0b412211 536342005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53635
53636 * TODO: Add note about endianness in grub-mkimage.
53637 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53638 section.
53639 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53640 (grub_mkimage_SOURCES): New target.
53641 * include/grub/kernel.h (grub_start_addr): Remove variable.
53642 (grub_end_addr): Likewise.
53643 (grub_total_module_size): Likewise.
53644 (grub_kernel_image_size): Likewise.
53645 (GRUB_MODULE_MAGIC): New constant.
53646 (grub_module_info): New structure.
53647 (grub_arch_modules_addr): New prototype.
53648 (grub_get_end_addr): Remove prototype.
53649 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53650 * include/grub/powerpc/ieee1275/kernel.h: New file.
53651 * include/grub/util/misc.h (grub_util_get_fp_size): New
53652 prototype.
53653 (grub_util_read_at): Likewise.
53654 (grub_util_write_image_at): Likewise.
53655 * kern/main.c (grub_get_end_addr): Remove function.
53656 (grub_load_modules): Call grub_arch_modules_addr instead of using
53657 grub_end_addr. Look for a grub_module_info struct in memory. Use
53658 the grub_module_info fields instead of calling grub_get_end_addr
53659 as loop conditions. Move grub_add_unused_region code here.
53660 (grub_add_unused_region): Remove function.
53661 * kern/i386/pc/init.c: Include grub/cache.h.
53662 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53663 one call to add_mem_region.
53664 (grub_arch_modules_addr): New function.
53665 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53666 (grub_total_module_size): Likewise.
53667 Include grub/machine/kernel.h.
53668 (grub_arch_modules_addr): New function.
53669 * util/grub-emu.c (grub_end_addr): Remove variable.
53670 (grub_total_module_size): Likewise.
53671 (grub_arch_modules_addr): New function.
53672 * util/misc.c: Include unistd.h.
53673 (grub_util_get_fp_size): New function.
53674 (grub_util_read_at): Likewise.
53675 (grub_util_write_image_at): Likewise.
53676 (grub_util_read_image): Call grub_util_read_at.
53677 (grub_util_write_image): Call grub_util_write_image_at.
53678 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53679 additional memory in kernel_img for a struct grub_module_info.
53680 Fill in that grub_module_info.
53681 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53682
458786f8 536832005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53684
53685 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53686 New function.
53687 * include/grub/powerpc/ieee1275/ieee1275.h
53688 (grub_ieee1275_milliseconds): New prototype.
53689 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53690 Change to 1000.
53691 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53692 grub_ieee1275_milliseconds.
53693
ac507d1b 536942005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53695
53696 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53697 variable.
53698 (find_options): New function.
53699 (cmain): Call find_options.
53700 * include/grub/powerpc/ieee1275/ieee1275.h
53701 (grub_ieee1275_realmode): New extern variable.
53702 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53703 grub_map if grub_ieee1275_realmode is false.
53704
6b8fd1c4 537052004-12-29 Marco Gerards <metgerards@student.han.nl>
53706
53707 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53708 lines are inserted and make it work like readline. Reported by
53709 Vincent Pelletier <subdino2004@yahoo.fr>.
53710
8514a1e0 537112004-12-28 Marco Gerards <metgerards@student.han.nl>
53712
53713 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53714
53715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53716 `kern/powerpc/cache.S'.
53717
924b6140 537182004-12-27 Marco Gerards <metgerards@student.han.nl>
53719
53720 * genmk.rb: Handle the `Program' class in the main loop. Written
53721 by Johan Rydberg <jrydberg@gnu.org>.
53722 (Program): New class.
53723 (programs): New variable.
53724 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53725 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53726 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53727 (help_arch): Function removed.
53728 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53729 `powerpc/libgcc.h' and `loader.h'.
53730 (pkgdata_PROGRAMS): New variable.
53731 (sbin_UTILITIES): Variable removed.
53732 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53733 (grubof_SOURCES): Variable re-defined so it only includes the
53734 core functionality.
53735 (grubof_CFLAGS): Remove `-DGRUBOF'.
53736 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53737 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53738 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53739 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53740 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53741 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53742 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53743 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53744 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53745 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53746 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53747 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53748 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53749 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53750 (pc_mod_CFLAGS): New variables.
53751 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53752 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53753 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53754 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53755 Moved from here...
53756 * include/grub/i386/pc/init.h (grub_os_area_addr)
53757 (rub_os_area_size): ... to here.
53758 * include/grub/powerpc/ieee1275/ieee1275.h
53759 (grub_ieee1275_entry_fn): Export symbol.
53760 * include/grub/powerpc/ieee1275/init.h: New file.
53761 * include/grub/powerpc/libgcc.h: Likewise.
53762 * include/grub/cache.h: Likewise.
53763 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53764 <hollis@penguinppc.org>.
53765 * kern/dl.c: Include <grub/cache.h>.
53766 (grub_dl_flush_cache): New function.
53767 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53768 for this module.
53769 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53770 (grub_console_init): Removed prototypes.
53771 (grub_machine_init): Don't initialize the modules anymore.
53772 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53773 static.
53774 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53775 Macro undef removed.
53776 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53777 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53778 relocation `R_PPC_REL32'. Return an error when the relocation is
53779 unknown.
53780 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53781 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53782 * util/misc.c (grub_arch_sync_caches): Likewise.
53783
e4b47e0c 537842004-12-19 Marco Gerards <metgerards@student.han.nl>
53785
53786 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53787 `symlist.c', add `grubof_symlist.c'.
53788 (symlist.c): Variable removed.
53789 (grubof_HEADERS): Variable added.
53790 (grubof_symlist.c): New target.
53791 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53792 `kernel_img_HEADERS'.
53793 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53794 * kern/powerpc/dl.c: New file.
53795 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53796 Function removed.
53797 (grub_arch_dl_relocate_symbols): Likewise.
53798 (grub_register_exported_symbols): Likewise.
53799
4ceb3636 538002004-12-13 Marco Gerards <metgerards@student.han.nl>
53801
53802 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53803 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53804 to fail instead. Reported by Vincent Pelletier
53805 <subdino2004@yahoo.fr>.
53806
53807 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53808 it is not allocated. Reported by Vincent Pelletier
53809 <subdino2004@yahoo.fr>.
53810
53811 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53812 output so the output looks better.
f19dbdb7 53813
3f1578fe 538142004-12-04 Marco Gerards <metgerards@student.han.nl>
53815
53816 Modulize the partition map support and add support for the amiga
53817 partition map.
f19dbdb7 53818
3f1578fe 53819 * commands/ls.c: Include <grub/partition.h> instead of
53820 <grub/machine/partition.h>.
53821 * kern/disk.c: Likewise.
53822 * kern/rescue.c: Likewise.
53823 * loader/i386/pc/chainloader.c: Likewise.
53824 * normal/cmdline.c: Likewise.
53825 * kern/powerpc/ieee1275/init.c: Likewise.
53826 (grub_machine_init): Call `grub_pc_partition_map_init',
53827 `grub_amiga_partition_map_init' and
53828 `grub_apple_partition_map_init'.
53829 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53830 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53831 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53832 `partition.h' and `pc_partition.h'.
53833 (grub_setup_SOURCES): Remove
53834 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53835 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53836 (grub_emu_SOURCES): Likewise.
53837 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53838 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53839 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53840 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53841 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53842 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53843 (grubof_SOURCES): Likewise.
53844 * disk/i386/pc/partition.c: File removed.
53845 * disk/powerpc/ieee1275/partition.c: Likewise.
53846 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53847 * include/grub/i386/pc/partition.h: Likewise.
53848 * kern/partition.c: New file.
53849 * partmap/amiga.c: Likewise.
53850 * partmap/apple.c: Likewise.
53851 * partmap/pc.c: Likewise.
53852 * include/grub/partition.h: Likewise..
53853 * include/grub/pc_partition.h: Likewise.
53854 * util/grub-emu.c: Include <grub/partition.h> instead of
53855 <grub/machine/partition.h>.
53856 (main): Call `grub_pc_partition_map_init',
53857 `grub_amiga_partition_map_init' and
53858 `grub_apple_partition_map_init' and deinitialize afterwards.
53859 * util/i386/pc/biosdisk.c: Include `#include
53860 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53861 `<grub/machine/partition.h>'.
53862 * util/i386/pc/grub-setup.c: Likewise.
53863 * util/i386/pc/biosdisk.c: Likewise.
53864 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53865 partition information in case of a PC partition.
53866 * util/i386/pc/grub-setup.c: Include `#include
53867 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53868 `<grub/machine/partition.h>'.
53869 (setup): Only access the PC specific partition information in case
53870 of a PC partition.
53871
0ef4ced9 538722004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 53873
0ef4ced9 53874 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53875 (grub_longjmp): Likewise.
53876 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53877 20.
53878 * normal/powerpc/setjmp.S: New file.
53879 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53880 `normal/powerpc/setjmp.S'.
53881 (grubof_CFLAGS): Add `-DGRUBOF'.
53882 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53883 [GRUB_UTIL && !GRUBOF].
f19dbdb7 53884
19950e29 538852004-11-16 Marco Gerards <metgerards@student.han.nl>
53886
53887 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53888 property named `name'. Correctly handle the error returned by
53889 `grub_ieee1275_finddevice' if a device can not be opened.
53890
a2fea427 538912004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53892
53893 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53894 `actual' for negativity.
53895 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53896 kern/fshelp.c.
53897
41ea0ea3 538982004-11-01 Marco Gerards <metgerards@student.han.nl>
53899
53900 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53901 (PAGE_OFFSET): New macro.
53902 (CRTC_ADDR_PORT): Likewise.
53903 (CRTC_DATA_PORT): Likewise.
53904 (START_ADDR_HIGH_REGISTER): Likewise.
53905 (START_ADDR_LOW_REGISTER): Likewise.
53906 (GRAPHICS_ADDR_PORT): Likewise.
53907 (GRAPHICS_DATA_PORT): Likewise.
53908 (READ_MAP_REGISTER): Likewise.
53909 (INPUT_STATUS1_REGISTER): Likewise.
53910 (INPUT_STATUS1_VERTR_BIT): Likewise.
53911 (page): New variable.
53912 (wait_vretrace): New function.
53913 (set_read_map): Likewise.
53914 (set_start_address): Likewise.
53915 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53916 the right page.
53917 (check_vga_mem): Take the page into account.
53918 (write_char): Likewise.
53919 (write_cursor): Likewise.
53920 (scroll_up): Likewise. Copy the page to the page that is not
53921 shown and switch between both pages.
53922 (grub_vga_putchar): Fix off by one error.
53923 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53924 account.
53925
ad0bd20b 539262004-11-01 Marco Gerards <metgerards@student.han.nl>
53927
53928 Add support for iso9660 (including rockridge).
f19dbdb7 53929
ad0bd20b 53930 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53931 (iso9660_mod_SOURCES): New variable.
53932 (iso9660_mod_CFLAGS): Likewise.
53933 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53934 * include/grub/fs.h (grub_iso9660_init): New prototype.
53935 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53936 * fs/iso9660.c: New file.
53937
53938 * include/grub/misc.h (grub_strncat): New prototype.
53939 * kern/misc.c (grub_strncat): New function.
f19dbdb7 53940
ad0bd20b 53941 * fs/hfs.c (grub_hfs_mount): Translate the error
53942 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53943 * fs/jfs.c (grub_jfs_mount): Likewise.
53944 * fs/ufs.c (grub_ufs_mount): Likewise.
53945
a5477a59 539462004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53947
53948 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53949 which initialized BAT registers.
53950 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53951 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53952 Move from here...
53953 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53954 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53955 ... to here.
53956 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53957 (grub_mapclaim): Likewise.
53958 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53959 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53960 hand.
53961
9304c1f8 539622004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53963
53964 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53965 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53966 -ffreestanding and -msoft-float.
53967
86f4ae25 539682004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53969
53970 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53971 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53972 set in grub_ieee1275_flags.
53973
38912228 539742004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53975
53976 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53977 prototype.
53978 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53979 grub_console_init first.
53980 Change the memory range used for grub_ieee1275_claim and
53981 grub_mm_init_region.
53982 Print an error message if the claim fails.
53983 Include <grub/misc.h>.
53984
d1923dc8 539852004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53986
53987 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53988 Call grub_children_iterate for device nodes of type `scsi',
53989 `ide', or `ata'.
53990 (grub_ofdisk_open): Remove manual device alias resolution.
53991 Fix memory leak when device cannot be opened.
f19dbdb7 53992 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 53993 (grub_children_iterate): New prototype.
53994 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53995 New function.
53996 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53997 Return -1 if args.size was -1.
53998
4512e4f3 539992004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54000
54001 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
54002 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
54003 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
54004 Open Firmware's memory for it; claim memory from _start to _end.
54005 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
54006 (_end): New extern.
54007 (_start): Zero BSS from __bss_start to _end.
54008 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
54009 New extern.
54010 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
54011
4d61feb0 540122004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54013
ad0bd20b 54014 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
54015 -1 if args.base was -1.
4d61feb0 54016
026fa2f9 540172004-10-08 Hollis Blanchard <hollis@penguinppc.org>
54018
54019 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
54020 escape sequence instead of a literal ^L. Also call
54021 grub_ofconsole_gotoxy.
54022
9f2220ef 540232004-10-03 Hollis Blanchard <hollis@penguinppc.org>
54024
54025 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
54026 void * arguments to grub_addr_t. All callers updated. Also make
54027 the `result' argument optional.
54028 (grub_ieee1275_release): change void * arguments to grub_addr_t.
54029 All callers updated.
54030
8a572cd7 540312004-09-22 Hollis Blanchard <hollis@penguinppc.org>
54032
54033 * commands/ls.c (grub_ls_list_files): Use the string following the
54034 initial ')', if present, as the filesystem path.
54035 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
54036
54037 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
54038
18aa81f2 540392004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
54040
54041 Make the source code of the menu interface more readable.
f19dbdb7 54042
18aa81f2 54043 * normal/menu.c: Include grub/mm.h.
54044 (TERM_WIDTH): New macro.
54045 (TERM_HEIGHT): Likewise.
54046 (TERM_INFO_HEIGHT): Likewise.
54047 (TERM_MARGIN): Likewise.
54048 (TERM_SCROLL_WIDTH): Likewise.
54049 (TERM_TOP_BORDER_Y): Likewise.
54050 (TERM_LEFT_BORDER_X): Likewise.
54051 (TERM_BORDER_WIDTH): Likewise.
54052 (TERM_MESSAGE_HEIGHT): Likewise.
54053 (TERM_BORDER_HEIGHT): Likewise.
54054 (TERM_NUM_ENTRIES): Likewise.
54055 (TERM_FIRST_ENTRY_Y): Likewise.
54056 (TERM_ENTRY_WIDTH): Likewise.
54057 (TERM_CURSOR_X): Likewise.
54058 (draw_border): Use macros instead of magic numbers.
54059 (print_entry): Likewise.
54060 (print_entries): Likewise.
54061 (run_menu): Likewise. Also, handle the key 'e'.
54062 (run_menu_entry): Ignore empty command lines.
54063 (print_message): Added a new argument EDIT. If EDIT is true,
54064 print a different message.
54065 (init_page): Likewise.
54066 (edit_menu_entry): New function. Not implemented yet.
54067
b47efe30 540682004-09-17 Marco Gerards <metgerards@student.han.nl>
54069
54070 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54071 can be loaded from normal mode.
f19dbdb7 54072
b47efe30 54073 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54074 `multiboot.mod'.
54075 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54076 (multiboot_mod_CFLAGS): New variables.
54077 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 54078 * loader/i386/pc/multiboot_normal.c: Likewise.
54079
b47efe30 54080 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54081 attribute `unused'.
f19dbdb7 54082
b47efe30 54083 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54084 `fdiro' to read the mode information from instead of `diro'.
54085
54086 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54087 looking up a symlink.
54088
54089 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54090 macro.
54091 * normal/command.c (grub_command_execute): Don't parse the
54092 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54093 flags of the command.
54094
54095 * normal/menu.c (grub_menu_run): Fix typo.
54096
da75ac71 540972004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54098
54099 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54100
54101 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54102 `y + 1' instead of `y - 1'.
54103
54104 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 54105
062b24c2 541062004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54107
54108 From Hollis Blanchard <hollis@penguinppc.org>:
54109 * kern/misc.c (memmove): New alias for grub_memmove.
54110 (memcmp): New alias for grub_memcmp.
54111 (memset): New alias for grub_memset.
f19dbdb7 54112 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 54113 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 54114 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 54115 (grub_ieee1275_get_property): Likewise.
f19dbdb7 54116
8ddad845 541172004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54118
54119 Added normal mode command `chainloader' as module chain.mod, which
54120 depends on normal.mod and _chain.mod.
f19dbdb7 54121
8ddad845 54122 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54123 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54124 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54125 Deleted prototype.
54126 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54127 but arguments parsing moved to ...
54128 (grub_chainloader_cmd): ... here. New function.
54129 * include/grub/i386/pc/chainloader.h: New file.
54130 * loader/i386/pc/chainloader_normal.c: Likewise.
54131
2c1f4ce3 541322004-09-11 Marco Gerards <metgerards@student.han.nl>
54133
54134 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54135 (grub_mkimage_LDFLAGS): Likewise.
54136 (grub_emu_SOURCES): Likewise.
54137 (kernel_img_HEADERS): Added fshelp.h.
54138 * fs/ext2.c: Include <grub/fshelp.h>.
54139 (FILETYPE_REG): New macro.
54140 (FILETYPE_INO_REG): Likewise.
54141 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54142 Changed all users.
54143 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54144 all users.
54145 (grub_fshelp_node): New struct.
54146 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54147 to a pointer.
54148 (grub_ext2_get_file_block): Removed function.
54149 (grub_ext2_read_block): New function.
54150 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54151 This function was written.
54152 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54153 (grub_ext2_find_file): Removed function.
54154 (grub_ext2_read_symlink): New function.
54155 (grub_ext2_iterate_dir): Likewise.
54156 (grub_ext2_open): Rewritten.
54157 (grub_ext2_dir): Rewritten.
54158 * include/grub/fshelp.h: New file.
54159 * fs/fshelp.c: Likewise.
54160
3c52136a 541612004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54162
54163 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54164 (print_message): Add a missing newline.
54165 (run_menu): Added timeout support.
54166 (run_menu_entry): New local function.
54167 (grub_menu_run): Added support for booting.
54168
54169 * kern/loader.c (grub_loader_is_loaded): New function.
54170
54171 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54172 (grub_get_rtc): Exported.
54173
54174 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54175 (grub_get_rtc): Exported.
54176
54177 * include/grub/normal.h (struct grub_command_list): Remove
54178 constant from the member `command'.
54179
54180 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54181
54182 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54183
54184 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54185
aa033560 541862004-08-28 Marco Gerards <metgerards@student.han.nl>
54187
54188 Add support for the JFS filesystem.
54189
54190 * fs/jfs.c: New file.
54191 * include/grub/fs.h (grub_jfs_init): New prototype.
54192 (grub_jfs_fini): New prototype.
54193 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54194 (grub_emu_SOURCES): Likewise.
54195 (pkgdata_MODULES): Add jfs.mod.
54196 (jfs_mod_SOURCES): New variable.
54197 (jfs_mod_CFLAGS): Likewise.
54198 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54199 (grubof_SOURCES): Likewise.
54200 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54201
54202 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54203 endian to the host endian.
54204 (grub_fat_utf16_to_utf8): Move function from there...
54205 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 54206 the endianness of the source string anymore.
aa033560 54207 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54208
94bc45af 542092004-08-24 Marco Gerards <metgerards@student.han.nl>
54210
54211 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54212 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54213 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54214 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 54215
94bc45af 54216 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54217 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54218 for `node_found' and `it_dir'.
54219 (grub_hfs_dir): Add prototype for `dir_hook'.
54220
54221 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54222 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54223 and `indir32' to silence a gcc warning.
54224
54225 * include/grub/fs.h (grub_hfs_init): New prototype.
54226 (grub_hfs_fini): Likewise.
f19dbdb7 54227
54228
97543f08 542292004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54230
54231 Each disk device has its own id now. This is useful to make use
54232 of multiple disk devices.
f19dbdb7 54233
97543f08 54234 * include/grub/disk.h (grub_disk_dev_id): New enum.
54235 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54236 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54237
54238 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54239 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54240
54241 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54242 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54243
54244 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54245 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54246
54247 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54248 "id" which is used by the cache manager.
54249
54250 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54251 of just "GRUB".
54252
64372eb4 542532004-08-18 Marco Gerards <metgerards@student.han.nl>
54254
54255 * fs/hfs.c: New file.
54256 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54257 (grub_emu_SOURCES): Likewise.
54258 (pkgdata_MODULES): Add hfs.mod.
54259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54260 (grubof_SOURCES): Likewise.
54261 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54262
54263 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54264 * kern/misc.c (grub_strncasecmp): Add function.
54265
cc61b58f 542662004-08-14 Marco Gerards <metgerards@student.han.nl>
54267
54268 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54269 with parentheses.
54270
54271 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54272 (grub_ext2_dir): In case the directory entry type is unknown, read
54273 it from the inode.
54274
0ef123f6 542752004-08-02 Peter Bruin <pjbruin@dds.nl>
54276
54277 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54278 grub_load_linux instead of grub_rescue_cmd_linux as second
54279 argument of grub_rescue_register_command.
54280
54281 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54282
a447c5df 542832004-07-27 Marco Gerards <metgerards@student.han.nl>
54284
54285 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54286 function.
54287 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54288 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54289 `loader/powerpc/ieee1275/linux.c',
54290 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54291 * include/grub/powerpc/ieee1275/ieee1275.h
54292 (grub_ieee1275_release): New prototype.
54293 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54294 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54295 normal, boot, linux and linux_normal.
54296 * loader/powerpc/ieee1275/linux.c: New file.
54297 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54298
5a9e3546 542992004-07-12 Marco Gerards <metgerards@student.han.nl>
54300
54301 * normal/arg.c (grub_arg_parse): Correct error handling after
54302 reallocating the argumentlist (check if `argl' is not null instead
54303 of checking if `args' is not null).
54304 * kern/mm.c (grub_realloc): Return the same pointer when using the
54305 same region, instead of returning the header address.
54306
e15199cb 543072004-07-11 Marco Gerards <metgerards@student.han.nl>
54308
54309 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54310 one block instead of two when looking for the initial partition.
54311 (grub_partition_probe): Initialize the local variable `p' with 0.
54312 Use base 10 for the grub_strtoul call.
54313 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54314 need for one local variable.
54315 (grub_strtoul): Don't add the new value to `num', instead of that
54316 just assign it.
54317
020616c2 543182004-07-11 Marco Gerards <metgerards@student.han.nl>
54319
54320 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54321 (pxeboot_img_SOURCES): New variable.
54322 (pxeboot_img_ASFLAGS): Likewise.
54323 (pxeboot_img_LDFLAGS): Likewise.
54324 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54325 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54326 <lode_leroy@hotmail.com>.
54327
6c51eb64 543282004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54329
54330 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54331 there was no input.
54332
cfb12aff 543332004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54334
54335 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54336 the history buffer logic.
54337
6eabba74 543382004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54339
54340 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54341 (FILETYPE_INO_SYMLINK): New macros.
54342 (grub_ext2_find_file): Check if the node is a directory using the
54343 inode stat information instead of using the filetype in the
54344 dirent. Exclude the first character of an absolute symlink.
54345 (grub_ext2_dir): Mask out the filetype part of the mode member of
54346 the inode.
54347
66e19ef8 543482004-05-24 Marco Gerards <metgerards@student.han.nl>
54349
54350 Add support for UFS version 1 and 2. Add support for the minix
54351 filesystem version 1 and 2, both the variants with 14 and 30 long
54352 filenames.
f19dbdb7 54353
66e19ef8 54354 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54355 fs/minix.c.
54356 (grub_emu_SOURCES): Likewise.
54357 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54358 (ufs_mod_SOURCES): New variable.
54359 (ufs_mod_CFLAGS): Likewise.
54360 (minix_mod_SOURCES): Likewise.
54361 (minix_mod_CFLAGS): Likewise.
54362 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54363 fs/minix.c.
54364 (grubof_SOURCES): Likewise.
54365 * fs/ufs.c: New file.
54366 * fs/minix.c: New file.
54367 * include/grub/fs.h (grub_ufs_init): New prototype.
54368 (grub_ufs_fini): Likewise.
54369 (grub_minix_init): Likewise.
54370 (grub_minix_fini): Likewise.
54371 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54372 minix fs.
54373
cc2e748a 543742004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54375
54376 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54377 commands/ls.c, commands/terminal.c, commands/boot.c,
54378 commands/cmp.c and commands/cat.c.
54379 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54380
54381 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54382 "env.h"
54383
4b13b216 543842004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54385
54386 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54387 and grub_, respectively. Because the conversion is trivial and
54388 mechanical, I omit the details here. Please refer to the CVS
54389 if you need more information.
54390
6a142551 543912004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54392
54393 * include/pupa: Renamed to ...
54394 * include/grub: ... this.
54395 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54396 * util/i386/pc/grub-mkimage.c: ... this.
54397 * util/i386/pc/pupa-setup.c: Renamed to ...
54398 * util/i386/pc/grub-setup.c: ... this.
54399 * util/pupa-emu.c: Renamed to ...
54400 * util/grub-emu.c: ... this.
54401
e56cdf21 544022004-03-29 Marco Gerards <metgerards@student.han.nl>
54403
54404 Add support for the newworld apple macintosh (PPC). This has been
54405 tested on the powerbook 2000 only. It only adds support for
54406 generic ieee1275 functions, console and disk support. This should
54407 be easy to port to other architectures with support for Open
54408 Firmware.
f19dbdb7 54409
e56cdf21 54410 * configure.ac: Accept the powerpc as host_cpu. In the case of
54411 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54412 specific tests are only executed while building for the i386.
54413 Inverse test for crosscompile.
54414 * genmk.rb (Utility): Allow assembler files.
54415 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54416 * conf/powerpc-ieee1275.rmk: New file.
54417 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54418 * disk/powerpc/ieee1275/partition.c: Likewise.
54419 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54420 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54421 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54422 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54423 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54424 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54425 * include/pupa/powerpc/ieee1275/loader.h
54426 * include/pupa/powerpc/setjmp.h: Likewise.
54427 * include/pupa/powerpc/types.h: Likewise.
54428 * kern/powerpc/ieee1275/init.c: Likewise.
54429 * kern/powerpc/ieee1275/openfw.c: Likewise.
54430 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54431
54432 These files were written by Johan Rydberg
54433 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 54434
e56cdf21 54435 * boot/powerpc/ieee1275/cmain.c: New file.
54436 * boot/powerpc/ieee1275/crt0.S: Likewise.
54437 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54438 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54439
8c8cc205 544402004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54441
54442 * Makefile.in: Update copyright.
54443 * genmodsrc.sh: Likewise.
54444 * gensymlist.sh: Likewise.
54445 * term/i386/pc/vga.c: Indent correctly.
54446
54447 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54448 bugreporting address.
54449 * util/i386/pc/pupa-setup.c (usage): Likewise,
54450 (main): Call pupa_ext2_init and pupa_ext2_fini.
54451
f19dbdb7 54452 * fs/fat.c (log2): Renamed to ...
8c8cc205 54453 (fat_log2): ... this.
54454 All callers changed.
54455 * kern/misc.c (memcpy): Alias to pupa_memmove.
54456 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54457 lvalue cast.
54458 * util/console.c (pupa_ncurses_fini): Return 0.
54459
54460 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54461 Move fail label here.
54462 [__GNU__]: Don't warn when using stat.
54463 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54464 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54465 long int. Use strtol instead of strtoul.
f19dbdb7 54466
db1771cf 544672004-03-14 Marco Gerards <metgerards@student.han.nl>
54468
54469 * commands/boot.c: New file.
54470 * commands/cat.c: Likewise.
54471 * commands/cmp.c: Likewise.
54472 * commands/ls.c: Likewise.
54473 * commands/terminal.c: Likewise.
54474 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54475 (pupa_register_command): Changed interface to match the new
54476 argument parser.
54477 (pupa_command_execute): Changed (almost rewritten) so it uses
54478 pupa_split_command. Added support for setting variables using the
54479 syntax `foo=bar'.
54480 (rescue_command): Changed to work with the new argument parser.
54481 (terminal_command): Moved from here to commands/terminal.c.
54482 (set_command): New function.
54483 (unset_command): New function.
54484 (insmod_command): New function.
54485 (rmmod_command): New function.
54486 (lsmod_command): New function.
54487 (pupa_command_init): Don't initialize the command terminal
54488 anymore. Initialize the commands set, unset, insmod, rmmod and
54489 lsmod.
54490 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54491 (kernel_img_HEADERS): Add arg.h and env.h.
54492 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54493 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54494 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54495 normal/arg.c.
54496 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54497 terminal.mod.
54498 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54499 (boot_mod_SOURCES): New variable.
54500 (terminal_mod_SOURCES): Likewise.
54501 (ls_mod_SOURCES): Likewise.
54502 (cmp_mod_SOURCES): Likewise.
54503 (cat_mod_SOURCES): Likewise.
54504
54505 * normal/arg.c: New file.
54506 * kern/env.c: Likewise.
54507 * include/pupa/arg.h: Likewise.
54508 * include/pupa/env.h: Likewise.
54509 * font/manager.c (font_command): Changed to match argument parsing
54510 interface changes.
54511 (PUPA_MOD_INIT): Likewise.
54512 * hello/hello.c (pupa_cmd_hello): Likewise.
54513 (PUPA_MOD_INIT): Likewise.
54514 * include/pupa/disk.h: Include <pupa/device.h>.
54515 (pupa_print_partinfo): New prototype.
54516 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54517 (pupa_dl_get_prefix): Likewise.
54518 * include/pupa/misc.h: Include <pupa/err.h>.
54519 (pupa_isgraph): New prototype.
54520 (pupa_isdigit): Likewise.
54521 (pupa_split_cmdline): Likewise.
54522 * include/pupa/normal.h: Include <pupa/arg.h>.
54523 (pupa_command): Changed the prototype of the member `func' to
54524 match the argument parsing interface. Added member `options'.
54525 (pupa_register_command): Updated to match function.
54526 (pupa_arg_parse): New prototype.
54527 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54528 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54529 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54530 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54531 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54532 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54533 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54534 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54535 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54536 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54537 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54538 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54539 * kern/disk.c: Include <pupa/file.h>.
54540 (pupa_print_partinfo): New function.
54541 * kern/dl.c: Include <pupa/env.h>.
54542 (pupa_dl_dir): Variable removed.
54543 (pupa_dl_load): Use the environment variable `prefix' instead of
54544 the variable pupa_dl_dir.
54545 (pupa_dl_set_prefix): Function removed.
54546 (pupa_dl_get_prefix): Likewise.
54547 * kern/i386/pc/init.c: Include <pupa/env.h>.
54548 (pupa_machine_init): Use the environment variable `prefix' instead of
54549 using pupa_dl_set_prefix to set the prefix.
54550 * kern/main.c: Include <pupa/env.h>.
54551 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54552 using pupa_dl_get_prefix to get the prefix.
54553 * kern/misc.c: Include <pupa/env.h>.
54554 (pupa_isdigit): New function.
54555 (pupa_isgraph): Likewise.
54556 (pupa_ftoa): Likewise.
54557 (pupa_vsprintf): Added support for printing values of the type
54558 `double'. Make it possible to format variable output when using
54559 formatting like `%1.2%f'.
54560 (pupa_split_cmdline): New function.
54561 * kern/rescue.c: Include <pupa/env.h>.
54562 (next_word): Removed function.
54563 (pupa_rescue_cmd_prefix): Likewise.
54564 (pupa_rescue_cmd_set): New function.
54565 (pupa_rescue_cmd_unset): New function.
54566 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54567 split the command line instead of splitting it here. Added
54568 support for setting variables using the syntax `foo=bar'. Don't
54569 initialize the prefix command anymore. Initialized the set and
54570 unset commands.
54571 * normal/cmdline.c: Include <pupa/env.h>.
54572 (pupa_tab_complete): Added prototypes for print_simple_completion,
54573 print_partition_completion, add_completion, iterate_commands,
54574 iterate_dev, iterate_part and iterate_dir. Moved code to print
54575 partition information from here to kern/disk.c.
fe6b695a 54576 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 54577 * normal/main.c: Include <pupa/env.h>.
54578 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54579 instead of using pupa_dl_get_prefix to get the prefix.
54580 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54581 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54582 warning.
54583 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54584 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54585 ((unused))' to silence a gcc warning.
54586 (pupa_vga_setcolor): Likewise.
54587 (debug_command): Changed to match argument parsing
54588 interface changes.
54589 * util/pupa-emu.c: Include <pupa/env.h>.
54590 (options): Added 0's for unused fields to silence a gcc warning.
54591 (argp): Likewise.
54592 (main): Use the environment variable `prefix' instead of using
54593 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54594 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54595 and terminal.
54596
54597 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54598 * util/misc.c: Include <malloc.h>.
54599 (pupa_malloc): Rewritten so errors are correctly reported.
54600 (pupa_realloc): Likewise.
54601 (pupa_memalign): Likewise.
54602 (pupa_mm_init_region): Declare unused variables with
54603 `__attribute__ ((unused))' to silence a gcc warning.
54604 * normal/i386/setjmp.S: Remove tab at the end of the file to
54605 silence a gcc warning.
54606 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54607 variables with `__attribute__ ((unused))' to silence a gcc
54608 warning.
54609 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54610 local variable i unsigned to silence a gcc warning.
54611
54612 * kern/term.c: Include <pupa/misc.h>.
54613 (pupa_more_lines): New variable.
54614 (pupa_more): Likewise.
54615 (pupa_putcode): When the pager is active pause at the end of every
54616 screen.
54617 (pupa_set_more): New function.
54618 * include/pupa/term.h (pupa_set_more): New prototype.
54619
54620
3b1139cb 546212004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54622
54623 Now this project is GRUB 2 rather than PUPA. The location of
54624 the CVS repository was moved to GRUB's.
f19dbdb7 54625
3b1139cb 54626 * configure.ac: Use bug-grub as the reporting address.
54627 Use GRUB instead of PUPA.
54628 Change the version number to 1.90.
54629
8367695c 546302004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54631
54632 * genkernsyms.sh: Updated copyright information.
54633 * genmk.rb: Likewise.
54634 * genmodsrc.sh: Likewise.
54635 * gensymlist.sh: Likewise.
54636 * boot/i386/pc/boot.S: Likewise.
54637 * boot/i386/pc/diskboot.S: Likewise.
54638 * disk/i386/pc/biosdisk.c: Likewise.
54639 * disk/i386/pc/partition.c: Likewise.
54640 * font/manager.c: Likewise.
54641 * fs/ext2.c: Likewise.
54642 * fs/fat.c: Likewise.
54643 * include/pupa/boot.h: Likewise.
54644 * include/pupa/device.h: Likewise.
54645 * include/pupa/disk.h: Likewise.
54646 * include/pupa/dl.h: Likewise.
54647 * include/pupa/elf.h: Likewise.
54648 * include/pupa/err.h: Likewise.
54649 * include/pupa/file.h: Likewise.
54650 * include/pupa/font.h: Likewise.
54651 * include/pupa/fs.h: Likewise.
54652 * include/pupa/kernel.h: Likewise.
54653 * include/pupa/loader.h: Likewise.
54654 * include/pupa/misc.h: Likewise.
54655 * include/pupa/mm.h: Likewise.
54656 * include/pupa/net.h: Likewise.
54657 * include/pupa/normal.h: Likewise.
54658 * include/pupa/rescue.h: Likewise.
54659 * include/pupa/setjmp.h: Likewise.
54660 * include/pupa/symbol.h: Likewise.
54661 * include/pupa/term.h: Likewise.
54662 * include/pupa/types.h: Likewise.
54663 * include/pupa/i386/setjmp.h: Likewise.
54664 * include/pupa/i386/types.h: Likewise.
54665 * include/pupa/i386/pc/biosdisk.h: Likewise.
54666 * include/pupa/i386/pc/boot.h: Likewise.
54667 * include/pupa/i386/pc/console.h: Likewise.
54668 * include/pupa/i386/pc/init.h: Likewise.
54669 * include/pupa/i386/pc/kernel.h: Likewise.
54670 * include/pupa/i386/pc/linux.h: Likewise.
54671 * include/pupa/i386/pc/loader.h: Likewise.
54672 * include/pupa/i386/pc/memory.h: Likewise.
54673 * include/pupa/i386/pc/multiboot.h: Likewise.
54674 * include/pupa/i386/pc/partition.h: Likewise.
54675 * include/pupa/i386/pc/time.h: Likewise.
54676 * include/pupa/i386/pc/vga.h: Likewise.
54677 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54678 * include/pupa/util/getroot.h: Likewise.
54679 * include/pupa/util/misc.h: Likewise.
54680 * include/pupa/util/resolve.h: Likewise.
54681 * kern/device.c: Likewise.
54682 * kern/disk.c: Likewise.
54683 * kern/dl.c: Likewise.
54684 * kern/err.c: Likewise.
54685 * kern/file.c: Likewise.
54686 * kern/fs.c: Likewise.
54687 * kern/loader.c: Likewise.
54688 * kern/main.c: Likewise.
54689 * kern/misc.c: Likewise.
54690 * kern/mm.c: Likewise.
54691 * kern/rescue.c: Likewise.
54692 * kern/term.c: Likewise.
54693 * kern/i386/dl.c: Likewise.
54694 * kern/i386/pc/init.c: Likewise.
54695 * kern/i386/pc/lzo1x.S: Likewise.
54696 * kern/i386/pc/startup.S: Likewise.
54697 * loader/i386/pc/chainloader.c: Likewise.
54698 * loader/i386/pc/linux.c: Likewise.
54699 * loader/i386/pc/multiboot.c: Likewise.
54700 * normal/cmdline.c: Likewise.
54701 * normal/command.c: Likewise.
54702 * normal/main.c: Likewise.
54703 * normal/menu.c: Likewise.
54704 * normal/i386/setjmp.S: Likewise.
54705 * term/i386/pc/console.c: Likewise.
54706 * term/i386/pc/vga.c: Likewise.
54707 * util/console.c: Likewise.
54708 * util/genmoddep.c: Likewise.
54709 * util/misc.c: Likewise.
54710 * util/pupa-emu.c: Likewise.
54711 * util/resolve.c: Likewise.
54712 * util/unifont2pff.rb: Likewise.
54713 * util/i386/pc/biosdisk.c: Likewise.
54714 * util/i386/pc/getroot.c: Likewise.
54715 * util/i386/pc/pupa-mkimage.c: Likewise.
54716 * util/i386/pc/pupa-setup.c: Likewise.
54717
e6eced71 547182004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54719
54720 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54721 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54722 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54723 reading and reset it after reading.
54724 (pupa_ext2_close): Return PUPA_ERR_NONE.
54725
54726 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54727 Correct value.
54728 (struct linux_kernel_header): Add kernel_version and
54729 initrd_addr_max.
54730 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54731 pupa_file_read succeeds.
54732 (pupa_rescue_cmd_initrd): Implement.
54733
5aded270 547342003-12-03 Marco Gerards <metgerards@student.han.nl>
54735
54736 * fs/ext2.c (pupa_ext2_label): New function.
54737 (pupa_ext2_fs): Added label.
54738 * fs/fat.c (pupa_fat_label): New function.
54739 (pupa_fat_fs): Added label.
54740 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54741
54742 * kern/misc.c (pupa_strndup): New function.
54743 * include/pupa/misc.h (pupa_strndup): New prototype.
54744
54745 * include/pupa/normal.h: Include <pupa/err.h>.
54746 (pupa_set_history): New prototype.
54747 (pupa_iterate_commands): New prototype.
54748 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54749 <pupa/disk.h>, <pupa/file.h>.
54750 (hist_size): New variable.
54751 (hist_lines): Likewise.
54752 (hist_end): Likewise.
54753 (hist_used): Likewise.
54754 (pupa_set_history): New function.
54755 (pupa_history_get): Likewise.
54756 (pupa_history_add): Likewise.
54757 (pupa_history_replace): Likewise.
54758 (pupa_tab_complete): Likewise.
54759 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54760 completion shows partitionnames while completing partitions, this
54761 feature was suggested by Jeff Bailey.
54762 * normal/command.c (pupa_iterate_commands): New function.
54763 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54764 (pupa_normal_init): Initialize history buffer.
54765 (PUPA_MOD_INIT): Likewise.
54766 (pupa_normal_fini): Free the history buffer.
54767 (PUPA_MOD_FINI): Likewise.
54768
54769 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54770 key.
54771
54772 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54773 * configure.ac [i386]: Check for regparam bug.
54774 (NESTED_FUNC_ATTR) [! i386]: Defined.
54775
1f7315a3 547762003-11-17 Marco Gerards <metgerards@student.han.nl>
54777
54778 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54779 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54780 (pupa_emu_SOURCES): New variable.
54781 (pupa_emu_LDFLAGS): Likewise.
54782 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54783 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54784 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54785 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54786 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54787 (pupa_jmp_buf): New typedef.
54788 (pupa_setjmp) [PUPA_UTIL]: New macro.
54789 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54790 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54791 (pupa_refresh): New prototype.
54792 * include/pupa/util/getroot.h: New file.
54793 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54794 it.
54795 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54796 (pupa_rescue_cmd_cat): Likewise.
54797 (pupa_rescue_cmd_ls): Likewise.
54798 (pupa_rescue_cmd_testload): Likewise.
54799 (pupa_rescue_cmd_lsmod): Likewise.
54800 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54801 * normal/menu.c (run_menu): Likewise.
54802 * kern/term.c (pupa_cls): Likewise.
54803 (pupa_refresh): New function.
54804 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54805 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54806 * util/console.c: New file.
f19dbdb7 54807
1f7315a3 54808 * util/i386/pc/getroot.c: New file.
54809 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54810 (pupa_putchar): New function.
54811 (pupa_refresh): Likewise.
54812 (xgetcwd): Function moved to ...
54813 (strip_extra_slashes): Likewise.
54814 (get_prefix): Likewise.
f19dbdb7 54815 * util/i386/pc/getroot.c: ... here.
1f7315a3 54816 (find_root_device): Function moved and renamed to...
54817 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54818 Changed all callers.
54819 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54820 and renamed to...
54821 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54822 Changed all callers.
54823 * util/misc.c (pupa_memalign): New function.
54824 (pupa_mm_init_region): Likewise.
54825 (pupa_register_exported_symbols): Likewise.
54826 (pupa_putchar): Function removed.
54827 * util/pupa-emu.c: New file.
54828
9a5c1ade 548292003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54830
54831 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54832 (_multiboot_mod_SOURCES): New variable.
54833 (_multiboot_mod_CFLAGS): Likewise.
54834 * loader/i386/pc/multiboot.c: New file.
54835 * include/pupa/i386/pc/multiboot.h: Likewise.
54836 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54837 (pupa_multiboot_real_boot): New function.
54838 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54839 (pupa_multiboot_real_boot): New prototype.
54840 (pupa_rescue_cmd_multiboot): Likewise
54841 (pupa_rescue_cmd_module): Likewise.
54842
54843 * kern/loader.c (pupa_loader_set): Continue when
54844 pupa_loader_unload_func() fails.
54845 (pupa_loader_unset): New function.
54846 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54847
54848 * kern/misc.c (pupa_stpcpy): New function.
54849 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54850
8e72a9c0 548512003-11-12 Marco Gerards <metgerards@student.han.nl>
54852
54853 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54854 for available extensions.
54855
54856 * include/pupa/i386/pc/time.h: New file.
54857 * kern/disk.c: Include <pupa/machine/time.h>.
54858 (PUPA_CACHE_TIMEOUT): New macro.
54859 (pupa_last_time): New variable.
54860 (pupa_disk_open): Flush the cache when there was a timeout.
54861 (pupa_disk_close): Reset the timer.
54862 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54863 pupa_currticks.
54864 * util/misc.c: Include <sys/times.h>
54865 (pupa_get_rtc): New function.
54866
c4adbd32 548672003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54868
54869 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54870 as blocks.
54871 (pupa_ext2_get_file_block): Use blocks member.
54872
54873 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54874 first block. Return -1 instead of pupa_errno on error.
54875
bfd30f06 548762003-10-27 Marco Gerards <metgerards@student.han.nl>
54877
54878 * README: In the pupa-mkimage example use _chain instead of chain
54879 and ext2 instead of fat.
54880 * TODO: Replace ext2fs with jfs as an example. Add an item for
54881 adding journal playback for ext2fs.
54882 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54883 (pkgdata_MODULES): Added ext2.mod.
54884 (ext2_mod_SOURCES): New variable.
54885 (ext2_mod_CFLAGS): Likewise.
54886 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54887 * include/pupa/misc.h (pupa_strncpy): New prototype.
54888 (pupa_strcat): Likewise.
54889 (pupa_strncmp): Likewise.
54890 * kern/misc.c (pupa_strcat): Enable function.
54891 (pupa_strncpy): New function.
54892 (pupa_strncmp): Likewise.
54893 * fs/ext2.c: New file.
f19dbdb7 54894
bfd30f06 54895 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54896 when the read failed before retrying.
54897 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54898 (_FILE_OFFSET_BITS): Likewise.
54899 * configure.ac: Added AC_SYS_LARGEFILE.
54900
98d15063 549012003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54902
54903 * genmk.rb (PModule#rule): Make sure to get only symbol names
54904 from the output of nm.
59cad637 54905 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 54906
18d9c7cd 549072003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54908
54909 I forgot to check in these changes for a long time. This adds
54910 incomplete support for VGA console, and this is still very
54911 buggy. Also, a lot of consideration is required for I18N,
54912 UNICODE, and VGA font issues. Therefore, assume that this is
54913 such that "better than nothing".
f19dbdb7 54914
18d9c7cd 54915 * font/manager.c: New file.
54916 * include/pupa/font.h: Likewise.
54917 * include/pupa/i386/pc/vga.h: Likewise.
54918 * term/i386/pc/vga.c: Likewise.
54919 * util/unifont2pff.rb: Likewise.
54920
54921 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54922 (pkgdata_MODULES): Added vga.mod and font.mod.
54923 (vga_mod_SOURCES): New variables.
54924 (vga_mod_CFLAGS): Likewise.
54925 (font_mod_SOURCES): Likewise.
54926 (font_mod_CFLAGS): Likewise.
54927
54928 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54929
54930 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 54931 (struct pupa_term): Added init and fini.
18d9c7cd 54932 Changed the argument of putchar to pupa_uint32_t.
54933
54934 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54935 (pupa_console_real_putchar): New prototype.
54936 (pupa_console_putchar): Removed.
54937 (pupa_console_checkkey): Exported.
54938 (pupa_console_getkey): Likewise.
54939
54940 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54941 characters.
54942
54943 * kern/term.c (pupa_term_set_current): Rewritten.
54944 (pupa_putchar): Likewise.
54945 (pupa_putcode): New function.
54946
54947 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54948 (pupa_console_real_putchar): ... this.
54949 (pupa_vga_set_mode): New function.
54950 (pupa_vga_get_font): Likewise.
54951
54952 * normal/command.c: Include pupa/term.h.
54953 (terminal_command): New function.
54954 (pupa_command_init): Register the command "terminal".
54955
54956 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54957 (DISP_UP): Likewise.
54958 (DISP_RIGHT): Likewise.
54959 (DISP_DOWN): Likewise.
54960 (DISP_HLINE): Likewise.
54961 (DISP_VLINE): Likewise.
54962 (DISP_UL): Likewise.
54963 (DISP_UR): Likewise.
54964 (DISP_LL): Likewise.
54965 (DISP_LR): Likewise.
54966
54967 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 54968
977329f5 549692003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54970
54971 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54972 FIX. Reverse the path_list.
54973
54974 * include/pupa/normal.h: Export pupa_register_command and
54975 pupa_unregister_command.
54976
54977 * hello/hello.c (pupa_cmd_hello): New module.
54978 * conf/i386-pc.rmk: Added hello.mod.
54979
1f5ab428 549802003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54981
54982 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 54983
1f5ab428 54984 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54985 (compress_kernel): New variable.
54986 (generate_image): Heavily modified to support compressing a
54987 large part of the core image.
54988
54989 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54990 leak.
54991 (pupa_util_load_image): New function.
54992
54993 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54994 (pupa_compressed_size): New variable.
54995 (codestart): Enable Gate A20 here.
54996 Decompress the compressed part of the core image.
54997 Rearrange the code to put functions and variables which are
54998 required for initialization in the non-compressed part.
54999 Include lzo1x.S.
55000
55001 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
55002 here.
55003
55004 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
55005
f19dbdb7 55006 * include/pupa/i386/pc/kernel.h
1f5ab428 55007 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
55008 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
55009 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55010 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55011 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
55012
55013 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
55014
55015 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
55016 (Utility#rule): Likewise.
55017
55018 * configure.ac: Check if LZO is available.
55019
ce5bf700 550202003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
55021
55022 * include/pupa/normal.h: New file.
55023 * include/pupa/setjmp.h: Likewise.
55024 * include/pupa/i386/setjmp.h: Likewise.
55025 * normal/cmdline.c: Likewise.
55026 * normal/command.c: Likewise.
55027 * normal/main.c: Likewise.
55028 * normal/menu.c: Likewise.
55029 * normal/i386/setjmp.S: Likewise.
f19dbdb7 55030
ce5bf700 55031 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
55032 (pupa_rescue_cmd_initrd): Likewise.
55033
55034 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
55035 Likewise.
55036
55037 * kern/i386/pc/startup.S (translation_table): New variable.
55038 (translate_keycode): New function.
55039 (pupa_console_getkey): Call translate_keycode.
55040
55041 * kern/rescue.c (attempt_normal_mode): New function.
55042 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
55043 it failed, print a message.
55044
55045 * kern/mm.c (pupa_real_malloc): Print more information when a
55046 free magic is broken.
55047 (pupa_free): If the first free header is not free actually, set
55048 it to P.
55049
55050 * kern/main.c (pupa_load_normal_mode): Just load the module
55051 "normal".
55052 (pupa_main): Don't print the message
55053 "Entering into rescue mode..." here.
55054
55055 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
55056 Declared.
55057 (pupa_rescue_cmd_initrd): Likewise.
55058 (pupa_rescue_cmd_initrd): Likewise.
55059
55060 * include/pupa/symbol.h (FUNCTION): Specify the type.
55061 (VARIABLE): Likewise.
55062
55063 * include/pupa/err.h (pupa_err_t): Added
55064 PUPA_ERR_UNKNOWN_COMMAND.
55065
55066 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55067 (pupa_dl_get_prefix): Likewise.
55068
55069 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55070 Added _chain.mod and _linux.mod instead of chain.mod and
55071 linux.mod.
55072 (chain_mod_SOURCES): Renamed to ...
55073 (_chain_mod_SOURCES): ... this.
55074 (chain_mod_CFLAGS): Renamed to ...
55075 (_chain_mod_CFLAGS): ... this.
55076 (linux_mod_SOURCES): Renamed to ...
55077 (_linux_mod_SOURCES): ... this.
55078 (linux_mod_CFLAGS): Renamed to ...
55079 (_linux_mod_CFLAGS): ... this.
55080 (normal_mod_SOURCES): New variable.
55081 (normal_mod_CFLAGS): Likewise.
55082 (normal_mod_ASFLAGS): Likewise.
55083
550842003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55085
55086 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55087 possible.
55088
fe6b695a 55089 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 55090 recursively.
55091 (pupa_dl_unref): Unrefer depending modules recursively.
55092 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55093 a module is unloaded before one depending on that module is
55094 unloaded.
55095 (pupa_dl_unload): Unload depending modules explicitly,
55096 if possible.
55097
c04da074 550982003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55099
55100 * include/pupa/i386/pc/linux.h: New file.
55101 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 55102
c04da074 55103 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55104 Removed.
55105 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55106 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55107 of PUPA_CHAINLOADER_BOOT_SECTOR.
55108
55109 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55110 (pupa_linux_prot_size): New variable.
55111 (pupa_linux_tmp_addr): Likewise.
55112 (pupa_linux_real_addr): Likewise.
55113 (pupa_linux_boot_zimage): New function.
55114 (pupa_linux_boot_bzimage): Likewise.
55115
55116 * kern/i386/pc/init.c (struct mem_region): New structure.
55117 (MAX_REGIONS): New macro.
55118 (mem_regions): New variable.
55119 (num_regions): Likewise.
55120 (pupa_os_area_addr): Likewise.
55121 (pupa_os_area_size): Likewise.
55122 (pupa_lower_mem): Likewise.
55123 (pupa_upper_mem): Likewise.
55124 (add_mem_region): New function.
55125 (compact_mem_regions): Likewise.
55126 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55127 the size of the conventional memory and that of so-called upper
55128 memory (before the first memory hole).
55129 Instead of adding each found region to free memory, use
55130 add_mem_region and add them after removing overlaps.
55131 Also, add only 1/4 of the upper memory to free memory. The rest
55132 is used for loading OS images. Maybe this is ad hoc, but this
55133 makes it much easier to relocate OS images when booting.
55134
55135 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55136 (pupa_enter_rescue_mode): Don't register initrd and module.
55137
55138 * kern/mm.c: Include pupa/dl.h.
55139
55140 * kern/main.c: Include pupa/file.h and pupa/device.h.
55141
55142 * kern/loader.c (pupa_loader_load_module_func): Removed.
55143 (pupa_loader_load_module): Likewise.
55144
55145 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55146 ``.o''.
55147
55148 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55149 (pupa_linux_tmp_addr): Likewise.
55150 (pupa_linux_real_addr): Likewise.
55151 (pupa_linux_boot_zimage): Likewise.
55152 (pupa_linux_boot_bzimage): Likewise.
55153
55154 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55155 (pupa_upper_mem): Likewise.
55156 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55157 module is too dangerous.
55158
55159 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55160 (pupa_os_area_size): Likewise.
55161 (pupa_loader_set): Remove the first argument. Loader doesn't
55162 manage modules or initrd any longer.
55163 (pupa_loader_load_module): Removed.
55164
55165 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55166 (linux_mod_SOURCES): New variable.
55167 (linux_mod_CFLAGS): Likewise.
55168
a13f9237 551692003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55170
55171 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55172 the length of a blocklist correctly.
55173
55174 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55175 Use ioctl only if the OS file is a block device.
55176 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55177 not very useful for normal files.
55178
55179 * kern/main.c (pupa_set_root_dev): New function.
55180 (pupa_load_normal_mode): Likewise.
55181 (pupa_main): Call those above.
55182
55183 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55184 pupa_uint16_t.
55185
55186 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55187
a5ffe966 551882003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55189
55190 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55191 (setup): Configure the installed partition information and the
55192 dl prefix.
55193
55194 * loader/i386/pc/chainloader.c (my_mod): New variable.
55195 (pupa_chainloader_unload): New function.
55196 (pupa_rescue_cmd_chainloader): Refer itself.
55197 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55198
55199 * kern/i386/pc/startup.S (install_partition): Removed.
55200 (version_string): Likewise.
55201 (config_file): Likewise.
55202 (pupa_install_dos_part): New variable.
55203 (pupa_install_bsd_part): Likewise.
55204 (pupa_prefix): Likewise.
55205 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55206
55207 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55208 and pupa/misc.h.
55209 (make_install_device): New function.
55210 (pupa_machine_init): Set the dl prefix.
55211
55212 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55213 (buf): Renamed to ...
55214 (linebuf): ... this.
55215 (pupa_rescue_cmd_prefix): New function.
55216 (pupa_rescue_cmd_insmod): Likewise.
55217 (pupa_rescue_cmd_rmmod): Likewise.
55218 (pupa_rescue_cmd_lsmod): Likewise.
55219 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55220 rmmod and lsmod.
55221
55222 * kern/mm.c (pupa_memalign): If failed even after invalidating
55223 disk caches, unload unneeded modules and retry.
55224
55225 * kern/misc.c (pupa_memmove): New function.
55226 (pupa_memcpy): Removed.
55227 (pupa_strcpy): New function.
55228 (pupa_itoa): Made static.
55229
55230 * kern/dl.c (pupa_dl_iterate): New function.
55231 (pupa_dl_ref): Likewise.
55232 (pupa_dl_unref): Likewise.
55233 (pupa_dl_unload): Return if succeeded or not.
55234 (pupa_dl_unload_unneeded): New function.
55235 (pupa_dl_unload_all): Likewise.
55236 (pupa_dl_init): Renamed to ...
55237 (pupa_dl_set_prefix): ... this.
55238 (pupa_dl_get_prefix): New function.
55239
55240 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55241 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55242 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55243 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55244 (pupa_install_dos_part): Declared.
55245 (pupa_install_bsd_part): Likewise.
55246 (pupa_prefix): Likewise.
55247 (pupa_boot_drive): Likewise.
55248
55249 * include/pupa/types.h: Fix a typo.
55250
55251 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55252 pupa_memmove.
55253 (pupa_memmove): Declared.
55254 (pupa_strcpy): Likewise.
55255
55256 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55257 pupa_mod_init takes one argument, its own module.
55258 (pupa_dl_unload_unneeded): Declared.
55259 (pupa_dl_unload_all): Likewise.
55260 (pupa_dl_ref): Likewise.
55261 (pupa_dl_unref): Likewise.
55262 (pupa_dl_iterate): Likewise.
55263 (pupa_dl_init): Renamed to ...
55264 (pupa_dl_set_prefix): ... this.
55265 (pupa_dl_get_prefix): Declared.
55266
55267 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 55268 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 55269 unloaded.
55270 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55271 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55272
55273 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55274 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55275
012d7999 552762003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55277
55278 * util/i386/pc/pupa-setup.c (setup): Define the internal
55279 function find_first_partition_start at the top level, because GCC
55280 3.0.x cannot compile internal functions in deeper scopes
55281 correctly.
55282 (find_root_device): Use lstat instead of stat.
55283 Don't follow symbolic links.
55284 Fix the path-constructing code.
55285
55286 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55287 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55288 by a BLKGETSIZE ioctl first, because block devices don't fill
55289 the member st_mode of the structure stat on Linux.
55290 [__linux__] (linux_find_partition): Use a temporary buffer
55291 REAL_DEV for the working space. Copy it to DEV before returning.
55292 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55293 buffer cache consistent.
55294 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55295 strncmp. The previous value was merely wrong.
55296 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55297
55298 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55299 FAT size is 12. The previous value was merely wrong.
55300
55301 * kern/main.c (pupa_main): Don't split the starting message from
55302 newlines.
55303
55304 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55305 LF, because BIOS goes crazy about character attributes in this
55306 case.
55307
1cc73a62 553082003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55309
55310 * include/i386/pc/util/biosdisk.h: New file.
55311 * util/i386/pc/biosdisk.c: Likewise.
55312 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 55313
1cc73a62 55314 * Makefile.in (INCLUDE_DISTFILES): Added
55315 include/pupa/i386/pc/util/biosdisk.h.
55316 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55317 directory util/i386/pc.
55318 (install-local): Added a rule for sbin_UTILITIES.
55319 (uninstall): Likewise.
55320
55321 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55322
55323 * util/misc.c (xrealloc): New function.
55324 (pupa_malloc): Likewise.
55325 (pupa_free): Likewise.
55326 (pupa_realloc): Likewise.
55327 (pupa_stop): Likewise.
55328 (pupa_putchar): Likewise.
55329
55330 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55331
55332 * include/pupa/util/misc.h (xrealloc): Declared.
55333
55334 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55335 macro.
55336 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55337 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55338
55339 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55340 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55341
55342 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55343 way should be implemented.
55344 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55345
55346 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55347 the size of NAME for safety.
55348 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55349 0x88.
55350
55351 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55352 (pupa_setup_SOURCES): Likewise.
55353
55354 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55355
08b70fe8 553562002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55357
55358 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55359 bunch of pushl's from pusha, because this destroys the return
55360 value.
55361
62ddcc8f 553622002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55363
55364 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55365 This means that any missing prototypes could be fatal. Also, you
55366 must take care when writing assembly code. See the comments at
55367 the beginning of startup.S, for more details.
f19dbdb7 55368
62ddcc8f 55369 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55370 compilation mechanism.
55371 (pupa_chainloader_real_boot): Likewise.
55372 (pupa_biosdisk_rw_int13_extensions): Likewise.
55373 (pupa_biosdisk_rw_standard): Likewise.
55374 (pupa_biosdisk_check_int13_extensions): Likewise.
55375 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55376 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55377 (pupa_get_memsize): Likewise.
55378 (pupa_get_mmap_entry): Likewise.
55379 (pupa_console_putchar): Likewise.
55380 (pupa_console_setcursor): Likewise.
55381 (pupa_getrtsecs): Use pushl instead of push.
55382
55383 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55384 memory instead of the stack for a mmap entry, because some
55385 BIOSes may ignore the maximum size and overflow.
55386
55387 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55388
55389 * genmk.rb (PModule#rule): Compile automatically generated
55390 sources with module-specific CFLAGS as well as other sources.
55391
9962ed99 553922002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55393
55394 * configure.ac: Check ld.
55395 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55396 respectively, before checking endianness and sizes.
55397
55398 * Makefile.in (LD): New variable.
f19dbdb7 55399
abdfc3c5 554002002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55401
55402 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55403
6a161fa9 554042002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55405
55406 * Changelog: New file.
55407